/* «Ночь заражения». Halloween scene on top of the GenesisTanki look:
   main site — QuadratBold, chamfered buttons, grid overlay, board cards, rating table;
   shop — translucent cards, outlined uppercase buttons, "+" lists. */
@font-face {
  font-family: "QuadratBold";
  src: url("/fonts/QuadratGroteskNewW03-Bold.woff2") format("woff2"), url("/fonts/QuadratGroteskNewW03-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0705;
  --bg-2: #110a07;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .07);
  --glass-border: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .06);
  --text: #f7efe7;
  --muted: #b9a99c;
  --dim: #7d6b5f;
  --orange: #f97316;
  --orange-2: #fb923c;
  --ember: #fdba74;
  --red: #dc2626;
  --red-2: #ef4444;
  --red-dark: #991b1b;
  --accent-soft: rgba(249, 115, 22, .14);
  --accent-border: rgba(251, 146, 60, .45);
  --human: #60a5fa;
  --human-rgb: 96, 165, 250;
  --zombie: #ef4444;
  --zombie-rgb: 239, 68, 68;
  --fire: linear-gradient(90deg, #dc2626, #f97316 60%, #fbbf24);
  --f-display: "QuadratBold", "Space Grotesk", sans-serif;
  --f-drip: "Rubik Wet Paint", "QuadratBold", sans-serif;
  --f-label: "Space Grotesk", "Inter", sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: .75rem;
  --clip: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
button, input { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: #1a0a03; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #33221a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; }
.accent { color: var(--orange); }

body { background: var(--bg); color: var(--text); font-family: var(--f-body); line-height: 1.55; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
.site { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
/* main site: faint grid over the whole page */
.site::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(249, 115, 22, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(249, 115, 22, .035) 1px, transparent 1px);
  background-size: 40px 40px;
}
.site > * { position: relative; z-index: 1; }
.site > .nav { position: sticky; z-index: 50; }
.site > .to-top { position: fixed; z-index: 40; }
.site__main { flex: 1; }
.wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 max(1rem, env(safe-area-inset-left)); }
.wrap--mid { max-width: 56rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 2rem; } }

/* Shared card: shop glass + main-site hairline on top */
.scroll, .tally, .grid-steal, .ritual, .slab, .hall, .ward, .riddle, .relic, .counter, .trophy, .meter, .summon, .dossier {
  position: relative; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.scroll::before, .slab::before, .hall::before, .meter::before, .ritual::before, .relic::before, .tally::before, .grid-steal::before {
  content: ""; position: absolute; top: -1px; left: 1.25rem; right: 1.25rem; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(251, 146, 60, .9), transparent);
}

/* ---------- Navigation (main site layout) ---------- */
.nav { top: 0; background: rgba(14, 9, 7, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid #2a1c15; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(249, 115, 22, .55), rgba(220, 38, 38, .45), transparent); }
.nav__inner { display: flex; align-items: center; gap: 1rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; margin-right: auto; }
.brand__logo { flex-shrink: 0; width: auto; height: 2.25rem; object-fit: contain; filter: drop-shadow(0 0 6px rgba(249, 115, 22, .55)); }
.brand__name { font: 800 1.15rem var(--f-label); letter-spacing: -.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__tag {
  display: none; align-items: center; gap: .3rem; padding: .18rem .55rem; border: 1px solid var(--accent-border); border-radius: 999px;
  color: var(--ember); background: var(--accent-soft); font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
@media (min-width: 480px) { .brand__tag { display: inline-flex; } }
@media (min-width: 1024px) and (max-width: 1200px) { .brand__tag { display: none; } }
@media (max-width: 400px) { .brand__name { font-size: 1rem; } }
.nav__links { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__link { position: relative; padding: .4rem 0; color: #d6c9be; font: 500 .85rem var(--f-body); letter-spacing: .04em; text-transform: uppercase; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1rem; height: 2px; background: var(--fire); transform: scaleX(0); transition: transform .25s; }
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: var(--orange-2); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: .5rem; }
.lang { display: flex; gap: .25rem; }
/* shop-style outlined buttons */
.lang__item {
  display: inline-flex; align-items: center; justify-content: center; padding: .4rem .65rem; border-radius: 7px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .04); color: var(--muted);
  font: 600 .7rem var(--f-body); letter-spacing: 2px; text-transform: uppercase; transition: .2s;
}
.lang__item:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.lang__item.is-active { color: #fff; border-color: var(--accent-border); background: var(--accent-soft); }
.burger { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.5rem; border-radius: .4rem; color: var(--muted); }
.burger:hover { color: #fff; background: rgba(255, 255, 255, .06); }
@media (min-width: 1024px) { .burger { display: none; } }
.mmenu { display: grid; gap: .25rem; padding: .5rem 1rem 1rem; border-top: 1px solid #2a1c15; background: #0e0907; }
@media (min-width: 1024px) { .mmenu { display: none !important; } }
.mmenu__link { display: flex; align-items: center; justify-content: space-between; padding: .8rem .9rem; border-radius: .4rem; font: 700 1rem var(--f-label); text-transform: uppercase; color: #d6c9be; }
.mmenu__link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.mmenu__link.is-active { color: #fff; background: rgba(249, 115, 22, .16); border-left: 4px solid var(--orange); }
.mmenu__link--ext { color: var(--dim); font-size: .85rem; }

/* ---------- Night sky ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #160805 0%, #1b0a06 35%, var(--bg) 100%); }
.sky__glow { position: absolute; inset: 0; background: radial-gradient(55% 55% at 78% 22%, rgba(234, 88, 12, .32), transparent 70%), radial-gradient(60% 40% at 15% 100%, rgba(127, 29, 29, .35), transparent 70%); }
.sky__stars {
  position: absolute; inset: 0 0 40% 0; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 8% 14%, #fff, transparent), radial-gradient(1px 1px at 19% 32%, #fed7aa, transparent),
    radial-gradient(1.5px 1.5px at 31% 9%, #fff, transparent), radial-gradient(1px 1px at 42% 27%, #fff, transparent),
    radial-gradient(1px 1px at 55% 6%, #fde68a, transparent), radial-gradient(1px 1px at 61% 38%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 52%, #fff, transparent), radial-gradient(1px 1px at 94% 12%, #fed7aa, transparent),
    radial-gradient(1px 1px at 3% 48%, #fff, transparent), radial-gradient(1px 1px at 36% 55%, #fff, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.moon {
  position: absolute; top: 9%; right: 7%; width: clamp(9rem, 30vw, 24rem); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #ffedd5 0%, #fdba74 22%, #f97316 50%, #c2410c 76%, #7c2d12 100%);
  box-shadow: 0 0 80px 20px rgba(249, 115, 22, .45), 0 0 220px 90px rgba(220, 38, 38, .22), inset -18px -24px 60px rgba(124, 45, 18, .7);
  animation: moon-breathe 8s ease-in-out infinite;
}
.moon span { position: absolute; border-radius: 50%; background: rgba(154, 52, 18, .45); box-shadow: inset 2px 3px 6px rgba(0, 0, 0, .25); }
.moon span:nth-child(1) { width: 20%; height: 20%; top: 26%; left: 56%; }
.moon span:nth-child(2) { width: 12%; height: 12%; top: 58%; left: 28%; }
.moon span:nth-child(3) { width: 8%; height: 8%; top: 66%; left: 64%; }
.sky--band .moon { top: -30%; right: 4%; width: clamp(8rem, 22vw, 15rem); opacity: .85; }
@media (max-width: 767px) { .moon { right: -14%; top: 3%; opacity: .6; } }
.fog { position: absolute; inset: 0; }
.fog span {
  position: absolute; left: -50%; width: 200%; bottom: -8%; height: 50%;
  background:
    radial-gradient(36% 60% at 18% 60%, rgba(214, 196, 180, .1), transparent 70%),
    radial-gradient(30% 50% at 52% 45%, rgba(214, 196, 180, .08), transparent 70%),
    radial-gradient(28% 55% at 84% 65%, rgba(214, 196, 180, .1), transparent 70%);
  animation: fog-drift 36s ease-in-out infinite alternate;
}
.fog span:nth-child(2) { bottom: 12%; height: 42%; opacity: .6; animation-duration: 52s; animation-direction: alternate-reverse; }
.fog span:nth-child(3) { bottom: 30%; height: 36%; opacity: .3; animation-duration: 75s; }
.embers span {
  position: absolute; bottom: -10px; left: var(--x); width: var(--size); height: var(--size); border-radius: 50%;
  background: #fdba74; box-shadow: 0 0 6px 2px rgba(249, 115, 22, .8); animation: ember var(--time) linear infinite; animation-delay: var(--delay); opacity: 0;
}
.skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(7rem, 18vw, 15rem); }
.skyline__far { fill: #190c07; }
.skyline__near { fill: var(--bg); stroke: var(--bg); }
.skyline__near path[fill="none"] { fill: none; }

@keyframes twinkle { to { opacity: .35; } }
@keyframes moon-breathe { 50% { box-shadow: 0 0 110px 30px rgba(249, 115, 22, .55), 0 0 260px 110px rgba(220, 38, 38, .28), inset -18px -24px 60px rgba(124, 45, 18, .7); } }
@keyframes fog-drift { to { transform: translateX(22%); } }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: .7; } 100% { transform: translate(var(--drift), -70vh); opacity: 0; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 42% { opacity: 1; } 44% { opacity: .75; } 46% { opacity: 1; } 71% { opacity: .9; } }

/* ---------- Hero (main site composition) ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: min(calc(100svh - 4rem), 56rem); padding: 3.5rem 0 9rem; overflow: hidden; border-bottom: 1px solid rgba(249, 115, 22, .25); }
/* Wallpaper with a dark veil on the text side and a fade into the page at the bottom */
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 6, 4, .85) 0%, rgba(10, 6, 4, .55) 45%, rgba(10, 6, 4, .15) 100%),
    url('/img/wallpaper.png') center / cover no-repeat;
}
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 1024px) { .hero__content > * { max-width: 46rem; } }
.hero__dates {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: 6px;
  border: 1px dashed rgba(253, 186, 116, .35); background: rgba(255, 255, 255, .05); color: var(--ember); font: 500 .78rem var(--f-mono); letter-spacing: .04em;
}
.hero__title { position: relative; display: flex; flex-direction: column; line-height: .9; }
.hero__ghost {
  display: none; position: absolute; top: -1.25rem; left: -1.25rem; color: rgba(255, 255, 255, .05);
  font: 400 clamp(3rem, 13vw, 6.5rem)/.95 var(--f-drip); filter: blur(4px); user-select: none;
}
@media (min-width: 768px) { .hero__ghost { display: block; } }
.hero__title-a, .hero__title-b {
  position: relative; font: 400 clamp(3rem, 13vw, 6.5rem)/.95 var(--f-drip); color: #fff;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .8)) drop-shadow(0 0 22px rgba(249, 115, 22, .4));
}
.hero__title-b {
  font-size: clamp(2.6rem, 11vw, 6rem); padding-bottom: .1em; color: transparent;
  background: linear-gradient(180deg, #fdba74 0%, #f97316 45%, #dc2626 80%, #7f1d1d 100%); -webkit-background-clip: text; background-clip: text;
}
.hero__lead {
  margin-top: 1.75rem; padding: .85rem 1.1rem; border-left: 4px solid var(--orange); background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 0 15px rgba(249, 115, 22, .18);
  color: #e3d6cb; font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.65;
}
.hero__actions { display: flex; margin-top: 2rem; }

.phase {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px;
  border: 1px solid var(--accent-border); background: rgba(0, 0, 0, .55); color: var(--ember);
  font: 600 .72rem var(--f-body); letter-spacing: 2px; text-transform: uppercase;
}
.phase__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(249, 115, 22, .2); animation: flicker 2s infinite; }
.phase--ended { border-color: var(--glass-border); color: var(--muted); }
.phase--ended .phase__dot { background: var(--dim); box-shadow: none; animation: none; }

/* main-site chamfered button, orange */
.cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1.15rem 2rem;
  color: #fff; background: linear-gradient(180deg, #ea580c, #b91c1c); clip-path: var(--clip);
  font: bold 1.2rem/1.5rem var(--f-display); text-transform: uppercase; box-shadow: 0 0 20px rgba(234, 88, 12, .4); transition: all .2s;
}
@media (min-width: 640px) { .cta { padding: 1.4rem 2.75rem; font-size: 1.35rem; } }
.cta:hover { background: linear-gradient(180deg, #f97316, #dc2626); box-shadow: 0 0 40px rgba(249, 115, 22, .6); transform: translateY(-.25rem); }
.cta__shine { position: absolute; inset: 0; background: rgba(255, 255, 255, .25); clip-path: var(--clip); opacity: 0; transition: opacity .2s; }
.cta:hover .cta__shine { opacity: 1; }
.cta--small { padding: .85rem 1.5rem; font-size: 1rem; }

/* ---------- Versus strip (main-site hero stat pill) ---------- */
.vs-strip {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem 1rem; width: min(100%, 32rem); margin-top: 2rem;
  padding: .8rem 1.1rem; border-radius: .75rem; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: border-color .2s;
}
.vs-strip:hover { border-color: var(--accent-border); }
.vs-strip__side { display: flex; align-items: baseline; gap: .45rem; color: var(--muted); font: 500 .8rem var(--f-label); }
.vs-strip__side b { font: 700 1.25rem/1 var(--f-mono); }
.vs-strip__side--humans b { color: var(--human); }
.vs-strip__side--zombies b { color: var(--zombie); }
.vs-strip__caption { grid-column: 1 / -1; color: var(--dim); font: 600 .66rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.vs-strip__bar { position: relative; display: block; height: .4rem; border-radius: 999px; background: linear-gradient(90deg, #7f1d1d, var(--zombie)); }
.vs-strip__bar--big { height: .7rem; }
.vs-strip__fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px 0 0 999px; background: linear-gradient(90deg, #1e3a8a, var(--human)); }
.vs-strip__spark {
  position: absolute; top: 50%; left: var(--w); width: 1rem; height: 1rem; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, #fff7ed, #fdba74 40%, rgba(249, 115, 22, 0) 70%); box-shadow: 0 0 16px 4px rgba(249, 115, 22, .7); animation: flicker 1.8s infinite;
}
.vs-strip__bar--big .vs-strip__spark { width: 1.5rem; height: 1.5rem; }

/* ---------- Sections (main/recruit heading layout) ---------- */
.sec { position: relative; padding: 4.5rem 0; scroll-margin-top: 4rem; border-bottom: 1px solid rgba(255, 255, 255, .04); }
@media (min-width: 768px) { .sec { padding: 6rem 0; } }
.sec--tight { padding-top: 2.5rem; border-bottom: 0; }
.sec--blood { background: radial-gradient(ellipse at top, rgba(220, 38, 38, .16), transparent 60%), var(--bg-2); }
.sec--ash { background: radial-gradient(ellipse at top, rgba(249, 115, 22, .1), transparent 60%), linear-gradient(180deg, #0c0806, #120b08 50%, #0c0806); }
.head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.25rem; }
@media (min-width: 768px) { .head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; } }
.head__title { margin-top: .5rem; padding-left: 1rem; border-left: 4px solid var(--orange); font: bold clamp(1.8rem, 5vw, 2.75rem)/1.05 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; }
.head__lead { max-width: 30rem; color: var(--muted); font-size: .95rem; line-height: 1.7; }

.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.js .rise-on { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .rise-on.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Factions ---------- */
.sides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
@media (min-width: 900px) { .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.side { position: relative; overflow: hidden; padding: 2rem 1.5rem 1.75rem; border-radius: 1rem; transition: box-shadow .25s; }
@media (min-width: 640px) { .side { padding: 2.5rem 2.25rem 2rem; } }
.side::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.side:hover::after { transform: scaleX(1); }
.side--humans { background: radial-gradient(120% 140% at 0% 0%, rgba(var(--human-rgb), .18), transparent 60%), rgba(255, 255, 255, .04); border: 1px solid rgba(var(--human-rgb), .3); }
.side--humans::after { background: var(--human); }
.side--humans:hover { box-shadow: 0 18px 40px -18px rgba(var(--human-rgb), .5); }
.side--zombies { background: radial-gradient(120% 140% at 100% 0%, rgba(var(--zombie-rgb), .22), transparent 60%), rgba(255, 255, 255, .04); border: 1px solid rgba(var(--zombie-rgb), .35); }
.side--zombies::after { background: var(--zombie); }
.side--zombies:hover { box-shadow: 0 18px 40px -18px rgba(var(--zombie-rgb), .55); }
.side__beam { position: absolute; top: -20%; left: -10%; width: 70%; height: 140%; background: linear-gradient(115deg, rgba(219, 234, 254, .1), transparent 55%); transform: rotate(-8deg); pointer-events: none; }
.side .drip { position: absolute; top: 0; left: 0; width: 100%; height: 2.25rem; fill: var(--red-dark); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.side__team { position: relative; font: 500 .72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.side--humans .side__team { color: var(--human); }
.side--zombies .side__team { color: #fca5a5; }
.side__name { position: relative; margin: .6rem 0 1.25rem; color: #fff; font: bold clamp(2.4rem, 8vw, 3.5rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; }
.side--humans .side__name { text-shadow: 0 0 30px rgba(var(--human-rgb), .5); }
.side--zombies .side__name { text-shadow: 0 0 30px rgba(var(--zombie-rgb), .6); }
.side__kit { position: relative; display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.side__kit span { display: flex; flex-direction: column; padding: .55rem 1rem; border-radius: 7px; background: rgba(0, 0, 0, .4); border: 1px solid var(--glass-border); font: 700 1.1rem var(--f-label); }
.side__kit small { color: var(--dim); font: 500 .62rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.side__text { position: relative; color: var(--muted); line-height: 1.7; }
.side__note { position: relative; display: flex; align-items: center; gap: .45rem; margin-top: 1.25rem; color: var(--dim); font-size: .82rem; }


.scrolls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .scrolls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scroll { padding: 1.75rem 1.5rem; }
@media (min-width: 640px) { .scroll { padding: 2rem; } }
.scroll__title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; font: 700 1.25rem var(--f-label); }
.scroll__title svg { color: var(--orange); }
.runes { display: grid; gap: 1rem; }
.runes li { padding-left: 1rem; border-left: 2px solid rgba(249, 115, 22, .45); }
.runes strong { display: block; font: 600 1rem var(--f-label); }
.runes p { margin-top: .2rem; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.scroll__req { display: flex; gap: .55rem; margin-top: 1.5rem; padding: .8rem 1rem; border-radius: 7px; border: 1px dashed rgba(253, 186, 116, .4); background: rgba(255, 255, 255, .03); color: var(--ember); font-size: .88rem; }
.scroll__req b { color: #fff; }

/* ---------- Theft rules ---------- */
.theft { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 1024px) { .theft { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.theft__tables { display: grid; gap: 1.25rem; }
.tally { overflow: hidden; }
.tally__row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .75rem; align-items: center; padding: .95rem 1.25rem; font-size: .92rem; }
.tally__row + .tally__row { border-top: 1px solid var(--line); }
.tally__row > :first-child { font-weight: 500; color: #fff; }
.tally__row--head { background: rgba(0, 0, 0, .25); color: var(--dim); font: 600 .72rem var(--f-label); letter-spacing: .06em; text-transform: uppercase; }
.tally__row--head > :first-child { color: var(--dim); font-weight: 600; }
.tally .is-humans { color: var(--human); }
.tally .is-zombies { color: var(--zombie); }
.tally .is-plus { color: #fbbf24; font-family: var(--f-mono); font-size: .85rem; }
.tally .is-minus { color: var(--zombie); font-family: var(--f-mono); font-size: .85rem; }
.tally .is-dim { color: var(--dim); }
@media (max-width: 479px) { .tally__row { grid-template-columns: 1fr 1fr; } .tally__row > :first-child { grid-column: 1 / -1; } .tally__row--head > :first-child { display: none; } }

.grid-steal { display: grid; grid-template-columns: minmax(6rem, .9fr) 1fr 1fr; gap: .5rem; padding: 1.25rem; }
.grid-steal__cap { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font: 700 1rem var(--f-label); }
.grid-steal__cap svg { color: var(--orange); }
.grid-steal__corner, .grid-steal__col { display: flex; align-items: center; gap: .35rem; color: var(--dim); font: 600 .7rem var(--f-label); letter-spacing: .06em; text-transform: uppercase; }
.grid-steal__col { justify-content: center; text-align: center; }
.grid-steal__col--moon { color: #fca5a5; }
.grid-steal__row { display: flex; align-items: center; gap: .45rem; font: 600 .92rem var(--f-label); }
.grid-steal__row svg { color: var(--orange-2); }
.grid-steal__cell { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .1rem .6rem; padding: .85rem .5rem; border-radius: 7px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); text-align: center; }
.grid-steal__cell .z, .grid-steal__cell .h { font: 700 1.45rem/1 var(--f-mono); }
.grid-steal__cell .z { color: #fbbf24; }
.grid-steal__cell .h { color: var(--human); }
.grid-steal__cell small { flex-basis: 100%; color: var(--dim); font-size: .7rem; }
.grid-steal__cell.is-hot { background: radial-gradient(circle, rgba(220, 38, 38, .28), rgba(0, 0, 0, .35)); border-color: rgba(239, 68, 68, .45); }
.grid-steal__cell.is-hot .h { color: #fca5a5; }

.ritual { padding: 1.75rem 1.5rem; background: radial-gradient(ellipse at top, rgba(249, 115, 22, .16), transparent 65%), var(--glass); border-color: rgba(249, 115, 22, .3); transition: box-shadow .4s, border-color .4s, background .4s; }
@media (min-width: 640px) { .ritual { padding: 2rem; } }
.ritual.is-moon { border-color: rgba(239, 68, 68, .6); box-shadow: 0 0 60px -10px rgba(220, 38, 38, .55); background: radial-gradient(ellipse at top, rgba(220, 38, 38, .3), transparent 65%), var(--glass); }
.ritual__title { display: flex; align-items: center; gap: .6rem; font: 700 1.3rem var(--f-label); }
.ritual__title svg { color: var(--orange); }
.ritual__lead { margin: .4rem 0 1.5rem; color: var(--muted); font-size: .9rem; }
.pick { min-width: 0; margin: 0 0 1.1rem; padding: 0; border: 0; }
.pick legend { margin-bottom: .5rem; padding: 0; color: var(--dim); font: 500 .68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.pick__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.pick label { position: relative; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick span {
  display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.6rem; padding: .4rem .5rem; border-radius: 7px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .04); color: var(--muted);
  font: 600 .7rem var(--f-body); letter-spacing: 1.5px; text-transform: uppercase; text-align: center; transition: .2s;
}
.pick label:hover span { color: #fff; border-color: rgba(255, 255, 255, .35); }
.pick input:checked + span { color: #fff; border-color: var(--accent-border); background: rgba(249, 115, 22, .25); box-shadow: inset 0 -2px 0 var(--orange); }
.pick--moon input[value="moon"]:checked + span { border-color: rgba(239, 68, 68, .6); background: rgba(220, 38, 38, .3); box-shadow: inset 0 -2px 0 var(--red-2), 0 0 18px -4px rgba(239, 68, 68, .7); }
.pick input:focus-visible + span { outline: 2px solid var(--orange-2); outline-offset: 2px; }
.ritual__kills { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0; font: 600 .95rem var(--f-label); }
.stepper { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--glass-border); border-radius: 7px; }
.stepper button { width: 2.5rem; height: 2.5rem; background: rgba(255, 255, 255, .04); color: var(--orange-2); font-size: 1.15rem; transition: .15s; }
.stepper button:hover { background: var(--accent-soft); color: #fff; }
.stepper input { width: 3.2rem; height: 2.5rem; border: 0; border-inline: 1px solid var(--glass-border); background: rgba(0, 0, 0, .35); color: #fff; text-align: center; font: 700 1.1rem var(--f-mono); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; color: var(--ember); }
.ritual__out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.omen { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem .4rem .85rem; border-radius: 50% 50% .4rem .4rem / 30% 30% .4rem .4rem; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); text-align: center; }
.omen b { font: 700 1.8rem/1 var(--f-mono); }
.omen span { color: var(--dim); font: 600 .62rem/1.25 var(--f-label); letter-spacing: .06em; text-transform: uppercase; }
.omen--zombies b { color: #fbbf24; }
.omen--humans b { color: var(--human); }


.notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .notes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.note { padding-top: 1rem; border-top: 1px solid rgba(249, 115, 22, .35); }
.note__title { margin-bottom: .4rem; color: #fff; font: 700 .98rem var(--f-label); }
.note__text { color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* ---------- Features ---------- */
.curses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 960px) { .curses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.curse {
  --a: #d6c4b4; --a-rgb: 214, 196, 180;
  position: relative; overflow: hidden; padding: 2rem 1.5rem 2.5rem; border-radius: 1rem 1rem 0 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(var(--a-rgb), .14), transparent 60%), var(--glass);
  border: 1px solid rgba(var(--a-rgb), .2); border-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 92% 100%, 84% calc(100% - 12px), 75% 100%, 66% calc(100% - 10px), 57% 100%, 48% calc(100% - 13px), 39% 100%, 30% calc(100% - 9px), 21% 100%, 12% calc(100% - 12px), 4% 100%, 0 calc(100% - 10px));
  transition: transform .3s;
}
.curse:hover, .js .curse.rise-on.is-in:hover { transform: translateY(-4px); }
.curse--hunter { --a: #fbbf24; --a-rgb: 251, 191, 36; }
.curse--moon { --a: #ef4444; --a-rgb: 239, 68, 68; background: radial-gradient(120% 140% at 100% 0%, rgba(220, 38, 38, .32), transparent 60%), rgba(60, 10, 10, .35); }
.curse__icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem; border-radius: .625rem; color: var(--a); background: rgba(var(--a-rgb), .1); border: 1px solid rgba(var(--a-rgb), .25); }
.curse__title { position: relative; font: bold 1.6rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; }
.curse--moon .curse__title { color: #fecaca; }
.curse__text { position: relative; margin: .6rem 0 1.1rem; color: #e7d8ca; font-size: .95rem; line-height: 1.6; }
.curse__list { position: relative; display: grid; gap: .55rem; }
/* shop "+" bullets */
.curse__list li { position: relative; padding-left: 1.15rem; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.curse__list li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--a); font-weight: 700; }


/* Prizes */
.relics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 768px) { .relics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.relic { position: relative; overflow: hidden; display: flex; gap: 1.25rem; padding: 1.75rem 1.5rem; border-color: rgba(249, 115, 22, .3); }
.relic__icon { display: grid; place-items: center; flex-shrink: 0; width: 3.75rem; height: 3.75rem; border-radius: .625rem; color: var(--orange-2); background: var(--accent-soft); border: 1px solid var(--accent-border); }
.relic__status { display: inline-flex; align-items: center; gap: .35rem; color: var(--orange-2); font: 500 .7rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.relic__title { margin: .35rem 0 .45rem; font: bold 1.3rem var(--f-display); text-transform: uppercase; }
.relic__text { color: var(--muted); font-size: .92rem; line-height: 1.65; }

.spoils { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 900px) { .spoils { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spoil { --c: #fbbf24; --c-rgb: 251, 191, 36; position: relative; padding: 1.5rem 1.25rem; border-radius: 1rem; background: radial-gradient(120% 90% at 0% 0%, rgba(var(--c-rgb), .14), transparent 60%), rgba(255, 255, 255, .04); border: 1px solid rgba(var(--c-rgb), .3); }
@media (min-width: 640px) { .spoil { padding: 2rem; } }
.spoil--loser { --c: #b9a99c; --c-rgb: 185, 169, 156; }
.spoil__title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; color: #fff; font: bold 1.35rem var(--f-display); text-transform: uppercase; }
.spoil__title svg { color: var(--c); }
.spoil__tiers { display: grid; gap: .75rem; }
.tier { display: grid; gap: .55rem; padding: .9rem 1rem; border-radius: .6rem; background: rgba(0, 0, 0, .35); border: 1px solid var(--glass-border); }
@media (min-width: 560px) { .tier { grid-template-columns: 7.5rem minmax(0, 1fr); align-items: start; } }
.tier--top { border-color: rgba(var(--c-rgb), .45); box-shadow: 0 0 24px -10px rgba(var(--c-rgb), .6); }
.tier__place { color: var(--c); font: 600 .78rem/1.9 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.tier__items { display: flex; flex-wrap: wrap; gap: .4rem; }
.tier__items li { padding: .25rem .6rem; border-radius: .35rem; background: var(--glass-2); border: 1px solid var(--line); color: var(--text); font-size: .84rem; line-height: 1.4; }
.spoil-note { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); border: 1px dashed var(--accent-border); background: var(--accent-soft); }
.spoil-note__icon { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--orange-2); background: rgba(0, 0, 0, .3); }
.spoil-note p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.spoil-note b { color: #fff; }

.wards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 640px) { .wards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ward { padding: 1.25rem; border-top: 2px solid var(--orange); }
.ward__title { font: 700 1rem var(--f-label); text-transform: uppercase; letter-spacing: .04em; }
.ward__text { margin-top: .45rem; color: var(--muted); font-size: .88rem; line-height: 1.6; }

/* ---------- FAQ ---------- */
.riddles { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-items: start; }
@media (min-width: 900px) { .riddles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.riddle { transition: background .3s, border-color .3s, box-shadow .3s; }
.riddle[open] { border-color: var(--accent-border); background: radial-gradient(ellipse at top, rgba(249, 115, 22, .14), transparent 70%), var(--glass-2); box-shadow: 0 0 40px -16px rgba(249, 115, 22, .6); }
.riddle summary { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; list-style: none; }
.riddle summary::-webkit-details-marker { display: none; }
.riddle__q { flex: 1; font: 600 1rem/1.35 var(--f-label); }
.riddle__toggle { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 7px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--ember); transition: transform .3s, background .3s, color .3s; }
.riddle[open] .riddle__toggle { transform: rotate(135deg); background: var(--orange); color: #1a0a03; border-color: transparent; }
.riddle summary:hover .riddle__q { color: var(--ember); }
.riddle__a { padding: 0 1.25rem 1.3rem; color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* ---------- Footer (main site columns) ---------- */
.foot { position: relative; margin-top: 3rem; padding: 2.5rem 0 max(1.5rem, env(safe-area-inset-bottom)); background: #070403; }
.foot__edge { position: absolute; left: 0; right: 0; top: -2.4rem; width: 100%; height: 2.5rem; fill: #070403; }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-bottom: 2rem; }
.foot__about { grid-column: 1 / -1; }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 3rem; } .foot__about { grid-column: auto; } }
.foot__brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.foot__note { max-width: 22rem; margin-bottom: 1rem; color: var(--dim); font-size: .875rem; line-height: 1.6; }
.foot__socials { display: flex; gap: .75rem; }
.social { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .25rem; background: #1a120d; color: var(--muted); transition: .3s; }
.social:hover { color: #fff; background: var(--orange); }
.foot__heading { display: inline-block; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid #3a2a20; font: 700 .95rem var(--f-label); letter-spacing: .05em; text-transform: uppercase; }
.foot__list { display: grid; gap: .25rem; }
.foot__list a { display: inline-block; padding: .2rem 0; color: var(--muted); font-size: .875rem; transition: color .15s; }
.foot__list a:hover { color: var(--orange-2); }
.foot__bottom { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid #1f140f; }
@media (min-width: 768px) { .foot__bottom { flex-direction: row; } }
.foot__copy { color: #5a4a40; font-size: .85rem; text-align: center; }
.foot__badge { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .25rem; background: #1a120d; border: 1px solid rgba(255, 255, 255, .1); color: var(--dim); font-size: .625rem; font-weight: 700; opacity: .6; }
.to-top {
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; color: #fff; background: var(--orange); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .4);
  opacity: 0; transform: scale(.5); pointer-events: none; transition: all .2s;
}
@media (min-width: 768px) { .to-top { right: 2rem; bottom: 2rem; } }
.to-top.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.to-top:hover { background: var(--orange-2); }

/* ---------- Page band (leaderboard / player) ---------- */
.band { position: relative; overflow: hidden; padding: 3.5rem 0 8.5rem; text-align: center; border-bottom: 1px solid rgba(249, 115, 22, .2); }
.band--short { padding-bottom: 7.5rem; }
.band__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.band__title { margin-top: .75rem; font: bold clamp(2.2rem, 8vw, 4rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; filter: drop-shadow(0 0 20px rgba(249, 115, 22, .35)); }
.band__lead { max-width: 36rem; margin-top: .9rem; color: var(--muted); }
.band__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.band__updated { color: var(--dim); font: 500 .75rem var(--f-mono); }

.omen-note { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 2rem; padding: .9rem 1.1rem; border-radius: 8px; border: 1px solid rgba(255, 217, 140, .45); background: rgba(255, 210, 120, .1); color: #ffd98c; font-size: .9rem; line-height: 1.55; }
.omen-note svg { flex-shrink: 0; margin-top: 2px; }

.victory { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 1.5rem; padding: 1.25rem; border-radius: var(--radius); text-align: center; font: bold 1.2rem var(--f-display); text-transform: uppercase; background: var(--glass); border: 1px solid var(--glass-border); }
.victory--humans { color: #dbeafe; background: rgba(var(--human-rgb), .12); border-color: rgba(var(--human-rgb), .5); }
.victory--zombies { color: #fecaca; background: rgba(var(--zombie-rgb), .14); border-color: rgba(var(--zombie-rgb), .55); }

.meter {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: 2rem 1.25rem; border-radius: 1rem;
  background: radial-gradient(60% 120% at 0% 50%, rgba(var(--human-rgb), .16), transparent 60%), radial-gradient(60% 120% at 100% 50%, rgba(var(--zombie-rgb), .18), transparent 60%), var(--glass);
}
@media (min-width: 768px) { .meter { padding: 2.5rem; } }
.meter__side { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.meter__side--zombies { align-items: flex-end; text-align: right; }
.meter__name { display: flex; align-items: center; gap: .4rem; font: 600 .8rem var(--f-label); letter-spacing: .08em; text-transform: uppercase; }
.meter__side--humans .meter__name { color: var(--human); }
.meter__side--zombies .meter__name { color: var(--zombie); }
.meter__wins { font: bold clamp(2.4rem, 10vw, 5rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.meter__side--humans.is-leading .meter__wins { text-shadow: 0 0 30px rgba(var(--human-rgb), .7); }
.meter__side--zombies.is-leading .meter__wins { text-shadow: 0 0 30px rgba(var(--zombie-rgb), .7); }
.meter__label { color: var(--dim); font: 500 .68rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.meter__seal { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.meter__lead { max-width: 7.5rem; color: var(--muted); font-size: .75rem; line-height: 1.3; text-align: center; }
.meter__track { grid-column: 1 / -1; margin-top: .5rem; }
.meter__rates { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; color: var(--dim); font: 600 .68rem var(--f-label); letter-spacing: .08em; text-transform: uppercase; }
.meter__rates b { font: 700 1.05rem var(--f-mono); letter-spacing: 0; }
.meter__rates .is-humans { color: var(--human); }
.meter__rates .is-zombies { color: var(--zombie); }

/* main-site "board" cards */
.counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 1024px) { .counters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.counter { --c: var(--orange-2); --c-rgb: 251, 146, 60; overflow: hidden; display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.25rem; transition: border-color .2s, transform .2s; }
.counter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.counter:hover { border-color: rgba(var(--c-rgb), .4); transform: translateY(-2px); }
.counter:hover::after { transform: scaleX(1); }
.counter--humans { --c: var(--human); --c-rgb: var(--human-rgb); }
.counter--zombies { --c: var(--zombie); --c-rgb: var(--zombie-rgb); }
.counter__glyph { position: absolute; right: -1.25rem; bottom: -1.75rem; color: var(--c); opacity: .06; transform: rotate(-12deg); transition: opacity .25s, transform .4s; pointer-events: none; }
.counter:hover .counter__glyph { opacity: .11; transform: rotate(-6deg) scale(1.05); }
.counter__head { position: relative; display: flex; align-items: center; gap: .6rem; min-width: 0; }
.counter__icon { display: grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: .625rem; color: var(--c); background: rgba(var(--c-rgb), .1); border: 1px solid rgba(var(--c-rgb), .2); }
.counter__label { color: var(--muted); font: 600 .72rem/1.25 var(--f-label); letter-spacing: .06em; text-transform: uppercase; }
.counter__value { position: relative; font: 700 clamp(1.35rem, 4vw, 1.75rem)/1 var(--f-mono); white-space: nowrap; }

.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 1024px) { .duo { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.slab { padding: 1.5rem; }
@media (min-width: 640px) { .slab { padding: 1.75rem 2rem; } }
.slab__title { display: flex; align-items: center; gap: .55rem; font: 700 1.15rem var(--f-label); }
.slab__title svg { color: var(--orange); }
.slab__lead { margin: .35rem 0 .5rem; color: var(--muted); font-size: .88rem; }
.slab__hint { margin-top: 1rem; color: var(--dim); font-size: .82rem; line-height: 1.55; text-align: center; }
.chart { display: block; width: 100%; height: auto; }
.chart__grid { stroke: rgba(255, 255, 255, .06); }
.chart__axis { fill: var(--dim); font-family: var(--f-mono); font-size: 11px; }
.chart__bar--humans { fill: var(--human); }
.chart__bar--zombies { fill: var(--zombie); }
.chart__bar:hover { filter: brightness(1.3) drop-shadow(0 0 6px rgba(249, 115, 22, .8)); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .75rem; color: var(--muted); font: 500 .8rem var(--f-label); }
.legend__item::before { content: ""; display: inline-block; width: .65rem; height: .65rem; margin-right: .45rem; border-radius: 2px; vertical-align: -1px; }
.legend__item--humans::before { background: var(--human); }
.legend__item--zombies::before { background: var(--zombie); }
.legend__item--draws::before { background: var(--dim); }

.trophies { display: grid; gap: 1rem; margin-top: 1.25rem; }
.trophy { --c: #fbbf24; --c-rgb: 251, 191, 36; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.4rem 1rem 1.2rem; border-radius: 50% 50% var(--radius) var(--radius) / 22% 22% var(--radius) var(--radius); background: radial-gradient(80% 70% at 50% 0%, rgba(var(--c-rgb), .16), transparent 70%), rgba(0, 0, 0, .3); border-color: rgba(var(--c-rgb), .3); text-align: center; }
.trophy--zombies { --c: var(--zombie); --c-rgb: var(--zombie-rgb); }
.trophy__icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: .35rem; border-radius: 50%; color: var(--c); background: rgba(var(--c-rgb), .12); box-shadow: 0 0 22px rgba(var(--c-rgb), .3); }
.trophy__title { color: var(--c); font: 500 .68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.trophy__nick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1.3rem var(--f-label); transition: color .2s; }
.trophy__nick:hover { color: var(--ember); }
.trophy__value { color: var(--muted); font-size: .84rem; }
.trophy__value b { color: #fff; font-family: var(--f-mono); }

.hall { padding: 1.5rem 1rem 1rem; scroll-margin-top: 5rem; }
@media (min-width: 640px) { .hall { padding: 1.75rem 1.75rem 1.25rem; } }
.hall__bar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 900px) { .hall__bar { flex-direction: row; align-items: center; justify-content: space-between; } }
.hall__tools { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .hall__tools { flex-direction: row; align-items: center; } }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.switch__btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.6rem; padding: 0 1rem; border-radius: 7px;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .04); color: var(--muted);
  font: 600 .72rem var(--f-body); letter-spacing: 2px; text-transform: uppercase; transition: .2s;
}
.switch__btn:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.switch__btn--humans.is-active { color: #fff; border-color: rgba(var(--human-rgb), .6); background: rgba(var(--human-rgb), .18); }
.switch__btn--zombies.is-active { color: #fff; border-color: rgba(var(--zombie-rgb), .6); background: rgba(var(--zombie-rgb), .2); }
.seek { position: relative; display: flex; align-items: center; color: var(--dim); }
.seek svg { position: absolute; left: .85rem; }
.seek input { width: 100%; min-height: 2.75rem; padding: .5rem 1rem .5rem 2.5rem; border-radius: .75rem; border: 1px solid var(--glass-border); background: rgba(0, 0, 0, .3); color: #fff; transition: border-color .15s; }
@media (min-width: 640px) { .seek input { width: 16rem; } }
.seek input::placeholder { color: var(--dim); }
.seek input:focus { outline: none; border-color: var(--orange); }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(.4rem, 2vw, 1.25rem); margin: 1rem 0 1.75rem; padding-top: 1rem; }
.grave {
  --h: 13rem; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .25rem;
  min-width: 0; min-height: var(--h); padding: 1.4rem .5rem 1rem; text-align: center;
  border-radius: 50% 50% .5rem .5rem / 26% 26% .5rem .5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03) 60%, rgba(0, 0, 0, .25)), #18100b;
  border: 1px solid rgba(255, 255, 255, .1); border-bottom: 4px solid #0a0503;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 20px 30px -16px #000; transition: transform .25s;
}
.grave > * { flex-shrink: 0; }
.grave:hover { transform: translateY(-4px); }
.grave--1 { --h: 16rem; border-color: rgba(234, 179, 8, .45); background: radial-gradient(80% 50% at 50% 0%, rgba(234, 179, 8, .18), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03) 60%, rgba(0, 0, 0, .25)), #1c120b; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), 0 0 40px -6px rgba(234, 179, 8, .35), 0 20px 30px -16px #000; }
.grave--3 { --h: 11.5rem; }
/* main site trophy colours */
.grave__place { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(0, 0, 0, .4); font: 700 1rem var(--f-mono); border: 1px solid currentColor; }
.grave--2 .grave__place { color: #9ca3af; }
.grave--3 .grave__place { color: #d97706; }
.grave--1 .grave__place { width: 2.7rem; height: 2.7rem; color: #1a0a03; background: linear-gradient(180deg, #fde68a, #eab308); border: 0; box-shadow: 0 0 20px rgba(234, 179, 8, .6); }
.grave__rank { width: 2.4rem; height: 2.4rem; object-fit: contain; margin-top: .35rem; }
.grave__nick { max-width: 100%; margin-top: .25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 clamp(.85rem, 2.6vw, 1.1rem) var(--f-label); }
.grave__kills { color: var(--dim); font: 500 .62rem var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.grave__kills b { display: block; margin-bottom: .1rem; color: #fff; font: 700 clamp(1.15rem, 4vw, 1.6rem)/1.1 var(--f-mono); letter-spacing: 0; }
.grave--1 .grave__kills b { color: #fde68a; }
.grave__extra { margin-top: auto; color: var(--dim); font: 500 .62rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 479px) { .grave { --h: 11.5rem; padding-top: 1rem; } .grave--1 { --h: 13.5rem; } .grave--3 { --h: 10.5rem; } .grave__extra { display: none; } }

/* main-site rating table, as grid rows */
.roll__head, .roll__row { display: grid; grid-template-columns: 2.25rem 2rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .85rem .75rem; }
@media (min-width: 768px) { .roll__head, .roll__row { grid-template-columns: 3rem 2.25rem minmax(0, 1fr) repeat(4, 5.5rem); padding: 1rem 1.25rem; } }
.roll__head { padding-top: .7rem; padding-bottom: .7rem; border-radius: 7px; background: rgba(0, 0, 0, .3); color: var(--dim); font: 600 .7rem var(--f-label); letter-spacing: .06em; text-transform: uppercase; }
.roll__head > :first-child { text-align: center; }
.roll__col { text-align: right; }
.roll__col--wide { display: none; }
@media (min-width: 768px) { .roll__col--wide { display: block; } }
.roll__row + .roll__row { border-top: 1px solid var(--line); }
.roll__row { transition: background .15s; }
.roll__row:hover { background: rgba(255, 255, 255, .025); }
.roll__place { color: var(--dim); font: 500 .875rem var(--f-mono); text-align: center; }
.roll__rank { width: 2rem; height: 2rem; object-fit: contain; }
.roll__who { display: flex; flex-direction: column; min-width: 0; }
.roll__nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 1rem var(--f-label); transition: color .15s; }
.roll__nick:hover { color: var(--orange-2); }
.roll__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: .625rem; line-height: 1rem; text-transform: uppercase; letter-spacing: -.02em; }
.roll__stat { display: none; flex-direction: column; align-items: flex-end; }
.roll__stat--main { display: flex; }
@media (min-width: 768px) { .roll__stat { display: flex; } }
.roll__stat small { display: none; }
.roll__stat b { font: 500 .95rem var(--f-mono); color: var(--muted); }
.roll__stat--main b { color: #fff; }
.hall__panel--humans .roll__stat--accent b { color: #fbbf24; }
.hall__panel--zombies .roll__stat--accent b { color: var(--zombie); }
.roll__stat small { color: var(--dim); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; }
.void { padding: 3rem 1rem; color: var(--dim); text-align: center; font-family: var(--f-label); }

.summon { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin-top: 2.5rem; padding: 2rem 1.25rem; background: radial-gradient(ellipse at top, rgba(249, 115, 22, .12), transparent 70%), var(--glass); text-align: center; }
.summon--band { margin-top: 1.75rem; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; width: min(100%, 30rem); }
.summon__label { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.summon__label svg { color: var(--orange); }
.summon__row { display: flex; gap: .5rem; width: min(100%, 30rem); }
.summon__input { flex: 1; min-width: 0; min-height: 2.9rem; padding: 0 1rem; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .07); color: #fff; font-size: 1rem; transition: border-color .15s; }
.summon__input:focus { outline: none; border-color: var(--orange); }
.summon__input::placeholder { color: var(--dim); }
.summon__input[aria-invalid="true"] { border-color: rgba(255, 140, 140, .6); }
.summon__btn { display: inline-flex; align-items: center; gap: .5rem; padding: 0 1.25rem; border-radius: 7px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: #fff; font: 600 .72rem var(--f-body); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; transition: .2s; }
.summon__btn:hover { background: rgba(249, 115, 22, .3); border-color: var(--orange); }

/* ---------- Player ---------- */
.dossier { --c: var(--orange-2); --c-rgb: 251, 146, 60; overflow: hidden; padding: 2.5rem 1.5rem 1.75rem; border-radius: 1rem; background: radial-gradient(120% 140% at 0% 0%, rgba(var(--c-rgb), .18), transparent 60%), var(--glass); border-color: rgba(var(--c-rgb), .35); }
@media (min-width: 640px) { .dossier { padding: 2.75rem 2.25rem 2.25rem; } }
.dossier--humans { --c: var(--human); --c-rgb: var(--human-rgb); }
.dossier--zombies { --c: var(--zombie); --c-rgb: var(--zombie-rgb); }
.dossier .drip { position: absolute; top: 0; left: 0; width: 100%; height: 2rem; fill: var(--red-dark); }
.dossier__art { position: absolute; right: -3rem; bottom: -3rem; color: var(--c); opacity: .07; transform: rotate(-10deg); pointer-events: none; }
.dossier__head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.dossier__rank { width: auto; height: 3.5rem; }
.dossier__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dossier__faction { color: var(--c); font: 500 .72rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.dossier__nick { font: bold clamp(1.8rem, 7vw, 3rem)/1.05 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.dossier__rankname { color: var(--dim); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.dossier__place { display: flex; flex-direction: column; align-items: center; padding: .9rem 1.25rem; border-radius: 50% 50% .5rem .5rem / 30% 30% .5rem .5rem; background: rgba(0, 0, 0, .4); border: 1px solid rgba(var(--c-rgb), .4); }
.dossier__place b { font: 700 1.7rem/1 var(--f-mono); }
.dossier__place small { margin-top: .25rem; color: var(--dim); font: 600 .58rem var(--f-label); letter-spacing: .08em; text-transform: uppercase; }
.dossier__stats { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .dossier__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bone { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.bone b { font: 700 1.4rem/1.1 var(--f-mono); }
.bone small { color: var(--dim); font: 600 .64rem var(--f-label); letter-spacing: .08em; text-transform: uppercase; }
.bone--hot { border-color: rgba(var(--c-rgb), .35); }
.bone--hot b { color: var(--c); }
.back { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; padding: .65rem 1rem; border-radius: 7px; border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .04); color: var(--muted); font: 600 .72rem var(--f-body); letter-spacing: 2px; text-transform: uppercase; transition: .2s; }
.back:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }

/* ---------- Tombstone messages, 404 ---------- */
.tomb { display: flex; justify-content: center; }
.tomb__stone {
  display: flex; flex-direction: column; align-items: center; gap: .6rem; width: min(100%, 26rem); padding: 3rem 2rem 2.25rem; text-align: center;
  border-radius: 50% 50% .75rem .75rem / 32% 32% .75rem .75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03) 60%, rgba(0, 0, 0, .25)), #18100b;
  border: 1px solid rgba(255, 255, 255, .1); border-bottom: 5px solid #070403; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 30px 40px -20px #000;
}
.tomb__icon { color: var(--orange-2); }
.tomb__text { color: var(--muted); line-height: 1.6; }
.tomb__title { font: 700 1.2rem var(--f-label); }
.tomb__rip { color: var(--dim); font: 500 .85rem var(--f-mono); letter-spacing: .5em; }
.tomb__code { font: bold clamp(4.5rem, 20vw, 7rem)/1 var(--f-display); background: linear-gradient(180deg, #fb923c, rgba(153, 27, 27, .3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tomb--big .tomb__stone { padding-top: 3.5rem; }
.lost { padding-top: 4rem; }
.lost__actions { display: flex; justify-content: center; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise-on { opacity: 1; transform: none; }
}
