/* ==========================================================================
   ShoutBox Online — main stylesheet
   Display type: Cinzel (titles only). Reading type: Inter (everything else).
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #0b0710;
  --bg-2: #120b18;
  --surface: #17101e;
  --surface-2: #1f1628;
  --surface-3: #2a1e35;
  --line: rgba(233, 182, 90, .14);
  --line-strong: rgba(233, 182, 90, .32);

  /* text */
  --text: #f1e9f5;
  --text-2: #c7bccf;
  --text-3: #8f839a;

  /* brand */
  --gold: #e9b65a;
  --gold-2: #ffd98a;
  --gold-3: #a8782c;
  --crimson: #c81e33;
  --crimson-2: #ff3b4f;
  --ember: #ff6a2b;
  --online: #4ade80;

  /* class colours */
  --c-ck: #ff7a2f;
  --c-elf: #5fd16b;
  --c-mage: #a868ff;
  --c-barb: #f0c454;
  --c-vamp: #e0283f;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
  --container: 1200px;
  --header-h: 72px;

  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #1a0f05; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow::after { transform: scaleX(-1); }
.title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  letter-spacing: .02em;
  background: linear-gradient(180deg, #fff6e2 0%, var(--gold-2) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--text-2); font-size: 1.075rem; max-width: 60ch; }
.section-head { display: grid; justify-items: center; text-align: center; gap: 14px; margin-bottom: 44px; }
.section-head .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--b-bg);
  font: 700 .95rem/1 var(--font-body); letter-spacing: .04em;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  border-color: #ffcf7a;
  background: linear-gradient(180deg, #ffd98a 0%, #e9a443 48%, #b8711f 100%);
  color: #2a1404;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .5);
  box-shadow: 0 0 0 1px rgba(80, 30, 0, .5) inset, 0 10px 30px -8px rgba(255, 140, 40, .55);
}
.btn--primary:hover { box-shadow: 0 0 0 1px rgba(80, 30, 0, .5) inset, 0 14px 40px -6px rgba(255, 140, 40, .75); border-color: #fff0c4; }
.btn--crimson {
  border-color: rgba(255, 90, 100, .55);
  background: linear-gradient(180deg, #e2354a 0%, #a3142a 100%);
  box-shadow: 0 10px 30px -10px rgba(220, 30, 60, .7);
}
.btn--ghost { background: rgba(20, 12, 26, .55); backdrop-filter: blur(6px); }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 1.02rem; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .86rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header--solid {
  background: rgba(11, 7, 16, .86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: block; width: 138px; }
.brand img { width: 100%; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6)); }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 8px;
  font-weight: 600; font-size: .94rem; color: var(--text-2);
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a[aria-current="page"] { color: var(--gold-2); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .25); }
.lang a { padding: 5px 9px; border-radius: 6px; font-size: .78rem; font-weight: 700; color: var(--text-3); }
.lang a[aria-current="true"] { background: var(--surface-3); color: var(--text); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(20, 12, 26, .6);
  place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .25s ease, background .25s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: rgba(11, 7, 16, .97); backdrop-filter: blur(14px);
  padding: 24px 16px 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer nav { display: grid; gap: 4px; }
.drawer nav a { padding: 14px 12px; border-radius: 10px; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer nav a[aria-current="page"] { color: var(--gold-2); }
.drawer .drawer-actions { display: grid; gap: 10px; margin-top: 24px; }
.drawer .lang { justify-self: center; margin-top: 18px; }
.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(760px, 100svh);
  display: grid; align-content: end;
  padding: calc(var(--header-h) + 8px) 0 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -4% -2% 0; z-index: -3;
  background: url("../img/bg-hero.webp") center 30% / cover no-repeat;
  transform: translate3d(0, var(--parallax, 0), 0) scale(1.04);
  will-change: transform;
}
.hero::before { /* readability vignette */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(11, 7, 16, .15), transparent 70%),
    linear-gradient(180deg, rgba(11, 7, 16, .75) 0%, rgba(11, 7, 16, .1) 22%, rgba(11, 7, 16, .05) 50%, rgba(11, 7, 16, .85) 82%, var(--bg) 100%);
}
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero__stage { position: relative; display: grid; justify-items: center; text-align: center; }
.lineup {
  --h: clamp(260px, 38vh, 430px);
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: calc(var(--h) * 1.02);
  width: 100%;
  pointer-events: none;
}
.lineup img {
  height: calc(var(--h) * var(--s, 1)); width: auto; flex: none;
  margin-inline: calc(var(--h) * -0.1);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .65));
  opacity: 0; transform: translateY(30px);
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
.lineup .l-elf  { --s: .82; --d: .25s; z-index: 1; margin-bottom: calc(var(--h) * .14); }
.lineup .l-ck   { --s: .92; --d: .1s;  z-index: 2; }
.lineup .l-vamp { --s: 1;   --d: 0s;   z-index: 3; }
.lineup .l-mage { --s: .9;  --d: .1s;  z-index: 2; }
.lineup .l-barb { --s: .86; --d: .25s; z-index: 1; margin-bottom: calc(var(--h) * .06); }
.lineup .float { animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards, bob 5s ease-in-out 1.2s infinite; animation-delay: var(--d, 0s), calc(var(--d, 0s) + 1s); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.hero__logo {
  position: relative; z-index: 5;
  width: min(92vw, 760px);
  margin-top: calc(clamp(260px, 38vh, 430px) * -0.2);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .8));
  opacity: 0; animation: logo-in 1s .35s cubic-bezier(.2, .8, .2, 1) forwards;
}
.hero__logo img { width: 100%; }
@keyframes logo-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.hero__tagline {
  margin-top: 10px; max-width: 46ch;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

/* ---------- stats strip ---------- */
.stats {
  position: relative; z-index: 6;
  margin: 44px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 22, 40, .92), rgba(18, 11, 24, .92));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { position: relative; display: grid; gap: 4px; padding: 20px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1 var(--font-display); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stat__label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
a.stat { transition: background .2s ease; }
a.stat:hover { background: rgba(74, 222, 128, .06); }
.stat--online .stat__value { color: var(--online); display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.divider { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* community banner */
.community {
  display: flex; align-items: center; gap: 18px;
  margin-top: 28px; padding: 18px 22px;
  border: 1px solid rgba(74, 222, 128, .28); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(37, 211, 102, .12), rgba(37, 211, 102, .02));
  transition: border-color .2s ease, transform .2s ease;
}
.community:hover { border-color: rgba(74, 222, 128, .6); transform: translateY(-2px); }
.community__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #25d366; color: #fff; }
.community__icon svg { width: 26px; height: 26px; }
.community strong { display: block; font-size: 1.05rem; }
.community span { color: var(--text-2); font-size: .95rem; }
.community__arrow { margin-left: auto; color: var(--online); font-size: 1.4rem; }

/* ---------- classes ---------- */
.classes { --accent: var(--gold); }
.class-tabs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-bottom: 28px;
}
.class-tab {
  --accent: var(--gold);
  position: relative; display: grid; justify-items: center; gap: 8px;
  padding: 14px 8px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  text-align: center;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
  overflow: hidden;
}
.class-tab::before {
  content: ""; position: absolute; inset: auto 0 0; height: 70%;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  opacity: 0; transition: opacity .3s ease;
}
.class-tab img { position: relative; height: 92px; width: auto; transition: transform .3s ease; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
.class-tab span { position: relative; font-weight: 700; font-size: .95rem; }
.class-tab small { position: relative; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.class-tab:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.class-tab:hover img { transform: scale(1.06); }
.class-tab[aria-selected="true"] { border-color: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--surface-2)), var(--surface)); }
.class-tab[aria-selected="true"]::before { opacity: 1; }
.class-tab[aria-selected="true"] small { color: var(--accent); }

