/* =====================================================================================================
   HOMEPAGE SECTION POLISH (go-live pass 2026-11-10)
   Owner: the Editor's Pick, Events on deck and The Kaiju Territories (cards + preview modal).
   Markup: inc/gk-homepage-api.php (gk_homepage_featured_html, gk_hp_evdeck_html, gk_territory_preview_html)
   and the territory cards in templates/home-v3-split-hero.html (restyled here, not rewritten).
   Linked by templates/page-homepage-premium.php after the template's own styles.

   Sizing: the page body (#main) carries the template's zoom .9 (founder 2026-11-10 "reduce proportionately every
   element and component by 10%"), so every length below is written at 100% and lands at 90% on screen. The
   territory modal is lifted into .tp-stage OUTSIDE #main, so it is not zoomed; its sizes here are already the
   reduced ones. Section containers are .wrap on --gk-gut: this file sets padding-block only, never side padding.
   Apex plate language (docs/design-system/surface-design-laws.md s7): gradient surface, lit top edge, two-stop
   shadow, lit notch, machined radius. Colour: one accent hue per card; signal colours fill, never set small text.
   Type: GK canon, not the TJS Archivo canon. UI chrome (tabs, buttons, chips, platform label) is Inter 12px/600
   uppercase; stamps and readouts are VT323 (GK-MUST-UI-CHROME-IS-INTER-VT323-IS-STAMPS-ONLY). Those lines carry
   design-default:allow so the brand gate records them as deliberate.
   ===================================================================================================== */

:root {
  --hp-card-1: #F8F4EC;
  --hp-card-2: #ECE5D7;
  --hp-edge: inset 0 1px 0 rgba(255, 255, 255, .7);
  --hp-shadow: 0 1px 2px rgba(13, 13, 13, .12), 0 10px 26px -14px rgba(13, 13, 13, .28);
  --hp-line: rgba(13, 13, 13, .14);
  --hp-plate: #0D0D0D;
  --hp-ease: cubic-bezier(.2, .7, .3, 1);
}
[data-theme="dark"] {
  --hp-card-1: #221E19;
  --hp-card-2: #181511;
  --hp-edge: inset 0 1px 0 rgba(255, 255, 255, .055);
  --hp-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 12px 30px -14px rgba(0, 0, 0, .7);
  --hp-line: rgba(244, 239, 230, .12);
}

/* ---------------------------------------------------------------- EDITOR'S PICK ---- */
.featured-card[data-gk-pick] {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 0;
  max-height: none;
  align-items: stretch;
  position: relative;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--hp-card-1), var(--hp-card-2));
  box-shadow: var(--hp-edge), var(--hp-shadow);
  outline: 1px solid var(--hp-line);
  outline-offset: -1px;
}
.featured-card[data-gk-pick]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 42px;
  height: 3px;
  z-index: 2;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}
.featured-card[data-gk-pick] .featured-img-wrap {
  aspect-ratio: 16 / 9;
  background: var(--hp-plate);
  border-radius: 8px 0 0 8px;
}
.featured-card[data-gk-pick] .featured-img {
  min-height: 0;
  height: 100%;
  filter: none;
}
.featured-card[data-gk-pick] .featured-img-wrap[data-art="brand"] .featured-img-overlay { display: none; }
.featured-card[data-gk-pick] .featured-body {
  background: transparent;
  padding: 26px 34px 26px 30px;
  gap: 10px;
  min-width: 0;
}
.featured-card[data-gk-pick]:hover .featured-body { background: transparent; }
.featured-card[data-gk-pick] .featured-eyebrow {
  gap: 12px;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.featured-card[data-gk-pick] .featured-eyebrow::before { display: none; }
.featured-card[data-gk-pick] .featured-k {
  font-family: var(--f-data);
  font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; /* design-default:allow GK VT323 stamp (Editor's Pick is a stamp, not an eyebrow) */
  line-height: 1;
  padding: 5px 9px 4px;
  border-radius: 3px;
  background: var(--gold);
  color: #0D0D0D;
}
.featured-plat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-edit);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; /* design-default:allow GK UI chrome canon: Inter 12px/600 uppercase platform label */
  color: var(--ink-soft);
}
.featured-card[data-gk-pick] .featured-title {
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.06;
  -webkit-line-clamp: 3;
}
/* The meta line sat in --ink-faint (#6A6258 on the dark plate #221E19 = 2.76:1, measured by the deploy gate
   2026-11-10). --ink-soft passes on both plates: #9A9080 on #221E19 5.3:1 dark, #5A544A on #ECE5D7 6.0:1 light. */
