@font-face { font-family: "Mona Sans"; src: url("/assets/fonts/mona-sans-variable.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }

:root {
  --fog: #e9e6ea;
  --stone-0: #0c0d0f;
  --stone-1: #131518;
  --stone-2: #1b1e22;
  --line: #2c3035;
  --line-soft: rgba(44, 48, 53, 0.6);
  --ink: #e6e8eb;
  --ink-dim: #9aa1a9;
  --ink-on-fog: #17181c;
  --silver-hi: #f6f8fa;
  --silver: #c5cbd2;
  --silver-lo: #7f8791;
  --accent: #dde2e7;
  --accent-hi: #ffffff;
  --accent-ink: #0c0d0f;
  --display: "Mona Sans", system-ui, sans-serif;
  --display-weight: 700;
  --display-stretch: 112%;
  --display-track: 0.01em;
  --body: "Mona Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) var(--stone-0); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--stone-0); color: var(--ink); font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--accent-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 2px; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fog); color: var(--ink-on-fog); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.display { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-track); }

/* silver as material: wordmark and page titles only */
.engraved {
  background: linear-gradient(100deg, var(--silver-lo) 0%, var(--silver-hi) 22%, var(--silver) 46%, var(--silver-lo) 64%, var(--silver-hi) 82%, var(--silver) 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1600ms var(--ease-out);
}
.engraved.is-lit { background-position: 0 0; }
.sheen { position: relative; isolation: isolate; overflow: hidden; }
.sheen::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(246, 248, 250, 0.14) 50%, transparent 65%);
  transform: translateX(-110%);
}
.sheen.is-lit::after { transform: translateX(110%); transition: transform 1600ms var(--ease-in-out); }
@media (hover: hover) and (pointer: fine) { .sheen:hover::after { transform: translateX(110%); transition: transform 900ms var(--ease-in-out); } }

/* nav (sits on fog) */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--gutter); color: var(--ink); }
/* A soft dark fade behind the menu keeps it readable over any screenshot. */
.nav::before { content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(12, 13, 15, 0.72), rgba(12, 13, 15, 0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; }
.brand-logo { display: block; width: auto; height: 44px; }
.brand-icon img { display: block; width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; gap: 2px; justify-self: center; padding: 4px; border: 1px solid rgba(246, 248, 250, 0.1); border-radius: 4px; background: rgba(12, 13, 15, 0.62); }
.nav-links a, .nav-discord { text-decoration: none; font-weight: 550; font-size: 0.88rem; padding: 8px 12px; border-radius: 2px; transition: background-color 160ms ease; }
.nav-links a { color: var(--ink-dim); transition: background-color 160ms ease, color 160ms ease; }
.nav-links a[aria-current="page"] { color: var(--silver-hi); background: rgba(246, 248, 250, 0.09); }
.nav-discord { justify-self: end; display: inline-flex; align-items: center; gap: 8px; background: rgba(12, 13, 15, 0.62); border: 1px solid rgba(246, 248, 250, 0.1); color: var(--ink); }
.nav-discord img { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { background: rgba(246, 248, 250, 0.06); color: var(--ink); }
  .nav-discord:hover { background: rgba(27, 30, 34, 0.9); }
}

/* fog ground shared by the home hero and page banners */
.fogged { position: relative; overflow: hidden; background: var(--fog); }
.fogged > picture img, .fogged > .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fogged::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(12, 13, 15, 0) 30%, rgba(12, 13, 15, 0.6) 64%, var(--stone-0) 98%); }
.fog { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.fog i { position: absolute; inset: -10% -20%; background: radial-gradient(40% 30% at 30% 45%, rgba(233, 230, 234, 0.5), transparent 70%), radial-gradient(35% 25% at 72% 60%, rgba(233, 230, 234, 0.4), transparent 70%); opacity: 0.24; will-change: transform; animation: drift 70s var(--ease-in-out) infinite alternate; }
.fog i + i { opacity: 0.13; animation: drift-back 95s var(--ease-in-out) infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(-6%, 0, 0) scale(1.05); } to { transform: translate3d(6%, -2%, 0) scale(1.12); } }
@keyframes drift-back { from { transform: scaleX(-1) translate3d(-5%, 1%, 0) scale(1.1); } to { transform: scaleX(-1) translate3d(7%, -1%, 0) scale(1.04); } }

