/* Azeroth Massage Parlour — Horde theme
   Layout: full-bleed scene per section (crossfading), content on dark iron-and-wood panels with brass rivets.
   One deliberate look (dark), so colours are set once on :root. */
:root {
  color-scheme: dark;
  --bg: #0f0806;            /* charred wood */
  --bg-2: #160c09;
  --panel: rgba(26, 14, 10, .86);
  --panel-2: rgba(48, 26, 17, .92);
  --line: rgba(182, 126, 64, .28);   /* bronze hairline */
  --line-strong: #7c4f24;            /* bronze frame */
  --text: #f1e2c4;          /* parchment */
  --muted: #b59c80;
  --gold: #e2b25c;
  --gold-2: #f6d891;
  --blood: #9b1916;
  --blood-2: #c22a1f;
  --ember: #e0652c;
  --rose: #e48a5e;          /* warm accent for raids */
  --teal: #a7c46b;          /* "good" state: olive, fits the palette */
  --danger: #ec5a50;
  --ink: #241205;           /* text on gold */
  --radius: 6px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;

  /* WoW class colours */
  --c-druid: #ff7c0a; --c-hunter: #aad372; --c-mage: #3fc7eb; --c-paladin: #f48cba;
  --c-priest: #ffffff; --c-rogue: #fff468; --c-shaman: #3a96ff; --c-warlock: #8788ee; --c-warrior: #c69b6d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  font-size: 1.05rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--display); letter-spacing: .03em; line-height: 1.2; text-wrap: balance; }
h1 {
  font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; margin: 0 0 .4rem; color: var(--gold-2);
  text-shadow: 0 2px 0 #3a1a07, 0 0 24px rgba(224, 101, 44, .35);
}
h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .8rem; color: var(--gold); }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 .4rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; }
.ok { color: var(--teal); }
.err { color: var(--danger); }
code { background: rgba(0, 0, 0, .45); border: 1px solid var(--line); border-radius: 4px; padding: .1rem .35rem; font-size: .85em; color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* ---------- scenes ---------- */
.scenes { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.scene {
  position: absolute; inset: -4%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity 1.2s ease;
}
.scene.active { opacity: 1; animation: drift 45s ease-in-out infinite alternate; }
.scene[data-scene="parlour"] { background-position: 70% 40%; }
.scene[data-scene="harbor"] { background-position: 60% 50%; }
.scene[data-scene="fortress"] { background-position: 65% 40%; }
@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}
.scenes::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 55% 25%, rgba(15, 8, 6, 0), rgba(15, 8, 6, .6) 78%),
    linear-gradient(180deg, rgba(15, 8, 6, .1) 0%, rgba(15, 8, 6, .38) 38%, rgba(15, 8, 6, .85) 100%);
}
.ambience { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.site-header, .banner, .app, .site-footer { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  padding: .55rem max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(36, 18, 11, .97), rgba(20, 10, 7, .95));
  border-bottom: 2px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(246, 216, 145, .12) inset, 0 8px 24px rgba(0, 0, 0, .55);
}
.site-header::after {   /* thin blood-red stripe under the bronze */
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blood) 15%, var(--blood-2) 50%, var(--blood) 85%, transparent);
  opacity: .8;
}
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.brand-logo { height: 60px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)); }
.brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav {
  display: flex; gap: .2rem; max-width: 1180px; margin: .35rem auto 0; padding-bottom: .45rem;
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
/* On narrow screens the menu scrolls sideways; fade the right edge so that's obvious. */
@media (max-width: 1180px) {
  .nav { mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 32px; }
}
.nav a {
  font-family: var(--display); font-weight: 700; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  padding: .5rem .62rem .6rem; border: 1px solid transparent; border-radius: 3px 3px 0 0;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--gold-2); background: rgba(155, 25, 22, .25); }
