:root {
  --navy: #111f4d;
  --navy-2: #172b68;
  --blue: #263c89;
  --gold: #d5a84a;
  --gold-2: #f3d37b;
  --cream: #fff8ea;
  --white: #ffffff;
  --ink: #14213d;
  --muted: #667085;
  --line: rgba(17, 31, 77, 0.12);
  --shadow: 0 18px 45px rgba(17, 31, 77, 0.14);
  --radius: 24px;
  --danger: #b42318;
  --success: #12805c;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(213, 168, 74, 0.18), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #f4f0e8 100%);
}

button,
input { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold-2);
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 25px rgba(17, 31, 77, 0.2);
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.main-nav a:hover { background: rgba(213, 168, 74, 0.16); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(220px, 310px) 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}

.game-logo-wrap {
  position: relative;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px;
  overflow: hidden;
  isolation: isolate;
}

.game-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -35% auto -35% -52%;
  width: 38%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), rgba(255,255,255,.92), rgba(255,255,255,.18), transparent);
  animation: heroShimmer 4s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

.game-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.38), 0 0 26px rgba(213,168,74,.12);
  z-index: 3;
  pointer-events: none;
}

.game24-logo { display: block; width: 100%; height: auto; position: relative; z-index: 1; }

.logo-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,247,200,.95) 40%, rgba(255,247,200,0) 75%);
  filter: drop-shadow(0 0 10px rgba(255, 239, 175, 0.95));
  animation: sparkTwinkle 2.8s ease-in-out infinite;
  z-index: 4;
}

.logo-spark::before,
.logo-spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,240,185,.12));
}
.logo-spark::before { width: 2px; height: 16px; }
.logo-spark::after { width: 16px; height: 2px; }
.sparkle-a { right: 18px; top: 16px; animation-delay: .1s; }
.sparkle-b { left: 22px; top: 54px; width: 11px; height: 11px; animation-delay: 1.2s; }
.sparkle-c { right: 54px; bottom: 18px; width: 9px; height: 9px; animation-delay: 2.1s; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2 { margin: 0; color: var(--navy); }

h1 { font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; }

.hero-copy p:last-child {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 10px 0 0;
  color: var(--muted);
}

.setup-card,
.play-card,
.status-bar,
.leaderboard-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.setup-card {
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: 16px;
}

.player-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.avatar-button {
  width: 88px;
  height: 88px;
  border: 3px solid var(--gold);
  border-radius: 24px;
  padding: 4px;
  background: var(--cream);
  box-shadow: 0 10px 25px rgba(213, 168, 74, 0.22);
}

.avatar-button img,
.status-player img,
.leader-avatar,
.avatar-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.player-field label,
.control-label {
  display: block;
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 7px;
}

.name-row { display: flex; gap: 10px; }

#playerName {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border: 2px solid rgba(17, 31, 77, 0.12);
  border-radius: 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  outline: none;
}

#playerName:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(213, 168, 74, 0.18);
}

.player-field small { display: block; color: var(--muted); margin-top: 6px; }

.setup-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.15fr 1.1fr auto;
  gap: 14px;
  align-items: end;
}

.control-group { min-width: 0; }
.muted-group.is-disabled { opacity: 0.52; pointer-events: none; }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; }

.segmented button,
.soft-btn,
.primary-btn,
.mini-btn,

.segmented button {
  padding: 10px 13px;
  background: #eef2ff;
  color: var(--navy);
  border: 1px solid rgba(17, 31, 77, 0.08);
}

.segmented button.active {
  background: var(--navy);
  color: var(--gold-2);
  box-shadow: 0 10px 20px rgba(17, 31, 77, 0.18);
}

.soft-btn {
  padding: 11px 15px;
  background: #fff5dc;
  color: var(--navy);
  border: 1px solid rgba(213, 168, 74, 0.34);
}

.primary-btn {
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy);
  box-shadow: 0 12px 22px rgba(213, 168, 74, 0.28);
}

.primary-btn:disabled,
.soft-btn:disabled { cursor: not-allowed; opacity: 0.55; }

.mini-btn {
  padding: 8px 12px;
  background: #eef2ff;
  color: var(--navy);
  border: 1px solid rgba(17, 31, 77, 0.08);
}

.status-bar {
  position: relative;
  top: auto;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
}

.status-player { display: flex; align-items: center; gap: 12px; }

.status-player img {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 2px solid var(--gold);
  background: var(--cream);
}

.status-player strong { display: block; color: var(--navy); font-size: 1.1rem; }
.status-player small { color: var(--muted); }

.status-metrics { display: flex; gap: 10px; align-items: stretch; }

.hud-action-btn {
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 31, 77, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf7, #fff2ca);
  color: var(--navy);
  font-weight: 1000;
  box-shadow: 0 10px 20px rgba(17, 31, 77, 0.08);
}

.hud-action-btn:active {
  transform: translateY(1px) scale(.99);
}

.metric {
  min-width: 104px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  text-align: center;
}

.metric span { display: block; color: var(--muted); font-size: .82rem; font-weight: 700; }
.metric strong { display: block; color: var(--navy); font-size: 1.35rem; line-height: 1.1; }

.game-layout { display: block; }

.play-card,
.leaderboard-card { padding: clamp(16px, 3vw, 24px); }

.card-head,
.leaderboard-head,
.expression-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head { margin-bottom: 18px; }
.section-label { margin: 0 0 10px; color: var(--muted); font-weight: 900; }

.numbers-panel,
.operators-panel,
.expression-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfdff;
  margin-bottom: 14px;
}

.numbers-grid,
.operators-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.num-token,
.op-token {
  display: grid;
  place-items: center;
  border: 0;
  font-weight: 1000;
  color: var(--navy);
  box-shadow: 0 10px 20px rgba(17, 31, 77, 0.12);
}

.num-token {
  width: clamp(58px, 10vw, 78px);
  height: clamp(58px, 10vw, 78px);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--white), #eef2ff);
  font-size: clamp(1.45rem, 4vw, 2rem);
  border: 2px solid rgba(17, 31, 77, 0.08);
}

.num-token.used { opacity: 0.32; transform: scale(0.96); }

.op-token {
  min-width: 48px;
  height: 46px;
  padding: 0 15px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--cream), #ffe8a8);
  font-size: 1.32rem;
  border: 2px solid rgba(213, 168, 74, 0.26);
}

.expression-strip {
  min-height: 66px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.1vw, 10px);
  padding: 12px 10px;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 2px dashed rgba(17, 31, 77, 0.13);
}

.expression-strip.empty { justify-content: center; }

.placeholder-line {
  color: rgba(17, 31, 77, 0.34);
  font-weight: 900;
  letter-spacing: .24em;
  font-size: clamp(1.3rem, 5vw, 2rem);
}