/* home hero: compact */
.hero { min-height: clamp(480px, 70svh, 700px); display: grid; align-items: end; }
.hero picture img { object-position: 50% 32%; }
.hero-body { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(36px, 6vh, 64px); }
.wordmark { margin: 0; font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 0.95; text-transform: uppercase; }
.hero-line { max-width: 40ch; margin: 14px 0 26px; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.plaque {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 10px 10px 10px 18px; cursor: pointer; text-align: left;
  border: 1px solid rgba(197, 203, 210, 0.45); border-radius: 2px;
  background: rgba(12, 13, 15, 0.72);
  box-shadow: inset 0 1px 0 rgba(246, 248, 250, 0.12);
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.plaque:active { transform: scale(0.97); }
.plaque-ip { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: 0.03em; font-size: 1.15rem; color: var(--silver-hi); }
.plaque-state { font-weight: 650; font-size: 0.82rem; padding: 7px 12px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); transition: background-color 200ms ease; }
.plaque.is-copied .plaque-state { background: var(--accent-hi); }
@media (hover: hover) and (pointer: fine) { .plaque:hover { border-color: var(--silver); } }

.live { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 550; font-size: 0.95rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.sample { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); border: 1px dashed var(--line); padding: 1px 6px; border-radius: 2px; }

/* home: one strip, three doors */
.doors { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) clamp(48px, 8vh, 80px); }
.doors-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.door + .door { border-left: 1px solid var(--line); }
.door a { display: grid; gap: 6px; height: 100%; padding: 22px 24px 24px; text-decoration: none; transition: background-color 200ms ease; }
.door a:active { background: var(--stone-1); }
.door-name { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: var(--display-track); font-size: 1.05rem; color: var(--silver-hi); display: flex; justify-content: space-between; align-items: center; }
.door-name svg { width: 16px; height: 16px; color: var(--ink-dim); transition: transform 200ms var(--ease-out), color 200ms ease; }
.door-text { margin: 0; color: var(--ink-dim); font-size: 0.93rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.door-text strong { color: var(--ink); font-weight: 600; }
.door-text img { width: 22px; height: 22px; image-rendering: pixelated; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) {
  .door a:hover { background: var(--stone-1); }
  .door a:hover .door-name svg { transform: translate(2px, -2px); color: var(--accent); }
}

/* page banner (non-home pages) */
.banner { min-height: clamp(240px, 34svh, 340px); display: grid; align-items: end; }
.banner .shot { object-position: 50% 62%; }
.banner-body { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 28px; }
.page-title { margin: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1; }
.page-lede { margin: 10px 0 0; color: var(--ink); max-width: 52ch; }

/* leaderboards */
.board-wrap { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) clamp(56px, 9vh, 96px); }
.board-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: none; cursor: pointer; white-space: nowrap; padding: 8px 13px; border-radius: 2px; font-weight: 550; font-size: 0.87rem; color: var(--ink-dim); transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.seg button:active { transform: scale(0.97); }
.seg button[aria-pressed="true"] { background: var(--stone-2); color: var(--silver-hi); box-shadow: inset 0 1px 0 rgba(246, 248, 250, 0.08); }
@media (hover: hover) and (pointer: fine) { .seg button:hover { color: var(--ink); } }

