:root {
  --rush-pink: #ff007f;
  --rush-cyan: #29d9ff;
  --bg: #08090d;
  --panel: rgba(16, 19, 28, 0.88);
  --text: #f8f8fb;
  --muted: #a7adbb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 0, 127, 0.20), transparent 30%),
    radial-gradient(circle at 84% 4%, rgba(41, 217, 255, 0.15), transparent 28%),
    linear-gradient(135deg, #05060a 0%, #10131c 55%, #07080c 100%);
  color: var(--text);
  font-family: Rajdhani, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.page-shell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 520px);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}

.hero-copy {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rush-pink);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-header-copy {
  min-width: 0;
}

.hero-logo-card {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-logo {
  display: block;
  width: clamp(110px, 11vw, 146px);
  height: auto;
}

h1 {
  margin: 0;
  max-width: 8.2ch;
  font-size: clamp(2.05rem, 4.25vw, 4.22rem);
  line-height: 0.90;
  letter-spacing: -0.045em;
}

.service-line {
  margin: 16px 0 0;
  color: #ffffff;
  font-size: clamp(0.88rem, 1.18vw, 1.08rem);
  line-height: 1.14;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.004em;
}

.intro {
  max-width: 34rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.5;
}

.contact-card {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 4px solid var(--rush-pink);
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.contact-kicker {
  margin: 0 0 8px;
  color: var(--rush-pink);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-line {
  margin: 6px 0;
  font-size: 1.08rem;
}

.contact-note {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
}

.contact-card a { color: var(--rush-cyan); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.contact-action:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
}

.contact-action.primary {
  background: linear-gradient(135deg, rgba(255,0,127,0.92), rgba(255,0,127,0.65));
  border-color: rgba(255,0,127,0.8);
}

.fine-print {
  margin: 18px 0 0;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
}

.game-card {
  overscroll-behavior: contain;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 32px 90px rgba(0,0,0,0.45);
}

.game-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.51rem;
  letter-spacing: 0.012em;
  color: #ffffff;
}

.game-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.game-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.05;
}

.game-title span:first-child,
.game-title span:last-child {
  padding-left: 0;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--rush-pink);
  box-shadow: 0 0 12px var(--rush-pink);
}

.topbar-buttons {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-auto-rows: auto;
  gap: 6px;
  align-items: center;
  justify-content: end;
}

#scoreButton {
  grid-column: 1 / span 2;
  grid-row: 1;
}

#restartButton {
  grid-column: 3;
  grid-row: 1;
}

#vibrationButton {
  grid-column: 1;
  grid-row: 2;
}

#pauseButton {
  grid-column: 2;
  grid-row: 2;
}

#soundButton {
  grid-column: 3;
  grid-row: 2;
}

button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 7px 8px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

button:hover { background: rgba(255,255,255,0.14); }

canvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 2 / 3;
  display: block;
  margin: 0 auto;
  border: 4px solid rgba(255,255,255,0.92);
  border-radius: 14px;
  background: #235d26;
  box-shadow: 0 0 0 2px rgba(255,0,127,0.22), 0 24px 55px rgba(0,0,0,0.65);
}

.instructions {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.22;
  text-align: center;
}

@media (max-width: 880px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .hero-copy {
    order: 1;
  }

  .game-card {
    order: 2;
  }

  h1 {
    font-size: clamp(2.65rem, 10.5vw, 4.25rem);
  }

  .hero-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero-logo {
    width: clamp(112px, 24vw, 170px);
  }
}

.social-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  transition: transform .15s ease, background .15s ease;
}
.social-pill:hover { transform: translateY(-1px); background: rgba(255,255,255,0.14); }
.social-pill svg { width: 18px; height: 18px; }
.social-pill.insta { color: #ffd6f0; }
.social-pill.facebook { color: #d8e7ff; }

 .contact-action.insta {
  color: #ffd6f0 !important;
  border-color: rgba(255, 0, 127, 0.55);
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.18), rgba(255,255,255,0.06));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 16px rgba(255,0,127,0.10);
}

.contact-action.facebook {
  color: #d8e7ff !important;
  border-color: rgba(41, 217, 255, 0.50);
  background: linear-gradient(135deg, rgba(41, 217, 255, 0.14), rgba(255,255,255,0.06));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 16px rgba(41,217,255,0.08);
}

.contact-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .service-line {
    white-space: normal;
  }
}

@media (max-width: 540px) {
  .service-line {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 10px;
    gap: 14px;
  }

  .game-card {
    padding: 10px;
  }

  .game-topbar {
    font-size: 0.40rem;
    gap: 6px;
  }

  .topbar-buttons {
    gap: 5px;
  }

  button {
    padding: 6px 6px;
  }

  canvas {
    max-height: calc(100vh - 128px);
    width: 100%;
  }

  .instructions {
    font-size: 0.78rem;
  }

  .hero-copy {
    padding: 18px;
  }

  .contact-actions {
    gap: 8px;
  }

  .contact-action {
    flex: 1 1 125px;
  }
}

.mobile-services {
  display: none;
}

@media (max-width: 640px) {
  .desktop-services {
    display: none;
  }

  .mobile-services {
    display: inline;
  }

  .service-line {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    white-space: normal;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contact-action.primary {
    grid-column: 1 / -1;
    width: min(320px, 100%);
    justify-self: center;
  }

  .contact-action.insta,
  .contact-action.facebook {
    width: 100%;
  }
}

#pauseButton,
#restartButton {
  touch-action: manipulation;
  pointer-events: auto;
}

@media (max-width: 880px) {
  .hero-copy {
    order: 1;
  }

  .game-card {
    order: 2;
  }

  .hero-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero-logo {
    width: clamp(112px, 24vw, 170px);
  }
}

