/* ashmaw.com: the game's website. Same dark oak and gold as the game. */
:root {
  --bg: #0a0605;
  --bg2: #120b09;
  --wood: linear-gradient(180deg, #261a15, #160f0b);
  --panel: rgba(28, 21, 14, 0.82);
  --trim: #7a5f36;
  --trim-soft: rgba(231, 195, 108, 0.22);
  --gold: #e7c36c;
  --gold-bright: #ffd877;
  --gold-text: #f2d27c;
  --text: #f3e9d2;
  --dim: #bba98a;
  --faint: #8c7b60;
  --ember: #ff9d2e;
  --mythic: #ff4f9a;
  --blue: #3b6fd6;
  --green: #8fd18a;
  --discord: #5865f2;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --max: 1180px;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); font: 16px/1.6 var(--sans); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-text); text-decoration: none; }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--dim); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: 10px;
  font: 800 16px/1 var(--sans); letter-spacing: 0.3px; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-play { color: #2b1b08; background: linear-gradient(#ffe7a3, #f2c45c 45%, #c9902f); border-color: #8a6420;
  box-shadow: 0 0 0 1px rgba(255, 230, 150, 0.35) inset, 0 6px 24px rgba(255, 180, 60, 0.35), 0 2px 0 #6e4b16; }
.btn-play:hover { color: #2b1b08; box-shadow: 0 0 0 1px rgba(255, 240, 180, 0.5) inset, 0 8px 34px rgba(255, 190, 70, 0.55), 0 2px 0 #6e4b16; }
.btn-big { padding: 18px 36px; font-size: 19px; border-radius: 12px; }
.btn-ghost { color: var(--text); background: rgba(20, 14, 9, 0.55); border-color: rgba(231, 195, 108, 0.45); backdrop-filter: blur(4px); }
.btn-ghost:hover { color: var(--gold-bright); border-color: var(--gold); background: rgba(40, 28, 16, 0.7); }
.btn-discord { color: #fff; background: var(--discord); border-color: #4752c4; box-shadow: 0 6px 22px rgba(88, 101, 242, 0.35); }
.btn-discord:hover { color: #fff; background: #4f5bea; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---- Top bar ---- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; border-bottom: 1px solid transparent; }
.topbar.solid, .topbar.page { background: rgba(14, 10, 7, 0.92); backdrop-filter: blur(8px); border-bottom-color: rgba(122, 95, 54, 0.45); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-bright); font: 700 22px var(--serif); letter-spacing: 0.5px; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.brand:hover { color: #fff3c4; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--dim); font-weight: 650; font-size: 15px; }
.nav a:hover, .nav a.on { color: var(--gold-text); background: rgba(255, 220, 150, 0.07); }
.topbar .btn-play { margin-left: auto; padding: 10px 20px; font-size: 15px; }
.menu-btn { display: none; margin-left: 8px; width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 230, 180, 0.08); border: 1px solid rgba(231, 195, 108, 0.35); color: var(--gold-text); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---- Hero ---- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1100px; overflow: hidden; background: #1a0c10; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 6, 4, 0.35) 0%, rgba(10, 6, 4, 0) 22%, rgba(10, 6, 4, 0) 45%, rgba(13, 9, 6, 0.75) 80%, var(--bg) 100%),
              radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%); }
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 24px 140px; }
.crest { width: 112px; height: 112px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 200, 100, 0.25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
/* The shield, Open Beta and the name: stacked on phones; on wide screens the shield sits
   beside the name (owner, 0.40.3), with Open Beta above them */
.title-row { display: flex; flex-direction: column; align-items: center; }
/* "Open Beta" (owner, 0.40.3): a glowing tag over the name */
.beta-badge { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 7px 15px 7px 12px; border-radius: 999px;
  font: 800 13px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: #ffe7a8; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  background: linear-gradient(180deg, rgba(128, 62, 14, 0.9), rgba(62, 28, 8, 0.9)); border: 1px solid #e7a843;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.25), 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 157, 46, 0.3); }
.beta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: beta-pulse 2s ease-in-out infinite; }
@keyframes beta-pulse { 50% { opacity: 0.4; transform: scale(0.75); } }
.wordmark { margin: 14px 0 6px; font: 700 clamp(48px, 9vw, 112px)/1 var(--serif); letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff6d6 0%, #ffd877 38%, #e7a843 70%, #a8681f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(60, 30, 5, 0.9)) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55)); }
.tagline { margin: 0; font: 600 clamp(19px, 2.4vw, 27px)/1.35 var(--serif); color: #fff2d6; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.sub { max-width: 620px; margin: 12px auto 0; color: #ead9b8; font-size: clamp(15px, 1.6vw, 18px); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85); }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.micro { margin-top: 16px; color: #d9c7a3; font-size: 14px; letter-spacing: 0.3px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.micro span { white-space: nowrap; }
.micro span + span::before { content: '·'; margin: 0 10px; color: var(--gold); }

/* Wide screens: the title on the left, the castle on the right */
@media (min-width: 1000px) {
  .hero-inner { max-width: var(--max); margin: 0 auto; align-items: flex-start; text-align: left; padding-left: 40px; padding-right: 40px; }
  .hero-inner .sub { margin-left: 0; max-width: 540px; }
  .hero-inner .ctas { justify-content: flex-start; }
  .title-row { display: grid; grid-template-columns: auto auto; grid-template-areas: "badge badge" "crest name"; align-items: center; justify-content: start; column-gap: 20px; }
  .title-row .beta-badge { grid-area: badge; justify-self: start; }
  .title-row .crest { grid-area: crest; width: 104px; height: 104px; margin-top: 8px; }
  .title-row .wordmark { grid-area: name; }
  .hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(12, 7, 5, 0.55) 0%, rgba(12, 7, 5, 0.25) 38%, rgba(12, 7, 5, 0) 60%); }
}

/* Live strip at the bottom of the hero */
.live { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(calc(100% - 32px), 1060px);
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--text);
  background: rgba(16, 11, 7, 0.78); border: 1px solid rgba(231, 195, 108, 0.28); backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.chip b { color: var(--gold-text); font-weight: 750; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #5fd36a; box-shadow: 0 0 0 3px rgba(95, 211, 106, 0.2), 0 0 10px #5fd36a; animation: pulse 2s infinite; }
.chip .dot.off { background: #8c7b60; box-shadow: none; animation: none; }
.chip .dot.rest { background: #d9822b; box-shadow: 0 0 8px #d9822b; }
.chip.awake { border-color: rgba(255, 90, 60, 0.7); background: rgba(70, 14, 8, 0.85); }
.chip.awake b { color: #ffb08f; }
.chip .r-legendary { color: var(--ember); font-weight: 750; }
.chip .r-mythic { color: var(--mythic); font-weight: 750; }
@keyframes pulse { 50% { opacity: 0.55; } }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 88px; transform: translateX(-50%); color: rgba(255, 230, 170, 0.7); animation: bob 2.2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---- Sections ---- */
section.block { padding: 96px 0; position: relative; }
section.alt { background: radial-gradient(ellipse at top, #1f0f0b, var(--bg) 70%); }
.kicker { display: block; text-align: center; color: var(--gold); font: 700 13px var(--sans); letter-spacing: 3px; text-transform: uppercase; }
.title { margin: 10px 0 0; text-align: center; font: 700 clamp(32px, 4.4vw, 50px)/1.1 var(--serif); color: var(--gold-bright); text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6); }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 0; width: 260px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px rgba(255, 210, 110, 0.6); }
.lead { max-width: 720px; margin: 18px auto 0; text-align: center; color: var(--dim); font-size: 18px; }

.card { background: var(--wood); border: 1px solid var(--trim); border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 12px 30px rgba(0, 0, 0, 0.4); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.pillar { padding: 28px 26px; text-align: left; }
.pillar .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #4a3826, #241a10); border: 1px solid var(--trim); color: var(--gold-bright); box-shadow: 0 0 22px rgba(255, 190, 80, 0.12); }
.pillar .ico svg { width: 28px; height: 28px; }
.pillar h3 { margin: 18px 0 6px; font: 700 23px var(--serif); color: var(--gold-text); }
.pillar p { margin: 0; color: var(--dim); }

/* The "real game" frame */
.browser { margin: 56px auto 0; max-width: 1060px; border-radius: 14px; overflow: hidden; border: 1px solid var(--trim); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(231, 195, 108, 0.05); background: #120d09; }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: linear-gradient(#2a2018, #1f170f); border-bottom: 1px solid #3c2d1c; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #5a4630; }
.browser .bar span { margin-left: 12px; flex: 1; max-width: 360px; padding: 5px 12px; border-radius: 999px; background: #120d09; color: var(--dim); font-size: 13px; }
.browser img { width: 100%; cursor: zoom-in; }

/* Zones */
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.zones .zone:last-child:nth-child(3n+1) { grid-column: 2; }   /* a lone last card sits in the middle */
.zone { overflow: hidden; display: flex; flex-direction: column; cursor: zoom-in; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.zone:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 190, 80, 0.12); }
.zone .pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.zone .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.zone:hover .pic img { transform: scale(1.06); }
.zone .lvl { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(12, 8, 5, 0.82); border: 1px solid rgba(231, 195, 108, 0.45); color: var(--gold-text); font-size: 12.5px; font-weight: 800; letter-spacing: 0.4px; }
.zone .lvl.special { color: #ffb08f; border-color: rgba(255, 120, 80, 0.6); }
.zone .txt { padding: 16px 18px 20px; }
.zone h3 { margin: 0 0 4px; font: 700 21px var(--serif); color: var(--gold-text); }
.zone p { margin: 0; color: var(--dim); font-size: 15px; }
/* The dungeons (v0.39, made by tools/build-home.mjs): four across, a heroic badge, where the door is. */
.zones.dungeons { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.zones.dungeons .zone:last-child:nth-child(3n+1) { grid-column: auto; }
.zones.dungeons h3 { font-size: 19px; }
.zones.dungeons p { font-size: 14px; }
.zone .lvl.heroic { left: auto; right: 12px; color: #e8c8ff; border-color: rgba(176, 107, 255, 0.6); }
.zone .where { display: block; margin-top: 10px; color: var(--faint); font-size: 12.5px; }
.zone .where b { color: var(--gold-text); font-weight: 700; }

/* Classes */
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.cls { position: relative; padding: 0 18px 24px; text-align: center; overflow: hidden; }
.cls .stage { height: 300px; display: flex; align-items: flex-end; justify-content: center; margin: 0 -18px; padding-bottom: 6px;
  background: radial-gradient(ellipse at 50% 85%, var(--glow, rgba(255, 200, 100, 0.28)), transparent 62%), linear-gradient(#1a130d, #22180f); border-bottom: 1px solid #3c2d1c; }
.cls .stage img { height: 260px; width: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6)); transition: transform 0.3s; }
.cls:hover .stage img { transform: translateY(-6px) scale(1.03); }
.cls h3 { margin: 20px 0 0; font: 700 28px var(--serif); color: var(--gold-bright); }
.cls .role { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.cls p { color: var(--dim); margin: 12px 0 16px; }
.abilities { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.abilities span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 230, 180, 0.06); border: 1px solid rgba(231, 195, 108, 0.3); font-size: 13.5px; color: var(--text); }
.abilities span small { color: var(--faint); margin-left: 4px; }
.abilities span.ult { border-color: rgba(240, 160, 80, 0.6); background: rgba(240, 150, 60, 0.1); color: #ffd9a8; }
.knight { --glow: rgba(90, 130, 255, 0.32); }
.ranger { --glow: rgba(110, 220, 130, 0.28); }
.mage { --glow: rgba(200, 120, 255, 0.32); }

/* Bosses */
.bossgrid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-top: 52px; align-items: stretch; }
.ashmaw { position: relative; overflow: hidden; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px;
  background: radial-gradient(ellipse at 60% 35%, rgba(255, 110, 40, 0.28), transparent 60%), linear-gradient(160deg, #3a1810, #160b07 70%); }
.ashmaw img { position: absolute; z-index: 0; top: 6px; right: -30px; width: 84%; max-width: 600px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.65)); animation: float 7s ease-in-out infinite; }
.ashmaw::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14, 7, 4, 0) 38%, rgba(14, 7, 4, 0.78) 62%, rgba(14, 7, 4, 0.95) 100%); }
.ashmaw > :not(img) { z-index: 2; }
.ashmaw .tag { align-self: flex-start; position: relative; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #ffd6c4; background: rgba(150, 30, 10, 0.55); border: 1px solid rgba(255, 120, 80, 0.6); }
.ashmaw h3 { position: relative; margin: 12px 0 4px; font: 700 clamp(28px, 3.2vw, 40px)/1.1 var(--serif); color: var(--gold-bright); text-shadow: 0 3px 14px rgba(0, 0, 0, 0.8); }
.ashmaw p { position: relative; margin: 0; max-width: 520px; color: #e4cfb0; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.ashmaw .status { position: relative; margin-top: 16px; display: inline-flex; align-self: flex-start; }
.bosses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* v0.39: every world boss gets a big card; the rest are grouped below them. */
.worldbosses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
.bossgroup { margin: 40px 0 14px; font: 700 22px var(--serif); color: var(--gold-text); text-align: center; }
.worldbosses .ashmaw { min-height: 440px; }
.worldbosses .ashmaw img { top: 18px; right: 50%; transform: translateX(50%); width: auto; max-width: 88%; max-height: 62%; animation: none; }
.bosses.single { grid-template-columns: minmax(0, 380px); justify-content: center; }
.boss { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.boss .pic { width: 74px; height: 74px; flex: none; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle at 50% 70%, rgba(255, 200, 120, 0.12), transparent 70%), #160f0a; border: 1px solid #3c2d1c; }
.boss .pic img { max-width: 64px; max-height: 64px; width: auto; height: auto; }
.boss h4 { margin: 0; font: 700 16.5px/1.25 var(--serif); color: var(--gold-text); }
.boss span { display: block; color: var(--faint); font-size: 13px; margin-top: 2px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.feat { padding: 22px 20px; }
.feat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-bright); background: rgba(255, 220, 150, 0.07); border: 1px solid rgba(231, 195, 108, 0.3); }
.feat .ico svg { width: 24px; height: 24px; }
.feat h4 { margin: 14px 0 6px; font: 700 18.5px var(--serif); color: var(--gold-text); }
.feat p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* Fair play */
.fair { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; margin-top: 10px; }
.fair h2 { margin: 10px 0 14px; font: 700 clamp(32px, 4vw, 46px)/1.1 var(--serif); color: var(--gold-bright); }
.fair .kicker { text-align: left; }
.fair p { color: var(--dim); font-size: 17px; }
.promise { padding: 26px 28px; }
.promise h4 { margin: 0 0 12px; font: 700 20px var(--serif); color: var(--gold-text); }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.promise li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.promise .yes svg { color: var(--green); }
.promise .no svg { color: #ff8f7f; }
.promise hr { border: 0; border-top: 1px solid rgba(122, 95, 54, 0.4); margin: 18px 0; }

/* Patch notes teaser */
.patches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.patch { padding: 24px; display: flex; flex-direction: column; }
.patch .ver { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13.5px; font-weight: 700; }
.patch .ver b { padding: 3px 9px; border-radius: 6px; color: #2b1b08; background: linear-gradient(#ffe7a3, #e0b04c); font-size: 13px; }
.patch h3 { margin: 12px 0 8px; font: 700 21px/1.25 var(--serif); color: var(--gold-text); }
.patch p { margin: 0 0 14px; color: var(--dim); font-size: 15px; flex: 1; }
.more { text-align: center; margin-top: 34px; }

/* Discord band */
.community { position: relative; overflow: hidden; padding: 64px 48px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(88, 101, 242, 0.35), transparent 65%), linear-gradient(160deg, #1e1a33, #120e14 70%); border-color: rgba(120, 130, 255, 0.45); }
.community h2 { margin: 0 0 10px; font: 700 clamp(30px, 4vw, 44px)/1.15 var(--serif); color: #fff; }
.community p { max-width: 640px; margin: 0 auto 26px; color: #cfd3ff; font-size: 17px; }
.community .feeds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.community .feeds span { padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(160, 170, 255, 0.3); color: #dfe2ff; font-size: 14px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }

/* FAQ */
.faq { max-width: 820px; margin: 48px auto 0; display: grid; gap: 12px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font: 700 18px var(--serif); color: var(--gold-text); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font: 400 26px/1 var(--sans); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--dim); }

/* Final call */
.final { text-align: center; padding: 110px 0 120px; background: radial-gradient(ellipse at 50% 100%, rgba(255, 150, 60, 0.18), transparent 60%); }
.final h2 { margin: 0; font: 700 clamp(34px, 5vw, 58px)/1.1 var(--serif); color: var(--gold-bright); }
.final p { color: var(--dim); font-size: 18px; margin: 14px 0 30px; }

/* Footer */
footer { border-top: 1px solid rgba(122, 95, 54, 0.4); background: #0a0704; padding: 48px 0 36px; color: var(--faint); font-size: 14.5px; }
footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer .brand { font-size: 20px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: var(--dim); }
footer nav a:hover { color: var(--gold-text); }
footer .legal { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(5, 3, 2, 0.92); backdrop-filter: blur(4px); padding: 40px 70px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1600px; width: 100%; }
.lightbox img { width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 10px; border: 1px solid var(--trim); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.lightbox figcaption { margin-top: 12px; text-align: center; color: var(--gold-text); font: 600 18px var(--serif); }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(231, 195, 108, 0.45); background: rgba(30, 22, 14, 0.85); color: var(--gold-bright); font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(60, 44, 26, 0.95); }
.lightbox .close { top: 20px; right: 20px; }
.lightbox .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .crest, .ashmaw img, .scroll-cue, .chip .dot, .beta-dot { animation: none; }
}

/* ---- Text pages (patch notes, rules, terms, privacy) ---- */
.page-head { padding: 150px 0 56px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(255, 170, 80, 0.16), transparent 60%), linear-gradient(#1a120c, var(--bg)); border-bottom: 1px solid rgba(122, 95, 54, 0.35); }
.page-head h1 { margin: 10px 0 0; font: 700 clamp(36px, 5vw, 56px)/1.1 var(--serif); color: var(--gold-bright); }
.page-head p { max-width: 680px; margin: 14px auto 0; color: var(--dim); font-size: 17px; }
.doc { max-width: 860px; margin: 0 auto; padding: 56px 24px 90px; }
.doc h2 { margin: 44px 0 10px; font: 700 27px var(--serif); color: var(--gold-text); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 26px 0 6px; font: 700 20px var(--serif); color: var(--gold-text); }
.doc p, .doc li { color: #e0d3b8; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--gold); }
.doc .note { padding: 16px 20px; border-radius: 10px; background: rgba(255, 220, 150, 0.06); border: 1px solid rgba(231, 195, 108, 0.28); color: var(--dim); font-size: 15px; }
.doc .updated { color: var(--faint); font-size: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(231, 195, 108, 0.3); color: var(--dim); font-size: 14px; }
.toc a:hover { color: var(--gold-text); border-color: var(--gold); }

/* Patch notes page */
.release { margin: 0 0 26px; padding: 28px 30px; }
.release header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.release .ver { padding: 4px 11px; border-radius: 7px; color: #2b1b08; background: linear-gradient(#ffe7a3, #e0b04c); font-weight: 800; font-size: 15px; }
.release h2 { margin: 0; font: 700 26px/1.2 var(--serif); color: var(--gold-bright); }
.release time { color: var(--faint); font-size: 14px; margin-left: auto; }
.release .latest { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #12320f; background: var(--green); }
.release h3 { display: flex; align-items: center; gap: 8px; margin: 20px 0 4px; font: 800 13px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.release h3::before { content: ''; width: 8px; height: 8px; transform: rotate(45deg); background: currentColor; }
.release h3.fix { color: #8fd18a; }
.release ul { margin: 6px 0 0; padding-left: 22px; }
.release li { color: #e0d3b8; margin: 5px 0; }
.release li b { color: var(--text); }
.release.small { padding: 18px 24px; }
.release.small h2 { font-size: 20px; }
.release.small p { margin: 8px 0 0; color: var(--dim); }
.era { margin: 54px 0 22px; text-align: center; color: var(--gold); font: 700 13px var(--sans); letter-spacing: 3px; text-transform: uppercase; }

/* ---- Small screens ---- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .zones.dungeons, .bosses { grid-template-columns: repeat(2, 1fr); }
  .worldbosses { grid-template-columns: 1fr; }
  .classes { grid-template-columns: repeat(2, 1fr); }
  .bossgrid { grid-template-columns: 1fr; }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .zones .zone:last-child:nth-child(3n+1) { grid-column: auto; }
}
/* Phones and narrow tablets (0.41.2): the live strip goes under the buttons instead of over the
   bottom of the header, which it covered when its chips wrapped onto several lines. */
@media (max-width: 860px) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; max-height: none; display: flex; flex-direction: column; }
  .hero-inner { flex: 1; height: auto; padding-bottom: 28px; }
  .live { position: relative; z-index: 3; left: auto; bottom: auto; transform: none; width: auto; margin: 0 16px 28px; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; margin: 0; padding: 10px 16px 18px; background: rgba(14, 10, 7, 0.97); border-bottom: 1px solid rgba(122, 95, 54, 0.45); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .menu-btn { display: grid; place-items: center; }
  .pillars, .classes, .patches { grid-template-columns: 1fr; }
  .fair { grid-template-columns: 1fr; }
  section.block { padding: 72px 0; }
  .lightbox { padding: 20px 10px; }
  .lightbox .prev, .lightbox .next { top: auto; bottom: 18px; transform: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .zones, .zones.dungeons, .features, .bosses { grid-template-columns: 1fr; }
  .topbar .btn-play { padding: 9px 14px; font-size: 14px; }
  .brand span { display: none; }
  .chip { font-size: 13px; padding: 7px 12px; }
  .scroll-cue { display: none; }
  .ashmaw { min-height: 420px; padding: 22px; }
  .ashmaw img { width: 110%; right: -20%; }
  .community { padding: 48px 22px; }
  .release { padding: 22px 20px; }
  .release time { margin-left: 0; width: 100%; }
}

/* ---- The Database page (v0.33): database.html, js/database.js ---- */
.db { max-width: 980px; margin: 0 auto; padding: 36px 20px 90px; }
.db-head .db-ver { color: var(--faint); font-size: 14px; }
.db-bar { padding: 16px; position: sticky; top: 70px; z-index: 5; display: grid; gap: 12px; }
.db-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.db-tabs button { flex: 1; min-width: 110px; padding: 9px 14px; border-radius: 9px; border: 1px solid rgba(231, 195, 108, 0.3); background: rgba(10, 7, 4, 0.5); color: var(--dim); font: 700 15px var(--sans); cursor: pointer; }
.db-tabs button.active { color: #2b1b08; background: linear-gradient(#ffe7a3, #e0b04c); border-color: #8a6420; }
#db-q { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--trim); background: #0d0906; color: var(--text); font: 16px var(--sans); }
#db-q:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231, 195, 108, 0.2); }
.db-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--dim); font-size: 14px; }
.db-filters:empty { display: none; }
.db-filters label { display: flex; align-items: center; gap: 7px; }
.db-filters select, .db-filters input[type=number] { padding: 6px 8px; border-radius: 7px; border: 1px solid rgba(231, 195, 108, 0.35); background: #0d0906; color: var(--text); font: 14px var(--sans); }
.db-filters .lvl input { width: 64px; }
.db-filters .check input { accent-color: var(--gold); }
.db-count { color: var(--faint); font-size: 14px; margin: 16px 4px 8px; }
.db-list { display: grid; gap: 8px; }
.db-row { border: 1px solid rgba(122, 95, 54, 0.55); border-radius: 11px; background: rgba(28, 21, 14, 0.7); overflow: hidden; scroll-margin-top: 290px; }
.db-row.open { border-color: var(--gold); background: rgba(36, 27, 17, 0.9); }
.db-row-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.db-row-head:hover { background: rgba(255, 220, 150, 0.05); }
.db-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.db-name { font: 700 17px var(--serif); color: var(--gold-text); }
.db-meta { color: var(--dim); font-size: 13.5px; }
.db-stats { color: #9fd8ff; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.db-side { color: var(--faint); font-size: 13px; white-space: nowrap; display: flex; gap: 6px; }
.db-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(231, 195, 108, 0.35); color: var(--dim); font-size: 12px; font-weight: 700; }
.db-tag.boss { color: #2b1b08; background: linear-gradient(#ffe7a3, #e0b04c); border-color: #8a6420; }
.db-pic { flex: none; display: inline-block; background-repeat: no-repeat; border-radius: 8px; }
.db-pic.item { background-color: #1a130d; border: 1px solid rgba(122, 95, 54, 0.6); }
.db-pic.mon { background-color: rgba(0, 0, 0, 0.18); }
.db-pic.none { background: repeating-linear-gradient(45deg, #1a130d 0 6px, #241a12 6px 12px); }
.db-pic.quest { width: 44px; height: 44px; display: grid; place-items: center; font: 800 22px var(--serif); color: #2b1b08; background: linear-gradient(#ffe7a3, #e0b04c); border-radius: 50%; }
.db-pic.zone { border: 1px solid rgba(122, 95, 54, 0.6); background: linear-gradient(135deg, #5f9a3e, #2c5a27); }
.db-pic.zone.theme-dark { background: linear-gradient(135deg, #2d4637, #14261c); }
.db-pic.zone.theme-volcanic { background: linear-gradient(135deg, #e2581c, #2a201c); }
.db-pic.zone.theme-frost { background: linear-gradient(135deg, #e6eef5, #7d8b99); }
.db-pic.zone.theme-desert { background: linear-gradient(135deg, #efdcaa, #b8915a); }
.db-pic.zone.theme-coast { background: linear-gradient(135deg, #1ea0be, #3f8a3a); }
.db-pic.zone.theme-void, .db-pic.zone.theme-citadel { background: linear-gradient(135deg, #a040ff, #120e18); }
.db-pic.zone.theme-starfall { background: linear-gradient(135deg, #7fd0ff, #141c40); }
.db-pic.zone.theme-crypt { background: linear-gradient(135deg, #57504a, #141210); }
.db-pic.zone.theme-arena { background: linear-gradient(135deg, #d6ba8a, #9c7e58); }
.db-detail { padding: 4px 18px 16px 72px; border-top: 1px solid rgba(122, 95, 54, 0.35); }
.db-detail h4 { margin: 14px 0 6px; font: 700 15px var(--serif); color: var(--gold-text); letter-spacing: 0.3px; }
.db-desc { color: #e0d3b8; font-style: italic; margin: 12px 0 0; }
.db-note { color: var(--dim); font-size: 14.5px; margin: 8px 0 0; }
.db-src, .db-drops { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 5px; font-size: 14.5px; color: #e0d3b8; }
.db-src li { padding-left: 14px; position: relative; }
.db-src li::before { content: '•'; position: absolute; left: 0; color: var(--gold); }
.db-drops li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.db-link { border-bottom: 1px dotted rgba(231, 195, 108, 0.5); }
.db-more { justify-self: center; margin-top: 10px; }
.db-empty { text-align: center; color: var(--faint); padding: 30px 0; }
@media (max-width: 640px) {
  .db-bar { position: static; padding: 12px; }      /* (on a phone it would cover half the screen) */
  .db-row { scroll-margin-top: 80px; }
  .db-detail { padding-left: 16px; }
  .db-side { display: none; }
}

/* ---- Leaderboards (v0.46) ---- */
.lb-page section { margin: 28px 0; }
.lb-featured { padding: 10px 14px; border-radius: 10px; background: rgba(231, 195, 108, 0.12); border: 1px solid rgba(231, 195, 108, 0.35); color: #ffe7a8; }
.lb-status { color: var(--muted, #b9a98c); }
.lb-switch { display: flex; gap: 8px; margin: 10px 0; }
.lb-switch .btn { padding: 6px 14px; font-size: 14px; opacity: 0.7; }
.lb-switch .btn.on { opacity: 1; }
.lb-scroll { overflow-x: auto; }
table.lb { width: 100%; border-collapse: collapse; font-size: 15px; }
table.lb th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; padding: 6px 10px; }
table.lb td { padding: 8px 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
table.lb td.time { font-variant-numeric: tabular-nums; color: #f2d48a; white-space: nowrap; }
table.lb td.dim { opacity: 0.75; }
table.lb td.empty { opacity: 0.6; font-style: italic; }
/* (v0.46: one more link in the top bar) never wrap a link; tighter between 1000 and 1280 px */
.nav a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1320px) { .nav a { padding: 8px 7px; font-size: 14px; } .nav { gap: 0; margin-left: 6px; } }
@media (min-width: 861px) and (max-width: 1040px) { .nav a { padding: 8px 5px; font-size: 13px; } .brand span { display: none; } }

/* ---- The Account page (v0.49, account.html + js/account.js) ---- */
.acct-head { padding-bottom: 40px; }
.acct-page { max-width: 1120px; margin: 0 auto; padding: 28px 18px 70px; min-height: 50vh; }
.acct-status { text-align: center; color: var(--dim); }
.acct-signin { max-width: 420px; margin: 10px auto; padding: 26px 26px 20px; }
.acct-signin label { display: block; margin: 0 0 14px; color: var(--dim); font-size: 14px; }
.acct-signin input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 8px; border: 1px solid #5d4628; background: #0d0906; color: var(--text); font: 16px var(--sans); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); }
.acct-signin input:focus { outline: none; border-color: var(--gold); }
.acct-go { width: 100%; margin-top: 4px; }
.acct-go:disabled { opacity: 0.6; cursor: default; transform: none; }
.acct-link { margin-top: 10px; background: none; color: var(--dim); border: 0; text-decoration: underline; padding: 4px; }
.acct-error { margin: 12px 0 0; color: #ff9b8f; font-size: 14px; }
.acct-note { margin: 0 0 14px; color: var(--dim); font-size: 14px; }
.acct-small { margin: 12px 0 0; color: var(--faint); font-size: 13px; text-align: center; }
.acct-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--faint); font-size: 13px; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: rgba(231, 195, 108, 0.2); }
.acct-discord { width: 100%; color: #fff; background: var(--discord); border-color: #3e48c4; }
.acct-discord:hover { color: #fff; background: #6773f4; }
.acct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: rgba(28, 21, 14, 0.82); border: 1px solid rgba(122, 95, 54, 0.6); color: var(--dim); }
.acct-bar b { color: var(--gold-text); }
.acct-embers { margin-right: auto; color: #fcd9a8; font-weight: 700; }
.acct-bar .btn-small, .acct-bar .btn { padding: 7px 14px; font-size: 14px; background: rgba(255, 230, 180, 0.08); color: var(--text); border-color: #5d4628; }
.acct-toast { position: fixed; left: 50%; bottom: 26px; z-index: 40; transform: translateX(-50%); max-width: min(560px, calc(100vw - 30px)); padding: 10px 16px; border-radius: 10px;
  background: linear-gradient(#2e2319, #1e1711); border: 1px solid rgba(231, 195, 108, 0.5); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); font-size: 15px; text-align: center; }
#acct-app { display: block; min-height: 300px; }
/* The game's "are you sure?" box (it lives outside the game-styled part of the page) */
.confirm-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(10, 7, 4, 0.6); }
.confirm-box { width: min(380px, calc(100vw - 32px)); padding: 16px 18px 14px; border-radius: 10px; background: linear-gradient(180deg, #2e2319, #1e1711);
  border: 1px solid rgba(231, 195, 108, 0.45); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }
.confirm-title { font: 700 19px var(--serif); color: var(--gold-text); }
.confirm-text { margin: 8px 0 0; color: var(--dim); font-size: 14px; line-height: 1.45; }
.confirm-box .dialog-buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.confirm-box .dialog-buttons button { padding: 8px 16px; border-radius: 6px; font: 700 14px var(--serif); cursor: pointer; color: #2b1b08; background: linear-gradient(#ffe7a3, #f2c45c 45%, #c9902f); border: 1px solid #8a6420; }
.confirm-box .dialog-buttons button.secondary { background: rgba(255, 230, 180, 0.08); color: #e8dcc0; border-color: #5d4628; }
.confirm-box .dialog-buttons button.danger { background: linear-gradient(#a8372c, #7d2219); border-color: #4a120c; color: #fff1e6; }