.board-scroll { position: relative; overflow-x: auto; scrollbar-width: thin; }
.board { width: 100%; min-width: 340px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th { text-align: right; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); padding: 0 14px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board th:nth-child(-n+2), .board td:nth-child(-n+2) { text-align: left; }
.board th.is-sort { color: var(--silver-hi); }
.board td { padding: 0 14px; height: 54px; text-align: right; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); }
.board td.is-sort { color: var(--silver-hi); font-weight: 650; }
.board .pos { width: 3.2rem; color: var(--ink-dim); font-weight: 600; }
.board tr:nth-child(-n+3) .pos { color: var(--silver-hi); }
.player { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.player img { width: 28px; height: 28px; image-rendering: pixelated; border-radius: 2px; background: var(--stone-2); flex: none; }
.board tbody tr { transition: background-color 160ms ease; }
.board tbody tr.enter { animation: row-in 360ms var(--ease-out) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } }
@media (hover: hover) and (pointer: fine) { .board tbody tr:hover { background: var(--stone-1); } }
.board-foot { margin: 14px 0 0; color: var(--ink-dim); font-size: 0.85rem; }

/* footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding: 26px var(--gutter); border-top: 1px solid var(--line); background: var(--stone-1); color: var(--ink-dim); }
.foot .brand { color: var(--silver); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { text-decoration: none; font-size: 0.88rem; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--ink); } }
.foot-meta { margin: 0 0 0 auto; font-size: 0.8rem; }


/* entrance */
.js .hero-body > *, .js .banner-body > * { animation: rise 800ms var(--ease-out) both; }
.js .hero-body > :nth-child(2), .js .banner-body > :nth-child(2) { animation-delay: 100ms; }
.js .hero-body > :nth-child(3) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 820px) {
  .doors-list { grid-template-columns: 1fr; }
  .door + .door { border-left: 0; border-top: 1px solid var(--line); }
  .board .hide-sm { display: none; }
  .board th, .board td { padding: 0 6px; }
  .board .pos { width: 2rem; }
  .player { gap: 8px; }
}
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; gap: 10px 16px; padding-top: 14px; }
  .brand-logo { height: 36px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: space-between; gap: 0; }
  .nav-links a { white-space: nowrap; padding: 7px 8px; font-size: 0.84rem; }
  /* The logo already links home; this keeps Store on screen. */
  .nav-links a[href="/"] { display: none; }
  .nav-discord { padding: 8px 10px; }
  .hero { min-height: max(520px, 78svh); }
  .hero picture img { object-position: 48% 22%; }
  .banner { min-height: 280px; }
  .foot-meta { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fog i, .live-dot { animation: none; }
  .js .hero-body > *, .js .banner-body > * { animation: none; }
  .board tbody tr.enter { animation: none; }
  .engraved, .sheen::after { transition: none !important; }
}

/* player search */
.search { position: relative; flex: 1 1 260px; max-width: 340px; }
.search input {
  width: 100%; height: 40px; padding: 0 12px 0 36px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1);
  color: var(--ink); font: inherit; font-size: 0.92rem;
  transition: border-color 160ms ease;
}
.search input::placeholder { color: var(--ink-dim); }
.search input:focus { outline: none; border-color: var(--silver-lo); }
.search svg { position: absolute; left: 11px; top: 12px; width: 16px; height: 16px; color: var(--ink-dim); pointer-events: none; }
.search-results {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 4px; list-style: none;
  border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
  transform-origin: top center;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 150ms;
}
.search-results[hidden] { display: block; opacity: 0; transform: scale(0.98) translateY(-4px); pointer-events: none; visibility: hidden; }
.search-results li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 2px; cursor: pointer; font-weight: 550; }
.search-results li[aria-selected="true"] { background: var(--stone-2); }
.search-results img { width: 22px; height: 22px; image-rendering: pixelated; border-radius: 2px; }
.search-results .empty { color: var(--ink-dim); cursor: default; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .search-results li:not(.empty):hover { background: var(--stone-2); } }
.board tbody tr { cursor: pointer; }

