/* ===================================================================
   ARC SYSTEM WORKS homepage.
   Everything outside #tokon is the brand bible v23 — token values,
   field gradient, edge vignette, HUD kit, bevelled cards and button
   flip are taken verbatim from asw_brand_bible.html.
   #tokon is the Marvel Tōkon takeover and follows the approved design
   comps + the Sony EDMM board.
   =================================================================== */

/* ---------------- brand bible tokens ---------------- */
:root{
  --asw-red:#E60012; --asw-red-hi:#FF3B47;
  --accent-blue:#2AA9E0; --accent-violet:#B14CE8; --accent-ember:#FF6A2B; --accent-toxic:#00C27A;
  --accent:var(--asw-red);
  --font-display:'Anton',Impact,'Arial Narrow Bold',sans-serif;
  --font-cond:'Oswald',system-ui,sans-serif;
  --font-body:'Inter',system-ui,-apple-system,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  --radius-btn:4px; --radius-card:10px; --radius-pill:999px;
  --clip-corner:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  --clip-card:polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px);
  --container:1180px;
  /* dark — base token set */
  --bg:#0a0a0c; --panel-1:#101014; --panel-2:#16161b;
  --text:#FFFFFF; --muted:#9a9aa5; --red-text:#FF3B47;
  --hairline:rgba(255,255,255,.10); --footer-bg:#08080a;
  --shadow-card:0 26px 50px rgba(0,0,0,.55);
  --flip-bg:#F6F6F8; --flip-text:#0a0a0c;
  --grid:rgba(230,0,18,.14); --grid-size:46px;
  --edge:rgba(0,0,0,.42);
  --field:linear-gradient(90deg,#08080a 0%,#0d0c10 22%,#151420 50%,#0d0c10 78%,#08080a 100%);
  --hud:rgba(255,255,255,.5); --hud-grad:linear-gradient(-48deg,#ffffff,#ff5d6b);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#F6F6F8; --panel-1:#FFFFFF; --panel-2:#EFEFF2;
  --text:#0a0a0c; --muted:#55555E; --red-text:#C10010;
  --hairline:rgba(0,0,0,.10); --footer-bg:#EFEFF2;
  --shadow-card:0 18px 40px rgba(20,20,30,.12);
  --flip-bg:#0a0a0c; --flip-text:#FFFFFF;
  --grid:rgba(230,0,18,.06);
  --edge:rgba(0,0,0,.2);
  --field:linear-gradient(90deg,#EDEDF1 0%,#F4F4F7 22%,#ffffff 50%,#F4F4F7 78%,#EDEDF1 100%);
  --hud:rgba(230,0,18,.4); --hud-grad:linear-gradient(-48deg,#E60012,#FF3B47);
  color-scheme:light;
}
:root[data-theme="red"]{
  --bg:#7a000e; --panel-1:rgba(12,12,14,.60); --panel-2:rgba(12,12,14,.70);
  --text:#FFFFFF; --muted:rgba(255,255,255,.76); --red-text:#FF3B47;
  --hairline:rgba(255,255,255,.18); --footer-bg:rgba(8,8,10,.55);
  --shadow-card:0 26px 50px rgba(0,0,0,.5);
  --flip-bg:#FFFFFF; --flip-text:#0a0a0c;
  --grid:rgba(255,255,255,.20);
  --edge:rgba(0,0,0,.5);
  --field:linear-gradient(90deg,#5c000c 0%,#8e0012 26%,#c60018 50%,#8e0012 74%,#5c000c 100%);
  --hud:rgba(255,255,255,.55); --hud-grad:linear-gradient(-48deg,#ffffff,#ffd2d6);
  color-scheme:dark;
}

/* Tōkon display faces (licensed). Kept as files in assets/fonts since 28 Oct
   2026; they were base64 inside this sheet, which made it 240 KB larger and
   meant no page could start drawing until all five had arrived (Talis). */
@font-face{font-family:'NeoGramBlackC';src:url(../fonts/neogram-black-c.woff2) format('woff2');font-display:swap}
@font-face{font-family:'NeoGramHeavyC';src:url(../fonts/neogram-heavy-c.woff2) format('woff2');font-display:swap}
@font-face{font-family:'NeoGramXBoldC';src:url(../fonts/neogram-xbold-c.woff2) format('woff2');font-display:swap}
@font-face{font-family:'NeoGramBoldC';src:url(../fonts/neogram-bold-c.woff2) format('woff2');font-display:swap}
@font-face{font-family:'SchussHand';src:url(../fonts/schuss-hand.woff2) format('woff2');font-display:swap}

@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.72)}}
@keyframes tk-pop{0%{opacity:0;transform:translateX(64px) scale(.975)}62%{opacity:1;transform:translateX(-10px) scale(1.005)}100%{opacity:1;transform:translateX(0) scale(1)}}
@keyframes tk-rise{0%{opacity:0;transform:translateY(14px)}100%{opacity:1;transform:translateY(0)}}
@keyframes tk-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background-color:var(--bg);
/* One grid, one cell size, everywhere on the page.

   These two layers used to be repeating-linear-gradients at background-size
   auto. A repeating gradient has no intrinsic size, so the browser rasterises
   it across the whole positioning area, and the body's area is the entire
   document: on a 4K display that came to roughly 3800 x 12700 device pixels.
   Chrome will not hand out an image that large, so it drew a smaller one and
   scaled it up. The result was a page whose grid ran at about 65px across and
   51px down while the hero, whose box is only a screen tall, kept its correct
   46px, with lines dropped in between where the upscale swallowed them.

   Giving each layer an explicit background-size means one 46px tile is drawn
   once and repeated, at any document height, on any display. */
  background-image:
    linear-gradient(0deg,var(--grid) 0 1px,transparent 1px),
    linear-gradient(90deg,var(--grid) 0 1px,transparent 1px),
    var(--field,transparent);
  background-size:var(--grid-size) var(--grid-size),var(--grid-size) var(--grid-size),cover;
  background-repeat:repeat,repeat,no-repeat;
  /* the field is a left-to-right wash with nothing happening down its length,
     so pinning it to the viewport looks identical and keeps the browser from
     sizing a second document-tall image */
  background-attachment:scroll,scroll,fixed;
  color:var(--text);font-family:var(--font-body);-webkit-font-smoothing:antialiased;
  transition:background-color .4s var(--ease),color .4s var(--ease);overflow-x:hidden}
:root[data-theme="red"] body{background-color:#1c0004}
/* edge vignette — black down the L/R edges, centre stays lit. Over the grid, behind content. */
#bgfx{position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,var(--edge) 0%,transparent 17%,transparent 83%,var(--edge) 100%)}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--asw-red-hi);outline-offset:3px}

.wrap{max-width:var(--container);margin:0 auto;padding:0 clamp(20px,5vw,34px)}
.kick{font-family:var(--font-cond);font-weight:600;text-transform:uppercase;letter-spacing:.28em;
  font-size:12px;color:var(--red-text)}
.khead{font-family:var(--font-cond);font-weight:600;letter-spacing:.24em;font-size:12px;
  text-transform:uppercase;color:var(--red-text);display:flex;align-items:center;gap:12px}
.khead::before{content:"";flex:0 0 auto;width:26px;height:14px;background:var(--hud-grad);
  -webkit-mask:repeating-linear-gradient(45deg,#000 0 2px,transparent 2px 5px);
  mask:repeating-linear-gradient(45deg,#000 0 2px,transparent 2px 5px)}
.khead::after{content:"";flex:0 0 auto;width:clamp(36px,11vw,140px);height:1px;
  background:repeating-linear-gradient(90deg,var(--hud) 0 6px,transparent 6px 12px);opacity:.5}
h2.sec{font-family:var(--font-display);font-size:clamp(32px,5.4vw,68px);line-height:.96;
  text-transform:uppercase;letter-spacing:.015em;margin:14px 0 8px}
.sub{color:var(--muted);max-width:64ch}
.tag{display:inline-block;font-family:var(--font-cond);font-weight:600;text-transform:uppercase;
  letter-spacing:.16em;font-size:11px;color:var(--muted);border:1px solid var(--hairline);
  border-radius:var(--radius-pill);padding:5px 12px}
.btn{font-family:var(--font-cond);font-weight:700;text-transform:uppercase;letter-spacing:.12em;
  font-size:14px;color:#fff;background:var(--accent);padding:15px 32px;border:0;
  border-radius:var(--radius-btn);cursor:pointer;clip-path:var(--clip-corner);
  box-shadow:0 12px 30px color-mix(in srgb,var(--accent) 40%,transparent);
  transition:transform .2s var(--ease),background .3s var(--ease),color .3s var(--ease),box-shadow .3s var(--ease)}
.btn:hover{transform:translateY(-3px);background:var(--flip-bg);color:var(--flip-text);
  box-shadow:0 16px 36px rgba(0,0,0,.28)}
/* HUD kit */
.hud-hatch{width:48px;height:48px;background:var(--hud-grad);
  -webkit-mask:repeating-linear-gradient(45deg,#000 0 3px,transparent 3px 9px);
  mask:repeating-linear-gradient(45deg,#000 0 3px,transparent 3px 9px);position:absolute;pointer-events:none;opacity:.9}
.hh-tl{clip-path:polygon(0 0,100% 0,0 100%)} .hh-tr{clip-path:polygon(0 0,100% 0,100% 100%)}
.hh-bl{clip-path:polygon(0 0,0 100%,100% 100%)} .hh-br{clip-path:polygon(100% 0,100% 100%,0 100%)}
.hud-x{position:absolute;width:10px;height:10px;pointer-events:none;opacity:.7}
.hud-x::before,.hud-x::after{content:"";position:absolute;left:0;top:50%;width:100%;height:1px;background:var(--hud)}
.hud-x::before{transform:rotate(45deg)} .hud-x::after{transform:rotate(-45deg)}
.card{background:var(--panel-2);clip-path:var(--clip-card);box-shadow:inset 0 0 0 1px var(--hairline);
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.16));transition:transform .3s var(--ease),filter .3s var(--ease);
  position:relative;overflow:hidden}
.card.lift{cursor:pointer}
.card.lift::before{content:"";position:absolute;left:0;top:0;height:4px;width:0;background:var(--accent);
  transition:width .35s var(--ease);z-index:3}
.card.lift:hover{transform:translateY(-8px);filter:drop-shadow(0 22px 32px rgba(0,0,0,.32))}
.card.lift:hover::before{width:100%}

/* The header is shared chrome and lives in chrome.css. This sheet used to
   carry the standalone prototype's version of it, written for markup the
   template no longer prints, which is why the nav rendered as a line of plain
   body text with a dead button beside it. */

/* ================= TŌKON TAKEOVER (export design + Sony board) ================= */
#tokon{
  --tk-paper:#EBE5D8; --tk-ink:#3E4437; --tk-ink-deep:#23261F; --tk-blue:#4C7FB5;
  --tk-line:rgba(90,140,185,.45); --tk-orange:#FF6800; --tk-sky:#00A8FF; --tk-cream:#F6F1E4;
  --artbase:90%;
  position:relative;overflow:hidden;background:var(--tk-paper);color:var(--tk-ink-deep)}
#tokon .kanji{position:absolute;right:-10%;top:-2%;width:min(46vw,780px);opacity:.07;
  pointer-events:none;user-select:none;z-index:1}
/* Uniform scale only — never `fill`, which stretches the board when the section
   aspect changes (zoom / resize). The letterbox margin is the same beige as the
   section, so the frame simply sits centred with a little breathing room. */
.board{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;
  mix-blend-mode:multiply;pointer-events:none;user-select:none;z-index:2}

/* ---- 07e The full-bleed band -------------------------------------------
   The one place on the page where the art gets the whole screen: no plate, no
   frame, video edge to edge. Height is capped so a 4K monitor does not hand over
   a two-thousand-pixel wall and a phone still gets a real image. svh, not vh:
   on iOS vh counts the address bar currently covering the page, which pushes the
   buttons under the fold. The dark stops at this band — #select below is paper. */
.tkhero{position:relative;width:100%;
  height:clamp(560px, calc(100svh - 59px), 900px);
  display:flex;flex-direction:column;justify-content:center;
  background:#0B0D10;overflow:hidden;isolation:isolate}
.tkbleed{position:absolute;inset:0;z-index:0}
.tkbg{display:block;width:100%;height:100%;object-fit:cover;object-position:center 42%}
/* Two scrims rather than one. The 102deg diagonal holds the left column
   readable; the bottom lift stops the copy floating when the cut goes bright.
   Both have to survive footage that is dark in one shot and blown out in the
   next, so they are heavier than they look necessary against any single frame. */
.tkveil{position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(102deg, rgba(6,8,11,.94) 0%, rgba(6,8,11,.86) 22%, rgba(6,8,11,.56) 45%,
                          rgba(6,8,11,.20) 68%, rgba(6,8,11,.04) 88%, rgba(6,8,11,0) 100%),
  linear-gradient(to top, rgba(6,8,11,.80) 0%, rgba(6,8,11,.34) 20%, rgba(6,8,11,0) 46%)}

/* copy sits on dark now, so the paper-hero colours flip to cream/sky */
.tkhero .tkherorow{position:relative;z-index:2;flex:0 0 auto;align-items:center}
.tkhero .tkcopy{flex:0 0 clamp(300px,30vw,470px)}
.tkhero .tklogo{width:min(100%,430px)}
.tkhero .tkh1{color:var(--tk-cream);font-size:clamp(26px,2.5vw,40px);max-width:16ch;
  text-shadow:0 2px 24px rgba(0,0,0,.55)}
.tkhero .tksub{color:#79CCFF;text-shadow:0 1px 12px rgba(0,0,0,.6)}
.tkhero .tkgamepage{color:#79CCFF}
.tkhero .tklogolink:hover .tkgamepage{color:var(--tk-cream)}
.tkhero .tkbtn{box-shadow:5px 5px 0 rgba(0,0,0,.6)}
.tkhero .tkbtn:hover{box-shadow:7px 7px 0 rgba(0,0,0,.6)}
.tkhero .tkbtn:active{box-shadow:1px 1px 0 rgba(0,0,0,.6)}
.tkhero .tkcue{color:rgba(246,241,228,.70)}
.tkhero .tkcue:hover{color:var(--tk-cream)}

/* The framed feature panel rides on the dark band now, so its paper-hero fill
   and blue hairline flip to something that reads against moving video. The
   panel keeps its own transport, exactly as on the paper hero. */
.tkhero .tkpanel{flex:1 1 auto;min-width:0}
.tkhero .tkmicro{color:rgba(246,241,228,.80);text-shadow:0 1px 7px rgba(0,0,0,.9)}
.tkhero .tkpager{color:var(--tk-cream);text-shadow:0 1px 8px rgba(0,0,0,.9)}
.tkhero .tkframe{border-color:rgba(246,241,228,.30);background:rgba(9,11,15,.42);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  box-shadow:0 18px 52px rgba(0,0,0,.48)}
.tkhero .tkframe video,.tkhero .tkframe img{border-color:rgba(246,241,228,.20)}

@media (max-width:980px){
  /* Stacked, the band can no longer honour a fixed cap — the copy alone would
     leave the panel hanging off the bottom. Height goes fluid; the copy is
     still first, so Play Now stays above the fold. */
  .tkhero{height:auto;min-height:calc(100svh - 59px);justify-content:flex-start}
  .tkhero .tkpanel{flex:0 0 auto;width:100%}
}
@media (max-width:700px){
  .tkhero{min-height:calc(100svh - 59px)}
  .tkhero .tkherorow{padding:92px 22px 76px;gap:0}
  .tkhero .tkcopy{flex:1 1 auto;gap:16px}
  .tkhero .tklogo{width:min(100%,300px)}
  .tkhero .tkh1{font-size:clamp(24px,6.6vw,32px);max-width:none}
  .tkhero .tksub{font-size:10.5px;letter-spacing:.18em}
  /* buttons hug their labels instead of running the column width */
  .tkhero .tkctas{flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:12px}
  .tkhero .tkctas>*{flex:0 0 auto;width:auto;align-self:flex-start}
  .tkhero .tkbtn{font-size:17px;padding:13px 20px 11px}
  /* A 102deg diagonal is the wrong shape for a tall narrow frame — it leaves the
     copy sitting on whatever the footage is doing. Portrait gets a vertical lift
     instead, weighted to the lower half where the copy lands. */
  .tkveil{background:linear-gradient(to top,
     rgba(6,8,11,.92) 0%, rgba(6,8,11,.86) 30%, rgba(6,8,11,.68) 56%,
     rgba(6,8,11,.46) 78%, rgba(6,8,11,.34) 100%)}
}
.tkherorow{position:relative;z-index:4;flex:1;display:flex;align-items:center;gap:clamp(28px,3vw,56px);
  padding:76px clamp(46px,5vw,86px) 72px clamp(56px,5.6vw,96px);width:100%;max-width:1600px;margin:0 auto}
.tkcopy{flex:0 0 clamp(300px,28vw,450px);display:flex;flex-direction:column;gap:22px}
.tklogolink{display:inline-block;align-self:flex-start;
  transition:transform .22s var(--ease)}
.tklogolink:hover{transform:translateY(-3px)}
.tklogo{width:min(100%,430px);height:auto;margin-left:-8px}
.tkgamepage{display:block;margin:8px 0 0 -6px;font-family:var(--font-cond);font-weight:600;
  font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--tk-blue);
  transition:color .22s var(--ease)}
.tklogolink:hover .tkgamepage{color:var(--tk-ink-deep)}
.tkh1{margin:0;font-family:'NeoGramHeavyC',var(--font-cond),sans-serif;font-size:clamp(26px,2.4vw,38px);
  line-height:1.02;letter-spacing:.015em;text-transform:uppercase;color:var(--tk-ink-deep);max-width:420px}
.tksub{margin:-6px 0 0;font-family:var(--font-cond);font-weight:600;font-size:12px;letter-spacing:.26em;
  text-transform:uppercase;color:var(--tk-blue)}
.tkctas{display:flex;gap:18px;flex-wrap:wrap;align-items:center}
.tkbtn{font-family:'NeoGramXBoldC',var(--font-cond),sans-serif;font-size:21px;letter-spacing:.05em;
  text-transform:uppercase;color:var(--tk-cream);padding:15px 30px 13px;box-shadow:5px 5px 0 var(--tk-ink);
  transition:transform .2s var(--ease),box-shadow .2s var(--ease);white-space:nowrap}
.tkbtn:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 var(--tk-ink);color:var(--tk-cream)}
.tkbtn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--tk-ink)}
.tkbtn.orange{background:var(--tk-orange);border:0;cursor:pointer;display:inline-flex;
  align-items:center;gap:10px}
.tkbtn .caret{font-size:14px;transition:transform .2s var(--ease)}
.tkdd.open .tkbtn .caret{transform:rotate(180deg)}
.tkdd{position:relative;display:inline-block}
.tkddmenu{position:absolute;left:0;top:calc(100% + 14px);min-width:330px;z-index:20;
  background:var(--tk-cream);border:1.5px solid var(--tk-line);box-shadow:6px 6px 0 rgba(62,68,55,.22);
  padding:6px;opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .2s var(--ease),transform .2s var(--ease),visibility .2s}
.tkdd.open .tkddmenu{opacity:1;visibility:visible;transform:none}
.tkddhead{margin:0;padding:10px 12px 8px;font-family:var(--font-cond);font-weight:600;font-size:10.5px;
  letter-spacing:.24em;text-transform:uppercase;color:var(--tk-blue)}
.tkddmenu a{display:flex;align-items:baseline;gap:10px;padding:11px 12px;
  transition:background .18s var(--ease)}
.tkddmenu a:hover{background:rgba(62,68,55,.09)}
.tkddmenu .pf{font-family:'NeoGramBoldC',var(--font-cond),sans-serif;font-size:16px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--tk-ink-deep);white-space:nowrap}
.tkddmenu .st{font-family:var(--font-cond);font-weight:600;font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--tk-blue);white-space:nowrap}
.tkddmenu .go{margin-left:auto;color:var(--tk-orange);font-size:14px}
.tkbtn.sky{background:var(--tk-sky);padding:15px 26px 13px;display:inline-flex;align-items:center;gap:12px}
.tkpanel{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:9px}
.tkrow{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.tkmicro{font-family:var(--font-cond);font-weight:600;font-size:10.5px;letter-spacing:.24em;
  text-transform:uppercase;color:var(--tk-blue);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tkframe{position:relative;border:1.5px solid var(--tk-line);background:rgba(255,255,255,.34);
  padding:8px;box-shadow:10px 10px 0 rgba(62,68,55,.16)}
.tkframe img,.tkframe video,.tkframe iframe{display:block;width:100%;aspect-ratio:16/9;max-height:60vh;object-fit:cover;
  background:#101014;border:1px solid var(--tk-line)}
/* minimal transport — sits inside the panel, fades up on hover/focus */
.tkctl{position:absolute;right:16px;bottom:16px;z-index:3;display:flex;align-items:center;gap:10px;
  background:rgba(35,38,31,.74);border:1px solid rgba(246,241,228,.34);padding:7px 12px;
  opacity:.28;transition:opacity .22s var(--ease)}
.tkframe:hover .tkctl,.tkctl:focus-within{opacity:1}
.tkctl button{background:none;border:0;color:var(--tk-cream);cursor:pointer;font-size:11px;line-height:1;
  padding:2px 3px;opacity:.9;transition:opacity .18s var(--ease)}
.tkctl button:hover{opacity:1}
#tkvol{-webkit-appearance:none;appearance:none;width:72px;height:3px;background:rgba(246,241,228,.35);
  outline:none;cursor:pointer}
#tkvol::-webkit-slider-thumb{-webkit-appearance:none;width:11px;height:11px;border-radius:50%;
  background:var(--tk-cream);cursor:pointer}
#tkvol::-moz-range-thumb{width:11px;height:11px;border:0;border-radius:50%;background:var(--tk-cream);cursor:pointer}
/* A touch screen has no hover, so the transport stayed at .28 and its taps
   were 16px and smaller. On touch it shows fully, the two buttons are 40px,
   and the 3px volume track goes (the phone's own buttons and Mute do that job). */
@media (hover:none),(max-width:760px){
  .tkctl{opacity:1;padding:2px 4px;gap:2px}
  .tkctl button{min-width:40px;min-height:40px;font-size:16px;display:inline-flex;align-items:center;justify-content:center}
  #tkvol{display:none}
}
.tkpager{font-family:'NeoGramBoldC',var(--font-cond),sans-serif;font-size:20px;letter-spacing:.08em;
  color:var(--tk-ink-deep);white-space:nowrap}
.tkcue{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:5;
  display:flex;flex-direction:column;align-items:center;color:var(--tk-blue)}
.tkcue:hover{color:var(--tk-ink-deep)}
.tkcue .t{font-family:var(--font-cond);font-weight:600;font-size:10.5px;letter-spacing:.26em;text-transform:uppercase}
.tkcue .arw{font-size:15px;animation:tk-bob 1.6s ease-in-out infinite}

/* clip, not just hidden: the fighter renders bleed past the edges on a phone
   (the section is ~116px wider than its box at 412px), and a hidden overflow
   can still be scrolled sideways by focus or scrollIntoView, which slid the
   whole section left. A clipped one cannot be scrolled at all. */
#select{position:relative;min-height:100vh;overflow:hidden;overflow:clip;scroll-margin-top:59px}
#selband{position:absolute;top:0;left:0;right:0;height:clamp(90px,10vw,150px);
  transition:background-color .5s ease;z-index:3;clip-path:polygon(0 0,100% 0,100% 38%,0 100%);pointer-events:none}
#selbar{position:absolute;bottom:0;left:0;right:0;height:6px;transition:background-color .5s ease;z-index:6}
#selrule1{position:absolute;left:0;right:0;bottom:118px;height:2px;opacity:.5;
  transition:background-color .5s ease;pointer-events:none;z-index:3}
