/* RSPS Atoll. Night in the jungle temple: the login screen's stone, its gold trim and red-brown buttons, and the
   green flames of the braziers. Shared by every page. */
:root {
  --bg: #070b08;
  --bg-2: #0b120d;
  --panel: #101912;
  --panel-2: #152219;
  --stone: #2b2a24;
  --line: rgba(227, 196, 107, .16);
  --line-2: rgba(227, 196, 107, .32);
  --gold: #e3c46b;
  --gold-hi: #f7e1a0;
  --gold-dim: #b79a4c;
  --cream: #f1e9d4;
  --muted: #a8a28b;
  --faint: #6f6b5c;
  --flame: #49e0a1;
  --flame-hi: #9dffd2;
  --flame-deep: #157a52;
  --ruby: #6d2219;
  --ruby-hi: #9a3326;
  --radius: 10px;
  --max: 1180px;
  --gutter: max(16px, calc((100% - var(--max)) / 2));
  --display: Cinzel, Georgia, "Times New Roman", serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
code { background: rgba(0, 0, 0, .4); border: 1px solid var(--line); padding: 1px 7px; border-radius: 5px; font-size: .88em; }
::selection { background: rgba(73, 224, 161, .35); color: #fff; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: .01em; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid, .nav.is-static {
  background: rgba(7, 11, 8, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--gold); letter-spacing: .04em; }
.nav-brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--cream); font-size: .93rem; font-weight: 500; opacity: .82; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--gold-hi); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { padding: 9px 18px !important; font-size: .9rem !important; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--cream); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; border-radius: 2px; transition: transform .2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --glow: rgba(227, 196, 107, 0);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 8px;
  font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: .04em;
  cursor: pointer; border: 0; white-space: nowrap;
  transition: transform .18s var(--ease-out), box-shadow .25s ease, background .2s ease, color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-play {
  color: #fff6dc;
  background: linear-gradient(180deg, #b1402f 0%, var(--ruby-hi) 45%, var(--ruby) 100%);
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 2px 0 3px rgba(255, 255, 255, .12), 0 10px 30px -6px rgba(154, 51, 38, .7), 0 0 0 0 rgba(227, 196, 107, .5);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}
.btn-play:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--gold-hi), inset 0 2px 0 3px rgba(255, 255, 255, .18), 0 16px 40px -8px rgba(185, 64, 46, .85), 0 0 34px rgba(227, 196, 107, .28); }
.btn-play::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, .28) 50%, transparent 65%) -200% 0 / 250% 100% no-repeat;
  animation: sheen 4.5s ease-in-out infinite 1.5s;
}
@keyframes sheen { 0%, 70% { background-position: 200% 0; } 100% { background-position: -100% 0; } }
.btn-ghost { color: var(--gold); background: rgba(8, 12, 9, .45); box-shadow: inset 0 0 0 1.5px var(--line-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--gold-hi); box-shadow: inset 0 0 0 1.5px var(--gold); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 1.15rem; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px; overflow: hidden; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 60%; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 58% at 50% 52%, rgba(7, 11, 8, .8) 0%, rgba(7, 11, 8, .5) 50%, rgba(7, 11, 8, .05) 80%),
    linear-gradient(180deg, rgba(7, 11, 8, .55) 0%, rgba(7, 11, 8, 0) 22%, rgba(7, 11, 8, 0) 62%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 84px 16px 120px; will-change: transform, opacity;
}
.hero-logo { width: clamp(150px, 16vw, 230px); height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .7)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.live-pill {
  display: inline-flex; align-items: center; gap: 9px; margin: 12px 0 14px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--cream);
  background: rgba(8, 14, 10, .7); box-shadow: inset 0 0 0 1px rgba(73, 224, 161, .35);
  backdrop-filter: blur(6px);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 0 rgba(73, 224, 161, .7); animation: pulse 2s infinite; }