.expr-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: auto;
  padding: 0 2px 3px;
  border: 0;
  background: transparent;
  border-bottom: 3px solid rgba(213, 168, 74, 0.55);
  color: var(--navy);
  font-size: clamp(1.45rem, 4.9vw, 2.35rem);
  line-height: 1.05;
  font-weight: 1000;
}

.expr-token.operator,
.expr-token.paren {
  color: #8a5c00;
  border-bottom-color: rgba(17, 31, 77, 0.22);
}

.expression-strip.compact .expr-token {
  font-size: clamp(1.1rem, 4.4vw, 1.75rem);
  padding-left: 0;
  padding-right: 0;
}
.expression-strip.compact { gap: 3px; }

.live-result-row { display: none; }
.live-result-row strong { color: var(--navy); font-size: 1.35rem; }

.feedback {
  padding: 13px 15px;
  border-radius: 18px;
  margin: 10px 0 14px;
  font-weight: 800;
  border: 1px solid var(--line);
}
.feedback.info { background: #eef6ff; color: #1849a9; }
.feedback.correct { background: #ecfdf3; color: var(--success); }
.feedback.wrong { background: #fff1f0; color: var(--danger); }

.actions-row { display: flex; justify-content: flex-end; gap: 10px; }

.leaderboard-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  z-index: 70;
  padding: 86px 12px 12px;
  transform: translateX(0);
  transition: transform .22s ease;
  pointer-events: auto;
}

.leaderboard-drawer.is-collapsed {
  transform: translateX(calc(100% + 16px));
  pointer-events: none;
}

.leaderboard-card {
  height: 100%;
  overflow: auto;
  background: rgba(255,255,255,.97);
}

.leaderboard-head h2 { font-size: 1.35rem; }
.leaderboard-head small { color: var(--muted); font-weight: 800; }

.final-result {
  padding: 14px;
  border-radius: 18px;
  background: #fff7e6;
  border: 1px solid rgba(213, 168, 74, 0.35);
  margin: 14px 0;
  color: var(--navy);
  font-weight: 900;
}
.final-result.hidden { display: none; }

.leaderboard-list { display: grid; gap: 8px; margin-top: 14px; }

.leader-row {
  display: grid;
  grid-template-columns: 32px 40px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.leader-rank { font-weight: 1000; color: var(--gold); text-align: center; }
.leader-avatar { width: 40px; height: 40px; border-radius: 14px; background: var(--cream); }
.leader-name { min-width: 0; font-weight: 900; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-score { font-weight: 1000; color: var(--navy); }
.loading-text, .empty-text { color: var(--muted); font-weight: 800; }

.modal.hidden,
.countdown-overlay.hidden,
.result-overlay.hidden { display: none; }

.modal,
.countdown-overlay,
.result-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop,
.countdown-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 48, 0.55);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  background: var(--white);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 25px 70px rgba(0,0,0,.22);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.avatar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.avatar-option {
  border: 3px solid transparent;
  border-radius: 22px;
  padding: 4px;
  background: #f6f8ff;
  aspect-ratio: 1 / 1;
}
.avatar-option.active { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(213, 168, 74, 0.18); }

.countdown-stage,
.result-card {
  position: relative;
  width: min(860px, 100%);
  min-height: min(520px, calc(100dvh - 40px));
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(10,10,18,.9), rgba(17,31,77,.92));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 28px 80px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
}

.countdown-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
  transform: scale(1.03);
}

.countdown-copy,
.result-card {
  text-align: center;
  padding: 24px;
}

.countdown-mode-label {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: .03em;
  color: rgba(255,255,255,.9);
}

.countdown-number {
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: .9;
  font-weight: 1000;
  color: var(--gold-2);
  text-shadow: 0 0 24px rgba(243,211,123,.38), 0 12px 30px rgba(0,0,0,.42);
  animation: countdownPulse .7s ease;
}

.countdown-number.is-go {
  font-size: clamp(4rem, 12vw, 8rem);
  color: #ffffff;
}

.countdown-subtext {
  margin-top: 10px;
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 800;
}

.result-card {
  min-height: auto;
  width: min(520px, 100%);
  background: linear-gradient(180deg, rgba(11, 22, 58, 0.97), rgba(23,43,104,.96));
  color: white;
}

.result-card h2 {
  color: white;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  margin-bottom: 10px;
}

.result-card p { margin: 0; }
.result-card .eyebrow { color: var(--gold-2); margin-bottom: 10px; }
#timeupSummary { font-size: clamp(1.05rem, 3vw, 1.35rem); color: rgba(255,255,255,.9); }
.result-actions { margin-top: 20px; display: flex; justify-content: center; }

body.mobile-menu-open { overflow: hidden; }
body.game-session-active { overflow: hidden; }

@keyframes heroShimmer {
  0%, 100% { left: -52%; opacity: 0; }
  15% { opacity: 0; }
  28% { opacity: 1; }
  55% { left: 118%; opacity: .95; }
  70% { opacity: 0; }
}

@keyframes sparkTwinkle {
  0%, 100% { transform: scale(.72); opacity: .18; }
  30% { transform: scale(1.12); opacity: 1; }
  45% { transform: scale(.84); opacity: .5; }
  65% { transform: scale(1); opacity: .88; }
}

@keyframes countdownPulse {
  0% { transform: scale(.5); opacity: 0; }
  35% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 960px) {
  .setup-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar { padding: 10px 14px; }
  .brand span:last-child { display: none; }
  .menu-toggle { display: grid; place-items: center; }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    max-height: min(72vh, 520px);
    overflow: auto;
  }

  .main-nav.open { display: flex; }

  .leaderboard-fab {
    top: auto;
    bottom: 14px;
    right: 14px;
    padding: 12px 14px;
  }

  .game-hero { grid-template-columns: 1fr; gap: 10px; }
  .game-logo-wrap { width: min(260px, 82vw); margin: 0 auto; }
  .hero-copy { text-align: center; }

  .player-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .avatar-button { width: 76px; height: 76px; }
  .name-row { flex-direction: column; }
  .setup-grid { grid-template-columns: 1fr; }
  .segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .control-group:first-child .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .status-bar {
    top: calc(64px + env(safe-area-inset-top));
    align-items: stretch;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 20px;
  }

  .status-player img {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .status-player strong {
    font-size: 1rem;
  }

  .status-player small {
    font-size: .82rem;
  }

  .status-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 7px;
  }

  .metric {
    min-width: 0;
    padding: 8px 8px;
    border-radius: 15px;
  }

  .metric span {
    font-size: .72rem;
  }

  .metric strong {
    font-size: 1.12rem;
  }

  .hud-action-btn {
    min-width: 44px;
    padding: 7px 8px;
    border-radius: 15px;
    font-size: .86rem;
    white-space: nowrap;
  }

  .card-head { align-items: flex-start; flex-direction: column; }
  .numbers-grid, .operators-grid { justify-content: center; }

  .num-token {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .op-token {
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    padding: 0 10px;
  }

  .expression-strip { min-height: 56px; padding: 10px 8px; }
  .expr-token { font-size: clamp(1.05rem, 5vw, 1.45rem); border-bottom-width: 2px; }
  .actions-row { display: grid; grid-template-columns: 1fr 1fr; }
  .avatar-grid { grid-template-columns: repeat(4, 1fr); gap: 9px; }

  .leaderboard-drawer {
    width: 100vw;
    padding: 72px 10px 88px;
  }

  .countdown-stage,
  .result-card {
    min-height: min(460px, calc(100dvh - 28px));
    border-radius: 28px;
  }
}

@media (max-width: 390px) {
  .page-shell { width: min(100% - 18px, 1180px); }
  .segmented button { padding: 9px 8px; font-size: .92rem; }
  .num-token { width: 52px; height: 52px; }
  .op-token { min-width: 38px; height: 38px; padding: 0 8px; }
  .expression-strip { gap: 2px; }
  .avatar-grid { grid-template-columns: repeat(3, 1fr); }
  .countdown-copy { padding: 18px; }
}


body.time-attack-running .hud-action-btn.leaderboard-hidden-during-play {
  display: none;
}

@media (max-width: 430px) {
  .status-metrics {
    grid-template-columns: 1fr 1fr 44px 44px;
  }

  .hud-action-btn {
    overflow: hidden;
    text-overflow: clip;
    font-size: 0;
  }

  .hud-action-btn::first-letter {
    font-size: 1rem;
  }

  #soundToggleBtn::after {
    content: attr(data-icon);
    font-size: 1rem;
  }

  #toggleLeaderboardBtn::after {
    content: "🏆";
    font-size: 1rem;
  }
}