#selrule2{position:absolute;left:-2%;right:-2%;bottom:96px;height:2.5px;opacity:.85;transform:rotate(-1.6deg);
  transition:background-color .5s ease;pointer-events:none;z-index:3}
/* Every fighter is rendered once and kept in the DOM, so switching is a
   cross-fade — no src swap, no decode gap, no reflow mid-animation. Each slot
   carries its own --sc / --dy, so those never transition between characters
   (that was what bent Doom's and Iron Man's entry path). */
#selartstage,#selwmstage{position:absolute;inset:0;pointer-events:none}
#selartstage{z-index:7}
#selwmstage{z-index:1;opacity:.10;
  filter:grayscale(1) sepia(.32) hue-rotate(163deg) saturate(2.4) brightness(1.1)}
.slot{position:absolute;top:calc(50% - var(--bandshift,30px));height:calc(var(--artbase) * var(--sc,1));
  transform:translate(calc(-50% + var(--dx,0%) + var(--drift,0px)),calc(-50% + var(--dy,0%))) scale(var(--zoom,1));
  transition:transform .55s var(--ease),visibility 0s .46s;visibility:hidden}
.slot.on{visibility:visible;transition:transform .55s var(--ease),visibility 0s 0s}
#selartstage .slot{left:66%}
#selwmstage .slot{left:74%;height:calc(var(--artbase) * var(--sc,1) * 1.34)}
.slot img{display:block;height:100%;width:auto;max-width:none;
  opacity:0;transform:translateX(48px) scale(.985);
  transition:opacity .42s var(--ease),transform .46s var(--ease)}
