/* karoball.net -- the design system.
   Match night in Maple Green: dark night panels over the game's own screenshots,
   one accent (the game's sky blue, kit.BLUE) on warm-white ink. The layout uses
   the whole screen; screenshots are big. The only wooden thing is the notice
   board on the home page. Components are documented on /styleguide/ (not linked,
   not in the sitemap). */

@font-face {
  font-family: "Fredoka One";
  src: url("/fonts/FredokaOne-Regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Regular.woff") format("woff");
  font-display: swap;
}
/* the game's menu font: the play menu's LOCKER, QUICK PLAY, CHALLENGES */
@font-face {
  font-family: "Squada One";
  src: url("/fonts/SquadaOne-Regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/fonts/PTSans-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* night over the town: a dark grass ground, charcoal panels */
  --bg: #12170F;
  --bg-deep: #0C100A;
  --surface: #15181D;
  --surface-2: #1C2027;
  --surface-3: #262B34;
  --line: #2F343C;
  --line-soft: #23272E;
  --hair: rgba(255, 244, 220, .1);
  --panel: linear-gradient(180deg, rgba(30, 34, 41, .94), rgba(17, 19, 24, .96));

  /* ink: warm white */
  --ink: #F6F2EA;
  --ink-soft: #DCD6C8;
  --muted: #ABA597;
  --faint: #8E897D;

  /* the one accent: the game's sky blue */
  --sky: #40B5E3;
  --sky-2: #7FD6FF;
  --sky-deep: #1D7AA3;
  --sky-ink: #06223A;
  --sky-line: rgba(127, 214, 255, .26);
  --sky-wash: rgba(64, 181, 227, .14);
  --link: #7FD6FF;

  /* pitch */
  --turf: #4A8C34;
  --turf-light: #529A3A;
  --turf-dark: #42812E;
  --chalk: rgba(255, 255, 255, 0.82);

  /* old accent names now point at the accent, so page styles stay one colour */
  --gold: var(--sky-2);
  --gold-deep: var(--sky-deep);
  --green: var(--sky-2);
  --red: #FF7A6E;
  /* only for things that mean something: a warning, a live server, the lamps */
  --warn: #FFC867;
  --live: #4ADE80;
  --lamp: #FFC867;
  --team-blue: #3B82F6;
  --team-red: #E5484D;

  /* rarities: the item cards' colours (client/kitart.lua), for the rarity chips only */
  --r-common: #BDBDBD;
  --r-uncommon: #80D152;
  --r-rare: #66A3FF;
  --r-epic: #BD75F2;
  --r-legendary: #FACC33;

  --sport: "Squada One", "Bahnschrift Condensed", "Arial Narrow", Impact, sans-serif;
  --display: "Fredoka One", "Fredoka", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --round: "Fredoka", "Fredoka One", ui-rounded, system-ui, sans-serif;
  --label: "PT Sans", "Segoe UI", system-ui, sans-serif;
  --text: "PT Sans", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7), 0 2px 6px -2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 34px 60px -24px rgba(0, 0, 0, .8);
  --glow: 0 0 50px -20px var(--sky);
  --header-h: 72px;
  --gutter: clamp(16px, 3.2vw, 64px);
  --wide: 1840px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg-deep); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg) linear-gradient(180deg, #161D12, var(--bg) 900px, var(--bg-deep));
  color: var(--ink);
  font: 700 clamp(16px, .2vw + 14.6px, 18px)/1.6 var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
img { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #B3E7FF; }
:focus-visible { outline: 3px solid var(--sky-2); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; text-wrap: balance; color: var(--ink); }
/* big titles in the game's menu style: Squada One, slanted capitals */
h1, h2 { font-family: var(--sport); font-style: italic; text-transform: uppercase; line-height: .94; letter-spacing: .01em; }
h1 { font-size: clamp(3rem, 6vw, 7.2rem); }
h2 { font-size: clamp(2.5rem, 4.4vw, 5.6rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
/* a word on a slanted sky-blue slab, like the game's broadcast plates */
.slab { display: inline-block; padding: .02em .28em .04em .2em; margin: .04em 0 0 -.06em; background: var(--sky); color: var(--sky-ink); transform: skewX(-12deg); text-shadow: none; box-shadow: .12em .12em 0 rgba(0, 0, 0, .35); }
.slab > span { display: inline-block; transform: skewX(12deg); }
h3 { font-size: clamp(1.3rem, 1.7vw, 1.9rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
code, kbd, samp { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: .1em .4em; overflow-wrap: anywhere; font-weight: 400; }
kbd {
  display: inline-block; min-width: 1.9em; padding: .12em .5em; text-align: center;
  font: 700 .82em/1.5 var(--label); letter-spacing: .03em; color: var(--ink);
  background: linear-gradient(#2E343E, #20242B); border: 1px solid #3C434E; border-bottom-width: 3px;
  border-radius: 7px; white-space: nowrap; vertical-align: .05em;
}
strong { font-weight: 700; color: #fff; }
small { font-size: .85em; }
::selection { background: var(--sky); color: var(--sky-ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sky); color: var(--sky-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* the warm specks of light from the town at night (decoration, hidden from readers) */
.ff { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #FFE7A0; box-shadow: 0 0 10px 3px rgba(255, 214, 110, .5); pointer-events: none; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ff { animation: ff 6s ease-in-out infinite alternate; }
  .ff:nth-of-type(2n) { animation-duration: 8s; animation-delay: -3s; }
  .ff:nth-of-type(3n) { animation-duration: 7s; animation-delay: -5s; }
}
@keyframes ff { from { opacity: .35; translate: 0 0; } to { opacity: 1; translate: 10px -14px; } }

/* ---------------------------------------------------------------- layout */

.container { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1240px; }
.container--prose { max-width: 880px; }
.section { padding-block: clamp(60px, 6vw, 120px); position: relative; }
.section--tight { padding-block: clamp(40px, 4vw, 72px); }
.section--alt { background: radial-gradient(60% 50% at 0% 40%, rgba(255, 200, 103, .05), transparent 70%); }
.section--surface { background: rgba(0, 0, 0, .18); border-block: 1px solid var(--hair); }
.section__head { max-width: 860px; margin-bottom: clamp(28px, 3vw, 52px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
/* the label above a heading: a small sky-blue tag, set a little crooked like a pinned note */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 1rem;
  padding: .38em .9em; border-radius: 6px; background: var(--sky); color: var(--sky-ink);
  font: 700 .78rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase;
  transform: rotate(-2deg); transform-origin: left center;
}
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.eyebrow--gold, .eyebrow--green { background: var(--sky); color: var(--sky-ink); }
.lead { font-size: clamp(1.1rem, 1.1vw + .4rem, 1.4rem); color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--muted); }

.grid { display: grid; gap: clamp(16px, 1.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.split { display: grid; gap: clamp(28px, 4vw, 88px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1.4fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h); isolation: isolate;
  border-bottom: 1px solid var(--hair);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block of the fixed mobile menu and squash the menu into the header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(14, 12, 10, .9), rgba(14, 12, 10, .78));
  backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%);
  transition: background .2s;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .8); }
.site-header.is-scrolled::before, .nav-open .site-header::before { background: rgba(12, 11, 9, .96); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sky-2); flex: none; }
.brand__ball { width: 38px; height: 38px; transition: transform .6s var(--ease); }
.brand:hover .brand__ball { transform: rotate(-200deg); }
.brand__word { font: 400 1.75rem/1 var(--display); letter-spacing: .01em; color: var(--sky-2); text-shadow: 0 2px 0 #0B3A55; }
.brand:hover .brand__word { color: var(--sky-2); }
.brand--lg .brand__ball { width: 52px; height: 52px; }
.brand--lg .brand__word { font-size: 2.2rem; }

.site-nav { display: flex; align-items: center; gap: 18px; flex: 1; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0 0 0 clamp(8px, 1.6vw, 36px); padding: 0; }
.site-nav__list a {
  display: block; padding: 8px 14px; border-radius: 10px; color: var(--ink-soft); text-decoration: none;
  font: italic 400 1.35rem/1.1 var(--sport); letter-spacing: .03em; text-transform: uppercase;
  transition: color .15s, background .15s, transform .15s var(--ease);
}
.site-nav__list a:hover { color: var(--ink); background: rgba(255, 244, 220, .07); }
.site-nav__list a[aria-current="page"] { color: #fff; background: var(--sky-wash); }
.site-nav__actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.site-nav__live { display: inline-flex; align-items: center; gap: .5em; padding: .45em .85em; border-radius: 10px; border: 1px solid var(--hair); color: var(--ink); text-decoration: none; font: 400 1rem/1 var(--display); white-space: nowrap; }
.site-nav__live:hover { color: #fff; border-color: var(--sky-line); }
.site-nav__live .live-chip__dot { width: 8px; height: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }

@media (max-width: 1180px) {
  .site-nav__live { display: none; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0;
    flex-direction: column; align-items: stretch; gap: 18px; padding: 20px var(--gutter) 32px;
    background: var(--bg-deep); border-top: 1px solid var(--hair); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav-open { overflow: hidden; }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: block; }
  .site-nav__list { flex-direction: column; gap: 2px; margin: 0; }
  .site-nav__list a { font-size: 1.25rem; padding: 14px 12px; border-bottom: 1px solid var(--hair); border-radius: 0; }
  .site-nav__actions { flex-wrap: wrap; margin-left: 0; }
  .site-nav__live { display: inline-flex; }
  .site-nav__actions .btn--primary { flex: 1; justify-content: center; padding-block: 14px; font-size: 1.15rem; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-bg: rgba(255, 244, 220, .06); --btn-ink: var(--ink); --btn-line: rgba(255, 244, 220, .26); --btn-drop: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .66em 1.25em; border-radius: 14px; border: 2px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; cursor: pointer;
  font: 400 1.08rem/1.15 var(--display); letter-spacing: .01em;
  box-shadow: 0 4px 0 var(--btn-drop);
  transition: transform .15s var(--ease), background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { color: var(--btn-ink); transform: translateY(-2px) rotate(-1deg); --btn-line: rgba(255, 244, 220, .45); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-drop); }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--primary {
  --btn-bg: var(--sky); --btn-ink: var(--sky-ink); --btn-line: var(--sky); --btn-drop: var(--sky-deep);
  box-shadow: 0 5px 0 var(--btn-drop), 0 16px 30px -10px rgba(64, 181, 227, .55);
}
.btn--primary:hover { --btn-line: #6FCDF2; --btn-bg: #55C2EC; }
.btn--primary:active { box-shadow: 0 2px 0 var(--btn-drop), 0 10px 20px -10px rgba(64, 181, 227, .55); }
.btn--ghost { --btn-bg: rgba(255, 244, 220, .06); }
.btn--discord { --btn-bg: rgba(255, 244, 220, .06); }
.btn--gold { --btn-bg: var(--sky); --btn-ink: var(--sky-ink); --btn-line: var(--sky); --btn-drop: var(--sky-deep); }
.btn--sm { padding: .5em .95em; font-size: .98rem; border-radius: 11px; }
.btn--sm.btn--primary { box-shadow: 0 4px 0 var(--btn-drop); }
.btn--lg { padding: .78em 1.5em; font-size: 1.22rem; border-radius: 15px; }
.btn--xl { padding: .82em 1.7em; font-size: 1.4rem; border-radius: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--icon-only { padding: .5em; width: 44px; height: 44px; }
.btn--icon-only .icon { width: 22px; height: 22px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
.btn__sub { display: block; font: 700 .76rem/1.2 var(--label); letter-spacing: .02em; opacity: .8; margin-top: 3px; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }

/* a big two-line download button: label + "v0.1.32 · 0.8 MB · Windows 10/11" */
.dl-btn { padding: .78em 1.5em .74em 1.2em; }
.dl-btn .icon { width: 1.6em; height: 1.6em; }
.dl-btn__label { font-size: 1.22rem; }

/* ---------------------------------------------------------------- chips, badges, pills */

.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .42em .85em; border-radius: 999px;
  font: 700 .8rem/1.1 var(--label); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 244, 220, .06); border: 1px solid var(--hair); color: var(--ink-soft);
}
.chip .icon { width: 1.1em; height: 1.1em; color: var(--sky-2); }
.chip--sky, .chip--green, .chip--gold { color: var(--sky-2); border-color: var(--sky-line); background: var(--sky-wash); }
.chip--red { color: var(--red); border-color: rgba(255, 122, 110, .35); background: rgba(255, 122, 110, .08); }
.chip--red .icon { color: inherit; }

.badge { display: inline-flex; align-items: center; padding: .34em .7em; border-radius: 6px; font: 700 .72rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; background: var(--surface-3); color: var(--ink-soft); }
.badge--major { background: var(--sky); color: var(--sky-ink); }
.badge--update, .badge--patch, .badge--news { background: var(--sky-wash); color: var(--sky-2); }
.tag-version { font: 700 .8rem/1 var(--mono); color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); padding: .32em .5em; border-radius: 7px; text-decoration: none; }
a.tag-version:hover { color: var(--sky-2); border-color: var(--sky); }

.rarity { display: inline-flex; align-items: center; gap: .4em; font: 700 .78rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase; padding: .38em .65em; border-radius: 6px; color: #0B1220; background: var(--rc, var(--r-common)); }
.rarity--common { --rc: var(--r-common); }
.rarity--uncommon { --rc: var(--r-uncommon); }
.rarity--rare { --rc: var(--r-rare); }
.rarity--epic { --rc: var(--r-epic); }
.rarity--legendary { --rc: var(--r-legendary); }

.live-chip { display: inline-flex; align-items: center; gap: .55em; padding: .45em .9em; border-radius: 999px; background: rgba(255, 244, 220, .05); border: 1px solid var(--hair); color: var(--ink-soft); font-size: .92rem; text-decoration: none; }
.live-chip:hover { color: var(--ink); border-color: var(--sky-line); }
.live-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }


/* ---------------------------------------------------------------- panels and cards */

.panel { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--hair);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); border-bottom: 1px solid var(--hair); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: clamp(20px, 1.8vw, 32px); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__body > :last-child { margin-bottom: 0; }
.card__title { font-size: clamp(1.3rem, 1.3vw + .2rem, 1.6rem); margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--ink-soft); margin: 0; }
.card__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--sky-wash); color: var(--sky-2); border: 1px solid var(--sky-line); }
.card__icon .icon { width: 24px; height: 24px; }
.card--flat { box-shadow: none; }
.card--link { transition: transform .2s var(--ease), border-color .2s; }
.card--link:hover { border-color: var(--sky-line); transform: translateY(-4px) rotate(-.4deg); }

/* feature row: a big screenshot beside the text */
.feature { display: grid; gap: clamp(24px, 3.4vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.45fr 1fr; }
  .feature--flip { grid-template-columns: 1fr 1.45fr; }
  .feature--flip .feature__media { order: 2; }
}
.feature__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--sky-line); box-shadow: var(--glow), var(--shadow-lg); background: var(--bg-deep); }
.feature__media img { width: 100%; height: auto; }
.feature__body h2, .feature__body h3 { margin-bottom: .4em; }
.feature__body p:not(.eyebrow) { color: var(--ink-soft); }
.checks { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: .6em; }
.checks li { position: relative; padding-left: 1.9em; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15em; height: 1.15em; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306223A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 75% no-repeat;
}
.checks strong { color: var(--ink); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.stat__num { display: block; font: 400 clamp(2rem, 2.6vw, 3rem)/1 var(--display); color: var(--sky-2); }
.stat__label { display: block; margin-top: .5em; font: 700 .78rem/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat--gold .stat__num, .stat--green .stat__num { color: var(--sky-2); }

/* callouts */
.callout { display: flex; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: var(--sky-wash); border: 1px solid var(--sky-line); color: var(--ink-soft); margin: 0 0 1.4em; }
.callout > .icon { width: 22px; height: 22px; color: var(--sky-2); margin-top: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { background: rgba(255, 200, 103, .07); border-color: rgba(255, 200, 103, .3); }
.callout--warn > .icon { color: var(--warn); }
.callout--green { background: var(--sky-wash); border-color: var(--sky-line); }
.callout--green > .icon { color: var(--sky-2); }
.callout strong { color: var(--ink); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--hair); border-radius: var(--radius); background: rgba(17, 19, 24, .6); }
.table { width: 100%; border-collapse: collapse; font: 400 .98rem/1.5 var(--body); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { font: 700 .76rem/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.table td { color: var(--ink-soft); }
.table tbody tr:hover td { background: rgba(255, 244, 220, .025); }
.num { font-variant-numeric: tabular-nums; }

/* key/value fact list (download facts, press factsheet) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.facts dt { font: 700 .78rem/1.5 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.facts dd { color: var(--ink-soft); background: rgba(17, 19, 24, .6); min-width: 0; overflow-wrap: anywhere; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 2px; }
}
.hash { display: flex; gap: 8px; align-items: flex-start; }
.hash code { font-size: .8rem; word-break: break-all; background: none; border: 0; padding: 0; color: var(--ink-soft); }

/* copy button */
.copy-btn { flex: none; display: inline-flex; align-items: center; gap: .35em; padding: .3em .6em; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); font: 700 .75rem/1 var(--label); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { color: var(--ink); border-color: var(--sky); }
.copy-btn.is-copied { color: var(--sky-2); border-color: var(--sky); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding: 20px 22px 20px 78px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); min-height: 76px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.3rem/1 var(--display); color: var(--sky-ink);
  background: var(--sky); box-shadow: 0 4px 0 var(--sky-deep);
}
.steps h3 { font-size: 1.25rem; margin: 6px 0 .3em; }
.steps p { margin: 0; color: var(--ink-soft); }
.steps p + p { margin-top: .6em; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); }
.faq details[open] { border-color: var(--sky-line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font: 400 1.15rem/1.35 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq .faq__a { padding: 0 22px 20px; color: var(--ink-soft); font: 400 1.02rem/1.65 var(--body); }
.faq .faq__a > :last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: clamp(2rem, 2.6vw, 2.8rem); margin-bottom: .6em; }

/* tabs (progressively enhanced by site.js: [data-tabs]) */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.tabs__tab { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1.1em; border-radius: 12px; border: 2px solid var(--hair); background: rgba(255, 244, 220, .04); color: var(--ink-soft); font: 400 1rem/1.1 var(--display); cursor: pointer; }
.tabs__tab:hover { color: var(--ink); border-color: rgba(255, 244, 220, .3); }
.tabs__tab[aria-selected="true"] { background: var(--sky); border-color: var(--sky); color: var(--sky-ink); }
.tabs__panel[hidden] { display: none; }

/* filter chips (updates list) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: .55em 1.05em; border-radius: 999px; border: 2px solid var(--hair); background: rgba(255, 244, 220, .04); color: var(--ink-soft); font: 400 .98rem/1 var(--display); cursor: pointer; }
.filters button:hover { color: var(--ink); border-color: rgba(255, 244, 220, .3); }
.filters button[aria-pressed="true"] { background: var(--sky); color: var(--sky-ink); border-color: var(--sky); }

/* ---------------------------------------------------------------- page hero (inner pages) */

.page-hero { position: relative; padding: clamp(64px, 7vw, 132px) 0 clamp(40px, 4vw, 72px); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(40% 70% at 85% 10%, rgba(255, 200, 103, .1), transparent 70%),
    radial-gradient(50% 90% at 10% -10%, rgba(64, 181, 227, .12), transparent 60%),
    linear-gradient(180deg, #1A2216, var(--bg));
}
.page-hero::after { /* a floodlight beam from the top right */
  content: ""; position: absolute; z-index: -1; right: 8%; top: -40px; width: clamp(240px, 26vw, 480px); height: 140%;
  background: linear-gradient(rgba(255, 236, 190, .12), rgba(255, 236, 190, 0) 80%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); transform: rotate(-14deg); transform-origin: 50% 0; pointer-events: none;
}
.page-hero__title { margin-bottom: .25em; font-size: clamp(3.2rem, 7vw, 8rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .35), 0 10px 40px rgba(0, 0, 0, .5); }
.page-hero__lead { font-size: clamp(1.1rem, 1.1vw + .45rem, 1.45rem); color: var(--ink-soft); max-width: 860px; margin: 0; }
.page-hero--media { min-height: clamp(420px, 38vw, 700px); display: flex; align-items: flex-end; }
.page-hero__bg { position: absolute; inset: 0; z-index: -3; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.page-hero--media::before { background: linear-gradient(90deg, rgba(14, 12, 10, .85), rgba(14, 12, 10, .3) 70%), linear-gradient(180deg, rgba(14, 12, 10, .2), rgba(14, 12, 10, .3) 50%, var(--bg)); }
.page-hero--media::after { display: none; }
.page-hero--media .page-hero__lead { color: #ECE6D9; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }

.hero__bg picture, .page-hero__bg picture { display: contents; }

/* ---------------------------------------------------------------- hub pages: laid out like the game's menus
   (/game/, /guide/, /classes/; js/hub.js). A grid of menu tiles, a sticky strip
   to switch, one panel at a time. Without the script every panel shows. */

.hub-menu { margin-top: clamp(26px, 3vw, 48px); }
.hub-menu ul, .hub-menu ol { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, .9vw, 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.hub-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(120px, 9vw, 170px); padding: 14px 16px; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff;
  border: 2px solid rgba(255, 244, 220, .14); background: linear-gradient(#1F2433, #11141C); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.hub-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .5s var(--ease), opacity .2s; }
.hub-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 12, 16, .94) 8%, rgba(10, 12, 16, .25) 70%); }
.hub-tile__icon { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(10, 12, 16, .7); color: var(--sky-2); border: 1px solid var(--sky-line); }
.hub-tile__icon .icon { width: 20px; height: 20px; }
.hub-tile__n { position: absolute; top: 12px; right: 14px; font: italic 400 2.2rem/1 var(--sport); color: rgba(255, 255, 255, .28); }
.hub-tile__t { font: italic 400 clamp(1.6rem, 1.7vw, 2.1rem)/.95 var(--sport); text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.hub-tile__d { margin-top: 4px; font-size: .86rem; color: #DCD6C8; line-height: 1.3; }
.hub-tile:hover { color: #fff; transform: translateY(-4px) rotate(-.6deg); border-color: rgba(255, 244, 220, .4); }
.hub-tile:hover img { transform: scale(1.06); opacity: .9; }
.hub-tile[aria-current="true"] { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky), 0 0 40px -10px var(--sky), var(--shadow); transform: translateY(-4px); }
.hub-tile[aria-current="true"] .hub-tile__icon { background: var(--sky); color: var(--sky-ink); border-color: var(--sky); }
@media (min-width: 700px) { .hub-menu--6 ul, .hub-menu--6 ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hub-menu--4 ul, .hub-menu--4 ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hub-menu--6 ul, .hub-menu--6 ol { grid-template-columns: repeat(6, minmax(0, 1fr)); } .hub-menu--4 ul, .hub-menu--4 ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .hub-menu ul, .hub-menu ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-tile { min-height: 104px; padding: 10px 12px; }
  .hub-tile__d { display: none; }
  .hub-tile__icon { width: 32px; height: 32px; }
}

/* the sticky strip under the header */
.hub-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(14, 13, 11, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--hair); }
.hub-bar ul, .hub-bar ol { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hub-bar ul::-webkit-scrollbar, .hub-bar ol::-webkit-scrollbar { display: none; }
.hub-bar li { flex: none; }
.hub-bar a { display: inline-flex; align-items: center; gap: .45em; padding: .45em .9em; border-radius: 10px; text-decoration: none; color: var(--ink-soft); white-space: nowrap;
  font: italic 400 1.2rem/1 var(--sport); text-transform: uppercase; letter-spacing: .03em; border: 1px solid transparent; transition: color .15s, background .15s, border-color .15s; }
.hub-bar a .icon { width: 1em; height: 1em; color: var(--sky-2); }
.hub-bar a:hover { color: #fff; background: rgba(255, 244, 220, .07); }
.hub-bar a[aria-current="true"] { color: var(--sky-ink); background: var(--sky); border-color: var(--sky); }
.hub-bar a[aria-current="true"] .icon { color: var(--sky-ink); }
html:has(.hub-bar) { scroll-padding-top: calc(var(--header-h) + 70px); }

/* panels: the open one slides in */
.is-hub [data-hub-panel]:not([hidden]) { animation: hub-in .4s var(--ease); }
@keyframes hub-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.is-hub [data-hub-panel] { min-height: min(60vh, 720px); }

/* the "next" row at the foot of a panel */
.hub-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: clamp(36px, 4vw, 64px); padding-top: 24px; border-top: 1px dashed rgba(255, 244, 220, .16); }
.hub-next__count { font: italic 400 1.3rem/1 var(--sport); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hub-next__count b { color: var(--sky-2); font-weight: 400; }
.hub-next__progress { flex: 1 1 200px; max-width: 360px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hub-next__progress span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--sky-deep), var(--sky)); }
.hub-next .btn { margin-left: auto; }
/* without the script every panel shows, so the "next" rows only get in the way */
html:not(:has(.is-hub)) .hub-next { display: none; }

/* ---------------------------------------------------------------- pitch band: a full-width screenshot behind a card */

.pitch-band { position: relative; isolation: isolate; overflow: hidden; }
.pitch-band__bg { position: absolute; inset: 0; z-index: -2; }
.pitch-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.pitch-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 75% at 50% 50%, rgba(10, 10, 14, .45), rgba(10, 10, 14, .9)); }
.pitch-band:not(:has(.pitch-band__bg)) { background: radial-gradient(50% 80% at 50% 0%, rgba(64, 181, 227, .14), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-deep)); }
.pitch-band .container { position: relative; }

/* CTA block (partials/cta.html): a card with a sun-ray stage on top of a celebration */
.cta-band { display: grid; place-items: center; min-height: clamp(540px, 40vw, 820px); padding-block: clamp(64px, 6vw, 110px); }
.cta { position: relative; z-index: 2; width: min(780px, 100%); text-align: center; border-radius: var(--radius-lg); border: 3px solid var(--sky);
  padding: clamp(32px, 3.4vw, 56px) clamp(22px, 3vw, 48px);
  background: repeating-conic-gradient(from 0deg at 50% 120%, rgba(127, 214, 255, .07) 0 6deg, transparent 6deg 14deg), linear-gradient(#1B2A44, #0D1422);
  box-shadow: 0 0 70px -16px var(--sky), 0 40px 60px -20px #000; }
.cta h2 { font-size: clamp(2.6rem, 4vw, 4.6rem); margin-top: .3em; }
.cta p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 1.6em; font-size: 1.15rem; }
.cta .cluster { justify-content: center; }
@media (max-width: 600px) { .cta .cluster { flex-direction: column; align-items: stretch; } }
.cta .cta__meta { margin: 20px auto 0; font-size: .92rem; color: var(--muted); }

/* ---------------------------------------------------------------- updates */

.update-list { display: grid; gap: clamp(18px, 1.6vw, 30px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.update-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; }
.update-card:hover { transform: translateY(-5px) rotate(-.5deg); border-color: var(--sky-line); }
.update-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); border-bottom: 1px solid var(--hair); }
.update-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.update-card:hover .update-card__media img { transform: scale(1.04); }
.update-card__media--plain { /* a post without a screenshot: a bit of floodlit turf with the kind's icon */
  display: grid; place-items: center; color: rgba(255, 255, 255, .9);
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(255, 246, 214, .14), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 46px, rgba(255, 255, 255, .5) 47px, rgba(255, 255, 255, .5) 49px, transparent 50px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .5) calc(50% - 1px), rgba(255, 255, 255, .5) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, var(--turf) 0 44px, var(--turf-dark) 44px 88px);
}
.update-card__media--plain .icon { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: rgba(12, 14, 18, .8); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); color: var(--sky-2); }
.update-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.update-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.update-card__title { font-size: clamp(1.3rem, 1vw + .7rem, 1.6rem); margin: 0; }
.update-card__title a { color: var(--ink); text-decoration: none; }
.update-card__title a::after { content: ""; position: absolute; inset: 0; }
.update-card__title a:hover { color: var(--sky-2); }
.update-card__summary { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.update-card[hidden] { display: none; }

/* the updates page: the newest post as a big featured card, the rest in a grid */
.news-hub { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
@media (min-width: 900px) {
  .news-hub > .update-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; border: 2px solid var(--sky); box-shadow: 0 0 60px -20px var(--sky), var(--shadow-lg); }
  .news-hub > .update-card:first-child .update-card__media { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--hair); }
  .news-hub > .update-card:first-child .update-card__body { justify-content: center; padding: clamp(28px, 3vw, 56px); gap: 14px; }
  .news-hub > .update-card:first-child .update-card__title { font: italic 400 clamp(2.6rem, 3.6vw, 4.4rem)/.95 var(--sport); text-transform: uppercase; }
  .news-hub > .update-card:first-child .update-card__summary { font-size: 1.15rem; }
  .news-hub > .update-card:first-child .update-card__body::before { content: "Latest"; align-self: flex-start; padding: .38em .9em; border-radius: 6px; background: var(--sky); color: var(--sky-ink); font: 700 .78rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-2deg); }
}
.versions-panel { padding: clamp(26px, 3vw, 52px); border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--hair); box-shadow: var(--shadow-lg); }

.version-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.version-row { position: relative; padding: 0 0 22px 26px; }
.version-row::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--sky); }
.version-row:first-child::before { background: var(--sky); box-shadow: 0 0 0 4px rgba(64, 181, 227, .22); }
.version-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.version-row__post { font-weight: 700; font-size: .88rem; }
.version-row__notes { margin: 0; padding-left: 1.1em; color: var(--ink-soft); font: 400 1rem/1.55 var(--body); }
.version-row__notes li + li { margin-top: 2px; }
.version-row:target { background: linear-gradient(90deg, var(--sky-wash), transparent); border-radius: 8px; }

/* post page */
.post__header { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 6vw, 96px) 0 32px;
  background: radial-gradient(60% 120% at 15% -20%, rgba(64, 181, 227, .14), transparent 60%), radial-gradient(40% 80% at 90% 0%, rgba(255, 200, 103, .08), transparent 70%), linear-gradient(180deg, #1A2216, var(--bg)); }
.post__back { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; margin-bottom: 18px; font-size: .95rem; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.post__title { font-size: clamp(2.8rem, 5.4vw, 5.4rem); margin-bottom: .3em; }
.post__summary { font-size: 1.22rem; color: var(--ink-soft); margin: 0; }
.post__cover { margin: 0 0 36px; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--sky-line); box-shadow: var(--glow), var(--shadow-lg); }
/* on a wide screen the pictures in a post come out past the text column */
.prose .gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1240px) {
  .post__cover { margin-inline: -180px; }
  .post .prose > figure, .post .prose > .gallery { max-width: none; margin-inline: -180px !important; }
}
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 48px 0 clamp(48px, 7vw, 80px); }
.post-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--hair); text-decoration: none; color: var(--ink); font-family: var(--display); }
.post-nav__link span { font: 700 .74rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.post-nav__link:hover { border-color: var(--sky); color: var(--sky-2); }
.post-nav__link--newer { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__link--newer { text-align: left; } }

/* ---------------------------------------------------------------- prose (markdown) */

.prose { font: 400 1.08rem/1.7 var(--body); color: var(--ink-soft); }
.prose > * { max-width: 72ch; }
.prose h2 { font-family: var(--display); font-style: normal; text-transform: none; line-height: 1.1; text-shadow: none; font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--ink); margin: 1.9em 0 .55em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 1.35rem; color: var(--ink); margin: 1.6em 0 .45em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h4 { font-family: var(--label); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-2); margin: 1.6em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--sky); }
.prose ul ul, .prose ol ul { margin: .35em 0 .2em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--sky); color: var(--ink); font-family: var(--round); font-size: 1.15rem; }
.prose img, .prose figure img { border-radius: var(--radius); border: 1px solid var(--hair); }
.prose figure { margin: 1.8em 0; max-width: none; }
.prose figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.prose .table-wrap, .prose .callout, .prose .stats { max-width: none; }
.prose a { font-weight: 600; }
.prose strong { color: var(--ink); }
.prose hr { max-width: none; }

