/* Stampede Showdown results screen (2026-10-30). Brand: forest greens, cream text, Fraunces / Inter / JetBrains Mono.
   Dark stage for screen sharing; cards are a lighter forest, never light boxes on dark. Corners 6 to 8px. */
:root{--deep:#0b2a20;--card:#123a2c;--card2:#164534;--ink:#f6f3e4;--muted:#a9c4b3;--grid:#24513f;--gold:#f2c14e;--s0:#c08a14;--s1:#4f97dc;--up:#3cc47c;--dn:#f0846a}
*{box-sizing:border-box}
html,body{margin:0;background:var(--deep);color:var(--ink);font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html.sw-screen,html.sw-screen body{height:100%;overflow:hidden}
a{color:var(--ink)}
.sw-wait{padding:40px 24px;font-size:18px;color:var(--muted)}
.up{color:var(--up)}.dn{color:var(--dn)}.flat{color:var(--muted)}
.sym{font-family:'JetBrains Mono',monospace;font-weight:700}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sw-logo{display:flex;align-items:center;gap:12px;text-decoration:none}
.sw-nav{display:flex;flex-wrap:wrap;gap:6px 22px}.sw-nav a{color:var(--ink);font-weight:700;text-decoration:none;border-bottom:2px solid rgba(242,193,78,.55)}.sw-nav a:hover{border-bottom-color:#f2c14e}
.sw-logo .m{height:52px;width:auto}.sw-logo .w{height:40px;width:auto}
.sw-tag{display:inline-block;font:700 15px 'JetBrains Mono',monospace;letter-spacing:.08em;text-transform:uppercase;background:var(--gold);color:#2a1d00;border-radius:6px;padding:5px 10px;vertical-align:middle}
.vcode{font:700 .78em 'JetBrains Mono',monospace;color:var(--gold);text-decoration:none;white-space:nowrap;border-bottom:1px solid rgba(242,193,78,.45)}
a.vcode:hover{border-bottom-color:var(--gold)}
.sw-foot{display:flex;justify-content:space-between;gap:24px;color:var(--muted);font-size:20px}
.sw-foot a,.sw-foot span:first-child{color:var(--ink);font-weight:700;text-decoration:none}

/* ---------- the 1920x1080 stage, scaled to the window by winner.js ---------- */
.sw-stage{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0;padding:44px 72px 40px;display:flex;flex-direction:column;
  background:radial-gradient(1100px 620px at 18% 30%,rgba(242,193,78,.10),transparent 70%),radial-gradient(900px 600px at 90% 90%,rgba(47,174,107,.10),transparent 70%),var(--deep)}
.sw-head{display:flex;justify-content:space-between;align-items:center}
.sw-dates{margin:0;font:600 21px 'Inter',sans-serif;color:var(--muted)}
.sw-title{margin:18px 0 24px}
.sw-title h1{margin:0;font:800 70px/1.02 'Fraunces',Georgia,serif;letter-spacing:-.01em}
.sw-hl{margin:12px 0 0;font:700 40px/1.15 'Inter',sans-serif;color:var(--gold)}
.sw-hl b{font-family:'JetBrains Mono',monospace;font-weight:700}
.sw-main{flex:1;display:grid;grid-template-columns:1000px minmax(0,1fr);gap:36px;min-height:0}
.sw-hosts{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.sw-host{background:var(--card);border-radius:8px;padding:26px 28px;display:flex;flex-direction:column;min-width:0}
.sw-host.win{background:var(--card2);box-shadow:0 0 0 3px var(--gold),0 24px 60px rgba(0,0,0,.35)}
.sw-who{display:flex;align-items:center;gap:20px}
.sw-who img{width:124px;height:124px;border-radius:8px;object-fit:cover;object-position:50% 25%;flex:none}
.sw-who h2{margin:0 0 10px;font:800 46px/1 'Fraunces',Georgia,serif}
.sw-bal{margin:22px 0 6px;font:700 64px/1 'JetBrains Mono',monospace;letter-spacing:-.03em}
.sw-chg{margin:0;font:700 24px 'Inter',sans-serif}
.sw-days{margin:16px 0 0;border-collapse:collapse;width:100%;font:600 21px 'JetBrains Mono',monospace}
.sw-days th{text-align:left;font:600 18px 'Inter',sans-serif;color:var(--muted);padding:4px 0;width:22%}
.sw-days td{padding:4px 0;text-align:right}
.sw-days td:last-child{color:var(--muted);font-weight:500;width:40%}
.portrait .sw-days{display:none}
.sw-st{margin:auto 0 0;padding-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}
.sw-st .wide{grid-column:1/-1}
.sw-st dt{font:600 17px 'Inter',sans-serif;color:var(--muted);margin-bottom:4px}
.sw-st dd{margin:0;font:700 30px 'JetBrains Mono',monospace}
.sw-st dd{white-space:nowrap}.sw-st .wide dd{white-space:normal}
.sw-st dd small{font-size:16px;color:var(--muted);font-weight:500;letter-spacing:-.02em}
.sw-st .wide dd{font-size:24px;line-height:1.4}
.sw-side{display:flex;flex-direction:column;gap:22px;min-width:0}
.sw-chart{background:var(--card);border-radius:8px;padding:20px 24px 10px}
.sw-ch{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.sw-ch h3{margin:0;font:700 22px 'Inter',sans-serif}
.sw-leg{display:flex;gap:18px;font:600 17px 'Inter',sans-serif;color:var(--muted)}
.sw-leg span::before{content:"";display:inline-block;width:18px;height:4px;border-radius:2px;margin-right:8px;vertical-align:4px}
.sw-leg .k0::before{background:var(--s0)}.sw-leg .k1::before{background:var(--s1)}
.sw-svg{display:block;width:100%;height:auto;overflow:visible}
.sw-svg .gl{stroke:var(--grid);stroke-width:1}
.sw-svg .gl.base{stroke:#3f6f5b;stroke-dasharray:6 6}
.sw-svg .yl{fill:var(--muted);font:500 15px 'JetBrains Mono',monospace;text-anchor:end}
.sw-svg .xl{fill:var(--muted);font:600 16px 'Inter',sans-serif;text-anchor:middle}
.sw-svg path{fill:none;stroke-width:4;stroke-linejoin:round;stroke-linecap:round}
.sw-svg .s0 path{stroke:var(--s0)}.sw-svg .s1 path{stroke:var(--s1)}
.sw-svg .pt{stroke:var(--card);stroke-width:3}
.sw-svg .s0 .pt{fill:var(--s0)}.sw-svg .s1 .pt{fill:var(--s1)}
.sw-svg .hit{fill:transparent;cursor:default}
.sw-svg .end{fill:var(--ink);font:700 19px 'Inter',sans-serif}
.sw-svg .endv{fill:var(--muted);font:700 17px 'JetBrains Mono',monospace}
.sw-call{flex:1;display:flex;flex-direction:column;justify-content:center;background:var(--card);border-radius:8px;padding:24px 28px;border-left:6px solid var(--dn)}
.sw-call h3{margin:0 0 12px;font:800 32px/1.2 'Fraunces',Georgia,serif}
.sw-call h3 .big{display:block;margin-top:6px;white-space:nowrap}
.sw-call h3 .sym,.sw-call h3 .dn{font:700 44px 'JetBrains Mono',monospace;letter-spacing:-.02em}
.sw-call .lesson{margin:0 0 10px;font:700 25px/1.3 'Inter',sans-serif}
.sw-call .detail{margin:0;font:500 20px/1.45 'Inter',sans-serif;color:var(--muted)}
.sw-stage .sw-foot{margin-top:22px}

/* load animation: things rise in, lines draw. Everything is visible at rest and with motion turned off. */
@keyframes swUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes swDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
html:not(.sw-still) .sw-title,html:not(.sw-still) .sw-host,html:not(.sw-still) .sw-chart,html:not(.sw-still) .sw-call{animation:swUp .7s cubic-bezier(.2,.7,.2,1) both}
html:not(.sw-still) .sw-host:nth-child(2){animation-delay:.12s}
html:not(.sw-still) .sw-chart{animation-delay:.25s}
html:not(.sw-still) .sw-call{animation-delay:1.4s}
html:not(.sw-still) .sw-svg path{stroke-dasharray:1;animation:swDraw 1.6s .45s ease-out both}
html:not(.sw-still) .sw-tag{animation:swUp .5s 1.5s both}
@media (prefers-reduced-motion:reduce){*{animation:none!important}}

/* ---------- phones and narrow windows: no scaling, one column ---------- */
html.sw-flow,html.sw-flow body{height:auto;overflow:auto}
html.sw-flow .sw-stage{position:static;width:auto;height:auto;transform:none!important;padding:18px 16px 28px;display:block}
html.sw-flow .sw-head{flex-direction:column;align-items:flex-start;gap:8px}
html.sw-flow .sw-logo .m{height:34px}html.sw-flow .sw-logo .w{height:26px}
html.sw-flow .sw-dates{font-size:13px}
html.sw-flow .sw-title{margin:16px 0 18px}
html.sw-flow .sw-title h1{font-size:34px}
html.sw-flow .sw-hl{font-size:22px;margin-top:6px}
html.sw-flow .sw-main{display:block}
html.sw-flow .sw-hosts{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:14px}
html.sw-flow .sw-host{padding:14px 12px}
html.sw-flow .sw-host.win{box-shadow:0 0 0 2px var(--gold)}
html.sw-flow .sw-who{flex-direction:column;align-items:flex-start;gap:8px}
html.sw-flow .sw-who img{width:100%;height:110px}
html.sw-flow .sw-who h2{font-size:22px;margin-bottom:6px}
html.sw-flow .sw-tag{font-size:11px;padding:3px 7px}
html.sw-flow .sw-bal{font-size:clamp(20px,6.2vw,30px);margin:12px 0 4px}
html.sw-flow .sw-chg{font-size:13px}
html.sw-flow .sw-st{grid-template-columns:minmax(0,1fr);gap:10px;padding-top:14px}
html.sw-flow .sw-st dt{font-size:12.5px}
html.sw-flow .sw-st dd{font-size:17px}html.sw-flow .sw-st dd small{font-size:12px}
html.sw-flow .sw-st .wide dd{font-size:14px}
html.sw-flow .sw-side{gap:14px}
html.sw-flow .sw-chart{padding:14px 12px 6px}
html.sw-flow .sw-ch{flex-direction:column;gap:6px}
html.sw-flow .sw-ch h3{font-size:17px}html.sw-flow .sw-leg{font-size:13px}
html.sw-flow .sw-svg .yl,html.sw-flow .sw-svg .xl{font-size:22px}
html.sw-flow .sw-svg .end{font-size:26px}html.sw-flow .sw-svg .endv{font-size:24px}
html.sw-flow .sw-call{padding:16px;border-left-width:4px}
html.sw-flow .sw-call h3{font-size:21px}html.sw-flow .sw-call h3 .sym,html.sw-flow .sw-call h3 .dn{font-size:26px}
html.sw-flow .sw-days{font-size:12.5px;margin-top:12px}html.sw-flow .sw-days th{font-size:12px;padding:3px 0}html.sw-flow .sw-days td{padding:3px 0}html.sw-flow .sw-days td:last-child{display:none}
html.sw-flow .sw-call .lesson{font-size:18px}html.sw-flow .sw-call .detail{font-size:15px}
html.sw-flow .sw-foot{flex-direction:column;gap:6px;font-size:14px;margin-top:20px}

/* ---------- social card 1080x1350 ---------- */
html.sw-portrait,html.sw-portrait body,html.sw-wide,html.sw-wide body{overflow:hidden}
.sw-card{position:relative;overflow:hidden;background:radial-gradient(900px 600px at 20% 22%,rgba(242,193,78,.12),transparent 70%),radial-gradient(800px 600px at 90% 95%,rgba(47,174,107,.12),transparent 70%),var(--deep)}
.sw-card.portrait{width:1080px;height:1350px;padding:52px 64px 44px;display:flex;flex-direction:column}
.portrait .sw-title{margin:30px 0 30px}
.portrait .sw-title h1{font-size:68px}
.portrait .sw-hl{font-size:40px}
.portrait .sw-hosts{gap:22px}
.portrait .sw-host{padding:22px 24px}
.portrait .sw-who img{width:112px;height:112px}
.portrait .sw-who h2{font-size:40px}
.portrait .sw-bal{font-size:52px;margin-top:22px}
.portrait .sw-chg{font-size:21px}
.portrait .sw-st{padding-top:18px;gap:12px 14px}
.portrait .sw-st dd{font-size:26px}.portrait .sw-st .wide dd{font-size:21px}
.portrait .sw-chart{margin-top:22px;padding:18px 22px 6px}
.portrait .sw-call{flex:none;margin-top:22px;padding:20px 24px}
.portrait .sw-call h3{font-size:30px}.portrait .sw-call h3 .sym,.portrait .sw-call h3 .dn{font-size:38px}
.portrait .sw-call .lesson{font-size:25px;margin-bottom:6px}
.portrait .sw-call .detail{font-size:19px}
.portrait .sw-foot{margin-top:auto;font-size:19px}

/* ---------- social card 1200x630 ---------- */
.sw-card.wide{width:1200px;height:630px;padding:40px 52px 30px;display:grid;grid-template-columns:minmax(0,1fr) 470px;grid-template-rows:1fr auto;gap:0 40px}
.wide .sw-l{display:flex;flex-direction:column}
.wide .sw-logo .m{height:44px}.wide .sw-logo .w{height:34px}
.wide h1{margin:26px 0 0;font:800 56px/1.02 'Fraunces',Georgia,serif}
.wide .sw-hl{font-size:34px;margin-top:12px}
.sw-sub{margin:14px 0 0;font:500 19px/1.45 'Inter',sans-serif;color:var(--muted)}
.sw-wcall{margin:auto 0 0;background:var(--card);border-left:6px solid var(--dn);border-radius:8px;padding:16px 20px;font:600 20px/1.4 'Inter',sans-serif;color:var(--muted)}
.sw-wcall b{color:var(--ink);font-family:'JetBrains Mono',monospace}
.wide .sw-r{display:flex;flex-direction:column;justify-content:center;gap:18px}
.sw-mini{display:flex;gap:20px;align-items:center;background:var(--card);border-radius:8px;padding:18px 20px}
.sw-mini.win{background:var(--card2);box-shadow:0 0 0 3px var(--gold)}
.sw-mini img{width:120px;height:120px;border-radius:8px;object-fit:cover;object-position:50% 25%}
.sw-mini p{margin:0}
.sw-mini .nm{font:800 32px/1 'Fraunces',Georgia,serif}
.sw-mini .sw-tag{font-size:13px;padding:4px 8px;margin-left:6px;vertical-align:4px}
.sw-mini .sw-bal{margin:12px 0 6px;font-size:42px}
.sw-mini .sw-chg{font-size:18px}
.wide .sw-foot{grid-column:1/-1;margin-top:22px;font-size:17px}