/* player profile */
.profile {
  width: min(980px, calc(100vw - 32px)); max-height: calc(100svh - 48px);
  padding: 0; border: 1px solid var(--line); border-radius: 4px;
  background: var(--stone-0); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
.profile:not([open]) { opacity: 0; transform: scale(0.98); transition-duration: 120ms; }
@starting-style { .profile[open] { opacity: 0; transform: scale(0.97) translateY(8px); } }
.profile::backdrop { background: rgba(6, 7, 8, 0.72); transition: background-color 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete; }
@starting-style { .profile[open]::backdrop { background: rgba(6, 7, 8, 0); } }
.profile-inner { position: relative; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; padding: 22px; overflow: auto; max-height: calc(100svh - 50px); }
.profile-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); cursor: pointer; color: var(--ink-dim);
  transition: color 160ms ease, transform 160ms var(--ease-out);
}
.profile-close:active { transform: scale(0.95); }
.profile-close svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .profile-close:hover { color: var(--ink); } }

.id-card { display: grid; align-content: start; padding: 20px 20px 6px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); }
.nametag { justify-self: center; padding: 4px 10px; background: rgba(0, 0, 0, 0.55); color: #fff; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; }
.id-body { justify-self: center; height: 220px; width: auto; margin: 14px 0 18px; image-rendering: pixelated; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.5)); }
.id-rows { margin: 0; }
.id-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 0.92rem; }
.id-rows dt { color: var(--ink-dim); }
.id-rows dd { margin: 0; font-weight: 600; text-align: right; }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); }
.stat { padding: 16px 12px 14px; text-align: center; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stat:nth-child(3n) { border-right: 0; }
.stat:nth-last-child(-n+3) { border-bottom: 0; }
.stat b { display: block; font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.5rem; color: var(--silver-hi); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.profile h3 { margin: 22px 0 10px; font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--silver-hi); }
.kits { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border: 1px solid var(--line); background: var(--stone-1); }
.kits th { text-align: right; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.kits td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-dim); }
.kits tr:last-child td { border-bottom: 0; }
.kits th:first-child, .kits td:first-child { text-align: left; color: var(--ink); font-weight: 550; }
.kits td small { display: block; color: var(--ink-dim); font-weight: 400; font-size: 0.75rem; }
.note { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: 2px; color: var(--ink-dim); font-size: 0.9rem; }
.profile-loading { grid-column: 1 / -1; padding: 60px; text-align: center; color: var(--ink-dim); }

/* royale games */
.games-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.next-game { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--ink-dim); }
.next-game strong { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.02rem; color: var(--silver-hi); font-variant-numeric: tabular-nums; }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.game {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(130px, 1fr) 80px 80px minmax(0, 2fr); align-items: center; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1);
}
.game::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/shots/sakura-pond-1000.webp") 70% 50% / cover no-repeat; opacity: 0.16; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000); }
.game:first-child { border-color: var(--silver-lo); }
.game-id { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.1rem; color: var(--silver-hi); }
.game-id small { display: block; font-family: var(--body); font-stretch: 100%; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-top: 2px; }
.game-time b, .game-num b { display: block; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.game-time span { font-size: 0.78rem; color: var(--ink-dim); }
.game-num span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.game-top { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 190px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 2px; background: rgba(12, 13, 15, 0.7); font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--ink); transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
.chip img { width: 20px; height: 20px; image-rendering: pixelated; border-radius: 1px; flex: none; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip em { font-style: normal; color: var(--ink-dim); font-weight: 500; font-size: 0.75rem; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--silver-lo); } }
.sample-banner { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 2px; color: var(--ink-dim); font-size: 0.88rem; }

