/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0d0d0d;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

canvas { display: block; cursor: none; }

#mobileGate {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  #mobileGate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
      radial-gradient(circle at top, rgba(52, 196, 237, 0.18), transparent 34%),
      radial-gradient(circle at bottom, rgba(255, 71, 87, 0.14), transparent 38%),
      rgba(8, 10, 16, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 220;
    overflow-y: auto;
  }

  .mobile-gate-card {
    width: min(460px, 100%);
    padding: 26px 20px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    box-shadow: 0 18px 48px rgba(0,0,0,0.36);
    text-align: center;
  }

  .mobile-gate-logo {
    width: min(190px, 52vw);
    height: auto;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 10px 26px rgba(52, 196, 237, 0.14));
  }

  .mobile-gate-kicker {
    margin-bottom: 10px;
    color: #74c0fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
  }

  .mobile-gate-title {
    margin-bottom: 12px;
    color: #fff;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .mobile-gate-copy {
    margin: 0 auto 18px;
    max-width: 34ch;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.65;
  }

  .mobile-gate-points {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
  }

  .mobile-gate-point {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.84);
    font-size: 13px;
    line-height: 1.45;
  }

  .mobile-gate-note {
    color: rgba(255,255,255,0.52);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

/* ── Timer bar (top edge) ── */
#timerBar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  background: #51cf66;
  pointer-events: none; z-index: 20;
  will-change: width;
}

/* ── HUD ── */
#hud {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; justify-content: space-around;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none; z-index: 10;
}
#hud.hidden { display: none; }

.hud-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hud-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}
.hud-val {
  font-size: 28px; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1;
}
#hudTimer  { color: #ff6b6b; }
#hudScore  { color: #51cf66; }
#hudAcc    { color: #74c0fc; }
#hudStreak { color: #ffd43b; }

/* ── Overlay base ── */
.overlay {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}
.overlay.hidden { display: none; }

#menuScreen {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 16px 32px;
  isolation: isolate;
  scrollbar-gutter: stable;
}

#menuScreen.hidden {
  display: none;
}

#menuScreen::before,
#menuScreen::after {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

#menuScreen::before {
  top: -14vh;
  left: -8vw;
  width: 52vw;
  height: 52vw;
  min-width: 280px;
  min-height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(93, 227, 240, 0.26), rgba(93, 227, 240, 0.04) 45%, transparent 68%),
    radial-gradient(circle at 68% 60%, rgba(255, 71, 87, 0.18), transparent 58%);
  filter: blur(16px);
  animation: menuOrbFloatA 18s ease-in-out infinite alternate;
}

#menuScreen::after {
  right: -10vw;
  bottom: -18vh;
  width: 46vw;
  height: 46vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(116, 192, 252, 0.2), rgba(116, 192, 252, 0.04) 48%, transparent 70%),
    radial-gradient(circle at 35% 65%, rgba(46, 204, 113, 0.14), transparent 54%);
  filter: blur(20px);
  animation: menuOrbFloatB 22s ease-in-out infinite alternate;
}

.menu-scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 60px);
  margin: 0 auto;
  padding: 20px 0 72px;
}

.menu-scroll > * {
  position: relative;
  z-index: 1;
}

#menuScreen .brand-mark {
  margin-top: 0;
}

#menuScreen .screen-sub {
  margin-bottom: 36px;
}

#menuScreen::-webkit-scrollbar {
  width: 10px;
}

#menuScreen::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
}

#menuScreen::-webkit-scrollbar-thumb {
  background: rgba(116,192,252,0.28);
  border-radius: 999px;
}

#menuScreen::-webkit-scrollbar-thumb:hover {
  background: rgba(116,192,252,0.42);
}

@keyframes menuOrbFloatA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(7vw, 10vh, 0) scale(1.12);
  }
}

@keyframes menuOrbFloatB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-8vw, -8vh, 0) scale(1.08);
  }
}

@keyframes menuGridShift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 0 46px, 46px 0;
  }
}

