/* ====================================================================
   SHARED CHROME
   --------------------------------------------------------------------
   The header, the skip link and the footer, in one place, loaded before
   every page's own sheet.

   These rules used to be pasted into each template's stylesheet. Three
   copies stayed identical and the fourth never got them at all, so the
   home page's nav rendered as a line of plain body text with a stray
   button under it while every other page looked right. Duplication is
   fine until one copy is missing; then it is a bug nobody can see from
   inside the file that has it.

   A page sheet may still override anything here. Nothing in here knows
   about a particular page.
   ==================================================================== */

/* ---- TOKENS ----------------------------------------------------------
   These live here rather than in each page's sheet because the shared header
   and footer below consume them, and a stylesheet that depends on values it
   does not own is one edit away from a header with no background. The page
   sheets still carry their own copy; theirs load second and win, and the
   values are the same. This is the set a page with no sheet of its own gets.
   ------------------------------------------------------------------- */
:root{
  --asw-red:#E60012; --asw-red-hi:#FF3B47;
  --accent-blue:#2AA9E0; --accent-violet:#B14CE8; --accent-ember:#FF6A2B; --accent-toxic:#00C27A;

  /* ---- PER-TITLE ACCENT (slot: accent_color) ----
     Drives the diagonal cuts, kickers, tags and hover bars on this page.
     Guilty Gear -Strive- rides on ASW red. Swap this one value for a title
     with its own identity and every cut on the page follows. */
  --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);
  --dur-fast:.20s; --dur-mid:.35s; --dur-slow:.70s;
  --radius-btn:4px; --radius-card:10px; --radius-lg:14px; --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);
  --clip-plate:polygon(11px 0,100% 0,100% calc(100% - 11px),calc(100% - 11px) 100%,0 100%,0 11px);
  --clip-tag:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
  --container:1180px; --container-wide:1360px;
  --grid-size:46px;
  --cut-h:clamp(54px,6vw,96px);

  /* LIGHT is the base token set and the default a visitor lands on.
     Dark and ARC RED are opt-in via the nav toggle (Light > Dark > ARC RED).
     No system-preference fallback: the brand default wins. */
  --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);
  --focus:#0a0a0c;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --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);
  --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);
  --focus:#FFFFFF;
  color-scheme:dark;
}
:root[data-theme="red"]{
  --bg:#7a000e; --panel-1:rgba(12,12,14,.62); --panel-2:rgba(12,12,14,.72);
  --text:#FFFFFF; --muted:rgba(255,255,255,.78); --red-text:#FF9AA4;
  --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,.6); --hud-grad:linear-gradient(-48deg,#ffffff,#ff9aa4);
  --focus:#FFFFFF;
  color-scheme:dark;
}

/* ---- BASE -----------------------------------------------------------
   Enough for a page that is not one of the four designed templates — an
   ordinary Page, a post, search results, the 404 — to render as this site
   rather than as unstyled HTML. Those pages used to be handed the game
   page's stylesheet and script, which then threw on the first element it
   could not find.
   ------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:var(--font-body);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:var(--asw-red)}
img{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit}
::selection{background:var(--asw-red);color:#fff}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--asw-red);color:#fff;
  font-family:var(--font-cond);font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:14px 22px}
.skip:focus{left:8px;top:8px}

header{position:sticky;top:0;z-index:90;background:var(--bg);border-bottom:1px solid var(--hairline)}
:root[data-theme="red"] header{background:#12000a}
.nav{max-width:var(--container-wide);margin:0 auto;padding:11px clamp(16px,4vw,34px);display:flex;align-items:center;gap:14px}
.brand{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.brand .mk{width:32px;height:32px;box-shadow:0 6px 16px rgba(230,0,18,.35)}
.brand .wm{font-family:var(--font-cond);font-weight:700;letter-spacing:.14em;font-size:11.5px;text-transform:uppercase;white-space:nowrap}
.mainnav{display:flex;gap:2px;margin-left:10px;flex:1 1 auto}
.mainnav a{font-family:var(--font-cond);font-weight:600;font-size:12px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--muted);padding:8px 11px;border-radius:var(--radius-pill);transition:color .2s,background .2s;white-space:nowrap}
.mainnav a:hover{color:var(--text)}
/* A footer link that opens a new tab carries a small arrow out of a box, so it
   reads as leaving the site before anyone clicks (Talis, 27 Oct). The header
   menu goes without (John, 2 Nov). The words for screen readers are in every
   such link, header included. */
