/* =====================================================================
   404 REALM: esports broadcast theme.
   ROG red + steel on near-black, with RGB accents, wide display type (Unbounded),
   scorebug header, live ticker, lower-third cards, diagonal stripes.
   Text colors pass WCAG AA; body and muted text pass AAA.
   Light on GPU: no blur, no canvas, animations only on small elements.
   ===================================================================== */
:root {
  --ink: #09090e;
  --s1: #121219;
  --s2: #1a1a24;
  --line: #2a2a3a;
  --text: #f3f3f8;
  --muted: #a9a9bd;
  --rog: #ff2e4f;       /* ROG red: fills, borders, badges (dark text on it: 5.5:1) */
  --rog-text: #ff6b80;  /* red for text and outlines (~7:1 on panels, AAA) */
  --crimson: #a50d27;   /* decorative only */
  --steel: #c3cad4;
  --aura: #d94dff;      /* RGB accent */
  --sky: #5cd3ff;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --stripes: repeating-linear-gradient(-45deg, rgba(255,46,79,.10) 0 2px, transparent 2px 12px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 85% -5%, rgba(255,46,79,.13), transparent 60%), radial-gradient(700px 500px at -5% 40%, rgba(217,77,255,.05), transparent 60%); }
a { color: var(--sky); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--rog); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rog); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rog); color: var(--ink); padding: 8px 12px; z-index: 300; }
.skip:focus { left: 8px; }
.cap { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cap.sub { margin: 40px 0 14px; }

/* ============ STINGER (broadcast transition) ============ */
.stinger { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: grid; place-items: center; }
.stinger i { position: absolute; top: -20%; bottom: -20%; width: 70%; transform: skewX(-18deg) translateX(-160%); }
.stinger i:nth-child(1) { background: var(--crimson); left: 0; animation: wipe 1.1s cubic-bezier(.7,0,.3,1) forwards; }
.stinger i:nth-child(2) { background: var(--steel); left: 15%; animation: wipe 1.1s .08s cubic-bezier(.7,0,.3,1) forwards; }
.stinger i:nth-child(3) { background: var(--rog); left: 30%; animation: wipe 1.1s .16s cubic-bezier(.7,0,.3,1) forwards; }
.stinger span { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 7vw, 4.5rem); color: #fff; opacity: 0; animation: flash 1.1s .16s forwards; }
@keyframes wipe { 0% { transform: skewX(-18deg) translateX(-160%); } 45%, 55% { transform: skewX(-18deg) translateX(0); } 100% { transform: skewX(-18deg) translateX(260%); } }
@keyframes flash { 35%, 60% { opacity: 1; } 100% { opacity: 0; } }
.stinger.off { display: none; }

/* ============ SCOREBUG HEADER ============ */
.scorebug { position: sticky; top: 0; z-index: 60; display: flex; align-items: stretch; height: 58px; background: rgba(9,9,14,.96); border-bottom: 1px solid var(--line); }
.scorebug::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--rog), var(--aura), var(--sky), var(--rog)); background-size: 200% 100%; animation: aura 6s linear infinite; }
@keyframes aura { to { background-position: -200% 0; } }
.sb-logo { display: flex; align-items: center; gap: 6px; padding: 0 22px 0 20px; background: var(--rog); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-decoration: none; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.sb-logo b { font-weight: 800; background: var(--ink); color: var(--rog-text); padding: 2px 6px; }
.sb-nav { display: flex; height: 100%; list-style: none; margin: 0 0 0 18px; padding: 0; }
.sb-nav a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 16px; font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .15s; }
.sb-nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--rog); transform: scaleX(0); transition: transform .2s; }
.sb-nav a:hover, .sb-nav a.on { color: var(--text); }
.sb-nav a.on::after { transform: scaleX(1); }
.sb-right { margin-left: auto; display: flex; align-items: center; gap: 14px; padding-right: 14px; }
.onair { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--ink); background: var(--rog); padding: 5px 10px; }
.onair i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.sb-clock { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.sb-exit { font-family: var(--display); font-weight: 500; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); text-decoration: none; padding: 8px 12px; border: 1px solid var(--line); }
.sb-exit:hover { border-color: var(--rog); color: var(--rog-text); }
/* Section menu button: phones and tablets */
.sb-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--s1); color: var(--text); cursor: pointer; place-items: center; flex: none; }
.sb-menu span, .sb-menu span::before, .sb-menu span::after { display: block; width: 16px; height: 2px; background: currentColor; transition: transform .25s; }
.sb-menu span { position: relative; } .sb-menu span::before, .sb-menu span::after { content: ""; position: absolute; left: 0; }
.sb-menu span::before { top: -5px; } .sb-menu span::after { top: 5px; }
.scorebug.open .sb-menu span { background: transparent; }
.scorebug.open .sb-menu span::before { transform: translateY(5px) rotate(45deg); }
.scorebug.open .sb-menu span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 900px) {
  .sb-menu { display: grid; }
  .scorebug nav { position: absolute; top: 100%; left: 0; right: 0; display: none; background: rgba(9,9,14,.98); border-bottom: 1px solid var(--line); }
  .scorebug.open nav { display: block; }
  .sb-nav { flex-direction: column; height: auto; margin: 0; padding: 6px 0; }
  .sb-nav a { height: auto; padding: 14px 22px; font-size: 14px; }
  .sb-nav a::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform: scaleY(0); }
  .sb-nav a.on::after { transform: scaleY(1); }
}
@media (max-width: 600px) {
  .scorebug { height: 54px; }
  .sb-right { gap: 8px; padding-right: 8px; }
  .sb-clock { display: none; }
  .sb-logo { padding: 0 18px 0 12px; font-size: 13px; }
  .sb-exit { padding: 8px 10px; font-size: 11.5px; }
  body .ticker { top: 54px; }
}
@media (max-width: 380px) { .onair { display: none; } }
/* between full nav and the menu button: tighten the links and drop the clock so nothing spills */
@media (max-width: 1000px) and (min-width: 901px) { .sb-nav { margin-left: 8px; } .sb-nav a { padding: 0 11px; } .sb-clock { display: none; } }