.slot.on img{opacity:1;transform:none}
#selartstage .slot img{filter:drop-shadow(0 30px 34px rgba(40,42,30,.35))}
#selwmstage .slot img{transition-delay:.14s}
/* opening the hero file pushes the fighter forward, the way the PlayStation site does.
   Only the transform changes, so the zoom is continuous — the art never restarts. */
#select.detail #selartstage{--zoom:1.12}
#select.detail #selwmstage{--zoom:1.18}
.selinner{position:relative;z-index:8;min-height:100vh;display:flex;flex-direction:column;
  justify-content:center;padding:88px clamp(46px,5vw,86px) 100px clamp(56px,5.6vw,96px);
  max-width:1600px;margin:0 auto;width:100%}
.selcol{display:flex;flex-direction:column;gap:20px;width:clamp(320px,28vw,430px)}
.selh2{margin:0;font-family:'NeoGramBlackC',var(--font-cond),sans-serif;font-size:clamp(44px,4vw,68px);
  line-height:.9;letter-spacing:.005em;text-transform:uppercase;color:var(--tk-ink-deep)}
.selhint{margin:-4px 0 0;font-family:var(--font-cond);font-weight:600;font-size:10.5px;letter-spacing:.26em;
  text-transform:uppercase;color:var(--tk-blue)}
#gridHead{display:flex;flex-direction:column;gap:20px}
#selgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
#selgrid.detail{grid-template-columns:repeat(6,1fr);gap:6px;opacity:.94;max-width:400px}
.tile{width:100%;aspect-ratio:5/7;padding:0;cursor:pointer;position:relative;background-repeat:no-repeat;
  outline:none;transition:transform .18s var(--ease),box-shadow .18s,filter .18s,background-color .3s}
.year1{aspect-ratio:5/7;border:1.5px dashed rgba(62,68,55,.45);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:4px}
.year1 .q{font-family:'SchussHand',cursive;font-size:30px;color:var(--tk-blue);transform:rotate(-8deg)}
.year1 .y{font-family:var(--font-cond);font-weight:600;font-size:10.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--tk-blue)}
.selmeta{display:flex;align-items:baseline;justify-content:space-between}
.selmeta .l{font-family:var(--font-cond);font-weight:600;font-size:10.5px;letter-spacing:.26em;
  text-transform:uppercase;color:var(--tk-blue)}
.selmeta .pg{font-family:'NeoGramBoldC',var(--font-cond),sans-serif;font-size:30px;letter-spacing:.08em;
  color:var(--tk-ink-deep)}
.selplate{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:8px}
.selsub{display:inline-block;transition:background-color .5s ease;
  font-family:'NeoGramBoldC',var(--font-cond),sans-serif;font-size:clamp(13px,1.05vw,17px);
  letter-spacing:.16em;text-transform:uppercase;padding:6px 16px 4px;transform:skewX(-6deg);
  box-shadow:3px 3px 0 rgba(35,38,31,.28);white-space:nowrap;animation:tk-rise .4s var(--ease) both}
.selname{margin:0;font-family:'NeoGramBlackC',var(--font-cond),sans-serif;font-size:clamp(38px,3.2vw,54px);
  line-height:.95;text-transform:uppercase;color:var(--tk-ink-deep);white-space:nowrap;
  animation:tk-rise .45s .07s var(--ease) both}
.selname .box{display:inline-block;background:var(--tk-cream);border:1px solid rgba(62,68,55,.25);
  box-shadow:6px 6px 0 rgba(35,38,31,.22);padding:8px 22px 0;transform:skewX(-6deg)}
.selname .dia{display:inline-block;width:.3em;height:.3em;transition:background-color .5s ease;
  transform:rotate(45deg);margin-right:.28em;vertical-align:.12em}
.selhead{display:flex;align-items:center;gap:12px}
#backbtn{width:36px;height:36px;border-radius:50%;border:1.5px solid var(--tk-ink-deep);
  background:var(--tk-cream);color:var(--tk-ink-deep);font-size:15px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:transform .18s var(--ease)}
#backbtn:hover{transform:translateX(-3px)}
.selhead span{font-family:'NeoGramBoldC',var(--font-cond),sans-serif;font-size:19px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--tk-ink-deep)}
#selbio{margin:2px 0 0;font-size:14px;line-height:1.65;color:var(--tk-ink);
  background:rgba(246,241,228,.9);border:1px solid rgba(62,68,55,.2);box-shadow:4px 4px 0 rgba(35,38,31,.12);
  padding:12px 16px;max-width:430px;animation:tk-rise .45s .12s var(--ease) both}
#stills{position:relative;z-index:5;display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin-top:26px;
  animation:tk-rise .5s .16s var(--ease) both}
.still{background:var(--tk-cream);border:1.5px solid var(--tk-line);box-shadow:8px 8px 0 rgba(62,68,55,.18);padding:6px}
.still.a{flex:0 1 clamp(260px,26vw,360px)}
.still.b{flex:0 1 clamp(190px,19vw,270px);min-width:0}
.still img{width:100%;aspect-ratio:16/9;object-fit:cover;background:#101014;border:1px solid var(--tk-line)}
.still p{margin:6px 2px 2px;font-family:var(--font-cond);font-weight:600;font-size:10.5px;
  letter-spacing:.2em;text-transform:uppercase;color:var(--tk-blue)}
.lineup{width:100%;aspect-ratio:16/9;border:1px solid var(--tk-line);background:rgba(76,127,181,.10);
  display:flex;align-items:flex-end;justify-content:center;gap:1.5%;padding:0 3% 4%;overflow:hidden}
.still .lineup img{aspect-ratio:auto;object-fit:contain;background:none;border:0;
  height:52%;width:auto;max-width:none;align-self:flex-end}
.hide{display:none!important}

/* ==================== FEATURED GAMES (bible) ==================== */
.band{position:relative;padding:clamp(72px,10vw,120px) 0}
.gcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(232px,1fr));gap:22px;margin-top:40px}
/* The whole card is the link to the game page. A title-only link makes people
   aim at eleven characters when the picture is the thing they are reaching for. */