@media (max-width: 820px) {
  .profile-inner { grid-template-columns: 1fr; padding: 16px; }
  .id-body { height: 160px; }
  .game { grid-template-columns: 1fr 1fr; }
  .game-top { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 720px) {
  .profile { width: 100vw; max-width: 100vw; max-height: 100svh; height: 100svh; margin: 0; border-radius: 0; border: 0; }
  .profile-inner { max-height: 100svh; }
  .stat b { font-size: 1.2rem; }
  .search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .profile, .profile::backdrop, .search-results { transition: none; } }
.games-head .page-title { font-size: 1.6rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-h { margin: 0 0 16px; font-size: 1.6rem; line-height: 1.1; color: var(--silver-hi); }
.notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px var(--gutter); background: var(--stone-2); color: var(--ink); font-size: 0.9rem; text-align: center; border-top: 1px solid var(--line); }
.notice[hidden] { display: none; }

/* store catalog (markup comes from /js/store.js) */
.store-wrap { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 8px; }
.compare-wrap { padding-top: 48px; padding-bottom: clamp(56px, 9vh, 96px); }
.store-page .loading, .store-page .error { color: var(--ink-dim); }
.category + .category { margin-top: 48px; }
.category-heading { margin: 0 0 6px; font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.6rem; color: var(--silver-hi); }
.category-intro { margin: 0 0 16px; color: var(--ink-dim); }
#category-ranks .category-heading { margin-bottom: 16px; }
.product-grid { display: grid; gap: 12px; }
#category-ranks .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); }
.product-card.featured { border-color: var(--silver); background: linear-gradient(180deg, #1c1f23, var(--stone-1) 60%); box-shadow: inset 0 1px 0 rgba(246, 248, 250, 0.18), 0 0 0 1px rgba(197, 203, 210, 0.12), 0 18px 50px rgba(197, 203, 210, 0.09); }
.rank-cover h3 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: var(--display-stretch); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em;
  background: linear-gradient(100deg, var(--silver-lo) 0%, var(--silver-hi) 30%, var(--silver) 55%, var(--silver-hi) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank-cover-top { min-height: 0; }
.card-badges { display: flex; gap: 6px; }
.card-badges:empty { display: none; }
.badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; background: var(--silver); color: var(--stone-0); margin-bottom: 10px; }
.card-subtitle { margin: 10px 0 18px; color: var(--ink-dim); font-size: 0.94rem; min-height: 3em; }
.price-block > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price-main { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.7rem; color: var(--silver-hi); font-variant-numeric: tabular-nums; }
.price-was { color: var(--ink-dim); text-decoration: line-through; }
.price-term { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.price-sar { display: block; margin-top: 2px; color: var(--ink-dim); font-size: 0.82rem; }
.price-tax { margin: 6px 0 0; color: var(--ink-dim); font-size: 0.76rem; }
.perks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 9px; align-content: start; }
.perks li { position: relative; padding-left: 20px; font-size: 0.93rem; }
.perks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 5px; border-left: 1.5px solid var(--silver); border-bottom: 1.5px solid var(--silver); transform: rotate(-45deg); }
.perks li.perk-extra { display: none; }
.product-card.expanded .perks li.perk-extra { display: block; }
.perks li[hidden] { display: none !important; }
.perk-details { margin-top: 10px; }
.perk-details[hidden] { display: none; }
.text-button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--silver); font-weight: 600; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 0.95rem; transition: background-color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out); }
.button:active:not(:disabled) { transform: scale(0.97); }
.button:disabled { cursor: not-allowed; opacity: 0.5; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-outline { background: var(--stone-2); border-color: var(--line); color: var(--ink); }
.button img { width: 18px; height: 18px; }
.button .action-arrow { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover:not(:disabled) { background: var(--accent-hi); }
  .button-outline:hover:not(:disabled) { border-color: var(--silver-lo); }
  .text-button:hover { color: var(--ink); }
}
.buy-button { margin-top: auto; width: 100%; }
#category-ranks .perks, #category-ranks .perk-details { margin-bottom: 22px; }
#category-ranks .perk-details { margin-top: -10px; }

/* cosmetics: compact rows */
#category-cosmetics .product-grid { gap: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); }
#category-cosmetics .product-card {
  display: grid; grid-template-columns: 40px minmax(140px, 1fr) minmax(0, 2fr) auto auto; align-items: center; gap: 4px 20px;
  padding: 16px 20px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none;
}
#category-cosmetics .product-card:last-child { border-bottom: 0; }
#category-cosmetics .card-top { grid-column: 1; grid-row: 1 / 3; }
#category-cosmetics .tier-mark svg { width: 26px; height: 26px; color: var(--silver); }
#category-cosmetics h3 { grid-column: 2; margin: 0; font-size: 1rem; font-weight: 650; color: var(--ink); }
#category-cosmetics .card-term { grid-column: 2; color: var(--ink-dim); font-size: 0.82rem; }
#category-cosmetics .perks { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 0; border: 0; color: var(--ink-dim); }
#category-cosmetics .perks li { padding: 0; }
#category-cosmetics .perks li::before { display: none; }
#category-cosmetics .price-block { grid-column: 4; grid-row: 1 / 3; text-align: right; }
#category-cosmetics .price-block > div { justify-content: flex-end; }
#category-cosmetics .price-main { font-size: 1.15rem; }
#category-cosmetics .price-tax { display: none; }
#category-cosmetics .buy-button { grid-column: 5; grid-row: 1 / 3; margin: 0; width: auto; }