/* ============ TICKER ============ */
.ticker { position: sticky; top: 58px; z-index: 55; overflow: hidden; height: 34px; background: var(--s1); border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.ticker-track span b { color: var(--text); font-weight: 400; }
.ticker-track span em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--ink); background: var(--rog); padding: 2px 7px; }
.ticker-track span em.c { background: var(--steel); } .ticker-track span em.v { background: var(--aura); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ============ HERO ============ */
.hero { padding: 64px 0 40px; position: relative; overflow-x: clip; }
.hero::before { content: "57"; position: absolute; right: -2%; top: 10px; z-index: -1; font-family: var(--display); font-weight: 800; font-size: clamp(14rem, 32vw, 28rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.kick { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.slant { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: var(--ink); background: var(--rog); padding: 5px 12px; transform: skewX(-12deg); }
.name { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 9.5vw, 7.4rem); line-height: .92; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 22px; }
.name .outline { color: transparent; -webkit-text-stroke: 2px var(--rog-text); }
/* Size the name to its own column so the longest line never runs into the player card.
   Container units (cqi) follow the column width; the clamp above stays as the fallback. */
.hero-copy { container-type: inline-size; }
@supports (font-size: 1cqi) { .name { font-size: clamp(2.6rem, 16.2cqi, 7.4rem); } }
/* stacked layout (tablets): the column is full width, so cap the name a little lower */
@media (max-width: 920px) { @supports (font-size: 1cqi) { .name { font-size: clamp(2.6rem, 16.2cqi, 5.6rem); } } }
/* Paint the stroke under a background-coloured fill: hides the overlapping inner contours
   of the font (the stray lines inside R and W) and keeps a clean single outline. */
.name .outline { color: var(--ink); -webkit-text-stroke: 4px var(--rog-text); paint-order: stroke fill; }
.motto { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.45rem); letter-spacing: .01em; text-transform: uppercase; margin: -6px 0 16px; padding-left: 16px; }
.motto::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; background: var(--rog); transform: skewX(-12deg); }
.motto em { font-style: normal; color: var(--rog-text); }
.role { font-family: var(--display); font-weight: 500; font-size: clamp(1rem, 1.8vw, 1.2rem); letter-spacing: .04em; color: var(--aura); margin-bottom: 12px; }
.bio { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-rog, .cta-ghost { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 13px 22px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: transform .15s, background .15s, color .15s; }
.cta-rog { background: var(--rog); color: var(--ink); }
.cta-rog:hover { background: var(--text); transform: translateY(-2px); }
.cta-rog.small { font-size: 12.5px; padding: 10px 18px; }
.cta-ghost { background: var(--s2); color: var(--text); }
.cta-ghost:hover { background: var(--aura); color: var(--ink); transform: translateY(-2px); }

/* Player card */
.pcard { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.pcard-art { position: relative; aspect-ratio: 1 / 1.05; background: var(--stripes), linear-gradient(160deg, var(--rog), #6d0a1b 50%, var(--ink)); clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%); display: grid; place-items: end center; overflow: hidden; }
.pcard-art img { width: 64%; margin-bottom: 9%; border-radius: 50%; border: 4px solid var(--rog); box-shadow: 0 0 0 10px rgba(9,9,14,.35); }
.pnum { position: absolute; top: 4%; left: 6%; font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 9vw, 6rem); line-height: 1; color: var(--rog-text); text-shadow: 6px 6px 0 rgba(9,9,14,.4); }
.pcard-plate { display: grid; grid-template-columns: 1fr 1fr; background: var(--s1); border: 1px solid var(--line); border-top: 3px solid var(--rog); }
.pcard-plate div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pcard-plate div:nth-child(odd) { border-right: 1px solid var(--line); }
.pcard-plate div:nth-last-child(-n+2) { border-bottom: 0; }
.pcard-plate small { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pcard-plate b { font-family: var(--display); font-weight: 700; font-size: 14.5px; letter-spacing: .02em; }

/* Stat strip */
.statstrip { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--s1); }
.statstrip li { padding: 20px 22px; border-right: 1px solid var(--line); position: relative; }
.statstrip li:last-child { border-right: 0; }
.statstrip li::before { content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 3px; background: var(--rog); }
.statstrip li:nth-child(2)::before { background: var(--steel); } .statstrip li:nth-child(3)::before { background: var(--aura); } .statstrip li:nth-child(4)::before { background: var(--sky); }
.statstrip b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; }
.statstrip span { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .statstrip { grid-template-columns: repeat(2, 1fr); } .statstrip li:nth-child(2) { border-right: 0; } .statstrip li:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ============ SECTIONS ============ */
.sec { padding: 88px 0 0; }
.sec-h { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.01em; text-transform: uppercase; margin-bottom: 28px; }
.sec-h span { font-size: .45em; font-weight: 700; color: var(--ink); background: var(--rog); padding: 6px 10px; transform: skewX(-12deg); letter-spacing: .04em; }
.sec-h::after { content: ""; flex: 1; height: 12px; background: var(--stripes); min-width: 40px; }

/* Lower-third card */
.card { position: relative; background: var(--s1); border: 1px solid var(--line); border-left: 3px solid var(--rog); padding: 22px; }
a.card { color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--rog); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; line-height: 1.25; }
.card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; }
.card-top > div { min-width: 0; flex: 1 1 120px; }
.card-top h3 { overflow-wrap: anywhere; }
.card-top.plain { margin-bottom: 14px; }
.ava { width: 48px; height: 48px; border-radius: 50%; background: var(--s2); flex: none; }
.status-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; padding: 4px 10px; background: var(--s2); color: var(--text); white-space: nowrap; text-decoration: none; }
.status-pill.link:hover { background: var(--rog); color: var(--ink); }
.sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.s-online { background: #4ade80; } .s-idle { background: #facc15; } .s-dnd { background: var(--rog); } .s-offline { background: #5c5c70; }
.empty { color: var(--muted); font-size: 15.5px; padding: 18px; border: 1px dashed var(--line); }
.empty code { font-family: var(--mono); font-size: 13.5px; color: var(--sky); }

/* Live */
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.live-grid > .card { display: flex; flex-direction: column; }
.live-grid > .card > .cta-rog { margin-top: auto; align-self: flex-start; }
.status-pill.live .sdot { position: relative; }
.status-pill.live .sdot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: livePing 1.8s ease-out infinite; }
@keyframes livePing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
.p-steam { margin: 18px 0; }
.p-steam .cap { margin-bottom: 10px; }
.p-steam .mini-stats { margin-bottom: 10px; }
.p-last { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; background: var(--s2); border-left: 3px solid var(--rog); font-size: 14.5px; }
.p-last span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.p-last b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-last em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--rog-text); }
@media (prefers-reduced-motion: reduce) { .status-pill.live .sdot::after { animation: none; } }
.live-grid:has(#presence[hidden]) { grid-template-columns: 1fr; }
@media (max-width: 920px) { .live-grid { grid-template-columns: 1fr; } }
.activity { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--s2); border-left: 3px solid #4ade80; }
.activity + .activity { margin-top: 10px; }
.activity img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.activity b { display: block; font-weight: 700; line-height: 1.3; }
.activity small { display: block; color: var(--muted); font-size: 14px; }
.activity.spotify { border-left-color: #1ed760; }
.track { height: 4px; background: var(--line); margin-top: 8px; } .track span { display: block; height: 100%; background: #1ed760; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.mini-stats div { background: var(--s2); padding: 10px 12px; }
.mini-stats b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.15; }
.mini-stats span { font-size: 13.5px; color: var(--muted); }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.av { position: relative; width: 36px; height: 36px; }
.av img { width: 100%; height: 100%; border-radius: 50%; background: var(--s2); }
.av .sdot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 2px solid var(--s1); }
.now-playing { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 6px; }
.now-playing li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; }
.now-playing li::before { content: ""; width: 0; height: 0; border-left: 8px solid var(--rog); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.channels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.channels span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); }

