:root {
    --bg: #100b08;
    --panel: #1b120d;
    --panel-2: #25160f;
    --ink: #fff9ed;
    --muted: #b7a99b;
    --orange: #ff5a00;
    --orange-2: #ff8a00;
    --gold: #ffc55f;
    --blue: #74bfff;
    --line: rgba(255, 218, 173, .16);
    --shadow: rgba(255, 90, 0, .35);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% 18%, #3a1b0d 0, var(--bg) 36rem); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .12; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.site-header { height: 4.7rem; display: flex; justify-content: space-between; align-items: center; max-width: 70rem; margin: auto; padding: 0 1.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.brand b { color: var(--orange); }
.brand-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); letter-spacing: -.08em; font-size: .68rem; box-shadow: 0 0 1rem var(--shadow); }
.live-pill { display: flex; align-items: center; gap: .42rem; border: 1px solid var(--line); border-radius: 99px; color: var(--gold); padding: .45rem .7rem; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.live-pill i, .section-title > span::before { width: .42rem; height: .42rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 .7rem var(--orange); animation: blink 1.2s infinite; }
.live-pill span { color: var(--muted); }
.screen-shell { width: min(100% - 2rem, 31rem); margin: 0 auto; padding: 1.25rem 0 3.5rem; }
.hero { text-align: center; }
.hero-copy { margin: 1.3rem auto 0; max-width: 28rem; }
.eyebrow { margin: 0 0 .65rem; color: var(--gold); font-size: .62rem; font-weight: 850; text-transform: uppercase; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .8rem; font-size: clamp(2.45rem, 10.5vw, 4.4rem); line-height: .96; letter-spacing: -.075em; }
h1 span, h2 span { color: var(--orange); }
.intro { max-width: 32ch; margin: 0 auto; color: var(--muted); font-size: .96rem; line-height: 1.42; }
.vonk-stage { position: relative; height: 22.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; }
.vonk-aura { position: absolute; width: 16rem; height: 16rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 105, 0, .26) 0, rgba(255, 90, 0, .08) 34%, transparent 68%); animation: aura 2.8s ease-in-out infinite; filter: blur(8px); }
.vonk { position: relative; width: 9rem; height: 14rem; filter: drop-shadow(0 0 1.5rem rgba(255, 90, 0, .75)); animation: breathe 2.4s ease-in-out infinite; }
.flame { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 58% 52% 45% 45%; clip-path: polygon(50% 0, 71% 22%, 92% 55%, 77% 100%, 23% 100%, 7% 58%, 30% 35%); }
.outer { width: 8.5rem; height: 11.5rem; background: linear-gradient(135deg, #ffba08 2%, #ff5a00 43%, #ce2700 78%); animation: flicker 2s ease-in-out infinite alternate; }
.middle { width: 5.8rem; height: 8.6rem; bottom: .7rem; background: linear-gradient(135deg, #fff0ad, #ff9f0a 44%, #ff5a00); animation: flicker 1.45s .15s ease-in-out infinite alternate-reverse; }
.inner { width: 3.7rem; height: 5.3rem; bottom: 1.2rem; background: linear-gradient(135deg, #fff, #ffdd8b 56%, #ff9500); animation: flicker 1.1s .08s ease-in-out infinite alternate; }
.core { width: 1.9rem; height: 2.9rem; bottom: 1rem; background: linear-gradient(135deg, #fff, #aadaff 80%); box-shadow: 0 0 .8rem rgba(144, 211, 255, .65); }
.sparks i { position: absolute; left: 50%; top: 56%; width: .24rem; height: .24rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 .55rem var(--orange); animation: sparks 2.6s linear infinite; }
.sparks i:nth-child(2) { margin-left: 2.5rem; animation-delay: -.4s; }.sparks i:nth-child(3) { margin-left: -3rem; animation-delay: -1.2s; }.sparks i:nth-child(4) { margin-left: 3.8rem; animation-delay: -1.8s; }.sparks i:nth-child(5) { margin-left: -4.4rem; animation-delay: -.8s; }.sparks i:nth-child(6) { margin-left: 1.2rem; animation-delay: -2.2s; }
.level { position: absolute; bottom: .1rem; display: grid; gap: .3rem; text-align: center; }
.level span { color: var(--muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.level b { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; }
.holder-card { position: relative; margin: .7rem auto 1.2rem; padding: .95rem 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.holder-card p, .holder-card h2 { margin-bottom: .12rem; }
.holder-card p, .holder-card span { color: var(--muted); font-size: .72rem; }
.holder-card h2 { color: var(--ink); font-size: 1.7rem; letter-spacing: -.06em; }
.holder-card b { color: var(--orange); }
.hero-actions { display: grid; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; border: 0; border-radius: .35rem; padding: 1rem 1.15rem; font-weight: 850; text-align: left; }
.button span { font-size: 1.25em; }
.button.primary { color: #231005; background: var(--orange); box-shadow: 0 .7rem 1.9rem rgba(255, 90, 0, .18); }
.button.primary:hover { background: #ff751c; transform: translateY(-1px); }
.full { width: 100%; }
.text-link, .back-link, .switch-link { color: var(--muted); font-size: .76rem; font-weight: 750; }
.story-strip { padding: 2.4rem max(1rem, calc((100% - 29rem)/2)) 3rem; background: linear-gradient(135deg, rgba(255, 90, 0, .12), rgba(255, 90, 0, .02)); border-top: 1px solid var(--line); }
.story-strip h2 { max-width: 14ch; margin-bottom: .55rem; font-size: 1.75rem; line-height: 1; letter-spacing: -.065em; }
.story-strip > p:last-child { max-width: 42ch; margin-bottom: 0; color: var(--muted); font-size: .88rem; line-height: 1.42; }
.choose h1 { margin-top: 1.4rem; max-width: 9ch; }
.choose .intro { margin: 0; }
.map-wrap { position: relative; width: 11.5rem; height: 13.5rem; margin: 1rem auto; }
.map-wrap img { width: 100%; height: 100%; object-fit: contain; opacity: .21; filter: invert(53%) sepia(88%) saturate(4152%) hue-rotate(359deg) brightness(103%) contrast(106%); }
.map-dot { position: absolute; width: .45rem; height: .45rem; background: var(--orange); border: 1px solid #ffc66a; border-radius: 50%; box-shadow: 0 0 .8rem var(--orange); }
.map-dot.hot { width: .65rem; height: .65rem; background: white; box-shadow: 0 0 1.1rem .3rem var(--orange); }
.city-form { display: grid; gap: .72rem; }
.location-button { border: 1px solid var(--orange); border-radius: .35rem; padding: .8rem; color: var(--gold); background: rgba(255,90,0,.09); font-size: .75rem; font-weight: 800; }
.location-button:disabled { opacity: .55; }
.location-note { margin: -.25rem 0 .25rem; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.city-form label { font-size: .65rem; color: var(--gold); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.city-form input[type="search"] { width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: 1rem; color: var(--ink); background: rgba(255, 255, 255, .045); outline: 0; }
.city-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 90, 0, .16); }
.city-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .42rem; }
.city-option { display: grid; gap: .24rem; padding: .75rem; border: 1px solid var(--line); border-radius: .25rem; color: var(--ink); background: transparent; text-align: left; }
.city-option:hover, .city-option.selected { border-color: var(--orange); background: rgba(255, 90, 0, .12); }
.city-option small { color: var(--muted); font-size: .63rem; }
.city-form .button:disabled { opacity: .28; cursor: not-allowed; }
.context-bar, .scoreboard, .section-title, .share-card-top { display: flex; align-items: center; justify-content: space-between; }
.city-dashboard h1 { margin: 1.1rem 0 0; }
.city-position { color: var(--muted); }.city-position strong { color: var(--orange); font-size: 1.5em; }
.rival-card { margin: 2rem 0 1rem; padding: 1rem; background: linear-gradient(135deg, rgba(255, 90, 0, .13), transparent); border: 1px solid var(--line); }
.rival-card p { margin-bottom: .3rem; color: var(--gold); font-size: .6rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.rival-card h2 { margin-bottom: .25rem; font-size: 1.75rem; letter-spacing: -.055em; }
.rival-card span { color: var(--muted); font-size: .73rem; }
.progress { height: .2rem; margin-top: 1rem; overflow: hidden; background: rgba(255, 255, 255, .1); }.progress i { display: block; height: 100%; background: var(--orange); }
.ranking { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.section-title h2 { margin-bottom: 0; font-size: 1.28rem; letter-spacing: -.045em; }
.section-title > span { display: flex; align-items: center; gap: .4rem; color: var(--gold); font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title > span::before { content: ""; }
.ranking ol { display: grid; gap: .25rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.ranking li { display: grid; grid-template-columns: 1.2rem 1fr auto; gap: .65rem; align-items: center; padding: .72rem .55rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ranking li > b { color: var(--muted); font-size: .8rem; }
.ranking li span { display: grid; gap: .12rem; font-size: .86rem; font-weight: 800; }
.ranking li small { color: var(--muted); font-size: .59rem; font-weight: 600; }
.ranking li em { color: var(--gold); font-size: .72rem; font-style: normal; font-weight: 850; }
.ranking li.is-holder { background: linear-gradient(90deg, rgba(255, 90, 0, .2), transparent); }
.ranking li.is-holder > b { color: var(--orange); }
.ranking li.is-user { outline: 1px solid var(--orange); }
.scoreboard { padding: .65rem .85rem; border: 1px solid var(--line); border-radius: .35rem; font-size: .77rem; }
.scoreboard span, .scoreboard em { color: var(--gold); font-size: .62rem; font-style: normal; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.scoreboard b { letter-spacing: .09em; }
.match-mode .vonk-stage { height: 21rem; }
.match-holder { display: grid; gap: .25rem; margin: .55rem 0 1rem; text-align: center; }
.match-holder small { color: var(--muted); font-size: .66rem; }.match-holder b { color: var(--ink); font-size: 1.45rem; letter-spacing: -.04em; }
.flame-button { display: grid; place-items: center; width: 100%; padding: .9rem; border: 1px solid var(--orange); border-radius: .4rem; color: var(--ink); background: linear-gradient(135deg, rgba(255, 90, 0, .22), rgba(255, 90, 0, .05)); }
.flame-button i { font-size: 1.55rem; font-style: normal; }.flame-button span { font-size: .95rem; font-weight: 850; }.flame-button small { margin-top: .17rem; color: var(--muted); font-size: .62rem; }
.flame-button.pulse { animation: button-pulse .55s ease-out; }
.demo-goal { width: 100%; margin-top: .75rem; border: 0; color: var(--muted); background: transparent; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; }
.toast { position: fixed; left: 50%; bottom: 1rem; z-index: 20; max-width: calc(100% - 2rem); transform: translate(-50%, 5rem); padding: .85rem 1rem; border: 1px solid rgba(255, 143, 55, .35); border-radius: .35rem; color: var(--gold); background: rgba(30, 16, 9, .94); font-size: .76rem; font-weight: 750; transition: transform .35s ease; }
.toast.show { transform: translate(-50%, 0); }
.goal-mode { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; align-content: center; overflow: hidden; color: white; background: radial-gradient(circle, #fff 0, #ff9d00 12%, #ff4d00 38%, #1b0700 100%); text-align: center; transform: scale(0); opacity: 0; transition: opacity .3s; }
.goal-mode.active { transform: scale(1); opacity: 1; animation: goal-shake .6s ease-in-out 2; }
.goal-mode p { position: relative; z-index: 2; margin-bottom: 0; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .28em; }
.goal-mode h2 { position: relative; z-index: 2; margin: 0; font-size: clamp(6rem, 30vw, 12rem); line-height: .9; letter-spacing: -.12em; text-shadow: 0 0 2rem white; }
.goal-mode strong { position: relative; z-index: 2; font-size: .95rem; }.goal-mode button { position: relative; z-index: 2; margin-top: 4rem; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; padding: .75rem 1rem; color: white; background: rgba(0,0,0,.2); font-size: .72rem; font-weight: 850; }
.goal-rays { position: absolute; width: 160vw; height: 160vw; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.7) 0 2deg, transparent 2deg 12deg); animation: spin 5s linear infinite; }
.share-screen h1 { margin: 1.1rem 0; font-size: 2.6rem; }
.share-card { position: relative; height: 29rem; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 1rem 0; overflow: hidden; border: 1px solid rgba(255, 209, 143, .28); border-radius: .4rem; background: radial-gradient(circle at 50% 44%, rgba(255, 142, 0, .62), transparent 28%), linear-gradient(160deg, #351206, #120a08 70%); text-align: center; box-shadow: 0 1rem 3rem rgba(0,0,0,.22); }
.share-card-top { position: absolute; top: 0; width: 100%; padding: 1rem; color: var(--gold); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.mini-vonk { position: relative; width: 7rem; height: 9rem; margin-bottom: .5rem; filter: drop-shadow(0 0 1.3rem var(--orange)); }
.mini-vonk i { position: absolute; left: 50%; bottom: 0; border-radius: 58% 52% 45% 45%; clip-path: polygon(50% 0, 71% 22%, 92% 55%, 77% 100%, 23% 100%, 7% 58%, 30% 35%); transform: translateX(-50%); background: linear-gradient(135deg, #fff, var(--orange-2), #e33100); }
.mini-vonk i:nth-child(1) { width: 6rem; height: 8rem; }.mini-vonk i:nth-child(2) { width: 4rem; height: 5.6rem; background: linear-gradient(135deg, #fff, #ffc55f, var(--orange)); }.mini-vonk i:nth-child(3) { width: 2rem; height: 3rem; background: white; }
.share-card p { margin-bottom: .3rem; color: var(--gold); font-size: .65rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.share-card h2 { margin-bottom: 1rem; font-size: 3.2rem; line-height: .88; letter-spacing: -.085em; }.share-card small, .share-note { color: var(--muted); font-size: .7rem; }
.share-note { max-width: 36ch; margin: .75rem auto 0; text-align: center; line-height: 1.4; }
.heatmap { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.heatmap-map { position: relative; width: 13rem; height: 15.5rem; margin: 1rem auto; }
.heatmap-map img { width: 100%; height: 100%; object-fit: contain; opacity: .15; filter: invert(53%) sepia(88%) saturate(4152%) hue-rotate(359deg) brightness(103%) contrast(106%); }
.heat-point { position: absolute; width: .55rem; height: .55rem; border: 1px solid var(--gold); border-radius: 50%; background: var(--orange); box-shadow: 0 0 var(--heat) calc(var(--heat) / 3) rgba(255, 90, 0, .42); }
.heat-point.hot { background: white; box-shadow: 0 0 var(--heat) calc(var(--heat) / 2) rgba(255, 90, 0, .68); }
.heatmap-note { color: var(--muted); font-size: .73rem; line-height: 1.45; }.heatmap-note b { color: var(--gold); }
.admin-shell { width: min(100% - 2rem, 33rem); margin: 3rem auto; }.admin-shell h1 { max-width: 8ch; }
.admin-panel { display: grid; gap: 1rem; padding: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.admin-panel label { display: grid; gap: .42rem; color: var(--gold); font-size: .62rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.admin-panel input, .admin-panel select { width: 100%; border: 1px solid var(--line); border-radius: .3rem; padding: .85rem; color: var(--ink); background: var(--panel); }
.admin-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .7rem; }.admin-score b { padding-bottom: .8rem; color: var(--orange); }
.goal-admin-button { border: 1px solid var(--orange); border-radius: .3rem; padding: 1rem; color: var(--ink); background: rgba(255,90,0,.15); font-weight: 850; }
.admin-message { padding: .8rem; border: 1px solid rgba(255,197,95,.35); color: var(--gold); background: rgba(255,197,95,.06); font-size: .75rem; }
.admin-note { margin-top: 1rem; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-top: .8rem; }
.admin-stats span { display: grid; gap: .2rem; padding: .7rem .45rem; border: 1px solid var(--line); color: var(--muted); font-size: .61rem; text-align: center; text-transform: uppercase; letter-spacing: .07em; }
.admin-stats b { color: var(--gold); font-size: 1.1rem; letter-spacing: 0; }
.vonk-stage.reacted { animation: stage-pulse .55s ease-out; }
@keyframes breathe { 50% { transform: scale(1.08) translateY(-.35rem); } }
@keyframes flicker { to { transform: translateX(-50%) skew(-4deg, -3deg) scale(.95, 1.08); } }
@keyframes aura { 50% { transform: scale(1.22); opacity: .58; } }
@keyframes sparks { 0% { transform: translate(0, 0) scale(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-1rem, -9rem) scale(1.8); opacity: 0; } }
@keyframes blink { 50% { opacity: .38; } }
@keyframes button-pulse { 50% { transform: scale(.96); background: rgba(255, 90, 0, .55); } }
@keyframes stage-pulse { 45% { filter: brightness(1.8); transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes goal-shake { 20% { transform: translateX(-.7rem); } 40% { transform: translateX(.65rem); } 60% { transform: translateX(-.4rem); } 80% { transform: translateX(.3rem); } }
@media (min-width: 48rem) {
    .hero { width: min(100% - 4rem, 67rem); display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "copy vonk" "card vonk" "actions vonk"; gap: .5rem 3rem; align-items: center; padding-top: 4rem; text-align: left; }
    .hero-copy { grid-area: copy; margin: 0; }.hero .vonk-stage { grid-area: vonk; height: 34rem; transform: scale(1.22); }.hero .holder-card { grid-area: card; width: 100%; text-align: left; }.hero-actions { grid-area: actions; }
    .intro { margin: 0; }.story-strip { padding-left: max(2rem, calc((100% - 67rem)/2)); }
}