/* compare */
.compare { width: 100%; min-width: 560px; border-collapse: collapse; border: 1px solid var(--line); background: var(--stone-1); font-size: 0.92rem; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: center; vertical-align: middle; }
.compare thead th { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1rem; color: var(--silver-hi); border-bottom: 1px solid var(--line); }
.compare tbody th { text-align: left; font-weight: 550; color: var(--ink); }
.compare td { color: var(--ink-dim); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare svg { width: 18px; height: 18px; vertical-align: middle; }
.compare .yes svg { color: var(--silver-hi); }
.compare .no svg { color: var(--line); }

/* checkout + FAQ dialogs (markup shared with the live store) */
.store-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100svh - 40px); padding: 26px; border: 1px solid var(--line); border-radius: 4px; background: var(--stone-0); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: auto;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete; }
.store-dialog:not([open]) { opacity: 0; transform: scale(0.98); transition-duration: 120ms; }
@starting-style { .store-dialog[open] { opacity: 0; transform: scale(0.97) translateY(8px); } }
.store-dialog::backdrop { background: rgba(6, 7, 8, 0.72); }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); color: var(--ink-dim); cursor: pointer; }
.dialog-close svg { width: 16px; height: 16px; }
.dialog-heading h2 { margin: 0 40px 6px 0; font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.35rem; color: var(--silver-hi); }
.dialog-heading p { margin: 0; color: var(--ink-dim); font-size: 0.92rem; }
.purchase-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); }
.purchase-summary strong { display: block; font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 1.15rem; color: var(--silver-hi); }
.purchase-summary span { color: var(--ink-dim); font-size: 0.88rem; }
.purchase-summary .price-block { text-align: right; }
.purchase-summary .price-main { font-size: 1.3rem; }
#purchase-form { display: grid; gap: 16px; }
.checkout-field label, .field-heading h3 { display: flex; justify-content: space-between; margin: 0 0 6px; font-weight: 650; font-size: 0.92rem; }
.field-heading { display: flex; justify-content: space-between; align-items: baseline; }
.checkout-field small, .field-heading small { color: var(--ink-dim); font-weight: 500; }
.checkout-field input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); color: var(--ink); font: inherit; font-size: 16px; }
.checkout-field input:focus { outline: none; border-color: var(--silver-lo); }
.checkout-field input[aria-invalid="true"] { border-color: #c96a6a; }
.field-hint { margin: 6px 0 0; color: var(--ink-dim); font-size: 0.84rem; }
.field-hint.invalid { color: #e59a9a; }
.discord-link-section { padding: 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); }
.discord-link-section.is-connected { border-color: var(--silver-lo); }
.discord-link-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
#discord-link-status { margin: 10px 0 0; font-size: 0.88rem; color: var(--ink); }
.form-error { margin: 0; padding: 10px 12px; border: 1px solid #7a3b3b; border-radius: 2px; background: #2a1717; color: #f0c4c4; font-size: 0.9rem; }
.form-error[hidden] { display: none; }
#purchase-continue { width: 100%; }
.payment-note { margin: 0; color: var(--ink-dim); font-size: 0.8rem; text-align: center; }
.faq-list { margin-top: 16px; display: grid; }
.faq-list details { border-top: 1px solid var(--line-soft); }
.faq-list summary { padding: 14px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { margin: 0 0 14px; color: var(--ink-dim); font-size: 0.93rem; }
.faq-list a, .faq-contact { color: var(--silver-hi); }
.faq-contact { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; }
.faq-contact img, .faq-contact svg { width: 16px; height: 16px; }

/* staff: one panel per rank, coloured header like the in-game prefix */
.staff-group { border: 1px solid var(--line); border-radius: 4px; background: var(--stone-1); overflow: hidden; }
.staff-group + .staff-group { margin-top: 20px; }
.staff-title { margin: 0; padding: 11px 16px; text-align: center; font-family: var(--display); font-weight: 750; font-stretch: var(--display-stretch); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone-0); background: linear-gradient(90deg, var(--silver-lo), var(--silver-hi)); }
.staff-title.is-dark { color: var(--silver-hi); }
.staff-list { list-style: none; margin: 0; padding: 26px 18px 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
.staff-card { display: grid; justify-items: center; gap: 12px; width: 120px; padding: 6px 4px; border: 0; background: none; cursor: pointer; transition: transform 200ms var(--ease-out); }
.staff-card img { height: 150px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45)); transition: transform 240ms var(--ease-out); }
.staff-card span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 0.92rem; }
.staff-card:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .staff-card:hover img { transform: translateY(-4px); } }
.page-centered .banner-body { text-align: center; }
.page-centered .page-lede { margin-left: auto; margin-right: auto; }