.foot a[target="_blank"]::after{
  content:"";display:inline-block;width:.78em;height:.78em;margin-left:.38em;vertical-align:-.04em;
  background:currentColor;opacity:.75;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M5 2H2v8h8V7M7 1.5h3.5V5M10.5 1.5 5.5 6.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M5 2H2v8h8V7M7 1.5h3.5V5M10.5 1.5 5.5 6.5'/%3E%3C/svg%3E") center/contain no-repeat}
.mainnav a[aria-current="page"]{color:#fff;background:var(--asw-red)}
.navr{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.toggle{width:38px;height:38px;border-radius:50%;border:1px solid var(--hairline);background:var(--panel-2);
  color:var(--text);cursor:pointer;display:grid;place-items:center;transition:border-color .2s,transform .2s}
.toggle:hover{border-color:var(--asw-red);transform:translateY(-2px)}
.toggle svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.toggle img{width:34px;height:auto}
.toggle.is-red{background:var(--asw-red);border-color:var(--asw-red)}
.burger{display:none;width:38px;height:38px;border:1px solid var(--hairline);background:var(--panel-2);
  border-radius:var(--radius-btn);cursor:pointer;flex-direction:column;gap:4px;align-items:center;justify-content:center}
.burger span{width:17px;height:2px;background:var(--text)}

footer{border-top:1px solid var(--hairline);background:var(--footer-bg)}
.foot{max-width:var(--container-wide);margin:0 auto;padding:52px clamp(18px,4vw,34px) 34px;
  display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:30px}
.foot .fb .mk{width:38px;height:38px;margin-bottom:14px}
.foot .fb p{color:var(--muted);font-size:13px;max-width:270px;line-height:1.65}
.foot h2{font-family:var(--font-cond);font-size:11.5px;font-weight:700;letter-spacing:.17em;text-transform:uppercase;margin:1.33em 0 15px}
.foot ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.foot ul a{color:var(--muted);font-size:13.5px;transition:color .2s}
.foot ul a:hover{color:var(--text)}
.footbot{max-width:var(--container-wide);margin:0 auto;padding:16px clamp(18px,4vw,34px) 34px;
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--hairline);
  color:var(--muted);font-size:12px}
.proto{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-cond);font-size:10.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.hud-x{position:relative;width:10px;height:10px;flex:0 0 auto}
.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)}