.gclick{display:block;color:inherit}
.gclick:hover h3{color:var(--asw-red)}
.gcard .art .ph{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:14px;
  font-family:var(--font-cond);font-weight:600;font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);border:1px dashed var(--hairline)}
.gcard .art{position:relative;aspect-ratio:3/4;background:var(--panel-1);overflow:hidden}
.gcard .art img{width:100%;height:100%;object-fit:cover}
/* hover swaps the box art for the trailer */
.gcard .art video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity .3s var(--ease);z-index:2;background:#0d0d10}
.gcard:hover .art video{opacity:1}
.gcard .art .vtag{position:absolute;left:10px;top:10px;z-index:3;font-family:var(--font-cond);
  font-weight:600;text-transform:uppercase;letter-spacing:.16em;font-size:10.5px;color:#fff;
  background:rgba(10,10,12,.74);padding:4px 9px;opacity:0;transition:opacity .3s var(--ease)}
.gcard:hover .art .vtag{opacity:1}
.gcard.letterbox .art{background:#0d0d10;display:grid;place-items:center}
.gcard.letterbox .art img{object-fit:contain}
.gmeta{padding:18px 20px 22px;display:flex;flex-direction:column;gap:9px}
.gcard h3{margin:0;font-family:var(--font-cond);font-weight:700;text-transform:uppercase;font-size:17px;
  line-height:1.25;color:var(--text)}
.gplat{display:flex;flex-wrap:wrap;gap:6px}
.gplat span{font-family:var(--font-cond);font-weight:600;text-transform:uppercase;letter-spacing:.12em;
  font-size:10.5px;color:var(--muted);border:1px solid var(--hairline);border-radius:var(--radius-pill);padding:4px 10px}
.ggenre{font-family:var(--font-cond);font-weight:600;text-transform:uppercase;letter-spacing:.2em;
  font-size:10.5px;color:var(--red-text)}
.gnote{font-family:var(--font-cond);font-weight:600;text-transform:uppercase;letter-spacing:.14em;
  font-size:10.5px;color:var(--muted);opacity:.8}

/* ============================ INTEL (bible) ============================ */
.ncards{display:grid;grid-template-columns:repeat(auto-fit,minmax(226px,1fr));gap:22px;margin-top:40px}
.ncard{display:flex;flex-direction:column}
.nthumb{aspect-ratio:16/9;background:var(--panel-1);position:relative;overflow:hidden}
.nthumb img{width:100%;height:100%;object-fit:cover;position:relative;z-index:1}
.nthumb .ph{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--font-cond);
  font-weight:600;text-transform:uppercase;letter-spacing:.16em;font-size:10px;color:var(--muted);
  background:repeating-linear-gradient(45deg,rgba(128,128,128,.08) 0 8px,rgba(128,128,128,.14) 8px 16px)}
.nbody{padding:16px 18px 20px;display:flex;flex-direction:column;gap:10px;flex:1}
.ntop{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ndate{font-size:12.5px;color:var(--muted)}
.ncard h3{margin:0;font-family:var(--font-cond);font-weight:700;text-transform:uppercase;font-size:15.5px;
  line-height:1.3;color:var(--text)}

/* ============================ GEAR UP ============================ */
#gear{position:relative;overflow:hidden;background:linear-gradient(120deg,#E60012,#FF3B47)}
#gear .wm{position:absolute;right:-1%;bottom:-38%;font-family:var(--font-display);font-size:180px;
  line-height:1;text-transform:uppercase;color:rgba(255,255,255,.10);white-space:nowrap;pointer-events:none}
#gear .in{position:relative;max-width:var(--container);margin:0 auto;padding:64px clamp(20px,5vw,34px);
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
#gear h2{margin:0;font-family:var(--font-display);font-size:clamp(32px,4.4vw,56px);line-height:.9;
  text-transform:uppercase;color:#fff}
#gear a{font-family:var(--font-cond);font-weight:700;text-transform:uppercase;letter-spacing:.12em;
  font-size:14px;color:#fff;background:#0a0a0c;padding:16px 34px;clip-path:var(--clip-corner);
  box-shadow:0 12px 30px rgba(0,0,0,.35);white-space:nowrap;transition:transform .2s var(--ease)}
#gear a:hover{transform:translateY(-3px)}

/* ============================ FOOTER ============================ */
/* The footer is shared chrome too. The page prints the licence line and the
   shared footer carries it, rather than the page drawing a second footer of
   its own under the first. */

/* ============================ RESPONSIVE ============================ */
@media (max-width:980px){
  .tkherorow{flex-direction:column;align-items:stretch;padding:64px 30px 56px}
  .tkcopy{flex:0 0 auto}
  .selinner{padding:72px 30px 90px}
  .selcol{width:min(100%,430px)}
  #selartstage .slot{left:74%}
  #selartstage{opacity:.55}
  #selwmstage{display:none}
}
@media (max-width:620px){
  .tkbtn{flex:1 1 100%;text-align:center;justify-content:center}
}


/* ── Logged in: the WordPress admin bar ───────────────────────────────────
   The admin bar is fixed to the top of the viewport, and a sticky header
   pinned to top:0 slides underneath it, which is why the site nav looked
   sliced in half while scrolling. Visitors never see the bar; editors see it
   on every page, so the header steps down out of its way. 782px is the width
   at which WordPress makes the bar taller. */
body.admin-bar header{top:32px}
body.admin-bar .buybar{top:calc(var(--hdr-h,61px) + 32px)}
body.admin-bar{--admin-bar:32px}
@media screen and (max-width:782px){
  body.admin-bar header{top:46px}
  body.admin-bar .buybar{top:calc(var(--hdr-h,61px) + 46px)}
  body.admin-bar{--admin-bar:46px}
}


/* ---- Feature panel frame — matched to the game page gallery ------------
   .galmain on single-asw_game is a single bevelled box that clips the media:
   no border, no inset plate, the --clip-card chamfer doing the work. The home
   feature panel now uses the same treatment so the two pages read as one kit. */
.tkframe{position:relative;aspect-ratio:16/9;overflow:hidden;background:#0A0A0C;
  clip-path:var(--clip-card);border:0;padding:0;box-shadow:none}