.cancel-run-btn {
  display: none;
  min-width: 44px;
  background: linear-gradient(180deg, #fff1f0, #ffd6d1);
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.24);
  font-size: 1.12rem;
  line-height: 1;
}

body.time-attack-running .cancel-run-btn {
  display: inline-grid;
  place-items: center;
}

body.time-attack-running .setup-card {
  opacity: .72;
}

body.time-attack-running .setup-card button,
body.time-attack-running .setup-card input {
  pointer-events: none;
}

body.time-attack-running .topbar .main-nav a {
  pointer-events: none;
  opacity: .52;
}


.exit-session-btn {
  display: none;
  min-width: 82px;
  background: linear-gradient(180deg, #fff1f0, #ffd6d1);
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.24);
}

body.game-session-active .exit-session-btn {
  display: inline-grid;
  place-items: center;
}

body.time-attack-running .exit-session-btn {
  display: none;
}

.danger-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: linear-gradient(180deg, #ef4444, #b42318);
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 14px 28px rgba(180,35,24,.24);
}

.confirm-card {
  position: relative;
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 25px 70px rgba(0,0,0,.22);
  text-align: center;
}

.confirm-card h2 {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  margin-bottom: 8px;
}

.confirm-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 430px) {
  #cancelRunBtn::after {
    content: "✕";
    font-size: 1.08rem;
  }

  body.time-attack-running .status-metrics {
    grid-template-columns: 1fr 1fr 44px 44px;
  }

  body.time-attack-running #toggleLeaderboardBtn {
    display: none;
  }

  .confirm-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


@media (max-width: 720px) {
  body.game-session-active .topbar,
  body.game-session-active .game-hero,
  body.game-session-active .setup-card {
    display: none;
  }

  body.game-session-active .page-shell {
    width: 100%;
    min-height: 100dvh;
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
  }

  body.game-session-active .status-bar {
    margin: 0;
    padding: 10px;
    border-radius: 18px;
    gap: 8px;
  }

  body.game-session-active .status-player {
    gap: 10px;
  }

  body.game-session-active .status-player img {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  body.game-session-active .status-player strong { font-size: 0.98rem; }
  body.game-session-active .status-player small { font-size: 0.78rem; }

  body.game-session-active .status-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 44px 44px;
    gap: 6px;
    width: 100%;
  }

  body.game-session-active .metric {
    min-width: 0;
    padding: 8px 6px;
    border-radius: 14px;
  }

  body.game-session-active .metric span { font-size: 0.7rem; }
  body.game-session-active .metric strong { font-size: 1.08rem; }

  body.game-session-active .hud-action-btn {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    font-size: 0;
    display: grid;
    place-items: center;
  }

  body.game-session-active #soundToggleBtn::after { content: attr(data-icon); font-size: 1rem; }
  body.game-session-active #toggleLeaderboardBtn { display: none; }
  body.game-session-active .exit-session-btn::after { content: "✕"; font-size: 1.05rem; }
  body.game-session-active .cancel-run-btn::after { content: "✕"; font-size: 1.05rem; }

  body.game-session-active .game-layout {
    min-height: 0;
  }

  body.game-session-active .play-card {
    height: 100%;
    min-height: 0;
    padding: 12px;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto auto;
    gap: 8px;
  }

  body.game-session-active .card-head {
    margin-bottom: 0;
    flex-direction: row;
    align-items: center;
  }

  body.game-session-active .card-head .eyebrow {
    margin-bottom: 2px;
    font-size: .68rem;
  }

  body.game-session-active .card-head h2 {
    font-size: 1.85rem;
    line-height: 1.02;
  }

  body.game-session-active .soft-btn,
  body.game-session-active .primary-btn,
  body.game-session-active .mini-btn,
  body.game-session-active .segmented button {
    padding: 10px 12px;
  }

  body.game-session-active .numbers-panel,
  body.game-session-active .operators-panel,
  body.game-session-active .expression-panel {
    padding: 10px 12px;
    margin-bottom: 0;
    border-radius: 18px;
  }

  body.game-session-active .section-label {
    margin-bottom: 8px;
    font-size: .82rem;
  }

  body.game-session-active .numbers-grid,
  body.game-session-active .operators-grid {
    gap: 8px;
    justify-content: flex-start;
  }

  body.game-session-active .num-token {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 1.45rem;
  }

  body.game-session-active .op-token {
    min-width: 40px;
    height: 40px;
    border-radius: 14px;
    padding: 0 10px;
    font-size: 1.18rem;
  }

  body.game-session-active .expression-title-row {
    align-items: center;
  }

  body.game-session-active .expression-strip {
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 16px;
  }

  body.game-session-active .placeholder-line {
    letter-spacing: .16em;
    font-size: 1.15rem;
  }

  body.game-session-active .expr-token {
    font-size: clamp(1rem, 4.6vw, 1.3rem);
  }

  body.game-session-active .feedback {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.92rem;
  }

  body.game-session-active .actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.game-session-active .actions-row .soft-btn,
  body.game-session-active .actions-row .primary-btn {
    width: 100%;
  }

  body.game-session-active .leaderboard-drawer {
    padding: 10px 8px;
    width: 100vw;
  }
}

