/* Alata, self-hosted latin subset (Google Fonts, SIL OFL); preloaded by every page */
@font-face {
  font-family: "Alata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/alata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #120a1a;
  --bg-2: #1b0f27;
  --panel: #231533;
  --panel-2: #2c1b40;
  --line: #3d2a55;
  --fg: #f3ecf7;
  --muted: #b7a9c6;
  --gold: #f2b134;
  --gold-2: #ffd56a;
  --gold-dark: #b3731a;
  --violet: #9b5cff;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* A column, so the footer sits at the bottom of the window on short pages (404, contact on a tall screen). */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 "Alata", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Alata", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(32px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); color: var(--gold-2); }
h3 { font-size: 20px; margin-bottom: .35em; color: var(--fg); }

p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: #1a0d05; padding: 8px 12px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 10, 26, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Alata", "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 18px; color: var(--fg); }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav .btn { color: #1a0d05; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-dark));
  color: #1a0d05; border: 0; cursor: pointer;
  box-shadow: 0 6px 0 #6e4310, 0 12px 24px rgba(0, 0, 0, .35);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #6e4310, 0 6px 14px rgba(0, 0, 0, .35); }
.btn-ghost {
  background: transparent; color: var(--fg); box-shadow: none;
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); filter: none; }
.btn-ghost:active { transform: none; box-shadow: none; }

.btn-play {
  font-family: "Alata", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  padding: clamp(18px, 2.6vw, 28px) clamp(44px, 8vw, 96px);
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 10px 0 #6e4310, 0 24px 48px rgba(0, 0, 0, .5), 0 0 0 4px rgba(255, 213, 106, .18);
}
.btn-play:active { transform: translateY(6px); box-shadow: 0 4px 0 #6e4310, 0 10px 20px rgba(0, 0, 0, .45); }
.btn-play svg { width: .9em; height: .9em; fill: currentColor; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex; align-items: center; text-align: center;
  padding: 56px 0 72px;
  background: var(--bg-2);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("assets/hero.webp") center 40% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(18, 10, 26, .15), rgba(18, 10, 26, .7) 70%),
    linear-gradient(180deg, rgba(18, 10, 26, .55), rgba(18, 10, 26, .2) 40%, var(--bg) 100%);
}
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-logo { width: min(520px, 82vw); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6)); }
.hero h1 { font-size: clamp(22px, 3vw, 32px); color: var(--fg); font-weight: 400; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); max-width: 760px; }
.hero p.lead { max-width: 640px; color: #e9dff2; font-size: 18px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.badge {
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(18, 10, 26, .6); border: 1px solid rgba(255, 213, 106, .35); color: var(--gold-2);
}
.hero-note { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .hero::before { background-image: url("assets/hero-portrait.webp"); background-position: center 30%; }
}

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(242, 177, 52, .12); border: 1px solid rgba(242, 177, 52, .3);
}
.card .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin: 0; }

.two-col { display: grid; gap: 40px; grid-template-columns: 1.2fr .8fr; align-items: start; }
.two-col .art { position: sticky; top: 90px; }
.two-col .art img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col .art { position: static; order: -1; max-width: 420px; }
}