/* Stats */
.steam-card { margin-bottom: 0; border-left-color: var(--sky); }
.big-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.big-stats div { background: var(--s2); padding: 14px 16px; }
.big-stats b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; }
.big-stats span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .big-stats { grid-template-columns: repeat(2, 1fr); } }
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rgame { padding: 0; overflow: hidden; border-left: 0; border-bottom: 3px solid var(--sky); }
.rgame img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; background: var(--s2); }
.rgame div { padding: 12px 14px; }
.rgame b { display: block; font-weight: 700; line-height: 1.3; }
.rgame small { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.stats-grid > .card { display: flex; flex-direction: column; }
@media (max-width: 920px) { .stats-grid { grid-template-columns: 1fr; } }
#playtimeCard { border-left-color: var(--steel); }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: rank; }
.board li { display: grid; grid-template-columns: 34px 1fr 70px; align-items: center; gap: 12px; counter-increment: rank; }
.board li::before { content: counter(rank, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--muted); }
.board li:first-child::before { color: var(--rog-text); }
.board .row { min-width: 0; }
.board .row b { display: block; font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .row small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.board .bar { height: 6px; background: var(--s2); margin-top: 4px; }
.board .bar i { display: block; height: 100%; width: 0; background: var(--rog); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.board .bar i.epic { background: var(--sky); } .board .bar i.other { background: var(--aura); }
.board em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 14px; text-align: right; }
.total { margin-top: 16px; }
.library { display: grid; align-content: start; gap: 10px; flex: 1 1 0; height: 0; min-height: 360px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
@media (max-width: 920px) { .library { flex: none; height: auto; min-height: 0; max-height: 440px; } }
.game { display: grid; gap: 4px; padding: 12px 14px; background: var(--s2); border-left: 3px solid var(--aura); }
.game b { font-weight: 700; }
.game small { color: var(--muted); font-size: 14px; }
.game .st { justify-self: start; font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 3px 8px; }
.st-playing { background: var(--rog); } .st-favourite { background: var(--aura); } .st-completed { background: var(--sky); } .st-backlog, .st-owned { background: var(--steel); }

/* Loadout */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 16px; }
.slot { display: flex; align-items: center; gap: 14px; min-height: 76px; border-left-color: var(--aura); }
.slot-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--ink); background: var(--aura); transform: skewX(-8deg); }
.slot small { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.slot b { font-weight: 700; overflow-wrap: anywhere; }
.slot.locked { opacity: .5; border-style: dashed; border-left-style: solid; border-left-color: var(--line); }
.slot.locked .slot-ic { background: var(--s2); color: var(--muted); }
.slot.locked b { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: .08em; }
/* Lobby */
.squad-lede { color: var(--muted); margin: -12px 0 20px; }
.slot-extra { display: block; font-family: var(--mono); font-size: 12px; color: var(--rog-text); margin-top: 2px; }

/* My rig: "Main rig" panel (left) + red spec cards and violet accessory cards (right) */
.rig-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .rig-wrap { grid-template-columns: 1fr; } }
.rig-id { position: relative; padding: 26px; background: var(--stripes), linear-gradient(150deg, #2a0710, var(--s1) 70%); border: 1px solid var(--line); border-left: 4px solid var(--rog); display: flex; flex-direction: column; gap: 10px; }
.rig-id small { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rog-text); }
.rig-id h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.rig-id p { color: var(--muted); font-size: 14.5px; }
.rig-glyph { margin-top: auto; width: 100%; max-width: 240px; align-self: center; color: var(--rog-text); padding-top: 18px; }
.rig-glyph .k { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: miter; }
.rig-glyph .s { fill: none; stroke: var(--muted); stroke-width: 1; opacity: .6; stroke-linecap: square; }
.rig-glyph .glow { fill: none; stroke: url(#rgb); stroke-width: 2.4; stroke-linecap: butt; }
@media (max-width: 900px) { .rig-glyph { max-width: 200px; } }
.rig-lists { display: grid; gap: 14px; align-content: start; }
.spec-col { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.spec-col > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gear-side { padding-top: 14px; border-top: 1px dashed var(--line); }
.spec-item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; background: var(--s1); border: 1px solid var(--line); border-left: 3px solid var(--rog); transition: border-color .2s, transform .2s; }
.spec-item:hover { border-color: var(--rog); transform: translateY(-2px); }
.gear-side .spec-item { border-left-color: var(--aura); }
.gear-side .spec-item:hover { border-color: var(--aura); }
.gear-side .spec-ic { border-color: var(--aura); color: var(--aura); }
.spec-ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rog-text); color: var(--rog-text); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.spec-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spec-item small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec-item b { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.spec-item span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.spec-item > div { min-width: 0; }
@media (max-width: 560px) { .spec-col { grid-template-columns: 1fr; } }

/* Career */
.career-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
@media (max-width: 920px) { .career-grid { grid-template-columns: 1fr; } }
.quest-main { border-left-color: var(--sky); }
.quest-main h3 { font-size: 1.5rem; margin: 6px 0 8px; }
.quest-main p { color: var(--muted); font-size: 15.5px; }
.xp { height: 14px; background: var(--s2); margin: 18px 0 8px; position: relative; overflow: hidden; }
.xp span { display: block; height: 100%; width: 0; background: var(--stripes), linear-gradient(90deg, var(--sky), var(--rog)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.xp-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.xp-meta span:first-child { color: var(--rog-text); }
.record { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.record div { background: var(--s2); padding: 12px 14px; }
.record b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.15; }
.record span { font-size: 13.5px; color: var(--muted); }

/* Blog row */
.blog-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 920px) { .blog-row { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; gap: 8px; border-left-color: var(--sky); }
.post time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.post p { color: var(--muted); font-size: 15px; }
.post .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.post .tags span { font-family: var(--mono); font-size: 12px; color: var(--sky); }

/* Footer */
.foot { margin-top: 96px; padding: 0 0 36px; }
/* Footer: terminal status bar (same layout as the portfolio, in ROG red) */
.statusbar { display: flex; flex-wrap: wrap; align-items: stretch; border-radius: 12px; overflow: hidden; background: #0a0a0f; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--muted); }
.sb-seg { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-right: 1px solid #1d1d26; white-space: nowrap; text-decoration: none; color: inherit; }
.sb-brand { background: var(--rog); color: var(--ink); font-family: var(--display); font-weight: 800; letter-spacing: .04em; }
.sb-brand b { font-weight: 500; opacity: .75; margin-left: 4px; }
.sb-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.sb-loc { color: var(--text); }
.sb-dev { gap: 14px; }
.sb-dev:empty { display: none; }
.sb-dev a, .sb-link { color: var(--text); text-decoration: none; transition: color .2s, background .2s; }
.sb-dev a:hover { color: var(--rog-text); }
.sb-link:hover { background: #15151d; color: var(--rog-text); }
.sb-fill { flex: 1; }
.sb-fill + .sb-seg { border-left: 1px solid #1d1d26; }
.sb-seg:has(+ .sb-fill) { border-right: 0; }
.status-pill.live .sdot { background: var(--rog); }
.sb-seg:last-child { border-right: 0; }
.foot-prompt { color: var(--text); gap: 0; transition: background .2s; }
.foot-prompt .fp-cmd { display: inline-block; margin-left: .6ch; }
.fp-cursor { margin-left: 3px; }
.foot-prompt .fp-p { color: #4ade80; }
.foot-prompt:hover { background: rgba(255,46,79,.12); }
.fp-cursor { width: 7px; height: 13px; background: var(--rog); animation: fpBlink 1s steps(1) infinite; }
@keyframes fpBlink { 50% { opacity: 0; } }
@media (max-width: 720px) {
  .sb-fill { display: none; }
  .sb-seg { flex: 1 1 auto; justify-content: center; border-bottom: 1px solid #1d1d26; }
  .sb-copy { order: 9; flex-basis: 100%; border-bottom: 0; color: #6b6b80; }
  .foot { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .fp-cursor { animation: none; } }
.devlinks { display: flex; flex-wrap: wrap; gap: 14px; }
.devlinks a { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Toast */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--s1); border: 1px solid var(--line); border-left: 4px solid var(--rog); transform: translateY(160%); transition: transform .45s cubic-bezier(.2,1.3,.4,1); max-width: calc(100vw - 40px); }
.toast.show { transform: none; }
.toast small { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--rog-text); }
.toast span { font-family: var(--display); font-weight: 700; font-size: 14px; }
.toast > b { font-size: 22px; }

/* Konami: "replay" colour swap */
.replay { --rog: #3fd0ff; --rog-text: #7fe0ff; --aura: #ff2e4f; }

.hero-grid > *, .live-grid > *, .stats-grid > *, .career-grid > *, .blog-row > *, .card { min-width: 0; }
@media (max-width: 600px) { .hero { padding-top: 40px; } .card:not(.rgame) { padding: 18px; } .pcard { max-width: 340px; } }

/* Scroll reveal: slide in from the left like a lower third */
.rv { opacity: 0; transform: translateX(-24px); }
.rv.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stinger { display: none; }
  .rv { opacity: 1; transform: none; }
  .ticker { overflow-x: auto; scrollbar-width: none; }
}
/* very narrow phones: keep the top bar inside the screen */
@media (max-width: 420px) { .sb-logo { padding: 0 12px 0 10px; } .sb-right { gap: 6px; padding-right: 6px; } .sb-exit { padding: 7px 8px; letter-spacing: .03em; } }
