@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;700;800;900&family=Press+Start+2P&display=swap");

:root {
  --bg: #07060f;
  --gold: #ffd56a;
  --pink: #ff2d95;
  --cyan: #00e5ff;
  --text: #f8fafc;
  --muted: #94a3b8;
  --panel: rgba(10, 8, 22, 0.82);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
}

#road {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* Top chrome — one centered line: brand · direct links */
.hud-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: calc(10px + var(--safe-t)) 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 6, 15, 0.92), transparent);
}

.brand {
  pointer-events: auto;
  text-align: center;
}

.brand h1 {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.55rem, 2.4vw, 0.85rem);
  line-height: 1.55;
  color: var(--gold);
  text-shadow: 3px 3px 0 #000, 0 0 18px rgba(255, 213, 106, 0.45);
}

.brand p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.35;
  text-align: center;
}

.links-pill {
  pointer-events: auto;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  max-width: min(520px, 94vw);
}

.links-pill strong {
  color: var(--cyan);
  letter-spacing: 0.1em;
  font-size: 0.62rem;
  margin: 0;
}

.links-pill #directLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
}

.links-pill a {
  display: inline;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.links-pill a:hover {
  color: var(--gold);
}

/* Bottom controls */
.hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 12px 14px calc(14px + var(--safe-b));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(7, 6, 15, 0.95) 0%, transparent 100%);
  pointer-events: none;
}

.target-banner {
  pointer-events: none;
  background: var(--panel);
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 213, 106, 0.2);
  min-height: 1.4em;
  text-align: center;
}

.target-banner.ready {
  border-color: var(--pink);
  color: #fff;
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 28px rgba(255, 45, 149, 0.45);
  }
}

.controls {
  pointer-events: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn {
  appearance: none;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 72px;
}

.btn:active {
  transform: scale(0.96);
}

.btn-dir {
  background: #1e293b;
  color: #fff;
  border-color: #334155;
  min-width: 64px;
  min-height: 52px;
  font-size: 1.2rem;
}

.btn-go {
  background: linear-gradient(180deg, #ffe566, #f59e0b);
  color: #1a0a00;
  box-shadow: 0 4px 0 #92400e, 0 0 20px rgba(245, 158, 11, 0.35);
  min-width: 140px;
  opacity: 0.4;
  pointer-events: none;
}

.btn-go.hot {
  opacity: 1;
  pointer-events: auto;
}

.hint {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

/* Desktop keyboard hint */
@media (min-width: 800px) {
  .btn-dir {
    display: none;
  }
  .hint::after {
    content: " · Arrows / A D to drive · Enter to enter";
  }
}

@media (max-width: 520px) {
  .links-pill {
    display: none;
  }
  .brand p {
    font-size: 0.7rem;
    max-width: 200px;
  }
}

/* Strip Club shame modal */
.shame-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.shame-modal.open {
  display: flex;
}

.shame-card {
  width: min(380px, 100%);
  text-align: center;
  background: linear-gradient(165deg, #1a1028 0%, #0a0614 100%);
  border: 2px solid #e11d48;
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: 0 0 40px rgba(225, 29, 72, 0.35), 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: shame-pop 0.4s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

@keyframes shame-pop {
  from {
    transform: scale(0.75);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.shame-zinu-wrap {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 8px;
  overflow: visible;
}

.shame-zinu {
  height: 190px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45));
  animation: shame-wiggle 0.7s ease-in-out infinite;
  transform-origin: 50% 90%;
}

@keyframes shame-wiggle {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(5deg) translateY(4px);
  }
}

.shame-msg {
  margin: 8px 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fecdd3;
}

.shame-card .btn-go {
  opacity: 1;
  pointer-events: auto;
  width: 100%;
  max-width: 220px;
}