/* ── Titles ── */
.screen-title {
  font-size: 54px; font-weight: 900; letter-spacing: -2px; margin-bottom: 6px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.screen-sub {
  font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 44px;
}

.menu-intro {
  width: min(560px, 100%);
  margin: 0 0 26px;
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.brand-mark {
  display: block;
  width: min(300px, 72vw);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 12px 32px rgba(41, 196, 245, 0.18));
}

/* ── Option rows ── */
.opt-row { margin-bottom: 22px; text-align: center; }
.opt-title {
  font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.32); margin-bottom: 10px;
}
.btn-row { display: flex; gap: 8px; justify-content: center; }

.opt-btn {
  padding: 9px 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  border-radius: 6px; font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.opt-btn:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
}
.opt-btn.sel {
  background: rgba(255,107,107,0.14);
  border-color: rgba(255,107,107,0.65);
  color: #ff8888;
}

/* ── Primary button ── */
.btn-primary {
  margin-top: 14px; padding: 15px 58px;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: #fff; border: none; border-radius: 8px;
  font-family: inherit; font-size: 15px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 4px 24px rgba(255,71,87,0.35);
  transition: transform 0.1s, box-shadow 0.12s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,71,87,0.5); }
.btn-primary:active { transform: translateY(0); }

/* ── Results ── */
.res-grid {
  display: grid; grid-template-columns: repeat(3, 148px);
  gap: 12px; margin: 28px 0 18px;
}
.res-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; padding: 20px 12px; text-align: center;
}
.res-val { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.res-lbl {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.32); margin-top: 6px;
}

#newHSBadge { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: #ffd43b; height: 18px; margin-bottom: 4px; }

.hs-section { text-align: center; }
.hs-title {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 10px;
}
#hsList { font-size: 12px; color: rgba(255,255,255,0.42); line-height: 2; }

.res-btns { display: flex; gap: 10px; margin-top: 26px; align-items: stretch; }
.res-btns .btn-primary { margin-top: 0; padding-top: 0; padding-bottom: 0; }

.btn-secondary {
  padding: 13px 28px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.11); color: #fff; }

/* ── Pause button (in-game) ── */
#btnPause {
  position: fixed; top: 16px; right: 20px; z-index: 15;
  padding: 8px 18px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 6px;
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
#btnPause:hover { background: rgba(255,255,255,0.13); color: #fff; }
#btnPause.hidden { display: none; }

/* ── Gamepad debug ── */
#gamepadDebug {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(116,192,252,0.28);
  border-radius: 10px;
  background: rgba(8,12,18,0.86);
  box-shadow: 0 10px 32px rgba(0,0,0,0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 140;
}

#gamepadDebug.hidden { display: none; }

.gp-debug-title {
  margin-bottom: 8px;
  color: #74c0fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gp-debug-line {
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  #menuScreen {
    padding: 18px 10px 24px;
  }

  .menu-scroll {
    max-width: 100%;
    justify-content: flex-start;
    min-height: calc(100dvh - 42px);
    margin: 0 auto;
    padding: 18px 0 76px;
  }

  #gamepadDebug {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 10px 12px;
  }

  .gp-debug-line {
    font-size: 10px;
  }
}

/* ── Pause overlay ── */
#pauseScreen .screen-title { font-size: 42px; margin-bottom: 4px; }
#pauseScreen .res-btns { justify-content: center; margin-top: 30px; }

/* ── Affiliate button ── */
#btnAffiliate {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 360px; margin-top: 10px; padding: 11px 26px;
  background: linear-gradient(135deg, rgba(255,212,59,0.12), rgba(255,160,0,0.12));
  border: 1px solid rgba(255,212,59,0.35); border-radius: 8px;
  color: #ffd43b; font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  text-decoration: none; transition: background 0.14s, border-color 0.14s;
}
#btnAffiliate:hover {
  background: linear-gradient(135deg, rgba(255,212,59,0.2), rgba(255,160,0,0.2));
  border-color: rgba(255,212,59,0.65);
}
#btnAffiliate svg { flex-shrink: 0; }

/* ── Locked mode button ── */
.opt-btn.mode-locked {
  border-color: rgba(255,212,59,0.22);
  color: rgba(255,212,59,0.42);
}
.opt-btn.mode-locked:hover {
  background: rgba(255,212,59,0.08);
  border-color: rgba(255,212,59,0.5);
  color: rgba(255,212,59,0.85);
}