@media (max-width: 430px) {
  body.game-session-active .play-card {
    padding: 10px;
    gap: 7px;
  }

  body.game-session-active .card-head h2 {
    font-size: 1.68rem;
  }

  body.game-session-active .num-token {
    width: 46px;
    height: 46px;
    font-size: 1.32rem;
  }

  body.game-session-active .op-token {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
  }

  body.game-session-active .placeholder-line {
    font-size: 1.02rem;
    letter-spacing: .12em;
  }

  body.game-session-active .feedback {
    font-size: 0.86rem;
    padding: 9px 10px;
  }
}


/* ===== V22 premium glass controls + single close visibility + timer bar ===== */
.hidden { display: none !important; }

.status-bar {
  flex-wrap: wrap;
  align-items: stretch;
}

.timer-progress-wrap {
  width: 100%;
  flex: 0 0 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,248,234,0.58));
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -10px 24px rgba(255,255,255,0.18),
    0 12px 26px rgba(17,31,77,0.10);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

.timer-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.timer-progress-title {
  color: var(--navy);
  font-weight: 1000;
  font-size: .9rem;
}

.timer-progress-head strong {
  color: var(--navy);
  font-size: 1rem;
}

.timer-progress-track {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.92), rgba(248, 250, 252, 0.98));
  box-shadow: inset 0 2px 8px rgba(17,31,77,0.10);
}

.timer-progress-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.34), rgba(255,255,255,0));
  pointer-events: none;
}

.timer-progress-bar {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e 0%, #7dd3fc 45%, #f6d365 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.52),
    0 0 12px rgba(125, 211, 252, 0.35);
  transition: width .35s ease, background .25s ease, box-shadow .25s ease;
}

.timer-progress-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0));
}

.timer-progress-bar::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: -28%;
  width: 28%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.72), rgba(255,255,255,0));
  animation: timerSheen 2.6s linear infinite;
}

.timer-progress-wrap.is-warning .timer-progress-bar {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 55%, #fde68a 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), 0 0 15px rgba(245,158,11,0.30);
}

.timer-progress-wrap.is-critical .timer-progress-bar {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 60%, #fbbf24 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), 0 0 18px rgba(239,68,68,0.34);
  animation: timerCriticalPulse .6s ease-in-out infinite alternate;
}

@keyframes timerSheen {
  from { transform: translateX(0); }
  to { transform: translateX(460%); }
}

@keyframes timerCriticalPulse {
  from { filter: saturate(1) brightness(1); }
  to { filter: saturate(1.18) brightness(1.08); }
}

.segmented button,
.soft-btn,
.primary-btn,
.mini-btn,
.hud-action-btn,
.avatar-button,
.num-token,
.op-token {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-width: 1px;
  border-style: solid;
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    inset 0 -10px 20px rgba(255,255,255,0.14),
    0 10px 25px rgba(17,31,77,0.12);
}

.segmented button::before,
.soft-btn::before,
.primary-btn::before,
.mini-btn::before,
.hud-action-btn::before,
.avatar-button::before,
.num-token::before,
.op-token::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.08) 42%, rgba(255,255,255,0.02));
  pointer-events: none;
}

.segmented button::after,
.soft-btn::after,
.primary-btn::after,
.mini-btn::after,
.hud-action-btn::after,
.avatar-button::after,
.num-token::after,
.op-token::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -32%;
  width: 42%;
  height: 320%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.58), rgba(255,255,255,0));
  transform: rotate(24deg);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.segmented button:hover::after,
.soft-btn:hover::after,
.primary-btn:hover::after,
.mini-btn:hover::after,
.hud-action-btn:hover::after,
.avatar-button:hover::after,
.num-token:hover::after,
.op-token:hover::after {
  opacity: .9;
  animation: glassSweep 1.2s ease;
}

@keyframes glassSweep {
  from { transform: translateX(-40%) rotate(24deg); }
  to { transform: translateX(240%) rotate(24deg); }
}

.segmented button,
.mini-btn,
.soft-btn,
.hud-action-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(245,247,255,0.74));
  border-color: rgba(177, 190, 220, 0.55);
  color: var(--navy);
}

.segmented button.active {
  background: linear-gradient(180deg, rgba(18, 41, 109, 0.96), rgba(22, 43, 104, 0.90));
  border-color: rgba(243, 211, 123, 0.55);
  color: #fff7d8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 30px rgba(17,31,77,0.22);
}

.primary-btn {
  background: linear-gradient(180deg, rgba(248, 219, 133, 0.98), rgba(224, 178, 58, 0.96));
  border-color: rgba(213, 168, 74, 0.72);
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.74), 0 14px 28px rgba(213,168,74,0.26);
}

.primary-btn:disabled,
.soft-btn:disabled,
.segmented button:disabled,
.mini-btn:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.avatar-button,
.num-token,
.op-token {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244, 247, 255, 0.80));
  border-color: rgba(201, 210, 232, 0.72);
}

.metric {
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(247,248,252,0.72));
  border: 1px solid rgba(188, 197, 220, 0.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 10px 22px rgba(17,31,77,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#soundToggleBtn,
#toggleLeaderboardBtn,
.exit-session-btn,
.cancel-run-btn {
  font-weight: 1000;
}

#soundToggleBtn,
#toggleLeaderboardBtn {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(246,248,255,0.78));
}

.exit-session-btn,
.cancel-run-btn,
.danger-btn {
  background: linear-gradient(180deg, rgba(255,242,242,0.96), rgba(255,214,209,0.92));
  border-color: rgba(180,35,24,0.28);
  color: #b42318;
}

body.game-session-active .timer-progress-wrap {
  margin-top: 0;
}

@media (max-width: 720px) {
  body.game-session-active .timer-progress-wrap {
    padding: 8px 10px;
    border-radius: 16px;
  }

  body.game-session-active .timer-progress-head {
    margin-bottom: 6px;
  }

  body.game-session-active .timer-progress-title,
  body.game-session-active .timer-progress-head strong {
    font-size: .78rem;
  }

  body.game-session-active .timer-progress-track {
    height: 10px;
  }

  body.game-session-active .status-metrics {
    grid-template-columns: 1fr 1fr 44px 44px;
  }
}

@media (max-width: 430px) {
  body.game-session-active .timer-progress-wrap {
    padding: 7px 9px;
  }

  body.game-session-active .timer-progress-title,
  body.game-session-active .timer-progress-head strong {
    font-size: .74rem;
  }
}


/* ===== V23 FORCE OVERRIDE: obvious premium glass UI + real animated timer ===== */
.hidden { display: none !important; }

.status-bar {
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(245,248,255,.52)) !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  box-shadow:
    0 18px 44px rgba(17,31,77,.16),
    inset 0 1px 0 rgba(255,255,255,.86),
    inset 0 -18px 34px rgba(255,255,255,.18) !important;
  backdrop-filter: blur(18px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.22) !important;
}

