/* RZHK — single stylesheet. Tokens, base, layout, components. No deps.
   Ported from the Claude Design project "Itsrzhk creator hub redesign"
   (export/rzhk.css) with site-specific additions at the bottom. */
:root {
  --bg:#0a0a0b; --surface:#111216; --surface-2:#17181d; --track:#1c1e24;
  --border:#24262c; --border-strong:#363941; --border-hover:#6b6f78;
  --text:#f2f3f5; --text-muted:#a3a7ae; --text-faint:#858994;
  --silver:#d9dbe0; --silver-fill:linear-gradient(90deg,#8d929c,#e6e8ec 60%,#c9ccd3);
  --silver-text:linear-gradient(180deg,#f2f3f5,#a3a7ae);
  --accent:#6ea1ff; --live:#e03131;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --fs-display:clamp(40px,6vw,56px); --fs-h1:clamp(32px,4vw,40px); --fs-h2:clamp(22px,3vw,24px);
  --fs-h3:18px; --fs-body:16px; --fs-sm:14px; --fs-xs:13px; --fs-label:11px;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:20px; --s6:24px; --s8:32px; --s12:48px; --s16:64px;
  --r-tag:4px; --r-btn:6px; --r-card:10px; --r-panel:14px; --r-pill:999px;
  --container:1140px; --gutter:24px; --ease:150ms ease;
}
@media (max-width:767px){ :root{ --gutter:20px; --s16:48px; --s6:20px; } }

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:var(--fs-body)/1.6 var(--font);-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:var(--text)} a:hover{color:#fff}
h1,h2,h3,p{margin:0}
h1{font-size:var(--fs-h1);line-height:1.1;font-weight:700;letter-spacing:-.02em}
h2{font-size:var(--fs-h2);line-height:1.2;font-weight:600;letter-spacing:-.01em}
h3{font-size:var(--fs-h3);line-height:1.3;font-weight:600}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r-btn)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.container{max-width:var(--container);margin:0 auto;padding:0 var(--gutter)}
.section{padding-top:var(--s16)}
.label{font:var(--fs-label)/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--text-faint)}
.muted{color:var(--text-muted)} .faint{color:var(--text-faint)}
.num{font-variant-numeric:tabular-nums}

/* Header / footer */
.site-header{height:64px;border-bottom:1px solid var(--border)}
.site-header .container{height:100%;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:700;letter-spacing:.16em;font-size:14px}
.brand img{width:28px;height:28px;border-radius:6px}
.nav-wrap{display:flex;align-items:center;gap:24px}
.nav{display:flex;gap:28px;font-size:var(--fs-sm)}
.nav a{color:var(--text-muted);text-decoration:none;padding:20px 0;border-bottom:2px solid transparent;transition:color var(--ease),border-color var(--ease)}
.nav a:hover{color:var(--text);border-color:var(--border)}
.nav a[aria-current="page"]{color:var(--text);border-color:var(--silver)}
.menu-btn{display:none;width:44px;height:44px;margin-right:-10px;background:none;border:0;color:var(--text);align-items:center;justify-content:center;border-radius:var(--r-btn)}
@media (max-width:767px){
  .site-header{height:56px}
  .nav{display:none;position:absolute;left:0;right:0;top:56px;padding:8px;background:var(--surface);border-bottom:1px solid var(--border);flex-direction:column;gap:2px;font-size:16px;z-index:10}
  .nav a{display:flex;align-items:center;height:48px;padding:0 12px;border:0;border-radius:var(--r-btn)}
  .nav a[aria-current="page"]{background:var(--surface-2);font-weight:600}
  .site-header.is-open .nav{display:flex}
  .menu-btn{display:inline-flex}
}
.site-footer{border-top:1px solid var(--border);margin-top:var(--s16)}
.site-footer .container{padding-top:28px;padding-bottom:28px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:var(--fs-xs);color:var(--text-faint)}
.site-footer nav{display:flex;gap:20px} .site-footer nav a{color:var(--text-muted);text-decoration:none}
.site-footer .note a{color:var(--text-faint);text-decoration:none} .site-footer .note a:hover{color:var(--text)}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 20px;border-radius:var(--r-btn);font:600 15px/1 var(--font);text-decoration:none;border:1px solid transparent;cursor:pointer;transition:background var(--ease),border-color var(--ease),color var(--ease)}
.btn svg{width:16px;height:16px}
.btn-primary{background:var(--silver);color:var(--bg)} .btn-primary:hover{background:var(--text);color:var(--bg)}
.btn-secondary{border-color:var(--border-strong);color:var(--text)} .btn-secondary:hover{border-color:var(--border-hover);background:var(--surface)}
.btn-ghost{color:var(--text-muted);padding:0 16px} .btn-ghost:hover{color:var(--text);background:var(--surface)}
.btn-sm{height:40px;padding:0 16px;font-size:14px}
.btn[aria-disabled="true"],.btn:disabled{opacity:.4;pointer-events:none}
@media (max-width:767px){ .btn-stack{display:grid;gap:10px} .btn-stack .btn{height:48px;width:100%} }