.ck   { --accent: var(--c-ck); }
.elf  { --accent: var(--c-elf); }
.mage { --accent: var(--c-mage); }
.barb { --accent: var(--c-barb); }
.vamp { --accent: var(--c-vamp); }

.class-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse 50% 70% at 22% 55%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.class-panel[hidden] { display: none; }
.class-panel.is-entering .class-panel__art img { animation: art-in .6s cubic-bezier(.2, .8, .2, 1); }
.class-panel.is-entering .class-panel__body > * { animation: fade-up .5s ease both; }
.class-panel.is-entering .class-panel__body > *:nth-child(2) { animation-delay: .04s; }
.class-panel.is-entering .class-panel__body > *:nth-child(3) { animation-delay: .08s; }
.class-panel.is-entering .class-panel__body > *:nth-child(4) { animation-delay: .12s; }
.class-panel.is-entering .class-panel__body > *:nth-child(5) { animation-delay: .16s; }
@keyframes art-in { from { opacity: 0; transform: translateX(-24px) scale(.96); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

.class-panel__art { position: relative; display: grid; place-items: center; min-height: 340px; }
.class-panel__art::after { /* ground glow */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 34px; border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
  filter: blur(6px); z-index: 0;
}
.class-panel__art img { position: relative; z-index: 1; max-height: 460px; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .55)); }
.class-panel__body { display: grid; gap: 18px; }
.role {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.class-name { font: 700 clamp(2rem, 1.5rem + 2vw, 2.9rem)/1.05 var(--font-display); color: #fff; }
.class-desc { color: var(--text-2); font-size: 1.06rem; max-width: 58ch; }
.class-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meta { padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.meta dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.meta dd { margin: 4px 0 0; font-weight: 600; }
.skills-title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.skill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 8px;
  background: var(--surface-3); border: 1px solid rgba(255, 255, 255, .06);
  font-size: .9rem; font-weight: 500;
}
.skill b { font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); letter-spacing: .04em; }
.skill--evo { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-3)); }
.unlock {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(224, 40, 63, .1); border: 1px solid rgba(224, 40, 63, .35); color: var(--text-2); font-size: .95rem;
}
.unlock svg { flex: none; width: 20px; height: 20px; color: var(--c-vamp); margin-top: 2px; }