.prose p { color: #d9cfe3; }
.prose ul { padding-left: 22px; color: #d9cfe3; }
.prose li { margin: 6px 0; }

/* Controls */
.controls { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.controls table { width: 100%; border-collapse: collapse; font-size: 16px; }
.controls th, .controls td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.controls th { color: var(--gold-2); font-weight: 700; width: 42%; }
.controls td { color: var(--muted); }
.keys { white-space: nowrap; }
kbd {
  display: inline-block; min-width: 26px; text-align: center;
  padding: 2px 8px; margin: 0 2px; border-radius: 6px;
  background: #1a1024; border: 1px solid #4a3666; border-bottom-width: 3px;
  font: 600 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--fg);
}

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 22px 22px 22px 68px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: "Alata", "Segoe UI", Roboto, sans-serif; font-weight: 700;
  background: var(--gold); color: #1a0d05;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin: 0; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-2); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* CTA */
.cta { text-align: center; background: radial-gradient(ellipse at 50% 100%, rgba(155, 92, 255, .18), transparent 60%); }
.cta h2 { color: var(--fg); }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* Footer. Prefixed with body: the inner-page text rules (.page p, .page ul, .page li) must not reach it. */
body .site-footer { margin-top: auto; border-top: 1px solid var(--line); background: #0d0713; padding: 40px 0 28px; color: var(--muted); font-size: 15px; }
body .site-footer .wrap { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
body .site-footer .brand { margin-bottom: 12px; color: var(--fg); }
body .site-footer p { margin: 0; max-width: 380px; color: var(--muted); }
body .site-footer h3 { margin: 6px 0 12px; font-size: 14px; color: var(--fg); text-transform: uppercase; letter-spacing: .08em; font-family: inherit; }
body .site-footer ul { list-style: none; padding: 0; margin: 0; }
body .site-footer li { margin: 0 0 8px; color: var(--muted); }
body .site-footer a { color: var(--muted); }
body .site-footer p a { color: var(--fg); }
body .site-footer a:hover { color: var(--gold-2); }
body .site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }
@media (max-width: 720px) {
  body .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  body .site-footer .about { grid-column: 1 / -1; }
}

/* Inner pages */
.page main { width: 100%; max-width: 780px; margin: 0 auto; padding: 40px 16px 72px; }
.page .meta { color: var(--muted); margin: -8px 0 28px; }
.page h2 { font-size: 22px; color: var(--gold-2); margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); font-family: inherit; font-weight: 400; }
.page p, .page li { color: #d9cfe3; }
.page ul { padding-left: 22px; }
.page li { margin: 5px 0; }
.page address { font-style: normal; }

@media (max-width: 720px) {
  .nav > a:not(.btn) { display: none; }
  .menu { display: block; }
  body { font-size: 16px; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.ach { width: 100%; border-collapse: collapse; font-size: 16px; }
.ach th, .ach td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ach th { color: var(--gold-2); font-weight: 400; width: 34%; }
.ach td { color: var(--muted); }
.page ol { padding-left: 22px; }

/* Bestiary */
.beast-page main, .bestiary-page main, .wide-page main, .guides-page main { max-width: 1040px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.beast-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.beast-portrait {
  margin: 0; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 42%, rgba(155, 92, 255, .3), rgba(35, 21, 51, .92) 64%), var(--panel);
}
.beast-portrait img { width: 100%; }
.beast-intro h1 { margin-bottom: .2em; }
.beast-tagline { color: var(--muted); font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip {
  font-size: 13px; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg); background: rgba(255, 255, 255, .04);
}
.chip.tier-novice { border-color: rgba(124, 210, 120, .5); color: #a9e7a2; }
.chip.tier-veteran { border-color: rgba(242, 177, 52, .55); color: var(--gold-2); }
.chip.tier-elite { border-color: rgba(255, 110, 110, .55); color: #ff9c9c; }
.statblock {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.statblock th, .statblock td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.statblock tr:last-child th, .statblock tr:last-child td { border-bottom: 0; }
.statblock th { color: var(--gold-2); font-weight: 400; width: 38%; }
.data { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 10px; }
.data th, .data td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { color: var(--muted); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.data tbody th { color: var(--fg); font-weight: 400; }
.data td { color: var(--muted); }
.beast-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 8px 0 12px; }
.beast-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 12px 14px;
  border-radius: var(--radius); border: 1px solid var(--line); color: var(--fg);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  transition: border-color .15s ease, transform .15s ease;
}
.beast-card:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-2px); }
.beast-card img { width: 100%; border-radius: 10px; background: radial-gradient(circle at 50% 45%, rgba(155, 92, 255, .26), transparent 66%); }
.beast-card-name { font-size: 18px; margin-top: 6px; }
.beast-card-meta { font-size: 14px; color: var(--muted); }
.beast-card .chip { margin-top: 4px; }
.kills-week-short { font-size: 13px; color: var(--gold-2); }
.kills-week { color: var(--gold-2); margin: 0 0 14px; }
.kills-week strong { font-size: 20px; }
.count { font-size: 15px; color: var(--muted); margin-left: 6px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 760px) {
  .beast-hero { grid-template-columns: 1fr; gap: 20px; }
  .beast-portrait { max-width: 420px; }
  .beast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .data { font-size: 14px; }
}

.beast-hero + .meta { margin: 18px 0 0; }
/* Home teaser: six cards fill whole rows (6, 3 or 2 across) instead of leaving one card alone on a row. */
.beast-grid.teaser { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1000px) { .beast-grid.teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .beast-grid.teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Live fragments from FeedServer (nginx SSI, /live/) */
.ico { width: 18px; height: 18px; flex: none; }
.live-online {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px; border-radius: 999px;
  background: rgba(18, 10, 26, .6); border: 1px solid rgba(124, 210, 120, .45); color: #e9dff2; font-size: 15px;
}
.live-online::before, .live-dot {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6fdc6a; flex: none;
  box-shadow: 0 0 0 0 rgba(111, 220, 106, .7); animation: live-pulse 2s infinite;
}
.live-online strong { color: #fff; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 220, 106, .65); }
  70% { box-shadow: 0 0 0 9px rgba(111, 220, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 220, 106, 0); }
}
.live-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 22px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid rgba(124, 210, 120, .35);
  background: linear-gradient(90deg, rgba(111, 220, 106, .1), rgba(35, 21, 51, .6) 45%);
}
.live-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: rgba(111, 220, 106, .16); color: #b9f0b4; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.live-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.live-meta .ico { width: 16px; height: 16px; color: #8fd88a; }
.live-meta time { color: var(--fg); }

.lb-boards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lb {
  margin: 0; padding: 20px 18px 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(27, 15, 39, .9));
}
.lb-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.lb-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: rgba(242, 177, 52, .12); border: 1px solid rgba(242, 177, 52, .35); color: var(--gold-2);
}
.lb-icon .ico { width: 24px; height: 24px; }
.page .lb h2 { margin: 0; padding: 0; border: 0; font-size: 22px; }
.page .lb-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.page .lb-season {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 12px; border-radius: 10px;
  background: rgba(18, 10, 26, .55); color: var(--muted); font-size: 15px;
}
.lb-season .ico { color: var(--gold-2); }
.lb-season time { color: var(--gold-2); }
.page .lb-empty { color: var(--muted); font-style: italic; margin: 8px 0; }
.lb-podium, .lb-list { list-style: none; padding: 0; margin: 0; }
.page .lb-podium li, .page .lb-list li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 0;
}
.page .lb-podium li { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.page .lb-podium .lb-p1 { border-color: rgba(255, 213, 106, .55); background: linear-gradient(90deg, rgba(242, 177, 52, .18), rgba(242, 177, 52, .02)); }
.page .lb-podium .lb-p2 { border-color: rgba(205, 214, 230, .4); }
.page .lb-podium .lb-p3 { border-color: rgba(214, 140, 80, .45); }
.page .lb-list li { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.page .lb-list li:last-child { border-bottom: 0; }
.lb-rank {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px;
  background: var(--panel-2); color: var(--muted);
}
.lb-p1 .lb-rank { background: linear-gradient(180deg, var(--gold-2), var(--gold-dark)); color: #1a0d05; }
.lb-p2 .lb-rank { background: linear-gradient(180deg, #eef2f8, #9aa4b5); color: #1a0d05; }
.lb-p3 .lb-rank { background: linear-gradient(180deg, #f0b07a, #9a5a2c); color: #1a0d05; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); }
.lb-podium .lb-name { font-size: 17px; }
.lb-score { color: var(--gold-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-score small { color: var(--muted); font-size: 12px; }
.lb-hall { margin-top: 30px; }
.page .lb-hall h2 { display: flex; align-items: center; gap: 10px; }
.lb-hall h2 .ico { width: 24px; height: 24px; color: var(--gold-2); }
.lb-hall-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lb-past { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.page .lb-past h3 { margin: 0; font-size: 17px; }
.page .lb-past .meta { margin: 2px 0 10px; font-size: 13px; }

.status { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.status th, .status td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.status tr:last-child td { border-bottom: 0; }
.status th { color: var(--muted); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.status td:first-child { color: var(--fg); }
.status .badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; background: rgba(18, 10, 26, .6); }
.status .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status .badge.up { border-color: rgba(124, 210, 120, .55); color: #a9e7a2; }
.status .badge.down { border-color: rgba(255, 110, 110, .6); color: #ff9c9c; }
.status-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(242, 177, 52, .45); background: rgba(242, 177, 52, .08); }

/* News (FeedServer pages) */
.news-list { list-style: none; padding: 0; margin: 0; }
.page .news-item {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; margin: 0 0 22px;
  padding: 0 0 22px; border-bottom: 1px solid var(--line);
}
.news-thumb img { border-radius: 12px; border: 1px solid var(--line); }
.page .news-item h2 { margin: 4px 0 6px; padding: 0; border: 0; font-size: 22px; }
.page .news-item h2 a { color: var(--fg); }
.page .news-item h3 { font-size: 16px; margin: 14px 0 2px; color: var(--gold-2); }
.page .news-item ul { margin: 0; }
.news-kicker { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 14px; }
.news-hero { margin: 0 0 18px; }
.news-hero img { border-radius: var(--radius); border: 1px solid var(--line); }
.news-latest { list-style: none; padding: 0; }
.news-latest time { color: var(--muted); font-size: 14px; margin-left: 6px; }
@media (max-width: 640px) {
  .page .news-item { grid-template-columns: 1fr; gap: 10px; }
  .live-bar { gap: 8px 12px; }
}

/* Mobile menu (details/summary, no JS) */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); color: var(--fg); background: rgba(255, 255, 255, .03);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--gold); }
.menu-panel {
  position: absolute; right: 0; top: 54px; min-width: 230px; display: grid; gap: 2px; padding: 8px; z-index: 60;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .55);
}
.menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--fg); font-size: 16px; }
.menu-panel a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
@media (min-width: 721px) and (max-width: 1000px) { .nav { gap: 14px; } .nav > a:not(.btn) { font-size: 14px; } }

/* Game stage on the home page: poster, then the game in an iframe on desktop (gtag.js) */
.stage {
  width: min(960px, 100%); margin: 6px auto 4px; border-radius: 20px; overflow: hidden; text-align: left;
  border: 1px solid rgba(255, 213, 106, .35); background: #0d0713;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 4px rgba(255, 213, 106, .08);
}
.stage-poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.stage-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s ease; }
.stage-poster::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(18, 10, 26, 0), rgba(18, 10, 26, .55) 78%);
}
.stage-poster:hover { text-decoration: none; }
.stage-poster:hover img { transform: scale(1.03); filter: brightness(1.08); }
.stage-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 14px; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(24px, 4vw, 40px); padding: clamp(14px, 2.2vw, 24px) clamp(36px, 6vw, 80px); border-radius: 20px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-dark)); color: #1a0d05;
  box-shadow: 0 10px 0 #6e4310, 0 24px 48px rgba(0, 0, 0, .5), 0 0 0 4px rgba(255, 213, 106, .18);
  transition: transform .1s ease, filter .15s ease;
}
.stage-poster:hover .stage-play { filter: brightness(1.06); transform: translate(-50%, -52%); }
.stage-play svg { width: .9em; height: .9em; fill: currentColor; }
.stage-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
/* Only while the game plays in the page: it carries the Fullscreen button. */
.stage:not(.is-playing) .stage-bar { display: none; }
.stage-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px 14px; flex-wrap: wrap;
  padding: 10px 14px; background: rgba(18, 10, 26, .9); border-top: 1px solid var(--line);
}
.stage-actions { display: flex; gap: 10px; }
.stage-actions .btn { padding: 8px 14px; font-size: 14px; font-weight: 700; }
@media (max-width: 720px) { .menu { display: block; } }
.page .lb-podium, .page .lb-list { padding-left: 0; }
.lb-intro { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center; }
.lb-intro img { width: 220px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 213, 106, .35), 0 24px 50px rgba(0, 0, 0, .55); }
@media (max-width: 720px) { .lb-intro { grid-template-columns: 1fr; } .lb-intro img { display: none; } }