/* Hero */
.hero{border-bottom:1px solid var(--border);background:radial-gradient(ellipse 60% 70% at 50% 0%,#141519 0%,var(--bg) 70%)}
.hero .container{padding-top:80px;padding-bottom:72px;display:flex;flex-direction:column;align-items:center;text-align:center}
.hero-mark{width:112px;height:112px;border-radius:24px;overflow:hidden;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin-bottom:28px}
.hero-mark img{width:100%;height:100%}
.hero h1{font-size:var(--fs-display);line-height:1;letter-spacing:-.03em}
.hero .lede{margin-top:16px;font-size:18px;color:var(--text-muted);max-width:520px;text-wrap:pretty}
.hero .actions{margin-top:28px;display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
@media (max-width:767px){
  .hero .container{padding-top:40px;padding-bottom:36px}
  .hero-mark{width:80px;height:80px;border-radius:18px;margin-bottom:20px}
  .hero .lede{font-size:16px;margin-top:12px}
  .hero .actions{display:grid;width:100%;gap:10px;margin-top:20px} .hero .actions .btn{height:48px}
}

/* Stream status — the only red */
.status{margin-top:24px;display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px 0 10px;border:1px solid var(--border);border-radius:var(--r-pill);background:var(--surface);font-size:var(--fs-xs);color:var(--text-muted)}
.status .dot{width:8px;height:8px;border-radius:50%;background:var(--border-hover)}
.live-badge{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 8px;border-radius:var(--r-pill);background:var(--live);color:#fff;font:700 11px/1 var(--font);letter-spacing:.1em;text-decoration:none}
.live-badge .dot{width:6px;height:6px;border-radius:50%;background:#fff;animation:pulse 1.6s ease-in-out infinite}
.status-live{margin-top:24px;display:inline-flex;align-items:center;gap:12px;height:44px;padding:0 16px 0 6px;border:1px solid var(--border-strong);border-radius:var(--r-pill);background:var(--surface);font-size:var(--fs-sm);color:var(--text);text-decoration:none;max-width:100%}
.status-live .live-badge{height:32px}
.status-live .game{font-weight:600}
.status-live .sep{width:1px;height:16px;background:var(--border-strong)}
.status-live .title{color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}
@media (max-width:767px){
  .status-live{display:flex;height:auto;padding:10px 14px 10px 8px;border-radius:var(--r-card);text-align:left;margin-top:20px}
  .status-live .live-badge{height:28px;flex:none} .status-live .sep{display:none}
  .status-live .meta{min-width:0} .status-live .game{display:block} .status-live .title{display:block;font-size:var(--fs-xs);max-width:none}
}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}

/* Cards */
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:start}
@media (max-width:1023px){ .grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:767px){ .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;gap:16px} }
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);transition:border-color var(--ease)}
.card:hover{border-color:var(--border-strong)}
.series-card{padding:var(--s6);display:flex;flex-direction:column;gap:16px}
.series-card h3{font-size:22px;line-height:1.2;letter-spacing:-.01em;margin-top:6px}
.series-card p{margin-top:6px;font-size:15px;color:var(--text-muted)}
.series-card .btn{margin-top:auto;align-self:flex-start}
@media (max-width:767px){ .series-card .btn{align-self:stretch;height:44px} }
.video-card{display:block;overflow:hidden;text-decoration:none;color:var(--text)}
.video-card .thumb{aspect-ratio:16/9;background:var(--surface-2);position:relative;overflow:hidden}
.video-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform var(--ease)}
.video-card:hover .thumb img{transform:scale(1.02)}
.video-card .body{padding:14px 16px 16px}
.video-card .title{font-size:15px;font-weight:600;line-height:1.35}
.video-card .meta{margin-top:6px;font-size:var(--fs-xs);color:var(--text-faint)}
.short-card .thumb{aspect-ratio:9/16}
.shorts-row{display:flex;gap:20px;flex-wrap:wrap} .shorts-row .short-card{width:180px}
@media (max-width:767px){
  .video-card.is-compact,.short-card{display:flex;gap:14px;padding:12px}
  .video-card.is-compact .thumb{width:128px;flex:none;border-radius:6px}
  .short-card .thumb{width:72px;flex:none;border-radius:6px}
  .video-card.is-compact .body,.short-card .body{padding:0;display:flex;flex-direction:column;justify-content:center;min-width:0}
  .shorts-row .short-card{width:100%}
  .short-card .chip,.video-card.is-compact .chip{display:none}
}
.chip{position:absolute;top:12px;left:12px;font:11px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;padding:5px 8px;border-radius:var(--r-tag);background:rgba(10,10,11,.85);color:var(--silver);border:1px solid var(--border-strong)}
.chip-num{left:auto;right:12px;text-transform:none;letter-spacing:.06em;font-variant-numeric:tabular-nums}

