 
:root {
  --accent: #0089F7;
  --sky: #5AC8FA;
  --bg: #0D1230;
  --panel: #10173A;
  --card: #161D45;
  --line: #262F62;
  --line-soft: #1B2148;
  --ink: #F2F4FB;
  --bright: #FFFFFF;
  --muted: #A8B0D4;
  --dim: #707894;
  --good: #34D399;
  --warn: #FBBF24;
  --bad: #F87171;
  --radius: 16px;
  --shell: 1180px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;                  
  overscroll-behavior: none;         
}
a { color: var(--sky); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.hidden { display: none !important; }
.app {
  height: calc(100dvh - var(--anchor-top-h, 0px) - var(--anchor-bot-h, 0px));
  margin-top: var(--anchor-top-h, 0px);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  transition: height 0.3s, margin-top 0.3s;
}
.bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}
.bar-right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 18, 48, 0.72);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.chip-link:hover { border-color: var(--sky); color: var(--bright); }
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 137, 247, 0.22);
}
.bar-stat {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.bar-stat b { color: var(--bright); font-size: 1.1rem; }
@media (max-width: 420px) { .chip-suffix { display: none; } }
.screen { flex: 1; min-height: 0; display: none; }
.screen.is-on { display: flex; }
#screen-start.is-on, #screen-results.is-on { overflow-y: auto; }
.pitch {
  width: 100%;
  max-width: 640px;
  margin: auto;
  padding: 24px 20px 32px;
  text-align: center;
}
.kicker {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 10px;
}
.pitch h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.accent { color: var(--sky); }
.lede { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.how {
  list-style: none;
  text-align: left;
  display: grid;
  gap: 10px;
  margin: 0 auto 22px;
  max-width: 460px;
}
.how li {
  position: relative;
  padding: 11px 14px 11px 44px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--card);
  font-size: 0.86rem;
  color: var(--muted);
  counter-increment: how;
}
.how { counter-reset: how; }
.how li::before {
  content: counter(how);
  position: absolute; left: 12px; top: 11px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  display: grid; place-items: center;
}
.how b { color: var(--ink); }
.fineprint { margin-top: 16px; font-size: 0.74rem; color: var(--dim); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.08s, opacity 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0a97ff; }
.btn-primary:disabled { background: #1B2148; color: var(--dim); cursor: default; }
.btn-ghost {
  background: transparent;
  color: var(--sky);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--sky); }
.btn-xl { min-height: 56px; padding: 14px 40px; font-size: 1rem; width: 100%; max-width: 320px; }
#screen-play { flex-direction: column; position: relative; }
.pano-wrap {
  flex: none;
  height: 40dvh;
  min-height: 200px;
  padding: 8px;                      
  display: flex;
  transition: height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#screen-play.is-reveal .pano-wrap { height: 22dvh; min-height: 120px; }
@media (prefers-reduced-motion: reduce) { .pano-wrap { transition: none; } }
.pano {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #05070f;
  border: 1px solid var(--line-soft);
}
.pano-canvas { position: absolute; inset: 0; }
.pano-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.pano-loader {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 40%, #131A44 0%, #070A1C 100%);
  transition: opacity 0.26s;
  z-index: 3;
}
.pano-loader.is-off { opacity: 0; pointer-events: none; }
.loader-card { text-align: center; padding: 0 22px; max-width: 340px; }
.loader-chip {
  display: inline-block;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sky);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; margin-bottom: 12px;
}
.loader-bar {
  height: 4px; border-radius: 4px; background: var(--line-soft);
  overflow: hidden; margin-bottom: 10px;
}
.loader-bar i {
  display: block; height: 100%; width: 40%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--sky));
  animation: slide 1.15s ease-in-out infinite;
}
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.loader-label { font-size: 0.8rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .loader-bar i { animation: none; width: 100%; } }
.pano-tip {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  background: rgba(7, 10, 28, 0.74);
  border: 1px solid var(--line-soft);
  padding: 6px 12px; border-radius: 999px;
  pointer-events: none;
  transition: opacity 0.4s;
  white-space: nowrap;
}
.pano-tip.is-off { opacity: 0; }
.map-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  padding: 0 8px 4px;
  display: flex;
}
.map {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;                
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
}
.map-outline { fill: #1A2250; stroke: #3A468F; stroke-width: 1.2; stroke-opacity: 0.55; }
.map-borders { fill: none; stroke: #2E3873; stroke-width: 0.8; }
.inset-bg    { fill: #10173A; }
.inset-land  { fill: #1A2250; stroke: #3A468F; stroke-width: 0.18; stroke-opacity: 0.55; }
.inset-lines { fill: none; stroke: #5566A8; stroke-width: 0.24; }
.inset-frame { fill: none; stroke: #3A468F; stroke-width: 1.4; stroke-opacity: 0.9; }
.inset-label {
  fill: var(--muted); font-family: var(--font-display); font-weight: 800;
  font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
}
.inset-zoom { fill: var(--sky); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.inset-locator {
  fill: none; stroke: var(--sky); stroke-width: 1.4; stroke-opacity: 0.85;
  vector-effect: non-scaling-stroke;
}
.pin-guess {
  fill: none; stroke: var(--warn); stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}
.pin-guess-dot { fill: var(--warn); }
.pin-real { fill: var(--good); stroke: #04120C; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.pin-real-halo { fill: none; stroke: var(--good); stroke-width: 2; stroke-opacity: 0.45; vector-effect: non-scaling-stroke; }
.miss-line {
  stroke: var(--bad); stroke-width: 2; stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke; stroke-linecap: round;
}
.pin-label {
  fill: var(--bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  paint-order: stroke;
  stroke: #05070f;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.map-hint {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  background: rgba(7, 10, 28, 0.7);
  border: 1px solid var(--line-soft);
  padding: 5px 12px; border-radius: 999px;
  pointer-events: none; transition: opacity 0.3s;
  white-space: nowrap;
}
.map-hint.is-off { opacity: 0; }
.map-reset {
  position: absolute; right: 12px; top: 6px;
  min-height: 32px; padding: 5px 12px;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted); background: rgba(7, 10, 28, 0.8);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.map-reset:hover { color: var(--bright); border-color: var(--sky); }
.actions {
  flex: none;
  padding: 8px 12px 12px;
  display: flex;
  justify-content: center;
}
.actions .btn { width: 100%; max-width: 420px; }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.sheet.is-on { transform: translateY(0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }
.sheet-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.5);
  padding: 14px 16px 16px;
  text-align: center;
}
.rv-verdict { font-size: 0.8rem; color: var(--muted); }
.rv-verdict b { color: var(--bad); font-size: 1.05rem; }
.rv-verdict.is-close b { color: var(--good); }
.rv-stadium {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 2px 0 2px;
}
.rv-meta { font-size: 0.8rem; color: var(--muted); }
.rv-points {
  font-family: var(--font-display);
  margin: 8px 0 12px;
  letter-spacing: 0.04em;
}
.rv-points b { font-size: 1.9rem; font-weight: 900; color: var(--sky); }
.rv-points span { font-size: 0.72rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.1em; }
.rv-cta { width: 100%; margin-bottom: 8px; font-size: 0.8rem; }
#next-btn { width: 100%; }
.total { font-family: var(--font-display); line-height: 1; margin-bottom: 6px; }
.total b { font-size: clamp(3.4rem, 16vw, 5.5rem); font-weight: 900; color: var(--sky); }
.total span { font-size: 1.1rem; color: var(--muted); margin-left: 6px; }
.total-line { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.scorecard { list-style: none; display: grid; gap: 6px; margin-bottom: 22px; text-align: left; }
.scorecard li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
  font-size: 0.84rem;
}
.sc-n { font-family: var(--font-display); font-weight: 800; color: var(--dim); }
.sc-name { color: var(--ink); font-weight: 600; }
.sc-name small { display: block; font-weight: 400; color: var(--dim); font-size: 0.74rem; }
.sc-pts { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--sky); }
.ad-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.quiz-ad {
  margin: 18px auto 0;
  width: 336px;
  max-width: 100%;
  min-height: 0;               
}
.quiz-ad:empty { display: none; }
.ad-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 15, 0.94);
  animation: gate-in 0.18s ease-out;
}
.ad-gate[hidden] { display: none; }
@keyframes gate-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ad-gate { animation: none; } }
.ad-gate-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.ad-gate-chip {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.ad-gate-unit {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--card);
}
.ad-gate-skip {
  margin-top: 28px;
  width: 100%;
  max-width: 200px;
}
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: rgba(5, 7, 15, 0.74);
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  max-width: 400px; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.modal-card h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  text-transform: uppercase; margin-bottom: 8px;
}
.modal-card p { color: var(--muted); font-size: 0.86rem; margin-bottom: 16px; }
@media (min-width: 760px) {
  #screen-play { max-width: var(--shell); width: 100%; margin: 0 auto; }
  .pano-wrap { height: 52dvh; padding: 10px 10px 6px; }
  #screen-play.is-reveal .pano-wrap { height: 34dvh; }
  .map-wrap { padding: 0 10px 4px; }
  .actions { padding: 6px 10px 12px; }
  .sheet { padding: 10px 10px 14px; }
  .pitch { max-width: 680px; }
}
@media (max-height: 560px) and (min-width: 700px) {
  #screen-play.is-on {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    column-gap: 0;
  }
  .pano-wrap { height: auto; grid-row: 1 / 3; padding: 8px 4px 8px 8px; }
  #screen-play.is-reveal .pano-wrap { height: auto; }
  .map-wrap { grid-row: 1; padding: 8px 8px 0 4px; }
  .actions { grid-column: 2; grid-row: 2; padding: 6px 8px 10px 4px; }
  .sheet { left: 50%; }
}
.play-grid { display: contents; }
@media (min-width: 1024px) and (min-height: 561px) {
  #screen-play.is-on {
    max-width: none;
    width: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .play-grid {
    --col-gap: 16px;
    --row-gap: 10px;
    --play-h: calc(100dvh - var(--anchor-top-h, 0px) - var(--anchor-bot-h, 0px) - 122px);
    position: relative;
    display: grid;
    overflow: hidden;
    width: min(1840px, 94vw, calc(var(--col-gap) + var(--play-h) * var(--wcap, 3.2)));
    grid-template-columns: var(--cols, 1fr 1fr);
    grid-template-rows: auto auto;
    column-gap: var(--col-gap);
    row-gap: var(--row-gap);
  }
  .pano-wrap,
  #screen-play.is-reveal .pano-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    height: auto;
    min-height: 0;
    padding: 0;
  }
  .map-wrap {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    aspect-ratio: var(--map-ar, 960 / 600);
    background: rgba(16, 23, 58, 0.55);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .actions { grid-column: 2; grid-row: 2; padding: 0; }
  .actions .btn { max-width: none; }
  .sheet {
    left: auto;
    right: 0;
    bottom: 0;
    width: calc((100% - var(--col-gap)) / var(--split, 2));
    padding: 0 10px 10px;
  }
  .pitch { max-width: 720px; }
}
