:root {
  --bg: #160f1e;
  --panel: rgba(38, 24, 49, 0.72);
  --panel-soft: rgba(53, 38, 68, 0.74);
  --line: rgba(240, 219, 255, 0.12);
  --text: #f5ecff;
  --muted: #c4b6d6;
  --gold: #ccb07a;
  --lav: #d5c3ef;
  --plum: #3e264f;
  --shadow: 0 18px 42px rgba(0,0,0,0.28);
  --shell: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: "Merriweather", Georgia, serif;
  background:
    linear-gradient(180deg, rgba(204,176,122,0.05), transparent 20%),
    linear-gradient(180deg, #140d1b 0%, #191120 52%, #130d1a 100%);
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 28px), var(--shell)); margin: 0 auto; }
.shell-wide { width: min(calc(100% - 28px), var(--shell)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(20,13,27,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: center; padding: 14px 0;
}
.brandmark, .eyebrow, .section-kicker, .footer-kicker, .cta-primary, .cta-ghost, .cta-link, .header-nav a, .featured-route__card span {
  font-family: "Montserrat", "Segoe UI", sans-serif;
}
.brandmark {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.header-nav {
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}
.header-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 700;
}

.hero-shell, .feature-ribbon, .featured-route, .duo-cards, .support-layers { padding: 18px 0; }
.hero-glass {
  position: relative;
  overflow: hidden;
  min-height: 64vh;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(32, 20, 43, 0.64);
  box-shadow: var(--shadow);
}
.hero-glass__media { position: absolute; inset: 0; }
.hero-glass__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.48; }
.hero-glass::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,15,30,0.18), rgba(22,15,30,0.52)),
    linear-gradient(90deg, rgba(22,15,30,0.82) 0%, rgba(22,15,30,0.42) 45%, rgba(22,15,30,0.18) 100%);
}
.hero-glass__copy {
  position: relative; z-index: 1;
  padding: 48px;
  max-width: 760px;
}
.eyebrow, .section-kicker, .footer-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
}
.hero-glass__copy h1, .section-heading h2, .featured-route__copy h2, .duo-card__body h2, .support-panel h2, .page-title, .game-intro h1 {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-glass__copy h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 700px; }
.hero-glass__copy p:not(.eyebrow), .section-heading p:last-child, .featured-route__copy p, .duo-card__body p, .support-panel p, .page-single p, .game-intro p, .site-footer p, .site-footer li { color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cta-primary, .cta-ghost, .cta-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 800;
}
.cta-primary { background: var(--gold); color: #191021; }
.cta-ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text); }
.cta-link { color: var(--lav); padding-left: 0; padding-right: 0; }

.ribbon-grid, .support-layers__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.ribbon-grid article, .featured-route__copy, .duo-card, .support-panel, .page-single, .game-intro, .entry-card, .game-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ribbon-grid article, .featured-route__copy, .support-panel, .page-single, .game-intro, .entry-card { padding: 22px; border-radius: 16px; }
.ribbon-grid strong {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(204,176,122,0.14); color: var(--gold);
  font-family: "Montserrat", "Segoe UI", sans-serif; font-weight: 800;
}
.ribbon-grid h2 { margin: 14px 0 8px; font-family: "Montserrat", "Segoe UI", sans-serif; font-size: 1.2rem; }

.featured-route__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px;
}
.featured-route__card {
  position: relative; overflow: hidden; min-height: 320px;
  border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.featured-route__card img { width: 100%; height: 100%; object-fit: cover; }
.featured-route__card span {
  position: absolute; left: 14px; bottom: 14px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line); font-weight: 800;
}

.duo-cards__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.duo-card { border-radius: 16px; overflow: hidden; }
.duo-card__media { display: block; min-height: 260px; }
.duo-card__media img { width: 100%; height: 100%; object-fit: cover; }
.duo-card__body { padding: 22px; }
.duo-card__body ul {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 14px 0 10px;
}
.duo-card__body li {
  padding: 8px 12px; border-radius: 999px;
  background: rgba(213,195,239,0.12); border: 1px solid rgba(213,195,239,0.16); color: #eadfff;
  font-family: "Montserrat", "Segoe UI", sans-serif; font-weight: 700;
}
.support-layers__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

.site-footer {
  margin-top: auto; padding: 24px 0 34px;
  background: #110b17; color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 12px 0 0; }
.site-footer li + li { margin-top: 8px; }

.page-shell { width: min(calc(100% - 28px), 1120px); margin: 0 auto; padding: 26px 0 52px; }
.page-single { border-radius: 16px; }
.page-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.arena-layout { display: grid; gap: 18px; }
.game-intro { display: grid; gap: 12px; border-radius: 16px; }
.game-intro__top {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.game-poster {
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line);
}
.game-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meta-pills,
.inline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.meta-pills li,
.inline-pills li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(213,195,239,0.16);
  background: rgba(213,195,239,0.1);
  color: #eadfff;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}
.game-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.entry-card { border-radius: 16px; }
.game-frame { padding: 12px; border-radius: 16px; }
.game-frame iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.note-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.note-card h2 {
  margin: 0 0 10px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1.15rem;
}
.note-card p,
.note-card li {
  color: var(--muted);
}
.note-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--lav);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .header-row, .featured-route__grid, .duo-cards__grid, .support-layers__grid, .footer-grid, .ribbon-grid, .game-intro__top, .notes-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .site-header { position: static; }
  .hero-glass__copy { padding: 28px 22px; }
}
