/* Shared stylesheet of the site's own pages (home, game page, dashboard, admin). Loaded after shared/platform.css, which every game also uses. */

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/chakra-petch-vietnamese-500-normal.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/chakra-petch-thai-500-normal.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/chakra-petch-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-vietnamese-700-normal.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-thai-700-normal.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d0e11;
  --bg-2: #15171b;
  --panel: rgba(26, 28, 33, 0.92);
  --panel-solid: #1a1c21;
  --line: rgba(255, 255, 255, 0.16);
  --edge: rgba(255, 255, 255, 0.3);
  --text: #f2f2f0;
  --muted: #9b9fa8;
  --accent: #36d17c; /* yuzu */
  --accent-2: #e8e8e6; /* cyan */
  --hot: #ff6b6b;
  --good: #36d17c;
  --ink: #07130c;
  --display: 'Chakra Petch', var(--font);
  --track: 0.14em;
  --wrap: 1224px;
}
/* wide letter-spacing and capitals belong to Latin type; CJK and Thai get a light touch */
:lang(ja),
:lang(ko),
:lang(zh-CN),
:lang(zh-TW),
:lang(th) {
  --track: 0.04em;
}

[hidden] {
  display: none !important;
}
body {
  background: var(--bg);
  min-height: 100%;
}
/* ---------- shared pieces ---------- */

/* Angular panel: a 1px border on a clipped shape is drawn as an outer layer plus an inset fill. */
.cut,
.who {
  --c: 12px;
  --fill: var(--panel-solid);
  position: relative;
  isolation: isolate;
  background: var(--edge);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.cut::before,
.who::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(calc(var(--c) - 0.6px) 0, 100% 0, 100% calc(100% - var(--c) + 0.6px), calc(100% - var(--c) + 0.6px) 100%, 0 100%, 0 calc(var(--c) - 0.6px));
}

.label {
  margin: 0;
  font: 500 0.72rem/1.2 var(--display);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
}

/* ======================================================================================================================
 * Layout of the site's own pages: home, a game's page (/game/<id>), dashboard (/me), admin (/admin).
 * Look: night ink, one hot yellow for the main action, one cyan for lines and focus, angular corners. Closer to a game store
 * (Steam, Roblox) than to a landing page: the games come first, every text is short and says something once.
 * ==================================================================================================================== */

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1;
}
.wrap {
  width: min(100% - 48px, var(--wrap));
  margin-inline: auto;
}
a {
  color: inherit;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 2px 7px;
  margin: 0 1px;
  text-align: center;
  font: 600 0.85em/1.4 var(--display);
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom-width: 2px;
  border-radius: 3px;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--display);
  letter-spacing: 0.03em;
}
.btn.primary:hover {
  filter: none;
  background: #5ee39a;
}
.btn.big {
  min-height: 64px;
  padding: 16px 30px;
  gap: 14px;
  font-size: 1.3rem;
  justify-content: center;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.btn .ico {
  width: 22px;
  height: 22px;
  flex: none;
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- header ---------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #0d0e11;
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand .mark {
  width: 38px;
  height: 33px;
  flex: none;
}
.brand .word {
  font: 700 1.55rem/1 var(--display);
  letter-spacing: 0.1em;
}
.nav {
  display: flex;
  gap: 2px;
  margin-right: auto;
}
.nav a {
  padding: 22px 14px 19px;
  color: var(--muted);
  text-decoration: none;
  font: 500 0.95rem/1 var(--display);
  letter-spacing: 0.04em;
  border-bottom: 3px solid transparent;
}
.nav a:hover {
  color: var(--text);
}
.nav a.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip.who {
  max-width: 14em;
  text-decoration: none;
  gap: 8px;
}
.chip.who:hover {
  border-color: var(--accent-2);
}
.chip .dot {
  width: 10px;
  height: 10px;
  flex: none;
  display: inline-block;
}

/* ---------- section titles ---------- */
.sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}
.sec-head h2 {
  margin: 0;
  font: 700 1.2rem/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sec-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- a game's picture: its capture over the drawn art ---------- */
.art {
  position: relative;
  overflow: hidden;
  background: hsl(var(--h, 260) 45% 13%);
}
.art svg,
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.art img {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.art.has-photo img {
  opacity: 1;
}

/* ---------- small pieces ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags span {
  padding: 3px 9px;
  font: 500 0.72rem/1.3 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--h, 260) 90% 82%);
  background: hsl(var(--h, 260) 50% 22% / 0.85);
}
.online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}
.online::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--good);
  flex: none;
}
.online.zero::before {
  background: #5b6488;
}
.lockbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  font: 600 0.72rem/1.3 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
}
.lockbadge svg {
  width: 13px;
  height: 13px;
}

/* ======================================================================================================================
 * HOME
 * ==================================================================================================================== */
.home {
  display: grid;
  gap: 38px;
  padding: 24px 0 64px;
}
.spot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.feat {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.feat-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 440px;
  overflow: hidden;
  text-decoration: none;
  background: #15171b;
  border: 1px solid var(--line);
}
.feat-stage .art {
  position: absolute;
  inset: 0;
}
.feat-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 14, 17, 0) 20%, rgba(13, 14, 17, 0.55) 55%, rgba(13, 14, 17, 0.96));
}
.feat-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 620px);
  padding: 28px 30px 30px;
}
.feat-copy .h1 {
  display: block;
  margin: 0;
  font: 700 clamp(2rem, 4.4vw, 3.3rem) / 1.02 var(--display);
  letter-spacing: 0.01em;
}
.feat-copy #featTagline {
  display: block;
  margin: 0;
  max-width: 34em;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #d7d9de;
}
.feat-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.feat-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}
.feat-tab {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
  text-align: left;
  color: var(--muted);
  background: var(--card, #1a1c21);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  cursor: pointer;
  font: 500 0.88rem/1.2 var(--display);
  overflow: hidden;
  touch-action: manipulation;
}
.feat-tab:hover {
  color: var(--text);
}
.feat-tab[aria-selected='true'] {
  color: var(--text);
  border-top-color: var(--accent);
  background: #23262c;
}
.feat-tab i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--accent-2);
}
.feat-tab[aria-selected='true'].run i {
  animation: tab-fill var(--dur, 7s) linear forwards;
}
@keyframes tab-fill {
  to {
    width: 100%;
  }
}
.feat-tab:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: -3px;
}