/* ── Settings button (absolute inside menu overlay) ── */
#btnSettings {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 0 16px;
  background: rgba(116,192,252,0.09);
  border: 1px solid rgba(116,192,252,0.28); border-radius: 999px;
  color: rgba(255,255,255,0.86); cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.12s;
}
#btnSettings:hover {
  background: rgba(116,192,252,0.16);
  border-color: rgba(116,192,252,0.5);
  color: #fff;
  transform: translateY(-1px);
}

.btn-settings-icon {
  font-size: 17px;
  line-height: 1;
  color: #74c0fc;
}

.btn-settings-label {
  line-height: 1;
}

@media (max-width: 720px) {
  #btnSettings {
    top: 12px;
    right: 12px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 10px;
    letter-spacing: 1.3px;
  }

  .btn-settings-icon {
    font-size: 16px;
  }
}

/* ── Settings sliders ── */
.slider-row { width: 300px; margin-bottom: 22px; }
.slider-label {
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 10px;
}
.slider-label span:last-child { color: rgba(255,255,255,0.65); font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: rgba(255,255,255,0.14); border-radius: 2px; outline: none; cursor: pointer;
  accent-color: #ff6b6b;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: #ff6b6b;
  box-shadow: 0 0 8px rgba(255,71,87,0.5); cursor: pointer;
}

/* ── Paywall overlay ── */
.price-badge {
  font-size: 58px; font-weight: 900; line-height: 1;
  color: #51cf66; margin: 8px 0 18px;
}
.paywall-features {
  display: flex; gap: 10px; margin-bottom: 22px;
}
.mode-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.paywall-note {
  font-size: 11px; color: rgba(255,255,255,0.3); text-align: center;
  max-width: 280px; line-height: 1.7; margin-bottom: 24px;
}

/* ── Buy Me a Coffee button ── */
#btnBMaC {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 360px; margin-top: 8px; padding: 9px 20px;
  background: rgba(255,212,59,0.06);
  border: 1px solid rgba(255,212,59,0.18); border-radius: 8px;
  color: rgba(255,212,59,0.5); font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  text-decoration: none; transition: background 0.12s, color 0.12s, border-color 0.12s;
}
#btnBMaC:hover {
  background: rgba(255,212,59,0.13);
  border-color: rgba(255,212,59,0.45); color: #ffd43b;
}

/* ── Paywall restore section ── */
.restore-section {
  margin-top: 22px; padding-top: 18px; width: 300px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.restore-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.28);
  margin-bottom: 10px;
}
.restore-row {
  display: flex; gap: 8px;
}
.restore-input {
  flex: 1; padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 6px;
  color: #fff; font-family: inherit; font-size: 13px; outline: none;
}
.restore-input:focus {
  border-color: rgba(255,255,255,0.3);
}
.restore-msg {
  font-size: 11px; margin-top: 8px; min-height: 16px;
}
.restore-msg.ok  { color: #51cf66; }
.restore-msg.err { color: #ff6b6b; }

/* ── Mode description ── */
.mode-desc {
  margin-top: 10px;
  font-size: 11px; line-height: 1.6; text-align: center;
  color: rgba(255,255,255,0.38); max-width: 360px; min-height: 17px;
}
.pro-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: #2ecc71; vertical-align: middle;
  margin-left: 4px;
}

/* ── Buy Pro flash animation ── */
@keyframes buyProFlash {
  0%   { transform: scale(1);    box-shadow: 0 4px 20px rgba(46,204,113,0.3); }
  25%  { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(46,204,113,0.35), 0 8px 32px rgba(46,204,113,0.65); }
  60%  { transform: scale(1.02); box-shadow: 0 0 0 2px rgba(46,204,113,0.2), 0 6px 24px rgba(46,204,113,0.4); }
  100% { transform: scale(1);    box-shadow: 0 4px 20px rgba(46,204,113,0.3); }
}
#btnBuyPro.buypro-flash { animation: buyProFlash 0.5s ease-out; }

/* ── Menu divider ── */
.menu-divider {
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 20px 0 10px;
}

/* ── Buy Pro button ── */
#btnBuyPro {
  width: 360px; padding: 13px 40px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff; border: none; border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 4px 20px rgba(46,204,113,0.3);
  transition: transform 0.1s, box-shadow 0.12s;
}
#btnBuyPro:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(46,204,113,0.45); }
#btnBuyPro:active { transform: translateY(0); }
#btnBuyPro.hidden { display: none; }

