:root {
  color-scheme: dark;
  --bg: #030806;
  --accent: #68dcad;
  --gold: #e5d08c;
  --panel: rgba(5, 16, 12, 0.88);
  --line: rgba(104, 220, 173, 0.24);
  --text: #edf7e9;
  --muted: #abc6b7;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(3, 8, 6, 0.02), #030806 760px),
    radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(229, 208, 140, 0.12), transparent 26%),
    url("beastmaster-heaven-bg.png") center top / cover fixed;
}
a { color: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 53, 36, .96), rgba(4, 11, 9, .98));
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}
.primary { border-color: color-mix(in srgb, var(--accent) 68%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 42%, #052019), rgba(8, 28, 20, .98)); color: #ecfff8; }
.premium { border-color: rgba(229, 208, 140, .62); background: linear-gradient(180deg, rgba(128, 93, 30, .96), rgba(42, 28, 8, .98)); color: #fff3c2; }
.shell { width: min(1360px, calc(100% - 28px)); margin: 0 auto; padding: 16px 0 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 210px; max-width: 68vw; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.user-control-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(104, 220, 173, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 22, 16, 0.86), rgba(3, 8, 6, 0.72)),
    radial-gradient(circle at 14% 0%, rgba(104, 220, 173, 0.16), transparent 38%);
  box-shadow: 0 16px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.account-pill { min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; color: #d8ffef; background: rgba(3,8,6,.66); font-weight: 900; }
.account-pill.premium { border-color: rgba(229, 208, 140, .62); color: #fff3c2; }
.hero {
  min-height: min(620px, calc(100vh - 110px));
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(360px, .72fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: end;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(3,8,6,.98), rgba(3,8,6,.58)),
    var(--hero-image) center / cover;
  box-shadow: 0 24px 70px rgba(0,0,0,.46);
}
.kicker { color: var(--accent); font-size: .78rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 14px; color: #fff3c2; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5.5vw, 4.8rem); line-height: 1.02; }
.lead { color: #d9eadd; font-size: clamp(1rem, 2vw, 1.24rem); line-height: 1.58; }
.stat-grid, .card-grid, .media-grid, .source-grid { display: grid; gap: 14px; }
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.stat, .panel, .guide-card, .source-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(5, 19, 14, .9), rgba(3, 8, 6, .84));
  box-shadow: 0 22px 60px rgba(0,0,0,.36);
}
.stat { min-height: 96px; padding: 14px; }
.stat strong { display: block; color: var(--gold); font-size: 1.5rem; }
.stat span, .muted { color: var(--muted); line-height: 1.55; }
.hub-section { margin-top: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-card { display: grid; gap: 12px; padding: 18px; align-content: start; }
.guide-card .tag { display: inline-flex; width: max-content; min-height: 26px; align-items: center; border: 1px solid rgba(229, 208, 140, .34); border-radius: 999px; padding: 0 10px; color: #fff3c2; background: rgba(72, 50, 12, .38); font-size: .78rem; font-weight: 950; }
.guide-card p { color: var(--muted); line-height: 1.55; }
.guide-card ol { margin: 0; padding-left: 20px; color: #d9eadd; line-height: 1.7; }
.media-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
.media-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #000; min-height: 320px; }
.media-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.panel { padding: 18px; }
.source-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.source-card { padding: 14px; color: var(--muted); text-decoration: none; }
.source-card strong { display: block; color: #fff3c2; margin-bottom: 6px; }
@media (max-width: 1080px) {
  .hero, .media-grid { grid-template-columns: 1fr; }
  .card-grid, .source-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 18px, 1360px); }
  .card-grid, .source-grid, .stat-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.1rem, 12vw, 3.3rem); }
}