/* Road to Ranked progress — the signature. Set style="--wins:12" on .progress */
.progress{--max:60;--seg:10}
.progress .track{display:flex;gap:3px;height:8px}
.progress-lg .track{gap:4px;height:12px}
.progress-inline .track{gap:2px;height:4px;width:120px}
.progress .seg{flex:1;background:var(--track);border-radius:2px;overflow:hidden}
.progress .seg:first-child{border-radius:4px 2px 2px 4px} .progress .seg:last-child{border-radius:2px 4px 4px 2px}
.progress .seg i{display:block;height:100%;background:var(--silver-fill);width:calc(clamp(0,(var(--wins) - var(--n)*var(--seg))/var(--seg),1)*100%);transition:width 600ms ease}
.progress .seg:nth-child(1){--n:0}.progress .seg:nth-child(2){--n:1}.progress .seg:nth-child(3){--n:2}.progress .seg:nth-child(4){--n:3}.progress .seg:nth-child(5){--n:4}.progress .seg:nth-child(6){--n:5}
.progress .readout{display:flex;justify-content:space-between;align-items:baseline;margin-top:10px;font-variant-numeric:tabular-nums}
.progress .readout strong{font-size:15px;font-weight:600} .progress .readout strong b{font-size:18px;font-weight:600} .progress .readout strong span{color:var(--text-faint)}
.progress .readout small{font-size:var(--fs-xs);color:var(--text-faint)}
.progress .ticks{display:flex;gap:4px;margin-top:8px;font:11px/1 var(--mono);color:var(--text-faint)} .progress .ticks span{flex:1;text-align:right} .progress .ticks span:last-child{color:var(--silver);font-weight:600}
.progress-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-panel);padding:28px 32px 26px;margin-top:40px}
.progress-panel .head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
.progress-panel .big{margin-top:6px;display:flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}
.progress-panel .big b{font-size:48px;line-height:1;font-weight:700;letter-spacing:-.03em;background:var(--silver-text);-webkit-background-clip:text;background-clip:text;color:transparent}
.progress-panel .big span{font-size:24px;line-height:1;font-weight:600;color:var(--text-faint)}
@media (max-width:767px){ .progress-panel{padding:20px;margin-top:24px} .progress-panel .big b{font-size:40px} .progress-panel .big span{font-size:20px} .progress-panel .head{flex-direction:column;align-items:flex-start;gap:8px} }