.nav a.active {   /* a hanging war banner */
  color: var(--gold-2);
  background: linear-gradient(180deg, var(--blood-2), var(--blood) 60%, #5e0d0b);
  border-color: rgba(226, 178, 92, .55);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  padding-bottom: .85rem; margin-bottom: -.25rem;
  text-shadow: 0 1px 0 #3a0705;
}
.header-right { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.account { display: flex; align-items: center; gap: .6rem; }

/* ---------- music player ---------- */
.music {
  display: flex; align-items: center; gap: .5rem;
  padding: .25rem .6rem .25rem .3rem; border-radius: 999px;
  background: rgba(8, 4, 3, .6); border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(246, 216, 145, .08);
}
.music button {
  width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; flex: none; box-shadow: none;
}
.music svg { width: 18px; height: 18px; display: block; }
.music-play { background: linear-gradient(180deg, #f3cb7a, #b47a27); border-color: #6e4416; color: var(--ink); }
.music-play:hover { color: var(--ink); background: linear-gradient(180deg, #f8d892, #c48a31); }
.music-mute { background: transparent; border-color: transparent; color: var(--gold); }
.music-mute:hover { border-color: var(--line-strong); }
.music-info { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.music-title { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.music-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.music-eq i { width: 3px; height: 3px; background: var(--ember); border-radius: 1px; }
.music.is-playing .music-eq i { animation: eq 1s ease-in-out infinite; }
.music.is-playing .music-eq i:nth-child(2) { animation-delay: -.35s; }
.music.is-playing .music-eq i:nth-child(3) { animation-delay: -.7s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.music-volume {
  -webkit-appearance: none; appearance: none; width: 90px; height: 5px; padding: 0; border: 0; border-radius: 99px; box-shadow: none;
  background: linear-gradient(90deg, var(--ember) 0 var(--fill, 35%), rgba(255, 255, 255, .14) var(--fill, 35%) 100%);
  cursor: pointer;
}
.music-volume:focus { outline: none; }
.music-volume:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
.music-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-2); border: 2px solid #6e4416; }
.music-volume::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-2); border: 2px solid #6e4416; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); object-fit: cover; flex: none; border: 1px solid var(--line-strong); }
.avatar.lg { width: 42px; height: 42px; }
.avatar-fallback { display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--gold); font-size: .85rem; }

/* ---------- layout ---------- */
.app { width: 100%; max-width: 1180px; margin: 0 auto; padding: 2rem max(16px, env(safe-area-inset-right, 0px)) 3.5rem max(16px, env(safe-area-inset-left, 0px)); flex: 1; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.two-one { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }
.grid.two, .grid.three { align-items: start; }
.grid > * { min-width: 0; }
.span-all { grid-column: 1 / -1; }
.section { margin-top: 2rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.narrow { max-width: 660px; margin: 0 auto; }
.center { text-align: center; }
.row.center { justify-content: center; }

/* Iron-and-wood panel with brass rivets at the corners. */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(40, 21, 14, .9), rgba(20, 11, 8, .92));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(246, 216, 145, .1), var(--shadow);
  backdrop-filter: blur(5px);
}
.panel::before {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  --rivet: radial-gradient(circle at 40% 35%, #f3d08a 0 1px, #b5813f 1.6px, #4b2c12 2.8px, transparent 3.4px);
  background: var(--rivet) 0 0 / 8px 8px no-repeat, var(--rivet) 100% 0 / 8px 8px no-repeat,
              var(--rivet) 0 100% / 8px 8px no-repeat, var(--rivet) 100% 100% / 8px 8px no-repeat;
}
details.panel > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: " ＋"; color: var(--gold); font-family: var(--body); }
details[open] > summary::after { content: " −"; }

/* ---------- hero ---------- */
.hero { padding: 1.5rem 0 1.5rem; display: grid; gap: .6rem; justify-items: start; }
.hero .tagline { font-size: 1.2rem; color: var(--text); max-width: 46ch; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.hero-logo {
  width: min(560px, 100%); height: auto; display: block; margin: -.5rem 0 .2rem -.6rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(224, 101, 44, .25));
}
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ember);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.motd {
  width: min(680px, 100%);
  border: 1px solid rgba(226, 178, 92, .55);
  background: linear-gradient(180deg, rgba(110, 24, 16, .8), rgba(60, 14, 10, .85));
  padding: .8rem 1.1rem; border-radius: 4px; margin: .4rem 0 .6rem;
  box-shadow: var(--shadow);
}
.motd-label { font-family: var(--display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
/* Home: centred hero, a full-width row of quick links, two equal panels. */
.home-hero { justify-items: center; text-align: center; padding-top: 1rem; }
.home-hero .hero-logo { margin: 0 auto .2rem; width: min(600px, 100%); }
.home-hero .tagline { margin: .2rem auto .4rem; }
.home-hero .motd { text-align: left; }
.home-welcome { max-width: 640px; text-align: left; }
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.home-tiles .tile { display: grid; align-content: start; gap: .3rem; text-align: center; }
.home-tiles .tile p { margin: 0; }
.home-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.home-info p { margin: 0 0 .8rem; }
.home-motto { font-family: var(--display); font-weight: 700; color: var(--gold-2); letter-spacing: .03em; margin: 0 !important; }
.access-list { display: grid; grid-template-columns: auto 1fr; gap: .55rem .8rem; align-items: baseline; }
.tile { text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.tile:hover { transform: translateY(-2px); border-color: var(--gold); }
.tile h3 { color: var(--gold-2); }

/* ---------- buttons + forms ---------- */
button, .btn {
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #3b2418, #23140d);
  color: var(--text);
  padding: .55rem 1rem; border-radius: 4px; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .45rem;
  box-shadow: inset 0 1px 0 rgba(246, 216, 145, .12), 0 2px 0 rgba(0, 0, 0, .5);
}
button:hover, .btn:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-primary {
  background: linear-gradient(180deg, #f3cb7a, #c58d36 55%, #a0691f); border-color: #6e4416; color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 236, 190, .5);
}
.btn-primary:hover { color: var(--ink); background: linear-gradient(180deg, #f8d892, #d39b42 55%, #a8721f); }
.btn-discord { background: linear-gradient(180deg, #6773f5, #4752c4); border-color: #3a43a8; color: #fff; }
.btn-discord:hover { color: #fff; border-color: #c9cdfb; }
.btn-ghost { background: rgba(0, 0, 0, .25); box-shadow: none; }
.btn-danger { color: var(--danger); }
.btn-sm { padding: .32rem .7rem; font-size: .86rem; }
button:disabled { opacity: .5; cursor: not-allowed; }
.chip-group button.on, .btn-sm.on {
  border-color: var(--gold); color: var(--gold-2);
  background: linear-gradient(180deg, rgba(194, 42, 31, .55), rgba(110, 18, 14, .6));
}

form .fields { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label { display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
label.check { display: flex; align-items: center; gap: .5rem; color: var(--text); }
input, select, textarea {
  font: inherit; font-size: .98rem; color: var(--text);
  background: rgba(8, 4, 3, .72); border: 1px solid var(--line-strong);
  border-radius: 4px; padding: .55rem .7rem; width: 100%;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5);
}
input[type=checkbox] { width: auto; accent-color: var(--blood-2); box-shadow: none; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
input::placeholder, textarea::placeholder { color: #7f6a56; }
.hp { position: absolute; left: -9999px; }

/* ---------- badges & states ---------- */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .12rem .5rem; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
  background: rgba(0, 0, 0, .3);
}
.tier-1 { color: var(--teal); border-color: rgba(167, 196, 107, .45); }
.tier-2 { color: var(--rose); border-color: rgba(228, 138, 94, .5); }
.tier-3 { color: var(--gold-2); border-color: rgba(226, 178, 92, .6); }
.tier-4 { color: var(--gold-2); background: linear-gradient(180deg, var(--blood-2), var(--blood)); border-color: var(--gold); }
.kind-raid { color: var(--rose); } .kind-dungeon { color: var(--teal); } .kind-pvp { color: var(--danger); } .kind-social { color: var(--gold-2); }
.st-new { color: var(--gold-2); } .st-accepted { color: var(--teal); } .st-declined { color: var(--muted); }
.st-confirmed { color: var(--teal); border-color: rgba(167, 196, 107, .45); }
.st-bench { color: var(--muted); }
.st-yes { color: var(--teal); } .st-maybe { color: var(--gold-2); } .st-no { color: var(--muted); }
.badge.hc { color: var(--danger); border-color: rgba(236, 90, 80, .55); }
.badge.addon { color: var(--teal); border-color: rgba(167, 196, 107, .35); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4a3424; margin-right: .2rem; }
.dot.on { background: var(--teal); box-shadow: 0 0 6px var(--teal); }
.money .g { color: #f0c94a; } .money .s { color: #c9ced6; } .money .c { color: #d08b55; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- tabs (inside pages) ---------- */
.tabs { display: inline-flex; gap: .2rem; background: rgba(10, 5, 4, .75); border: 1px solid var(--line-strong); border-radius: 4px; padding: .2rem; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; box-shadow: none; color: var(--muted); padding: .4rem .85rem; font-family: var(--display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.tabs button.on { background: linear-gradient(180deg, var(--blood-2), var(--blood)); color: var(--gold-2); }

/* ---------- roster ---------- */
.member { display: grid; gap: .6rem; align-content: start; }
.member-head { display: flex; align-items: center; gap: .7rem; }
.member-name { font-weight: 700; font-size: 1.05rem; }
.chars { display: grid; gap: .35rem; }
.char {
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  padding: .45rem .65rem; border-radius: 4px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(124, 79, 36, .35); font-size: .95rem;
}
.char .lvl { font-variant-numeric: tabular-nums; font-family: var(--display); font-weight: 700; color: var(--gold); min-width: 2.4ch; }
.char .zone { color: var(--muted); font-size: .88rem; margin-left: auto; }
.cls-Druid { color: var(--c-druid); } .cls-Hunter { color: var(--c-hunter); } .cls-Mage { color: var(--c-mage); }
.cls-Paladin { color: var(--c-paladin); } .cls-Priest { color: var(--c-priest); } .cls-Rogue { color: var(--c-rogue); }
.cls-Shaman { color: var(--c-shaman); } .cls-Warlock { color: var(--c-warlock); } .cls-Warrior { color: var(--c-warrior); }

/* ---------- events ---------- */
.event { display: grid; gap: .6rem; align-content: start; }
.event-when { font-size: .9rem; color: var(--gold); font-weight: 700; letter-spacing: .02em; }
.comp { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .95rem; }
.details { border-top: 1px solid var(--line); padding-top: .8rem; }
.signup-list { display: grid; gap: .25rem; font-size: .95rem; margin-top: .4rem; }
.signup-row { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.signup-row .row { flex: none; }
.loot-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .3rem 0; }
.item { color: #b75cf5; font-weight: 700; }   /* epic purple */

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
tbody tr:hover { background: rgba(155, 25, 22, .12); }

/* ---------- leveling race ---------- */
.milestones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
.milestone {
  border: 1px solid var(--line-strong); border-radius: 4px; padding: .8rem; text-align: center;
  background: rgba(16, 9, 7, .85); box-shadow: var(--shadow);
}
.milestone.won { border-color: var(--gold); background: linear-gradient(180deg, rgba(155, 25, 22, .55), rgba(20, 10, 8, .9)); }
.ms-level { font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: var(--gold-2); }
.ms-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1rem; align-items: end; }
.podium > div { text-align: center; }
.podium-1 { order: 2; padding-top: 2rem !important; border-color: var(--gold) !important; box-shadow: 0 0 40px rgba(224, 101, 44, .3), var(--shadow) !important; }
.podium-2 { order: 1; } .podium-3 { order: 3; }
.medal { font-size: 2rem; }
.podium-level { font-family: var(--display); font-weight: 900; font-size: 2.3rem; color: var(--gold-2); }
.podium-name { font-weight: 700; font-size: 1.1rem; }
.bar { height: 9px; border-radius: 2px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line-strong); overflow: hidden; }
.bar.thin { height: 5px; margin: .3rem 0; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blood), var(--ember) 60%, var(--gold)); }

/* ---------- professions, bank ---------- */
.prof-row { padding: .5rem 0; border-bottom: 1px dashed var(--line); display: grid; gap: .15rem; }
.prof-row:last-child { border-bottom: 0; }
.prof-row .btn-sm { justify-self: start; margin-top: .2rem; }
.stat-label { font-family: var(--display); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.stat-value { font-size: 1.6rem; font-weight: 700; margin-top: .2rem; }

/* ---------- services ---------- */
.service-icon { font-size: 2rem; margin-bottom: .2rem; }
.service h3 { color: var(--gold-2); }

/* ---------- gallery ---------- */
.gallery { columns: 3 280px; column-gap: 1rem; }
.shot { break-inside: avoid; margin: 0 0 1rem; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: .6rem .8rem; display: grid; gap: .2rem; }

/* ---------- memorial ---------- */
.tomb { text-align: center; display: grid; gap: .35rem; justify-items: center; align-content: start; }
.tomb h3 { font-size: 1.2rem; }
.tomb-icon { font-size: 1.8rem; filter: drop-shadow(0 0 10px rgba(246, 216, 145, .6)); }
.tomb blockquote { margin: .3rem 0; font-style: italic; color: var(--gold-2); }

/* ---------- setup ---------- */
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--blood-2), var(--blood)); border: 2px solid var(--gold);
  color: var(--gold-2); font-family: var(--display); font-weight: 900;
}
.step ol, .step ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.dropzone {
  display: grid; gap: .4rem; place-items: center; text-align: center; color: var(--text);
  border: 2px dashed var(--line-strong); border-radius: 4px; padding: 1.6rem 1rem; cursor: pointer; margin-bottom: .6rem;
  background: rgba(0, 0, 0, .3);
}
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: rgba(155, 25, 22, .18); }
.dropzone .muted { word-break: break-all; }
.kv { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .4rem 0; }
code.secret { word-break: break-all; }

/* ---------- misc ---------- */
.banner {
  max-width: 1180px; margin: 1rem auto 0; padding: .7rem 1rem; border-radius: 4px;
  background: rgba(155, 25, 22, .55); border: 1px solid var(--danger); width: calc(100% - 32px);
}
.locked { text-align: center; padding: 3rem 1rem; }
.locked .icon { font-size: 2rem; color: var(--gold); }
.dev-box { border-style: dashed; }
.toast {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #3b2418, #1d100b); border: 1px solid var(--gold); color: var(--text);
  padding: .7rem 1.1rem; border-radius: 4px; box-shadow: var(--shadow); z-index: 50; max-width: calc(100% - 32px);
}
.toast.error { border-color: var(--danger); }
.dialog { background: #1d100b; color: var(--text); border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.25rem; width: min(520px, calc(100% - 32px)); }
.dialog::backdrop { background: rgba(0, 0, 0, .7); }
.site-footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem max(16px, env(safe-area-inset-right, 0px)) calc(1.1rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  border-top: 2px solid var(--line-strong); font-size: .85rem;
  background: rgba(15, 8, 6, .92);
}
.site-footer > span:first-child { margin-left: max(0px, calc((100% - 1180px) / 2)); }
.site-footer > span:last-child { margin-right: max(0px, calc((100% - 1180px) / 2)); }

@media (prefers-reduced-motion: reduce) {
  .music.is-playing .music-eq i { animation: none; height: 8px; }
  .scene { transition: none; }
  .scene.active { animation: none; }
  .tile { transition: none; }
}
@media (max-width: 900px) {
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-info { grid-template-columns: 1fr; }
  .milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.two-one { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium-1, .podium-2, .podium-3 { order: initial; }
  .step { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .music-info { display: none; }
}
@media (max-width: 640px) {
  .account .who { display: none; }
  .header-right { gap: .45rem; }
  .account .avatar { display: none; }
  .brand-logo { height: 40px; }
  .music { padding-right: .4rem; }
  .music-volume { width: 56px; }
  .brand-logo { height: 44px; }
  .char .zone { margin-left: 0; width: 100%; }
  .hero-logo { margin-left: -.3rem; }
  .panel { padding: 1.1rem; }
}

/* ---------- joining: Discord steps, recruiting, leadership ---------- */
.btn-lg { padding: .75rem 1.4rem; font-size: 1.05rem; }
.home-hello { max-width: 640px; margin: .4rem auto 0; color: var(--text); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.join-panel { max-width: 920px; margin: .5rem auto 0; text-align: center; border-color: #5865f2; box-shadow: 0 0 0 1px rgba(88, 101, 242, .35), 0 0 40px rgba(88, 101, 242, .18), var(--shadow); }
.join-steps { list-style: none; padding: 0; margin: .4rem 0 1.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; text-align: left; }
.join-steps li { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border-radius: 4px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.join-steps li.current { border-color: #7d87f7; background: rgba(88, 101, 242, .14); }
.join-steps li div { display: grid; gap: .15rem; }
.step-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; background: linear-gradient(180deg, var(--blood-2), var(--blood)); border: 1px solid var(--gold); color: var(--gold-2); }
.join-steps li.current .step-dot { background: linear-gradient(180deg, #6773f5, #4752c4); border-color: #c9cdfb; color: #fff; }

.needs, .leaders { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.need { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .55rem .7rem; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 4px; }
.need-class { min-width: 7.5em; }
.need-roles { display: flex; gap: .6rem; font-size: .92rem; }
.need .badge { margin-left: auto; }
.need-note { width: 100%; }
.prio-high { color: var(--gold-2); background: linear-gradient(180deg, var(--blood-2), var(--blood)); border-color: var(--gold); }
.prio-medium { color: var(--rose); border-color: rgba(228, 138, 94, .5); }
.prio-low { color: var(--muted); }
.leader { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; padding: .5rem .6rem; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 4px; }
.leader-name { font-weight: 700; }

.apply-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 1rem; align-items: start; max-width: 1040px; margin: 0 auto; }
.apply-discord { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .7rem .8rem; margin-bottom: 1rem; border-radius: 4px; background: rgba(88, 101, 242, .12); border: 1px solid rgba(125, 135, 247, .5); }
.apply-discord p { flex: 1 1 260px; }

.need-editor { display: grid; gap: .6rem; }
.need-row { display: grid; grid-template-columns: 150px auto 140px minmax(0, 1fr) auto; gap: .6rem; align-items: end; padding: .7rem; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 4px; }
.need-roles-pick { border: 0; margin: 0; padding: 0; display: flex; gap: .7rem; align-items: center; }
.need-roles-pick legend { font-size: .9rem; color: var(--muted); padding: 0; margin-bottom: .3rem; }
.need-actions { display: flex; gap: .3rem; }

@media (max-width: 900px) {
  .need-row { grid-template-columns: 1fr 1fr; }
  .need-note-field, .need-actions { grid-column: 1 / -1; }
  .apply-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .join-steps { grid-template-columns: 1fr; }
  .hdr-discord { display: none; }
}