.tkframe img,.tkframe video,.tkframe iframe{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;display:block;background:#0A0A0C;border:0;aspect-ratio:auto;max-height:none}
/* clear of both chamfers (top-left, bottom-right) */
.tkframe .tkctl{right:20px;bottom:20px}
/* Dropping the old inner max-height let the 16:9 frame stretch to the whole
   column. Cap the panel so it never taller than a comfortable fold instead —
   the frame then derives its width from that. */
.tkpanel{max-width:min(100%, calc(56vh * 16 / 9));margin-right:auto}

/* ---- Team lockup -----------------------------------------------------
   .selplate stacks its children, so the team gets its own line above the
   tagline: emblem plus name, set like an eyebrow rather than a pasted logo.
   The theme sets img{display:block}, hence the explicit override here. */
.selteamrow{display:flex;align-items:center;gap:9px;margin:0 0 9px}
.selplate img.selteam{display:block;height:30px;width:auto;flex:0 0 auto}
.selteamname{font-family:var(--font-cond),sans-serif;font-weight:600;font-size:10.5px;
  letter-spacing:.22em;text-transform:uppercase;color:var(--tk-ink,#3E4437);opacity:.75;white-space:nowrap}
@media (max-width:700px){
  .selplate img.selteam{height:24px}
  .selteamname{font-size:10.5px;letter-spacing:.18em}
}

/* Roster grid, grouped by team. The band spans the full grid width and sets the
   team the tiles under it belong to. Emblem comes from the Teams list on the
   Homepage screen; the label falls back to the hero's own team name. */
#selgrid .teamband{grid-column:1/-1;display:flex;align-items:center;gap:6px;margin:8px 0 1px}
#selgrid .teamband:first-child{margin-top:0}
#selgrid .teamband img{display:block;height:15px;width:auto;flex:0 0 auto;opacity:.92}
#selgrid .teamband span{font-family:var(--font-cond),sans-serif;font-weight:600;font-size:10.5px;
  letter-spacing:.2em;text-transform:uppercase;color:var(--tk-ink,#3E4437);opacity:.62;white-space:nowrap}

/* ---- per-fighter media strip -----------------------------------------
   The three fixed cards became a scrolling row: the character guide, the
   costume video (or the team trailer when a fighter has none), then every
   screenshot. Cards are buttons; they open in a lightbox rather than
   navigating away from the roster. */
#stills{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:10px;
  scroll-snap-type:x proximity;scrollbar-width:thin;align-items:stretch}
#stills::-webkit-scrollbar{height:6px}
#stills::-webkit-scrollbar-track{background:rgba(62,68,55,.08)}
#stills::-webkit-scrollbar-thumb{background:rgba(62,68,55,.32)}
#stills button.still{flex:0 0 clamp(146px,14.5vw,186px);scroll-snap-align:start;display:block;
  text-align:left;font:inherit;cursor:pointer;border:1.5px solid var(--tk-line);
  transition:transform .18s var(--ease),box-shadow .18s var(--ease)}
#stills button.still:hover,#stills button.still:focus-visible{transform:translate(-2px,-2px);
  box-shadow:11px 11px 0 rgba(62,68,55,.22)}
#stills button.still:focus-visible{outline:2px solid var(--tk-blue);outline-offset:2px}
.still__wrap{position:relative;display:block}
.still__play{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.still__play>span{width:42px;height:42px;border-radius:50%;background:rgba(16,16,20,.68);
  border:1.5px solid rgba(246,241,228,.9);display:grid;place-items:center}
.still__play>span::after{content:'';border-left:12px solid #F6F1E4;border-top:7.5px solid transparent;
  border-bottom:7.5px solid transparent;margin-left:3px}

/* ---- lightbox --------------------------------------------------------- */
.tklb{position:fixed;inset:0;z-index:9999;background:rgba(10,10,12,.93);display:none;
  place-items:center;padding:5vmin}
.tklb.on{display:grid}
.tklb__box{position:relative;width:min(1180px,92vw)}
.tklb__frame{position:relative;aspect-ratio:16/9;background:#0A0A0C;
  border:1.5px solid rgba(246,241,228,.22)}
.tklb__frame iframe,.tklb__frame img{position:absolute;inset:0;width:100%;height:100%;
  border:0;object-fit:contain;background:#0A0A0C;display:block}
.tklb__x{position:absolute;top:-42px;right:-4px;background:none;border:0;color:#F6F1E4;
  font-size:30px;line-height:1;cursor:pointer;padding:4px 10px}
.tklb__cap{margin:12px 2px 0;font-family:var(--font-cond),sans-serif;font-weight:600;
  font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:rgba(246,241,228,.72)}
@media (max-width:760px){#stills button.still{flex:0 0 62vw}.tklb__x{top:-38px}}

/* ---- picking a fighter: one hand-off, not a snap ----------------------
   Brand bible 09: motion supports the content then gets out of the way.
   Fade-up on entry, eased travel, .2/.35/.7s on cubic-bezier(.2,.7,.2,1),
   and it all honours prefers-reduced-motion. */
@keyframes tk-fadein{from{opacity:0}to{opacity:1}}
@keyframes tk-liftin{from{transform:translateY(10px)}to{transform:translateY(0)}}
@keyframes tk-sweep{0%{transform:scaleX(0);opacity:1}
  62%{transform:scaleX(1);opacity:1}100%{transform:scaleX(1);opacity:0}}

/* The art: cross-fade plus a short travel in from the open side of the
   board, so the fighter steps into frame rather than blinking into it. */
.slot{--drift:20px;opacity:0;
  transition:opacity var(--dur-mid) var(--ease),transform .55s var(--ease),visibility 0s .46s}
.slot.on{--drift:0px;opacity:1;
  transition:opacity var(--dur-mid) var(--ease),transform .55s var(--ease),visibility 0s 0s}

/* The colour sweep across the band, rules and footer bar rides the slow
   duration so the section changes team colour as one move. */
#selband,#selbar,#selrule1,#selrule2{transition:background-color var(--dur-slow) var(--ease)}

/* The plate, in reading order: team, tagline, name, file, count. */
.selteamrow{animation:tk-rise var(--dur-mid) .02s var(--ease) both}
#selbio{animation:tk-rise var(--dur-mid) .12s var(--ease) both}
#gridMeta .pg{display:inline-block;animation:tk-rise var(--dur-mid) .06s var(--ease) both}

/* Media cards last, one after another. Only opacity is animated on the
   button itself so the hover lift keeps its own transform. */
#stills button.still{animation:tk-fadein var(--dur-mid) var(--ease) both;
  animation-delay:calc(.14s + var(--n,0) * .04s)}
#stills button.still .still__wrap{animation:tk-liftin var(--dur-mid) var(--ease) both;
  animation-delay:calc(.14s + var(--n,0) * .04s)}

/* The picked tile takes an accent bar across its top, once. */
.tile.is-picked::after{content:'';position:absolute;left:0;right:0;top:0;height:3px;z-index:4;
  background:var(--sweep,var(--tk-ink,#3E4437));transform-origin:left center;pointer-events:none;
  animation:tk-sweep var(--dur-slow) var(--ease) both}

/* ---- roster: two columns of team blocks, names on the tiles -----------
   Modelled on the official roster sheet. Five stacked team rows would not
   fit a 1080p screen once browser chrome is taken off, and the fighter's
   name only appeared once you hovered. Blocks now run in two columns
   filling top-to-bottom (the row count is set in home.js from the number
   of teams), and every tile carries its fighter's name up the right edge. */
#selgrid{width:clamp(500px,44vw,780px);max-width:none;
  transition:width var(--dur-mid) var(--ease),transform var(--dur-mid) var(--ease);
  display:grid;grid-auto-flow:column;grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;justify-content:start;gap:10px 20px}

/* Opening the hero file must not shrink the tiles to an unreadable smudge.
   The roster keeps its tiles near full size and eases aside instead: the grid
   narrows a step and lifts, and the file, bio and media strip rise into the
   room it gives up. */
#select #selgrid.detail{width:clamp(430px,38vw,660px);max-width:none;opacity:.96;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;transform:translateY(-4px)}

.teamrow{display:flex;align-items:stretch;gap:10px}
.teamrow__mark{flex:0 0 auto;width:22px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:7px;padding-right:7px;overflow:hidden;
  border-right:1px solid rgba(62,68,55,.2)}
.teamrow__mark img{display:block;width:21px;height:21px;object-fit:contain;opacity:.92;flex:0 0 auto}
.teamrow__mark span{writing-mode:vertical-rl;transform:rotate(180deg);min-height:0;overflow:hidden;
  font-family:var(--font-cond),sans-serif;font-weight:600;font-size:10.5px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--tk-ink,#3E4437);opacity:.62;white-space:nowrap}
.teamrow__tiles{flex:1 1 auto;min-width:0;display:grid;gap:8px;
  grid-template-columns:repeat(4,minmax(0,1fr))}
#select #selgrid.detail .teamrow{gap:8px}
#select #selgrid.detail .teamrow__mark{width:20px;padding-right:7px;gap:0}
#select #selgrid.detail .teamrow__mark img{width:16px;height:16px}
#selgrid.detail .teamrow__mark span{display:none}
#select #selgrid.detail .teamrow__tiles{gap:6px}

/* The tile: artwork on its own layer so the duotone cannot reach the name. */
.tile{overflow:hidden}
.tileart{position:absolute;inset:0;background-repeat:no-repeat;
  transition:filter .18s var(--ease),background-color .3s var(--ease)}
/* The art stops at the name band, so a fighter centred in it is centred in
   the part of the tile you can see. */
#select #selgrid .tileart{right:15px}
#select #selgrid.detail .tileart{right:14px}
.tileart{overflow:hidden}
.tilefig{position:absolute;width:auto;max-width:none;pointer-events:none;user-select:none}
.tilename{position:absolute;top:0;right:0;bottom:0;z-index:2;width:15px;
  display:flex;align-items:center;justify-content:center;
  writing-mode:vertical-rl;transform:rotate(180deg);
  /* Below the 10.5px floor on purpose: the strip is 15px wide and the longer
     names (Captain America, Phoenix Cyclops) are cut off at 10.5. The full
     name is the tile's title and is shown large beside the grid. */
  font-family:var(--font-cond),sans-serif;font-weight:700;font-size:8.5px;
  letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;overflow:hidden;
  background:rgba(233,226,206,.9);color:var(--tk-ink,#3E4437);
  border-left:1px solid rgba(62,68,55,.28);pointer-events:none;
  transition:background-color var(--dur-fast) var(--ease),color var(--dur-fast) var(--ease)}
.tile[aria-selected="true"] .tilename{background:var(--sweep,#3E4437);color:var(--tfg,#F6F1E4);
  border-left-color:rgba(246,241,228,.35)}
#select #selgrid.detail .tilename{width:14px;font-size:7.5px;letter-spacing:.05em}

/* ---- fit the whole hero select in one screen -------------------------- */
.selinner{padding-top:56px;padding-bottom:54px}
.selcol{gap:14px}
#gridHead{gap:12px}
.selh2{font-size:clamp(34px,2.9vw,50px)}
#selbio{font-size:13px;line-height:1.55;padding:10px 14px}
#stills{margin-top:16px;gap:10px}

/* Short screens: the board is a fixed composition, so everything steps down
   together rather than letting the fighter's name fall off the bottom. */
@media (max-height:940px){
  .selinner{padding-top:40px;padding-bottom:36px}
  .selcol{gap:10px}
  #gridHead{gap:8px}
  .selh2{font-size:clamp(26px,2.3vw,38px)}
  #select #selgrid.detail{width:clamp(400px,35vw,600px)}
  .teamrow__mark{width:24px;padding-right:7px}
  .teamrow__mark img{width:17px;height:17px}
  .teamrow__mark span{font-size:10.5px}
  #selbio{font-size:12px;line-height:1.5;padding:8px 12px}
  #stills{margin-top:12px;gap:8px}
  #stills button.still{flex:0 0 clamp(118px,12vw,150px)}
}
@media (max-height:880px){
  .selinner{padding-top:34px;padding-bottom:30px}
  .selcol{gap:9px}
  #gridHead{gap:7px}
  .selh2{font-size:clamp(24px,2.1vw,34px)}
  #select #selgrid.detail{width:clamp(380px,33vw,560px)}
  #gridMeta{font-size:11px}
  #selbio{font-size:12px;line-height:1.5;padding:8px 12px}
  #stills{margin-top:10px}
}

/* ============================================================
   Intel: one lead story, the rest in a rail that scrolls sideways
   ============================================================ */
.nrow{display:grid;grid-template-columns:clamp(230px,17vw,300px) 1fr;gap:16px;margin-top:28px;align-items:stretch}
.nrow .nlead{display:flex;flex-direction:column}
.nrow .nlead .nthumb{aspect-ratio:16/10;flex:1 1 auto;min-height:0}
.nrow .nlead .nbody{padding:14px 18px 18px;gap:9px}
.nrow .nlead h3{font-size:clamp(15px,1.15vw,19px);line-height:1.16}
.nrail{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,1fr);
  grid-auto-columns:minmax(168px,196px);gap:12px;
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;padding-bottom:12px;-webkit-overflow-scrolling:touch}
.nrail>.ncard{scroll-snap-align:start}
.nrail .ncard h3{font-size:14px}
.nrail::-webkit-scrollbar{height:6px}
.nrail::-webkit-scrollbar-track{background:rgba(35,38,31,.10)}
.nrail::-webkit-scrollbar-thumb{background:rgba(35,38,31,.34)}
.nrail:focus-visible{outline:2px solid var(--accent,#D93A2B);outline-offset:4px}
@media (max-width:900px){
  .nrow{grid-template-columns:1fr;gap:16px;margin-top:26px}
  .nrow .nlead h3{font-size:18px}
  .nrail{grid-auto-columns:minmax(168px,60vw);gap:12px}
}

/* Wide screens: the lead story sits near the left edge and the rail
   runs off the right edge of the viewport, so it reads as scrollable. */
@media (min-width:1025px){
  #news{padding-block:clamp(72px,7vw,110px)}
  #news>.wrap{max-width:none;padding-left:clamp(24px,3.4vw,64px);padding-right:0}
}

/* ============================================================
   Choose your fight: smaller cards, two rows, the rest scrolls
   ============================================================ */
#games .gcards{grid-template-columns:repeat(auto-fit,minmax(196px,1fr));gap:18px}
@media (max-width:1024px){
  #games .gcards{
    display:grid;grid-auto-flow:column;grid-template-columns:none;
    grid-template-rows:repeat(2,auto);grid-auto-columns:minmax(150px,42vw);
    gap:12px;margin-top:24px;padding-bottom:12px;
    overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  #games .gcards>.gcard{scroll-snap-align:start}
  #games .gcards::-webkit-scrollbar{height:6px}
  #games .gcards::-webkit-scrollbar-track{background:rgba(35,38,31,.10)}
  #games .gcards::-webkit-scrollbar-thumb{background:rgba(35,38,31,.34)}
  #games .gcard .gmeta{padding:10px 12px 12px;gap:6px}
  #games .gcard h3{font-size:12.5px;line-height:1.2}
  #games .gplat span{font-size:10.5px;padding:2px 6px}
  #games .ggenre{font-size:10.5px}
}

/* ============================================================
   The hero film. A YouTube player scaled to cover the band, with
   no frame, no controls and nothing to click, so it reads as
   artwork rather than as an embed.
   ============================================================ */
/* The still sits underneath so the band never reads as a black hole while
   the player is still fetching, or if a browser refuses to autoplay it. */
.tkbgyt{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;
  background-color:#0b0d12;background-position:50% 30%;background-size:cover;
  background-repeat:no-repeat;container-type:size}
.tkbgyt__f{position:absolute;top:50%;left:50%;border:0;pointer-events:none;
  width:100%;height:100%;min-width:100%;min-height:100%;
  width:max(100cqw, 177.7778cqh);height:max(100cqh, 56.25cqw);
  transform:translate(-50%,-50%)}

/* ============================================================
   The phone layout, taken from the game page rather than invented
   again: the render bleeds in from the top and fades out where the
   copy begins, and everything under it runs down the middle.
   ============================================================ */
.selstrip{display:contents}
.selarr,.selscrub,.filetoggle{display:none}

@media (max-width:760px){
  #tokon .tkhero{height:auto;min-height:calc(100svh - 59px);padding-bottom:34px}

  #select{min-height:0}
  /* The fighter stands in front of the shard, not behind it. The section's
     own overflow is the only thing that trims them, so they are cropped
     just where they would climb into the band above and nowhere else. */
  #select #selartstage{position:absolute;left:0;right:0;top:0;bottom:auto;
    height:clamp(400px,96vw,600px);opacity:1;z-index:4;overflow:visible;
    -webkit-mask-image:linear-gradient(#000 70%,rgba(0,0,0,.35) 89%,transparent 100%);
    mask-image:linear-gradient(#000 70%,rgba(0,0,0,.35) 89%,transparent 100%);
    -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
    -webkit-mask-size:100% 100%;mask-size:100% 100%}
  /* Everyone shrinks by the same amount, so the roster keeps its relative
     scale; only the block they stand in got smaller. */
  #select #selartstage{--artbase:86%}
  #select #selartstage .slot{left:50%;--bandshift:-20px;--dx:0%;--dy:0%}
  #select #selwmstage{display:none}

  #select .selinner{min-height:0;padding-top:0;padding-bottom:30px;
    justify-content:flex-start;position:relative}
  #select .selcol{width:auto!important;max-width:none!important;
    position:relative;z-index:5;min-width:0;gap:0;text-align:center;
    padding-top:clamp(300px,92vw,520px)}

  #select #gridHead,#select #gridHead.hide{display:block;text-align:center}
  #select #detailHead{display:none}

  #select .selstrip{display:block;position:relative;margin:14px -14px 0}
  #select #selgrid,#select #selgrid.detail{
    display:flex!important;flex-wrap:nowrap;gap:6px;justify-content:flex-start;
    max-width:none;opacity:1;padding:2px 30px;transition:none;
    overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;scroll-behavior:smooth}
  #select #selgrid::-webkit-scrollbar{display:none}
  #select #selgrid[data-gliding]{scroll-snap-type:none}
  #select #selgrid .teamrow,#select #selgrid .teamrow__tiles{display:contents}
  #select #selgrid .teamrow__mark{display:none}
  #select #selgrid .tile{flex:0 0 auto;width:64px;height:78px;
    scroll-snap-align:center;transform:none!important}
  #select #selgrid .tilename{display:none}
  /* The name strip is hidden here, so the art takes the full tile. The
     .detail form is named too: the desktop rule for an open file (right:14px)
     outranks the plain one, and left a blank band down every phone tile. */
  #select #selgrid .tileart,
  #select #selgrid.detail .tileart{right:0}
  #select #selgrid .year1{flex:0 0 auto;width:64px;height:78px}

  #select .selarr{display:grid;place-items:center;position:absolute;top:50%;
    transform:translateY(-50%);width:26px;height:52px;z-index:6;cursor:pointer;
    border:1px solid rgba(35,38,31,.35);background:rgba(255,255,255,.9);
    color:#23261f;font-size:18px;line-height:1;padding:0;
    -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
    transition:opacity var(--dur-fast,.2s) var(--ease,ease)}
  #select .selarr--p{left:0}
  #select .selarr--n{right:0}
  #select .selarr[disabled]{opacity:.22}

  #select .selscrub{display:block;position:relative;height:3px;margin:10px 0 0;
    background:rgba(35,38,31,.16)}
  #select .selscrub>span{position:absolute;top:0;bottom:0;left:0;width:30%;
    background:var(--accent,#D93A2B);transition:left var(--dur-fast,.2s) var(--ease,ease)}

  #select #gridMeta,#select #gridMeta.hide{display:flex;justify-content:center;
    gap:16px;margin-top:12px}

  /* The plate stack runs down the middle, and the name is sized to the
     column so a long one like Captain America cannot push past the edge. */
  /* Tagline and name share a line so the fighter file is not shoved off
     the bottom of the screen. A long pair wraps back to two rows on its own. */
  #select .selplate{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;
    align-items:center;gap:6px 6px;text-align:center;width:100%}
  #select .selteamrow{flex:1 0 100%;justify-content:center;margin-bottom:2px}
  #select #selsub{flex:0 1 auto;margin:10px 0 0;font-size:clamp(10.5px,2.9vw,12px);
    letter-spacing:.12em;padding:5px 9px 4px}
  #select #selname{flex:0 1 auto;margin:10px 0 0;font-size:clamp(16px,4.6vw,23px)}
  #select #selname .box{padding:6px 12px 0}
  #select #selname .box{margin-left:auto;margin-right:auto}
  #select .filetoggle{flex:1 0 100%}
  #select #selbio{flex:1 0 100%}

  #select .filetoggle{display:inline-flex;align-items:center;gap:8px;
    margin:14px auto 2px;padding:0;background:none;border:0;cursor:pointer;
    font-family:var(--font-cond);font-weight:700;text-transform:uppercase;
    letter-spacing:.12em;font-size:11px}
  #select .filetoggle .ft__i{display:grid;place-items:center;width:20px;height:20px;
    font-size:9px;background:var(--accent,#D93A2B);color:#fff}

  #select #selbio,#select #stills{display:none}
  #select.fileopen #selbio{display:block;margin:12px auto 0;text-align:center}
  #select.fileopen #stills{display:flex;gap:10px;margin:14px -14px 0;padding:0 14px;
    overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  #select #stills>*{flex:0 0 58vw;scroll-snap-align:start}
}
@media (max-width:760px) and (prefers-reduced-motion:reduce){
  #select #selgrid{scroll-behavior:auto}
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Choose your fight: the hover clip, as a YouTube film
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.gcard .art{position:relative;overflow:hidden}
.gcard .gyt{position:absolute;inset:0;z-index:2;opacity:0;pointer-events:none;
  container-type:size;overflow:hidden;
  transition:opacity var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1)}
