/* SpotItAt app — screen styles (lobby, round, review, result, tutorial, tabs). */

/* ---------- shared bits ---------- */
.center { text-align: center; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; border-top: 1px solid var(--line); }
.panel > .set-row:first-of-type, .panel > h2 + .set-row { border-top: 0; }
.set-label { font-size: 14px; font-weight: 600; }
.set-value { font-size: 13px; font-weight: 700; }
.range { width: 100%; height: 28px; accent-color: var(--teal); }
.btn.primary { background: var(--teal); color: var(--teal-ink); border: 0; }
.stat-grid { display: grid; gap: 6px; }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-tile { background: var(--panel); padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.stat-tile.left { text-align: left; }
.stat-tile strong { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.05; }
.stat-tile span { font-size: 11px; color: var(--muted); }
.player-row { display: flex; align-items: center; gap: 10px; background: var(--panel); padding: 8px 12px; min-height: 52px; }
.player-row.me { background: var(--me); outline: 1px solid var(--teal); outline-offset: -1px; }
.player-row.highlight { outline: 1px solid var(--gold); outline-offset: -1px; }
.rank { width: 24px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--muted); }
.rank.gold { color: var(--gold-text); }
.spinner { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--panel-2); border-top-color: var(--teal); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reward-icon { width: 48px; height: 48px; flex: none; border-radius: var(--r-md); background: var(--panel-2); display: flex; align-items: center; justify-content: center; }
.pop { animation: pop .55s var(--ease-pop) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.rise { animation: rise .45s ease-out both; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.slam { animation: slam .5s var(--ease-pop) both; }
@keyframes slam { from { transform: scale(2.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- lobby ---------- */
.lobby { padding-bottom: 96px; }
.lobby-action { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px calc(16px + var(--safe-b)); background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 35%, transparent) 55%, color-mix(in srgb, var(--bg) 70%, transparent) 100%); pointer-events: none; }
.lobby-action > * { pointer-events: auto; }
.lobby-action .cta { box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
.lobby-action > * { max-width: 528px; margin: 0 auto; width: 100%; }
.preset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.preset { min-height: 52px; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.1; padding: 4px; }
.preset strong { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.preset span { font-size: 10px; color: var(--muted); }
.preset[aria-checked="true"] { background: var(--panel-2); border-color: var(--teal); }
.preset:disabled { opacity: .45; }
.preset[aria-checked="true"]:disabled { opacity: 1; }
.room-code { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: .2em; line-height: 1; }
.code-input { font-family: var(--font-display); font-size: 22px; letter-spacing: .3em; text-transform: uppercase; }
.ready-tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.ready-tag.on { color: var(--teal-text); }
.emote-pop { padding: 3px 8px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 800; animation: emote 1.6s ease-out both; }
@keyframes emote { 0% { transform: translateY(8px) scale(.6); opacity: 0; } 15% { transform: none; opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.searching { padding: 8px 0 2px; }
.qr-box { background: #FFFFFF; padding: 12px; border-radius: var(--r-md); }

/* ---------- round ---------- */
.round { position: fixed; inset: 0; z-index: 30; background: #000; color: #EEF2FB; overflow: hidden; }
.panes { position: absolute; inset: 0; }
.pane-street, .pane-map { position: absolute; left: 0; right: 0; transition: top .3s ease, height .3s ease, opacity .2s ease; }
.panes.view-street .pane-street { top: 0; height: 100%; }
.panes.view-street .pane-map { top: 100%; height: 0; opacity: 0; }
.panes.view-split .pane-street { top: 0; height: 56%; }
.panes.view-split .pane-map { top: 56%; height: 44%; border-top: 2px solid var(--teal); }
.panes.view-map .pane-street { top: 0; height: 0; opacity: 0; }
.panes.view-map .pane-map { top: 0; height: 100%; }
.pane-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #0A0F1E; color: #A3ADC8; }
.flash { position: absolute; inset: 0; background: #FFFFFF; opacity: 0; pointer-events: none; z-index: 5; }
.flash.go { animation: flash .35s ease-out both; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.hud { position: absolute; left: 12px; right: 12px; top: calc(12px + var(--safe-t)); z-index: 6; display: flex; gap: 8px; }
.hud-btn { width: 48px; min-height: 48px; flex: none; border: 0; border-radius: var(--r-md); background: rgba(10, 15, 30, .78); color: #EEF2FB; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud-btn.round-btn { border-radius: 50%; }
.hud-stats { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(10, 15, 30, .78); border-radius: var(--r-md); padding: 7px 4px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud-stats > div { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hud-stats > div + div { border-left: 1px solid #26324F; }
.hud-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #A3ADC8; text-transform: uppercase; }
.hud-num { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.hud-num.gold { color: #F6BA3E; }
.hud-num.warn { color: #FF8A80; animation: pulse-warn 1s ease-in-out infinite; }
@keyframes pulse-warn { 50% { opacity: .55; } }
.sub-hud { position: absolute; left: 12px; right: 12px; top: calc(78px + var(--safe-t)); z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.place-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-sm); background: rgba(10, 15, 30, .66); font-size: 12px; font-weight: 600; color: #FF8A80; }
.place-chip span { color: #EEF2FB; }
.view-switch { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-md); background: rgba(10, 15, 30, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.view-switch button { width: 44px; height: 38px; border: 0; border-radius: var(--r-sm); background: transparent; color: #EEF2FB; display: flex; align-items: center; justify-content: center; }
.view-switch button[aria-checked="true"] { background: #EEF2FB; color: #0A0F1E; }
.mini-board { position: absolute; left: 12px; top: calc(128px + var(--safe-t)); z-index: 6; margin: 0; padding: 6px 10px; list-style: none; border-radius: var(--r-md); background: rgba(10, 15, 30, .72); font-size: 12px; min-width: 140px; }
.mini-board li { display: flex; justify-content: space-between; gap: 10px; }
.mini-board li.me { color: #2ED3C1; }
.side-tools { position: absolute; right: 12px; top: 38%; z-index: 6; display: flex; flex-direction: column; gap: 8px; }
.panes.view-split ~ .side-tools { top: 20%; }
.compass { color: #FF5E54; display: flex; }
.round-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 0 calc(16px + var(--safe-b)); background: rgba(8, 12, 24, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 10px; }
.strip { list-style: none; margin: 0; padding: 0 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.strip::-webkit-scrollbar { display: none; }
.strip > li { flex: none; scroll-snap-align: start; }
.obj { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 18px; white-space: nowrap; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .06); color: #EEF2FB; border: 1px solid #26324F; }
.obj.current { background: #EEF2FB; color: #0A0F1E; border-color: #EEF2FB; }
.obj.done { background: rgba(46, 211, 193, .12); color: #7FE8DC; border-color: rgba(46, 211, 193, .35); text-decoration: line-through; }
.round-action { padding: 0 12px; display: flex; }
.round-action > * { flex: 1; }
.cta.spot { font-size: 21px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.round .cta.quiet { background: #1E2946; color: #EEF2FB; }
@media (min-width: 900px) {
  .round-bottom { left: 50%; right: auto; width: 640px; transform: translateX(-50%); border-radius: 12px 12px 0 0; }
  .panes.view-split .pane-street { top: 0; height: 100%; width: 58%; }
  .panes.view-split .pane-map { top: 0; height: 100%; left: 58%; border-top: 0; border-left: 2px solid var(--teal); }
}

/* ---------- review ---------- */
.review-dots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.review-dots span { height: 5px; border-radius: 2px; background: var(--panel-2); }
.review-dots span.yes { background: var(--teal); }
.review-dots span.no { background: #C2312A; }
.card-stack { position: relative; flex: 1; min-height: 380px; margin: 14px 0; }
.card-back { position: absolute; left: 14px; right: 14px; top: 14px; bottom: -8px; border-radius: var(--r-lg); background: var(--panel-2); }
.claim-card { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column;
  animation: deal .35s cubic-bezier(.2, 1.3, .4, 1) both; touch-action: pan-y; transition: transform .1s ease; }
.claim-card.fly-right { transition: transform .25s ease-in, opacity .25s; transform: translateX(120%) rotate(18deg); opacity: 0; }
.claim-card.fly-left { transition: transform .25s ease-in, opacity .25s; transform: translateX(-120%) rotate(-18deg); opacity: 0; }
@keyframes deal { from { transform: translateY(30px) rotate(3deg) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
.claim-snap { flex: 1; min-height: 240px; background: #1A2238; }
.snap-missing { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); }
.claim-meta { padding: 14px 16px; }
.review-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cta.reject { background: #C2312A; color: #FFFFFF; }
.review-done { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }

/* ---------- result ---------- */
.result { position: relative; min-height: calc(100dvh - 40px); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; top: -20px; height: 12px; animation: fall 3.2s linear infinite; }
@keyframes fall { from { transform: translateY(-40px) rotate(0); } to { transform: translateY(110vh) rotate(540deg); } }
.step-dots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.step-dots span { height: 4px; border-radius: 2px; background: var(--panel-2); }
.step-dots span.on { background: var(--teal); }
.result-body { position: relative; z-index: 1; }
.result-body.skip *, .result-body.skip *::before { animation-delay: 0s !important; animation-duration: .01s !important; transition-duration: .01s !important; }
.big-score { font-size: 76px; line-height: 1; }
.star { color: var(--panel-2); display: inline-flex; }
.star.on { color: var(--gold); }
.standings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.standing { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--panel); }
.standing.me { background: var(--panel-2); outline: 1px solid var(--teal); outline-offset: -1px; }
.reorder { animation: reorder .7s cubic-bezier(.5, 0, .2, 1) 1.4s both; }
@keyframes reorder { from { transform: translateY(var(--from)); } to { transform: none; } }
.standing .plus { font-size: 13px; font-weight: 800; animation: plus 1.2s ease .2s both; }
@keyframes plus { 0% { opacity: 0; transform: translateX(-10px); } 25% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateX(30px); } }
.totals { position: relative; min-width: 56px; text-align: right; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.totals .old { position: absolute; right: 0; animation: fadeout .25s ease 1.1s both; }
.totals .new { animation: fadein .25s ease 1.2s both; }
@keyframes fadeout { to { opacity: 0; } }
@keyframes fadein { from { opacity: 0; transform: scale(1.3); } to { opacity: 1; transform: none; } }
.xpbar { height: 12px; }
.xpbar span { transition: width 1.6s cubic-bezier(.3, .8, .3, 1); }
.lvl { animation: lvl .6s cubic-bezier(.2, 1.7, .4, 1) 2s both; font-family: var(--font-display); font-size: 16px; }
@keyframes lvl { from { transform: scale(0) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.shots .shot { position: relative; width: 104px; height: 120px; padding: 0; border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(180deg, #8FBFE3 0 60%, #4A505C 60%); color: #EEF2FB; }
.shots .shot[aria-pressed="true"] { border-color: var(--teal); }
.shots .shot[aria-pressed="true"]::after { content: "✓"; position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.shot-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(10, 15, 30, .78); font-size: 11px; font-weight: 700; text-align: left; }

/* ---------- sponsored break ---------- */
.adbreak { position: fixed; inset: 0; z-index: 70; background: #05080F; color: #EEF2FB; display: flex; flex-direction: column; gap: 14px; padding: calc(20px + var(--safe-t)) 16px calc(20px + var(--safe-b)); }
.ad-video { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000; border-radius: var(--r-lg); }
.gold-link { color: #F6BA3E; border-color: #F6BA3E; background: transparent; }

/* ---------- tutorial ---------- */
.tutorial { position: fixed; inset: 0; z-index: 30; overflow: hidden; background: #9CC7E8; color: var(--text); }
/* the tutorial runs on a real Street View spot */
.tutorial { background: #0A0F1E; }
.tut-street { position: absolute; inset: 0; }
.tut-map { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tutorial .pane-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #EEF2FB; background: #0A0F1E; z-index: 2; }
.tut-arrow { position: absolute; top: 45%; left: 50%; z-index: 3; color: #FFFFFF; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); pointer-events: none; transform: translate(-50%, -50%); transition: transform .3s ease; }
.tut-arrow svg { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-6px); opacity: .7; } 50% { transform: translateX(10px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tut-arrow svg { animation: none; } }
.tutorial .tut-top, .tutorial .tut-objective, .tutorial .tut-coach { z-index: 4; }
.tut-top { position: absolute; left: 16px; right: 16px; top: calc(16px + var(--safe-t)); display: flex; align-items: center; gap: 12px; }
.tut-dots { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tut-dots span { height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.tut-dots span.on { background: #2ED3C1; }
.tut-objective { position: absolute; left: 16px; right: 16px; top: calc(72px + var(--safe-t)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(10, 15, 30, .82); color: #EEF2FB; border: 1px solid rgba(46, 211, 193, .6); animation: pop .45s var(--ease-pop) both; }
.tut-coach { position: absolute; left: 12px; right: 12px; bottom: calc(16px + var(--safe-b)); max-width: 540px; margin: 0 auto; padding: 16px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tut-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- social / community ---------- */
.bell { position: relative; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; margin: 0; height: 150px; border-radius: var(--r-md); overflow: hidden; background: #1A2238; }
.gallery-grid.three .tile { height: 120px; }
.tile-snap { position: absolute; inset: 0; pointer-events: none; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: rgba(10, 15, 30, .8); color: #EEF2FB; line-height: 1.2; }
.tile figcaption strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile figcaption span { font-size: 10px; color: #C2CADD; }
.tile-report { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: rgba(10, 15, 30, .6); color: #EEF2FB; display: flex; align-items: center; justify-content: center; }
.like { display: inline-flex; align-items: center; gap: 3px; min-height: 30px; padding: 0 6px; border: 0; border-radius: var(--r-sm); background: transparent; color: #EEF2FB; font-size: 12px; font-weight: 700; }
.like.on { color: #FF8A80; }
.like.on svg { fill: currentColor; }
.vote { width: 36px; height: 40px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; }
.vote.on { background: var(--panel-2); color: var(--teal-text); }
.vote-score { min-width: 28px; text-align: center; font-size: 14px; }
.tag.status-review { color: var(--blue-text); }
.tag.status-accepted { color: var(--teal-text); border-color: var(--teal); }
.tag.status-rejected { color: var(--danger); }

/* ---------- challenges: boards + chart ---------- */
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.board li { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 6px; border-radius: 3px; font-size: 13px; }
.board li .rank { width: 44px; font-size: 13px; font-family: var(--font-body); font-weight: 800; }
.board li.me { background: var(--me); font-weight: 800; }
.board li.sep { border-top: 1px dashed var(--line); margin-top: 4px; }
.chart { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.chart-box { position: relative; max-width: 100%; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { font: 10px var(--font-body); fill: var(--muted); }
.chart-axis.on { fill: var(--text); font-weight: 700; }
.chart-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--teal); stroke: var(--panel); stroke-width: 2; }
.chart-hit { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 0; border-radius: 50%; background: transparent; }

/* ---------- profile ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.profile-head .ring { position: relative; }
.profile-head .ring > .avatar { border: 4px solid var(--panel); }
.profile-head .lv { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 3px; background: var(--bg); border: 1px solid var(--teal);
  font-family: var(--font-display); font-weight: 800; font-size: 13px; white-space: nowrap; }
.avatar.big { color: #0A0F1E; font-family: var(--font-display); font-weight: 800; overflow: hidden; }
.avatar.big img { width: 100%; height: 100%; object-fit: cover; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; color: #0A0F1E; font-weight: 800; font-size: 13px; }
.swatch[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--teal); }

/* ---------- shop ---------- */
.price { min-width: 76px; font-weight: 800; }
.pack-icon { width: 40px; height: 40px; flex: none; border-radius: var(--r-md); color: #0A0F1E; display: flex; align-items: center; justify-content: center; }
.tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tier { min-height: 56px; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.tier strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.tier span { font-size: 10px; color: var(--muted); }
.tier:hover { border-color: var(--gold); }
.pay { min-height: 52px; border: 0; border-radius: var(--r-md); font-weight: 800; font-size: 16px; }
.pay-paypal { background: #FFC439; color: #111111; }
.pay-googlepay { background: #000000; color: #FFFFFF; border: 1px solid #3A3A3A; }
.pay:disabled { opacity: .6; }

/* ---------- AdCore consent banner inside the app shell ---------- */
html[data-theme] .adcore-cookie-consent {
  left: 12px !important; right: 12px !important; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px) !important; top: auto !important;
  width: auto !important; max-width: 536px !important; margin: 0 auto !important; z-index: 40 !important;
  background: var(--panel) !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow) !important; padding: 12px 14px !important; font: 13px/1.4 var(--font-body) !important;
}
html[data-theme] .adcore-cookie-consent h2, html[data-theme] .adcore-cookie-consent strong { font: 800 18px/1.1 var(--font-display) !important; letter-spacing: .02em; color: var(--text) !important; margin: 0 0 4px !important; }
html[data-theme] .adcore-cookie-consent p { color: var(--muted) !important; margin: 0 0 8px !important; font-size: 12px !important; }
html[data-theme] .adcore-cookie-consent-btn { min-height: 40px !important; border-radius: var(--r-md) !important; border: 1px solid var(--line) !important; background: transparent !important; color: var(--text) !important; font: 700 13px var(--font-body) !important; padding: 0 14px !important; }
html[data-theme] .adcore-cookie-consent-btn-primary { background: var(--teal) !important; border-color: var(--teal) !important; color: var(--teal-ink) !important; }
html[data-theme] .adcore-cookie-consent a { color: var(--teal-text) !important; }
html[data-theme] .app.no-tabs ~ .adcore-cookie-consent, html[data-theme] body:has(.round, .tutorial, .result) .adcore-cookie-consent { bottom: calc(var(--safe-b) + 10px) !important; }
@media (min-width: 900px) { html[data-theme] .adcore-cookie-consent { bottom: 16px !important; left: 112px !important; } }
.profile-head .ring > .lv { width: auto; height: auto; background: var(--bg); display: block; overflow: visible; font-size: 13px; }
.profile-head .ring > .avatar.big { display: flex; align-items: center; justify-content: center; }
/* No consent banner over a running round or the tutorial; it returns on the next screen. */
html[data-theme] body:has(.round, .tutorial) .adcore-cookie-consent { display: none !important; }
html[data-theme] body:has(.lobby-action) .adcore-cookie-consent { bottom: calc(var(--safe-b) + 92px) !important; }
/* During a round, pop-ups appear under the HUD instead of over it. */
body:has(.round) .toasts { top: calc(132px + var(--safe-t)); }

/* ---------- Home v2: the Earth fills the whole screen behind the controls ---------- */
.home { position: relative; overflow: hidden; }
.home > :not(.home-bg) { position: relative; z-index: 1; }
.home-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.home .stage { background: none; overflow: visible; }
.earth-layer { position: absolute; inset: 0; }
.earth-gl { display: block; opacity: 0; transition: opacity .9s ease; }
/* overscan: 32px past the left, right and bottom edge (backdrop.js OVERSCAN) */
.app-bg .earth-gl { position: absolute; left: -32px; top: 0; }
.earth-layer.ready .earth-gl { opacity: 1; }
/* nearly invisible vertical SPOTITAT band on the right edge, behind the globe, scrolling */
.watermark { position: absolute; top: 0; bottom: 0; right: max(0px, env(safe-area-inset-right, 0px)); overflow: hidden; pointer-events: none; user-select: none;
  writing-mode: vertical-rl; font: 800 34vh/1 var(--font-display); letter-spacing: .05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(46, 211, 193, .14); text-shadow: 0 0 28px rgba(46, 211, 193, .10); }
/* the band scrolls slowly upwards (it reads top to bottom), forever; half its length per cycle = seamless */
.wm-track { display: inline-block; animation: wm-scroll 90s linear infinite; }
@keyframes wm-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .wm-track { animation: none; } }
:root.reduce-motion .wm-track { animation: none; }
:root[data-theme="light"] .watermark { -webkit-text-stroke-color: rgba(13, 19, 38, .09); text-shadow: 0 0 28px rgba(255, 255, 255, .6); }
/* Pin stays planted on its spot: squash and stretch from the tip, no hopping */
.stage .pin { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.stage .pin .pin-body { animation: pin-breathe 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.stage .pin.squish .pin-body { animation: pin-squish .45s var(--ease-pop) both; }
.stage .pin.cheer .pin-body { animation: pin-cheer .7s var(--ease-pop) both; }
@keyframes pin-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.035, .955); } }
.home .pin-shadow { position: absolute; left: 50%; width: 52px; height: 13px; margin-left: -26px; border-radius: 50%; filter: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, 0)); animation: shadow-breathe 2.6s ease-in-out infinite; }
@keyframes shadow-breathe { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(1.08); opacity: 1; } }
/* the controls float over the planet */
.home .mode, .home .card-link { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.home .install { background: color-mix(in srgb, var(--glass) 70%, var(--teal) 12%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
:root[data-theme] .home .stage { background: none; }

/* ---------- Profile › Gallery › Globe ---------- */
.gallery-globe { position: relative; height: min(68vh, 560px); border-radius: var(--r-lg); overflow: hidden; touch-action: none; cursor: grab;
  background: radial-gradient(90% 80% at 50% 50%, #12305A 0%, #0B1A36 55%, #060A16 100%); }
:root[data-theme="light"] .gallery-globe { background: radial-gradient(90% 80% at 50% 50%, #D7E8F8 0%, #BCD8F2 70%, #A9CCEC 100%); }
.gallery-globe.dragging { cursor: grabbing; }
.gallery-globe:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.gg-frames { position: absolute; inset: 0; pointer-events: none; }
.gg-frame { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; padding: 0; background: none; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 100%; transition: opacity .2s ease; }
.gg-card { display: flex; align-items: center; gap: 5px; max-width: 132px; padding: 5px 8px; border-radius: 4px; background: #FFFFFF; color: #0A0F1E;
  border: 3px solid #F6BA3E; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); font: 700 11px/1.1 var(--font-body); }
.gg-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-needle { width: 2px; height: 14px; background: linear-gradient(#F6BA3E, #C2312A); }
.gg-needle::after { content: ""; display: block; width: 8px; height: 8px; margin: 12px 0 0 -3px; border-radius: 50%; background: #FF5E54; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.gg-frame:hover .gg-card, .gg-frame:focus-visible .gg-card { border-color: var(--teal); }
.gg-empty, .gg-hint { position: absolute; left: 0; right: 0; text-align: center; margin: 0; color: #EEF2FB; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); pointer-events: none; }
.gg-empty { top: 45%; }
.gg-hint { bottom: 10px; opacity: .85; }

/* ---------- forms: sign-in sheet, account settings (phase 4) ---------- */
.field { display: flex; }
.field .strong, .strong { font-weight: 700; }
.form-error { margin: 0; padding: 8px 10px; border-left: 3px solid var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.link-btn { padding: 0; border: 0; background: none; color: var(--teal-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; align-self: flex-start; min-height: 32px; }
.or-rule { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .08em; }
.or-rule::before, .or-rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; background: var(--panel-2); border-radius: var(--r-sm); }
.note svg { flex: none; color: var(--teal-text); margin-top: 1px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 13px; padding: 2px 6px; background: var(--panel-2); border-radius: 4px; word-break: break-all; }
.sheet .qr-box { align-self: center; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel-2); }
.gsi-wrap { position: relative; width: 100%; max-width: 400px; height: 48px; margin: 0 auto; }
.gsi-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: var(--r-sm, 12px); background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 15px; transition: background .15s, border-color .15s, transform .15s; pointer-events: none; }
.gsi-g { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; flex: none; }
.gsi-wrap:hover .gsi-face { background: color-mix(in srgb, var(--panel-2) 80%, var(--text) 8%); border-color: color-mix(in srgb, var(--line) 50%, var(--text) 30%); transform: translateY(-1px); }
.gsi-wrap:focus-within .gsi-face { outline: 2px solid var(--teal, #2dd4bf); outline-offset: 2px; }
.gsi-wrap.loading .gsi-face { opacity: .6; }
/* Google's own button, invisible but clickable, stretched over the face */
.gsi-slot { position: absolute; inset: 0; opacity: .001; overflow: hidden; color-scheme: light; display: flex; align-items: center; justify-content: center; transform: scaleY(1.2); }
.btn.wide { width: 100%; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
.signin .cta { width: 100%; }

/* ---------- shop extras: bundle, offers, gifts, custom amount (phase 4) ---------- */
.bundle-card { padding: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, var(--panel)), var(--panel) 65%); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); }
.chip-inc { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--panel-2); font-size: 12px; font-weight: 600; }
.chip-inc.mine { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.tag.offer { align-self: flex-start; background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--coral-text); }
.price-stack { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; }
.price-stack s { font-size: 11px; }
.custom-amount { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.custom-amount .input { max-width: 120px; }
.custom-amount .currency { font-weight: 700; color: var(--muted); }
select.input { appearance: auto; }

/* ---------- legal reader (impressum, terms, privacy) ---------- */
.legal { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
.legal-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface, var(--panel)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.legal-switch a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 6px; border-radius: var(--r-sm); text-align: center; text-decoration: none; color: var(--muted);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease; }
.legal-switch a[aria-current="page"] { background: var(--panel-2); color: var(--text); }
.legal-index { display: flex; flex-wrap: wrap; gap: 6px; }
.legal-index a { padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--text); background: var(--surface-2, var(--panel-2));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .18s var(--ease-out, ease), background-color .2s ease; }
.legal-index a:hover { background: var(--panel-2); transform: translateY(-1px); }
.legal-lead p { margin: 0; line-height: 1.55; }
.legal-section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 16px; line-height: 1.6; }
.legal-section h2 { margin: 2px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.legal-section p, .legal-section ul, .legal-section dl { margin: 0; font-size: 14.5px; max-width: 68ch; }
.legal-section ul { padding-left: 20px; display: grid; gap: 6px; }
.legal-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
.legal-kv dt { color: var(--muted); font-size: 13px; }
.legal-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.legal [data-review] { box-shadow: inset 3px 0 0 var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); padding: 6px 10px; border-radius: 4px; }
.legal-review-banner { margin: 0; padding: 8px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-text); font-weight: 700; font-size: 13px; }
@media (max-width: 420px) { .legal-kv { grid-template-columns: minmax(0, 1fr); } .legal-kv dd { margin-bottom: 6px; } }
.consent-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--panel-2); line-height: 1.45; cursor: pointer; }
.consent-row input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--teal); }
.pay:disabled { cursor: not-allowed; }

/* ---------- round: one sleek, glassy HUD (premium pass) ---------- */
/* soft vignettes keep the HUD readable over any street, no hard bars */
.round::before, .round::after { content: ""; position: absolute; left: 0; right: 0; z-index: 5; pointer-events: none; }
.round::before { top: 0; height: calc(150px + var(--safe-t)); background: linear-gradient(180deg, rgba(5, 8, 18, .62), rgba(5, 8, 18, 0)); }
.round::after { bottom: 0; height: calc(190px + var(--safe-b)); background: linear-gradient(0deg, rgba(5, 8, 18, .72), rgba(5, 8, 18, 0)); }
.hud-btn, .hud-stats, .view-switch, .place-chip, .mini-board, .strip-wrap {
  background: rgba(10, 15, 30, .52); border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(18px) saturate(1.35); backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06); }
.hud-stats { position: relative; overflow: hidden; padding: 8px 4px 10px; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); border-radius: 0; }
.hud-btn { border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: transform .18s var(--ease-out, ease), background-color .2s ease; }
.hud-btn.round-btn { clip-path: none; border-radius: 50%; }
.hud-btn:hover { background: rgba(30, 41, 70, .7); }
.hud-btn:active { transform: scale(.92); }
.hud-stats > div + div { border-left-color: rgba(255, 255, 255, .08); }
.hud-label { color: rgba(238, 242, 251, .62); font-size: 10.5px; }
.hud-num { font-size: 28px; letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); font-variant-numeric: tabular-nums; }
.hud-time { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .07); }
.hud-time-fill { display: block; height: 100%; background: linear-gradient(90deg, #2ED3C1, #7C9CFF); transform-origin: left center; transition: transform .25s linear, background .4s ease; }
.hud-time-fill.warn { background: linear-gradient(90deg, #FF5E54, #F6BA3E); }
.place-chip { padding: 7px 12px; border-radius: 999px; color: #FF8A80; }
.view-switch { padding: 4px; border-radius: 10px; }
.view-switch button { transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.view-switch button:active { transform: scale(.92); }
.mini-board { border-radius: 10px; }
/* bottom dock: floating, no opaque bar */
.round-bottom { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0 0 calc(14px + var(--safe-b)); gap: 10px; }
.strip-wrap { position: relative; margin: 0 12px; padding: 6px; border-radius: 14px; display: flex; align-items: center; }
.strip { flex: 1; min-width: 0; padding: 0 2px; gap: 6px; scroll-snap-type: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.strip-wrap.at-start .strip { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%); }
.strip-wrap.at-end .strip { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 100%); }
.strip-wrap.at-start.at-end .strip, .strip-wrap.no-overflow .strip { -webkit-mask-image: none; mask-image: none; }
.strip-wrap.dragging .strip { cursor: grabbing; }
.strip-wrap.dragging .obj { pointer-events: none; }
.strip-arrow { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #EEF2FB; display: none; align-items: center; justify-content: center;
  transition: opacity .2s ease, background-color .2s ease, transform .15s ease; }
.strip-arrow:hover { background: rgba(255, 255, 255, .16); }
.strip-arrow:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .strip-arrow { display: flex; } }
.strip-wrap.at-start .strip-arrow.prev, .strip-wrap.at-end .strip-arrow.next, .strip-wrap.no-overflow .strip-arrow { opacity: 0; pointer-events: none; }
.obj { height: 38px; padding: 0 14px; border-radius: 19px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #EEF2FB;
  transition: background-color .2s ease, border-color .2s ease, transform .18s var(--ease-out, ease), box-shadow .25s ease; user-select: none; -webkit-user-select: none; }
.obj:hover { background: rgba(255, 255, 255, .13); }
.obj:active { transform: scale(.95); }
.obj.current { background: #EEF2FB; color: #0A0F1E; border-color: #EEF2FB; box-shadow: 0 0 0 3px rgba(46, 211, 193, .45), 0 8px 22px rgba(46, 211, 193, .25); }
.obj.done { background: rgba(46, 211, 193, .14); color: #8FF0E5; border-color: rgba(46, 211, 193, .35); text-decoration: none; opacity: .75; }
.round-action { padding: 0 12px; }
.round .cta.spot { box-shadow: 0 14px 34px rgba(15, 148, 134, .45); }
@media (min-width: 900px) {
  .round-bottom { width: min(760px, calc(100% - 48px)); border-radius: 0; }
}

/* ---------- buttons: deep teal with white text (readable in both themes) ---------- */
:root { --cta-a: #13A393; --cta-b: #0A766B; --cta-ink: #FFFFFF; }
.cta { background: linear-gradient(180deg, var(--cta-a), var(--cta-b)); color: var(--cta-ink); text-shadow: 0 1px 2px rgba(0, 40, 36, .35); }
.cta.gold { background: linear-gradient(180deg, #F8C65A, #E9A92A); color: var(--gold-ink); text-shadow: none; }
.cta.quiet { background: var(--panel-2); color: var(--text); text-shadow: none; }
.cta.reject { background: linear-gradient(180deg, #D23B33, #A82A23); color: #FFFFFF; }
.btn.primary, .btn.price.primary { background: linear-gradient(180deg, var(--cta-a), var(--cta-b)); color: var(--cta-ink); border: 0; text-shadow: 0 1px 2px rgba(0, 40, 36, .3); }
.btn.primary:hover { filter: brightness(1.08); }
.play { box-shadow: 0 16px 38px rgba(10, 118, 107, .4); }
html[data-theme] .adcore-cookie-consent-btn-primary { background: linear-gradient(180deg, var(--cta-a), var(--cta-b)) !important; border-color: var(--cta-b) !important; color: #FFFFFF !important; }
/* light theme: secondary text darker on white glass */
:root[data-theme="light"] .segments span { background: #CFD6E4; }
.toast.good { background: linear-gradient(180deg, var(--cta-a), var(--cta-b)); color: #FFFFFF; }
.shots .shot[aria-pressed="true"]::after { background: var(--cta-b); color: #FFFFFF; }

/* ---------- controls with the same depth as the buttons ---------- */
/* switches: a recessed track, a glossy knob that springs across */
.switch { position: relative; width: 54px; height: 31px; padding: 3px; border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--off) 80%, #000), var(--off));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .28), inset 0 -1px 0 rgba(255, 255, 255, .08); transition: background .25s ease, box-shadow .25s ease; }
.switch::after { width: 25px; height: 25px; background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F1F4FA 55%, #D4DBE8 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 1px 1px rgba(0, 0, 0, .2), inset 0 -1px 1px rgba(0, 0, 0, .08); transition: transform .32s var(--ease-spring, cubic-bezier(.2, .9, .3, 1.35)); }
.switch[aria-checked="true"] { background: linear-gradient(180deg, var(--cta-a), var(--cta-b)); box-shadow: inset 0 2px 4px rgba(0, 40, 36, .35), 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); }
.switch[aria-checked="true"]::after { transform: translateX(23px); }
.switch:active::after { width: 29px; }
.switch[aria-checked="true"]:active::after { transform: translateX(19px); }
/* segmented controls: the chosen segment is a raised gradient key */
.seg { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18); }
.seg > button { transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease; }
.seg > button:active { transform: scale(.96); }
.seg > button[aria-selected="true"], .seg > button[aria-checked="true"] { background: linear-gradient(180deg, var(--cta-a), var(--cta-b)); color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(10, 118, 107, .35), inset 0 1px 0 rgba(255, 255, 255, .25); text-shadow: 0 1px 2px rgba(0, 40, 36, .3); }
/* sliders: gradient fill, recessed track, glossy thumb */
.range { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; --fill: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3);
  background: linear-gradient(90deg, var(--cta-a), var(--cta-b)) 0 / var(--fill) 100% no-repeat, var(--off); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--off); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3); }
.range::-moz-range-progress { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--cta-a), var(--cta-b)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F1F4FA 55%, #D4DBE8 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 3px color-mix(in srgb, var(--teal) 30%, transparent); transition: transform .15s ease; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #F1F4FA 55%, #D4DBE8 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }

/* ---------- Social › Leaderboards ---------- */
.board-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%); }
.board-chips::-webkit-scrollbar { display: none; }
.board-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface, var(--panel)); color: var(--text); font-weight: 700; font-size: 13px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease; }
.board-chip:active { transform: scale(.95); }
.board-chip.on { background: linear-gradient(180deg, var(--cta-a), var(--cta-b)); color: #FFFFFF; border-color: transparent; box-shadow: 0 6px 16px rgba(10, 118, 107, .35); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; padding-top: 22px; }
.podium-spot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0;
  animation: podium-in .8s var(--ease-spring, cubic-bezier(.2, .9, .3, 1.35)) both; animation-delay: var(--d, 0ms); }
.podium-spot strong { max-width: 100%; font-size: 13.5px; }
.podium-spot .small { color: var(--muted); font-weight: 700; }
.podium-spot .avatar { width: 52px; height: 52px; font-size: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3), 0 0 0 3px var(--surface, var(--panel)); }
.podium-spot.p1 .avatar { width: 66px; height: 66px; font-size: 22px; box-shadow: 0 8px 24px rgba(246, 186, 62, .45), 0 0 0 3px #F6BA3E; }
.podium-spot.p2 .avatar { box-shadow: 0 6px 18px rgba(0, 0, 0, .3), 0 0 0 3px #C9D2E3; }
.podium-spot.p3 .avatar { box-shadow: 0 6px 18px rgba(0, 0, 0, .3), 0 0 0 3px #D8955B; }
.podium-block { width: 100%; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; margin-top: 4px; border-radius: 10px 10px 4px 4px;
  font-family: var(--font-display); font-size: 26px; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.p1 .podium-block { height: 92px; background: linear-gradient(180deg, #F8C65A, #D9952A); }
.p2 .podium-block { height: 66px; background: linear-gradient(180deg, #D6DEEC, #9AA7BF); }
.p3 .podium-block { height: 50px; background: linear-gradient(180deg, #E4A672, #B4703D); }
.podium-spot.me strong { color: var(--teal-text); }
.podium-spot.empty { visibility: hidden; }
.crown { position: absolute; top: -22px; color: #F6BA3E; filter: drop-shadow(0 2px 6px rgba(246, 186, 62, .6)); animation: crown-bob 2.4s ease-in-out infinite; }
@keyframes podium-in { from { opacity: 0; transform: translateY(40px) scale(.9); } }
@keyframes crown-bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 54px; background: var(--surface, var(--panel));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: enter-up .6s var(--ease-out, ease) both; }
.rank-row .avatar { width: 34px; height: 34px; font-size: 13px; flex: none; }
.rank-row.me { box-shadow: inset 3px 0 0 var(--teal); background: color-mix(in srgb, var(--teal) 14%, var(--surface, var(--panel))); }
.rank-no { width: 30px; flex: none; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-value { font-family: var(--font-display); font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-you { display: flex; flex-direction: column; gap: 6px; }
.rank-skeleton { display: flex; flex-direction: column; gap: 6px; }
.rank-skeleton span { height: 54px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2, var(--panel-2)) 0%, color-mix(in srgb, var(--surface-2, var(--panel-2)) 60%, #fff) 50%, var(--surface-2, var(--panel-2)) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .podium-spot, .rank-row, .crown, .rank-skeleton span { animation: none !important; } }
/* board chips: drag/wheel/swipe, fades only where more chips hide */
.board-chips { cursor: grab; user-select: none; -webkit-user-select: none; scroll-behavior: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.board-chips.at-start { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%); }
.board-chips.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 100%); }
.board-chips.at-start.at-end, .board-chips.no-overflow { -webkit-mask-image: none; mask-image: none; }
.board-chips.dragging { cursor: grabbing; }
.board-chips.dragging .board-chip { pointer-events: none; }

/* AdCore sponsored tile (profile) */
.ad-tile-holder:empty { display: none; }
.ad-tile { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 12px 14px; padding: 14px 16px; text-decoration: none; color: inherit; transition: transform .18s ease, border-color .18s ease; }
.ad-tile:hover { transform: translateY(-1px); }
.ad-tile:focus-visible { outline: 2px solid var(--cta-a, #13A393); outline-offset: 2px; }
.ad-tile-img { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: #f2f6f8; padding: 8px; box-sizing: border-box; }
.ad-tile-img img { width: 100%; height: 100%; object-fit: contain; }
.ad-tile-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-tile-text strong { line-height: 1.2; }
.ad-tile-text .small { opacity: .8; }
.ad-tile-badge { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.ad-tile-cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; font-weight: 650; font-size: 14px; padding: 10px 14px; border-radius: 999px; background: linear-gradient(180deg, var(--cta-a, #13A393), var(--cta-b, #0A766B)); color: var(--cta-ink, #fff); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.ad-tile:not(:has(.ad-tile-img)) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .ad-tile { grid-template-columns: 56px minmax(0, 1fr) auto; } .ad-tile-cta { grid-column: auto; justify-self: end; } }

/* Google Pay: the official button fills the row like the other pay buttons */
.gpay-slot { min-height: 52px; display: grid; }
.gpay-slot[aria-busy="true"] { border-radius: var(--r-md); background: color-mix(in srgb, currentColor 8%, transparent); }
.gpay-slot > div, .gpay-slot button { width: 100%; min-height: 52px; }
.gpay-slot.busy { opacity: .55; pointer-events: none; }

/* Round: an objective already found → undo, or spot it again for half the points */
.spot-again { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.spot-again .undo { display: inline-flex; align-items: center; gap: 8px; padding-inline: 18px; }
.spot-again .cta.spot { min-width: 0; }
.spot-again-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; min-width: 0; text-align: left; }
.spot-again-label small { font-size: 12px; font-weight: 700; opacity: .85; letter-spacing: .02em; }
.obj-count { margin-left: 6px; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 18%, transparent); }
@media (max-width: 380px) { .spot-again .undo span { display: none; } .spot-again .undo { padding-inline: 14px; } }

/* Share sheet: live card preview, design picker, link */
.share-preview-wrap { display: grid; place-items: center; border-radius: var(--r-md); background: color-mix(in srgb, var(--bg) 70%, #000); padding: 8px; }
.share-preview { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.share-preview-wrap.story .share-preview { width: auto; max-width: 100%; height: min(44dvh, 420px); aspect-ratio: 1080 / 1920; }
.share-designs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.share-design { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 5px; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.share-design[aria-checked="true"] { border-color: var(--teal); color: var(--text); box-shadow: 0 0 0 3px var(--glow); }
.share-thumb { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 6px; }
.share-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.share-link[hidden] { display: none; }
.share-link .input { font-size: 13px; }
.share-sheet .cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.share-sheet .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 380px) { .share-design span { font-size: 11px; } }

/* Gallery: square pictures (Street View Static API), archived ones darker and last */
.gallery-grid .tile, .gallery-grid.three .tile { height: auto; aspect-ratio: 1 / 1; }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.tile-snap.loaded .tile-img { opacity: 1; }
.tile-open { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.tile-open .tile-snap { pointer-events: none; }
.tile-open:focus-visible { outline: 2px solid var(--cta-a, #13A393); outline-offset: -2px; }
.tile-tools { position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; gap: 6px; }
.tile-tools .tile-report { position: static; }
.tile.archived .tile-snap { filter: grayscale(.7) brightness(.45); }
.tile.archived figcaption { background: rgba(6, 9, 18, .9); }
.tile-tag { position: absolute; top: 6px; left: 6px; z-index: 2; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(10, 15, 30, .85); color: #C2CADD; border: 1px solid rgba(255, 255, 255, .12); }

/* gallery entry: today's Street View, big enough to explore */
.gallery-pano { min-height: min(62vh, 560px); border-radius: 8px; overflow: hidden; }

/* round end: each find as its Street View picture */
.shots .shot { width: 112px; height: 112px; }
.shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .35s ease; }
.shot-img.loaded { opacity: 1; }
.shots .shot:hover .shot-img { transform: scale(1.05); }
.shots .shot[aria-pressed="true"] .shot-img { filter: saturate(1.1); }

/* gallery globe: zoom buttons and Street View thumbnails on the pins */
.gg-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 200; }
.gg-zoom-btn { width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 85%, transparent); backdrop-filter: blur(6px); color: var(--text); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.gg-zoom-btn:hover:not(:disabled) { background: var(--panel-2); }
.gg-zoom-btn:disabled { opacity: .4; cursor: default; }
.gg-thumb { width: 26px; height: 26px; border-radius: 3px; object-fit: cover; flex: none; background: #8FBFE3; }

/* share as a challenge: the pitch above the card */
.share-pitch { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 16%, var(--panel-2)), var(--panel-2) 70%); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); }
.share-pitch > span:last-child { display: grid; gap: 2px; }
.share-pitch-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--gold); color: #1B1300; }
.share-preview-wrap { position: relative; overflow: hidden; }
.share-preview-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .10) 48%, transparent 60%); transform: translateX(-100%); }
@media (prefers-reduced-motion: no-preference) { .share-preview-wrap::after { animation: card-sheen 3.2s ease-in-out .6s infinite; } }
@keyframes card-sheen { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.share-design { transition: transform .15s ease, border-color .15s ease; }
.share-design:hover { transform: translateY(-2px); }

/* arriving with a friend's link */
.invite .share-preview-wrap { padding: 6px; }
.invite-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.invite-facts > div { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--r-sm); background: var(--panel-2); }
.invite-facts strong { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.invite-facts span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* round end: you against the friend who shared the round */
.vs-panel { display: grid; gap: 10px; border: 1px solid var(--line); }
.vs-panel.won { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: linear-gradient(140deg, color-mix(in srgb, var(--gold) 14%, var(--panel)), var(--panel) 65%); }
.vs-head { display: flex; gap: 8px; align-items: center; justify-content: center; }
.vs-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.vs-side { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.vs-name { font-weight: 700; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-pts { font-size: 30px; line-height: 1; }
.vs-side.me .vs-pts { color: var(--gold); }
.vs-x { font-size: 20px; color: var(--muted); }

/* gallery globe: tiles find a free spot around their find; a line runs to the exact place */
.gg-frame { transform-origin: 0 0; will-change: transform; }
.gg-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.gg-lines line { stroke: #FFFFFF; stroke-width: 1.6; stroke-linecap: round; opacity: .85; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .7)); }
.gg-lines circle { fill: #FF5E54; stroke: #FFFFFF; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
:root[data-theme="light"] .gg-lines line { stroke: #0A0F1E; opacity: .6; filter: none; }
.gallery-globe { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gg-thumb { -webkit-user-drag: none; pointer-events: none; }
/* zoom buttons top right, clear of the hint */
.gg-zoom { top: 12px; bottom: auto; }
.gg-hint { transition: opacity .4s ease; }
.gg-hint.gone { opacity: 0; }