.featured-card[data-gk-pick] .featured-meta,
.featured-card[data-gk-pick] .featured-meta .byline { color: var(--ink-soft); }
.featured-card[data-gk-pick] .featured-excerpt {
  font-family: var(--f-edit);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 46ch;
}
.featured-card[data-gk-pick] .featured-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--f-edit);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; /* design-default:allow GK UI chrome canon: button label */
  background: #BB121B;
  color: #FFFFFF;
  transition: background 160ms var(--hp-ease);
}
.featured-card[data-gk-pick] .featured-cta i { font-style: normal; transition: transform 160ms var(--hp-ease); }
.featured-card[data-gk-pick]:hover .featured-cta { background: #9E0F17; gap: 8px; }
.featured-card[data-gk-pick]:hover .featured-cta i { transform: translateX(4px); }
.featured-card[data-gk-pick]:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 820px) {
  .featured-card[data-gk-pick] { grid-template-columns: 1fr; }
  .featured-card[data-gk-pick] .featured-img-wrap { border-radius: 8px 8px 0 0; }
  .featured-card[data-gk-pick] .featured-body { padding: 20px 20px 22px; }
}

/* --------------------------------------------------------------- EVENTS ON DECK ---- */
.hsf.evd { padding-block: 40px 28px; }
.evd .evd-head { flex-wrap: wrap; row-gap: 6px; }
.evd-sum {
  margin: 0;
  font-family: var(--f-edit);
  font-size: 14px;
  color: var(--ink-soft);
}
.evd-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 0 0 16px;
  border-radius: 8px;
  background: var(--paper-2);
  box-shadow: inset 0 1px 3px rgba(13, 13, 13, .18);
}
.evd-tab {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-mid);
  font-family: var(--f-edit);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; /* design-default:allow GK UI chrome canon: tab label */
  transition: background 160ms var(--hp-ease), color 160ms var(--hp-ease);
}
.evd-tab b { font-family: var(--f-data); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.evd-tab:hover { background: var(--paper-3); color: var(--ink); }
.evd-tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.evd-tab[aria-pressed="true"] b { color: var(--paper); }
.evd-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.evd-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.evd-card { min-width: 0; display: flex; }
.evd-card[hidden] { display: none; }
.evd-card.is-lead { grid-column: span 2; }
.evd-link {
  --evd-notch: var(--gold);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hp-card-1), var(--hp-card-2));
  box-shadow: var(--hp-edge), var(--hp-shadow);
  outline: 1px solid var(--hp-line);
  outline-offset: -1px;
  transition: outline-color 160ms var(--hp-ease);
}
.evd-card[data-state="live"] .evd-link { --evd-notch: #DC3738; }
.evd-card[data-state="replay"] .evd-link { --evd-notch: var(--blue); }
.evd-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 3;
  width: 42px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: var(--evd-notch);
  transition: width 180ms var(--hp-ease);
}
.evd-link:hover { outline-color: var(--ink-soft); }
.evd-link:hover::before { width: 84px; }
.evd-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.is-lead .evd-link { flex-direction: row; }

.evd-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hp-plate);
  flex: none;
}
.is-lead .evd-art { width: 54%; aspect-ratio: auto; min-height: 100%; }
.evd-art img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9; /* aspect-ratio states the frame's 16:9 shape on the image itself (prod-readiness 2026-11-21, polish img.no_dimensions: 71 homepage images had no width/height and no CSS ratio). Width and height are both set, so it changes no layout. */
  object-fit: cover;
  transition: transform 400ms var(--hp-ease);
}
.evd-link:hover .evd-art img { transform: scale(1.03); }
/* start.gg banners are 2:1: drawn whole on a dark plate, never cropped (no-clip-media). The plate carries the GK
   claw texture under a dark wash, so the space around a whole banner reads as the brand, not as an empty box. */
