/* ==========================================================================
   OnlyChimps — Guild Hall
   Layout: full-bleed in-game "loading screens" alternate with framed UI panels
   (the WoW interface: gold-trim frames, tooltips, raid frames, chat) on obsidian.
   ========================================================================== */
:root {
  color-scheme: dark;

  /* Stone & gold */
  --void: #0a0706;
  --ink: #0f0a08;
  --stone: #160f0c;
  --stone-2: #1e1511;
  --stone-3: #2a1d17;
  --line: #3a2a20;
  --gold: #d9ad55;
  --gold-hi: #f6dc96;
  --gold-lo: #7d5d22;
  --ui-gold: #ffd100;            /* WoW NORMAL_FONT_COLOR */
  --bone: #ece4d3;
  --bone-2: #bdb4a1;
  --bone-3: #8a8271;
  --ember: #ff8a3d;
  --horde: #c8161d;
  --horde-hi: #ff4b3e;
  --danger: #ff4a3d;
  --tt-bg: #070818;
  --tt-edge: #9a9aad;
  --parchment: #e8d6ae;
  --parchment-ink: #3b2a14;

  /* Chat channels */
  --ch-guild: #40ff40;
  --ch-officer: #40c040;
  --ch-system: #ffff00;
  --ch-raid: #ff7f00;
  --ch-rw: #ff4800;
  --ch-whisper: #ff80ff;
  --ch-party: #aaaaff;
  --ch-yell: #ff4040;
  --ch-say: #ffffff;

  /* Item quality */
  --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #0070dd;
  --q4: #a335ee; --q5: #ff8000; --q6: #e6cc80;

  /* Class colors */
  --c-warrior: #c69b6d; --c-paladin: #f48cba; --c-hunter: #aad372;
  --c-rogue: #fff468;   --c-priest: #ffffff;  --c-shaman: #2a86f2;
  --c-mage: #3fc7eb;    --c-warlock: #8788ee; --c-druid: #ff7c0a;

  /* Type */
  --f-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', Georgia, serif;
  --f-title: 'Metamorphous', 'Cinzel', Georgia, serif;
  --f-body: 'Alegreya Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --t-xs: .78rem; --t-sm: .9rem; --t-md: 1.06rem; --t-lg: 1.3rem;
  --t-xl: 1.75rem; --t-2xl: 2.2rem; --t-3xl: clamp(2.1rem, 4.2vw, 3.1rem);

  --maxw: 1200px;
  --nav-h: 62px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { /* film grain + vignette, fixed */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(0,0,0,.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration-color: color-mix(in srgb, var(--gold) 45%, transparent); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--ui-gold); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgba(255, 209, 0, .3); color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ui-gold); color: #000; padding: 8px 12px; border-radius: 3px; font-weight: 700; }
.skip:focus { top: 12px; }

#app { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.band--tight { padding-block: clamp(36px, 5vw, 64px); }
.band--ink { background: linear-gradient(180deg, var(--ink), var(--void)); border-block: 1px solid #1a120e; }

/* ---------- Type ----------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-xs);
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.h-title { font-family: var(--f-title); font-size: var(--t-3xl); color: var(--bone); letter-spacing: .01em; }
.h-sub { font-family: var(--f-title); font-size: var(--t-xl); color: var(--ui-gold); }
.h-sm { font-family: var(--f-display); font-weight: 700; font-size: var(--t-sm); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--bone-2); max-width: 62ch; }
.muted { color: var(--bone-3); }
.gold { color: var(--ui-gold); }
.flavor { color: var(--ui-gold); font-style: italic; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.section-head .lede { margin-top: 4px; }
.prose { max-width: 68ch; display: grid; gap: 1em; color: var(--bone-2); }
.prose strong { color: var(--bone); font-weight: 700; }
p.prose, .prose p { display: block; }
.prose--lg { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--bone); gap: 1.1em; }
.intro-open { font-family: var(--f-title); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.25; color: var(--bone); text-wrap: balance; }
.prose h3 { font-family: var(--f-title); color: var(--ui-gold); font-size: var(--t-lg); margin-top: .6em; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: .4em; }
.prose li::marker { color: var(--gold); }
.tnum { font-variant-numeric: tabular-nums; }

/* inline game links */
.spell { color: var(--gold-hi); font-weight: 500; white-space: nowrap; }
.spell::before { content: "["; opacity: .55; } .spell::after { content: "]"; opacity: .55; }
.item { font-weight: 500; }
.item::before { content: "["; } .item::after { content: "]"; }
.item.q0 { color: var(--q0); } .item.q1 { color: var(--q1); } .item.q2 { color: var(--q2); }
.item.q3 { color: var(--q3); } .item.q4 { color: var(--q4); } .item.q5 { color: var(--q5); } .item.q6 { color: var(--q6); }
.cc { font-weight: 700; }
.cc-warrior { color: var(--c-warrior); } .cc-paladin { color: var(--c-paladin); } .cc-hunter { color: var(--c-hunter); }
.cc-rogue { color: var(--c-rogue); } .cc-priest { color: var(--c-priest); } .cc-shaman { color: #2f8fff; }
.cc-mage { color: var(--c-mage); } .cc-warlock { color: var(--c-warlock); } .cc-druid { color: var(--c-druid); }

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: 0 22px; border-radius: 3px; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: #1b1205; border: 1px solid #f3d27f;
  background: linear-gradient(180deg, #f7dc8f 0%, #d9a845 48%, #b07f25 52%, #d4a043 100%);
  box-shadow: 0 0 0 1px #4a3210, 0 6px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .15s var(--ease), filter .15s, box-shadow .2s;
}
.btn:hover { color: #000; filter: brightness(1.08); box-shadow: 0 0 0 1px #4a3210, 0 0 22px rgba(255,200,90,.35), inset 0 1px 0 rgba(255,255,255,.6); }
.btn:active { transform: translateY(1px); }
.btn--ghost { color: var(--gold-hi); background: rgba(10,10,12,.55); border-color: var(--gold-lo); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.btn--ghost:hover { color: #fff; border-color: var(--gold); background: rgba(40,30,10,.6); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* WoW red "UIPanelButton" */
.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 16px;
  font-family: var(--f-body); font-weight: 700; font-size: .92rem; color: var(--ui-gold); cursor: pointer;
  background: linear-gradient(180deg, #8a1a10, #5a0d06 55%, #3d0803); border: 1px solid #c9a44f; border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,160,120,.35), 0 2px 6px rgba(0,0,0,.6); text-shadow: 0 1px 0 #000;
}
.ui-btn:hover { filter: brightness(1.2); color: #fff; }
.ui-btn:disabled { filter: grayscale(1) brightness(.7); cursor: default; }

/* ---------- Header / action-bar navigation ---------------------------------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: linear-gradient(180deg, rgba(10,7,6,.94), rgba(10,7,6,.8));
  border-bottom: 1px solid rgba(217,173,85,.18);
  backdrop-filter: blur(10px) saturate(1.2);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); opacity: .35; }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; flex-shrink: 0; }
.brand-emblem { width: 44px; height: 44px; border-radius: 50%; filter: drop-shadow(0 2px 6px rgba(0,0,0,.8)); transition: transform .3s var(--ease), filter .3s; }
.brand:hover .brand-emblem { transform: rotate(-6deg) scale(1.06); filter: drop-shadow(0 0 10px rgba(255,75,62,.55)); }
.brand-name { font-family: var(--f-display); font-weight: 900; font-size: 1.12rem; letter-spacing: .12em; color: var(--gold-hi); }
.brand:hover .brand-name { color: #fff; }

.actionbar { display: flex; gap: 6px; margin-left: auto; }
.ab {
  position: relative; display: flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 5px 12px 5px 5px; border-radius: 4px; color: var(--bone-2);
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.ab-icon { position: relative; width: 36px; height: 36px; border-radius: 3px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px #3d3a33, inset 0 0 8px rgba(0,0,0,.8); }
.ab-icon img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.85) brightness(.88); transition: filter .2s; }
.ab-icon::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 10px rgba(0,0,0,.6); }
.ab-key { position: absolute; top: 1px; right: 3px; font-size: .66rem; font-weight: 700; color: #ddd; text-shadow: 0 0 2px #000, 0 0 2px #000; z-index: 2; font-family: var(--f-body); }
.ab-label { font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.ab:hover { color: #fff; }
.ab:hover .ab-icon { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--ui-gold), 0 0 12px rgba(255,209,0,.45); }
.ab:hover .ab-icon img { filter: saturate(1.1) brightness(1.08); }
.ab[aria-current="page"] { color: var(--ui-gold); }
.ab[aria-current="page"] .ab-icon { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--ui-gold), 0 0 14px rgba(255,209,0,.35); }
.ab[aria-current="page"] .ab-icon img { filter: none; }
/* global cooldown sweep */
.ab-icon .cd { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: conic-gradient(rgba(0,0,0,.72) var(--cd, 0%), transparent 0); }
.ab.on-cd .cd { animation: gcd 1s linear forwards; }
@property --cd { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@keyframes gcd { 0% { opacity: 1; --cd: 100%; } 99% { opacity: 1; --cd: 0%; } 100% { opacity: 0; --cd: 0%; } }

.launch-chip { display: none; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .78rem; color: var(--bone-2); white-space: nowrap; text-decoration: none; }
.launch-chip b { color: var(--ui-gold); font-variant-numeric: tabular-nums; }
.launch-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ch-guild); box-shadow: 0 0 8px var(--ch-guild); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (min-width: 1280px) { .launch-chip { display: inline-flex; } }
.discord-btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 7px 12px; border-radius: 3px; text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: #4752c4; border: 1px solid #6a74e0; box-shadow: 0 2px 10px rgba(71,82,196,.35); }
.discord-btn:hover { color: #fff; background: #5865f2; }
.discord-btn svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .topbar .wrap { justify-content: space-between; } }
@media (min-width: 901px) and (max-width: 1180px) {
  .topbar .wrap { gap: 12px; }
  .actionbar { gap: 2px; }
  .ab { gap: 7px; padding-right: 7px; }
  .ab-label { letter-spacing: .05em; font-size: .68rem; }
  .discord-btn { padding: 7px 10px; letter-spacing: .06em; }
}
@media (min-width: 901px) and (max-width: 1000px) { .discord-btn { font-size: 0; gap: 0; } .discord-btn svg { width: 18px; height: 18px; } }

/* mobile: action bar docks to the bottom like the real UI */
@media (max-width: 900px) {
  .topbar { backdrop-filter: none; background: rgba(10,7,6,.96); }
  .topbar .wrap { justify-content: center; }
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 50; justify-content: space-around; gap: 0;
    padding: 6px var(--gutter-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: linear-gradient(180deg, rgba(14,14,16,.96), rgba(5,5,6,.98)); border-top: 1px solid rgba(217,173,85,.3);
    backdrop-filter: blur(10px);
  }
  .ab { flex-direction: column; gap: 3px; padding: 2px 4px; }
  .ab-icon { width: 40px; height: 40px; }
  .ab-label { font-size: .56rem; letter-spacing: .08em; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) { .ab-label { display: none; } }

/* ---------- Hero ------------------------------------------------------------- */
.hero { position: relative; min-height: min(86vh, 860px); display: grid; align-items: end; overflow: hidden; isolation: isolate; background: #070504; }
.hero-slides { position: absolute; inset: 0; z-index: -3; }
.hero-slide { position: absolute; inset: -3%; background-size: cover; background-position: center; opacity: 0; transition: opacity 2.4s ease; transform: scale(1.04); filter: blur(1.5px) saturate(.95) brightness(1); }
.hero-slide.is-on { opacity: 1; animation: kenburns 16s linear forwards; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(-1.2%, -1%, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(10,7,6,.45) 0%, rgba(10,7,6,0) 24%, rgba(10,7,6,.18) 58%, rgba(10,7,6,.92) 87%, var(--void) 100%),
    radial-gradient(80% 70% at 50% 38%, transparent 20%, rgba(6,3,2,.5) 100%),
    linear-gradient(180deg, rgba(90,22,8,.22), rgba(40,10,4,.12) 55%, transparent 85%); }
.hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero canvas.embers-front { z-index: 3; filter: blur(1.5px); }
.hero-inner { padding-block: 40px 28px; display: grid; justify-items: center; text-align: center; gap: 18px; }
.hero-logo { position: relative; isolation: isolate; display: inline-block; margin: 0 0 -6px; line-height: 0; }
.hero-logo::before { content: ""; position: absolute; inset: -16% -34% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,140,60,.42), rgba(210,40,20,.2) 55%, transparent 100%);
  filter: blur(10px); animation: torch 4.5s ease-in-out infinite alternate; }
.hero-logo::after { content: ""; position: absolute; left: -30%; right: -30%; bottom: -7%; height: 20%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 62%, rgba(9,6,5,.92), rgba(9,6,5,.55) 48%, transparent 76%); filter: blur(8px); }
@keyframes torch { 0% { opacity: .72; transform: scale(.97); } 45% { opacity: 1; } 100% { opacity: .86; transform: scale(1.03); } }
.hero-logo img { width: clamp(250px, 32vw, 460px); height: auto; filter: drop-shadow(0 20px 34px rgba(0,0,0,.8)) drop-shadow(0 0 22px rgba(255,90,30,.22));
  -webkit-mask-image: linear-gradient(#000 86%, transparent 100%); mask-image: linear-gradient(#000 86%, transparent 100%); }
.horde-tag { color: var(--horde-hi); font-weight: 700; letter-spacing: .04em; }
.tagline { font-family: var(--f-title); font-size: clamp(1.25rem, 2.6vw, 2rem); color: var(--bone); text-shadow: 0 2px 12px #000; }
.tagline em { font-style: normal; color: var(--ui-gold); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: var(--t-sm); color: var(--bone-2); text-shadow: 0 1px 3px #000; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span + span::before { content: "◆"; font-size: .55em; color: var(--gold); margin-right: 10px; }
.hero .btn-row { justify-content: center; margin-top: 10px; }
.hero-count { display: grid; justify-items: center; gap: 8px; margin-top: 22px; }
.hero-count-label { font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 1px 3px #000; }
.countdown--sm { justify-content: center; gap: 8px; }
.countdown--sm .cd-unit { min-width: 70px; padding: 10px 8px 8px; background: rgba(8,9,11,.75); backdrop-filter: blur(4px); }
.countdown--sm .cd-num { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.countdown--sm .cd-num .dg { display: inline-block; width: .74em; text-align: center; }
.cd-lbl { font-size: .62rem; }
.hero .localtime { text-shadow: 0 1px 3px #000; font-size: .9rem; }
.hero-caption { position: absolute; right: var(--gutter-r); top: calc(var(--nav-h) * .4); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(236,228,211,.6); font-family: var(--f-display); text-shadow: 0 1px 3px #000; transition: opacity .8s; }

/* Loading-screen bar */
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(320%); } }

/* ---------- Page banner (inner pages) ----------------------------------------- */
.banner { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(92px, 12vw, 150px) clamp(36px, 5vw, 56px); background: #070504; }
.banner-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; transform: scale(1.03); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,7,6,.4) 0%, rgba(10,7,6,.15) 40%, rgba(10,7,6,.85) 85%, var(--void) 100%), linear-gradient(90deg, rgba(10,7,6,.7), transparent 65%); }
.banner .wrap { display: grid; gap: 12px; }
.banner .lede { color: var(--bone); text-shadow: 0 1px 8px #000; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--bone-3); }
.crumbs a { color: var(--bone-2); text-decoration: none; }
.crumbs a:hover { color: var(--ui-gold); }
.crumbs span::before { content: "›"; margin-right: 8px; color: var(--gold-lo); }

/* ---------- Frames (WoW UI panels) -------------------------------------------- */
.frame {
  position: relative; border-radius: 4px;
  background: linear-gradient(180deg, rgba(30,21,16,.96), rgba(14,9,7,.97));
  border: 1px solid #4b3d22;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px #2a2416, inset 0 1px 0 rgba(255,220,150,.07), inset 0 0 40px rgba(0,0,0,.45), 0 18px 40px rgba(0,0,0,.4);
}
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 2px solid var(--gold); opacity: .8; }
.frame::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.frame::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.frame-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px;
  border-bottom: 1px solid #2f2a1e; background: linear-gradient(180deg, rgba(60,45,18,.35), transparent); }
.frame-title { font-family: var(--f-title); color: var(--ui-gold); font-size: 1.1rem; }
.frame-body { padding: 18px; }

/* Tooltip (item card) */

/* Parchment (quest text) */

/* ---------- Grids & cards ------------------------------------------------------ */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } .split--rev > :first-child { order: 2; } }
.split > * { min-width: 0; }

.shot { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%;
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #3b2414, 0 0 0 4px #8a6a35, 0 0 0 5px #000, 0 0 70px rgba(255,110,40,.16), 0 30px 60px rgba(0,0,0,.65); }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(0,0,0,.55); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: .78rem; color: var(--bone-2); background: linear-gradient(transparent, rgba(0,0,0,.85)); letter-spacing: .04em; }

.card {
  position: relative; display: grid; align-content: end; min-height: 220px; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--bone);
  border-radius: 4px; padding: 18px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #2c2619; background: var(--stone);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.card-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .8s var(--ease), filter .4s; filter: saturate(.85) brightness(.8); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(5,6,8,.92) 85%); }
.card:hover { color: #fff; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--gold), 0 14px 40px rgba(0,0,0,.5); transform: translateY(-2px); }
.card:hover .card-img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.card h3 { font-family: var(--f-title); font-size: 1.35rem; color: var(--ui-gold); }
.card p { color: var(--bone-2); font-size: .95rem; margin-top: 4px; }
.card .tag { position: absolute; top: 14px; left: 14px; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 2px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(0,0,0,.7); border: 1px solid #3c3526; color: var(--bone-2); }
.tag--new { color: var(--q2); border-color: rgba(30,255,0,.35); }
.tag--raid { color: var(--q4); border-color: rgba(163,53,238,.45); }
.tag--classic { color: var(--q6); border-color: rgba(230,204,128,.4); }
.tag--gold { color: var(--ui-gold); border-color: rgba(255,209,0,.4); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Countdown + roadmap ------------------------------------------------ */
.countdown { display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 20px); }
.cd-unit { min-width: 92px; padding: 14px 10px 10px; text-align: center; border-radius: 4px; background: linear-gradient(180deg, #1a120e, #0e0907); box-shadow: 0 0 0 1px #000, 0 0 0 2px #3a3122, inset 0 1px 0 rgba(255,230,170,.06); }
.cd-num { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255,190,80,.25); }
.cd-lbl { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-3); margin-top: 6px; }
.localtime { font-size: .95rem; color: var(--bone-2); }
.localtime b { color: var(--bone); }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.roadmap li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.roadmap li::before { content: ""; position: absolute; left: 10px; top: 18px; bottom: -2px; width: 2px; background: #2c2a24; }
.roadmap li:last-child::before { display: none; }
.rm-dot { width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; background: #0e0907; border: 2px solid #4a4334; display: grid; place-items: center; position: relative; z-index: 1; }
.rm-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4a4334; }
.roadmap li.done .rm-dot { border-color: var(--gold-lo); } .roadmap li.done .rm-dot::after { background: var(--gold-lo); }
.roadmap li.done::before { background: var(--gold-lo); }
.roadmap li.now .rm-dot { border-color: var(--ui-gold); box-shadow: 0 0 14px rgba(255,209,0,.5); } .roadmap li.now .rm-dot::after { background: var(--ui-gold); }
.rm-date { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-family: var(--f-display); font-weight: 700; }
.rm-title { color: var(--bone); font-weight: 700; }
.rm-desc { color: var(--bone-3); font-size: .92rem; }
.roadmap li.done .rm-title { color: var(--bone-2); }

/* ---------- Pillars ------------------------------------------------------------- */
.pillar { display: grid; gap: 10px; padding: 22px; }
.pillar-icon { width: 46px; height: 46px; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5b4a28; }
.pillar h3 { font-family: var(--f-title); color: var(--ui-gold); font-size: 1.25rem; }
.pillar p { color: var(--bone-2); font-size: .98rem; }

/* ---------- Achievements ------------------------------------------------------- */
.ach-pts { width: 54px; height: 60px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 1.15rem; color: #fff; text-shadow: 0 1px 2px #000;
  background: radial-gradient(circle at 50% 35%, #d9b765, #8a6a2c 60%, #4b3714); clip-path: polygon(50% 0, 100% 12%, 100% 62%, 50% 100%, 0 62%, 0 12%); }
.ach.locked h4 { color: #9a9a9a; } .ach.locked p { color: #7d7d7d; }

/* toast — achievement alert */
.toasts { position: fixed; left: 50%; top: calc(var(--nav-h) + 18px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 80; display: grid; gap: 10px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: 52px 1fr 46px; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 6px; pointer-events: auto;
  background: linear-gradient(180deg, #33281a, #19130b); box-shadow: 0 0 0 1px #000, 0 0 0 2px #b08d45, 0 0 30px rgba(255,190,80,.35), 0 18px 40px rgba(0,0,0,.6);
  animation: toastIn .6s var(--ease) both, toastOut .6s ease 5.2s forwards; }
.toast img { width: 52px; height: 52px; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #8a6a35; }
.toast small { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-family: var(--f-display); font-weight: 700; }
.toast b { color: #fff; font-size: 1.02rem; }
.toast .ach-pts { width: 42px; height: 48px; font-size: .95rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- Ledger / tables ----------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #2c2619; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #2c1f18; vertical-align: top; }
th { font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); background: #120c09; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.015); }
tbody tr:hover { background: rgba(255,209,0,.04); }
td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ui-gold); font-weight: 700; }

/* ---------- Guides -------------------------------------------------------------- */
.guide-layout { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .guide-layout { grid-template-columns: 240px minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 2px; font-size: .9rem; }
.toc a { display: block; padding: 6px 12px; border-left: 2px solid #33251c; color: var(--bone-3); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--ui-gold); border-left-color: var(--ui-gold); }
@media (max-width: 999px) { .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .toc a { border: 1px solid #33251c; border-radius: 3px; padding: 4px 10px; } }
.gsec { display: grid; gap: 16px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.gsec + .gsec { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid #281c15; }
.gsec > h2 { font-family: var(--f-title); font-size: var(--t-2xl); color: var(--bone); }
.gsec > h2 small { display: block; font-family: var(--f-display); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px 16px; border-radius: 3px; background: rgba(255,209,0,.05); border: 1px solid rgba(255,209,0,.18); font-size: .96rem; color: var(--bone-2); }
.callout b { color: var(--ui-gold); }
.callout--warn { background: rgba(255,72,0,.06); border-color: rgba(255,72,0,.3); }
.callout--warn b { color: var(--ch-rw); }
.callout-k { font-family: var(--f-display); font-weight: 900; color: var(--ui-gold); font-size: .78rem; letter-spacing: .14em; padding-top: 3px; }
.callout--warn .callout-k { color: var(--ch-rw); }

.verify { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; }
.verify--ok { color: var(--q2); background: rgba(30,255,0,.07); border: 1px solid rgba(30,255,0,.3); }
.verify--base { color: var(--q6); background: rgba(230,204,128,.07); border: 1px solid rgba(230,204,128,.3); }

/* class grid */
.classgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.classcard { --cc: #888; position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 4px; text-decoration: none; color: var(--bone);
  background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 14%, #140d0a) 0%, #130d0a 70%); box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, var(--cc) 30%, #2a1d16); transition: box-shadow .2s, transform .2s var(--ease); }
.classcard img { width: 52px; height: 52px; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, var(--cc) 60%, #000); }
.classcard b { display: block; font-family: var(--f-title); font-size: 1.2rem; color: var(--cc); font-weight: 400; }
.classcard span { font-size: .82rem; color: var(--bone-3); }
.classcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--cc), 0 0 24px color-mix(in srgb, var(--cc) 30%, transparent); }

.spec-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; cursor: pointer; border-radius: 3px; background: #130d0a; border: 1px solid #2d2a22; color: var(--bone-2); font-weight: 700; }
.spec-tab[aria-selected="true"] { color: var(--ui-gold); border-color: var(--ui-gold); background: rgba(255,209,0,.06); }
.spec-panel { display: grid; gap: 14px; }

.abilities { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ability { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 3px; background: #130d0a; border: 1px solid #2a1e17; }
.ability img { width: 40px; height: 40px; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #3d3a33; }
.ability b { color: var(--ui-gold); font-weight: 700; }
.ability p { font-size: .9rem; color: var(--bone-2); }

.prio { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; counter-reset: p; }
.prio li { padding: 5px 12px; border-radius: 2px; background: #18110d; border: 1px solid #34261d; font-weight: 700; font-size: .9rem; color: var(--bone); }
.prio li + li::before { content: ">"; margin-right: 10px; margin-left: -4px; color: var(--gold); }

.boss { display: grid; gap: 10px; padding: 18px; }
.boss-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.boss-head h3 { font-family: var(--f-title); font-size: 1.3rem; color: var(--ui-gold); }
.boss ul { margin: 0; padding-left: 1.2em; display: grid; gap: 5px; color: var(--bone-2); }
.roles-line { display: grid; gap: 6px; font-size: .94rem; }
.roles-line div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; color: var(--bone-2); }
.roles-line b { font-family: var(--f-display); font-size: .7rem; letter-spacing: .14em; padding-top: 3px; }
.r-tank { color: #6aa8ff; } .r-heal { color: #5cff7a; } .r-dps { color: #ff6a5c; } .r-all { color: var(--ui-gold); }

/* ---------- Recruitment ---------------------------------------------------------- */
.recruit { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.rc { --cc: #888; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 3px; background: #130d0a; border: 1px solid #2a1e17; }
.rc img { width: 44px; height: 44px; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px color-mix(in srgb, var(--cc) 55%, #000); }
.rc b { color: var(--cc); font-family: var(--f-title); font-weight: 400; font-size: 1.1rem; }
.rc small { display: block; color: var(--bone-3); font-size: .8rem; }
.need { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.need-high { color: #000; background: var(--q5); }
.need-med { color: #000; background: var(--ui-gold); }
.need-low { color: var(--bone-2); background: #34261d; }
.need-closed { color: #777; background: #1f1610; border: 1px solid #34261d; }


/* ---------- Ranks ---------------------------------------------------------------- */
.ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.ranks::before { content: ""; position: absolute; left: 44px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--horde-hi), var(--gold-lo) 40%, #33251c); opacity: .6; }
.rank { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 18px 20px 18px 12px; align-items: start; }
.rank-badge { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; }
.rank-badge img { width: 56px; height: 56px; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #7a1a14, 0 6px 16px rgba(0,0,0,.6); }
.rank-num { font-family: var(--f-display); font-weight: 900; font-size: .72rem; letter-spacing: .12em; color: var(--gold); }
.rank-main h3 { font-family: var(--f-title); font-size: 1.6rem; color: var(--ui-gold); }
.rank-main h3 small { font-family: var(--f-display); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-3); margin-left: 8px; vertical-align: middle; }
.rank-quote { font-style: italic; color: var(--horde-hi); margin: 2px 0 6px; }
.rank-main p:last-child { color: var(--bone-2); }
.rank-side { margin: 0; display: grid; gap: 4px; font-size: .95rem; grid-column: 2; }
.rank-side dt { font-family: var(--f-display); font-weight: 700; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.rank-side dd { margin: 0; color: var(--bone-2); }
.rank-side ul { margin: 0; padding-left: 1.1em; display: grid; gap: 2px; }
.rank-side li::marker { color: var(--horde-hi); }
@media (min-width: 900px) {
  .rank { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .rank-side { grid-column: auto; }
}
.rank:first-child { box-shadow: 0 0 0 1px #000, 0 0 0 2px #6b1510, 0 0 30px rgba(200,22,29,.2), inset 0 0 40px rgba(0,0,0,.45); }
.perms { margin-top: 18px; padding: 0; }
.perms summary { cursor: pointer; padding: 14px 18px; font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.perms summary:hover { color: #fff; }
.perms .table-wrap { margin: 0 12px; }
.perms td.perm-yes { color: var(--q2); font-weight: 700; text-align: center; }
.perms td.perm-no { color: #555; text-align: center; }
.perms td.perm-txt { color: var(--ui-gold); white-space: nowrap; }
.perms th { white-space: nowrap; }
.race-box { display: grid; gap: 4px; padding: 12px 14px; border-radius: 3px; background: rgba(200,22,29,.07); border: 1px solid rgba(200,22,29,.3); font-size: .97rem; color: var(--bone-2); }
a.rc { text-decoration: none; color: var(--bone); transition: border-color .2s, background .2s; }
a.rc:hover { border-color: var(--cc); background: #18110d; }

/* ---------- Ready check modal ----------------------------------------------------- */
.modal-bg { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); padding: 16px; animation: fadeIn .2s ease; }
.readycheck { width: min(360px, 100%); text-align: center; padding: 22px 20px 18px; display: grid; gap: 14px; }
.readycheck img { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--gold-lo); }
.readycheck p { color: var(--bone); }
.readycheck .btn-row { justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Chat frame ----------------------------------------------------------- */
.chat { position: fixed; z-index: 60; left: calc(var(--gutter-l) - 4px); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 32px)); font-size: .92rem; line-height: 1.35; }
.chat-log { max-height: 210px; overflow-y: auto; padding: 8px 10px; border-radius: 3px; background: rgba(0,0,0,.42); text-shadow: 0 1px 1px #000; display: grid; gap: 2px; scrollbar-width: thin;
  transition: background .3s, opacity .3s; }
.chat:not(.is-open) .chat-log { display: none; }
.chat-line { overflow-wrap: anywhere; animation: fadeIn .3s ease; }
.chat-line .ts { color: #8a8a8a; margin-right: 4px; font-size: .82em; }
.chat-line.guild { color: var(--ch-guild); } .chat-line.officer { color: var(--ch-officer); } .chat-line.system { color: var(--ch-system); }
.chat-line.raid { color: var(--ch-raid); } .chat-line.rw { color: var(--ch-rw); font-weight: 700; } .chat-line.whisper { color: var(--ch-whisper); }
.chat-line.party { color: var(--ch-party); } .chat-line.say { color: var(--ch-say); } .chat-line.yell { color: var(--ch-yell); }
.chat-line .who { cursor: default; }
.chat-line a { color: inherit; }
.chat-line .item, .chat-line .spell { white-space: normal; }
.chat-input { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 0 8px; height: 34px; border-radius: 3px; background: rgba(0,0,0,.75); border: 1px solid #555; }
.chat-input label { color: var(--ch-guild); font-size: .85rem; white-space: nowrap; }
.chat-input input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; color: #fff; font: inherit; outline: none; }
.chat-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px; border-radius: 3px; cursor: pointer; font-size: .8rem; color: var(--bone-3);
  background: rgba(8,9,11,.92); border: 1px solid #3a2a20; box-shadow: 0 4px 14px rgba(0,0,0,.5); backdrop-filter: blur(6px); }
.chat-hint:hover { color: var(--bone); border-color: #555; }
.chat-hint kbd { font-family: inherit; font-weight: 700; color: var(--bone-2); padding: 0 5px; border: 1px solid #444; border-radius: 2px; }
.chat:not(.is-open) .chat-input { display: none; }
.chat.is-open .chat-hint { display: none; }
.chat.is-collapsed .chat-log { display: none; }
@media (max-width: 900px) {
  .chat:not(.is-open) { display: none; }
  .chat { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .chat-log { max-height: 160px; }
  .chat-hint .hint-long { display: none; }
}

/* ---------- Footer: a closing scene ------------------------------------------------- */
.footer { position: relative; z-index: 2; isolation: isolate; overflow: hidden; text-align: center; color: var(--bone-3); font-size: .86rem;
  padding-block: clamp(110px, 14vw, 190px) 120px; background: transparent; }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -2; background: #0a0706 url("../assets/shots/lg/chimp-camp.webp") center 42% / cover no-repeat;
  filter: saturate(.9) brightness(.6); -webkit-mask-image: linear-gradient(transparent 0%, #000 34%); mask-image: linear-gradient(transparent 0%, #000 34%); }
.footer::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(42% 38% at 50% 36%, rgba(255,120,40,.2), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(10,7,6,.55) 30%, rgba(10,7,6,.5) 58%, rgba(10,7,6,.94) 86%, #0a0706 100%); }
.footer-inner { display: grid; justify-items: center; gap: 14px; }
.footer-logo { width: clamp(150px, 15vw, 210px); height: auto; filter: drop-shadow(0 16px 26px rgba(0,0,0,.8)) drop-shadow(0 0 26px rgba(255,100,30,.28)); }
.footer-motto { font-family: var(--f-title); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15;
  background: linear-gradient(180deg, #fff3da 0%, #f0cf8c 50%, #d39443 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #2a1306) drop-shadow(0 8px 18px rgba(0,0,0,.7)); }
.footer-line { color: var(--bone-2); font-size: .95rem; text-shadow: 0 1px 3px #000; }
.footer-cta { justify-content: center; margin-top: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 18px; }
.footer-nav a { font-family: var(--f-display); font-weight: 700; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); text-decoration: none; text-shadow: 0 1px 3px #000; }
.footer-nav a:hover { color: #fff; }
.footer .divider { width: min(420px, 80%); margin-top: 12px; }
.footer small { display: block; max-width: 80ch; line-height: 1.55; font-size: .78rem; color: var(--bone-3); text-shadow: 0 1px 2px #000; }
.footer small a { color: var(--bone-2); }

/* ---------- Page transition + misc ---------------------------------------------------- */
.page { animation: pageIn .5s var(--ease) both; }
@keyframes pageIn { from { opacity: .001; transform: translateY(8px); } }
.divider { height: 18px; margin-block: 8px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18'%3E%3Cpath d='M0 9h170M230 9h170' stroke='%237d5d22' stroke-width='1'/%3E%3Cpath d='M200 1l8 8-8 8-8-8z' fill='none' stroke='%23d9ad55' stroke-width='1.5'/%3E%3Cpath d='M200 6l3 3-3 3-3-3z' fill='%23d9ad55'/%3E%3Ccircle cx='180' cy='9' r='1.6' fill='%23d9ad55'/%3E%3Ccircle cx='220' cy='9' r='1.6' fill='%23d9ad55'/%3E%3C/svg%3E"); }
.kbd { display: inline-block; padding: 0 6px; border: 1px solid #555; border-bottom-width: 2px; border-radius: 3px; font-size: .82em; color: var(--bone); background: #140d0a; }
.stack { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.center { text-align: center; justify-items: center; }
.mt { margin-top: clamp(28px, 4vw, 44px); }
.copy-ok { color: var(--q2); font-size: .9rem; }

/* smoke bomb easter egg */
.smoke { position: fixed; inset: 0; z-index: 95; pointer-events: none; }
.smoke i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(170,170,180,.75), rgba(120,120,130,.35) 45%, transparent 70%); filter: blur(6px); animation: puff 3.4s ease-out forwards; }
@keyframes puff { from { transform: scale(.2); opacity: 0; } 15% { opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.dance { animation: dance .5s ease-in-out 6 alternate; display: inline-block; }
@keyframes dance { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(4deg) translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-slide.is-on { animation: none; }
}

/* ---------- Home: one continuous scene ------------------------------------------------- */
#backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
#backdrop::before { content: ""; position: absolute; inset: -60px; background: #0a0706 url("../assets/shots/sm/light-orgrimmar-053.webp") center 30% / cover no-repeat; filter: blur(18px) saturate(.9) brightness(.4); }
#backdrop::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 12% 35%, rgba(255,120,40,.10), transparent 70%),
    radial-gradient(50% 45% at 88% 72%, rgba(200,22,29,.10), transparent 70%),
    linear-gradient(180deg, rgba(10,7,6,.35), rgba(10,7,6,.7)); }
#backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
body[data-route="hall"] #backdrop { opacity: 1; }
body[data-route="hall"] .hero { background: transparent; }
body[data-route="hall"] .hero::before {
  background:
    linear-gradient(180deg, rgba(10,7,6,.45) 0%, rgba(10,7,6,0) 24%, rgba(10,7,6,.15) 60%, rgba(10,7,6,.55) 88%, rgba(10,7,6,0) 100%),
    radial-gradient(80% 70% at 50% 38%, transparent 20%, rgba(6,3,2,.5) 100%),
    linear-gradient(180deg, rgba(90,22,8,.22), rgba(40,10,4,.12) 55%, transparent 85%);
  -webkit-mask-image: linear-gradient(#000 70%, transparent 100%); mask-image: linear-gradient(#000 70%, transparent 100%); }
body[data-route="hall"] .hero-slides { -webkit-mask-image: linear-gradient(#000 62%, transparent 100%); mask-image: linear-gradient(#000 62%, transparent 100%); }
.band--clear { background: transparent; border: 0; }
.band--clear .h-title { background: linear-gradient(180deg, #fff3da 0%, #f0cf8c 45%, #c98a3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #2a1306) drop-shadow(0 8px 18px rgba(0,0,0,.6)); }
.band--clear .eyebrow { color: var(--horde-hi); }
.band--clear .eyebrow::before { background: linear-gradient(90deg, transparent, var(--horde-hi)); }
.intro { position: relative; }
.intro::before { content: ""; position: absolute; inset: -60px -80px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(10,7,6,.72), transparent); }
.intro-open { background: linear-gradient(180deg, #fff3da 0%, #f0cf8c 50%, #d39443 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #2a1306) drop-shadow(0 10px 22px rgba(0,0,0,.65)); }
.emblem-divider { display: flex; align-items: center; justify-content: center; gap: 18px; padding-inline: var(--gutter-l) var(--gutter-r); }
.emblem-divider span { flex: 1; max-width: 360px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-lo) 40%, var(--horde-hi)); }
.emblem-divider span:last-child { background: linear-gradient(270deg, transparent, var(--gold-lo) 40%, var(--horde-hi)); }
.emblem-divider img { width: 64px; height: 64px; border-radius: 50%; filter: drop-shadow(0 0 18px rgba(255,90,30,.35)) drop-shadow(0 6px 12px rgba(0,0,0,.8)); }
.roadmap li::before { background: #3a2a20; }
.roadmap li.done::before { background: linear-gradient(180deg, var(--gold-lo), var(--horde)); }
.roadmap li.now .rm-dot { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255,138,61,.12), 0 0 18px rgba(255,110,40,.7); animation: emberPulse 2.4s ease-in-out infinite; }
.roadmap li.now .rm-dot::after { background: var(--ember); }
.roadmap li.now .rm-date { color: var(--ember); }
@keyframes emberPulse { 50% { box-shadow: 0 0 0 6px rgba(255,138,61,.08), 0 0 26px rgba(255,110,40,.95); } }
.band--clear .card { box-shadow: 0 0 0 1px #000, 0 0 0 2px #3b2414, 0 0 0 3px rgba(138,106,53,.55), 0 18px 40px rgba(0,0,0,.5); }
.band--clear .card:hover { box-shadow: 0 0 0 1px #000, 0 0 0 2px #3b2414, 0 0 0 3px var(--gold), 0 0 34px rgba(255,110,40,.28), 0 18px 40px rgba(0,0,0,.5); }
.band--clear .card::before { background: linear-gradient(180deg, rgba(10,7,6,.05) 15%, rgba(18,8,5,.94) 85%); }

/* ---------- Name reservations ------------------------------------------------------ */
.claim-box { padding: 20px; }
.claim-note { display: grid; gap: 10px; }
.claim-note b { color: var(--ui-gold); font-size: 1.05rem; }
.claim-note p { color: var(--bone-2); }
.claim-name { font-family: var(--f-title); font-size: 1.8rem; line-height: 1.1; }
.claim-msg { min-height: 1.4em; font-size: .92rem; color: var(--q2); }
.claim-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.field label .muted { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-weight: 400; }
.field input, .field select { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 3px; font: inherit; font-size: 1rem; color: var(--bone);
  background: #0a0706; border: 1px solid #4a3622; box-shadow: inset 0 2px 6px rgba(0,0,0,.7); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ui-gold); box-shadow: inset 0 2px 6px rgba(0,0,0,.7), 0 0 0 2px rgba(255,209,0,.18); }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.signups { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.signup { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(30,21,16,.9), rgba(16,11,9,.9)); border: 1px solid #3a2a20; }
.signup > img { width: 40px; height: 40px; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 0 0 2px #4a3622; }
.signup.is-me { border-color: var(--gold-lo); box-shadow: 0 0 18px rgba(255,138,61,.12); }
.signup-main { display: grid; min-width: 0; }
.signup-main b { font-family: var(--f-title); font-weight: 400; font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signup-main small { color: var(--bone-3); font-size: .8rem; }
.signup-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.signup-ctl { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.signup-ctl select { min-height: 30px; padding: 2px 8px; font: inherit; font-size: .85rem; color: var(--bone); background: #0a0706; border: 1px solid #4a3622; border-radius: 3px; }
.signup-x { min-width: 30px; min-height: 30px; padding: 0 8px; border-radius: 3px; cursor: pointer; color: var(--bone-3); background: transparent; border: 1px solid #4a3622; font-size: .85rem; }
.signup-x:hover, .signup-x.is-armed { color: #fff; border-color: var(--horde-hi); background: rgba(200,22,29,.25); }
.signup-empty { padding: 14px; border: 1px dashed #3a2a20; border-radius: 3px; text-align: center; }
.tag--ok { color: var(--q2); border-color: rgba(30,255,0,.3); }
.rank-tag { color: var(--ui-gold); border-color: rgba(255,209,0,.3); }
.rank-tag img { display: inline-block; }
@media (max-width: 520px) { .signup { grid-template-columns: 36px minmax(0, 1fr); } .signup-tags { grid-column: 1 / -1; justify-content: flex-start; } }

/* Keep the logo silhouette crisp on dark screens. */
.hero-logo::before, .hero-logo::after { content: none; }
.hero-logo img { filter: none; mask-image: none; -webkit-mask-image: none; }
.footer-logo { filter: none; }

/* Shared chat controls stay usable on touch screens and keyboards. */
.chat-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:6px 10px; background:#17100e; border:1px solid #66502c; color:var(--bone); }
.chat-toolbar button, .chat-send { color:var(--bone); background:#30231b; border:1px solid #8c703a; border-radius:3px; padding:7px 10px; cursor:pointer; font:inherit; }
.chat-toolbar button:focus-visible, .chat-send:focus-visible, .chat-hint:focus-visible { outline:2px solid var(--ui-gold); outline-offset:2px; }
.chat-disclosure, .chat-status { margin:0; padding:6px 10px; color:var(--bone-2); background:#17100e; font-size:.8rem; }
.chat-status:empty { display:none; }
.chat-input { height:auto; min-height:42px; }
.chat-input input { min-height:40px; }
.chat:not(.is-open) .chat-toolbar, .chat:not(.is-open) .chat-disclosure, .chat:not(.is-open) .chat-status { display:none; }
@media(max-width:900px){ .chat:not(.is-open) {display:block;} }

/* The naming ceremony is part of the Guild page atmosphere. */
#claim { position:relative; isolation:isolate; overflow:hidden; padding-top:clamp(72px,9vw,132px); background:#0a0706; }
#claim::before { content:""; position:absolute; z-index:-2; inset:0 0 auto; height: min(100%, 900px); background:url('../assets/shots/lg/chimp-naming-ceremony.webp') center 30% / cover no-repeat; pointer-events:none; }
#claim::after { content:""; position:absolute; z-index:-1; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(10,7,6,.12),rgba(10,7,6,.12) 30%,rgba(10,7,6,.65) 62%,#0a0706 94%),linear-gradient(90deg,rgba(10,7,6,.96),rgba(10,7,6,.85) 34%,rgba(10,7,6,.26) 68%,rgba(10,7,6,.15)); }
#claim .section-head { max-width:660px; margin-bottom:clamp(48px,7vw,96px); }
#claim .section-head .lede { text-shadow:0 2px 8px #000; }
#claim .claim-box { background:rgba(13,9,7,.93); }
#claim .signups { background:rgba(10,7,6,.88); border-radius:3px; }
@media(max-width:700px) {
  #claim { padding-top:76px; }
  #claim::before { background-position:64% top; opacity:.62; height:650px; }
  #claim::after { background:linear-gradient(180deg,rgba(10,7,6,.45),rgba(10,7,6,.72) 30%,#0a0706 70%),linear-gradient(90deg,rgba(10,7,6,.65),transparent); }
  #claim .section-head { margin-bottom:44px; }
}

/* Reserve page space before routing so the footer cannot flash as the first screen. */
#main { min-height:calc(100svh - var(--nav-h)); }
.site-loading .footer { visibility:hidden; }