@media (max-width: 960px) { #category-ranks .product-grid { grid-template-columns: 1fr; } .card-subtitle { min-height: 0; } }
@media (max-width: 720px) {
  #category-cosmetics .product-card { grid-template-columns: 32px 1fr auto; }
  #category-cosmetics .perks { grid-column: 2 / -1; grid-row: auto; }
  #category-cosmetics .price-block { grid-column: 3; grid-row: 1; }
  #category-cosmetics .buy-button { grid-column: 1 / -1; grid-row: auto; width: 100%; margin-top: 8px; }
  .store-dialog { width: 100vw; max-width: 100vw; max-height: 100svh; height: 100svh; margin: 0; border-radius: 0; border: 0; padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { .store-dialog { transition: none; } }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.pager-item { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.pager-item:active { transform: scale(0.97); }
.pager-item.is-current { border-color: var(--silver); color: var(--silver-hi); background: var(--stone-2); }
.pager-gap { display: inline-grid; place-items: center; min-width: 24px; color: var(--ink-dim); }
@media (hover: hover) and (pointer: fine) { a.pager-item:hover { border-color: var(--silver-lo); } }
.live[hidden] { display: none; }

/* royale game panel */
.game { cursor: pointer; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.game:active { transform: scale(0.995); }
@media (hover: hover) and (pointer: fine) { .game:hover { border-color: var(--silver-lo); } }
.profile-inner.is-game { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.profile-inner.is-game > * { min-width: 0; }
.game-head { padding-right: 44px; }
.game-title { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; color: var(--silver-hi); }
.game-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 0; color: var(--ink-dim); font-size: 0.9rem; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-2); color: var(--ink); font-style: normal; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.game-banner { position: relative; margin: 0; height: clamp(150px, 26vw, 230px); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.game-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.game-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 13, 15, 0) 40%, rgba(12, 13, 15, 0.85)); }
.game-banner figcaption { position: absolute; left: 18px; bottom: 14px; z-index: 1; display: grid; }
.game-banner strong { font-family: var(--display); font-weight: 800; font-stretch: var(--display-stretch); font-size: 1.6rem; text-transform: uppercase; color: var(--silver-hi); }
.game-details { padding: 16px 18px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.detail-grid dt, .detail-label { margin: 0; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.detail-grid dd { margin: 4px 0 0; font-weight: 650; color: var(--ink); }
.detail-label { margin-top: 16px; }
.tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-2); font-size: 0.84rem; font-weight: 600; }
.winners { text-align: center; }
.winners h3, .game-board h3 { margin: 10px 0 12px; }
.winner-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.winner-card { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border: 1px solid var(--silver-lo); border-radius: 2px; background: var(--stone-1); cursor: pointer; text-align: left; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.winner-card:active { transform: scale(0.97); }
.winner-card img { height: 64px; width: auto; image-rendering: pixelated; }
.winner-card strong { display: block; font-family: var(--display); font-weight: 750; font-stretch: var(--display-stretch); font-size: 1.05rem; text-transform: uppercase; color: var(--silver-hi); }
.winner-card em { font-style: normal; font-size: 0.8rem; color: var(--ink-dim); }
@media (hover: hover) and (pointer: fine) { .winner-card:hover { border-color: var(--silver); } }
.game-board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.game-board-head h3 { margin: 10px 0; }
.results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); }
.results li + li { border-top: 1px solid var(--line-soft); }
.result { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; border: 0; background: none; cursor: pointer; text-align: left; transition: background-color 160ms ease; }
.result-place { font-weight: 700; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.result.is-winner .result-place { color: var(--silver-hi); }
.result-name { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); min-width: 0; }
.result-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-name img { width: 24px; height: 24px; image-rendering: pixelated; border-radius: 2px; flex: none; }
.result-kills { color: var(--silver-hi); font-weight: 650; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .result:hover { background: var(--stone-2); } }
@media (max-width: 720px) { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* rules */
.rules-wrap { max-width: 900px; }
.rules-nav { position: sticky; top: 0; z-index: 4; display: flex; gap: 4px; margin: 0 0 22px; padding: 10px 0; background: var(--stone-0); border-bottom: 1px solid var(--line-soft); }
.rules-nav a { padding: 7px 12px; border-radius: 2px; text-decoration: none; font-weight: 600; font-size: 0.88rem; color: var(--ink-dim); transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .rules-nav a:hover { color: var(--ink); background: var(--stone-1); } }
.rules-section { scroll-margin-top: 64px; }
.rules-section + .rules-section { margin-top: 44px; }
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.rule h3 { margin: 0; font-size: 1.02rem; font-weight: 650; color: var(--silver-hi); }
.rule-no { display: inline-block; min-width: 2.2ch; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.rule p { margin: 6px 0 0 2.6ch; max-width: 70ch; color: var(--ink-dim); }
.rules-note { margin: 14px 0 0; color: var(--ink); font-weight: 600; }
.rules-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.rules-card { padding: 18px; border: 1px solid var(--line); border-radius: 2px; background: var(--stone-1); }
.rules-card h3 { margin: 0 0 10px; font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--silver-hi); }
.rules-card p { margin: 0 0 8px; color: var(--ink-dim); font-size: 0.92rem; }
.rules-small { font-size: 0.82rem !important; }
.ban-steps { margin: 0 0 8px; }
.ban-steps div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.ban-steps dt { color: var(--ink-dim); }
.ban-steps dd { margin: 0; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .rules-cards { grid-template-columns: 1fr; } }
.thanks { min-height: clamp(460px, 76svh, 680px); }
.thanks .hero-line { white-space: pre-line; }
.thanks .button img { width: 18px; height: 18px; }

.door-text[data-leader] { flex-wrap: nowrap; align-items: flex-start; }
.door-text[data-leader] img { margin-top: 1px; flex: none; }
.page-centered .page-title { display: inline-block; }

.page-centered .banner .shot { object-position: 50% 28%; }
@media (max-width: 720px) {
  .board-controls .seg { flex-wrap: wrap; overflow: visible; }
  .compare { min-width: 0; font-size: 0.8rem; }
  .compare th, .compare td { padding: 10px 6px; }
  .compare thead th { font-size: 0.82rem; }
}
/* On phones the table shows rank, player and the stat it is sorted by. */
@media (max-width: 520px) {
  .board th[data-col], .board td.c-wins, .board td.c-kills, .board td.c-streak { display: none; }
  .board th.is-sort, .board td.is-sort { display: table-cell; }
}

/* Short pages keep the footer at the bottom of the window. */
body > main { flex: 1 0 auto; }
.home-games { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 8vh, 80px); }
.home-games .games-head { margin-bottom: 14px; }
.home-games .section-h { margin: 0; }