.evd-art[data-fit="contain"] {
  background-color: #0D0D0D;
  background-image: linear-gradient(rgba(13, 13, 13, .8), rgba(13, 13, 13, .8)), url("../brand/textures/claw-marks-wide.webp");
  background-size: cover;
  background-position: center;
}
.evd-art[data-fit="contain"] img { object-fit: contain; }
/* a doctrine monster (Dragon Eastern = fighting games) stands whole on Abyssal Night with the same claw texture */
.evd-art[data-fit="mon"] {
  background-color: #211E48;
  background-image: linear-gradient(rgba(33, 30, 72, .84), rgba(33, 30, 72, .84)), url("../brand/textures/claw-marks-wide.webp");
  background-size: cover;
  background-position: center;
}
.evd-art[data-fit="mon"] img { object-fit: contain; padding: 6% 0 0; }
/* House art (assets/ogv) is a brand asset: drawn WHOLE in its own lane, under the stamp row (state stamp left, Watch live /
   Add to calendar right) and above the live bar, on the dark claw plate. Never cropped, never under a stamp, no hover zoom.
   Polish program 2026-11-14: the old 'cover' crop cut it 19% and both stamps sat on it (GK-MUST-A-BRAND-ASSET-HAS-ITS-OWN-LANE-2026-11-14). */