.metric {
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(238,244,255,.72)) !important;
  border: 1px solid rgba(184,198,230,.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -10px 20px rgba(255,255,255,.22),
    0 12px 28px rgba(17,31,77,.10) !important;
}

.segmented button,
.soft-btn,
.primary-btn,
.mini-btn,
.hud-action-btn,
.num-token,
.op-token {
  position: relative !important;
  overflow: hidden !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(185, 199, 232, .64) !important;
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.98), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(232,240,255,.72)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -12px 24px rgba(255,255,255,.20),
    0 12px 28px rgba(17,31,77,.14) !important;
  backdrop-filter: blur(14px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.22) !important;
}

.primary-btn {
  border-color: rgba(214,169,74,.80) !important;
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.96), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #ffeeb7 0%, #edc54f 52%, #d6a72e 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 -14px 24px rgba(138,91,0,.10),
    0 14px 30px rgba(213,168,74,.32) !important;
}

.segmented button.active {
  color: #fff7cf !important;
  border-color: rgba(243,211,123,.76) !important;
  background:
    radial-gradient(circle at 22% 12%, rgba(255,255,255,.30), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #24428f 0%, #111f4d 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 16px 30px rgba(17,31,77,.26) !important;
}

.op-token {
  border-color: rgba(213,168,74,.62) !important;
  background:
    radial-gradient(circle at 24% 10%, rgba(255,255,255,.98), rgba(255,255,255,0) 36%),
    linear-gradient(180deg, #fff7df 0%, #ffe9a8 58%, #f2cf67 100%) !important;
}

.hud-action-btn {
  border-radius: 18px !important;
  color: var(--navy) !important;
}

#soundToggleBtn {
  background:
    radial-gradient(circle at 24% 12%, rgba(255,255,255,.98), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #fff8de 0%, #ffe9a8 100%) !important;
  border-color: rgba(213,168,74,.48) !important;
}

.cancel-run-btn {
  display: none;
  min-width: 48px !important;
  background:
    radial-gradient(circle at 24% 12%, rgba(255,255,255,.98), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #fff5f4 0%, #ffd5d1 60%, #ffb8b0 100%) !important;
  border-color: rgba(180,35,24,.35) !important;
  color: #b42318 !important;
}

body.game-session-active .cancel-run-btn {
  display: inline-grid !important;
  place-items: center !important;
}

body.game-session-active .exit-session-btn,
body.time-attack-running .exit-session-btn {
  display: none !important;
}

/* keep icon pseudo from older mobile rules, but make it single and visible */
body.game-session-active .cancel-run-btn::after,
#cancelRunBtn::after {
  content: "✕" !important;
  font-size: 1.15rem !important;
  font-weight: 1000 !important;
}

.timer-progress-wrap {
  width: 100% !important;
  flex: 0 0 100% !important;
  margin-top: 8px !important;
  padding: 12px 14px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.92), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(240,246,255,.58)) !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.90),
    inset 0 -14px 30px rgba(255,255,255,.18),
    0 12px 28px rgba(17,31,77,.12) !important;
  backdrop-filter: blur(18px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.22) !important;
}

.timer-progress-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.timer-progress-title {
  color: var(--navy) !important;
  font-weight: 1000 !important;
  font-size: .9rem !important;
}

.timer-progress-head strong {
  color: var(--navy) !important;
  font-size: 1.08rem !important;
  letter-spacing: .04em !important;
}

.timer-progress-track {
  position: relative !important;
  overflow: hidden !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(215,226,245,.96), rgba(248,250,252,.98)) !important;
  box-shadow:
    inset 0 2px 8px rgba(17,31,77,.14),
    0 1px 0 rgba(255,255,255,.78) !important;
}

.timer-progress-bar {
  position: relative !important;
  height: 100% !important;
  width: 100%;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #20c997 0%, #38bdf8 44%, #f7d060 100%) !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.70),
    0 0 16px rgba(56,189,248,.40) !important;
  transition: width .35s ease, background .22s ease, box-shadow .22s ease !important;
}

.timer-progress-bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 48%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,0));
}

.timer-progress-bar::after {
  content: "";
  position: absolute;
  top: 1px; bottom: 1px;
  left: -28%;
  width: 30%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.78), rgba(255,255,255,0));
  animation: timerBarSheenV23 2.2s linear infinite;
}