.gcard.is-playing .gyt{opacity:1}
/* The film is 16:9 and the plate is 3:4, so the iframe is sized off the
   container's own box and centred: cover, without letterboxing. */
.gcard .gyt__f{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:max(100cqw,calc(100cqh * 16 / 9));
  height:max(100cqh,calc(100cqw * 9 / 16));
  border:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){
  .gcard .gyt{transition:none}
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Gear up: every line of it, and room for pictures in the band
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* The picture sits under the red rather than replacing it, so white type
   stays readable whatever gets uploaded. */
#gear.has-shot::before{content:'';position:absolute;inset:0;z-index:0;
  background-image:var(--gearbg);background-size:cover;background-position:50% 50%;
  opacity:.34;mix-blend-mode:multiply;pointer-events:none}
#gear .in{gap:clamp(18px,2.4vw,34px)}
#gear .gcopy{display:flex;flex-direction:column;gap:8px;flex:0 1 auto}
#gear .gsub{margin:0;font-family:var(--font-cond,inherit);font-size:14px;line-height:1.5;
  color:rgba(255,255,255,.86);max-width:44ch}
#gear .gshots{display:flex;align-items:center;gap:12px;flex:1 1 auto;justify-content:center;
  overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0;scrollbar-width:none}
#gear .gshots::-webkit-scrollbar{display:none}
#gear .gshot{flex:0 0 auto;display:block;width:96px;height:96px;overflow:hidden;
  background:rgba(0,0,0,.16);clip-path:var(--clip-plate,none);
  transition:transform var(--dur-fast,.20s) cubic-bezier(.2,.7,.2,1)}
a.gshot:hover{transform:translateY(-3px)}
#gear .gshot img{width:100%;height:100%;object-fit:cover;display:block}
/* The button keeps the shape it already had; the new class just stops the
   pictures being styled as buttons too, now that the band holds links. */
#gear .gbtn{flex:0 0 auto}
@media (max-width:900px){
  #gear .in{flex-direction:column;align-items:flex-start;padding-block:44px}
  #gear .gshots{justify-content:flex-start;width:100%}
  #gear .gshot{width:76px;height:76px}
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Play now: the takeover makes room for the platform menu
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* home.js works out how far the open menu runs past the diagonal shard and
   writes the shortfall into --tk-grow. Nothing was reading it, which is why
   the menu still got clipped on a short window: the script was doing its sum
   and posting the answer to an address with nobody home.

   Growing the takeover pushes everything below it down, because it is an
   ordinary block in the flow. The height carries the transition so the room
   is made over a third of a second rather than appearing between frames. */
#tokon .tkhero{
  height:calc(clamp(560px, -59px + 100svh, 900px) + var(--tk-grow, 0px));
  transition:height var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1)}