/* Death counter — silver, never red */
.deaths{display:flex;align-items:baseline;gap:12px;font-variant-numeric:tabular-nums}
.deaths b{font-size:44px;line-height:1;font-weight:700;letter-spacing:-.03em;background:var(--silver-text);-webkit-background-clip:text;background-clip:text;color:transparent}
.deaths-lg b{font-size:72px;letter-spacing:-.04em}
.deaths .label{color:var(--text-muted)}

/* Tags */
.tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tag{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:var(--r-tag);border:1px solid var(--border-strong);background:var(--surface-2);font-size:var(--fs-sm);font-weight:600}

/* Notes */
.notes p{padding:16px 0;border-top:1px solid var(--border);color:var(--text-muted);text-wrap:pretty} .notes p:last-child{border-bottom:1px solid var(--border)}
.split{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:40px;align-items:start}
.split aside{position:sticky;top:24px;padding:var(--s6)}
@media (max-width:1023px){ .split{grid-template-columns:1fr} .split aside{position:static} }

/* Setup — gear index */
.setup{display:grid;grid-template-columns:200px minmax(0,1fr);gap:64px;align-items:start}
.toc{position:sticky;top:24px;padding-top:88px}
.toc ol{list-style:none;margin:0;padding:0;display:grid;gap:2px;font-size:var(--fs-sm)}
.toc a{display:flex;justify-content:space-between;padding:8px 10px;margin-left:-10px;border-radius:var(--r-btn);color:var(--text-muted);text-decoration:none}
.toc a:hover{color:var(--text)} .toc a[aria-current="true"]{color:var(--text);background:var(--surface)}
.toc a span:last-child{color:var(--text-faint);font-variant-numeric:tabular-nums}
.gear{margin:0}
.gear > div{display:grid;grid-template-columns:minmax(0,300px) 120px minmax(0,1fr);gap:24px;padding:14px 0;border-top:1px solid var(--border);align-items:baseline}
.gear > div:last-child{border-bottom:1px solid var(--border)}
.gear dt{font-size:15px;font-weight:600}
.gear dd{margin:0;font-size:var(--fs-sm);line-height:1.5;color:var(--text-muted)}
.gear dd.role{font:11px/1.5 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--text-faint)}
@media (max-width:1023px){ .setup{grid-template-columns:1fr;gap:32px} .toc{position:static;padding-top:0} .toc ol{display:flex;flex-wrap:wrap;gap:4px 12px} }
@media (max-width:767px){ .gear > div{grid-template-columns:1fr;gap:4px} .gear dd.role{order:2} }

@media (prefers-reduced-motion:reduce){ *,*::before,*::after{animation:none!important;transition:none!important} }

/* ===== Site additions beyond the design export ===== */

.skip-link{position:absolute;left:-9999px;top:0;background:var(--surface-2);color:var(--text);padding:10px 16px;border-radius:var(--r-btn);z-index:100}
.skip-link:focus-visible{left:16px;top:10px}

/* Page head (series pages): kicker + title left, actions right */
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.page-head .lede{margin-top:12px;font-size:16px;color:var(--text-muted);max-width:620px;text-wrap:pretty}
.page-head h1{margin-top:10px}
.page-head .actions{display:flex;gap:12px;flex-wrap:wrap}
@media (max-width:767px){ .page-head{flex-direction:column;align-items:stretch} .page-head .actions{display:grid;gap:10px} }

/* Section head row: title left, link/label right */
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.inline-link{font-size:var(--fs-sm);color:var(--text-muted);text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.inline-link:hover{color:var(--text)}
.inline-link svg{width:14px;height:14px}

/* Latest content: video spans two tracks of the 4-column grid */
.span-2{grid-column:span 2}
@media (max-width:767px){ .span-2{grid-column:auto} }

/* Thumb placeholder when no image is synced yet */
.thumb-empty{display:flex;align-items:flex-end;padding:14px;background:linear-gradient(135deg,#1e2027,#0e0f12)}
.thumb-empty span{font:11px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--text-faint)}

.deaths .meta{font-size:var(--fs-xs);color:var(--text-faint)}
.section-cta{margin-top:24px}
.bottom-pad{padding-bottom:var(--s16)}