.evd-art[data-fit="brand"] {
  background-color: #0D0D0D;
  background-image: linear-gradient(rgba(13, 13, 13, .82), rgba(13, 13, 13, .82)), url("../brand/textures/claw-marks-wide.webp");
  background-size: cover;
  background-position: center;
}
.evd-art[data-fit="brand"] img { object-fit: contain; padding: 46px 12px 12px; }
.evd-art[data-fit="brand"]:has(.evd-sim) img { padding-bottom: 38px; }
.evd-link:hover .evd-art[data-fit="brand"] img { transform: none; }
.evd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.evd-state {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 3px;
  border-radius: 3px;
  font-family: var(--f-data);
  font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase; /* design-default:allow GK VT323 state stamp on the art */
  line-height: 1;
  background: #F7A700;
  color: #0D0D0D;
}
.evd-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.evd-card[data-state="live"] .evd-state { background: #BB121B; color: #FFFFFF; }
.evd-card[data-state="replay"] .evd-state { background: #0D0D0D; color: #EDEDED; box-shadow: inset 3px 0 0 #007FFF; }
@media (prefers-reduced-motion: no-preference) {
  .evd-card[data-state="live"] .evd-state i { animation: evdPulse 1.6s ease-in-out infinite; }
}
@keyframes evdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.evd-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 13px 15px 15px;
}
.is-lead .evd-body { padding: 20px 22px; justify-content: center; gap: 8px; }
.evd-kind {
  font-family: var(--f-data);
  font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; /* design-default:allow GK VT323 stamp: the kind of event */
  color: var(--ink-soft);
  line-height: 1;
}
.evd-title {
  font-family: var(--f-disp);
  font-size: 18px;
  line-height: 1.1;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.is-lead .evd-title { font-size: clamp(22px, 2vw, 28px); -webkit-line-clamp: 3; }
.evd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-family: var(--f-edit);
  font-size: 13px;
  color: var(--ink-soft);
}
.evd-place::before { content: "\00B7"; margin-right: 10px; }
.evd-when {
  font-family: var(--f-edit);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding-left: 9px;
  border-left: 3px solid var(--evd-notch);
}
.evd-count { font-family: var(--f-edit); font-size: 13px; color: var(--ink-mid); }
.evd-count b { font-family: var(--f-disp); font-weight: 400; font-size: 16px; color: var(--ink); }
/* Card action bar: icon, label and arrow across the card foot; fills with the card state colour on hover and focus. */
.evd-go {
  --go: #F7A700;
  --go-on: #0D0D0D;
  margin: auto -15px -15px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--hp-line);
  font-family: var(--f-edit);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  background: linear-gradient(var(--go), var(--go)) no-repeat 0 0 / 0% 100%;
  transition: background-size 280ms var(--hp-ease), color 180ms var(--hp-ease);
}
.is-lead .evd-go { margin: auto -22px -20px; padding: 14px 22px; }
.evd-card[data-state="live"] .evd-go { --go: #BB121B; --go-on: #FFFFFF; }
.evd-card[data-state="replay"] .evd-go { --go: #007FFF; --go-on: #0D0D0D; }
.evd-link:hover .evd-go, .evd-link:focus-visible .evd-go { background-size: 100% 100%; color: var(--go-on); }
.evd-go b { margin-left: auto; font-weight: 700; transition: transform 200ms var(--hp-ease); }
.evd-link:hover .evd-go b, .evd-link:focus-visible .evd-go b { transform: translateX(4px); }
.evd-go-ico {
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.evd-go[data-go="guide"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M5 3h10l4 4v14H5z'/%3E%3Cpath d='M9 12h6M9 16h6M9 8h3'/%3E%3C/svg%3E"); }
.evd-go[data-go="calendar"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.evd-go[data-go="list"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M9 6h12M9 12h12M9 18h12M4 6h1M4 12h1M4 18h1'/%3E%3C/svg%3E"); }
.evd-go[data-go="play"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z' fill='black'/%3E%3C/svg%3E"); }

/* Secondary card action (watch or add to calendar), placed on the art corner as its own link. */
.evd-card { position: relative; }
.evd-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 9px;
  border-radius: 4px;
  font-family: var(--f-edit);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: box-shadow 160ms var(--hp-ease);
}
.evd-watch { background: #BB121B; color: #FFFFFF; }
.evd-add { background: #0D0D0D; color: #EDEDED; box-shadow: inset 0 0 0 1px rgba(237, 237, 237, .32); }
.evd-watch:hover, .evd-watch:focus-visible { box-shadow: inset 0 0 0 2px #FFFFFF; }
.evd-add:hover, .evd-add:focus-visible { box-shadow: inset 0 0 0 2px #F7A700; }
.evd-x:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.evd-play { width: 9px; height: 10px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.evd-plus { position: relative; width: 10px; height: 10px; }
.evd-plus::before, .evd-plus::after { content: ""; position: absolute; background: currentColor; }
.evd-plus::before { left: 4px; top: 0; width: 2px; height: 10px; }
.evd-plus::after { left: 0; top: 4px; width: 10px; height: 2px; }
.evd-card.has-x .evd-state { max-width: calc(100% - 150px); }

/* Live state: progress bar and moving notch. */
.evd-prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: rgba(13, 13, 13, .6); display: none; }
.evd-prog i { display: block; width: 0; height: 100%; background: #DC3738; transition: width 600ms var(--hp-ease); }
.evd-card[data-state="live"] .evd-prog { display: block; }
.evd-card[data-state="live"] .evd-link { outline-color: #BB121B; }
@media (prefers-reduced-motion: no-preference) {
  .evd-card[data-state="live"] .evd-link::before { animation: evdSweep 2.6s ease-in-out infinite; }
}
@keyframes evdSweep { 0%, 100% { width: 42px; } 50% { width: 132px; } }
.evd-sim {
  position: absolute;
  left: 10px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 7px 2px;
  border: 1px dashed #0D0D0D;
  background: #F7A700;
  color: #0D0D0D;
  font-family: var(--f-data);
  font-size: 15px;
  line-height: 1;
}
.evd-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--ink-soft);
  border-radius: 8px;
  font-family: var(--f-edit);
  font-size: 14px;
  color: var(--ink-mid);
}
.evd-empty a, .evd-foot a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.evd-foot {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-family: var(--f-edit);
  font-size: 13px;
  color: var(--ink-soft);
}
.evd-cal { font-weight: 700; }

@media (max-width: 1100px) {
  .evd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .evd-card.is-lead { grid-column: span 3; }
}
/* Phones: one row that scrolls sideways (snap), so the deck never becomes a long vertical scroll. */
@media (max-width: 760px) {
  .evd-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .evd-tab { flex: none; }
  .evd-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 80%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .evd-card, .evd-card.is-lead { grid-column: auto; scroll-snap-align: start; }
  .is-lead .evd-link { flex-direction: column; }
  .is-lead .evd-art { width: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .is-lead .evd-body { padding: 13px 15px 15px; }
  .is-lead .evd-title { font-size: 18px; -webkit-line-clamp: 2; }
  .is-lead .evd-go { margin: auto -15px -15px; padding: 12px 15px; }
}

/* -------------------------------------------------------- THE KAIJU TERRITORIES ---- */
.terrs { padding-block: 56px 64px; }
.terr-grid { gap: 12px; }
.terr {
  border-radius: 8px;
  background: linear-gradient(180deg, var(--hp-card-1), var(--hp-card-2));
  box-shadow: var(--hp-edge), var(--hp-shadow);
  outline: 1px solid var(--hp-line);
  outline-offset: -1px;
  border-bottom: 0;
  min-height: 280px;
  transition: outline-color 180ms var(--hp-ease);
}
.terr:hover { background: linear-gradient(180deg, var(--hp-card-1), var(--hp-card-2)); box-shadow: var(--hp-edge), var(--hp-shadow); outline-color: var(--terr-ink, var(--ink-soft)); }
.terr-xbox { --terr-ink: #107C10; }
.terr-playstation { --terr-ink: #006FCD; }
.terr-nintendo { --terr-ink: #E60012; }
/* Mobile territory: no platform colour, plain ink. */
.terr-mobile { --terr-ink: var(--ink); }
.terr-pc { --terr-ink: #1B2838; }
[data-theme="dark"] .terr-xbox { --terr-ink: #2EA043; }
[data-theme="dark"] .terr-playstation { --terr-ink: #2484D7; }
[data-theme="dark"] .terr-nintendo { --terr-ink: #FF5A6E; }
[data-theme="dark"] .terr-pc { --terr-ink: #66C0F4; }
.terr .terr-name { color: var(--terr-ink); }
/* The lit notch in the territory's own ink; the old full-width neon sweep is retired. */
.terr .terr-neon {
  left: 28px;
  right: auto;
  width: 42px;
  height: 3px;
  overflow: visible;
  border-radius: 0 0 2px 2px;
  background: var(--terr-ink);
  transition: width 180ms var(--hp-ease);
}
.terr .terr-neon::before { display: none; }
.terr:hover .terr-neon, .terr:focus-within .terr-neon { width: 96px; }
/* The territory monster. Multiply blending drew it black on the dark paper (Xbox and Nintendo were invisible,
   measured 2026-11-10); in dark it is drawn as itself, faded into the plate. */
/* The territory monster stands in its own space: an in-flow item right-aligned above the header (the card stacks its
   content at the bottom), whole, never under the header button or past the card edge. It hung top-right behind the
   header, 56-72% covered and cut 1-13% at the card edge (2026-11-21 fit record; polish fit.brand_covered / brand_cut,
   GK-MUST-BRAND-ASSET-NEVER-STACKED-CUT-OR-COVERED). */
.terr > picture { display: block; align-self: flex-end; margin: 0 0 10px; position: relative; z-index: 3; pointer-events: none; }
.terr .terr-mark {
  position: static;
  display: block;
  width: 120px;
  height: 120px;
  opacity: .42;
}
[data-theme="dark"] .terr .terr-mark { mix-blend-mode: normal; opacity: .5; filter: saturate(.8) brightness(.92); }
.terr:hover .terr-mark { opacity: .72; transform: scale(1.04); }
[data-theme="dark"] .terr:hover .terr-mark { opacity: .8; filter: saturate(1) brightness(1); }
.terr .terr-glow { display: none; }
.terr .terr-num { font-size: 15px; letter-spacing: .14em; color: var(--ink-soft); }
.terr .terr-sub { color: var(--ink-mid); max-width: 32ch; }
.terr .terr-stats { gap: 22px; margin-top: 14px; color: var(--ink-soft); }
.terr .terr-stat-item b { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.terr .terr-chevron {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--hp-line);
  transition: background 160ms var(--hp-ease), color 160ms var(--hp-ease);
}
.terr:hover .terr-chevron, .terr-head:focus-visible .terr-chevron { background: var(--terr-ink); color: #FFFFFF; }
[data-theme="dark"] .terr:hover .terr-chevron, [data-theme="dark"] .terr-head:focus-visible .terr-chevron { color: #0D0D0D; }
@media (max-width: 900px) { .terr { min-height: 220px; } .terr .terr-mark { width: 104px; height: 104px; } }
@media (max-width: 480px) { .terr { min-height: 190px; } .terr .terr-mark { width: 88px; height: 88px; } }

/* ---------------------------------------------------- TERRITORY PREVIEW MODAL ---- */
.js-on .tp-stage .tp-detail[data-gk-tp] { width: min(900px, 100%); max-height: min(88vh, 820px); border-radius: 8px; }
.tp-detail[data-gk-tp] .tp-body { padding: 16px 22px 18px; gap: 16px; }
.tp-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 880px) {
  .tp-detail[data-gk-tp] .tp-body { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; }
  .tp-col--go .tp-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-col--now .tp-doss { grid-template-columns: 1fr; }
}
.tp-detail[data-gk-tp] .tp-door { border-radius: 6px; padding: 8px 10px; }
.tp-detail[data-gk-tp] .tp-dl {
  font-family: var(--f-edit);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; /* design-default:allow GK UI chrome canon: section door label */
}
.tp-detail[data-gk-tp] .tp-dd { font-family: var(--f-edit); font-size: 12.5px; -webkit-line-clamp: 1; }
.tp-detail[data-gk-tp] .tp-chip {
  font-family: var(--f-edit);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
  border-radius: 6px;
}
.tp-detail[data-gk-tp] .tp-chip:hover { transform: none; }
.tp-detail[data-gk-tp] .tp-dz:hover { transform: none; }
.tp-detail[data-gk-tp] .tp-go {
  font-family: var(--f-edit);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: 6px;
}
.tp-detail[data-gk-tp] .tp-go:hover { transform: none; }
.tp-detail[data-gk-tp] .tp-pill { border-radius: 4px; }
/* One line per dossier and a tighter dispatch row: the "now" column was the one that ran past the modal. */
.tp-col--now .tp-dz { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; }
.tp-col--now .tp-dzt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-col--now .tp-pills { flex: none; }
.tp-detail[data-gk-tp] .tp-dispatch li { padding: 7px 11px; }

/* Animated plate artwork, drawn whole over a matching backdrop. */
.gk-plate-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 62% 100%;
  background: linear-gradient(180deg, #C2BDBA 0%, #C6C1BE 58%, #D3CEC9 100%);
  box-shadow: inset 0 -4px 0 #E60012;
  pointer-events: none;
}

/* =====================================================================================================
   SECTION RHYTHM: one owner for the space between homepage sections (founder 2026-11-12: "the spacing between
   sections is absolutely atrocious ... why are all our sections literally stacked on top of each other").
   Measured on the served page before this block (reveal sections settled, painted ink to painted ink): 0 to 113 px
   at 1440 and 0 to 98 px at 390; Watch live touched Community pulse (0 px) at both widths. Cause: each section set
   its own padding and margin (eight combinations: 40/40, 10/46, 36/8, 56/64, 72/72, 6/56 + 56, 30/6 on ad bands),
   so no two gaps matched. The house scale is 48 / 64 / 96 (docs/design-system/gk-skin.md, 8px grid).
   Rule: every section after the hero carries no vertical padding of its own (all are transparent, so padding only
   ever added air) and takes one margin above it; the dark Watch live band keeps its inner padding because its
   padding is inside its own surface. #main is zoomed .9 at >= 861px, so 96 lands at 86 px on screen.
   Measured with this block injected before shipping: 78 to 100 px at 1440 (target 86), 42 to 64 px at 390 (target 48).
   Verify: node scripts/_dev-section-gaps.mjs https://gamingkaiju.com/ 1440 (and 390); never re-add section padding-block in a section's own CSS.
   ===================================================================================================== */
:root { --gk-sec: 48px; }
@media (min-width: 600px) { :root { --gk-sec: 64px; } }
@media (min-width: 861px) { :root { --gk-sec: 96px; } }
#main > section.hero ~ section { padding-block: 0 !important; }
#main > section.hero ~ :is(section, aside.adband) { margin-block: var(--gk-sec) 0 !important; }
#main > section.streams { padding-block: 56px !important; }
/* Under 480px the house unit stacks and carries its ownership line inside, so the 22px the kit keeps under the box
   for that line is empty: give it back so the gap below an ad band matches every other gap. */
@container (max-width: 479px) { #main > aside.adband .gk-ad-fluid { margin-bottom: 0 !important; } }