@media (prefers-reduced-motion:reduce){
  #tokon .tkhero{transition:none}
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Play now: the price beside each platform
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
/* The row is name, store, price, arrow. The price takes the space the row
   was already leaving before the arrow, so nothing has to get wider. */
.tkddmenu .pr{margin-left:auto;display:inline-flex;align-items:baseline;gap:7px;white-space:nowrap;
  font-family:var(--font-cond,inherit);font-weight:700;font-size:13px}
.tkddmenu .pr__was{opacity:.55;font-weight:400;text-decoration:line-through}
.tkddmenu .pr--off .pr__now{color:var(--asw-red,#E60012)}
.tkddmenu .pr__off{font-size:11px;letter-spacing:.04em;padding:2px 6px;border-radius:999px;
  background:var(--asw-red,#E60012);color:#fff}
/* The arrow was the thing pushed to the right; with a price in the row it is
   the price that holds that job, so the arrow sits next to it. */
.tkddmenu .pr + .go{margin-left:10px}
@media (max-width:520px){
  .tkddmenu .pr{font-size:12px;gap:5px}

}

/* .................... FEATURED GAMES rail ....................
   Featured is a shortlist, and it reads as one: a row of slanted panels that
   stay narrow until somebody points at one, which then opens far enough to
   run its trailer and say what the game is. Six cards on a wrapping grid put
   the sixth on a second row on its own, so the row now runs on one line and
   scrolls instead. */
#games .grail__head{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:-30px}
#games .grail__nav{display:flex;gap:8px}
#games .gnav{width:38px;height:38px;border-radius:50%;border:1px solid var(--hairline);background:transparent;
  color:var(--text);font-family:var(--font-cond);font-size:20px;line-height:1;cursor:pointer;
  display:grid;place-items:center;padding:0 0 2px;
  transition:background var(--dur-fast,.2s) cubic-bezier(.2,.7,.2,1),
    border-color var(--dur-fast,.2s) cubic-bezier(.2,.7,.2,1),
    color var(--dur-fast,.2s) cubic-bezier(.2,.7,.2,1)}
#games .gnav:hover{background:var(--asw-red);border-color:var(--asw-red);color:#fff}
#games .gnav[disabled]{opacity:.28;cursor:default}
#games .gall{font-family:var(--font-cond);font-weight:700;text-transform:uppercase;letter-spacing:.14em;
  font-size:11px;color:var(--red-text);text-decoration:none;display:inline-flex;align-items:center;gap:8px}
#games .gall span{transition:transform var(--dur-fast,.2s) cubic-bezier(.2,.7,.2,1)}
#games .gall:hover span{transform:translateX(4px)}

#games .gcards--rail{display:flex;grid-template-columns:none;align-items:stretch;
  /* Roughly the shape of a box art (3:4) per panel, so the whole picture
     fits between the slants without cropping (Nov 2026). Was up to 720px,
     which made each panel twice as tall as it was wide. */
  gap:12px;margin-top:20px;height:clamp(440px,34vw,640px);justify-content:center;
  overflow:hidden;scrollbar-width:none;-ms-overflow-style:none;
  padding-top:6px;padding-bottom:52px;
  /* The row is centred on the screen rather than boxed into the text column,
     which is what lets one panel open to half the width of the display. */
  width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  /* The track is exactly as wide as the panels want, capped at the screen. It
     never changes width when a panel opens, so nothing re-centres and nothing
     slides out from under the pointer. */
  padding-left:max(clamp(16px,3vw,56px), calc((100vw - (var(--gn,6) * var(--gw,348px) + (var(--gn,6) - 1) * 12px)) / 2));
  padding-right:max(clamp(16px,3vw,56px), calc((100vw - (var(--gn,6) * var(--gw,348px) + (var(--gn,6) - 1) * 12px)) / 2))}
#games .gcards--rail::-webkit-scrollbar{display:none}

/* Each game is a slanted panel. The clip does the leaning, so the artwork
   inside is never skewed with it. */
#games .gcards--rail>.gcard{position:relative;flex:1 1 0;min-width:0;max-width:none;
  height:100%;will-change:flex-grow;
  overflow:visible;background:transparent;border:0;border-radius:0;clip-path:none;
  box-shadow:none;outline:0;
  /* Opening is the moment worth watching, so it runs at half speed. */
  transition:flex-grow calc(var(--dur-mid,.35s) * 2) cubic-bezier(.2,.7,.2,1)}
/* Panels divide the track between them, so opening one takes room from its
   neighbours and the row keeps exactly the same total width. Sizing by
   flex-basis asked for more width than the track had, so the browser ran a
   shrink pass over every panel at once: that was the condensing, and the
   re-centring that followed it was the shake. */
#games .gcards--rail>.gcard:hover,
#games .gcards--rail>.gcard:focus-within{flex-grow:var(--ggrow,5)}
/* The lean and the cropping now live on the link, so the name can sit under
   the panel without being clipped away. */
#games .gcards--rail .gclick{display:block;position:relative;height:100%;overflow:hidden;
  background:var(--panel-1);
  clip-path:polygon(var(--sl,26px) 0, 100% 0, calc(100% - var(--sl,26px)) 100%, 0 100%)}
/* The art sits inside the lean, never under it: inset by the slant on both
   sides, the whole picture fits between the two slanted edges, and contain
   shows all of it on the dark plate rather than cropping a logo off an edge
   (Lany, Nov 2026). The trailer that plays on hover still fills the panel. */
#games .gcards--rail .gclick{background:#0d0d10}
#games .gcards--rail .gcard .art{position:absolute;inset:0;height:100%;aspect-ratio:auto;background:transparent}
#games .gcards--rail .gcard .art img{position:absolute;top:0;left:var(--sl,26px);width:calc(100% - 2 * var(--sl,26px));height:100%;object-fit:contain;
  filter:saturate(.74) brightness(.84);
  transition:filter var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1),
    transform var(--dur-slow,.7s) cubic-bezier(.2,.7,.2,1)}
#games .gcards--rail>.gcard:hover .art img,
#games .gcards--rail>.gcard:focus-within .art img{filter:none;transform:scale(1.04)}
#games .gcards--rail .gyt__f{transform:translate(-50%,-50%) scale(1.36)}

/* At rest the name is a caption under the panel. Opened, it travels into the
   bottom left corner of the artwork and turns white to sit on it. */
#games .gcards--rail .gname{position:absolute;left:0;right:0;bottom:-34px;z-index:5;
  font-family:var(--font-cond);font-weight:700;text-transform:uppercase;letter-spacing:.13em;
  font-size:12px;line-height:1.2;color:var(--text);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;pointer-events:none;
  transition:transform calc(var(--dur-mid,.35s) * 2) cubic-bezier(.2,.7,.2,1),
    color var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1),
    padding-left calc(var(--dur-mid,.35s) * 2) cubic-bezier(.2,.7,.2,1),
    text-shadow var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1)}
#games .gcards--rail>.gcard:hover .gname,
#games .gcards--rail>.gcard:focus-within .gname{transform:translateY(-52px);padding-left:18px;
  color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.85)}
#games .gcards--rail .gmeta{position:absolute;left:0;right:0;bottom:0;z-index:2;pointer-events:none;
  padding:18px 16px 46px calc(var(--sl,26px) * .6 + 6px);gap:8px;opacity:0;transform:translateY(10px);
  background:linear-gradient(to top,rgba(8,8,10,.95) 0%,rgba(8,8,10,.78) 46%,rgba(8,8,10,0) 100%);
  transition:opacity var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1),
    transform var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1)}
#games .gcards--rail>.gcard:hover .gmeta,
#games .gcards--rail>.gcard:focus-within .gmeta{opacity:1;transform:none}
/* The name that flies in from under the panel is the title now. */
#games .gcards--rail .gcard h3{display:none}
#games .gcards--rail .gclick:hover h3{color:#fff}
#games .gcards--rail .gplat{flex-wrap:nowrap;overflow:hidden}
#games .gcards--rail .gplat span{color:rgba(255,255,255,.84);border-color:rgba(255,255,255,.3);white-space:nowrap}
#games .gcards--rail .ggenre{color:#ff7a72;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* A soft wash at the top so a pale logo still reads over bright key art. */
#games .gcards--rail .gclick::before{content:'';position:absolute;left:0;right:0;top:0;height:34%;z-index:3;
  background:linear-gradient(to bottom,rgba(8,8,10,.7) 0%,rgba(8,8,10,.28) 55%,rgba(8,8,10,0) 100%);
  opacity:0;pointer-events:none;
  transition:opacity var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1)}
#games .gcards--rail>.gcard:hover .gclick::before,
#games .gcards--rail>.gcard:focus-within .gclick::before{opacity:1}
/* The logo wears the panel while the trailer runs, the way the game page does.
   It sits clear of the slant so the lean never clips it. */
#games .gcards--rail .glogo{position:absolute;z-index:4;top:16px;
  left:calc(var(--sl,26px) + 16px);width:min(38%,190px);max-height:88px;
  opacity:0;transform:translateY(-6px);pointer-events:none;
  transition:opacity var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1),
    transform var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1)}
#games .gcards--rail .glogo img{display:block;width:100%;height:auto;max-height:88px;
  object-fit:contain;object-position:left top;filter:drop-shadow(0 3px 14px rgba(0,0,0,.55))}
#games .gcards--rail>.gcard:hover .glogo,
#games .gcards--rail>.gcard:focus-within .glogo{opacity:1;transform:none;
  transition-delay:calc(var(--dur-mid,.35s) * .6)}
/* A game with a Featured Games picture: the logo-free art fills the panel
   and the game logo sits on it at rest, inside the slant on both sides so
   the lean never cuts it (John, Nov 2026). It stays put when the panel
   opens and the trailer runs underneath. */
#games .gcards--rail .gcard--split .art img{left:0;width:100%;object-fit:cover;object-position:50% 50%}
#games .gcards--rail .gcard--split .gclick::before{bottom:auto;height:40%;opacity:1;
  background:linear-gradient(to bottom,rgba(8,8,10,.55) 0%,rgba(8,8,10,0) 100%)}
#games .gcards--rail .gcard--split .gclick[data-pos=bottom]::before{top:auto;bottom:0;
  background:linear-gradient(to top,rgba(8,8,10,.62) 0%,rgba(8,8,10,0) 100%)}
