/* self-hosted Saira (no request to Google Fonts) */
/* Saira has no Cyrillic or Greek: headings in those scripts use the game's own fallback, loaded only when such letters are on the page */
@font-face { font-family: "Saira"; font-style: italic; font-weight: 800; font-display: swap; src: url(fonts/commissioner-extrabold-italic.otf) format("opentype"); unicode-range: U+0370-03FF, U+1F00-1FFF, U+0400-052F, U+1C80-1C8F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Saira"; font-style: italic; font-weight: 800; font-display: swap; src: url(fonts/saira-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Saira"; font-style: italic; font-weight: 800; font-display: swap; src: url(fonts/saira-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/saira-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/saira-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/saira-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/saira-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Beast Bumpers Wiki. UI chrome is plain CSS in the game's palette (colours sampled from its UI sprites);
   only illustrations - portraits, icons, chests, arenas - come from the game's art. */

:root {
  --ink: #01164d;
  --ink-2: #0a2160;
  --navy: #102869;
  --navy-2: #183977;
  --navy-3: #273e7d;
  --panel-top: #3e5d97;
  --panel-bot: #234686;
  --sky-1: #2f6fb0;
  --sky-2: #1d3a78;
  --blue: #0c9df4;
  --green: #2aac07;
  --green-hi: #45d40f;
  --gold: #fec900;
  --orange: #f8a100;
  --orange-lo: #dd5a08;
  --gold-edge: #430404;
  --red: #ff4560;
  --cream: #fee390;
  --text: #fff;
  --text-2: #dbe5ff;
  --text-3: #cad7f6;
  --common: #a9bfd6;
  --rare: #2fb8ff;
  --epic: #e05ad8;
  --legendary: #ffb300;
  --discord: #5865f2;
  --discord-lo: #3b45c4;
  --discord-edge: #1e2470;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --gutter: 16px;
  --max: 1180px;
  --display: 800 italic 1em/1.05 "Saira", system-ui, sans-serif;
  color-scheme: dark;
}
/* slanted, stroked CJK reads badly: upright headings in the system's own CJK font */
:root:lang(ja), :root:lang(ko), :root:lang(zh-Hans), :root:lang(zh-Hant) {
  --display: 800 normal 1em/1.2 "Saira", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", "PingFang TC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Noto Sans CJK SC", "Microsoft YaHei", "Malgun Gothic", system-ui, sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--sky-2);
  font: 500 16px/1.55 "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
/* fixed backdrop on pseudo elements: background-attachment: fixed stutters on iOS */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background: radial-gradient(120% 60% at 50% 0%, #3b82c6 0%, transparent 70%), linear-gradient(180deg, var(--sky-1) 0%, #295fa3 35%, var(--sky-2) 100%); }
body::after { background: var(--paws) 0 0 / 320px auto repeat; opacity: .035; }
img { max-width: 100%; height: auto; display: block; }
a { color: #a8e4ff; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .tab:focus-visible, .filter:focus-visible, .btn-square:focus-visible { outline: 0; filter: drop-shadow(0 0 0 var(--gold)) drop-shadow(0 0 3px var(--gold)) drop-shadow(0 0 1px var(--gold)); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3, .display {
  font: var(--display);
  text-transform: uppercase;
  letter-spacing: .005em;
  margin: 0 0 .5em;
}
h1, h2, h3, .lead { text-wrap: balance; }
h1 { font-size: clamp(32px, 6vw, 54px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 20px; }
/* outlined title like the game's headers; stroke scales with the font */
.stroke {
  -webkit-text-stroke: .12em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--ink);
}
p { margin: 0 0 .8em; }
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.muted { color: var(--text-2); }
.panel .muted { color: var(--text-3); }
main > .wrap > p, .crumbs, .section-title a { text-shadow: 0 1px 0 var(--ink); }
main { padding: var(--s5) 0 var(--s7); flex: 1 0 auto; }
main > .wrap > p { max-width: 68ch; }
.section { margin: 0 0 var(--s6); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.section-title > a, .more {
  font: var(--display); font-size: 15px; text-transform: uppercase; color: var(--cream); text-decoration: none;
}
.section-title > a:hover { color: #fff; }
.grid { display: grid; gap: var(--s4); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* ---------- panels ---------- */
.panel {
  position: relative;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #2e54a0, #22448a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 2px 0 rgba(1, 22, 77, .5), 0 10px 24px rgba(0, 10, 42, .28);
}
.panel.light { background: linear-gradient(180deg, #4386d6, #2c63b6); }
.panel.soft { background: linear-gradient(180deg, #2a4d96, #213f83); }
.panel > :last-child { margin-bottom: 0; }
.panel h2, .panel h3, .feature h3 { text-shadow: 0 2px 0 rgba(1, 22, 77, .55); }
.panel h2.stroke { -webkit-text-stroke: .12em var(--ink); text-shadow: 0 .07em 0 var(--ink); }
.inset { background: rgba(1, 22, 77, .4); border-radius: var(--r-md); box-shadow: inset 0 2px 0 rgba(1, 22, 77, .35), 0 1px 0 rgba(255, 255, 255, .08); }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #06205f, var(--ink));
  box-shadow: 0 4px 0 #000a2a, 0 8px 18px rgba(0, 10, 42, .35);
  padding-top: env(safe-area-inset-top);
  z-index: 20;
}
:root { --header-h: 68px; }
html { scroll-padding-top: calc(var(--header-h) + 8px); }
.top .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--s2); text-decoration: none; color: #fff; flex: none; }
.brand img { height: 48px; width: auto; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.brand span { font: var(--display); font-size: 15px; text-transform: uppercase; color: var(--gold); letter-spacing: .06em; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.tabs {
  display: flex;
  gap: var(--s1);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-left: auto;
  padding: var(--s2) 2px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs.overflow { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.tabs.overflow.scrolled { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 85%, transparent); }
.tabs.overflow.scrolled.end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%); mask-image: linear-gradient(90deg, transparent, #000 8%); }
@media (max-width: 1100px) {
  .brand span { display: none; }
  .tab { padding: 0 12px 2px; font-size: 14px; }
  .tab.discord-tab { padding: 0 12px; }
  .tab.discord-tab .label { display: none; }
}
/* tabs and filters: same soft 3D as buttons, navy when idle, gold when selected */
.tab, .filter {
  --f1: #3a63c0; --f2: #2a4c9e; --f3: #213f88; --lip: #142c69; --edge: #01164d;
  border: 2px solid var(--edge);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--f1), var(--f2) 50%, var(--f3));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -4px 0 var(--lip), 0 2px 0 var(--edge);
  -webkit-text-stroke-color: var(--edge);
}
.tab[aria-current="page"], .filter[aria-pressed="true"], .filter[aria-current="page"] {
  --f1: #ffe45a; --f2: #fec400; --f3: #f8a100; --lip: #dd5a08; --edge: #6a1d02;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 var(--lip), 0 2px 0 var(--edge);
}
.tab:active, .filter:active { transform: translateY(1px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -2px 0 var(--lip), 0 1px 0 var(--edge); }
.tab {
  flex: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px 2px;
  color: #fff;
  text-decoration: none;
  font: var(--display);
  font-size: 15px;
  text-transform: uppercase;
  -webkit-text-stroke: 3px var(--edge);
  paint-order: stroke fill;
  transition: transform .12s, filter .12s;
}
.tab:hover { color: #fff; filter: brightness(1.15); }
.tab .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--ink); -webkit-text-stroke: 0; }
.tab.discord-tab { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -4px 0 var(--lip), 0 2px 0 var(--edge); }
.tab.discord-tab .si { -webkit-text-stroke: 0; filter: drop-shadow(0 2px 0 var(--discord-edge)); }

/* ---------- buttons: soft 3D in the game's button palette (face, rim, lip, edge sampled from Button_Normal_*_03) ---------- */
.btn, .vote button {
  --bh: 48px;
  --f1: #3fd0ff; --f2: #0aaef3; --f3: #0f8cf5; --lip: #0a5fb4; --edge: #042843;
  --lip-h: calc(var(--bh) * .1);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--bh);
  padding: 0 calc(var(--bh) * .5) calc(var(--lip-h) * .7);
  border: 2px solid var(--edge);
  border-radius: calc(var(--bh) * .3);
  background: linear-gradient(180deg, var(--f1) 0%, var(--f2) 48%, var(--f3) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .55),
    inset 0 calc(var(--lip-h) * -1) 0 var(--lip),
    inset 0 calc(var(--lip-h) * -1 - 2px) 0 rgba(255, 255, 255, .18),
    0 3px 0 var(--edge),
    0 7px 12px rgba(1, 16, 50, .35);
  color: #fff;
  font: var(--display);
  font-size: calc(var(--bh) * .38);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-text-stroke: calc(var(--bh) * .085) var(--edge);
  paint-order: stroke fill;
  text-shadow: 0 calc(var(--bh) * .05) 0 var(--edge);
  transition: transform .08s, filter .12s, box-shadow .08s;
}
/* gloss on the upper half */
.btn::after, .vote button::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 5px; right: 5px; top: 3px; height: 42%;
  border-radius: calc(var(--bh) * .24) calc(var(--bh) * .24) 40% 40% / calc(var(--bh) * .24) calc(var(--bh) * .24) 30% 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08));
}
.btn:hover, .vote button:hover { color: #fff; filter: brightness(1.08) saturate(1.05); }
.btn:active, .vote button:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .4),
    inset 0 calc(var(--lip-h) * -.5) 0 var(--lip),
    0 1px 0 var(--edge),
    0 3px 6px rgba(1, 16, 50, .3);
}
.btn.green, .vote .up { --f1: #6fe33c; --f2: #2fb80b; --f3: #279d06; --lip: #166002; --edge: #104304; }
.btn.gold { --f1: #ffe45a; --f2: #fec400; --f3: #f8a100; --lip: #dd5a08; --edge: #6a1d02; }
.btn.red, .vote .down { --f1: #ff8193; --f2: #ff4c66; --f3: #e8304b; --lip: #971023; --edge: #4b0c15; }
.btn.discord, .tab.discord-tab { --f1: #8c95ff; --f2: #5865f2; --f3: #4752e0; --lip: #2f37a8; --edge: #1e2470; --icon-bg: #5865f2; }
.btn.sm { --bh: 44px; }
.btn.lg { --bh: 58px; }
.btn .si { width: 1.15em; height: 1.15em; filter: drop-shadow(0 2px 0 var(--edge)); }
/* MS_BG_SimpleSquareButton for icon buttons such as - / + */
.btn-square {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border: 2px solid #042843; border-radius: 12px; background: linear-gradient(180deg, #3fd0ff, #0aaef3 48%, #0f8cf5); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -4px 0 #0a5fb4, 0 2px 0 #042843;
  color: #fff;
  font: var(--display);
  font-size: 28px;
  font-style: normal;
  cursor: pointer;
  background: none;
  -webkit-text-stroke: 4px #042843;
  paint-order: stroke fill;
  transition: transform .08s, filter .12s;
}
.btn-square:hover { filter: brightness(1.25); }
.btn-square:active { transform: translateY(2px); }

.btn.discord .si { filter: drop-shadow(0 2px 0 #1e2470); }

/* ---------- chips: small soft-3D badges, same language as buttons ---------- */
.chip {
  --f1: #4a72cf; --f2: #2c509f; --lip: #1b3677; --edge: #01164d;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px 3px;
  border: 2px solid var(--edge);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--f1), var(--f2));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 var(--lip), 0 2px 0 var(--edge);
  font: var(--display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  white-space: nowrap;
  -webkit-text-stroke: 3px var(--edge);
  paint-order: stroke fill;
  vertical-align: middle;
}
.chip.common { --f1: #a3b6cc; --f2: #6c809a; --lip: #4c5d73; --edge: #24303f; }
.chip.rare, .chip.update { --f1: #4fd0ff; --f2: #0e8fe0; --lip: #0a5fb4; --edge: #042843; }
.chip.epic { --f1: #e77de0; --f2: #a837a2; --lip: #73206f; --edge: #3c0a3a; }
.chip.legendary, .chip.balance { --f1: #ffe45a; --f2: #f8a100; --lip: #dd5a08; --edge: #6a1d02; }
.chip.event { --f1: #6fe33c; --f2: #2fa80b; --lip: #166002; --edge: #104304; }
.chip.fix, .chip.new { --f1: #ff8193; --f2: #e8304b; --lip: #971023; --edge: #4b0c15; }
.chip.new { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.25); } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); }
/* beast page tags use the game's skewed Tag_BG as a mask, tinted per rarity */
.chips .chip { height: 32px; padding: 0 14px 4px; font-size: 14px; border-radius: 10px; }

/* ---------- filters + search ---------- */
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px var(--s3); margin-bottom: var(--s1); }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px 2px;
  color: #fff;
  font: var(--display);
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  -webkit-text-stroke: 3px var(--edge);
  paint-order: stroke fill;
  cursor: pointer;
  transition: transform .08s;
}
.filter:hover { color: #fff; filter: brightness(1.15); }
.filter:active { transform: translateY(1px); }
.search-wrap { position: relative; margin-bottom: var(--s3); }
.search {
  width: 100%;
  min-height: 50px;
  padding: 0 16px 0 46px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 600 17px/1 "Saira", sans-serif;
  box-shadow: inset 0 3px 0 rgba(1, 22, 77, .12), 0 4px 0 rgba(1, 22, 77, .35);
}
.search::placeholder { color: #6c7aa3; }
.search:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 3px 0 rgba(1, 22, 77, .12), 0 0 0 3px var(--ink); }
.search-wrap svg { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink); pointer-events: none; }

/* ---------- in-game text sprites ---------- */
.ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; background-image: var(--sprites); background-repeat: no-repeat; }
.st { font-weight: 700; white-space: nowrap; }
.st.damage { color: #ff9a8c; }
.st.speed { color: #8aeeff; }
.st.turns { color: var(--cream); }
.st.defence { color: #c3d3ff; }
.st.healing, .st.lifesteal { color: #9cff83; }
.v { font-variant-numeric: tabular-nums; }

/* ---------- landing ---------- */
.landing-hero { position: relative; margin: calc(-1 * var(--s5)) 0 var(--s6); min-height: min(78vh, 660px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.landing-hero picture, .landing-hero .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.landing-hero .hero-art { object-fit: cover; object-position: 50% 40%; }
.landing-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 22, 77, 0) 32%, rgba(1, 22, 77, .5) 60%, rgba(1, 22, 77, .95) 100%); }
.landing-hero + .wrap { position: relative; }
.hero-copy { position: relative; z-index: 1; padding-top: 40px; padding-bottom: var(--s6); text-align: center; }
.hero-copy .logo { width: min(340px, 70vw); margin: 0 auto var(--s2); filter: drop-shadow(0 6px 0 rgba(1, 22, 77, .6)); }
.hero-copy h1 { margin-bottom: .3em; }
.lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 36em; margin: 0 auto var(--s4); text-shadow: 0 2px 0 var(--ink); color: #f2f6ff; }
.stores { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.btn.store { --bh: 58px; padding-bottom: 4px; }
.btn.store span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1; font-size: 22px; }
.btn.store small { font: 700 11px/1 "Saira", sans-serif; text-transform: none; letter-spacing: .02em; -webkit-text-stroke: 0; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.features { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: grid; grid-template-columns: 52px 1fr; column-gap: var(--s4); align-items: start; }
.feature .ico { width: 64px; height: 64px; grid-row: span 2; align-self: start; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(1, 22, 77, .45)); }
.feature h3 { margin: 2px 0 .35em; font-size: 19px; }
.feature p { color: var(--text-3); margin: 0; font-size: 15px; }
.beast-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px var(--s3); scrollbar-width: thin; scrollbar-color: var(--gold) rgba(1, 22, 77, .4); }
.beast-strip .card { scroll-snap-align: start; }
.gallery { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery figure { margin: 0; }
.gallery img, .shot-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); box-shadow: 0 0 0 3px var(--ink), 0 6px 0 rgba(1, 22, 77, .35); }
.tiles { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(6, 1fr); } .tiles.sys { grid-template-columns: repeat(5, 1fr); } }
.subnav { margin-bottom: var(--s4); }
.filter { text-decoration: none; }
.tile { display: flex; flex-direction: column; gap: 4px; min-height: 104px; color: #fff; text-decoration: none; transition: transform .12s; }
.tile .display { font-size: 20px; margin: 0; }
@media (min-width: 1000px) { .tile .display { font-size: 17px; } }
.tile small { color: var(--text-3); font-size: 14px; line-height: 1.35; }
.tile:hover { color: #fff; transform: translateY(-3px); }
.faqs { display: grid; gap: var(--s3); }
.faq { padding: 14px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding-bottom: 3px;
  border: 2px solid #042843; border-radius: 12px; background: linear-gradient(180deg, #3fd0ff, #0aaef3 48%, #0f8cf5); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -4px 0 #0a5fb4, 0 2px 0 #042843;
  font: 800 26px/1 "Saira", sans-serif; color: #fff; -webkit-text-stroke: 4px #042843; paint-order: stroke fill;
}
.faq[open] summary::after { content: "−"; }
.faq summary h3 { margin: 0; font-size: 18px; }
.faq p { margin: var(--s2) 0 var(--s1); color: var(--text-2); }
.cta { text-align: center; padding: 34px 24px; }
.cta h2 { margin-bottom: .25em; }
.cta p { font-size: 18px; color: #f2f6ff; text-shadow: 0 1px 0 rgba(1, 22, 77, .6); }
@media (min-width: 760px) {
  .hero-copy { text-align: left; }
  .hero-copy .logo, .lead { margin-left: 0; }
  .stores { justify-content: flex-start; }
  .cta .stores { justify-content: center; }
  .landing-hero::after { background: linear-gradient(90deg, rgba(1, 22, 77, .72), rgba(1, 22, 77, 0) 60%), linear-gradient(180deg, rgba(1, 22, 77, 0) 32%, rgba(1, 22, 77, .5) 60%, rgba(1, 22, 77, .95) 100%); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .landing-hero { min-height: calc(100svh - 56px); }
  .hero-copy { padding-top: var(--s4); padding-bottom: var(--s4); }
  .hero-copy .logo { width: 150px; }
  .hero-copy h1 { font-size: 26px; }
  .lead { font-size: 15px; margin-bottom: 10px; max-width: 46em; }
  .btn.store { --bh: 50px; }
}
.os-ios .store[data-os="android"], .os-android .store[data-os="ios"] { display: none; }

/* ---------- discord, socials, share ---------- */
.si { width: 18px; height: 18px; flex: none; }
/* Popup_BG_UXAsset_02 panel shifted to Discord blurple on its own layer */
.discord-cta {
  --icon-bg: var(--discord);
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); align-items: center;
  margin: 0 0 var(--s6); padding: 18px 24px; color: #fff;
  filter: drop-shadow(0 6px 0 rgba(1, 22, 77, .35));
}
.discord-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, #4d9cf0 0%, transparent 55%), linear-gradient(135deg, #3478dc, #2149a8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 26px rgba(0, 10, 42, .35); }
.discord-cta p { text-wrap: pretty; }
.discord-cta .dc-logo { width: 60px; height: 60px; color: #fff; filter: drop-shadow(0 3px 0 var(--discord-edge)); }
.discord-cta h2, .discord-cta h3 { margin: 0 0 4px; font-size: clamp(19px, 2.6vw, 26px); -webkit-text-stroke: .14em var(--discord-edge); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--discord-edge); }
.discord-cta p { margin: 0; color: #eef0ff; text-shadow: 0 1px 0 rgba(30, 36, 112, .6); }
.discord-cta .btn.discord { z-index: 1; }
.discord-cta.compact { padding: 12px 18px; margin-bottom: var(--s6); }
.discord-cta.compact .dc-logo { width: 42px; height: 42px; }
.discord-cta.compact h2 { font-size: 19px; }
.discord-cta.compact .btn.discord { --bh: 44px; }
@media (max-width: 640px) {
  .discord-cta { grid-template-columns: auto 1fr; }
  .discord-cta .btn.discord { grid-column: 1 / -1; width: 100%; }
  .discord-cta .dc-logo { width: 46px; height: 46px; }
}
.foot .wrap.socials { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-bottom: var(--s4); }
.social {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  border: 2px solid var(--ink); background: linear-gradient(180deg, #3a63c0, #2a4c9e 50%, #213f88); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 #142c69, 0 2px 0 var(--ink);
  transition: filter .15s, transform .08s;
}
.social:hover { color: #fff; filter: brightness(1.12); }
.social:active { transform: translateY(1px); }
.social.discord { --icon-bg: var(--discord); border-color: #1e2470; background: linear-gradient(180deg, #8c95ff, #5865f2 50%, #4752e0); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 #2f37a8, 0 2px 0 #1e2470; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s4); padding-top: var(--s3); border-top: 2px solid rgba(255, 255, 255, .1); }
.share-label { font: var(--display); font-size: 13px; text-transform: uppercase; color: var(--text-3); margin-right: var(--s1); }
.share-btn {
  --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 42px; height: 42px; border-radius: 50%;
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 700;
  border: 2px solid var(--ink); background: linear-gradient(180deg, #3a63c0, #2a4c9e 50%, #213f88); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 #142c69, 0 2px 0 var(--ink);
  transition: background .15s, transform .08s;
}
.share-btn:hover { color: #fff; background: var(--c); }
.share-btn:active { transform: translateY(1px); }
.share-btn span { display: none; }
.share-btn.native, .share-btn.copy { width: auto; padding: 0 16px; border-radius: 21px; }
.share-btn.native span, .share-btn.copy span { display: inline; }
.share-btn.native { color: var(--gold-edge); background: linear-gradient(180deg, #ffe24a, var(--gold) 50%, var(--orange)); box-shadow: inset 0 0 0 2px var(--gold-edge), inset 0 -3px 0 2px rgba(67, 4, 4, .25); }
.share-btn.copy:hover { background: var(--navy-3); }
.share-btn.copied { background: var(--green); box-shadow: none; }
.share-btn .si { width: 18px; height: 18px; }

/* ---------- teasers ---------- */
.teasers { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.teaser { display: grid; grid-template-columns: 156px 1fr; gap: var(--s4); align-items: center; }
.tz-art { position: relative; aspect-ratio: 740 / 592; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(circle at 50% 62%, #fff1a8 0, #ffd23a 30%, var(--orange) 60%, var(--orange-lo) 100%); box-shadow: inset 0 0 0 3px var(--ink), 0 5px 0 rgba(1, 22, 77, .4); }
.tz-art::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 62%, rgba(255, 255, 255, .16) 0 8deg, transparent 8deg 22deg); }
.tz-art img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.tz-art b { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 10%; font: var(--display); font-size: 68px; color: var(--gold); -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-4deg); } }
.teaser h3 { margin: var(--s2) 0 var(--s1); font-size: 22px; }
.teaser p { color: var(--text-3); margin-bottom: var(--s3); }
.teaser .btn { --bh: 44px; padding-inline: 18px; font-size: 15px; }
.teaser > div { min-width: 0; }
.news-head ~ .section { margin-bottom: var(--s5); }
@media (max-width: 480px) {
  .teaser { grid-template-columns: 104px minmax(0, 1fr); gap: var(--s3); }
  .tz-art b { font-size: 46px; -webkit-text-stroke-width: 7px; }
  .teaser .btn { width: 100%; min-width: 0; }
}

/* ---------- news ---------- */
.news-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s4); }
.news-head h1 { margin-bottom: .3em; }
.news-head .filters { padding-bottom: 6px; }
.news-list { display: grid; gap: var(--s4); }
.post { --accent: var(--blue); padding-left: 30px; }
.post::before {
  content: ""; position: absolute; left: 11px; top: 18px; bottom: 18px; width: 7px; border-radius: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  box-shadow: 0 0 0 2px rgba(1, 22, 77, .6);
}
.news-list > .post:first-child { --accent: var(--gold); }
.post.balance { --accent: var(--orange); }
.post.event { --accent: var(--green-hi); }
.post.fix { --accent: var(--red); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s2); font-size: 14px; color: var(--text-3); }
.post-meta time { font-weight: 700; }
.post h2, .post h3 { margin-bottom: .45em; }
.post h2 a, .post h3 a { color: #fff; text-decoration: none; }
.post h2 a:hover, .post h3 a:hover { color: var(--cream); }
.post ul { margin: 0 0 .6em; padding-left: 0; list-style: none; }
.post li { position: relative; padding-left: 24px; margin: 0 0 7px; color: #eef3ff; }
.post li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 0 2px rgba(1, 22, 77, .7); }
.post li.buff::before, .post li.nerf::before { display: none; }
.delta { position: absolute; left: 0; top: 0; font-weight: 800; }
.buff .delta { color: var(--green-hi); }
.nerf .delta { color: var(--red); }
.post strong { color: var(--cream); }
.post-body { min-width: 0; }
.post-visual { margin: 0 0 var(--s3); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 3px var(--ink); background: var(--ink); }
.post-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-visual.scene { aspect-ratio: 16 / 9; }
.post-visual.pics { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; aspect-ratio: 16 / 9; }
.pv { position: relative; background: var(--tile-bg, radial-gradient(circle, var(--navy-3), var(--ink))) center / cover; }
.pv img { object-position: 50% 28%; }
.pv.mode { background: radial-gradient(circle at 50% 60%, #3f63a8, var(--ink)); }
.pv.mode img { object-fit: contain; padding: 10%; }
/* "visual: big" posts show the whole 5:4 art (no 16:9 crop) in a wider column */
.post.big-visual .post-visual.scene { aspect-ratio: 5 / 4; }
@media (min-width: 760px) {
  .post.has-visual { display: grid; grid-template-columns: minmax(220px, 38%) 1fr; gap: 20px; align-items: start; }
  .post.has-visual.big-visual { grid-template-columns: minmax(260px, 48%) 1fr; }
  .post.has-visual .post-visual { margin: 0; position: sticky; top: calc(var(--header-h) + 14px); }
  .embed .post.has-visual .post-visual { top: 14px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .post.has-visual { display: grid; grid-template-columns: 36% 1fr; gap: 14px; align-items: start; }
  .news-list > .post:first-child.big-visual { grid-template-columns: 44% 1fr; }
  .post.has-visual .post-visual { margin: 0; }
  .news-list > .post:not(:first-child).has-visual { grid-template-columns: 1fr; }
  .news-list > .post:not(:first-child) .post-visual { max-height: 120px; aspect-ratio: auto; }
}

/* ---------- beast tiles: the game's square portrait (Reward_BG_Big_<rarity> + Reward_BG_Big_Frame, LobbyBeastView) ---------- */
.beast-grid { display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.card { position: relative; display: block; margin: 0; color: #fff; text-decoration: none; text-align: center; transition: transform .14s cubic-bezier(.2, .8, .2, 1); }
a.card:hover { transform: translateY(-4px); color: #fff; }
a.card:active { transform: translateY(-1px) scale(.97); }
.card-art {
  position: relative; display: block; aspect-ratio: 1; isolation: isolate;
  background: var(--tile-bg) center / 100% 100% no-repeat;
  filter: drop-shadow(0 5px 0 rgba(1, 22, 77, .45));
}
.card-art::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--spr-tile-frame) center / 100% 100% no-repeat; pointer-events: none; }
/* the avatar sits inside a ring of the rarity gradient so the rarity still reads at a glance */
.card-art img { position: absolute; z-index: 1; left: 9%; top: 7.7%; width: 82%; height: 82%; object-fit: cover; object-position: 50% 18%; border-radius: 9%; box-shadow: 0 0 0 3px rgba(1, 22, 77, .55); }
.card-name { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; }
.card-name b { font: var(--display); font-size: 17px; text-transform: uppercase; color: #fff; -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-name small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); text-shadow: 0 1px 0 var(--ink); }
.card .hex { position: absolute; z-index: 3; right: -6%; top: -6%; width: 26%; aspect-ratio: 149 / 169; display: grid; place-items: center; padding-bottom: 6%; background: var(--spr-level-hex) center / contain no-repeat; font: var(--display); font-style: normal; font-size: clamp(14px, 2.2vw, 22px); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; filter: drop-shadow(0 3px 0 rgba(1, 22, 77, .5)); }
.card .hex small { display: block; font-size: .5em; line-height: 1; -webkit-text-stroke-width: 2.5px; color: var(--cream); }
.beast-strip { padding-bottom: 10px; }

/* ---------- beast page ---------- */
.crumbs { font-size: 15px; margin-bottom: var(--s2); color: var(--text-2); }
.crumbs a { color: #fff; display: inline-block; padding: 10px 0; font-weight: 700; }
.beast-hero { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); }
.beast-hero .card.big { width: min(320px, 100%); margin: 0 auto; }
.beast-hero .card.big .card-name b { font-size: 26px; }
.beast-hero .card.big .card-name small { font-size: 13px; }
.beast-hero .portrait {
  position: relative; max-width: 440px; aspect-ratio: 740 / 592; border-radius: 18px; overflow: hidden;
  background: var(--card-bg) center / cover;
  box-shadow: 0 0 0 4px var(--ink), 0 8px 0 rgba(1, 22, 77, .45);
}
.beast-hero .portrait img { width: 100%; height: 100%; object-fit: cover; }
.beast-hero .portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35); pointer-events: none; }
.beast-hero h1 { margin-bottom: .25em; }
.statline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 var(--s4); }
@media (max-width: 520px) { .statline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 8px;
  min-height: 64px; padding: 8px 12px 10px 10px;
  border-radius: 14px; background: rgba(1, 22, 77, .38); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.stat::before { content: ""; grid-row: span 2; width: 40px; height: 52px; background: var(--stat-icon, none) center / contain no-repeat; filter: drop-shadow(0 2px 0 rgba(1, 22, 77, .6)); }
.stat.hp { --stat-icon: var(--spr-icon-health); --c: #ff8fc3; }
.stat.atk { --stat-icon: var(--spr-icon-attack); --c: #ff8a7a; }
.stat.crit { --stat-icon: var(--spr-icon-crit); --c: #ffc56b; }
.stat.speed { --stat-icon: var(--spr-icon-speed); --c: #7fd8ff; }
.stat.rage { --c: #ffb35c; }
.stat.rage::before { background: var(--sprites) 69.91% 7.18% / 640.00% 640.00% no-repeat; width: 34px; height: 34px; justify-self: center; }
.stat.aim { --c: #b8f07a; --stat-icon: var(--spr-icon-aim); }
.stat.aim::before { width: 30px; height: 30px; justify-self: center; transform: rotate(-30deg); }
.stat span { align-self: end; font: var(--display); font-size: 13px; text-transform: uppercase; color: var(--c, var(--text-3)); letter-spacing: .02em; }
.stat b { align-self: start; display: block; font: var(--display); font-size: 24px; text-shadow: 0 2px 0 var(--ink); }
.stat .ico { display: none; }
.level { display: flex; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); padding: 8px 10px; background: rgba(1, 22, 77, .5); border-radius: var(--r-lg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); }
.level output { min-width: 2.6em; text-align: center; font: var(--display); font-size: 26px; color: var(--gold); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.level output small { display: block; font-size: 11px; color: #fff; -webkit-text-stroke: 0; letter-spacing: .08em; margin-bottom: 2px; }
/* range styled as the game's progress bar with a gold gem thumb */
.level input[type="range"] { flex: 1; min-width: 0; height: 44px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 0%; }
.level input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--gold), var(--orange)) 0 0 / var(--p) 100% no-repeat, #0b1d55; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .35), 0 0 0 2px var(--ink); }
.level input[type="range"]::-moz-range-track { height: 14px; border-radius: 7px; background: #0b1d55; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .35), 0 0 0 2px var(--ink); }
.level input[type="range"]::-moz-range-progress { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--gold), var(--orange)); }
.level input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -8px; border-radius: 9px; transform: rotate(45deg); background: linear-gradient(135deg, #fff6b0, var(--gold) 45%, var(--orange-lo)); box-shadow: 0 0 0 3px var(--ink), 0 3px 0 3px rgba(1, 22, 77, .5); }
.level input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 8px; transform: rotate(45deg); background: linear-gradient(135deg, #fff6b0, var(--gold) 45%, var(--orange-lo)); box-shadow: 0 0 0 3px var(--ink); }
.bars { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: var(--s3); background: rgba(1, 22, 77, .4); border-radius: var(--r-md); box-shadow: inset 0 2px 0 rgba(1, 22, 77, .35); }
.unlock { margin: 0; padding: 10px 14px; background: linear-gradient(180deg, #4a3510, #33240a); border-radius: var(--r-md); box-shadow: inset 0 0 0 2px var(--orange), inset 0 2px 0 3px rgba(255, 220, 120, .15), 0 3px 0 rgba(1, 22, 77, .45); color: #f3e2bd; font-size: 15px; }
.unlock b { color: var(--cream); }
.bars-title { font: var(--display); font-size: 13px; text-transform: uppercase; color: var(--cream); margin-bottom: 2px; }
.bars div { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: var(--s3); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.bars i { display: block; height: 12px; border-radius: 6px; background: #0b1d55; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .35), 0 0 0 2px rgba(1, 22, 77, .8); overflow: hidden; }
.bars i::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(180deg, #ffe46b, var(--orange)); box-shadow: inset 0 -2px 0 rgba(150, 50, 0, .35); }
.skill { display: grid; grid-template-columns: 76px 1fr; gap: var(--s4); align-items: start; }
.skill img { width: 76px; height: 76px; border-radius: 16px; box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px rgba(1, 22, 77, .35); background: var(--ink); }
.skill .kind { display: inline-block; font: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px 6px; border: 2px solid #6a1d02; border-radius: 8px; color: #fff; -webkit-text-stroke: 3px #6a1d02; paint-order: stroke fill; background: linear-gradient(180deg, #ffe45a, #f8a100); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 #dd5a08, 0 2px 0 #6a1d02; }
.skill.active .kind { color: #fff; background: linear-gradient(180deg, #ff6ad8, #b01f8f); }
.skill h3 { margin: 8px 0 6px; font-size: 22px; }
.skill p { color: #eef3ff; }
.skill details { margin-top: var(--s2); font-size: 14px; color: var(--text-3); }
.skill summary { cursor: pointer; font-weight: 700; padding: 10px 0; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.skill summary::-webkit-details-marker { display: none; }
.skill summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(1, 22, 77, .6); color: var(--cream); font: 800 16px/1 "Saira", sans-serif; }
.skill details[open] summary::before { content: "−"; }
.embed .skill details { display: none; }
.skill dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); margin: 6px 0 0; }
.skill dt { color: var(--text-3); }
.skill dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
.skill .clip { grid-column: 1 / -1; display: block; }
.skill .clip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--ink); box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px rgba(1, 22, 77, .35); }

/* tables scroll inside themselves so the page never scrolls sideways */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); background: rgba(1, 22, 77, .35); box-shadow: inset 0 0 0 2px rgba(1, 22, 77, .5); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
th, td { padding: 9px 12px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font: var(--display); font-size: 13px; text-transform: uppercase; color: var(--cream); background: #0f2763; }
tbody tr + tr td { border-top: 1px solid rgba(255, 255, 255, .06); }
tbody tr { background: #1b376f; }
tbody tr:nth-child(even) { background: #213c74; }
.table-wrap { scrollbar-color: var(--gold) rgba(1, 22, 77, .5); scrollbar-width: thin; }
tbody tr.on { background: #2d5ab0; color: #fff; font-weight: 700; }
tbody tr.on td { color: var(--cream); }
tbody tr.on td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
/* sticky first column needs opaque colours that match the row it sits in */
tr.total td { border-top: 2px solid var(--gold); color: var(--cream); background: #0f2763; }
.mode-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s2) 0 0; }
@media (min-width: 1000px) { .filters { flex-wrap: wrap; overflow: visible; } }
.filters + .filters { margin-top: -6px; }
.filter .gem { width: 12px; height: 12px; margin-right: 7px; transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 0 2px var(--edge), inset 0 2px 0 rgba(255, 255, 255, .5); -webkit-text-stroke: 0; }
.gem.g-common { background: #a3b6cc; } .gem.g-rare { background: #29a8f0; } .gem.g-epic { background: #d25ccb; } .gem.g-legendary { background: #fec400; }
.search-row { display: flex; gap: var(--s2); align-items: stretch; margin-bottom: var(--s3); }
.search-row .search-wrap { flex: 1; min-width: 0; margin: 0; }
.sort { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 34px 3px 14px; border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(180deg, #3a63c0, #2a4c9e 50%, #213f88); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -4px 0 #142c69, 0 2px 0 var(--ink); font: var(--display); font-size: 13px; text-transform: uppercase; color: var(--cream); }
.sort::after { content: ""; position: absolute; right: 13px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); pointer-events: none; }
.sort select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: #fff; font: var(--display); font-size: 15px; text-transform: uppercase; cursor: pointer; padding: 10px 0; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.sort select option { color: #000; -webkit-text-stroke: 0; text-transform: none; font: 600 15px "Saira", sans-serif; }
.empty { text-align: center; color: var(--text-2); padding: var(--s5) 0; }
@media (max-width: 520px) { .sort span { display: none; } .sort { padding-left: 12px; } }
.sticky-first th:first-child, .sticky-first td:first-child { position: sticky; left: 0; z-index: 1; background: #1b376f; }
.sticky-first tbody tr:nth-child(even) td:first-child { background: #213c74; }
.sticky-first tbody tr.on td:first-child { background: #2d5ab0; }
.sticky-first thead th:first-child { z-index: 2; background: #10275f; }
.skins { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pager { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }

/* ---------- arenas / modes / ranks / specials ---------- */
.loc-head { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.loc-head img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(1, 22, 77, .5)); }
.loc-head h2 { margin: 0 0 2px; }
.arena-grid { display: grid; gap: 22px var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); }
.arena { margin: 0; }
.arena .shot > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); box-shadow: 0 0 0 3px var(--ink), 0 5px 0 rgba(1, 22, 77, .35); background: var(--ink); }
.arena.has-shot .shot > img { aspect-ratio: 16 / 9; }
.arena figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; display: flex; gap: 6px; justify-content: space-between; align-items: center; }
.arena figcaption b { flex: none; color: #fff; font: var(--display); font-size: 15px; text-transform: uppercase; white-space: nowrap; }
.arena .specials { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 2px; min-width: 0; }
.arena figcaption img { flex: 0 1 22px; min-width: 14px; width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(1, 22, 77, .8)); }
.vote { display: flex; align-items: center; gap: 6px; margin-top: var(--s2); flex-wrap: wrap; }
.vote button {
  --bh: 38px;
  flex: 1;
  gap: 5px;
  min-width: 0;
  padding: 0 6px calc(var(--lip-h) * .7);
  font-size: 13px;
  -webkit-text-stroke-width: 3.5px;
  transition: opacity .15s, transform .08s, filter .15s, box-shadow .08s;
}
.vote svg { width: 17px; height: 17px; fill: #fff; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)); }
.vote .down svg { transform: scaleY(-1); }
.vote button[aria-pressed="true"] { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px rgba(254, 201, 0, .9)); }
.voted-me .vote button[aria-pressed="false"] { opacity: .4; filter: saturate(.4); }
.score-thumb { width: 14px; height: 14px; fill: var(--green-hi); vertical-align: -2px; }
.vote .score { flex-basis: 100%; min-height: 1.3em; text-align: right; font-size: 13px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.arena .meter { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: linear-gradient(180deg, #ff6a7f, #c8183a); box-shadow: 0 0 0 2px rgba(1, 22, 77, .7); overflow: hidden; }
.arena:not(.voted-me) .meter, .arena:not(.voted-me) .score { display: none; }
.arena:not(.has-shot) .shot > img { object-fit: contain; padding: 6px; background: radial-gradient(circle, #3f63a8, var(--ink)); }
.arena .meter i { display: block; height: 100%; width: 0; background: linear-gradient(180deg, #7dff4d, var(--green)); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.top-list { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: top; }
.top-list li { position: relative; counter-increment: top; }
.top-list button { all: unset; display: block; width: 100%; cursor: pointer; }
.top-list button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.top-list li::before {
  content: counter(top); position: absolute; left: -6px; top: -8px; z-index: 1;
  width: 32px; height: 32px; display: grid; place-items: center;
  font: var(--display); font-size: 17px; color: var(--gold-edge);
  background: linear-gradient(180deg, #fff2a0, var(--gold) 45%, var(--orange)); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ink), 0 3px 0 3px rgba(1, 22, 77, .45);
}
.top-list li:nth-child(2)::before { color: #3a4a66; background: linear-gradient(180deg, #fff, #c9d4e6 45%, #8a9bb8); }
.top-list li:nth-child(3)::before { color: #4a2306; background: linear-gradient(180deg, #ffd2a0, #e08a3c 45%, #9a4f12); }
.top-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); box-shadow: 0 0 0 3px var(--ink); }
.top-list b { display: block; margin-top: 6px; font: var(--display); font-size: 15px; text-transform: uppercase; }
.top-list span { font-size: 13px; color: var(--green-hi); font-weight: 700; }
.jump { position: sticky; top: var(--header-h); z-index: 5; padding: var(--s2) 2px; margin-bottom: var(--s3); background: #1d3a78; box-shadow: 0 0 0 100vmax #1d3a78, 0 10px 12px -6px rgba(1, 16, 50, .55); clip-path: inset(0 -100vmax -24px); }
.loc-anchor { scroll-margin-top: calc(var(--header-h) + 64px); }
.mode { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.mode img { width: 112px; filter: drop-shadow(0 4px 0 rgba(1, 22, 77, .45)); }
.mode h3 { margin-bottom: .3em; }
.special { display: grid; grid-template-columns: 80px 1fr; gap: var(--s4); align-items: start; align-self: start; }
.special img { width: 80px; height: 80px; padding: 8px; object-fit: contain; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #4a72c0, var(--ink)); box-shadow: 0 0 0 3px var(--ink), inset 0 2px 0 rgba(255, 255, 255, .2), 0 4px 0 rgba(1, 22, 77, .45); }
.ranks { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.rank { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.rank img { width: 84px; filter: drop-shadow(0 4px 0 rgba(1, 22, 77, .45)); }
.rank table { font-size: 14px; }
.rank th, .rank td { padding: 6px 9px; }

/* ---------- footer ---------- */
.foot { padding: var(--s5) 0 calc(var(--s6) + env(safe-area-inset-bottom)); color: var(--text-3); font-size: 13.5px; background: linear-gradient(180deg, rgba(1, 22, 77, .55), rgba(1, 22, 77, .9)); box-shadow: 0 -3px 0 rgba(0, 10, 42, .5); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: center; text-align: center; }

/* ---------- embed (in-game webview) ---------- */
.embed .top, .embed .foot, .embed .no-embed { display: none !important; }
.embed main { padding-top: calc(var(--s3) + env(safe-area-inset-top)); padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom)); }
.embed-back { display: none; }
.embed .news-top-extra { display: none; }
.news-bottom-teaser { display: none; }
.embed .news-bottom-teaser { display: block; }
.embed .embed-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: var(--s2);
  color: #fff; text-decoration: none; font: var(--display); font-size: 18px; text-transform: uppercase;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
}
.embed .embed-back i { width: 48px; height: 38px; background: var(--spr-back) center / contain no-repeat; filter: drop-shadow(0 3px 0 rgba(1, 22, 77, .5)); transition: transform .1s; }
.embed .embed-back:active i { transform: translateX(-3px); }

/* ---------- breakpoints ---------- */
@media (min-width: 760px) {
  .beast-hero { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; }
  .beast-hero > :first-child { position: sticky; top: calc(var(--header-h) + 16px); }
  .beast-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s4); }
}
@media (max-width: 640px) {
  .beast-hero .card.big { width: min(320px, 100%); margin: 0 auto; }
.beast-hero .card.big .card-name b { font-size: 26px; }
.beast-hero .card.big .card-name small { font-size: 13px; }
.beast-hero .portrait { max-width: 260px; margin: 0 auto; }
  .rank { grid-template-columns: 52px minmax(0, 1fr); }
  .rank img { width: 52px; }
  .rank table { font-size: 13px; }
  .rank th, .rank td { padding: 6px 6px; }
  :root { --header-h: 58px; }
  .top .wrap { flex-wrap: nowrap; gap: var(--s2); min-height: 58px; padding-right: 0; }
  .brand img { height: 34px; }
  .tabs { margin-left: 0; padding: 7px var(--gutter) 7px 2px; flex: 1; min-width: 0; }
  .tab { min-height: 40px; padding: 0 12px 2px; font-size: 14px; }
  main .filters { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .panel { padding: 16px 18px; }
  .post { padding-left: 26px; }
  .post::before { left: 9px; }
  .beast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; row-gap: 16px; }
  .card-name b { font-size: 13px; -webkit-text-stroke-width: 3.5px; }
  .beast-grid .card-name b { font-size: 15px; }
  .beast-grid .card-name small { font-size: 11px; }
  .beast-hero .card.big { width: min(240px, 66vw); }
  .mode { grid-template-columns: 80px 1fr; }
  .mode img { width: 80px; }
  .statline .stat { padding: 8px 10px; }
  .stat b { font-size: 21px; }
}
/* phones held sideways: short viewport, wide screen, notch on one side */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --header-h: 52px; }
  .top .wrap { min-height: 52px; flex-wrap: nowrap; padding-top: 0; }
  .brand img { height: 34px; }
  .tabs { margin: 0 0 0 auto; width: auto; padding: 5px 2px; }
  .tab { min-height: 40px; padding: 0 12px 2px; font-size: 14px; }
  main { padding-top: var(--s3); }
  h1 { font-size: 30px; }
  .news-list { gap: var(--s3); }
  .news-head { flex-wrap: nowrap; }
  .news-head h1 { margin: 0; }
  .news-head .filters { padding: 0; margin: 0; }
  .news-intro { display: none; }
  .post h2, .post h3 { font-size: 21px; }
  .post { padding: 14px 16px 14px 26px; font-size: 15px; }
  .beast-hero { grid-template-columns: 240px minmax(0, 1fr); }
  .beast-hero .card.big { width: 210px; }
  .beast-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .discord-cta.compact { margin-bottom: var(--s3); }
}
/* two news columns only when each card still gets a readable width */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 760px) {
  .news-list { grid-template-columns: 1fr 1fr; }
  .news-list > .post:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- navigation: icon tabs on desktop, game-style bottom dock on phones ---------- */
.tab img { width: 30px; height: 30px; margin: -6px 0 -6px -6px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(1, 22, 77, .6)); }
.top-discord { --bh: 42px; flex: none; margin-left: var(--s2); }
.dock { display: none; }
@media (max-width: 759px) {
  .top .tabs { display: none; }
  .top .wrap { justify-content: space-between; }
  .top-discord { --bh: 38px; padding-inline: 14px; font-size: 14px; }
  .dock {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #0a2a72, var(--ink));
    box-shadow: 0 -3px 0 #000a2a, 0 -8px 18px rgba(0, 10, 42, .35);
  }
  .dock-item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
    min-height: 58px; padding: 4px 2px 6px; border-radius: 14px; border: 2px solid transparent;
    color: #c9d6f5; text-decoration: none; font: var(--display); font-size: 12px; text-transform: uppercase;
    -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; -webkit-tap-highlight-color: transparent;
    transition: transform .1s;
  }
  .dock-item img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 10, 42, .7)) saturate(.75) brightness(.9); transition: transform .15s; }
  .dock-item[aria-current="page"] {
    color: #fff; -webkit-text-stroke-color: #6a1d02;
    border-color: #6a1d02; background: linear-gradient(180deg, #ffe45a, #fec400 50%, #f8a100);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -4px 0 #dd5a08, 0 2px 0 #6a1d02;
  }
  .dock-item[aria-current="page"] img { filter: drop-shadow(0 3px 0 rgba(106, 29, 2, .6)); transform: translateY(-10px) scale(1.18); }
  .dock-item:active { transform: translateY(2px); }
  .dock-item .dot { position: absolute; top: 4px; right: calc(50% - 22px); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.embed .dock { display: none !important; }
.embed body { padding-bottom: 0; }

/* ---------- game systems ---------- */
.crumb-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s3); color: var(--cream); text-decoration: none; font: var(--display); font-size: 14px; text-transform: uppercase; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.crumb-back i { width: 30px; height: 24px; background: var(--spr-back) center / contain no-repeat; filter: drop-shadow(0 2px 0 rgba(1, 22, 77, .5)); }
.subnav .filter { gap: 6px; padding-left: 10px; }
.subnav .filter img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(1, 22, 77, .6)); }
.sys-group { margin-top: var(--s5); }
.sys-tiles { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sys-tile { display: grid; grid-template-columns: 76px 1fr; gap: var(--s3); align-items: center; padding: 14px 18px; color: #fff; text-decoration: none; transition: transform .12s, filter .12s; }
.sys-tile img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(1, 22, 77, .45)); }
.sys-tile b { display: block; font: var(--display); font-size: 20px; text-transform: uppercase; -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; }
.sys-tile small { color: var(--text-2); font-size: 14px; line-height: 1.35; }
.sys-tile:hover { color: #fff; transform: translateY(-3px); filter: brightness(1.08); }
.sys-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s6); }
.sys-pager a { padding: 14px 18px; color: #fff; text-decoration: none; }
.sys-pager a.next { text-align: right; }
.sys-pager small { display: block; color: var(--text-3); font-size: 13px; }
.sys-pager b { font: var(--display); font-size: 17px; text-transform: uppercase; }
.steps { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); counter-reset: step; }
.steps li { position: relative; padding: 16px 18px 16px 64px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center;
  font: var(--display); font-size: 18px; color: #fff; -webkit-text-stroke: 3px #042843; paint-order: stroke fill;
  border: 2px solid #042843; border-radius: 10px; background: linear-gradient(180deg, #3fd0ff, #0aaef3 48%, #0f8cf5); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 #0a5fb4, 0 2px 0 #042843;
}
.steps li > b, .steps li > div > b:first-child { display: block; font: var(--display); font-size: 17px; text-transform: uppercase; margin-bottom: 2px; }
.steps p b { color: #fff; }
.steps p { margin: 0; color: var(--text-2); }
.cls h3 { margin-bottom: 4px; }
.cls p { margin: 0; color: var(--text-2); }
.clash-hero { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); align-items: center; margin-bottom: var(--s4); }
.clash-hero img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 5px 0 rgba(1, 22, 77, .45)); }
.clash-hero h1 { margin: 0 0 .15em; }
.clash-hero p { margin: 0 0 var(--s2); }
@media (max-width: 559px) { .clash-hero { grid-template-columns: 72px 1fr; } .clash-hero img { width: 72px; height: 72px; } }
.clash-now { display: grid; gap: 2px; margin-bottom: var(--s5); padding: 16px 20px; text-align: center; }
.clash-now small { font: var(--display); font-size: 13px; text-transform: uppercase; color: var(--green-hi); }
.clash-now.next small { color: var(--cream); }
.clash-now b { font: var(--display); font-size: clamp(18px, 3vw, 24px); text-transform: uppercase; -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; }
.clash-now span { color: var(--text-2); font-weight: 700; }
.objectives { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: var(--s5); }
.objective { padding: 12px 16px; }
.objective b { display: block; }
.objective small { color: var(--text-3); }
.schedule tr.past { opacity: .45; }
.schedule tr.live td { background: #2d5ab0; color: #fff; font-weight: 800; }
.schedule td:nth-child(2), .reward-table td:last-child { text-align: left; white-space: normal; min-width: 180px; }
.rewards { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.reward { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.reward img { width: 30px; height: 30px; object-fit: contain; }
.good { margin: 0 0 var(--s5); padding: 16px 20px 16px 40px; }
.good li { margin: 4px 0; color: var(--text-2); }
.chests { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); margin-bottom: var(--s5); }
.chest { display: grid; grid-template-columns: 100px 1fr; gap: var(--s3); align-items: start; }
.chest > img { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 5px 0 rgba(1, 22, 77, .45)); }
.chest h3 { margin: 0 0 6px; }
.chest .mode-meta { margin: 0 0 8px; }
.chip-ico { width: 16px; height: 16px; margin-left: -2px; }
.loot { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.loot .coin { width: 20px; height: 20px; }
.odds { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--text-2); }
.odds li { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.odds .gem { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 0 2px var(--ink); flex: none; }
.search-row { justify-content: flex-end; }

/* ---------- compare ---------- */
.search-row { justify-content: space-between; align-items: center; }
.btn .si { flex: none; }
.btn.ghost { --f1: #3a63c0; --f2: #2a4c9e; --f3: #213f88; --lip: #142c69; --edge: #01164d; }
.btn.disabled { pointer-events: none; filter: grayscale(.7) brightness(.8); }
.compare-hint { margin: 0 0 var(--s3); text-align: center; color: var(--cream); font-weight: 700; }
[data-compare-toggle][aria-pressed="true"] { --f1: #ffe45a; --f2: #fec400; --f3: #f8a100; --lip: #dd5a08; --edge: #6a1d02; }
.compare-mode .beast-grid .card { cursor: copy; }
.compare-mode .beast-grid .card:not(.picked) .card-art { filter: saturate(.8) brightness(.9); }
.card.picked .card-art::before { content: "✓"; position: absolute; z-index: 4; right: -4%; top: -4%; width: 30%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 2px solid #104304; background: linear-gradient(180deg, #6fe33c, #279d06); color: #fff; font: 800 20px/1 "Saira", sans-serif; -webkit-text-stroke: 3px #104304; paint-order: stroke fill; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 2px 0 #104304; }
.card.picked .card-art { transform: translateY(-4px); }
.compare-tray {
  position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: 16px; width: min(560px, calc(100% - 24px));
  display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; padding: 8px 10px;
  border: 2px solid var(--ink); border-radius: 18px; background: linear-gradient(180deg, #2a4c9e, #16306f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 6px 0 rgba(0, 10, 42, .45), 0 12px 30px rgba(0, 10, 42, .5);
}
@media (max-width: 759px) { .compare-tray { bottom: calc(86px + env(safe-area-inset-bottom)); } }
.tray-slots { display: grid; grid-template-columns: repeat(4, 40px); gap: 5px; }
.tray-x { width: 40px; height: 40px; font-size: 24px; }
.compare-tray .btn { --bh: 42px; padding-inline: 16px; }
.tray-slot { width: 40px; height: 40px; border-radius: 10px; background: rgba(1, 22, 77, .5); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); overflow: hidden; }
.tray-slot[class*="r-"] { background: var(--tile-bg) center / cover; box-shadow: 0 0 0 2px var(--ink); }
.tray-slot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.compare-one { margin-top: var(--s3); }
.cmp-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s3); }
.cmp-slot { position: relative; }
.cmp-slot .card-name b { font-size: clamp(12px, 3.4vw, 17px); }
.cmp-slot .card-name small { font-size: clamp(10px, 2.6vw, 12px); }
.cmp-remove { position: absolute; z-index: 5; top: -6px; left: -6px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0 0 2px; border: 2px solid #4b0c15; border-radius: 50%; background: linear-gradient(180deg, #ff8193, #e8304b); color: #fff; font: 800 18px/1 "Saira", sans-serif; cursor: pointer; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 2px 0 #4b0c15; }
.cmp-add { width: 100%; aspect-ratio: 1; display: grid; place-content: center; gap: 2px; border: 3px dashed rgba(255, 255, 255, .35); border-radius: 14%; background: rgba(1, 22, 77, .35); color: #fff; cursor: pointer; font: var(--display); text-transform: uppercase; }
.cmp-add span { font-size: clamp(28px, 7vw, 44px); line-height: 1; }
.cmp-add small { font-size: clamp(9px, 2.4vw, 12px); color: var(--text-2); }
.cmp-add:hover { border-color: var(--gold); }
.cmp-panel { padding: 10px 12px; }
.cmp-row { padding: 6px 0 8px; border-bottom: 2px solid rgba(1, 22, 77, .35); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-stat { display: block; margin-bottom: 4px; font: var(--display); font-size: 13px; text-transform: uppercase; color: var(--cream); }
.cmp-vals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.cmp-vals > span { display: block; min-height: 34px; padding: 4px 2px; text-align: center; border-radius: 10px; }
.cmp-vals b { display: block; font: var(--display); font-size: clamp(15px, 3.8vw, 20px); }
.cmp-vals .best { background: linear-gradient(180deg, rgba(254, 196, 0, .35), rgba(248, 161, 0, .2)); box-shadow: inset 0 0 0 2px var(--gold); }
.cmp-vals .best b { color: #fff3b0; }
.cmp-vals a { display: block; font-weight: 700; font-size: clamp(11px, 3vw, 14px); line-height: 1.25; color: var(--cream); }
.cmp-bar { display: block; height: 6px; margin: 4px auto 0; width: 80%; border-radius: 3px; background: #0b1d55; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #ffe46b, var(--orange)); }
[data-cmp-table][data-count="0"] { display: none; }
.picker { width: min(720px, calc(100% - 24px)); max-height: 82vh; padding: 16px; color: #fff; border: 0; background: none; }
.picker::backdrop { background: rgba(0, 10, 42, .7); }
.picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.picker-head h2 { margin: 0; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; max-height: calc(82vh - 90px); overflow-y: auto; padding: 6px 4px; }
.pick { display: grid; gap: 4px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: var(--display); font-size: 12px; text-transform: uppercase; }
.pick .card-art { display: block; }
.pick:disabled { opacity: .35; cursor: default; }
.pick:not(:disabled):hover .card-art { transform: translateY(-3px); }
.odds small { color: var(--text-3); font-size: 12.5px; }
.cmp-slots, [data-cmp-level], .cmp-panel { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- clean type: outlines only on big display headings ---------- */
.btn, .vote button, .tab, .filter, .chip, .dock-item, .btn-square, .faq summary::after, .crumb-back, .steps li::before,
.skill .kind, .embed .embed-back, .sys-tile b, .clash-now b, .brand span, .sort, .sort select, .cmp-add, .pick, .level output,
.card .hex, .top-list li::before, .card.picked .card-art::before, .cmp-remove {
  -webkit-text-stroke: 0;
}
.btn, .vote button { text-shadow: 0 2px 0 color-mix(in srgb, var(--edge) 75%, transparent); letter-spacing: .02em; }
.tab, .filter, .dock-item, .chip, .skill .kind { text-shadow: 0 1px 0 color-mix(in srgb, var(--edge) 80%, transparent); }
.dock-item { color: #d6e1fb; }
.btn-square, .faq summary::after, .steps li::before, .cmp-remove { text-shadow: 0 2px 0 rgba(1, 22, 77, .5); }
.level output { text-shadow: 0 2px 0 var(--ink); }
.sys-tile b, .clash-now b, .crumb-back, .embed .embed-back, .brand span { text-shadow: 0 2px 0 rgba(1, 22, 77, .6); }
.sort select { text-shadow: 0 1px 0 var(--ink); }
.card-name b { -webkit-text-stroke: 0; text-shadow: 0 2px 0 var(--ink); }
/* back link: CSS chevron instead of the stretched arrow sprite */
.crumb-back i, .embed .embed-back i {
  width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(180deg, #3a63c0, #213f88); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 0 var(--ink);
  display: grid; place-items: center; filter: none;
}
.crumb-back i::before, .embed .embed-back i::before { content: ""; width: 9px; height: 9px; margin-left: 4px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(45deg); border-radius: 1px; }
.feature img.ico { background: none; border-radius: 0; padding: 0; box-shadow: none; }
td.cum { color: var(--cream); font-weight: 700; }
[data-rar-pills] { flex-wrap: wrap; overflow: visible; }
@media (max-width: 520px) {
  [data-rar-table] th, [data-rar-table] td { padding: 8px 7px; font-size: 14px; }
}
.max-cost { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.max-cost a { white-space: nowrap; margin-left: 4px; }
.schedule tr.past { display: none; }
@media (max-width: 759px) { .beast-index .filters, .filters[data-group] { flex-wrap: wrap; overflow: visible; } }

/* ---------- review round 3 ---------- */
/* labels are flat; only things you can press are 3D */
.chip { height: 24px; padding: 0 10px 1px; border: 0; border-radius: 999px; background: var(--f2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); font-size: 11.5px; letter-spacing: .04em; }
.chips .chip { height: 28px; padding: 0 12px 1px; font-size: 13px; border-radius: 999px; }
.chip.common { background: #6c809a; } .chip.rare, .chip.update { background: #0e8fe0; } .chip.epic { background: #a837a2; }
.chip.legendary, .chip.balance { background: #e08a00; } .chip.event { background: #2fa80b; } .chip.fix, .chip.new { background: #e8304b; }
.skill .kind { border: 0; border-radius: 999px; padding: 3px 10px 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); background: #e08a00; }
.section-title .count { font-weight: 700; }

/* home: three features stack on phones, icon beside the text */
@media (max-width: 759px) {
  .features { gap: 10px; }
  .feature { padding: 14px 16px; }
  .feature .ico { width: 48px; height: 48px; }
}

/* compare: cleaner best value */
.cmp-vals .best { background: rgba(254, 201, 0, .10); box-shadow: inset 0 0 0 2px rgba(254, 201, 0, .75); }
.cmp-vals .best b { color: var(--gold); }
main:has(.cmp-panel) > .wrap { max-width: calc(760px + 2 * var(--gutter)); }

/* sideways scrollers: fade the cut edge and run to the screen edge on phones */
.filters.overflow, .table-wrap.overflow, .beast-strip.overflow { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.filters.overflow.end, .table-wrap.overflow.end, .beast-strip.overflow.end { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 759px) {
  .filters { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  [data-rar-pills] { margin-inline: 0; padding-inline: 2px; }
}

/* level hexagon drawn in CSS */
.card .hex { background: none; padding-bottom: 0; filter: drop-shadow(0 3px 0 rgba(1, 22, 77, .5)); text-shadow: 0 2px 0 var(--ink); }
.card .hex::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #4a72cf, #10275f); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.card .hex::after { content: ""; position: absolute; inset: 7%; z-index: -1; background: linear-gradient(180deg, #2c509f, #142f6e); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* arenas: floating region bar, compact paired vote control, readable special icons */
.jump { top: calc(var(--header-h) + 8px); width: fit-content; max-width: 100%; padding: 6px; border-radius: 16px; background: rgba(10, 33, 96, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 20px rgba(0, 10, 42, .35); clip-path: none; }
.arena .vote { gap: 0; }
.arena .vote button { --bh: 38px; flex: 1; font-size: 14px; }
.arena .vote .up { border-radius: 12px 0 0 12px; }
.arena .vote .down { border-radius: 0 12px 12px 0; border-left-width: 0; }
.arena figcaption img { flex: none; width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: rgba(1, 22, 77, .55); }

/* news: accent on the card edge, lean share row */
.post::before { display: none; }
.post { padding-left: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 0 rgba(1, 22, 77, .5), 0 10px 24px rgba(0, 10, 42, .28); }
.share-label { display: none; }
.share-btn { width: 36px; height: 36px; }
.share { flex-wrap: nowrap; }

/* beast page */
@media (max-width: 559px) {
  .skill { grid-template-columns: 56px 1fr; column-gap: 12px; row-gap: 8px; }
  .skill img { width: 56px; height: 56px; }
  .skill > div { display: contents; }
  .skill .kind { grid-column: 2; justify-self: start; align-self: end; }
  .skill h3 { grid-column: 2; margin: 0; align-self: start; }
  .skill p, .skill details { grid-column: 1 / -1; }
}
.stat span { color: var(--text-3); }
.stat.aim::before { transform: none; }
.unlock { background: rgba(1, 22, 77, .4); box-shadow: inset 0 0 0 1.5px rgba(254, 201, 0, .55); color: var(--text-2); }

/* beasts toolbar lighter */
.filter { min-height: 36px; padding: 0 12px 2px; font-size: 13px; }
.filter:not([aria-pressed="true"]):not([aria-current]) { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -2px 0 var(--lip), 0 2px 0 var(--edge); }

/* tables: headers follow their content */
.schedule th:nth-child(2), .reward-table th:last-child { text-align: left; }

/* systems: pager with arrows, clickable tiles, steps spacing */
.sys-pager a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.sys-pager a > small { display: none; }
.sys-pager a::before, .sys-pager a.next::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--cream); border-width: 0 0 3px 3px; transform: rotate(45deg); }
.sys-pager a.next::before { display: none; }
.sys-pager a.next::after { transform: rotate(-135deg); }
.sys-pager a b { flex: 1; }
.sys-tile { grid-template-columns: 64px 1fr 12px; }
.sys-tile img { width: 64px; height: 64px; padding: 6px; border-radius: 16px; background: radial-gradient(circle, #3f63a8, var(--ink)); }
.sys-tile::after { content: ""; width: 10px; height: 10px; border: solid var(--cream); border-width: 3px 3px 0 0; transform: rotate(45deg); }
.sys-group { margin-top: 40px; }
.steps li > b, .steps li > div > b:first-child { margin-bottom: 6px; }
@media (min-width: 1000px) { .steps li:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }

/* Discord box on phones: logo top-left, text gets the width */
@media (max-width: 639px) {
  .discord-cta { grid-template-columns: 40px 1fr; padding: 16px; }
  .discord-cta .dc-logo { align-self: start; width: 40px; height: 40px; }
  .discord-cta.compact p { display: none; }
  .discord-cta.compact .btn.discord { --bh: 40px; }
  .teaser { align-items: start; }
}
.arena figcaption { flex-wrap: wrap; row-gap: 4px; }
.arena figcaption b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.arena figcaption img { width: 22px; height: 22px; padding: 2px; }
@media (max-width: 559px) { .skill img { grid-row: span 2; align-self: center; } }
.stat.aim::before {
  width: 34px; height: 34px; justify-self: center; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%2301164d' stroke-width='7' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 2v6M16 24v6M2 16h6M24 16h6'/%3E%3C/g%3E%3Cg fill='none' stroke='%23b8f07a' stroke-width='3.5' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 2v6M16 24v6M2 16h6M24 16h6'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='3' fill='%23b8f07a' stroke='%2301164d' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-name small { display: inline-flex; align-items: center; gap: 6px; }
.card-name .gem { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 1px; box-shadow: 0 0 0 1.5px var(--ink); flex: none; }
.arena .specials a { display: block; line-height: 0; }
.special { scroll-margin-top: calc(var(--header-h) + 16px); }
.special:target { box-shadow: inset 0 0 0 2px var(--gold), 0 10px 24px rgba(0, 10, 42, .28); }
a.chip { text-decoration: none; color: #fff; }
.special-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: var(--s4); }
.special-filter > span { display: flex; align-items: center; gap: 10px; }
.special-filter img { width: 40px; height: 40px; object-fit: contain; }
.cmp-skill { all: unset; cursor: pointer; display: block; width: 100%; text-align: center; font-weight: 700; font-size: clamp(11px, 3vw, 14px); line-height: 1.25; color: var(--cream); text-decoration: underline dotted; text-underline-offset: 3px; }
.cmp-skill.on { color: #fff; text-decoration-style: solid; }
.cmp-desc { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(1, 22, 77, .4); font-size: 14px; line-height: 1.4; color: var(--text-2); }
.cmp-desc b { display: block; margin-bottom: 2px; color: #fff; }

/* ---------- glossary, adventure, runes ---------- */
.glossary { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: var(--s5); scroll-margin-top: calc(var(--header-h) + 16px); }
#stats { scroll-margin-top: calc(var(--header-h) + 16px); }
.gl { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px 16px; }
.gl b { font: var(--display); font-size: 17px; text-transform: uppercase; }
.gl p { margin: 2px 0 0; color: var(--text-2); }
.gl-ico { width: 44px; height: 44px; background: center / contain no-repeat; filter: drop-shadow(0 2px 0 rgba(1, 22, 77, .6)); }
.stat-hp .gl-ico { background-image: var(--spr-icon-health); }
.stat-atk .gl-ico { background-image: var(--spr-icon-attack); }
.stat-speed .gl-ico { background-image: var(--spr-icon-speed); }
.stat-crit .gl-ico { background-image: var(--spr-icon-crit); }
.stat-rage .gl-ico { background: var(--sprites) 69.91% 7.18% / 640.00% 640.00% no-repeat; width: 38px; height: 38px; justify-self: center; }
.stat-aim .gl-ico { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%2301164d' stroke-width='7' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 2v6M16 24v6M2 16h6M24 16h6'/%3E%3C/g%3E%3Cg fill='none' stroke='%23b8f07a' stroke-width='3.5' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 2v6M16 24v6M2 16h6M24 16h6'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='3' fill='%23b8f07a' stroke='%2301164d' stroke-width='1.5'/%3E%3C/svg%3E"); }
.stat-help { margin: -6px 0 var(--s3); font-size: 14px; text-align: right; }
.unlock a { margin-left: 6px; white-space: nowrap; }
.tweak { margin: -4px 0 8px; padding: 8px 12px; border-radius: 12px; background: rgba(1, 22, 77, .35); color: var(--cream); font-size: 14px; font-weight: 700; }
.adv-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; margin-bottom: var(--s4); font-size: 14px; color: var(--text-2); }
.adv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot.beast, .adv-step.big .adv-pts { --c: var(--gold); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #7f9bd6); box-shadow: 0 0 0 2px var(--ink); }
.dot.biome { --c: #45d40f; } .dot.special { --c: #ff8a7a; } .dot.item { --c: #7f9bd6; }
.adv-track { list-style: none; margin: 0 0 var(--s5); padding: 0 0 0 26px; position: relative; }
.adv-track::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), #3a63c0 20%, #3a63c0 80%, var(--gold)); }
.adv-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; padding: 6px 0; }
.adv-step::before { content: ""; position: absolute; left: -23px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #3a63c0; box-shadow: 0 0 0 3px var(--ink); }
.adv-step.big::before { width: 18px; height: 18px; margin-top: -9px; left: -25px; background: var(--gold); }
.adv-pts { font: var(--display); font-size: 16px; color: var(--cream); text-shadow: 0 2px 0 var(--ink); }
.adv-items { display: flex; flex-wrap: wrap; gap: 8px; }
.adv-reward { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 14px; background: linear-gradient(180deg, #2e54a0, #22448a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 0 rgba(1, 22, 77, .5); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.adv-reward > img { width: 36px; height: 36px; object-fit: contain; }
.adv-reward .card-art { width: 52px; flex: none; }
.adv-reward.k-beast { padding-right: 16px; font: var(--display); font-size: 17px; text-transform: uppercase; box-shadow: inset 0 0 0 2px var(--gold), 0 2px 0 rgba(1, 22, 77, .5); }
.adv-reward.k-biome { box-shadow: inset 0 0 0 2px #45d40f, 0 2px 0 rgba(1, 22, 77, .5); }
.adv-reward.k-special { box-shadow: inset 0 0 0 2px #ff8a7a, 0 2px 0 rgba(1, 22, 77, .5); }
a.adv-reward:hover { color: #fff; filter: brightness(1.1); }
.rune { display: grid; grid-template-columns: 80px 1fr; gap: var(--s3); align-items: center; }
.rune img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(1, 22, 77, .45)); }
.rune h3 { margin: 0 0 4px; }
.rune p { margin: 0; color: var(--text-2); }
.tip { margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(1, 22, 77, .35); color: var(--text-2); font-size: 14px; }
.tip b { color: var(--cream); }
.where { margin: 10px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.where b { color: var(--cream); }
.adv-reward > img { width: 40px; height: 40px; }
.lost { display: grid; grid-template-columns: 160px 1fr; gap: var(--s5); align-items: center; max-width: 760px; margin: var(--s6) auto; }
.lost .card-art { width: 160px; }
.lost-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
@media (max-width: 559px) { .lost { grid-template-columns: 1fr; text-align: center; } .lost .card-art { margin: 0 auto; width: 140px; } .lost-links { justify-content: center; } }
.adv-reward.k-cards .card-art { width: 40px; }
.compare-tray { grid-template-columns: auto auto minmax(0, 1fr); }
.compare-tray .btn { min-width: 0; padding-inline: 12px; }
@media (max-width: 400px) { .tray-slots { grid-template-columns: repeat(4, 36px); gap: 4px; } .tray-slot { width: 36px; height: 36px; } }

/* compare: stat icons + per-stat colours (same as the beast page plates) */
.cmp-row[data-row="hp"] { --c: #ff8fc3; --ico: var(--spr-icon-health); }
.cmp-row[data-row="atk"] { --c: #ff8a7a; --ico: var(--spr-icon-attack); }
.cmp-row[data-row="speed"] { --c: #7fd8ff; --ico: var(--spr-icon-speed); }
.cmp-row[data-row="crit"] { --c: #ffc56b; --ico: var(--spr-icon-crit); }
.cmp-row[data-row="rage"] { --c: #ffb35c; }
.cmp-row[data-row="aim"] { --c: #b8f07a; }
.cmp-row[data-row] .cmp-stat { display: flex; align-items: center; gap: 8px; color: var(--c, var(--cream)); }
.cmp-row[data-row="hp"] .cmp-stat::before, .cmp-row[data-row="atk"] .cmp-stat::before, .cmp-row[data-row="speed"] .cmp-stat::before,
.cmp-row[data-row="crit"] .cmp-stat::before, .cmp-row[data-row="rage"] .cmp-stat::before, .cmp-row[data-row="aim"] .cmp-stat::before {
  content: ""; flex: none; width: 26px; height: 26px; background: var(--ico) center / contain no-repeat; filter: drop-shadow(0 2px 0 rgba(1, 22, 77, .6));
}
.cmp-row[data-row="rage"] .cmp-stat::before { background: var(--sprites) 69.91% 7.18% / 640.00% 640.00% no-repeat; width: 22px; height: 22px; margin-inline: 2px; }
.cmp-row[data-row="aim"] .cmp-stat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%2301164d' stroke-width='7' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 2v6M16 24v6M2 16h6M24 16h6'/%3E%3C/g%3E%3Cg fill='none' stroke='%23b8f07a' stroke-width='3.5' stroke-linecap='round'%3E%3Ccircle cx='16' cy='16' r='9'/%3E%3Cpath d='M16 2v6M16 24v6M2 16h6M24 16h6'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='3' fill='%23b8f07a' stroke='%2301164d' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; }
.cmp-row[data-row] .cmp-bar i { background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--gold)) 55%, #fff), var(--c, var(--orange))); }
.cmp-row[data-row] .cmp-vals .best { background: color-mix(in srgb, var(--c, var(--gold)) 14%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c, var(--gold)) 85%, transparent); }
.cmp-row[data-row] .cmp-vals .best b { color: var(--c, var(--gold)); }
/* news cards in a grid: content stays at the top instead of spreading out */
.news-list > .post { align-content: start; }
.news-list > .post .post-visual img { object-position: 50% 30%; }

/* ---------- event calendar ---------- */
.cal-live { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-bottom: var(--s5); }
.cal-live:empty { display: none; }
.cal-list { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: 10px; }
.cal-item { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: stretch; }
.cal-date { display: grid; place-content: center; text-align: center; gap: 0; border-radius: 14px; background: rgba(1, 22, 77, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); line-height: 1.1; }
.cal-date b { font: var(--display); font-size: 24px; }
.cal-date small { font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; }
.cal-card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 14px; color: #fff; text-decoration: none; position: relative; }
.cal-card:hover { color: #fff; filter: brightness(1.07); }
.cal-card img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(1, 22, 77, .45)); }
.cal-body { display: grid; gap: 3px; min-width: 0; }
.cal-body > b { font: var(--display); font-size: 18px; text-transform: uppercase; }
.cal-body small { color: var(--text-2); font-size: 13.5px; line-height: 1.35; }
.cal-body .cal-reward { color: var(--cream); font-weight: 700; }
.cal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-item.next .cal-card { box-shadow: inset 0 0 0 2px rgba(254, 201, 0, .55), 0 2px 0 rgba(1, 22, 77, .5); }
.cal-item.live .cal-date { background: linear-gradient(180deg, #2fb80b, #1a7a05); }
.cal-card.live { box-shadow: inset 0 0 0 2px #45d40f, 0 0 22px rgba(69, 212, 15, .25), 0 10px 24px rgba(0, 10, 42, .28); }
.live-badge { position: absolute; top: -10px; right: 14px; padding: 2px 10px 3px; border-radius: 999px; background: #2fb80b; font: var(--display); font-size: 12px; text-transform: uppercase; box-shadow: 0 2px 0 #104304; animation: pulse 2.4s ease-in-out infinite; }
.live-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; margin-bottom: var(--s4); color: #fff; text-decoration: none; box-shadow: inset 0 0 0 2px rgba(69, 212, 15, .7), 0 2px 0 rgba(1, 22, 77, .5); }
.live-strip:hover { color: #fff; filter: brightness(1.07); }
.ls-label { padding: 2px 10px 3px; border-radius: 999px; background: #2fb80b; font: var(--display); font-size: 12px; text-transform: uppercase; }
.ls-item { display: inline-flex; align-items: center; gap: 8px; }
.ls-item img { width: 32px; height: 32px; object-fit: contain; }
.ls-item b { font: var(--display); font-size: 15px; text-transform: uppercase; }
.ls-item small { color: var(--text-2); font-weight: 700; }
.ls-more { margin-left: auto; color: var(--cream); font: var(--display); font-size: 13px; text-transform: uppercase; }
.tool-btns { display: inline-flex; gap: 8px; }
.skin-card .card-art { position: relative; }
.skin-new { position: absolute; z-index: 4; left: 6%; top: 6%; padding: 1px 8px 2px; border-radius: 999px; background: #e8304b; font: var(--display); font-size: 11px; text-transform: uppercase; color: #fff; box-shadow: 0 2px 0 #4b0c15; }
.skins-grid .card-name small { text-transform: none; letter-spacing: 0; }
@media (max-width: 420px) { .tool-btns .btn { padding-inline: 12px; } }
.section-title > a.btn { color: #fff; font-size: calc(var(--bh) * .34); }
.skins-grid .card-name b { white-space: normal; text-overflow: clip; overflow: visible; font-size: clamp(13px, 3.6vw, 17px); line-height: 1.1; text-wrap: balance; }
.skins-grid .card-name small { text-wrap: balance; }
.prose h3 { margin: var(--s4) 0 .3em; font-size: 18px; } .prose p { color: var(--text-2); max-width: 68ch; } .foot a { color: var(--text-3); }
@media (max-width: 520px) { .statline .stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.steps li.has-art { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; align-items: center; }
.step-art { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(1, 22, 77, .4)); }
@media (max-width: 420px) { .steps li.has-art { grid-template-columns: minmax(0, 1fr) 72px; } .step-art { width: 72px; height: 72px; } }
.steps li.has-art { align-items: start; } .steps li.has-art .step-art { align-self: center; }

/* ---------- phones: all four sections fit in the top bar (no bottom dock) ---------- */
@media (max-width: 759px) {
  .dock { display: none !important; }
  body { padding-bottom: 0; }
  .top .wrap { gap: 6px; min-height: 0; padding-top: 6px; padding-bottom: 6px; justify-content: space-between; }
  .brand img { height: 34px; }
  .top .tabs {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
    flex: 1; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none;
  }
  .top .tab {
    flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; padding: 3px 2px 5px;
    border-radius: 12px; font-size: 10px; letter-spacing: 0;
  }
  .top .tab img { width: 26px; height: 26px; margin: 0; }
  .top .tab span { white-space: nowrap; }
  .top .tab .dot { position: absolute; top: 3px; right: 6px; }
  .top-discord { --bh: 40px; width: 44px; min-width: 0; padding: 0; flex: none; }
  .top-discord span { display: none; }
  .top-discord .si { width: 22px; height: 22px; }
  :root { --header-h: 62px; }
}
@media (max-width: 359px) { .top .tab span { font-size: 9px; } .brand img { height: 28px; } }
.tab .lbl-short { display: none; }
@media (max-width: 759px) { .top .tab .lbl-long { display: none; } .top .tab .lbl-short { display: inline; } }
@media (max-width: 759px) {
  .top .wrap { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .top .tabs { min-width: 0; }
  .top .tabs, .top .tab { min-width: 0; }
  .brand { flex: none; }
  .brand img { height: 30px; width: auto; }
  .top-discord { --bh: 38px; width: 40px; margin-left: 0; }
}
@media (max-width: 359px) { .brand img { height: 24px; } .top .tab img { width: 22px; height: 22px; } .top-discord { width: 34px; } }
.filter-selects { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-bottom: var(--s4); }
.filter-selects .sort { min-width: 0; }
.filter-selects .sort select { min-width: 0; width: 100%; }
.search-row { margin-bottom: var(--s2); }
@media (max-width: 520px) { .filter-selects .sort span { display: inline; font-size: 11px; } }

/* ---------- arena lightbox ---------- */
.arena .shot img { cursor: zoom-in; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 8, 32, .94); color: #fff; }
.lightbox::backdrop { background: rgba(0, 8, 32, .8); }
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lightbox figure { grid-column: 2; margin: 0; display: grid; gap: 12px; justify-items: center; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); border-radius: 16px; box-shadow: 0 0 0 3px var(--ink), 0 20px 50px rgba(0, 0, 0, .5); }
.lightbox figcaption { font: var(--display); font-size: 22px; text-transform: uppercase; text-shadow: 0 2px 0 var(--ink); }
.lb-nav, .lb-close { width: 44px; height: 44px; display: grid; place-items: center; padding: 0 0 4px; border: 2px solid var(--ink); border-radius: 12px; background: linear-gradient(180deg, #3a63c0, #213f88); color: #fff; font: 800 28px/1 "Saira", sans-serif; cursor: pointer; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 2px 0 var(--ink); justify-self: center; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
@media (max-width: 559px) { .lightbox[open] { grid-template-columns: 1fr; } .lightbox figure { grid-column: 1; padding: 0 8px; } .lb-nav { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); } .lb-nav.prev { left: 24px; } .lb-nav.next { right: 24px; } }

/* ---------- pick rate chart (unlinked stats page) ---------- */
.pr-chart { padding: 20px 16px 16px 44px; }
.pr-area { position: relative; }
.pr-grid { position: absolute; left: 0; right: 0; top: 0; height: 280px; }
.pr-tick { position: absolute; left: 0; right: 0; bottom: var(--y); border-top: 1px solid rgba(255, 255, 255, .12); }
.pr-tick:first-child { border-top-color: rgba(255, 255, 255, .35); }
.pr-tick i { position: absolute; right: calc(100% + 8px); top: -9px; font: 700 12px/1 "Saira", sans-serif; font-style: normal; color: var(--text-3); white-space: nowrap; }
.pr-cols { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.pr-col:hover, .pr-col:focus { z-index: 10; }
.pr-col { position: relative; display: grid; grid-template-rows: 280px auto; justify-items: center; outline: none; border-radius: 12px; }
.pr-plot { position: relative; width: 100%; height: 280px; display: flex; align-items: flex-end; justify-content: center; }
.pr-bar { position: relative; width: min(24px, 60%); height: var(--h); border-radius: 4px 4px 0 0; background: #fec900; transition: filter .15s; }
.pr-bar em { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); font: 800 italic 13px/1 "Saira", sans-serif; color: #fff; white-space: nowrap; text-shadow: 0 1px 0 var(--ink); }
.pr-beast { display: grid; justify-items: center; gap: 4px; margin-top: 10px; width: 100%; color: var(--text-2); text-decoration: none; }
.pr-beast .card-art { width: min(64px, 100%); }
.pr-beast small { font: var(--display); font-size: 12px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-tip { position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 28px); transform: translate(-50%, 6px); display: grid; gap: 2px; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: #0b1d55; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 24px rgba(0, 10, 42, .5); font-size: 13px; color: var(--text-2); opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; }
.pr-tip b, .pr-tip span { font-style: normal; text-shadow: none; white-space: nowrap; }
.pr-tip b { color: #fff; font: var(--display); font-size: 15px; text-transform: uppercase; }
.pr-col:hover .pr-tip, .pr-col:focus .pr-tip { opacity: 1; transform: translate(-50%, 0); }
.pr-col:hover .pr-bar, .pr-col:focus .pr-bar { filter: brightness(1.12); }
.pr-col:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.pr-col:first-child .pr-tip { left: 0; transform: translate(0, 6px); }
.pr-col:first-child:hover .pr-tip, .pr-col:first-child:focus .pr-tip { transform: translate(0, 0); }
.pr-col:last-child .pr-tip { left: auto; right: 0; transform: translate(0, 6px); }
.pr-col:last-child:hover .pr-tip, .pr-col:last-child:focus .pr-tip { transform: translate(0, 0); }
.pr-table summary { cursor: pointer; font: var(--display); text-transform: uppercase; }
.pr-table table { margin-top: 12px; }
@media (max-width: 640px) {
  .pr-chart { padding: 14px 14px 10px; }
  .pr-grid { display: none; }
  .pr-cols { grid-template-columns: 1fr; gap: 10px; }
  .pr-col { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto; align-items: center; column-gap: 12px; justify-items: stretch; }
  .pr-beast { order: -1; margin: 0; }
  .pr-beast .card-art { width: 48px; }
  .pr-beast small { display: none; }
  .pr-plot { height: auto; display: grid; gap: 4px; align-items: center; justify-content: stretch; padding-right: 54px; }
  .pr-plot::before { content: attr(data-name); font: var(--display); font-size: 13px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 var(--ink); }
  .pr-bar { width: var(--h); height: 16px; border-radius: 0 4px 4px 0; }
  .pr-bar em { left: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%); font-size: 13px; }
  .pr-tip { display: none; }
}

/* ---------- readability: dark text on bright faces, white stat names ---------- */
.tab[aria-current="page"], .tab[aria-current="page"]:hover,
.filter[aria-pressed="true"], .filter[aria-current="page"],
.btn.gold, .btn.gold:hover,
[data-compare-toggle][aria-pressed="true"], [data-compare-toggle][aria-pressed="true"]:hover {
  color: var(--edge);
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.btn.gold .si, [data-compare-toggle][aria-pressed="true"] .si { filter: none; }
.btn.store small { color: var(--edge); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.chip.legendary, .chip.balance, .skill .kind { color: #4a1500; -webkit-text-stroke: 0; text-shadow: none; }
.chip.common { background: #5d7088; } .chip.rare, .chip.update { background: #0b72b8; }
.chip.event { background: #23820a; } .chip.fix, .chip.new { background: #c92440; }
.cmp-row[data-row] .cmp-stat, .cmp-row[data-row] .cmp-vals .best b { color: #fff; }
@media (max-width: 759px) {
  .top .tab { font-size: 12px; }
  .top .tab img { width: 24px; height: 24px; }
}
@media (max-width: 359px) { .top .tab span { font-size: 11px; } .top .tab img { width: 20px; height: 20px; } }

/* ---------- home: arena scroller and news headlines ---------- */
.arena-scroll { display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.arena-pick { display: flex; flex-direction: column; gap: var(--s2); color: #fff; text-decoration: none; }
.arena-pick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); box-shadow: 0 0 0 3px var(--ink), 0 6px 0 rgba(1, 22, 77, .35); transition: transform .15s; }
.arena-pick:hover { color: #fff; }
.arena-pick:hover img { transform: translateY(-3px); }
.arena-pick span { display: flex; flex-direction: column; gap: 2px; padding-inline: 2px; }
.arena-pick b { font: var(--display); font-size: 17px; line-height: 1.15; }
.arena-pick small { color: var(--text-3); font-size: 13px; }
@media (max-width: 759px) {
  .arena-scroll {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 3px var(--s3); margin-inline: -3px;
    scrollbar-width: thin; scrollbar-color: var(--gold) rgba(1, 22, 77, .4);
  }
  .arena-pick { scroll-snap-align: start; }
}
.headlines { display: grid; gap: var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.headline { display: flex; flex-direction: column; gap: var(--s2); color: #fff; text-decoration: none; transition: transform .12s; }
.headline:hover { color: #fff; transform: translateY(-3px); }
.headline .post-meta { margin: 0; }
.headline b { font: var(--display); font-size: 19px; line-height: 1.2; text-wrap: balance; }
.headline small { color: var(--text-2); font-size: 14px; line-height: 1.4; }
@media (max-width: 759px) { .headlines { grid-template-columns: 1fr; gap: var(--s2); } .headline b { font-size: 17px; } }
@media (max-width: 400px) {
  .search-row .sort { min-width: 0; flex: 0 1 auto; padding-right: 30px; }
  .search-row .sort select { min-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .compare-tray .btn { padding-inline: 10px; font-size: 14px; }
}
@media (max-width: 359px) {
  .top .tabs { gap: 3px; }
  .top .tab { padding-inline: 0; }
  .top .tab span { letter-spacing: -.02em; }
  .tray-slots { grid-template-columns: repeat(4, 32px); }
  .tray-slot { width: 32px; height: 32px; }
}
@media (max-width: 400px) {
  .search-row > .btn, .search-row .sort { flex: 1 1 0; min-width: 0; }
  .search-row .sort { padding-left: 10px; padding-right: 28px; }
}
@media (max-width: 359px) { .top-discord { width: 32px; } }
@media (max-width: 759px) { .top .tabs { grid-template-columns: repeat(4, minmax(min-content, 1fr)); } }
.btn.store small { color: #021a3a; }
.btn.green.store small { color: #062001; }
.foot .social, .foot .social:hover { color: #fff; }
.social.discord { background: linear-gradient(180deg, #6b75f7, #5865f2 50%, #4752e0); }
.panel.light { background: linear-gradient(180deg, #3672c2, #2c63b6); }

/* ---------- news: whole card opens the post; in the game it is one feed ---------- */
.news-list .post h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.news-list .post .post-body a:not(h2 a), .news-list .post .share { position: relative; z-index: 2; }
.news-list .post { transition: transform .1s, filter .12s; }
.news-list .post:has(h2 a:hover) { filter: brightness(1.06); }
.news-list .post:has(h2 a:active) { transform: translateY(2px); filter: brightness(1.1); }
.news-list .post:has(h2 a:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.news-list .post h2 a:focus-visible { outline: none; }
.embed .news-list .post h2 a { pointer-events: none; }
.embed .news-list .post h2 a::after { content: none; }
.embed .share, .embed .news-extra .discord-cta { display: none !important; }
.embed .crumb-back { display: none; }
.news-extra > .section { margin: 0; }
.news-extra { display: grid; gap: var(--s3); }
.news-extra .discord-cta.compact { margin: 0; }
.post li, .post p, .headline small { text-wrap: pretty; }
.post-pagers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s4); }
.post-pager { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 14px 18px; color: #fff; text-decoration: none; transition: transform .1s; }
.post-pager:active { transform: translateY(2px); }
.post-pager small { font: var(--display); font-size: 13px; text-transform: uppercase; color: var(--cream); }
.post-pager b { font: var(--display); font-size: 17px; line-height: 1.2; text-wrap: balance; }
.post-pager.older { grid-column: 2; text-align: right; }
.all-news { margin: var(--s4) 0 var(--s5); }
@media (max-width: 480px) { .post-pagers { grid-template-columns: 1fr; } .post-pager.older { grid-column: auto; } }

/* ---------- phones held sideways: one column, picture left, nothing sticky ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .news-list { grid-template-columns: 1fr; }
  .news-list > .post:first-child { grid-column: auto; }
  .post.has-visual, .news-list > .post:not(:first-child).has-visual { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
  .post.has-visual .post-visual, .embed .post.has-visual .post-visual { position: static; }
  .news-list > .post:not(:first-child) .post-visual { max-height: none; aspect-ratio: 16 / 9; }
  .news-head { flex-wrap: wrap; }
  .tab { min-height: 44px; }
  .top .wrap { min-height: 54px; }
  :root { --header-h: 54px; }
  .jump { position: static; }
}

/* ---------- touch targets: at least 44px ---------- */
.share-btn { width: 44px; height: 44px; }
.share-btn.native, .share-btn.copy { height: 44px; border-radius: 22px; }
.post-body a:not(h2 a):not(.btn), .prose a, .steps a { padding-block: 10px; }
.crumb-back { min-height: 44px; }
.section-title > a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -14px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.cmp-remove::after { content: ""; position: absolute; inset: -9px; }
.cmp-skill { position: relative; }
.cmp-skill::after { content: ""; position: absolute; inset: -13px -4px; }
.chip { font-size: 12px; }

/* ---------- buttons: game-style outline back on white labels ---------- */
.btn { -webkit-text-stroke: calc(var(--bh) * .07) var(--edge); paint-order: stroke fill; }
.foot .social { -webkit-text-stroke: 3px #01164d; paint-order: stroke fill; }
.foot .social.discord { -webkit-text-stroke-color: #1e2470; }
.ls-label { background: #23820a; }

/* ---------- compare: beast row follows the stats ---------- */
.cmp-head { position: sticky; top: var(--header-h); z-index: 6; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin: -10px -12px 6px; padding: 8px 12px; border-radius: 20px 20px 12px 12px; background: #24478f; box-shadow: 0 8px 12px -8px rgba(1, 16, 50, .6); }
.cmp-head:empty { display: none; }
.cmp-head span { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.cmp-head img { flex: none; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.cmp-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--display); font-size: 13px; text-transform: uppercase; }
@media (max-width: 480px) { .cmp-head span { flex-direction: column; gap: 2px; } .cmp-head b { font-size: 11px; max-width: 100%; } }
.embed .cmp-head { top: 0; }
[data-cmp-level] input:disabled { opacity: .45; }
[data-cmp-level] .btn-square:disabled { filter: grayscale(.8) brightness(.8); cursor: default; }

/* ---------- review round 3 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
p, li { text-wrap: pretty; }
.st.damage { color: #ffbcb2; }
.bars-title small { margin-left: 6px; font: 600 12px "Saira", sans-serif; text-transform: none; color: var(--text-3); }
.tab:focus-visible, .filter:focus-visible, .btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.embed .stores, .embed .cta { display: none !important; }
.upgrades-table, [data-rar-table] table { max-width: 560px; }
.empty.panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: 14px 18px; }

/* taps: arena specials, text links, jump chips, footer */
.arena figcaption .specials { display: flex; flex-wrap: wrap; gap: 0; }
.arena figcaption .specials a { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.arena figcaption img { width: 30px; height: 30px; }
main :is(p, li, td, small) > a:not([class]) { padding-block: 11px; }
.jump .filter { min-height: 44px; }
.foot a:not(.social) { display: inline-block; padding-block: 12px; }

/* home: news first, with the post picture */
.headline .post-visual { margin: -6px -6px 2px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.headline .post-visual.pics { aspect-ratio: 16 / 9; }
.headline .post-visual img { width: 100%; height: 100%; object-fit: cover; }
.home-news { margin-top: var(--s5); }
@media (max-width: 759px) {
  .headlines { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 3px var(--s3); margin-inline: -3px; scrollbar-width: thin; scrollbar-color: var(--gold) rgba(1, 22, 77, .4); }
  .headline { scroll-snap-align: start; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 759px) { :root { --header-h: 62px; } }
.tile { flex-direction: row; align-items: center; gap: var(--s3); }
.tile > img { flex: none; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(1, 22, 77, .5)); }
.tile > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* compare on phones held sideways: smaller portraits so the numbers start sooner */
@media (orientation: landscape) and (max-height: 520px) {
  .cmp-slots { max-width: 460px; }
  main:has(.cmp-panel) h1 + p { display: none; }
}
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile .display { overflow-wrap: anywhere; }
@media (max-width: 480px) { .tile { flex-direction: column; align-items: flex-start; gap: var(--s2); } .tile > img { width: 36px; height: 36px; } }

/* ---------- review round 4 ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--gold); color: var(--gold-edge, #6a1d02); font: var(--display); text-decoration: none; }
.skip:focus { top: 12px; }

/* scrollers show a fade on whichever side is cut */
:is(.filters, .table-wrap, .beast-strip).overflow.scrolled { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
:is(.filters, .table-wrap, .beast-strip).overflow.scrolled.end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }

/* arenas: the shot is a button, specials carry their names */
.arena button.shot { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: var(--r-md); }
.arena button.shot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.arena figcaption { flex-wrap: wrap; row-gap: 6px; }
.arena figcaption .specials { display: flex; flex-wrap: wrap; gap: 6px; }
.arena figcaption .specials a.sp { width: auto; height: auto; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 6px; border-radius: 22px; background: rgba(1, 22, 77, .5); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.1; }
.arena figcaption .specials a.sp:hover { background: rgba(1, 22, 77, .75); }
.arena figcaption .specials a.sp img { width: 28px; height: 28px; padding: 0; background: none; }

/* bigger full-screen arena on phones held sideways */
@media (orientation: landscape) and (max-height: 520px) { .lightbox[open] { grid-template-columns: 48px 1fr 48px; } .lightbox img { max-height: calc(100dvh - 64px); } .lightbox figure { gap: 6px; } }

/* beasts: filter and sort dropdowns are 44px tall */
.sort select { padding-block: 12px; }

/* compare */
.tray.shake, .compare-tray.shake { animation: shake .35s; }
@keyframes shake { 25% { translate: -6px 0; } 50% { translate: 5px 0; } 75% { translate: -3px 0; } }
.cmp-empty { margin: 0 auto var(--s3); max-width: 760px; color: var(--text-2); }
.cmp-add small, .cmp-slot small, .card-name small { font-size: max(11px, 1em * .7); }
@media (max-width: 480px) { .cmp-add small { font-size: 11px; } .cmp-head b { font-size: 11px; } }

/* header Discord at least 44 wide on phones */
@media (max-width: 759px) { .top-discord { width: 44px; } }
@media (max-width: 359px) { .top-discord { width: 40px; } }

/* home on phones held sideways: shorter hero, news cards picture-left */
@media (orientation: landscape) and (max-height: 520px) {
  .landing-hero { min-height: 0; }
  .hero-copy { padding-top: var(--s3); padding-bottom: var(--s3); }
  .hero-copy .logo { width: 110px; margin-bottom: 4px; }
  .hero-copy h1 { font-size: 22px; }
  .landing-hero .lead { display: none; }
  .btn.store { --bh: 44px; }
  .headlines { grid-template-columns: 1fr; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; padding: 0; margin: 0; }
  .headline { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 6px; align-items: start; }
  .headline .post-visual { grid-row: 1 / 4; margin: 0; }
  .headline b { font-size: 18px; }
}
.headline b { text-transform: uppercase; }

/* pick-rate: horizontal bars when the screen is low */
@media (orientation: landscape) and (max-height: 520px) {
  .pr-chart { padding: 14px 14px 10px; }
  .pr-grid { display: none; }
  .pr-area { height: auto; }
  .pr-cols { grid-template-columns: 1fr 1fr; gap: 10px 24px; height: auto; }
  .pr-col { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto; align-items: center; column-gap: 10px; justify-items: stretch; }
  .pr-beast { order: -1; margin: 0; }
  .pr-beast .card-art { width: 40px; }
  .pr-beast small { display: none; }
  .pr-plot { height: auto; display: grid; gap: 4px; align-items: center; justify-content: stretch; padding-right: 54px; }
  .pr-plot::before { content: attr(data-name); font: var(--display); font-size: 13px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 var(--ink); }
  .pr-bar { width: var(--h); height: 14px; border-radius: 0 4px 4px 0; }
  .pr-bar em { left: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%); font-size: 13px; }
  .pr-tip { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) { .landing-hero { min-height: 58svh; } }
.arena figcaption { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.arena figcaption .specials { justify-content: flex-start; margin: 0; }
@media (max-width: 480px) { .arena figcaption .specials a.sp { font-size: 12px; padding-right: 10px; } }
.sort select { min-height: 44px; }

/* full-screen arena: the caption names the arena and shows its specials as icons */
.lightbox figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.lb-specials { display: inline-flex; gap: 8px; }
.lb-specials img { width: 40px; height: 40px; padding: 4px; border-radius: 50%; background: rgba(1, 22, 77, .6); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); filter: drop-shadow(0 2px 0 rgba(1, 22, 77, .6)); }
@media (orientation: landscape) and (max-height: 520px) { .lb-specials img { width: 32px; height: 32px; padding: 3px; } }

/* ---------- review round 5 ---------- */
.skip:hover, .skip:focus { color: #6a1d02; }
.adv-legend .dot { flex: none; position: static; margin: 0; padding: 0; transform: none; align-self: center; }

/* beast page, phone held sideways: the portrait column follows the reader instead of leaving a gap */
@media (orientation: landscape) and (max-height: 520px) {
  .beast-hero > .card.big { position: sticky; top: calc(var(--header-h) + 10px); align-self: start; }
  .embed .beast-hero > .card.big { top: 10px; }
}

/* fact lists (not steps) get a gem instead of a number */
.steps.facts li { padding-left: 46px; }
.steps.facts li::before { content: ""; left: 18px; top: 22px; width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); border: 2px solid #042843; background: linear-gradient(180deg, #ffe45a, #f8a100); box-shadow: 0 2px 0 #042843; }

/* taps */
.cmp-remove { z-index: 8; }
.chips a.chip { position: relative; }
.chips a.chip::after { content: ""; position: absolute; inset: -8px -2px; }
.pr-table summary { min-height: 44px; display: flex; align-items: center; }
.pr-name { display: none; }
@media (max-width: 640px), (orientation: landscape) and (max-height: 520px) {
  .pr-plot::before { content: none; }
  .pr-name { display: block; font: var(--display); font-size: 13px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 0 var(--ink); }
  .pr-beast .card-art { width: 44px; }
  .pr-col { grid-template-columns: 44px minmax(0, 1fr); }
}

/* arenas on narrow phones: compact special pills so two fit in a row */
@media (max-width: 480px) {
  .arena figcaption .specials { gap: 4px; }
  .arena figcaption .specials a.sp { gap: 4px; padding: 0 8px 0 3px; font-size: 11px; }
  .arena figcaption .specials a.sp img { width: 22px; height: 22px; }
}

/* calendar: the next event says so */
.next-chip { background: var(--gold) !important; color: #4a1500 !important; }

/* compare: one hint at a time, a note when the link was cleaned */
main:has([data-cmp-empty]:not([hidden])) h1 + p { display: none; }
.cmp-note { margin: 0 auto var(--s3); max-width: 760px; padding: 10px 14px; border-radius: 12px; background: rgba(1, 22, 77, .45); color: var(--text-2); font-size: 14px; }

/* phones held sideways: header slides away while scrolling down; compare tray is a slim full-width bar */
.top { transition: transform .2s ease-out; }
@media (orientation: landscape) and (max-height: 520px) {
  .hdr-hidden { --header-h: 0px; }
  .hdr-hidden .top { transform: translateY(-100%); }
  .compare-tray { width: calc(100% - 16px); bottom: 8px; padding: 4px 8px; border-radius: 14px; }
  .compare-tray .btn { --bh: 40px; }
  .tray-slots { grid-template-columns: repeat(4, 36px); }
  .tray-slot, .tray-x { width: 36px; height: 36px; }
}
.adv-legend .dot.special { display: block; }

/* ---------- review round 6 ---------- */
/* in the game: Back stays at hand - pinned top-left, hides while reading down, and again at the end of the page */
.embed .embed-back:not(.embed-back-end) { position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 30; padding: 0 16px 0 4px; border-radius: 22px; background: rgba(1, 22, 77, .88); box-shadow: 0 4px 12px rgba(0, 10, 42, .4); transition: transform .2s ease-out; }
.embed.back-hidden .embed-back:not(.embed-back-end) { transform: translateY(calc(-100% - 16px)); }
.embed .embed-back-end { margin: var(--s4) 0 0; }
.embed .news-list .post h2 a { cursor: default; }

/* compare tray thumbnails remove a beast when tapped */
.tray-slot button { all: unset; display: block; width: 100%; height: 100%; cursor: pointer; }
.tray-slot button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tray-slot img { width: 100%; height: 100%; object-fit: cover; }

/* news feed: one Share button, no divider */
.news-list .share { margin-top: var(--s2); padding-top: 0; border-top: 0; }

/* calendar: week headings, readable LIVE badge, tighter objective titles kept legible */
.cal-week { list-style: none; margin: var(--s4) 0 0; }
.cal-week:first-child { margin-top: 0; }
.cal-week h3 { margin: 0; font: var(--display); font-size: 17px; text-transform: uppercase; color: var(--cream); text-shadow: 0 2px 0 var(--ink); }
.live-badge { background: #23820a; }
.cal-body b { line-height: 1.2; }
.cal-date small { font-size: 12px; }
.subnav .filter { min-height: 44px; }

/* Ultimate badge in the game's outline style */
.skill.active .kind { -webkit-text-stroke: 3px #5c0c48; paint-order: stroke fill; text-shadow: 0 1px 0 #5c0c48; }

/* ranks tiers are h2 now; keep their size */
.rank-tier { margin: 0 0 var(--s2); font-size: 22px; }

/* fact gems are blue so gold keeps meaning Legendary / selected */
.steps.facts li::before { background: linear-gradient(180deg, #3fd0ff, #0f8cf5); }

/* full-screen arena position */
.lb-count { font: 700 13px "Saira", sans-serif; color: var(--text-3); text-transform: none; }

/* small text floor */
@media (max-width: 480px) { .arena figcaption .specials a.sp { font-size: 12px; } }
.cmp-slot .card-name small { font-size: max(11px, .8em); }

/* calm hover on cards; footer links share a baseline */
.card { transition: transform .14s ease-out; }
.foot a:not(.social) { margin-block: -12px; vertical-align: middle; }

/* compare: say what the gold outline means */
.cmp-legend { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.cmp-legend i { display: inline-block; width: 14px; height: 10px; margin-right: 6px; border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(254, 201, 0, .75); vertical-align: middle; }

/* pick-rate on low screens: columns read top to bottom */
@media (orientation: landscape) and (max-height: 520px) { .pr-cols { grid-auto-flow: column; grid-template-rows: repeat(5, auto); } }

/* ---------- review round 7 ---------- */
/* in the game the pinned Back sits above sticky rows instead of over them */
.embed .cmp-head { transition: top .2s ease-out; }
.embed:not(.back-hidden) .cmp-head { top: 60px; }
@media (orientation: landscape) and (max-height: 520px) {
  .embed:not(.back-hidden) .beast-hero > .card.big { top: 62px; }
}

/* compare tray: every control 44px */
.tray-slots { grid-template-columns: repeat(4, 44px); gap: 6px; }
.tray-slot, .tray-x { width: 44px; height: 44px; }
.compare-tray .btn { --bh: 44px; }
@media (max-width: 400px) { .tray-slots { grid-template-columns: repeat(4, 44px); gap: 4px; } .tray-slot { width: 44px; height: 44px; } .compare-tray { gap: 6px; padding: 6px 8px; } }
@media (max-width: 359px) { .tray-slots { grid-template-columns: repeat(4, 40px); } .tray-slot, .tray-x { width: 40px; height: 40px; } }
@media (orientation: landscape) and (max-height: 520px) {
  .tray-slots { grid-template-columns: repeat(4, 44px); }
  .tray-slot, .tray-x { width: 44px; height: 44px; }
  .compare-tray .btn { --bh: 44px; }
  main:has([data-compare-tray]) .section-title h1 { font-size: 26px; margin: 0; }
  main:has([data-compare-tray]) .search-row, main:has([data-compare-tray]) .filter-selects { margin-bottom: 6px; }
  .compare-mode .beast-grid { padding-bottom: 72px; }
}

/* compare legend sits above the table and matches the coloured outlines */
.cmp-legend { margin: 0 0 8px; }
.cmp-legend i { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }

/* beasts filters on narrow phones: the dropdown label is in aria-label, so the visible prefix goes and LEGENDARY fits */
@media (max-width: 420px) { .filter-selects .sort > span { display: none; } }

/* upgrades rarity toggles: 2x2, 44px */
@media (max-width: 480px) {
  [data-rar-pills] { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; -webkit-mask-image: none; mask-image: none; margin-inline: 0; padding-inline: 0; }
  [data-rar-pills] .filter { min-height: 44px; justify-content: center; }
}

/* full-screen arena keeps clear of the notch and rounded corners */
.lightbox[open] { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); box-sizing: border-box; }
.lb-close { right: calc(12px + env(safe-area-inset-right)); }

/* beast stats: never one tile alone on a row */
@media (min-width: 521px) { .statline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 521px) and (max-width: 700px) { .statline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- review round 8 ---------- */
/* compare picker: a real panel, not see-through */
.picker { background: linear-gradient(180deg, #2e54a0, #22448a); border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 50px rgba(0, 10, 42, .55); }
.picker::backdrop { background: rgba(0, 10, 42, .85); }
@media (orientation: landscape) and (max-height: 520px) { .picker { max-height: calc(100dvh - 16px); } }

/* compare mode: the status line keeps its place, so the grid never jumps */
.compare-hint { min-height: 1.5em; }

/* intro text on the bright top of the sky: darker centre, white links */
body::before { background: radial-gradient(120% 60% at 50% 0%, #3474b8 0%, transparent 70%), linear-gradient(180deg, var(--sky-1) 0%, #295fa3 35%, var(--sky-2) 100%); }
main > .wrap > p { color: #fff; }
main > .wrap > p a { color: #fff; text-decoration-color: rgba(255, 255, 255, .7); }

/* upgrades rarity toggles 44px everywhere */
[data-rar-pills] .filter { min-height: 44px; }

/* readable FAQ measure on wide screens */
.faq p { max-width: 70ch; }

/* level table on narrow phones says it scrolls */
.swipe-hint { display: none; }
@media (max-width: 480px) { .swipe-hint { display: block; margin: 0 0 8px; font-size: 14px; color: var(--cream); } }

/* ---------- official store badges: shown as Apple and Google supply them, never restyled ---------- */
.stores { align-items: center; gap: 4px 12px; }
.store-badge { display: inline-flex; flex: none; line-height: 0; border-radius: 9px; transition: transform .12s ease-out, filter .12s; }
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.store-badge:active { transform: translateY(1px); }
.store-badge:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Apple's badge has no built-in margin: 48px tall with a quarter-height clear space */
.store-badge.app-store img { height: 48px; width: auto; margin: 12px; }
/* Google's PNG carries its own clear space; 72px tall puts the badge itself at 48px */
.store-badge.google-play img { height: 72px; width: auto; }
@media (orientation: landscape) and (max-height: 520px) {
  .store-badge.app-store img { height: 40px; margin: 10px; }
  .store-badge.google-play img { height: 60px; }
}
.os-ios .store-badge[data-os="android"], .os-android .store-badge[data-os="ios"] { display: none; }

/* desktop hero: logo, headline, intro and store badges centred */
@media (min-width: 760px) and (min-height: 521px) {
  .hero-copy { text-align: center; }
  .hero-copy .logo, .landing-hero .lead { margin-left: auto; margin-right: auto; }
  .landing-hero .stores { justify-content: center; }
  .landing-hero::after { background: linear-gradient(180deg, rgba(1, 22, 77, 0) 32%, rgba(1, 22, 77, .55) 58%, rgba(1, 22, 77, .95) 100%); }
}

/* home hero fills the screen below the header, with a tappable arrow down to the news (not on phones held sideways, where the news must peek in) */
@media (orientation: portrait), (min-height: 521px) {
  .landing-hero { min-height: calc(100svh - var(--header-h)); }
  .landing-hero .hero-copy { padding-bottom: 104px; }
}
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 56px; height: 56px; margin-left: -28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(1, 22, 77, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); animation: hero-nudge 2.2s ease-in-out infinite; transition: background .15s; }
.hero-scroll:hover { background: rgba(1, 22, 77, .6); color: #fff; }
.hero-scroll:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero-scroll svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgba(1, 22, 77, .6)); }
@keyframes hero-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (orientation: landscape) and (max-height: 520px) { .hero-scroll { display: none; } }
#latest-news { scroll-margin-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* news: avatar teaser - three shown, the rest locked until the game */
.post-visual.avatars { display: grid; grid-template-columns: 44fr 28fr 28fr; grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 3px; aspect-ratio: 16 / 9; }
.av.shown { grid-column: 1; }
.headline .post-visual.avatars { aspect-ratio: 16 / 9; }
.av { position: relative; overflow: hidden; background: var(--navy-3); }
.post-visual .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.av.locked img { filter: blur(6px) saturate(.7) brightness(.5); transform: scale(1.25); }
.av.locked svg { position: absolute; left: 50%; top: 50%; width: 30%; max-width: 34px; translate: -50% -50%; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 rgba(1, 22, 77, .8)); }
.av.more { display: grid; place-content: center; text-align: center; color: #fff; background: radial-gradient(circle at 50% 40%, #3f63a8, var(--ink)); line-height: 1.05; }
.av.more b { font: var(--display); font-size: clamp(18px, 4vw, 30px); color: var(--gold); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.av.more small { font-size: clamp(10px, 1.6vw, 13px); font-weight: 700; opacity: .9; }
.av.more { container-type: size; }
.av.more small { white-space: nowrap; }
@container (max-width: 78px) { .av.more small { display: none; } }

/* community: socials under the Discord button, Steam wishlist band */
.discord-cta:has(+ .follow-row) { margin-bottom: var(--s3); }
.follow-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s3); margin: 0 0 var(--s6); }
.follow-row .btn { width: 100%; --bh: 52px; font-size: 19px; }
.follow-row .btn .si { width: 26px; height: 26px; }
.btn.tiktok { --f1: #4a4a52; --f2: #1c1c21; --f3: #050506; --lip: #000; --edge: #000; }
.btn.tiktok .si { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.btn.instagram { --lip: #8a1a68; --edge: #3d0b45; --icon-bg: #d6249f; background: linear-gradient(100deg, #feda75 0%, #fa7e1e 22%, #d62976 52%, #962fbf 78%, #4f5bd5 100%); }
.btn.youtube { --f1: #ff7a7a; --f2: #e3262c; --f3: #c4161c; --lip: #8d0d12; --edge: #4a0507; --icon-bg: #c4161c; }
.btn.x { --f1: #6b6f78; --f2: #33363d; --f3: #1f2126; --lip: #0b0c0e; --edge: #000; --icon-bg: #1f2126; }
.btn.facebook { --f1: #8fbaff; --f2: #4a8ff0; --f3: #2f74dc; --lip: #1a4c9c; --edge: #0b2550; --icon-bg: #2f74dc; }

.btn.steam { --f1: #74c9f7; --f2: #2f9ad8; --f3: #1f7fbd; --lip: #135a88; --edge: #0b2a44; --icon-bg: #1f7fbd; z-index: 1; }
@media (max-width: 640px) {
}
.cta .cta-steam { margin: var(--s5) 0 var(--s2); padding-top: var(--s4); border-top: 1px solid rgba(255, 255, 255, .22); font-size: 16px; }

/* home: the closing section carries the game's art; phones lead with their store, Steam stays a quiet link */
.cta-final { position: relative; isolation: isolate; overflow: hidden; padding: 56px 24px 40px; background: var(--ink); }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 22, 77, .55), rgba(1, 22, 77, .88)), var(--cta-art) center 30% / cover no-repeat; }
.cta-final h2 { font-size: clamp(30px, 5vw, 48px); }
.cta-final .stores { margin-top: var(--s4); }
.cta-final .cta-steam { border-top-color: rgba(255, 255, 255, .28); }
.cta-steam-link { display: none; color: #fff; font-weight: 700; }
.os-ios .cta-steam-link, .os-android .cta-steam-link { display: inline; }
.os-ios .cta-steam-btn, .os-android .cta-steam-btn { display: none; }

/* ---------- community panel at the end of News pages ---------- */
.community { margin: var(--s5) 0 var(--s6); padding: 18px 22px; }
.cm-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); }
.community h2 { margin: 0 0 2px; font-size: 21px; }
.community p { margin: 0; color: var(--text-3); }
.cm-links { display: flex; gap: 10px; }
.btn.sq { width: var(--bh); padding: 0; justify-content: center; }
.btn.sq .si { width: 22px; height: 22px; margin: 0; }
.cm-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: var(--s3) !important; padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.cm-rate a { color: var(--cream); font-weight: 700; }
.os-ios .cm-rate [data-os="android"], .os-android .cm-rate [data-os="ios"] { display: none; }
html:not(.os-ios):not(.os-android) .cm-rate a + a::before { content: "or "; color: var(--text-3); font-weight: 500; }
.cm-stars { display: inline-flex; gap: 2px; margin-right: 4px; }
.cm-stars svg { width: 14px; height: 14px; fill: var(--gold); }
@media (max-width: 560px) {
  .community { padding: 16px; }
  .cm-links { width: 100%; }
  .cm-links .btn.discord { flex: 1; }
}

/* ---------- language picker: globe button in the top bar, full name in the footer ---------- */
.lang-pick { position: relative; flex: none; }
.lang-pick summary { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; list-style: none; cursor: pointer; color: #fff; font: var(--display); font-size: 15px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: .8; }
.lang-pick[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.lang-pick summary:hover { background: rgba(255, 255, 255, .14); }
.lang-pick summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang-pick .si { width: 20px; height: 20px; }
.lang-menu { position: absolute; z-index: 40; right: 0; top: calc(100% + 8px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: max-content; min-width: 300px; max-width: calc(100vw - 24px); padding: 8px; border-radius: 14px; background: #0a2a6e; box-shadow: 0 0 0 2px var(--ink), 0 12px 28px rgba(0, 10, 42, .55); }
.lang-menu { text-align: left; line-height: 1.2; }
.lang-pick .lang-menu a { display: block; margin: 0; padding: 9px 12px; border-radius: 9px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lang-pick .lang-menu a:hover { background: rgba(255, 255, 255, .1); }
.lang-pick .lang-menu a[aria-current] { color: var(--ink); background: var(--gold); }
.lang-pick.foot { display: inline-block; margin: 0 auto var(--s3); }
.lang-pick.foot summary { font: 700 15px/1 "Saira", system-ui, sans-serif; }
.lang-pick.foot .lang-menu { top: auto; bottom: calc(100% + 8px); left: 50%; right: auto; transform: translateX(-50%); }
/* the phone's top bar is full with four tabs and Discord: there the footer picker is the way in */
@media (max-width: 759px) {
  .lang-pick.top summary { width: 36px; height: 40px; padding: 0; justify-content: center; border-radius: 10px; }
  .lang-pick.top summary span, .lang-pick.top summary::after { display: none; }
  .lang-pick.top .lang-menu { right: -42px; min-width: 0; width: min(320px, calc(100vw - 20px)); }
  .top .wrap { gap: 4px; }
  .top .tabs { gap: 3px; }
  .top .tab { padding-inline: 1px; }
  .top-discord { --bh: 40px; width: 38px; margin-left: 0; }
  .brand img { height: 30px; }
  .top .tabs, .top .tab { min-width: 0; }
  .top .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .top .tab span { max-width: 100%; overflow: hidden; text-overflow: clip; font-size: clamp(8px, 2.6vw, 10px); }
}

/* Controls: drawings of each control and setting on top of its card */
.ctl-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-bottom: var(--s5); }
@media (min-width: 700px) { .ctl.wide { grid-column: span 2; } }
.ctl { padding: 12px 12px 16px; }
.ctl-pics { display: flex; gap: 10px; margin-bottom: 12px; }
.ctl-pics figure { flex: 1; min-width: 0; margin: 0; }
.ctl-pics img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; }
.ctl-pics figcaption { margin-top: 6px; text-align: center; font: var(--display); font-size: 14px; text-transform: uppercase; }
.ctl h3 { margin: 0 6px 4px; font: var(--display); font-size: 18px; text-transform: uppercase; }
.ctl p { margin: 0 6px; color: var(--text-2); }
.ctl p b { color: #fff; }