/* ── Menu primary-action row ── */
.menu-actions {
  display: flex; gap: 10px; margin-top: 14px; width: 360px;
}
.menu-actions .btn-primary {
  margin-top: 0; flex: 1; padding-left: 0; padding-right: 0;
}

/* ── Reaction Test menu button ── */
.btn-reaction-test {
  flex: 1; padding: 15px 0;
  background: rgba(116,192,252,0.07);
  border: 1px solid rgba(116,192,252,0.3); border-radius: 8px;
  color: #74c0fc; font-family: inherit; font-size: 15px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-reaction-test:hover {
  background: rgba(116,192,252,0.14);
  border-color: rgba(116,192,252,0.6);
}

/* ── Reaction Test overlay ── */
#rtIdle, #rtActive, #rtResults {
  display: flex; flex-direction: column; align-items: center;
}
#rtIdle.hidden, #rtActive.hidden, #rtResults.hidden { display: none; }

.rt-counter {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.28);
  margin-bottom: 36px;
}
.rt-circle {
  width: 310px; height: 310px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 3px solid rgba(255,255,255,0.09);
  cursor: pointer;
  /* NO transition — instant color change is required for accurate timing */
  transition: none;
}
.rt-circle.waiting  { background: rgba(255,255,255,0.04); box-shadow: none; border-color: rgba(255,255,255,0.09); }
.rt-circle.ready    { background: #51cf66; box-shadow: 0 0 80px rgba(81,207,102,0.65); border-color: #51cf66; }
.rt-circle.tooearly { background: #ff4757; box-shadow: 0 0 60px rgba(255,71,87,0.5);  border-color: #ff4757; }
.rt-hint {
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-top: 30px; height: 22px;
}
.rt-hint.go     { color: #51cf66; }
.rt-hint.err    { color: #ff6b6b; }
.rt-hint.result { color: #ffd43b; }

.rt-avg-val {
  font-size: 76px; font-weight: 900; line-height: 1;
  color: #51cf66; margin: 18px 0 6px;
  font-variant-numeric: tabular-nums;
}
.rt-avg-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.28);
  margin-bottom: 28px;
}
.rt-rounds-grid {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.rt-round-pill {
  padding: 7px 18px; border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5);
}
.rt-round-pill.best {
  background: rgba(81,207,102,0.08);
  border-color: rgba(81,207,102,0.45); color: #51cf66;
}

/* ── Menu privacy note ── */
.menu-privacy {
  width: 360px; margin-top: 18px;
  font-size: 9px; line-height: 1.7; text-align: center;
  color: rgba(255,255,255,0.18);
}
.menu-privacy a { color: rgba(255,255,255,0.28); text-underline-offset: 2px; }
.menu-privacy a:hover { color: rgba(255,255,255,0.5); }

@media (max-width: 420px) {
  .btn-row,
  .menu-actions {
    width: min(360px, 100%);
    flex-wrap: wrap;
  }

  .btn-row .opt-btn,
  .menu-actions .btn-primary,
  .btn-reaction-test,
  #btnBuyPro,
  #btnAffiliate,
  #btnBMaC,
  .menu-privacy {
    width: min(360px, 100%);
  }

  .opt-btn {
    flex: 1 1 calc(50% - 8px);
    padding-left: 14px;
    padding-right: 14px;
  }

  #menuScreen .screen-sub {
    margin-bottom: 28px;
  }

  #menuScreen .brand-mark {
    width: min(240px, 68vw);
  }

  .menu-intro {
    font-size: 12px;
    margin-bottom: 22px;
  }
}

/* ── Countdown flash ── */
@keyframes timerPulse {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.6; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
.timer-urgent { animation: timerPulse 0.5s ease-in-out infinite; }