/* Guides */
.page .lead-in { font-size: 19px; color: #e9dff2; }
.weapon-strip {
  margin: 8px 0 24px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 40%, rgba(155, 92, 255, .22), rgba(35, 21, 51, .9) 70%);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
}
.weapon-strip img { width: 100%; }
.weapon-strip figcaption { grid-column: 1 / -1; color: var(--muted); font-size: 13px; text-align: center; }
.shot { margin: 18px 0 24px; }
.shot img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.read-next { columns: 2; column-gap: 24px; }
/* Five across on desktop: no category has more than five guides, so a row never ends with one card alone. */
.guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 10px; }
@media (max-width: 1000px) { .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.guide-card {
  display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius); color: var(--fg);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--panel-2));
  transition: border-color .15s ease, transform .15s ease;
}
.guide-card:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-2px); }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.render-hero { margin: 8px auto 24px; max-width: 320px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(155, 92, 255, .32), transparent 68%); }
.guide-card img.render { object-fit: contain; background: radial-gradient(circle at 50% 50%, rgba(155, 92, 255, .3), transparent 70%); }
.guide-card-title { font-size: 17px; line-height: 1.3; color: var(--gold-2); }
.guide-card-text { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .read-next { columns: 1; } .weapon-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Home hero with the game stage: a smaller logo keeps the stage in the first view */
.hero { min-height: auto; padding: 36px 0 56px; }
.hero .wrap { gap: 16px; }
.hero-logo { width: min(340px, 64vw); }
.hero h1 { font-size: clamp(20px, 2.6vw, 28px); }
.hero p.lead { font-size: 17px; margin: 0; }
.article h1, .guides h1 { font-size: clamp(30px, 4.2vw, 44px); }
[hidden] { display: none !important; }
@media (max-width: 899px) { .stage-actions { display: none; } }
.shot.portrait { max-width: 340px; margin-left: auto; margin-right: auto; }
.shot.portrait figcaption { text-align: center; }