/* Yuzu, the companion, lives in a card next to the featured game (below the games on a phone) */
.yz-card {
  position: relative;
  padding: 18px 14px 14px;
  overflow: hidden;
  background: radial-gradient(rgba(255, 255, 255, 0.16) 1.3px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(180deg, #23262c, #15171b);
  border: 1px solid var(--line);
}
.yz-card .stage {
  width: 100%;
}
.yz-card .figure {
  width: min(100%, 300px);
  min-width: 0;
}
.yz-card .bubble {
  left: 0;
  top: 0;
  width: 68%;
}
.yz-card .tip {
  right: 0;
  top: 22%;
}
.yz-card .hud {
  width: 100%;
  margin-top: -14px;
}

/* the grid of games */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  background: #1a1c21;
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tile:hover,
.tile:focus-visible {
  transform: translateY(-3px);
  border-color: hsl(var(--h) 70% 60%);
}
.tile:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
.tile .art {
  aspect-ratio: 16 / 10;
}
.tile .lockbadge {
  position: absolute;
  top: 10px;
  left: 10px;
}
.tile .body {
  display: grid;
  gap: 8px;
  padding: 13px 15px 15px;
}
.tile h3 {
  margin: 0;
  font: 700 1.1rem/1.2 var(--display);
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.tile .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.tile.soon {
  opacity: 0.6;
  cursor: default;
}
.tile.soon:hover {
  transform: none;
  border-color: var(--line);
}
.best {
  font: 600 0.8rem/1 var(--display);
  color: var(--accent);
}
.empty {
  color: var(--muted);
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.site-foot p {
  margin: 0;
  max-width: 60em;
}

/* ======================================================================================================================
 * A GAME'S PAGE
 * ==================================================================================================================== */
.gp {
  display: grid;
  gap: 24px;
  padding: 22px 0 64px;
}
.crumb {
  justify-self: start;
  color: var(--muted);
  text-decoration: none;
  font: 500 0.9rem/1 var(--display);
  letter-spacing: 0.04em;
}
.crumb:hover {
  color: var(--text);
}
.gp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
}
.gp-media {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.gp-media .art {
  position: absolute;
  inset: 0;
}
.gp-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #1a1c21;
  border: 1px solid var(--line);
}
.gp-info h1 {
  margin: 0;
  font: 700 clamp(1.9rem, 3.2vw, 2.6rem) / 1.05 var(--display);
}
.gp-info .pitch {
  margin: 0;
  color: #d7d9de;
  font-size: 1.05rem;
  line-height: 1.45;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.facts div {
  padding: 10px 12px;
  background: #1a1c21;
}
.facts dt {
  margin: 0 0 3px;
  font: 500 0.7rem/1.2 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font: 600 1rem/1.25 var(--display);
}
.play-box {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.playbtn {
  width: 100%;
  min-height: 76px;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.playbtn .ico {
  width: 28px;
  height: 28px;
}
.note {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #b8f2d2;
  background: rgba(54, 209, 124, 0.1);
  border-left: 3px solid var(--accent);
}
.note.plain {
  color: var(--muted);
  background: transparent;
  border-left-color: var(--line);
  padding-left: 10px;
}
.gp-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  padding: 18px 20px 20px;
  background: #1a1c21;
  border: 1px solid var(--line);
  min-width: 0;
}
.panel > h2 {
  margin: 0 0 12px;
  font: 700 0.95rem/1.2 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: #d7d9de;
}
.panel p:last-child {
  margin-bottom: 0;
}
.ctl {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}
.ctl:last-child {
  margin-bottom: 0;
}
.ctl h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 600 0.82rem/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.ctl h3 svg {
  width: 18px;
  height: 18px;
}
.ctl p {
  line-height: 1.9;
}
.kv {
  display: grid;
  gap: 0;
  margin: 0;
}
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.kv div:last-child {
  border-bottom: 0;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* ======================================================================================================================
 * DASHBOARD
 * ==================================================================================================================== */
.me {
  display: grid;
  gap: 18px;
  padding: 24px 0 64px;
}
.me-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background: #1a1c21;
  border: 1px solid var(--line);
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  font: 700 2.1rem/1 var(--display);
  color: var(--ink);
  background: var(--c, var(--accent));
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.me-head h1 {
  margin: 0 0 4px;
  font: 700 1.9rem/1.1 var(--display);
  overflow-wrap: anywhere;
}
.me-head p {
  margin: 0;
  color: var(--muted);
}
.me-head .grow {
  flex: 1;
  min-width: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.stat {
  padding: 16px 18px;
  background: #1a1c21;
  border: 1px solid var(--line);
}
.stat .v {
  display: block;
  font: 700 1.8rem/1.1 var(--display);
  color: var(--text);
}
.stat .k {
  display: block;
  margin-top: 6px;
  font: 500 0.72rem/1.2 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.me-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.grow-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.grow-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.grow-row:first-of-type {
  padding-top: 0;
}
.grow-row .art {
  aspect-ratio: 16 / 10;
}
.grow-row h3 {
  margin: 0 0 3px;
  font: 700 1.05rem/1.2 var(--display);
}
.grow-row small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}
.grow-row .time {
  font: 700 1.1rem/1 var(--display);
  text-align: right;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 132px;
  padding-top: 8px;
}
.bars div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
}
.bars i {
  display: block;
  min-height: 2px;
  background: var(--accent);
}
.bars i.zero {
  background: rgba(255, 255, 255, 0.12);
}
.bars b {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.field label {
  font: 500 0.78rem/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--c);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.swatch[aria-pressed='true'] {
  box-shadow: inset 0 0 0 3px #fff;
}
.swatch:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: -4px;
}
.msg {
  min-height: 1.3em;
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--good);
}
.msg.err {
  color: #ff9aa8;
}
.row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.guest-card {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 28px;
  background: #1a1c21;
  border: 1px solid var(--line);
}
.guest-card h1 {
  margin: 0;
  font: 700 1.8rem/1.1 var(--display);
}
.guest-card p {
  margin: 0;
  max-width: 44em;
  color: #d7d9de;
  line-height: 1.5;
}

/* ======================================================================================================================
 * ADMIN (French only: it is for the people who run the site)
 * ==================================================================================================================== */
.adm {
  display: grid;
  gap: 16px;
  padding: 24px 0 64px;
}
.adm h1 {
  margin: 0;
  font: 700 1.7rem/1.1 var(--display);
}
.adm .bar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.adm .bar-top .grow {
  flex: 1;
}
.adm .upd {
  color: var(--muted);
  font-size: 0.85rem;
}
.adm-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.tbl th {
  padding: 6px 8px 8px 0;
  text-align: left;
  font: 500 0.7rem/1.2 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.tbl td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl .r {
  text-align: right;
  white-space: nowrap;
}
.tbl .guest {
  color: var(--muted);
  font-style: italic;
}
.scroll-x {
  overflow-x: auto;
}
.hbar {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 7px 0;
  font-size: 0.9rem;
}
.hbar span.t {
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
}
.hbar span.t i {
  display: block;
  height: 100%;
  background: hsl(var(--h, 48) 85% 60%);
}
.hbar b {
  font-family: var(--display);
  white-space: nowrap;
}
.legend {
  display: flex;
  gap: 16px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
}

/* ======================================================================================================================
 * narrower screens
 * ==================================================================================================================== */
@media (max-width: 1020px) {
  .spot {
    grid-template-columns: minmax(0, 1fr);
  }
  .yz-card {
    order: 3;
    justify-self: center;
    width: min(100%, 420px);
  }
  .gp-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .gp-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .gp-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .me-cols,
  .adm-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }
  .top-in {
    flex-wrap: wrap;
    gap: 0 12px;
    min-height: 0;
    padding: 10px 0 0;
  }
  .brand {
    margin-right: auto;
    order: 1;
  }
  .tools {
    order: 2;
    gap: 6px;
  }
  .nav {
    order: 3;
    width: 100%;
    margin-right: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav a {
    padding: 14px 14px 12px;
  }
  .feat-stage {
    min-height: 360px;
  }
  .feat-copy {
    padding: 20px 18px 20px;
  }
  .feat-tabs {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gp-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .gp-info {
    padding: 18px;
  }
  .me-head {
    flex-wrap: wrap;
    padding: 18px;
  }
  .grow-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .grow-row .time {
    grid-column: 2;
    text-align: left;
  }
}
@media (max-width: 520px) {
  .tools .lang {
    max-width: 8.5em;
  }
  .chip.who {
    max-width: 8em;
  }
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .feat-actions .btn {
    width: 100%;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile,
  .tile:hover {
    transition: none;
    transform: none;
  }
  .feat-tab[aria-selected='true'].run i {
    animation: none;
    width: 100%;
  }
}

/* pages stack their blocks at the top: the grid must not stretch the rows to fill the viewport */
.home,
.gp,
.me,
.adm {
  align-content: start;
}
.facts div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
/* Yuzu's speech bubble sits over her body, above the HUD, so it never hides her face */
.yz-card .bubble {
  top: auto;
  bottom: 124px;
  left: 0;
  width: 100%;
}
@media (max-width: 1020px) {
  .spot {
    display: contents;
  }
  .yz-card {
    order: 9;
  }
}

/* ======================================================================================================================
 * Home: category bar on the left, everything else on the right
 * ==================================================================================================================== */
.home {
  grid-template-columns: 188px minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
}
.home-main {
  display: grid;
  gap: 38px;
  min-width: 0;
  align-content: start;
}
.cats {
  position: sticky;
  top: 76px;
  padding-top: 6px;
}
.cats h2 {
  margin: 0 0 10px;
  font: 700 12px/1 var(--display);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
}
.cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-weight: 600;
}
.cats a b {
  font-weight: 600;
  font-size: 12px;
  opacity: 0.7;
}
.cats a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.cats a.on {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-left-color: var(--accent);
}
@media (max-width: 860px) {
  .home {
    grid-template-columns: minmax(0, 1fr);
  }
  .cats {
    position: static;
    padding: 0;
  }
  .cats h2 {
    display: none;
  }
  .cats ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .cats a {
    white-space: nowrap;
    border: 1px solid var(--line);
    padding: 8px 14px;
  }
  .cats a.on {
    border-color: var(--accent);
  }
}