/* ---------- ranking + news ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.card {
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.card__title { font: 700 1.3rem/1.2 var(--font-display); letter-spacing: .03em; }
.card__link { font-size: .9rem; font-weight: 600; color: var(--gold); }
.card__link:hover { color: var(--gold-2); }
.card__body { padding: 8px 12px 12px; }

.rank-table th { padding: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); text-align: left; }
.rank-table td { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .05); }
.rank-table tbody tr { transition: background .2s ease; }
.rank-table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.rank-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-table .lvl { font: 700 1.05rem/1 var(--font-display); color: var(--gold-2); }
.pos {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  font-weight: 800; font-size: .9rem; background: var(--surface-3); color: var(--text-2);
}
.pos--1 { background: linear-gradient(180deg, #ffe39a, #c98a2b); color: #2a1404; box-shadow: 0 0 18px rgba(255, 200, 90, .35); }
.pos--2 { background: linear-gradient(180deg, #f2f4f8, #9aa3b2); color: #1b1e25; }
.pos--3 { background: linear-gradient(180deg, #f0b07a, #a0592a); color: #2a1404; }
.player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player__avatar { flex: none; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--accent) 16%, var(--surface-3)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.player__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.5); transform-origin: 50% 0; }
.player__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__class { font-size: .84rem; color: var(--accent); font-weight: 600; }
.vip-badge { margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-size: .66rem; font-weight: 800; letter-spacing: .06em; background: linear-gradient(180deg, #ffd98a, #c98a2b); color: #2a1404; vertical-align: 2px; }

.news { display: grid; gap: 4px; padding: 8px; }
.news-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px; border-radius: 12px; transition: background .2s ease; }
.news-item:hover { background: rgba(255, 255, 255, .03); }
.news-item__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--surface-3); color: var(--gold); }
.news-item__icon svg { width: 22px; height: 22px; }
.news-item h3 { font-size: 1.02rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.news-item p { margin-top: 4px; color: var(--text-2); font-size: .94rem; }
.news-item--live { background: linear-gradient(90deg, rgba(255, 106, 43, .12), transparent); border: 1px solid rgba(255, 106, 43, .3); }
.news-item--live .news-item__icon { background: rgba(255, 106, 43, .18); color: var(--ember); }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 59, 79, .16); color: #ff7b88; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson-2); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tag-new { padding: 3px 8px; border-radius: 999px; background: rgba(233, 182, 90, .14); color: var(--gold-2); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.slot { padding: 4px 10px; border-radius: 7px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); }
.slot.is-next { border-color: var(--ember); color: #fff; background: rgba(255, 106, 43, .18); }
.countdown { margin-top: 8px; font-size: .86rem; color: var(--text-3); }
.countdown strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 10vw, 130px) 0; text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/bg-hero.webp") center 70% / cover no-repeat;
  filter: saturate(1.1);
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 7, 16, .55) 35%, rgba(11, 7, 16, .7) 70%, var(--bg) 100%); }
.cta-band .container { display: grid; justify-items: center; gap: 18px; }
.cta-band .lead { color: var(--text); }
.cta-band .art { display: flex; align-items: flex-end; justify-content: center; margin-bottom: 8px; }
.cta-band .art img { height: 150px; width: auto; margin-inline: -14px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .6)); }
.cta-band .art img:nth-child(2) { height: 180px; position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #08050b; padding: 56px 0 28px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 190px; }
.footer-brand p { margin-top: 14px; font-size: .94rem; max-width: 34ch; }
.site-footer h4 { font: 700 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--text-3); }

/* ---------- inner pages ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/bg-hero.webp") center 35% / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 7, 16, .7), rgba(11, 7, 16, .6) 50%, var(--bg)); }
.page-hero .container { display: grid; justify-items: center; gap: 14px; }
.page-hero .title { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); }
.page-body { padding: 8px 0 clamp(72px, 9vw, 120px); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.segmented a { border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--text-2); }
.segmented [aria-current="page"] { background: var(--surface-3); color: var(--gold-2); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; transition: border-color .2s ease, color .2s ease; border: 1px solid var(--line); background: var(--surface); padding: 7px 13px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--text-2); }
.chip[aria-current] { border-color: var(--accent, var(--gold)); color: var(--accent, var(--gold-2)); background: color-mix(in srgb, var(--accent, var(--gold)) 12%, var(--surface)); }
.table-wrap { overflow-x: auto; border-radius: calc(var(--radius) + 4px); }
.table-wrap .rank-table { min-width: 640px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; padding: 30px 26px; }
.plan--featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 24px 60px -20px rgba(233, 160, 60, .45); transform: translateY(-8px); }
.plan__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: linear-gradient(180deg, #ffd98a, #c98a2b); color: #2a1404; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.plan__name { font: 700 1.6rem/1 var(--font-display); }
.plan__price { font-size: .95rem; color: var(--text-3); }
.plan__price strong { display: block; font: 700 2.1rem/1.1 var(--font-body); color: #fff; }
.features { display: grid; gap: 12px; align-content: start; }
.features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.features svg { flex: none; width: 20px; height: 20px; color: var(--online); margin-top: 2px; }
.features strong { color: var(--text); }
.note { margin-top: 24px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: .95rem; text-align: center; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.product__media { height: 150px; display: grid; place-items: center; background: radial-gradient(ellipse 60% 70% at 50% 60%, color-mix(in srgb, var(--accent, var(--gold)) 25%, transparent), transparent 70%), var(--surface-3); border-bottom: 1px solid var(--line); }
.product__media svg { width: 64px; height: 64px; color: var(--accent, var(--gold)); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent, var(--gold)) 60%, transparent)); }
.product__media img { height: 140px; width: auto; }
.product__body { padding: 20px 22px 6px; display: grid; gap: 8px; align-content: start; }
.product__body h3 { font-size: 1.15rem; font-weight: 700; }
.product__body p { color: var(--text-2); font-size: .95rem; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 22px; }
.price { font-weight: 800; font-size: 1.2rem; }
.price small { display: block; font-size: .74rem; font-weight: 600; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.auth__art { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: end center; padding: 40px; }
.auth__art::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/bg-hero.webp") 40% center / cover no-repeat; }
.auth__art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 7, 16, .2), rgba(11, 7, 16, .4) 70%, var(--bg)); }
.auth__art img { max-height: 70vh; width: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .7)); }
.auth__panel { display: grid; place-items: center; padding: calc(var(--header-h) + 32px) 24px 48px; }
.auth__box { width: min(100%, 420px); display: grid; gap: 22px; }
.auth__box .title { font-size: 2.2rem; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 500 1rem var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 182, 90, .2); }
.field .hint { font-size: .84rem; color: var(--text-3); }
.field .optional { color: var(--text-3); font-weight: 500; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-3); border-radius: 8px; display: grid; place-items: center; }
.pw button:hover { color: var(--text); }
.pw svg { width: 20px; height: 20px; }
.auth__switch { text-align: center; color: var(--text-2); }
.auth__switch a { color: var(--gold); font-weight: 700; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header-actions .lang, .header-actions .btn--ghost { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .class-tabs { grid-template-columns: repeat(5, minmax(118px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .class-tabs::-webkit-scrollbar { display: none; }
  .class-tab { scroll-snap-align: start; }
  .class-panel { grid-template-columns: 1fr; }
  .class-panel__art { min-height: 0; }
  .class-panel__art img { max-height: 320px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { transform: none; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand { width: 112px; }
  .header-actions .btn--primary { min-height: 40px; padding: 0 14px; font-size: .84rem; }
  .hero { min-height: auto; padding-bottom: 8px; }
  .lineup { --h: clamp(200px, 52vw, 280px); }
  .lineup .l-elf, .lineup .l-barb { display: none; }
  .lineup img { margin-inline: calc(var(--h) * -0.14); }
  .hero__logo { margin-top: calc(clamp(200px, 52vw, 280px) * -0.16); }
  .hero__cta { display: grid; width: 100%; grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .class-meta { grid-template-columns: 1fr; }
  .card__head { padding: 18px; }
  .rank-table th:nth-child(3), .rank-table td:nth-child(3) { display: none; }
  .community { padding: 16px; }
  .community__arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .art img { height: 110px; }
  .cta-band .art img:nth-child(2) { height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg { transform: none; }
}