.timer-progress-wrap.is-warning .timer-progress-bar {
  background: linear-gradient(90deg, #f59e0b 0%, #facc15 70%, #fde68a 100%) !important;
  box-shadow: 0 0 18px rgba(250,204,21,.38), inset 0 1px 1px rgba(255,255,255,.56) !important;
}

.timer-progress-wrap.is-critical .timer-progress-bar {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 64%, #facc15 100%) !important;
  box-shadow: 0 0 22px rgba(239,68,68,.42), inset 0 1px 1px rgba(255,255,255,.56) !important;
  animation: timerBarPulseV23 .45s ease-in-out infinite alternate;
}

@keyframes timerBarSheenV23 {
  from { transform: translateX(0); }
  to { transform: translateX(440%); }
}

@keyframes timerBarPulseV23 {
  from { filter: brightness(1) saturate(1); }
  to { filter: brightness(1.12) saturate(1.22); }
}

@media (max-width: 720px) {
  body.game-session-active .status-metrics {
    grid-template-columns: 1fr 1fr 44px 44px !important;
  }

  body.game-session-active .timer-progress-wrap {
    margin-top: 0 !important;
    padding: 8px 10px !important;
    border-radius: 16px !important;
  }

  body.game-session-active .timer-progress-head {
    margin-bottom: 6px !important;
  }

  body.game-session-active .timer-progress-track {
    height: 11px !important;
  }

  body.game-session-active .timer-progress-title,
  body.game-session-active .timer-progress-head strong {
    font-size: .76rem !important;
  }
}


/* ===== V25 FORCE FIX: HUD real icons + timer bar visible in play mode ===== */
.hidden { display: none !important; }

.hud-icon-btn,
body.game-session-active .hud-icon-btn {
  font-size: 1rem !important;
  color: var(--navy) !important;
  overflow: hidden !important;
  display: inline-grid !important;
  place-items: center !important;
}

.hud-icon-btn::after,
.hud-icon-btn::before,
body.game-session-active .hud-icon-btn::after,
body.game-session-active .hud-icon-btn::before {
  content: none !important;
  display: none !important;
}

.hud-icon-real {
  display: inline-grid !important;
  place-items: center !important;
  font-size: 1.08rem !important;
  line-height: 1 !important;
  position: relative !important;
  z-index: 3 !important;
}

.hud-text-real {
  display: inline-block !important;
  margin-left: 5px !important;
  font-size: .88rem !important;
  font-weight: 1000 !important;
  position: relative !important;
  z-index: 3 !important;
}

body.game-session-active .hud-icon-btn {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 15px !important;
}

body.game-session-active .hud-text-real {
  display: none !important;
}

body.game-session-active .cancel-run-btn {
  display: inline-grid !important;
  place-items: center !important;
}

body.game-session-active .cancel-run-btn.hidden {
  display: none !important;
}

body.game-session-active .exit-session-btn,
body.time-attack-running .exit-session-btn {
  display: none !important;
}

/* show timer bar whenever Time Attack is selected; especially after entering game */
body.is-time-mode .timer-progress-wrap,
body.game-session-active.is-time-mode .timer-progress-wrap {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.game-session-active.is-time-mode .timer-progress-wrap.hidden {
  display: block !important;
}

body.game-session-active .status-bar {
  align-content: start !important;
}

body.game-session-active .timer-progress-wrap {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  flex: 0 0 100% !important;
  margin-top: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

body.game-session-active .timer-progress-track {
  display: block !important;
  width: 100% !important;
}

body.game-session-active .timer-progress-bar {
  display: block !important;
  min-width: 2px !important;
}

/* fix old mobile pseudo icon rules from previous patches */
@media (max-width: 430px) {
  body.game-session-active .hud-icon-btn {
    font-size: 1rem !important;
  }

  body.game-session-active .hud-icon-btn::after,
  body.game-session-active #soundToggleBtn::after,
  body.game-session-active #cancelRunBtn::after {
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 720px) {
  body.game-session-active .status-metrics {
    grid-template-columns: 1fr 1fr 44px 44px !important;
  }

  body.game-session-active #toggleLeaderboardBtn {
    display: none !important;
  }

  body.game-session-active .timer-progress-wrap {
    padding: 8px 10px !important;
  }

  body.game-session-active .timer-progress-track {
    height: 12px !important;
  }
}


/* ===== V26: guaranteed mobile in-play timer bar inside play-card ===== */
.play-timer-progress-wrap {
  display: none;
}

body.game-session-active.is-time-mode .play-timer-progress-wrap {
  display: block !important;
  width: 100% !important;
  margin: 0 0 2px !important;
  padding: 9px 11px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,.94), rgba(255,255,255,0) 32%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(239,246,255,.62)) !important;
  border: 1px solid rgba(255,255,255,.76) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -14px 28px rgba(255,255,255,.18),
    0 12px 28px rgba(17,31,77,.12) !important;
  backdrop-filter: blur(18px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.22) !important;
}

body.game-session-active.is-time-mode .play-timer-progress-wrap.hidden {
  display: block !important;
}

body.game-session-active.is-time-mode .play-timer-progress-wrap .timer-progress-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 6px !important;
}

body.game-session-active.is-time-mode .play-timer-progress-wrap .timer-progress-track {
  height: 12px !important;
}

/* On mobile in active game, hide the duplicated HUD timer bar and keep the play-card timer */
@media (max-width: 720px) {
  body.game-session-active.is-time-mode .status-bar > .timer-progress-wrap {
    display: none !important;
  }

  body.game-session-active.is-time-mode .play-timer-progress-wrap {
    display: block !important;
  }

  body.game-session-active .play-card {
    grid-template-rows: auto auto auto auto 1fr auto auto !important;
  }
}

/* Desktop/tablet can keep the original HUD timer; the play timer is mobile-focused */
@media (min-width: 721px) {
  .play-timer-progress-wrap {
    display: none !important;
  }
}


/* ===== V27: timer lives inside visible time metric + leaderboard hidden during play ===== */
.time-metric {
  --time-pct: 100%;
  position: relative !important;
  overflow: hidden !important;
}

.time-metric > span,
.time-metric > strong {
  position: relative !important;
  z-index: 3 !important;
}

.time-metric::before {
  content: "" !important;
  position: absolute !important;
  left: 9px !important;
  right: 9px !important;
  bottom: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(215,226,245,.96), rgba(248,250,252,.98)) !important;
  box-shadow: inset 0 1px 5px rgba(17,31,77,.15) !important;
  z-index: 1 !important;
  display: block !important;
}

.time-metric::after {
  content: "" !important;
  position: absolute !important;
  left: 9px !important;
  bottom: 7px !important;
  height: 7px !important;
  width: var(--time-pct) !important;
  max-width: calc(100% - 18px) !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #20c997 0%, #38bdf8 48%, #f7d060 100%) !important;
  box-shadow: 0 0 12px rgba(56,189,248,.38), inset 0 1px 1px rgba(255,255,255,.70) !important;
  transition: width .35s ease, background .2s ease, box-shadow .2s ease !important;
  z-index: 2 !important;
  display: block !important;
}

.time-metric.time-warning::after {
  background: linear-gradient(90deg, #f59e0b 0%, #facc15 70%, #fde68a 100%) !important;
  box-shadow: 0 0 16px rgba(250,204,21,.40), inset 0 1px 1px rgba(255,255,255,.60) !important;
}

.time-metric.time-critical::after {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 66%, #facc15 100%) !important;
  box-shadow: 0 0 18px rgba(239,68,68,.44), inset 0 1px 1px rgba(255,255,255,.60) !important;
  animation: inlineTimePulseV27 .45s ease-in-out infinite alternate;
}

@keyframes inlineTimePulseV27 {
  from { filter: brightness(1) saturate(1); }
  to { filter: brightness(1.12) saturate(1.24); }
}

/* Hide all old separate timer bars; the metric itself is the timer now */
.timer-progress-wrap,
.play-timer-progress-wrap,
body.is-time-mode .timer-progress-wrap,
body.game-session-active.is-time-mode .timer-progress-wrap,
body.game-session-active.is-time-mode .play-timer-progress-wrap {
  display: none !important;
}

/* During gameplay, leaderboard is not part of the game HUD on any screen size */
body.game-session-active #toggleLeaderboardBtn {
  display: none !important;
}

body.game-session-active .status-metrics {
  grid-template-columns: 1fr 1fr 44px 44px !important;
}

/* Cancel button should sit right after sound and be the only exit button */
body.game-session-active .cancel-run-btn {
  display: inline-grid !important;
  place-items: center !important;
}

body.game-session-active .cancel-run-btn.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  body.game-session-active .time-metric {
    padding-bottom: 17px !important;
  }

  body.game-session-active .time-metric::before,
  body.game-session-active .time-metric::after {
    bottom: 5px !important;
    height: 6px !important;
  }
}