.live-pill.is-offline .live-dot { background: var(--faint); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(73, 224, 161, .6); } 70% { box-shadow: 0 0 0 9px rgba(73, 224, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(73, 224, 161, 0); } }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem); font-weight: 800; line-height: 1.04; max-width: 20ch;
  background: linear-gradient(180deg, #fff8e4 10%, var(--gold) 60%, #b98f3c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .65));
}
.hero-sub { max-width: 600px; margin: 18px auto 28px; font-size: clamp(1rem, 1.6vw, 1.18rem); color: #d9d1ba; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0; font-size: .82rem; color: var(--muted); text-shadow: 0 1px 8px #000; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; }
.scroll-cue i { width: 22px; height: 36px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line-2); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- Stats strip ---------- */
.stats { position: relative; z-index: 3; margin-top: -64px; padding: 0 var(--gutter); }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(21, 34, 25, .92), rgba(12, 19, 14, .95));
  border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px);
}
.stat { padding: 24px 18px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--gold-hi); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat.is-live b { color: var(--flame-hi); text-shadow: 0 0 22px rgba(73, 224, 161, .45); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px var(--gutter); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--flame); }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.section h2 { margin: 14px 0 16px; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; color: var(--cream); }
.section h2 em { font-style: normal; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.glow-line { position: absolute; left: 50%; top: 0; width: min(900px, 90%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* Feature rows with screenshots */
.showcase { display: grid; gap: 120px; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: 1fr 1.15fr; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { position: relative; }
.shot {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--panel); box-shadow: 0 0 0 1px var(--line-2), 0 0 0 7px rgba(16, 25, 18, .9), 0 0 0 8px var(--line), 0 40px 80px -30px rgba(0, 0, 0, .9);
  transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .5s var(--ease-out);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out); }
.feature:hover .shot img { transform: scale(1.07); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 8, .55)); pointer-events: none; }
.shot-tag { position: absolute; z-index: 2; left: 16px; bottom: 14px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 6px #000; }
.shot-inset { position: absolute; width: 42%; right: -5%; bottom: -12%; aspect-ratio: 16 / 10; z-index: 2; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 5px rgba(16, 25, 18, .95), 0 0 0 6px var(--line), 0 30px 50px -16px rgba(0, 0, 0, .95); transform: rotate(2deg); transition: transform .5s var(--ease-out); }
.feature:nth-child(even) .shot-inset { right: auto; left: -5%; transform: rotate(-2deg); }
.feature:hover .shot-inset { transform: rotate(0deg) translateY(-6px); }
.shot-inset::after { display: none; }
.feature-media::before { content: ""; position: absolute; inset: 10% -6% -8% 10%; background: radial-gradient(closest-side, rgba(73, 224, 161, .22), transparent); filter: blur(30px); z-index: -1; }
.feature-copy h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 12px 0 16px; }
.feature-copy p { color: var(--muted); margin: 0 0 22px; font-size: 1.04rem; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: .82rem; padding: 6px 12px; border-radius: 999px; color: var(--cream); background: rgba(73, 224, 161, .07); box-shadow: inset 0 0 0 1px rgba(73, 224, 161, .25); }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 110px; }
.tile {
  position: relative; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(73, 224, 161, .12), transparent 45%); opacity: 0; transition: opacity .3s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -24px rgba(0, 0, 0, .9); }