#games .gcards--rail .gcard--split .gclick[data-pos=middle]::before{opacity:0}
#games .gcards--rail .gcard--split .glogo{top:6%;left:calc(var(--sl,26px) + 16px);right:calc(var(--sl,26px) + 16px);
  width:auto;height:24%;max-height:none;display:flex;align-items:flex-start;justify-content:center;
  opacity:1;transform:none;transition:bottom var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1)}
#games .gcards--rail .gcard--split .gclick[data-pos=middle] .glogo{top:38%;align-items:center}
#games .gcards--rail .gcard--split .gclick[data-pos=bottom] .glogo{top:auto;bottom:7%;align-items:flex-end}
#games .gcards--rail .gcard--split .glogo img{width:auto;max-width:100%;height:auto;max-height:100%;object-position:center}
/* Opened, the name and the platform line rise from the bottom, so a bottom
   logo steps up out of their way. */
#games .gcards--rail>.gcard--split:hover .gclick[data-pos=bottom] .glogo,
#games .gcards--rail>.gcard--split:focus-within .gclick[data-pos=bottom] .glogo{bottom:30%}
#games .gcards--rail .gcta{font-family:var(--font-cond);font-weight:700;text-transform:uppercase;
  letter-spacing:.16em;font-size:10.5px;color:#fff;display:inline-flex;align-items:center;gap:8px}
/* The badge sat over the clip and got clipped by the lean. */
#games .gcards--rail .vtag{display:none}

@media (max-width:1024px){
  #games .gcards--rail{height:clamp(360px,78vw,520px);gap:10px}
  #games .gcards--rail>.gcard{flex-basis:clamp(112px,30vw,150px);min-width:44px}
  #games .gcards--rail>.gcard:hover,
  #games .gcards--rail>.gcard:focus-within{flex-basis:min(var(--gopen,50vw),74vw)}
  #games .grail__head{margin-top:-18px}
}
@media (prefers-reduced-motion: reduce){
  #games .gcards--rail{scroll-behavior:auto}
  #games .gcards--rail>.gcard:hover .art img{transform:none}
}


/* ======================================================================
   PHONES: THE HOMEPAGE
   ====================================================================== */

/* ---- THE TAKEOVER STOPS CUTTING ITSELF OFF ---------------------------
   There is already a rule for this width saying the takeover should be
   as tall as its contents. It never applied. The growing-height rule
   that came later, the one on #tokon .tkhero that adds --tk-grow to the
   height, carries the same weight and sits further down the file, so it
   won every time.

   On a tall phone the difference did not show. On a shorter one, or on
   any phone once the browser's own bars are counted, the hero settled at
   about 600px around 843px of content and the rest was cut: the trailer
   panel lost its bottom edge and the scroll cue underneath it went
   entirely. Same weight again, but last, so this one wins.
   ------------------------------------------------------------------- */
@media (max-width:760px){
  /* height:auto is the fix. The rest of this rule is a guarantee.

     Everything above decides how tall the takeover should be, and the
     answer depends on svh, on which of several same-weight rules a given
     browser lands on, and on when the phone's own bars retract. If any of
     that lands short, overflow:hidden turns "a bit short" into "the
     trailer has no bottom edge", which is the failure John kept seeing
     and which never reproduced on a desktop at phone width.

     So the takeover stops hiding what it cannot fit. It does not need to
     clip: the oversized background film is already clipped by .tkbgyt,
     which has its own overflow:hidden, so nothing bleeds sideways and no
     horizontal scrollbar appears. Checked by forcing the hero to 520px:
     the panel stayed visible and the page still measured 407px wide on a
     414px screen. Whatever height wins, the content survives. */
  #tokon .tkhero{height:auto;min-height:calc(100svh - 59px);overflow:visible}
}

/* ---- FEATURED GAMES: A SWIPE STRIP -----------------------------------
   The slanted cards share the row and shrink to fit, which is the point
   of them on a wide screen. Six of them on a 390px screen came to 51px
   each: a row of slivers with the titles cut to MARVE..., GUILTY...,
   QLIPHA....

   They keep their width now and the row scrolls instead, so a card is
   wide enough to read as artwork and the name underneath it fits in
   full, over two lines where a title needs them. The hover-to-widen
   behaviour is pinned shut here: it is a pointer affordance, and on a
   touch screen it only made cards jump as a thumb went past.

   A three-across, two-down grid was tried instead and taken back out. It
   fit on one screen, but only by dropping the cards to 120px, where the
   26px slant eats a fifth of the artwork and the cards stop reading as
   the angled panels the section is built from. Swiping costs less than
   that.
   ------------------------------------------------------------------- */
@media (max-width:760px){
  #games .gcards--rail{overflow-x:auto;justify-content:flex-start;
    scroll-snap-type:x mandatory;scroll-padding-left:16px;
    scrollbar-width:none;height:auto;
    padding-bottom:46px;-webkit-overflow-scrolling:touch}
  #games .gcards--rail::-webkit-scrollbar{display:none}
  #games .gcards--rail > .gcard{flex:0 0 236px;min-width:236px;
    scroll-snap-align:start;height:clamp(348px,92vw,460px)}
  #games .gcards--rail > .gcard:hover,
  #games .gcards--rail > .gcard:focus-within{flex-basis:236px}
  #games .gcards--rail .gname{white-space:normal;text-overflow:clip;line-height:1.2}
}


/* ---- FEATURED GAMES on mobile: close the channel between the cards ---------
   The cards are parallelograms with an 80px slant, so two of them sitting 10px
   apart leave a 90px white channel between the artwork: the slant, not the gap,
   is what made them look stranded. Pulling each card back by most of the slant
   lets the angled edges run almost parallel the way they do on the desktop row,
   and the card gets wider so the art reads instead of the whitespace around it.
   The name is held to the width of the card's bottom edge, which both sits it
   under the art and keeps it clear of the name of the card tucked in behind.
   -------------------------------------------------------------------------- */
@media (max-width:760px){
  #games .gcards--rail{gap:0}
  #games .gcards--rail > .gcard,
  #games .gcards--rail > .gcard:hover,
  #games .gcards--rail > .gcard:focus-within{
    flex:0 0 clamp(272px,84vw,324px);
    min-width:clamp(272px,84vw,324px);
    margin-right:-68px;
  }
  #games .gcards--rail > .gcard:last-child{margin-right:0}
  #games .gcards--rail .gname{
    max-width:calc(100% - 80px);
    font-size:11px;
    letter-spacing:.11em;
  }
}


/* ---- FEATURED GAMES on desktop: the same interlock as the phone row -------
   Same 80px slant, same arithmetic. Six cards sitting 12px apart left a 92px
   white channel between the artwork at every height, so the row read as six
   separate slivers instead of one angled band. Pulling each card back by most
   of the slant closes that to 12px, and because the cards are flex:1 1 0 the
   400px it frees is handed straight back to them: they widen on their own and
   no width is set here, which keeps the hover-to-widen animation intact. The
   margin is fixed rather than proportional, so the channel stays 12px however
   the row redistributes itself. The name is capped to the width of the card's
   bottom edge, which sits it under the art and clear of the name of the card
   tucked in behind. A hovered card is raised so it lifts above its neighbours.
   -------------------------------------------------------------------------- */
@media (min-width:761px){
  #games .gcards--rail{gap:0}
  #games .gcards--rail > .gcard{margin-right:-68px}
  #games .gcards--rail > .gcard:last-child{margin-right:0}
  #games .gcards--rail > .gcard:hover,
  #games .gcards--rail > .gcard:focus-within{z-index:2}
  #games .gcards--rail .gname{max-width:calc(100% - 80px)}
}
/* Sony character select thumbnails on the Hero Select tiles (9 Oct 2026):
   the official portrait fills the tile, trimmed only where the shapes differ. */
.tilecs{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 18%;pointer-events:none;user-select:none}

/* ---- FEATURED GAMES on phones: the genre under the name -------------------
   The platform and genre line lives in the hover panel, and a phone cannot
   hover, so it never showed there. A second copy sits under the card name on
   phones only, in the same red uppercase as the panel (John, 16 Nov 2026).
   The name is anchored by its bottom edge, so a name that wraps grows upward
   and never runs into this line. */
.ggenre-m{display:none}
@media (max-width:760px){
  #games .gcards--rail{padding-bottom:64px}
  #games .gcards--rail .ggenre-m{display:block;position:absolute;left:0;bottom:-52px;z-index:5;
    max-width:calc(100% - 80px);font-family:var(--font-cond);font-weight:600;
    text-transform:uppercase;letter-spacing:.2em;font-size:10.5px;line-height:1.2;
    color:var(--red-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
}

/* ---- FEATURED GAMES: centre each logo on the part of the card that shows ----
   Every card but the last has its right 68px under the next card (the -68px
   interlock above), so a logo centred on the whole card sat about 30px right
   of the visible art and ran into the next card (John, 16 Nov 2026). The box
   is moved left by the overlap, less the slant at the logo's height: a top logo
   sits about 18% down, a middle one at 50%, a bottom one about 81%. A hovered
   card comes to the front and shows whole, so its logo centres on all of it.
   The last card has nothing over it and keeps the rule above. */
#games .gcards--rail>.gcard--split:not(:last-child) .glogo{
  left:calc(var(--sl,26px) * .82 + 16px);right:calc(68px - var(--sl,26px) * .82 + 16px);
  transition:bottom var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1),
    left var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1),right var(--dur-mid,.35s) cubic-bezier(.2,.7,.2,1)}
#games .gcards--rail>.gcard--split:not(:last-child) .gclick[data-pos=middle] .glogo{
  left:calc(var(--sl,26px) * .5 + 16px);right:calc(68px - var(--sl,26px) * .5 + 16px)}
#games .gcards--rail>.gcard--split:not(:last-child) .gclick[data-pos=bottom] .glogo{
  left:calc(var(--sl,26px) * .19 + 16px);right:calc(68px - var(--sl,26px) * .19 + 16px)}
@media (min-width:761px){
  #games .gcards--rail>.gcard--split:not(:last-child):hover .glogo,
  #games .gcards--rail>.gcard--split:not(:last-child):focus-within .glogo,
  #games .gcards--rail>.gcard--split:not(:last-child):hover .gclick[data-pos] .glogo,
  #games .gcards--rail>.gcard--split:not(:last-child):focus-within .gclick[data-pos] .glogo{
    left:calc(var(--sl,26px) + 16px);right:calc(var(--sl,26px) + 16px)}
}