/* ===== V38: Desktop ergonomic actions / visible leaderboard ===== */
@media (min-width: 860px) {
  .expression-title-row #undoBtn {
    display: none !important;
  }

  .centered-actions-row {
    width: min(760px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: minmax(150px, .85fr) minmax(190px, 1fr) minmax(220px, 1.15fr) !important;
    gap: 14px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .centered-actions-row .soft-btn,
  .centered-actions-row .primary-btn {
    width: 100% !important;
    min-height: 56px !important;
  }

  .undo-bottom-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .status-metrics {
    grid-template-columns: minmax(120px, auto) minmax(110px, auto) 54px 54px minmax(142px, auto) !important;
    align-items: center !important;
  }

  #toggleLeaderboardBtn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 132px !important;
    min-height: 46px !important;
    font-weight: 1000 !important;
    border-radius: 16px !important;
  }

  body.game-session-active #toggleLeaderboardBtn {
    display: inline-flex !important;
  }
}

@media (max-width: 859px) {
  .undo-bottom-btn {
    display: none !important;
  }
}


/* ===== V38: Game 24 desktop timer cleanup / warning colors ===== */
@media (min-width: 860px) {
  .status-bar > .timer-progress-wrap,
  .play-timer-progress-wrap {
    display: none !important;
  }

  .time-metric {
    padding-bottom: 17px !important;
  }

  .time-metric::before {
    content: "" !important;
    position: absolute !important;
    left: 9px !important;
    right: 9px !important;
    bottom: 5px !important;
    height: 7px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(215,226,245,.96), rgba(248,250,252,.98)) !important;
    box-shadow: inset 0 1px 5px rgba(17,31,77,.15) !important;
    z-index: 1 !important;
    display: block !important;
  }

  .time-metric::after {
    content: "" !important;
    position: absolute !important;
    left: 9px !important;
    bottom: 5px !important;
    height: 7px !important;
    width: var(--time-pct, 100%) !important;
    max-width: calc(100% - 18px) !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #20c997 0%, #38bdf8 48%, #f7d060 100%) !important;
    box-shadow: 0 0 12px rgba(56,189,248,.38), inset 0 1px 1px rgba(255,255,255,.70) !important;
    transition: width .35s ease, background .2s ease, box-shadow .2s ease !important;
    z-index: 2 !important;
    display: block !important;
  }

  .time-metric.time-warning::after {
    background: linear-gradient(90deg, #f59e0b 0%, #facc15 70%, #fde68a 100%) !important;
    box-shadow: 0 0 16px rgba(250,204,21,.45), inset 0 1px 1px rgba(255,255,255,.65) !important;
  }

  .time-metric.time-critical::after {
    background: linear-gradient(90deg, #ef4444 0%, #f97316 66%, #facc15 100%) !important;
    box-shadow: 0 0 18px rgba(239,68,68,.50), inset 0 1px 1px rgba(255,255,255,.65) !important;
  }
}


/* ===== V39 REAL FIX: desktop actions + floating leaderboard ===== */
@media (min-width: 860px) {
  .expression-title-row #undoBtn {
    display: none !important;
  }

  .centered-actions-row,
  .actions-row.centered-actions-row {
    width: min(760px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: minmax(150px, .85fr) minmax(190px, 1fr) minmax(220px, 1.15fr) !important;
    gap: 14px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .centered-actions-row .soft-btn,
  .centered-actions-row .primary-btn {
    width: 100% !important;
    min-height: 56px !important;
  }

  .undo-bottom-btn {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

@media (max-width: 859px) {
  .undo-bottom-btn {
    display: none !important;
  }
}

/* Floating leaderboard button: visible but no longer consumes HUD space */
#toggleLeaderboardBtn {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 1200 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 136px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-weight: 1000 !important;
  box-shadow: 0 14px 32px rgba(17,31,77,.18), inset 0 1px 0 rgba(255,255,255,.8) !important;
  backdrop-filter: blur(12px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.15) !important;
}

body.game-session-active #toggleLeaderboardBtn {
  display: inline-flex !important;
}

@media (max-width: 720px) {
  #toggleLeaderboardBtn {
    top: 10px !important;
    right: 10px !important;
    min-width: 112px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: .82rem !important;
    opacity: .94;
  }
}


/* ===== V39 REAL FIX: Game24 duplicate timer bars removed ===== */
.timer-progress-wrap,
.play-timer-progress-wrap,
.status-bar > .timer-progress-wrap,
body.is-time-mode .timer-progress-wrap,
body.game-session-active.is-time-mode .timer-progress-wrap,
body.game-session-active.is-time-mode .play-timer-progress-wrap {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.time-metric {
  --time-pct: 100%;
  position: relative !important;
  overflow: hidden !important;
  padding-bottom: 17px !important;
}

.time-metric::before {
  content: "" !important;
  position: absolute !important;
  left: 9px !important;
  right: 9px !important;
  bottom: 5px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(215,226,245,.96), rgba(248,250,252,.98)) !important;
  box-shadow: inset 0 1px 5px rgba(17,31,77,.15) !important;
  z-index: 1 !important;
  display: block !important;
}

.time-metric::after {
  content: "" !important;
  position: absolute !important;
  left: 9px !important;
  bottom: 5px !important;
  height: 7px !important;
  width: var(--time-pct, 100%) !important;
  max-width: calc(100% - 18px) !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #20c997 0%, #38bdf8 48%, #f7d060 100%) !important;
  box-shadow: 0 0 12px rgba(56,189,248,.38), inset 0 1px 1px rgba(255,255,255,.70) !important;
  transition: width .35s ease, background .2s ease, box-shadow .2s ease !important;
  z-index: 2 !important;
  display: block !important;
}

.time-metric.time-warning::after {
  background: linear-gradient(90deg, #f59e0b 0%, #facc15 70%, #fde68a 100%) !important;
  box-shadow: 0 0 16px rgba(250,204,21,.45), inset 0 1px 1px rgba(255,255,255,.65) !important;
}

.time-metric.time-critical::after {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 66%, #facc15 100%) !important;
  box-shadow: 0 0 18px rgba(239,68,68,.50), inset 0 1px 1px rgba(255,255,255,.65) !important;
}


/* ===== V41: Leaderboard button uses V40 topbar style, not fixed/floating ===== */
.topbar {
  gap: 16px !important;
}

.topbar-leaderboard-slot {
  margin-left: auto !important;
  margin-right: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
}

#toggleLeaderboardBtn.topbar-leaderboard-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 140px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-weight: 1000 !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 24px rgba(17,31,77,.12), inset 0 1px 0 rgba(255,255,255,.82) !important;
  transform: none !important;
  opacity: 1 !important;
}

body.game-session-active #toggleLeaderboardBtn.topbar-leaderboard-btn {
  display: inline-flex !important;
}