/* ---------------------------------------------------------------- gallery + lightbox */

.gallery { display: grid; gap: clamp(10px, 1vw, 18px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--hair); background: var(--bg-deep); box-shadow: var(--shadow); }
.gallery__item a, .gallery__item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
.gallery__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery__item:hover { border-color: var(--sky-line); }
.gallery__item:hover img { transform: scale(1.04); filter: brightness(1.08); }
.gallery__item figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: .35em .8em; border-radius: 9px; font: 400 .98rem/1.25 var(--display); color: var(--ink); background: rgba(14, 16, 22, .86); border: 1px solid rgba(255, 244, 220, .15); pointer-events: none; }
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(8, 9, 8, .95); backdrop-filter: blur(6px); }
.lightbox__figure { position: relative; margin: 0; max-width: min(2200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__caption { color: var(--ink-soft); text-align: center; font-size: .98rem; max-width: 80ch; }
.lightbox__btn { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(21, 24, 29, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lightbox__btn:hover { border-color: var(--sky); color: var(--sky-2); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__btn--close { top: 14px; right: 14px; }
.lightbox__btn--prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox__btn--next { right: 14px; top: 50%; margin-top: -24px; }
@media (max-width: 700px) { .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 14px; margin: 0; } }

/* ---------------------------------------------------------------- item cards: the locker's class card (a token on a spotlit patch of turf) */

.item-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 12px 18px; border-radius: var(--radius); border: 2px solid var(--sky-line); background: linear-gradient(#1F2433, #11141C); box-shadow: var(--shadow); }
.item-card__stage { position: relative; width: 100%; aspect-ratio: 1 / .82; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 75%, rgba(200, 235, 255, .16), transparent 55%), linear-gradient(#1B2A44, #0D1422); box-shadow: inset 0 6px 14px rgba(0, 0, 0, .5); }
.item-card__stage::before { content: ""; position: absolute; left: 0; top: -20%; width: 100%; height: 130%; background: linear-gradient(rgba(255, 240, 200, .22), transparent 80%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.item-card__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 27%; background: repeating-linear-gradient(90deg, var(--turf) 0 26px, var(--turf-dark) 26px 52px); border-top: 3px solid rgba(255, 255, 255, .75); }
.item-card__stage img { position: absolute; left: 50%; bottom: 10%; translate: -50% 0; width: 62%; z-index: 1; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .6)); }
.item-card__name { margin: 12px 0 0; font: 400 clamp(1.2rem, 1.3vw, 1.7rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.item-card__name a { color: inherit; text-decoration: none; }
.item-card__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pill { display: inline-block; margin-top: 6px; padding: .2em .8em; border-radius: 999px; background: var(--sky-wash); color: var(--sky-2); font: 700 .74rem/1.3 var(--label); letter-spacing: .05em; text-transform: uppercase; }

/* ---------------------------------------------------------------- class cards (classes page) */

.class-card { --cc: var(--sky); position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--hair); background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.class-card__name { font: 400 1.7rem/1 var(--display); color: var(--ink); margin: 0; }
.class-card__role { font: 700 .78rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--sky-2); }
.class-card__ability { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--hair); }
.class-card__ability b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: var(--sky-2); }
.bars { display: grid; gap: 7px; margin: 0; }
.bar { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; font: 700 .74rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bar__track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: calc(var(--v, 3) / 5 * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--sky-2), var(--sky)); }

/* ---------------------------------------------------------------- footer */

.site-footer { position: relative; margin-top: 0; padding: 64px 0 28px; background: var(--bg-deep); border-top: 1px solid var(--hair); overflow: hidden; }
.site-footer__pitch { display: none; }
.site-footer__top { position: relative; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1fr 2fr; } }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer__tag { color: var(--muted); margin: 0; max-width: 46ch; }
.site-footer__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.site-footer__h { font: 700 .78rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; text-shadow: none; }
.site-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer__cols a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.site-footer__cols a:hover { color: var(--sky-2); }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hair); color: var(--faint); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--muted); }

/* ---------------------------------------------------------------- motion */

/* hidden only when scripting is on: without JS (or in old browsers) everything just shows */
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- utilities */

.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.only-sm { display: none; }
@media (max-width: 640px) { .only-sm { display: initial; } }
.os-note { font-size: .92rem; color: var(--muted); margin-top: 12px; }

/* ---------------------------------------------------------------- touch targets */

@media (pointer: coarse) {
  .copy-btn, .filters button, a.tag-version { min-height: 36px; padding-block: .55em; }
  .version-row__post, .site-footer__cols a, .post__back { min-height: 44px; display: inline-flex; align-items: center; }
  /* page components with small links (kept here so every page gets the same rule) */
  .faq__more a, .faq__permalink, .home-more { min-height: 44px; display: inline-flex; align-items: center; }
  .g-chal summary { min-height: 44px; }
  .cmp th a { display: inline-flex; align-items: center; min-height: 36px; }
  .site-footer__cols ul { gap: 2px; }
}