@media (max-width:1080px){
  .mainnav{display:none}
  .burger{display:flex}
  .foot{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  .brand .wm{display:none}
  .foot{grid-template-columns:1fr}
}
/* Both controls keep a 44px touch target on a phone even though they are
   drawn at 38. */
@media (hover:none){
  .toggle,.burger{min-width:44px;min-height:44px}
  .brand,.brand .mk{min-width:44px;min-height:44px}
  .brand .mk{padding:3px}
}

/* The WordPress admin bar is fixed to the top of the viewport, and a sticky
   header pinned to top:0 slides underneath it. 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{--admin-bar:32px}
@media screen and (max-width:782px){
  body.admin-bar header{top:46px}
  body.admin-bar{--admin-bar:46px}
}

/* A licence line for a page that leads with a partner's title. It sits with
   the copyright rather than in a footer of the page's own. */
.footbot .flegal{flex:1 1 auto;text-align:center;min-width:220px}

/* The cookie banner (inc/consent.php). The flip colours keep it readable on
   all three themes. Accept and Decline are the same size, so saying no is as
   easy as saying yes. Hidden until chrome.js finds no stored answer. */
.cookiebar{position:fixed;left:16px;right:16px;bottom:16px;z-index:9000;max-width:780px;margin:0 auto;
  display:flex;align-items:center;gap:14px 20px;flex-wrap:wrap;padding:16px 18px;
  background:var(--flip-bg);color:var(--flip-text);box-shadow:0 18px 44px rgba(0,0,0,.32);
  clip-path:var(--clip-card);font-size:13.5px;line-height:1.55}
.cookiebar[hidden]{display:none}
.cookiebar__txt{flex:1 1 320px;margin:0}
.cookiebar__txt a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.cookiebar__btns{display:flex;gap:10px;flex:0 0 auto}
.cookiebar__btn{min-width:112px;min-height:44px;padding:0 18px;border:2px solid currentColor;
  background:transparent;color:inherit;font-family:var(--font-cond);font-weight:700;font-size:13px;
  letter-spacing:.12em;text-transform:uppercase;cursor:pointer;transition:background .2s,color .2s}
.cookiebar__btn--yes{background:var(--asw-red);border-color:var(--asw-red);color:#fff}
.cookiebar__btn:hover,.cookiebar__btn:focus-visible{background:var(--flip-text);color:var(--flip-bg);border-color:var(--flip-text)}
.cookiebar__btn--yes:hover,.cookiebar__btn--yes:focus-visible{background:#B8000F;border-color:#B8000F;color:#fff}
.cookiebar__btn:focus-visible{outline:2px solid var(--flip-text);outline-offset:3px}
/* On a phone it is a strip flush with the bottom edge, in smaller type, so it
   takes 151px of a 375x812 screen rather than 195px (28 Oct). On a short
   phone it still reaches the game page's ESRB box until answered. The
   buttons keep their
   44px height for thumbs. */
@media (max-width:560px){
  .cookiebar{left:0;right:0;bottom:0;gap:10px;padding:12px 14px calc(12px + env(safe-area-inset-bottom));
    font-size:12.5px;line-height:1.45;clip-path:none}
  .cookiebar__btns{flex:1 1 100%}
  .cookiebar__btn{flex:1 1 0;font-size:12px}
}
.footcookie{background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;
  text-decoration:underline;text-underline-offset:2px}
.footcookie:hover{color:var(--text)}

/* The mobile menu the burger opens. Built from the header's own links. */
.mobnav{display:none;flex-direction:column;padding:6px 0 10px;
  border-top:1px solid var(--hairline);background:var(--bg)}
:root[data-theme="red"] .mobnav{background:#12000a}
.mobnav.open{display:flex}
.mobnav a{font-family:var(--font-cond);font-weight:600;font-size:13px;letter-spacing:.09em;
  text-transform:uppercase;color:var(--muted);padding:13px clamp(16px,4vw,34px);transition:color .2s,background .2s}
.mobnav a:hover{color:var(--text)}
.mobnav a[aria-current="page"]{color:#fff;background:var(--asw-red)}
@media (min-width:1081px){ .mobnav{display:none!important} }


/* -----------------------------------------------------------------------
   Language pill. Sits to the left of the theme toggle in the header. The
   markup only exists when more than one language is public, so on a
   single-language site none of this ever renders.
   ----------------------------------------------------------------------- */
.langpill{display:inline-flex;align-items:center;gap:2px;margin-right:8px;
  padding:3px;background:var(--panel-1);
  border:1px solid var(--hairline);border-radius:var(--radius-pill,999px)}
.langpill a{font-family:var(--font-cond);font-weight:700;font-size:11px;
  letter-spacing:.08em;text-transform:uppercase;text-decoration:none;
  color:var(--muted);line-height:1;padding:5px 9px;
  border-radius:var(--radius-pill,999px);
  transition:color .2s var(--ease),background .2s var(--ease)}
.langpill a:hover,.langpill a:focus-visible{color:var(--text)}
.langpill a.is-on{color:var(--red-text);background:rgba(128,128,128,.16)}
@media (max-width:760px){
  .langpill{margin-right:6px}
  /* Each language was a 26x21 target on a phone, too small to hit reliably.
     36px square is the floor here; the pill itself barely grows. */
  .langpill a{display:inline-flex;align-items:center;justify-content:center;
    min-width:36px;min-height:36px;padding:0 8px;font-size:12px;letter-spacing:.06em}
}


/* TEMPORARY — Device Lab tab. An internal preview tool, marked out from the real
   sections so nobody mistakes it for one. Delete with the block at the end of
   functions.php and the link in header.php. */
.mainnav a.navlab,.mobnav a.navlab{
  display:inline-flex;align-items:center;gap:7px;margin-left:8px;
  color:var(--text);border:1px solid rgba(230,0,18,.55);
  background:linear-gradient(180deg,rgba(230,0,18,.18),rgba(230,0,18,.06));
  padding:7px 13px;transition:color .2s,background .2s,border-color .2s;
}
.mainnav a.navlab .d,.mobnav a.navlab .d{
  width:6px;height:6px;border-radius:50%;background:var(--asw-red);flex:0 0 auto;
  box-shadow:0 0 0 0 rgba(230,0,18,.6);animation:navlab 2.4s cubic-bezier(.2,.7,.2,1) infinite;
}
.mainnav a.navlab:hover,.mobnav a.navlab:hover{background:var(--asw-red);border-color:var(--asw-red);color:#fff}
.mainnav a.navlab:hover .d,.mobnav a.navlab:hover .d{background:#fff;animation:none}
.mobnav a.navlab{justify-content:flex-start;margin-left:0}
@keyframes navlab{
  0%{box-shadow:0 0 0 0 rgba(230,0,18,.6)}
  70%{box-shadow:0 0 0 8px rgba(230,0,18,0)}
  100%{box-shadow:0 0 0 0 rgba(230,0,18,0)}
}
@media (prefers-reduced-motion:reduce){.mainnav a.navlab .d,.mobnav a.navlab .d{animation:none}}