@media (min-width: 860px) {
  #toggleLeaderboardBtn.topbar-leaderboard-btn {
    min-width: 148px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  .topbar-leaderboard-slot {
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 2 !important;
  }

  #toggleLeaderboardBtn.topbar-leaderboard-btn {
    min-width: 118px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: .82rem !important;
  }
}


/* ===== V42: Hero-level leaderboard button + Enter label ===== */
.has-hero-leaderboard {
  position: relative !important;
}

.hero-leaderboard-slot {
  position: absolute !important;
  right: clamp(22px, 5vw, 72px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  pointer-events: auto !important;
}

/* override V40/V41 topbar/fixed styles */
#toggleLeaderboardBtn.hero-leaderboard-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 150px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-weight: 1000 !important;
  white-space: nowrap !important;
  box-shadow: 0 14px 32px rgba(17,31,77,.14), inset 0 1px 0 rgba(255,255,255,.86) !important;
  transform: none !important;
  opacity: 1 !important;
}

body.game-session-active #toggleLeaderboardBtn.hero-leaderboard-btn {
  display: inline-flex !important;
}

.topbar-leaderboard-slot {
  display: none !important;
}

.check-answer-btn {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  line-height: 1.1 !important;
}

.check-answer-btn small {
  display: block !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  opacity: .78 !important;
  letter-spacing: .02em !important;
}

@media (max-width: 720px) {
  .hero-leaderboard-slot {
    right: 14px !important;
    top: 18px !important;
    transform: none !important;
  }

  #toggleLeaderboardBtn.hero-leaderboard-btn {
    min-width: 112px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: .82rem !important;
  }

  .check-answer-btn small {
    font-size: .64rem !important;
  }
}


/* ===== V42: force-remove duplicated Game24 long timer bars ===== */
.status-bar > .timer-progress-wrap,
.status-bar .timer-progress-wrap,
.play-card > .timer-progress-wrap,
.play-card .timer-progress-wrap,
.play-timer-progress-wrap,
#timerProgressWrap,
#playTimerProgressWrap,
body.is-time-mode .timer-progress-wrap,
body.game-session-active.is-time-mode .timer-progress-wrap,
body.game-session-active.is-time-mode .play-timer-progress-wrap {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.time-metric {
  --time-pct: 100%;
  position: relative !important;
  overflow: hidden !important;
  padding-bottom: 17px !important;
}

.time-metric::before {
  content: "" !important;
  position: absolute !important;
  left: 9px !important;
  right: 9px !important;
  bottom: 5px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(215,226,245,.96), rgba(248,250,252,.98)) !important;
  box-shadow: inset 0 1px 5px rgba(17,31,77,.15) !important;
  z-index: 1 !important;
  display: block !important;
}

.time-metric::after {
  content: "" !important;
  position: absolute !important;
  left: 9px !important;
  bottom: 5px !important;
  height: 7px !important;
  width: var(--time-pct, 100%) !important;
  max-width: calc(100% - 18px) !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #20c997 0%, #38bdf8 48%, #f7d060 100%) !important;
  box-shadow: 0 0 12px rgba(56,189,248,.38), inset 0 1px 1px rgba(255,255,255,.70) !important;
  transition: width .25s ease, background .2s ease, box-shadow .2s ease !important;
  z-index: 2 !important;
  display: block !important;
}

.time-metric.time-warning::after {
  background: linear-gradient(90deg, #f59e0b 0%, #facc15 70%, #fde68a 100%) !important;
  box-shadow: 0 0 16px rgba(250,204,21,.48), inset 0 1px 1px rgba(255,255,255,.65) !important;
}

.time-metric.time-critical::after {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 66%, #facc15 100%) !important;
  box-shadow: 0 0 18px rgba(239,68,68,.52), inset 0 1px 1px rgba(255,255,255,.65) !important;
}


/* ===== V43: Leaderboard tabs inside panel ===== */
.leaderboard-tabs {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}

.leaderboard-tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(245,247,252,.72);
  border: 1px solid rgba(44,57,135,.08);
}

.leaderboard-tab {
  border: 1px solid rgba(44,57,135,.12);
  background: rgba(255,255,255,.82);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.leaderboard-tab.active {
  background: linear-gradient(180deg, #172b68, #0b1b46);
  color: #fff;
  border-color: rgba(213,168,74,.42);
  box-shadow: 0 10px 22px rgba(17,31,77,.16), inset 0 1px 0 rgba(255,255,255,.16);
}

/* Mobile: keep leaderboard at topbar, do not drop into hero over the logo area. */
@media (max-width: 720px) {
  .hero-leaderboard-slot {
    display: none !important;
  }

  .topbar-leaderboard-slot {
    display: flex !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 2 !important;
  }

  #toggleLeaderboardBtn.hero-leaderboard-btn,
  #toggleLeaderboardBtn.topbar-leaderboard-btn {
    position: static !important;
    min-width: 116px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: .82rem !important;
  }
}


/* ===== V44: Mobile leaderboard must remain visible in topbar ===== */
@media (max-width: 720px) {
  .topbar-leaderboard-slot {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 2 !important;
    flex: 0 0 auto !important;
  }

  .hero-leaderboard-slot:empty {
    display: none !important;
  }

  #toggleLeaderboardBtn.topbar-leaderboard-btn {
    position: static !important;
    display: inline-flex !important;
    min-width: 116px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: .82rem !important;
    opacity: .98 !important;
    visibility: visible !important;
  }

  body.game-session-active #toggleLeaderboardBtn.topbar-leaderboard-btn {
    display: inline-flex !important;
  }
}


/* ===== V46: Game24 four difficulty buttons ===== */
.level-btn {
  min-width: max-content;
}

@media (max-width: 720px) {
  .control-group .segmented {
    gap: 7px !important;
  }
  .level-btn {
    padding-inline: 10px !important;
    font-size: .82rem !important;
  }
  #leaderboardTabs .leaderboard-tab {
    padding: 7px 10px !important;
    font-size: .82rem !important;
  }
}


.info-btn {
  width: 56px;
  min-width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(215, 176, 76, 0.65);
  background: linear-gradient(180deg, rgba(255,247,221,0.98), rgba(247,223,143,0.96));
  color: var(--navy);
  font-weight: 900;
  font-size: 1.65rem;
  box-shadow: 0 10px 26px rgba(11, 34, 86, 0.10), inset 0 1px 0 rgba(255,255,255,0.95);
}

.info-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 34, 86, 0.14), inset 0 1px 0 rgba(255,255,255,0.98);
}

.info-card {
  max-width: 720px;
}

.info-content {
  display: grid;
  gap: 10px;
}

.info-content h3 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 1.02rem;
}

.info-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