@media (max-width: 640px) {
  .desktop-services {
    display: none;
  }

  .mobile-services {
    display: inline;
  }

  .service-line {
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    white-space: normal;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contact-action.primary {
    grid-column: 1 / -1;
    width: min(320px, 100%);
    justify-self: center;
  }

  .contact-action.insta,
  .contact-action.facebook {
    width: 100%;
  }

  .game-topbar {
    font-size: 0.36rem;
  }

  .topbar-buttons {
    gap: 5px;
  }

  button {
    padding: 6px 6px;
  }
}

#pauseButton,
#restartButton {
  touch-action: manipulation;
  pointer-events: auto;
}


.mailing-list-box {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}

.mailing-list-copy p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.95rem;
  line-height: 1.45;
}

.mailing-kicker {
  margin-bottom: 7px !important;
  color: var(--rush-pink) !important;
  font-family: "Press Start 2P", monospace;
  font-size: 0.58rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mailing-list-toggle,
.mailing-submit {
  margin-top: 12px;
  border-color: rgba(255,0,127,0.65);
  background: linear-gradient(135deg, rgba(255,0,127,0.9), rgba(255,0,127,0.58));
  box-shadow: 0 0 18px rgba(255,0,127,0.16);
}

.mailing-list-panel {
  margin-top: 14px;
}

.mailing-list-panel[hidden] {
  display: none;
}

.mailing-list-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mailing-list-form label {
  color: rgba(255,255,255,0.78);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.mailing-list-form input,
.mailing-list-form select {
  width: 100%;
  margin-top: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: rgba(0,0,0,0.26);
  color: #fff;
  font: 700 1rem "Rajdhani", sans-serif;
  outline: none;
}

.mailing-list-form input:focus,
.mailing-list-form select:focus {
  border-color: rgba(32,215,255,0.65);
  box-shadow: 0 0 0 3px rgba(32,215,255,0.12);
}

.optional {
  color: rgba(255,255,255,0.42);
  font-weight: 500;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 1px;
  overflow: hidden;
}

.consent-line {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  color: rgba(255,255,255,0.56) !important;
  font-weight: 500 !important;
  font-size: 0.86rem !important;
  line-height: 1.35;
}

.consent-line input {
  width: auto;
  margin-top: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mailing-list-message {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
}

.mailing-list-message.success {
  color: var(--rush-cyan);
}

.mailing-list-message.error {
  color: #ff8da8;
}

@media (max-width: 640px) {
  .mailing-list-box {
    padding: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .mailing-list-toggle,
  .mailing-submit {
    width: 100%;
    justify-content: center;
  }
}

/* Rush Arcade V28 cache-bust update */

/* Rush Arcade V29 removed redundant footer copy */

/* Rush Arcade V30 interest options update */

/* Rush Arcade V31 mailing-list interest order update */

/* Rush Arcade V32 link preview title update */

/* Rush Arcade V33 Google Sheet mailing-list integration */

/* Rush Arcade V34 mobile fixed-timestep and touch-control stabilization */

/* Rush Arcade V35 mobile save-score and global leaderboard dedupe update */

/* Rush Arcade V36 mobile score-entry arrows and submit controls */

/* Rush Arcade V37 all-runs history and post-save online rank display */

/* Rush Arcade V38 score-saved online rank spacing update */

/* Rush Arcade V39 score-saved leaderboard and paused scores overlay */

/* Rush Arcade V40 steering arrows, vibration toggle, Eastern-time monthly boards */

.is-hidden { display: none !important; }

/* Rush Arcade V41 desktop/mobile control cleanup and leaderboard month repair helper */

/* Rush Arcade V42 leaderboard Chaos score display fix */

/* Rush Arcade V43 private analytics tracking */

/* Rush Arcade V45 emergency restore from stable V43 base */


.music-controls {
  grid-column: 1 / span 3;
  grid-row: 3;
  display: grid;
  grid-template-columns: auto minmax(118px, 1fr);
  gap: 6px;
  align-items: center;
}

#musicButton {
  min-width: 86px;
}

.music-volume-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.82);
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.music-volume-label span {
  flex: 0 0 auto;
}

#musicVolume {
  flex: 1 1 auto;
  width: 100%;
  min-width: 76px;
  accent-color: var(--rush-pink);
}

@media (max-width: 880px) {
  .music-controls {
    grid-column: 1 / span 3;
    grid-row: 4;
  }
}


/* Rush Arcade V47 music DOM reference fix */

/* Rush Arcade V48 audible music mix */


.audio-mixer {
  grid-column: 1 / span 3;
  grid-row: 3;
  display: grid;
  grid-template-columns: auto minmax(98px, 1fr);
  gap: 6px 8px;
  align-items: center;
  padding-top: 2px;
}

#engineButton,
#musicButton {
  min-width: 82px;
}

.audio-volume-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.82);
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.audio-volume-label span {
  flex: 0 0 auto;
}

#engineVolume,
#musicVolume {
  width: 100%;
  min-width: 92px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 7px;
  background: rgba(0,0,0,0.42);
  color: #fff;
  font: inherit;
  font-size: 0.50rem;
}

@media (max-width: 880px) {
  .audio-mixer {
    grid-column: 1 / span 3;
    grid-row: 4;
  }
}


/* Rush Arcade V49 separate Car/Music sound mixer */

/* Rush Arcade V50 audio-control usability tune */

/* Rush Arcade V51 Chaos leaderboard breakdown restore */

/* Rush Arcade V52 better analytics tracking */

/* Rush Arcade V53 analytics write-lock fix */
