:root {
  --bg: #0a0f1c;
  --bg-2: #111a2e;
  --panel: #121b30;
  --line: #22304f;
  --text: #ece8dc;
  --muted: #97a0b5;
  --gold: #eadfb8;
  --gold-2: #fbf3d6;
  --marble: #c9c6bd;
  --live: #ff3b4e;
  --forever: #5ec8ff;
  --olympus: #eadfb8;
  --navy: #13244a;
  --on-accent: #0b1633;
  --classic: #c79bff;
  --retail: #62d48a;
  --guild: #ff9e5e;
  --radius: 14px;
  --display: 'Cinzel', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans);
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(45,78,150,.35), transparent 70%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* ---------- banner ---------- */
#banner-slot:empty { display: none; }
.banner {
  position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 10px 16px; justify-content: center; text-align: center; font-size: 14px;
  animation: slide .4s ease-out;
}
@keyframes slide { from { transform: translateY(-100%); } to { transform: none; } }
.banner strong { letter-spacing: .08em; font-family: var(--display); }
.banner-live { background: linear-gradient(90deg, #5c0b14, #a3101f 50%, #5c0b14); color: #fff; box-shadow: 0 4px 24px rgba(255,59,78,.35); }
.banner-video { background: linear-gradient(90deg, #0f1d3d, #1d3569 50%, #0f1d3d); color: var(--gold-2); border-bottom: 1px solid #34508f; }
.banner-video .muted { color: #b9c4de; }
.banner-text { max-width: 640px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-cta { background: #fff; color: #111; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.banner-video .banner-cta { background: var(--gold); }
.banner-cta:hover { filter: brightness(.92); }
.banner-alt a { text-decoration: underline; opacity: .85; }
.banner-x { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .7; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--line); background: rgba(10,15,28,.88); backdrop-filter: blur(8px); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.laurel { width: 52px; height: 52px; color: var(--gold); flex: none; filter: drop-shadow(0 0 14px rgba(120,150,220,.35)); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.2vw, 50px); letter-spacing: .08em; line-height: 1;
  background: linear-gradient(180deg, #fffaf0, var(--gold) 65%, #cbbd8e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-full { display: block; border-left: 2px solid var(--line); padding-left: 14px; min-width: 0; }
.brand-long { display: block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.brand-tag { display: block; color: var(--muted); font-size: 13px; }
.mast-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--marble); white-space: nowrap; }
.chip-link { border-color: #5865f2; color: #c4c9ff; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--gold-2); border-color: var(--gold); }

/* ---------- stories ---------- */
main.wrap { padding-top: 24px; }
.page-h { font-family: var(--display); font-size: 28px; margin: 0 0 18px; color: var(--gold-2); }
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; margin-bottom: 28px; }
.hero-side { display: grid; gap: 18px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.river { display: grid; gap: 14px; }

.story { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.story:hover { border-color: #3a4f7d; transform: translateY(-1px); }
.story-link { display: grid; grid-template-columns: 220px 1fr; min-height: 100%; align-content: start; }
.thumb { background: var(--bg-2); aspect-ratio: 16/9; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: grid; place-items: center; }
.thumb-empty .laurel { width: 48px; height: 48px; opacity: .35; }
.story-body { padding: 14px 16px; min-width: 0; }
.story h3 { margin: 6px 0 6px; font-size: 17px; line-height: 1.3; }
.story .summary { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story.lead .story-link, .story.second .story-link { grid-template-columns: 1fr; }
.story.lead h3 { font-size: clamp(22px, 2.6vw, 30px); font-family: var(--display); letter-spacing: .01em; }
.story.lead .story-body { padding: 18px 20px 22px; }
.story.second h3 { font-size: 16px; }
.story.second .summary { -webkit-line-clamp: 2; }
.note { margin: 6px 0; font-size: 14px; color: var(--gold-2); border-left: 3px solid var(--gold); padding-left: 10px; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.sec { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--c, var(--gold)); }
.sec-forever { --c: var(--forever); } .sec-olympus { --c: var(--olympus); } .sec-classic { --c: var(--classic); }
.sec-retail { --c: var(--retail); } .sec-guild { --c: var(--guild); } .sec-wow { --c: var(--marble); }
.pin { background: var(--gold); color: var(--on-accent); font-weight: 700; font-size: 10px; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; }

/* ---------- sidebar ---------- */
.side { display: grid; gap: 18px; position: sticky; top: 64px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel-h { font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.post-row { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.post-row:first-of-type { border-top: 0; padding-top: 0; }
.post-title { font-weight: 600; }
.post-row .muted { font-size: 12px; }
.more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--gold-2); }
.vid { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.vid:first-of-type { border-top: 0; padding-top: 0; }
.vid img { border-radius: 8px; aspect-ratio: 16/9; object-fit: cover; }
.vid-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; margin-bottom: 2px; }
.vid .muted { font-size: 12px; display: block; }
.vid:hover .vid-title, .post-row:hover .post-title { color: var(--gold-2); }
.countdown { text-align: center; }
.cd-num { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--forever); }
.countdown p { margin: 4px 0 0; font-size: 13px; }

/* ---------- addons ---------- */
.sec-addon { --c: #9fd0ff; }
.lede { color: var(--muted); max-width: 720px; margin: -6px 0 18px; font-size: 15px; }
.gpost .lede { margin: 0 0 14px; font-size: 17px; color: #cfd5e4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chips a[aria-current] { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.addon-list { display: grid; gap: 14px; }
.addon { display: grid; grid-template-columns: 72px 1fr; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.addon-featured { border-color: #3a5288; box-shadow: inset 3px 0 0 var(--gold); }
.addon-icon { width: 72px; height: 72px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.addon-icon img { width: 100%; height: 100%; object-fit: cover; }
.addon-icon .laurel { width: 56px; height: 56px; filter: none; }
.addon h3 { margin: 4px 0 4px; font-size: 18px; }
.addon h3 a:hover { color: var(--gold-2); }
.addon .summary { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.addon-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn.btn-ghost { background: transparent; color: var(--gold-2); border: 1px solid var(--line); }
.btn.btn-ghost:hover { border-color: var(--gold); }
@media (max-width: 640px) { .addon { grid-template-columns: 52px 1fr; gap: 12px; } .addon-icon { width: 52px; height: 52px; } .addon-icon .laurel { width: 40px; height: 40px; } }

/* ---------- guild posts ---------- */
.gpost { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.gpost h3 { margin: 6px 0; font-size: 19px; }
.gpost h3 a:hover { color: var(--gold-2); }
.gpost.full h1 { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); margin: 8px 0 14px; }
.post-img { border-radius: 10px; margin-bottom: 14px; }
.prose { color: #d6d3cc; }
.prose a { color: var(--gold-2); text-decoration: underline; word-break: break-all; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--on-accent); font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty a { color: var(--gold-2); }

.footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 18px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }
.footer a { color: var(--gold-2); }

@media (max-width: 1000px) {
  .grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-side { grid-template-columns: 1fr; }
  .story-link { grid-template-columns: 116px 1fr; }
  .story:not(.lead):not(.second) .thumb { aspect-ratio: 1; }
  .story:not(.lead):not(.second) .summary { display: none; }
  .story h3 { font-size: 15px; }
  .mast-meta { display: none; }
  .laurel { width: 42px; height: 42px; }
  .brand-long { font-size: 12px; letter-spacing: .1em; }
  .brand-tag { display: none; }
  .brand-full { padding-left: 10px; }
  .banner-text { white-space: normal; }
}