.tile:hover::before { opacity: 1; }
.tile-icon { width: 72px; height: 64px; margin: -6px 0 14px -8px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.tile h3 { font-size: 1.22rem; color: var(--gold); margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.tile-wide { grid-column: span 2; }

/* ---------- Raids ---------- */
.section-raids { background: radial-gradient(1200px 600px at 50% 0%, rgba(73, 224, 161, .06), transparent 60%), var(--bg-2); }
.raids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.raid {
  --accent: 73, 224, 161;
  position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 30px 28px; border-radius: 14px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 0%, rgba(var(--accent), .30), transparent 60%), linear-gradient(180deg, #121c15, #0a100b);
  box-shadow: inset 0 0 0 1px rgba(var(--accent), .35), 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: transform .45s var(--ease-out), box-shadow .45s ease;
}
.raid:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(var(--accent), .7), 0 40px 70px -30px rgba(var(--accent), .45); }
.raid::after { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(closest-side, rgba(var(--accent), .18), transparent); z-index: -1; }
.raid-cox { --accent: 89, 205, 214; }
.raid-tob { --accent: 214, 66, 66; }
.raid-toa { --accent: 233, 180, 82; }
.raid-num { font-family: var(--display); font-size: .8rem; font-weight: 800; letter-spacing: .3em; color: rgb(var(--accent)); }
.raid-art { display: grid; place-items: center; height: 190px; margin: 6px 0 10px; }
.raid-art img { width: 144px; height: 128px; filter: drop-shadow(0 0 28px rgba(var(--accent), .55)) drop-shadow(0 14px 14px rgba(0, 0, 0, .6)); transition: transform .6s var(--ease-out); }
.raid:hover .raid-art img { transform: translateY(-8px) scale(1.06); }
.raid h3 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.raid p { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.raid ul { margin: auto 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid rgba(var(--accent), .22); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: #d7cfb7; }
.raid ul li::before { content: "◆"; color: rgb(var(--accent)); font-size: .6rem; margin-right: 7px; vertical-align: 2px; }

.bosses-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 90px 0 24px; flex-wrap: wrap; }
.bosses-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.bosses-head p { margin: 6px 0 0; color: var(--muted); }
.boss-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.boss {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 8px; border-radius: 9px;
  background: rgba(21, 34, 25, .55); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--cream); font-size: .86rem; font-weight: 500; line-height: 1.25;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.boss img { width: 36px; height: 32px; flex: none; }
.boss:hover { color: #fff; background: rgba(73, 224, 161, .09); box-shadow: inset 0 0 0 1px rgba(73, 224, 161, .45); transform: translateY(-2px); }

/* ---------- Modes ---------- */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode {
  position: relative; padding: 28px 24px 26px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.mode:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 50px -28px rgba(0, 0, 0, .9); }
.mode-featured { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 50px -10px rgba(227, 196, 107, .25); }
.mode-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1b1407; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); white-space: nowrap; }
.mode h3 { font-size: 1.3rem; color: var(--gold); }
.mode-rate { margin: 14px 0 2px; font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: #fff; }
.mode-rate small { font-size: 1.4rem; color: var(--gold); margin-left: 2px; }
.mode-label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mode dl { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; text-align: left; font-size: .9rem; }
.mode dt { color: var(--muted); }
.mode dd { margin: 0; font-weight: 600; text-align: right; }
.mode dd.up { color: var(--flame); }
.irons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin: 44px auto 0; max-width: 880px; padding: 22px 26px; border-radius: 14px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); }
.irons p { width: 100%; margin: 0 0 4px; text-align: center; color: var(--muted); font-size: .95rem; }
.irons p strong { color: var(--flame); font-weight: 600; }
.iron { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.iron img { width: 13px; height: auto; }

/* ---------- Hiscores teaser ---------- */
.board-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.board-teaser h2 { text-align: left; }
.board-teaser .lead { margin-bottom: 26px; }
.podium { border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 70px -40px rgba(0, 0, 0, .95); }
.podium-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 800; color: var(--gold); }
.podium-head span { font-family: var(--body); font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.podium ol { list-style: none; margin: 0; padding: 6px 0; }
.podium li a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 20px; color: var(--cream); transition: background .2s ease; }
.podium li a:hover { background: rgba(73, 224, 161, .06); }
.podium .rk { font-family: var(--display); font-weight: 800; color: var(--muted); text-align: center; }
.podium li:nth-child(1) .rk { color: #ffd76a; text-shadow: 0 0 14px rgba(255, 215, 106, .5); }
.podium li:nth-child(2) .rk { color: #d9dde4; }
.podium li:nth-child(3) .rk { color: #e0a06a; }
.podium .who { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.podium .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .val { text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem; color: var(--muted); }
.podium .val b { color: var(--cream); font-weight: 600; }
.podium-empty { padding: 34px 22px; text-align: center; color: var(--muted); font-size: .95rem; }

/* A player's game-mode helm and the online dot (front page and hiscores) */
.mode-icon { width: auto; height: 13px; display: inline-block; vertical-align: -1px; margin-right: 6px; }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 8px rgba(73, 224, 161, .8); vertical-align: 1px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 34px 26px 28px; border-radius: 14px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 24px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: #fff6dc;
  background: linear-gradient(180deg, var(--ruby-hi), var(--ruby)); box-shadow: inset 0 0 0 2px var(--gold), 0 8px 20px -6px rgba(154, 51, 38, .8);
}
.steps h3 { font-size: 1.2rem; color: var(--gold); margin: 6px 0 10px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final { position: relative; padding: 150px var(--gutter); text-align: center; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -2; background: url("../img/temple-bg@2x.jpg") 50% 62% / cover no-repeat; transform: scale(1.6); transform-origin: 50% 62%; filter: saturate(1.1); }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(7, 11, 8, .55), rgba(7, 11, 8, .92) 80%), linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.final h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 800; margin: 14px 0 18px; }
.final p { color: #d6cfb8; max-width: 540px; margin: 0 auto 34px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { padding: 56px var(--gutter) 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
.footer-brand img { width: 56px; height: auto; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--cream); opacity: .8; font-size: .92rem; }
.footer-links a:hover { opacity: 1; color: var(--gold-hi); }
.footer-legal { margin: 28px 0 0; font-size: .78rem; color: var(--faint); max-width: 640px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Simple page (PayPal return) ---------- */
.simple { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(rgba(7, 11, 8, .72), var(--bg)), url("../img/temple-bg.jpg") center / cover; }
.simple-card { max-width: 620px; padding: 36px 32px; text-align: center; border-radius: 16px; background: rgba(16, 25, 18, .86); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -30px #000; backdrop-filter: blur(8px); }
.simple-card img { width: 180px; margin: 0 auto 10px; }
.simple-card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--gold); margin-bottom: 12px; }
.simple-card p { color: var(--muted); margin: 0 0 26px; }
.simple-card .hero-actions { gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .raids { grid-template-columns: 1fr; }
  .raid { min-height: 0; }
  .modes { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-column: span 2; }
  .board-teaser { grid-template-columns: 1fr; }
  .board-teaser h2 { text-align: center; }
  .board-teaser .section-head { margin-bottom: 0; }
}
@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 62px 12px auto; flex-direction: column; gap: 0; padding: 10px; border-radius: 14px; background: rgba(11, 18, 13, .97); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px #000; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-links a { padding: 12px 14px; border-radius: 8px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: rgba(73, 224, 161, .07); }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(7, 11, 8, .95); }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-cta { margin-top: 6px; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .shot-inset { width: 40%; right: -2%; bottom: -10%; }
  .feature:nth-child(even) .shot-inset { left: -2%; }
  .showcase { gap: 80px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .section { padding-top: 90px; padding-bottom: 90px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .modes { grid-template-columns: 1fr; }
  .boss-wall { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; }
  .scroll-cue { display: none; }
  .final { padding: 110px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
