/* Nerdcave guild site: the scroll page (story) and hero 1 (cinematic glass).
   Ported from the design mockups; data-vars carry the per-element custom
   properties (js/site/common.js). */

/* Nerdcave scroll story: one structure, two looks (data-theme torch | crystal).
   Near-black ground, ONE accent with a soft glow, Cinzel for the fantasy
   headlines, Alegreya for reading, the system sans for the small app-like UI
   inside the live cards. Text colours are picked for WCAG AA on the darkest
   card and on the shaded wallpapers. Every animation has a still state:
   prefers-reduced-motion, the Calm mode toggle (html.calm) and html.still. */

:root {
  --font-display: "Cinzel", "Iowan Old Style", Palatino, serif;
  --font-body: "Alegreya", Georgia, serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --top: 64px;
  --dock: 0px;
  --page: 1240px;
  --r: 22px;
  --ok: #7fe0a8; --warn: #f4c76c; --late: #9fc4ff; --bad: #ff9a90;
  color-scheme: dark;
}
:root[data-theme="torch"] {
  --bg: #090705; --bg-2: #0d0a07;
  --card: #110e0b; --card-2: #17130e;
  --line: rgba(255, 232, 190, 0.1); --line-2: rgba(255, 232, 190, 0.18);
  --accent: #f2c14e; --accent-2: #ff8a2b; --accent-cold: #7fd8f0; --accent-rgb: 242, 193, 78; --accent2-rgb: 255, 138, 43;
  --ink: #1e1404;
  --text: #f6eedf; --text-2: #d8ccb2; --text-3: #b3a68c;
  --title-a: #fffaf0; --title-b: #ffe6a6; --title-c: #f2c14e; --title-d: #c98a2c;
  --crest-hi: #6a4a24; --crest-lo: #2a1a0c; --crest-rim: #f2c14e;
  --btn: linear-gradient(180deg, #ffe7a3 0%, #f2c14e 45%, #c98a2c 100%);
}
:root[data-theme="crystal"] {
  --bg: #05060b; --bg-2: #080a12;
  --card: #0b0d16; --card-2: #10131f;
  --line: rgba(205, 212, 255, 0.1); --line-2: rgba(205, 212, 255, 0.18);
  --accent: #b39bff; --accent-2: #6ff2e0; --accent-cold: #6ff2e0; --accent-rgb: 179, 155, 255; --accent2-rgb: 111, 242, 224;
  --ink: #0c0820;
  --text: #eef0ff; --text-2: #c6cae2; --text-3: #a2a8c6;
  --title-a: #ffffff; --title-b: #e9e3ff; --title-c: #b39bff; --title-d: #6ff2e0;
  --crest-hi: #3a3470; --crest-lo: #12102a; --crest-rim: #b39bff;
  --btn: linear-gradient(135deg, #e4dbff 0%, #b39bff 48%, #6ff2e0 100%);
}

/* class colours (bars use --cc, names use --ct: lifted for AA) */
.c-warrior { --cc: #c69b6d; --ct: #d6ae83; }
.c-paladin { --cc: #f48cba; --ct: #f69cc4; }
.c-hunter { --cc: #aad372; --ct: #aad372; }
.c-rogue { --cc: #fff468; --ct: #fff468; }
.c-priest { --cc: #f0f0f0; --ct: #f0f0f0; }
.c-shaman { --cc: #3b7fe0; --ct: #6bb8ff; }
.c-mage { --cc: #3fc7eb; --ct: #3fc7eb; }
.c-warlock { --cc: #8788ee; --ct: #aeafff; }
.c-druid { --cc: #ff7c0a; --ct: #ff9433; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-snap-type: y proximity; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
html.no-snap { scroll-snap-type: none; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 18px/1.6 var(--font-body); font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
body::before { /* stone grain */
  content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; }
ol, ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--accent); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }

/* ---------------------------------------------------------------- top bar */
.scroll-line { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top);
  display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 2.6vw, 40px);
  background: linear-gradient(180deg, rgba(5, 4, 3, .78), rgba(5, 4, 3, .52));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="crystal"] .topbar { background: linear-gradient(180deg, rgba(4, 5, 10, .8), rgba(4, 5, 10, .5)); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.crest { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .35)); }
.brand-name { font: 800 20px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--title-a), var(--title-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.groups { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: auto; }
.g-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px;
  font: 600 14px/1 var(--font-ui); letter-spacing: .01em; color: var(--text-2); transition: color .2s, background .2s; }
.g-link .ic { width: 16px; height: 16px; opacity: .8; }
.g-link:hover, .g-drop.open > .g-link { color: var(--text); background: rgba(255, 255, 255, .06); }
.g-link.is-active { color: var(--ink); background: var(--accent); box-shadow: 0 0 20px rgba(var(--accent-rgb), .35); }
.g-link.is-active .ic { opacity: 1; }
.g-drop { position: relative; }
.tools { display: flex; align-items: center; gap: 6px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; margin-right: 4px; border-radius: 999px;
  border: 1px solid var(--line-2); font: 500 13px/1 var(--font-ui); color: var(--text-2); white-space: nowrap; }
.live-pill b { color: var(--text); font-weight: 700; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--text-2); }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .05); }
.theme-pick { position: relative; }
.theme-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 250px; display: none; padding: 10px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(14, 12, 10, .96); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); font: 500 14px/1.2 var(--font-ui); }
:root[data-theme="crystal"] .theme-menu { background: rgba(10, 12, 22, .96); }
.theme-pick.open .theme-menu { display: block; }
.theme-menu-head { padding: 6px 8px 8px; font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.theme-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border-radius: 10px; text-align: left; color: var(--text); }
.theme-menu button:hover:not(:disabled) { background: rgba(255, 255, 255, .05); }
.theme-menu button:disabled { color: var(--text-3); cursor: default; }
.theme-menu small { margin-left: auto; font-size: 13px; color: var(--text-3); }
.theme-calm { display: flex; gap: 8px; align-items: center; padding: 10px 8px 4px; margin-top: 6px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.sw { width: 22px; height: 22px; border-radius: 7px; flex: none; border: 1px solid rgba(255, 255, 255, .2); }
.sw-torch { background: radial-gradient(circle at 40% 35%, #ffd27a, #c9741c 45%, #1a0f06 75%); }
.sw-crystal { background: radial-gradient(circle at 40% 35%, #e4dbff, #7d5cff 45%, #0a0b1c 75%), #000; }
.sw-hallow { background: radial-gradient(circle at 40% 35%, #ffae3c, #6a2a8a 55%, #12081a 80%); }
.sw-veil { background: radial-gradient(circle at 40% 35%, #ffffff, #7fc8ff 45%, #0c1a2a 75%); }
[data-set-theme].is-on { box-shadow: inset 0 0 0 1px var(--accent); }
.menu-btn { display: none; margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: 999px;
  font: 700 15px/1 var(--font-ui); letter-spacing: .01em; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.btn .ic { width: 18px; height: 18px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { color: var(--ink); background: var(--btn); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px rgba(0, 0, 0, .35), 0 10px 34px rgba(var(--accent-rgb), .32); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px rgba(0, 0, 0, .35), 0 14px 44px rgba(var(--accent-rgb), .5); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }

.particles { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

/* ------------------------------------------------------------- scenes */
main { position: relative; display: block; }
.scene { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; scroll-snap-align: start; view-timeline: --scene block; }
.scene .bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.scene .layer { position: absolute; inset: -9% -3%; will-change: transform; }
.scene .layer > svg { display: block; width: 100%; height: 100%; }
.scene .shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene-inner, .marquee, .block > * { position: relative; z-index: 2; }

/* SVG art motion classes (flames, glows, wisps...) */
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
.orb-pulse { animation: pulse 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.twinkle { animation: twinkle 4s ease-in-out infinite; }
.wisp { animation: wisp 8s ease-in-out infinite; transform-box: fill-box; }
.w1 { animation-delay: -3s; animation-duration: 10s; } .w2 { animation-delay: -6s; animation-duration: 12s; }
.drift { animation: drift 40s linear infinite; }
.beam { animation: veins 7s ease-in-out infinite; }
.eyes { animation: blink 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.94, 1.06) skewX(2deg); } 50% { transform: scale(1.04, .95) skewX(-2deg); } 75% { transform: scale(.97, 1.04) skewX(1deg); } }

@keyframes pulse { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }

@keyframes veins { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@keyframes wisp { 0%, 100% { translate: 0 0; opacity: .9; } 50% { translate: 14px -26px; opacity: .55; } }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(80px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* -------------------------------------------------------------- hero */
.hero .shade { background:
  radial-gradient(46% 34% at 50% 47%, rgba(0, 0, 0, .55), transparent 70%),
  linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 18%, transparent 70%, rgba(0, 0, 0, .8) 100%); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); font: 600 13px/1.2 var(--font-ui); letter-spacing: .02em; color: var(--text-2); backdrop-filter: blur(8px); }
.pill .ic { width: 15px; height: 15px; color: var(--accent); }
.pill-sm { padding: 5px 11px; }
.hero-kicker { display: flex; gap: 12px; align-items: center; font: 600 14px/1 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--text-2); }
.hero-kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.marquee { position: absolute; left: 0; right: 0; bottom: 54px; height: 44px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 34px; width: max-content; align-items: center; height: 44px; animation: marquee 60s linear infinite; }
.mq-item { display: inline-flex; align-items: center; gap: 9px; font: 700 16px/1 var(--font-display); letter-spacing: .06em; color: var(--ct); white-space: nowrap; }
.mq-item small { font: 600 13px/1 var(--font-ui); color: var(--text-3); letter-spacing: 0; }
.mq-item i { width: 7px; height: 7px; rotate: 45deg; background: var(--cc); box-shadow: 0 0 10px var(--cc); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- blocks */
.block { position: relative; padding: 140px clamp(16px, 4vw, 56px) 40px; }
.block::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 50% 0%, rgba(var(--accent-rgb), .07), transparent 70%); }
.block > * { max-width: var(--page); margin-left: auto; margin-right: auto; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 64px; }
.h2 { font-size: clamp(34px, 4.6vw, 66px); line-height: 1.06; letter-spacing: .01em; max-width: 16ch; text-wrap: balance; }
.h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; letter-spacing: .01em; }
.h4 { font-size: 22px; line-height: 1.2; letter-spacing: .02em; }
.grad { background: linear-gradient(180deg, var(--title-b), var(--title-c) 60%, var(--title-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: var(--text-2); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 110px; }
.stat-row li { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); }
.stat-row b { font: 700 clamp(30px, 3vw, 44px)/1 var(--font-display); color: var(--text); }
.stat-row span { font: 500 14px/1.3 var(--font-ui); color: var(--text-3); }

.row { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(32px, 6vw, 88px); align-items: center; margin-bottom: 120px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font: 600 13px/1.1 var(--font-ui); color: var(--text-2); }
.tag b { color: var(--accent); }
.tag .ic { width: 15px; height: 15px; color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--font-ui); color: var(--accent); }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* cards: thin border, faint accent glow in one corner */
.card { position: relative; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); overflow: hidden; isolation: isolate; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 100% 100%, rgba(var(--accent-rgb), .13), transparent 70%), radial-gradient(40% 30% at 0% 0%, rgba(255, 255, 255, .03), transparent 70%); }
:root[data-theme="torch"] .card::before { /* gold corner brackets: the WoW frame, whispered */
  content: ""; position: absolute; inset: 8px; pointer-events: none; border-radius: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 18px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 18px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1px 18px no-repeat;
  opacity: .5; }
:root[data-theme="crystal"] .card::before { /* gradient hairline: teal to violet */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(111, 242, 224, .5), rgba(179, 155, 255, .12) 40%, rgba(179, 155, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.live-card, .comp-card { padding: 22px; min-height: 440px; display: flex; flex-direction: column; gap: 16px; }
.lc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 14px/1 var(--font-ui); }
.lc-title { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.lc-title .ic { color: var(--accent); }
.lc-sub { color: var(--text-3); font-weight: 500; }
.lc-live { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.lc-live .dot { width: 7px; height: 7px; animation: livedot 1.6s ease-in-out infinite; }
@keyframes livedot { 50% { opacity: .3; } }

/* vertical marquee (roster, loot) */
.vmarquee { position: relative; flex: none; height: 372px; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.vmarquee-track { display: flex; flex-direction: column; gap: 10px; animation: vmarquee 38s linear infinite; }
@keyframes vmarquee { to { transform: translateY(-50%); } }
.mrow { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.avatar { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font: 800 16px/1 var(--font-display); color: #0b0805; background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 92%, white), color-mix(in srgb, var(--cc) 70%, black)); }
.avatar .on { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--card); }
.mname { font: 700 17px/1.2 var(--font-display); letter-spacing: .03em; color: var(--ct); }
.msub { font: 500 13px/1.3 var(--font-ui); color: var(--text-3); }
.mright { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-ui); color: var(--text-2); }
.mright .ic { width: 16px; height: 16px; color: var(--text-3); }
.lvl { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 7px; border-radius: 8px; border: 1px solid var(--line-2); font-weight: 800; color: var(--text); }
.lvl.max { border-color: rgba(var(--accent-rgb), .6); color: var(--accent); }

/* class spread: banners (torch) or a geode ring (crystal) */
.comp { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 22px; align-items: end; }
.banners { display: flex; align-items: stretch; gap: 6px; height: 300px; padding-top: 14px; position: relative; }
.banners::before { content: ""; position: absolute; left: -6px; right: -6px; top: 8px; height: 6px; border-radius: 3px; background: linear-gradient(180deg, #ffe7a3, #b8862c); box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.bnr { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.bnr-cloth { position: relative; width: 100%; height: calc(var(--h) * 1px); min-height: 40px; transform-origin: 50% 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 85%, black) 0%, color-mix(in srgb, var(--cc) 55%, black) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 16px), 0 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  animation: sway 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
.bnr-cloth::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: rgba(0, 0, 0, .4); }
.bnr-cloth b { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font: 800 20px/1 var(--font-display); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.bnr span { margin-top: auto; font: 700 13px/1 var(--font-ui); letter-spacing: .04em; color: var(--ct); }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.2deg); } }
.geode-wrap { position: relative; width: 210px; height: 210px; align-self: center; display: none; }
.geode { width: 100%; height: 100%; overflow: visible; }
.geode-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.geode-mid b { font: 800 40px/1 var(--font-display); color: var(--text); }
.geode-mid span { font: 500 13px/1.4 var(--font-ui); color: var(--text-3); }
.role-split { display: flex; flex-direction: column; gap: 14px; align-self: center; }
.role-split li { display: grid; grid-template-columns: 18px 1fr auto; gap: 4px 10px; align-items: center; font: 600 14px/1 var(--font-ui); color: var(--text-2); }
.role-split li .ic { color: var(--accent); }
.role-split b { font: 800 22px/1 var(--font-display); color: var(--text); }
.role-split i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.role-split i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
:root[data-theme="crystal"] .banners { display: none; }
:root[data-theme="crystal"] .geode-wrap { display: block; }
:root[data-theme="crystal"] .comp { grid-template-columns: 230px 1fr; align-items: center; }
.raid-card { position: relative; height: 380px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.raid-card .rc-art { position: absolute; inset: 0; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.raid-card .rc-art .layer { position: absolute; inset: 0; }
.raid-card .rc-art svg { display: block; width: 100%; height: 100%; }
.raid-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .25) 35%, rgba(5, 4, 3, .92) 72%); }
.raid-card:hover .rc-art { transform: scale(1.06); }
.raid-card:hover { border-color: rgba(var(--rc), .6); box-shadow: 0 0 40px rgba(var(--rc), .25); }
.rc-tags { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.rc-tag { padding: 5px 10px; border-radius: 999px; font: 700 13px/1 var(--font-ui); color: var(--text); background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.rc-tag.new { color: var(--ink); background: var(--accent); border-color: transparent; box-shadow: 0 0 16px rgba(var(--accent-rgb), .6); }
.rc-name { font: 700 30px/1.1 var(--font-display); letter-spacing: .02em; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .9); }
.segs { display: flex; gap: 4px; }
.segs i { flex: 1; height: 7px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.segs i.on { background: rgb(var(--rc)); box-shadow: 0 0 10px rgba(var(--rc), .7); }
.segs.locked i { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 4px, rgba(255, 255, 255, .04) 4px 8px); }

/* full-screen raid scenes */
.raid .shade { background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .62) 34%, rgba(0, 0, 0, .1) 62%, transparent 80%),
  linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 22%, transparent 75%, rgba(0, 0, 0, .7) 100%); }
.raid-inner { height: 100%; max-width: 1380px; margin: 0 auto; padding: calc(var(--top) + 36px) clamp(20px, 5vw, 72px) 56px;
  display: grid; grid-template-columns: minmax(0, 620px) 1fr; align-items: center; }
.rs-text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rs-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-title { font-size: clamp(44px, 6.4vw, 104px); line-height: .98; letter-spacing: .015em; color: #fff; text-shadow: 0 4px 40px rgba(0, 0, 0, .7); }
.rs-title span { background: linear-gradient(180deg, #fff 20%, rgb(var(--rc-l)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(var(--rc), .45)); }
.rs-prog { display: flex; align-items: flex-end; gap: 18px; margin-top: 6px; }
.rs-big { font: 800 clamp(54px, 5.4vw, 84px)/.9 var(--font-display); color: #fff; }
.rs-big small { font-size: .45em; color: var(--text-2); }
.rs-prog p { font: 600 14px/1.4 var(--font-ui); color: var(--text-2); padding-bottom: 6px; }
.rs-prog p b { color: rgb(var(--rc-l)); }
.rs-text .segs { width: 100%; max-width: 560px; }
.rs-text .segs i { height: 9px; }
.rs-card { justify-self: end; align-self: end; width: 300px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(8, 6, 5, .6); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); display: grid; gap: 12px; }
.rs-card dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font: 500 14px/1.3 var(--font-ui); }
.rs-card dt { color: var(--text-3); } .rs-card dd { margin: 0; color: var(--text); font-weight: 700; text-align: right; }
.rs-card .cd { margin: 0; }
.rs-card-title { font: 700 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--rc-l)); }

/* signup card */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.cd b { font: 800 30px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.cd span { font: 600 13px/1 var(--font-ui); color: var(--text-3); }
.chip { padding: 4px 8px; border-radius: 7px; font: 700 13px/1 var(--font-ui); }

.dps { display: grid; gap: 6px; }
.dps li { position: relative; display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; overflow: hidden; font: 600 13px/1.2 var(--font-ui); color: var(--text); background: rgba(255, 255, 255, .03); }
.dps li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: color-mix(in srgb, var(--cc) 30%, transparent); border-right: 2px solid var(--cc); transition: width .4s; }
.dps li span, .dps li b { position: relative; }
.dps li span { color: var(--ct); }

.q-epic, .q-ep { --qc: #a335ee; --qt: #d4a2fb; } .q-legend, .q-lg { --qc: #ff8000; --qt: #ff9a33; } .q-rare { --qc: #0070dd; --qt: #68b6ff; }
.tag .q { width: 10px; height: 10px; border-radius: 3px; background: var(--qc); }
.q-epic-t { color: #d4a2fb !important; }
.step { align-self: flex-start; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); font: 700 13px/1 var(--font-ui); color: var(--accent); }
.widget { margin-top: auto; height: 190px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28); position: relative; overflow: hidden; }
.radar { position: relative; width: 160px; height: 160px; border-radius: 50%; border: 1px solid var(--line-2); overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 25px, rgba(255, 255, 255, .07) 25px 26px), radial-gradient(circle, rgba(var(--accent-rgb), .12), transparent 70%); }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(255, 255, 255, .08); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; } .radar::after { top: 50%; left: 0; right: 0; height: 1px; } .b2 { left: 62%; top: 58%; background: var(--bad); box-shadow: 0 0 10px var(--bad); animation-delay: -.5s; }

/* recruiting */
.recruit { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cls { position: relative; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); overflow: hidden; isolation: isolate; display: grid; gap: 8px; }
.cls::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 100% 0%, color-mix(in srgb, var(--cc) 26%, transparent), transparent 70%); }
.cls-top { display: flex; justify-content: space-between; align-items: center; }
.cls-name { font: 700 21px/1.1 var(--font-display); letter-spacing: .03em; color: var(--ct); }
.cls-spec { display: flex; align-items: center; gap: 7px; font: 500 14px/1.2 var(--font-ui); color: var(--text-2); }
.cls-spec .ic { width: 15px; height: 15px; color: var(--text-3); }
.prio { padding: 5px 9px; border-radius: 8px; font: 800 13px/1 var(--font-ui); }
.prio-high { color: #1d0d02; background: #ffb35a; box-shadow: 0 0 18px rgba(255, 179, 90, .5); animation: prio 2.4s ease-in-out infinite; }
.prio-med { color: var(--warn); background: rgba(244, 199, 108, .12); }
.prio-low { color: var(--ok); background: rgba(127, 224, 168, .1); }
.prio-closed { color: var(--text-3); background: rgba(255, 255, 255, .05); }
@keyframes prio { 50% { box-shadow: 0 0 4px rgba(255, 179, 90, .2); } }
.pips { display: flex; gap: 4px; } .pips i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); } .pips i.on { background: var(--cc); }
.cls.closed { opacity: .62; }
.join-card { padding: 26px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.join-steps { display: grid; gap: 14px; }
.join-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--text-2); font-size: 17px; line-height: 1.45; }
.join-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(var(--accent-rgb), .5); font: 800 16px/1 var(--font-display); color: var(--accent); }

/* hall of fame */
.plaques { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plaque { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 24px 22px; border-radius: 18px; text-align: center; align-items: center;
  border: 1px solid rgba(var(--accent-rgb), .3); background: radial-gradient(90% 70% at 50% 0%, rgba(var(--accent-rgb), .12), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); }
.plaque::before { content: ""; position: absolute; inset: 6px; border-radius: 13px; border: 1px solid rgba(var(--accent-rgb), .14); pointer-events: none; }
.pl-k { font: 700 13px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.plaque b { font: 700 21px/1.15 var(--font-display); color: var(--ct); }
.plaque small { font: 500 14px/1.3 var(--font-ui); color: var(--text-3); }

/* faq */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font: 600 17px/1.3 var(--font-ui); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--accent); transition: transform .3s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details[open] { border-color: rgba(var(--accent-rgb), .35); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); }

/* footer */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 72px clamp(16px, 4vw, 56px) calc(28px + var(--dock)); overflow: hidden; }
.footer-glow { position: absolute; left: 10%; right: 10%; top: -160px; height: 260px; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .22), transparent); filter: blur(20px); pointer-events: none; }
.footer-inner, .footer-base { position: relative; max-width: var(--page); margin: 0 auto; }
.footer-inner { display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; color: var(--text-2); }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.fc-title { font: 700 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.footer-cols a { font: 500 15px/1.3 var(--font-ui); color: var(--text-2); }
.footer-cols a:hover { color: var(--text); }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 15px; color: var(--text-3); }
.hud { display: flex; flex-wrap: wrap; gap: 8px; }
.hud li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); font: 600 13px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--text-3); }
.hud .dot { width: 6px; height: 6px; }

/* phone sheet + dock */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); display: flex; align-items: flex-end; }
.sheet-panel { width: 100%; max-height: 86vh; overflow: auto; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--card-2), var(--bg)); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.sg { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.sg-title { font: 700 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.sg a { padding: 7px 0; font: 500 16px/1.2 var(--font-ui); color: var(--text); }
.sheet-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 14px/1 var(--font-ui); color: var(--text-2); }
.chip-btn .sw { width: 18px; height: 18px; }
.dock { display: none; }

/* -------------------------------------------------------- scroll motion */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.still):not(.calm) .scroll-line { animation: grow linear both; animation-timeline: scroll(root); }
    html:not(.still):not(.calm) .scene .layer { animation: para linear both; animation-timeline: --scene; animation-range: cover; }
    html:not(.still):not(.calm) .scene .bg { animation: zoomout linear both; animation-timeline: --scene; animation-range: entry 0% entry 100%; }
    html:not(.still):not(.calm) .scene-inner { animation: recede linear forwards; animation-timeline: --scene; animation-range: exit 10% exit 90%; }
    html:not(.still):not(.calm) .rv { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    html:not(.still):not(.calm) .raid .rs-text > * { animation: rv linear both; animation-timeline: --scene; animation-range: entry 30% entry 100%; }
  }
}
@keyframes grow { to { transform: scaleX(1); } }
@keyframes para { from { transform: translateY(calc((1 - var(--d)) * -12vh)); } to { transform: translateY(calc((1 - var(--d)) * 12vh)); } }
@keyframes zoomout { from { transform: scale(1.14); filter: brightness(.5); } to { transform: scale(1); filter: none; } }
@keyframes recede { to { opacity: 0; transform: translateY(-50px) scale(.97); filter: blur(6px); } }
@keyframes rv { from { opacity: 0; transform: translateY(34px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* calm: OS setting, the Calm mode toggle, or still renders */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-snap-type: none; }
}
html.calm *, html.calm *::before, html.calm *::after, html.still *, html.still *::before, html.still *::after { animation-play-state: paused !important; transition: none !important; }
html.calm .vmarquee-track, html.calm .marquee-track { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .vmarquee { overflow-y: auto; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1280px) {
  .live-pill { display: none; }
}
@media (max-width: 1080px) {
  .groups, .tools > :not(.theme-pick) { display: none; }
  .tools { margin-left: auto; }
  .menu-btn { display: inline-grid; margin-left: 0; }
  .row, .fame, .recruit { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --top: 56px; --dock: 66px; }
  body { font-size: 17px; }
  .crest { width: 30px; height: 30px; }
  .brand-name { font-size: 18px; }
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 50; height: calc(var(--dock) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom);
    background: rgba(6, 5, 4, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  :root[data-theme="crystal"] .dock { background: rgba(5, 6, 12, .86); }
  .dock-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 14px; font: 600 13px/1 var(--font-ui); color: var(--text-3); }
  .dock-link .ic { width: 22px; height: 22px; }
  .dock-link.is-active { color: var(--accent); background: rgba(var(--accent-rgb), .1); }
  .scene { height: 100svh; min-height: 600px; }
  .hero-kicker { font-size: 13px; letter-spacing: .2em; }
  .marquee { bottom: calc(var(--dock) + 30px); }
  .block { padding: 96px 16px 24px; }
  .sec-head { margin-bottom: 40px; gap: 14px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 72px; }
  .stat-row li { padding: 16px; }
  .row { gap: 28px; margin-bottom: 80px; }
  .live-card, .comp-card { padding: 16px; min-height: 0; }
  .comp, :root[data-theme="crystal"] .comp { grid-template-columns: 1fr; }
  .banners { height: 230px; gap: 5px; }
  .bnr-cloth b { font-size: 16px; }
  .geode-wrap { justify-self: center; }
  .raid-card { height: 300px; }
  .raid .shade { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 26%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .9) 78%); }
  .raid-inner { grid-template-columns: 1fr; align-items: end; padding: calc(var(--top) + 20px) 18px calc(var(--dock) + 22px); gap: 14px; }
  .rs-text { gap: 12px; }
  .rs-card { justify-self: stretch; width: auto; padding: 14px 16px; }
  .rs-card dl { font-size: 13px; }
  .radar { width: 132px; height: 132px; }
  .class-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cls { padding: 14px; } .cls-name { font-size: 18px; }
  .plaques { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plaque { padding: 18px 12px; } .plaque b { font-size: 18px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .cd b { font-size: 24px; }
}

/* gallery (guild screenshots; placeholders) */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 230px; gap: 14px; }
.shot { position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; }
.shot-a { grid-row: span 2; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font: 700 16px/1.2 var(--font-display); color: var(--text); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8)); }
.shot figcaption small { font: 500 13px/1 var(--font-ui); color: var(--text-3); }
.legal { font: 400 13px/1.5 var(--font-ui); color: var(--text-3); max-width: 900px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .shot figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
  .shot-a { grid-column: span 2; grid-row: span 1; }
  .shot figcaption { font-size: 14px; padding: 30px 12px 10px; }
}

/* raid strip extras: photo backgrounds and the not-yet-released classics */
.raid-card .rc-art img, .scene .layer > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.old-head { display: flex; align-items: center; gap: 14px; margin: 34px auto 14px; font: 700 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.old-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.old-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.raid-card.old { height: 130px; padding: 16px 18px; filter: grayscale(.75) brightness(.7); opacity: .8; }
.raid-card.old:hover { filter: grayscale(.3) brightness(.85); }
.raid-card.old .rc-name { font-size: 21px; }
.raid-card.old .rc-tags { position: static; margin-bottom: 8px; }
.raid-card.old::after { background: linear-gradient(90deg, rgba(5, 4, 3, .9), rgba(5, 4, 3, .55)); }
.raid-fx { position: absolute; inset: 0; pointer-events: none; }
.raid-fx svg { width: 100%; height: 100%; display: block; }
@media (max-width: 1080px) { .old-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .old-grid { grid-template-columns: 1fr; } .raid-card.old { height: 96px; } }

/* photo scenes: Blizzard screenshots need a firmer shade under the copy */
.raid.has-photo .shade { background:
  linear-gradient(90deg, rgba(4, 3, 2, .92) 0%, rgba(4, 3, 2, .8) 36%, rgba(4, 3, 2, .3) 62%, rgba(4, 3, 2, .05) 85%),
  linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 22%, transparent 72%, rgba(0, 0, 0, .75) 100%); }
.raid.has-photo .layer > img { filter: saturate(1.05) brightness(.82); }
@media (max-width: 760px) {
  .raid.has-photo .shade { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 24%, rgba(4, 3, 2, .7) 48%, rgba(4, 3, 2, .94) 74%); }
}

/* ===== Hero alternatives: modern glass (html[data-hero="glass|orb|split"]) =====
   No drawn props: real raid pictures, light, blur and a refined wordmark.
   Glass = a dark tint + a light gradient + backdrop blur + 1px light border +
   an inner top highlight. Grain and light move slowly; all of it stops under
   prefers-reduced-motion, Calm mode and ?still=1 (story.css rules). */

/* refined, frosted site bar for the alternatives */
html:not([data-hero=""]) .topbar { background: rgba(14, 11, 8, .34); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
html:not([data-hero=""]) .brand-name { font-weight: 500; font-size: 16px; letter-spacing: .34em; }
html:not([data-hero=""]) .topbar .crest { display: none; }
.brand-mark { display: none; }
html:not([data-hero=""]) .topbar .brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
html:not([data-hero=""]) .topbar .brand-mark .ic { width: 19px; height: 19px; stroke-width: 1.5; color: #f6d48a; }
html:not([data-hero=""]) .g-link { font-family: "Inter", var(--font-ui); font-weight: 500; }
html:not([data-hero=""]) .g-link.is-active { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .2); }
html:not([data-hero=""]) .g-link.is-active .ic { color: var(--accent); }
html:not([data-hero=""]) .live-pill, html:not([data-hero=""]) .icon-btn { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); font-family: "Inter", var(--font-ui); }
html:not([data-hero=""]) .tools .btn-primary { font-family: "Inter", var(--font-ui); font-weight: 600; background: linear-gradient(180deg, #ffe7ad, #f2c76a 55%, #e2a94c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 24px -6px rgba(242, 180, 80, .6); }
html:not([data-hero=""]) .dock { background: rgba(14, 11, 8, .5); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); }

/* shared pieces */
.hv { --ui: "Inter", var(--font-ui); background: #070605; }
.glass { position: relative; background: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04) 42%, rgba(255, 255, 255, .02)), rgba(16, 12, 9, .4);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.hv .grain { position: absolute; inset: -60%; z-index: 1; pointer-events: none; opacity: .1; mix-blend-mode: overlay; background-size: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(5) infinite; }
@keyframes grain { 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } }
.hv .scene-inner { z-index: 2; }
.gpill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; font: 500 13px/1 var(--ui); color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.gpill-tag { padding: 5px 10px; border-radius: 999px; font-weight: 600; color: #1d1404; background: linear-gradient(180deg, #ffe7ad, #eab95e); }
.gpill .ic { width: 14px; height: 14px; opacity: .7; }
.hv-kicker { display: flex; align-items: center; gap: 12px; margin: 0; font: 500 13px/1 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .66); }
.hv-kicker i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.hv-tag { margin: 0; max-width: 520px; font: 400 18px/1.6 var(--ui); color: rgba(246, 239, 226, .8); letter-spacing: -.005em; }
.hv-label { font: 600 13px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.hv-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--ui); letter-spacing: -.005em; white-space: nowrap; transition: transform .25s, box-shadow .25s, background .25s; }
.gbtn .ic { width: 17px; height: 17px; }
.gbtn-gold { color: #1d1404; background: linear-gradient(180deg, #ffe7ad 0%, #f2c76a 55%, #e2a94c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(120, 70, 10, .3), 0 12px 40px -10px rgba(242, 180, 80, .7); }
.gbtn-gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 16px 50px -10px rgba(242, 180, 80, .85); }
.gbtn-glass { color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.gbtn-glass:hover { background: rgba(255, 255, 255, .12); }
.gcd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.gcd div { display: grid; gap: 6px; padding: 12px 6px 10px; text-align: center; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.gcd b { font: 300 34px/1 var(--ui); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: #fff; }
.gcd span { font: 500 13px/1 var(--ui); color: rgba(255, 255, 255, .55); }

/* wordmarks: light, metallic, no bevel; a slow light sweep */
.wm { margin: 0; line-height: .95; text-transform: uppercase; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .9) 50%, transparent 58%), linear-gradient(180deg, #ffffff 0%, #fff3d8 40%, #f0cd88 74%, #d8a458 100%);
  background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0; background-repeat: no-repeat;
  filter: drop-shadow(0 0 30px rgba(255, 196, 110, .2)); animation: wmsweep 9s ease-in-out infinite; }
@keyframes wmsweep { 0%, 55% { background-position: 130% 0, 0 0; } 85%, 100% { background-position: -30% 0, 0 0; } }
.wm-cinzel { font: 500 clamp(40px, 4.5vw, 72px)/1 var(--font-display); letter-spacing: .22em; margin-right: -.22em; }

/* member names along the bottom, quieter */
.hv-marquee { bottom: 44px; height: 40px; }
.hv-marquee .marquee-track { height: 40px; gap: 30px; }
.hv-marquee .mq-item { font: 500 14px/1 var(--ui); letter-spacing: .01em; }
.hv-marquee .mq-item small { font: 500 13px/1 var(--ui); color: rgba(255, 255, 255, .42); }
.hv-marquee .mq-item i { width: 5px; height: 5px; border-radius: 50%; rotate: 0deg; box-shadow: 0 0 8px var(--cc); }
.hv-cue { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; z-index: 2; display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .48); }
.hv-cue i { position: relative; width: 1px; height: 22px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hv-cue i::after { content: ""; position: absolute; left: -1px; top: -8px; width: 3px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: cuedrop 1.8s ease-in-out infinite; }
@keyframes cuedrop { to { top: 22px; } }

/* ---------- 1 · cinematic glass ---------- */
.hv1 .layer { inset: -4% -2%; }
/* Five pictures, 6 s each (30 s cycle): slide k starts at k × 6 s, fades over ~1.1 s. */
.hv1 .kb { position: absolute; inset: 0; opacity: 0; animation: kbfade 30s linear infinite; }
.hv1 .kb1 { opacity: 1; }
.hv1 .kb2 { animation-delay: -24s; } .hv1 .kb3 { animation-delay: -18s; }
.hv1 .kb4 { animation-delay: -12s; } .hv1 .kb5 { animation-delay: -6s; }
.hv1 .kb img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transform-origin: 62% 50%; animation: kenburns 30s ease-in-out infinite; }
.hv1 .kb2 img { animation-delay: -24s; transform-origin: 40% 62%; } .hv1 .kb3 img { animation-delay: -18s; transform-origin: 72% 40%; }
.hv1 .kb4 img { animation-delay: -12s; transform-origin: 55% 45%; } .hv1 .kb5 img { animation-delay: -6s; transform-origin: 35% 40%; }
@keyframes kbfade { 0% { opacity: 1; } 16.4% { opacity: 1; } 20% { opacity: 0; } 96.4% { opacity: 0; } 100% { opacity: 1; } }
@keyframes kenburns { 0% { transform: scale(1.06) translate(0, 0); } 33% { transform: scale(1.15) translate(-2%, -1%); } 100% { transform: scale(1.06) translate(0, 0); } }
.hv1-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(6, 5, 4, .8) 0%, rgba(6, 5, 4, .45) 40%, rgba(6, 5, 4, .08) 70%, rgba(6, 5, 4, .3) 100%),
  linear-gradient(180deg, rgba(6, 5, 4, .45) 0%, transparent 22%, transparent 60%, rgba(9, 7, 5, .94) 100%); }
.hv1-inner { height: 100%; max-width: 1400px; margin: 0 auto; padding: calc(var(--top) + 34px) clamp(20px, 5vw, 72px) 120px;
  display: grid; grid-template-columns: minmax(0, 660px) 1fr; align-items: center; }
.hv1-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 40px 44px 38px; border-radius: 30px; }
.hv1-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .16), transparent 32%), radial-gradient(70% 60% at 100% 100%, rgba(242, 180, 80, .14), transparent 70%); }
.hv1-card > * { position: relative; }
.hv1-card .wm { margin: 4px 0 2px; }
.hv1-cd { display: grid; gap: 10px; width: 100%; margin-top: 4px; }
.hv1-card .hv-cta { margin-top: 6px; }
.hv1-now { justify-self: end; align-self: end; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; }
.hv1-now b { font: 600 15px/1 var(--ui); color: #fff; }
.hv1-dots { display: flex; gap: 5px; }
.hv1-dots i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); transition: background .4s; }
.hv1-dots i.on { background: var(--accent); box-shadow: 0 0 8px rgba(242, 193, 78, .8); }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .hv-marquee { bottom: calc(var(--dock) + 28px); }
  .hv-cue { display: none; }
  .hv-tag { font-size: 16px; line-height: 1.55; }
  .gbtn { height: 50px; width: 100%; }
  .hv-cta { width: 100%; flex-direction: column; gap: 10px; }
  .hv-kicker { font-size: 13px; letter-spacing: .2em; }
  /* 1 */
  .hv1-inner { grid-template-columns: 1fr; align-items: center; padding: calc(var(--top) + 14px) 14px calc(var(--dock) + 72px); }
  .hv1-card { gap: 14px; padding: 24px 20px 22px; border-radius: 24px; }
  .wm-cinzel { font-size: 38px; letter-spacing: .2em; margin-right: -.2em; }
  .gcd b { font-size: 26px; }
  .hv1-now { display: none; }
}

/* ===== the guild site: what the port adds to the mockup's CSS ===== */
:root {
  --top: 64px;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.topbar { top: 0; height: 64px; }
.brand-mark, html:not([data-hero=""]) .topbar .brand-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.brand-mark .ic { width: 19px; height: 19px; stroke-width: 1.5; color: #f6d48a; }
.raid-card.old .rc-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  :root { --top: 56px; }
  .topbar { height: 56px; }
}

/* --- live data (js/site.js, guild.js): the admin's news line, the member list --- */
.c-deathknight { --cc: #c41e3a; --ct: #ff6b7f; }
.c-none { --cc: #8a8a8a; --ct: var(--text-2); }
.announce { position: absolute; z-index: 54; top: calc(var(--top) + 12px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: min(calc(100vw - 32px), 760px); padding: 8px 14px 8px 8px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(14, 11, 8, .62);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  font: 500 14px/1.35 var(--font-ui); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.announce-tag { flex: none; padding: 4px 10px; border-radius: 999px; font-weight: 700; color: #1d1404; background: linear-gradient(180deg, #ffe7ad, #eab95e); }
.members-block { margin-top: 24px; scroll-margin-top: calc(var(--top) + 24px); }
.members-head { display: grid; gap: 10px; justify-items: start; margin-bottom: 18px; }
.members-note { font: 500 14px/1.5 var(--font-ui); color: var(--text-3); }
.member-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.member-filter .flt { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font: 600 13px/1 var(--font-ui); color: var(--text-2); cursor: pointer; }
.member-filter .flt:hover { border-color: var(--line-2); color: var(--text); }
.member-filter .flt.on { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.mem-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mem { position: relative; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); overflow: hidden; }
.mem::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--cc); }
.mem, .mem-link { display: grid; gap: 4px; padding: 11px 14px 11px 16px; }
.mem:has(.mem-link) { padding: 0; }
.mem-link { color: inherit; text-decoration: none; }
.mem-link:hover, .mem-link:focus-visible { background: rgba(255, 255, 255, .05); }
.mem-name { font: 700 16px/1.2 var(--font-display); letter-spacing: .03em; color: var(--ct); }
.mem-sub { display: flex; align-items: center; gap: 8px; font: 500 13px/1.3 var(--font-ui); color: var(--text-2); }
.mem-sub .lvl { min-width: 30px; height: 22px; font-size: 12px; }
.mem-rank { font: 500 12px/1.3 var(--font-ui); color: var(--text-3); }
.mem-rank:empty { display: none; }
.vmarquee-track.few { animation: none; }
@media (max-width: 640px) {
  .announce { top: calc(var(--top) + 8px); left: 16px; right: 16px; transform: none; max-width: none; border-radius: 16px; font-size: 13px; }
  .mem-grid { grid-template-columns: 1fr; }
}

/* --- Blizzard's notice behind a small "!" (the owner, 2026-11-16) ------------------
   Faded grey in a corner; hover, focus or a tap (.open, js/common.js) shows the
   text as a tooltip above it. The footers place it at their bottom right, the
   login page in the screen's corner. */
.legal-corner { position: relative; }
.footer-base .legal-corner { position: absolute; right: 0; bottom: 0; }
.footer-base > p { padding-right: 36px; }
.legal-mark { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: help;
  font: 700 12px/1 "Inter", var(--font-ui); color: rgba(200, 204, 214, .55); background: rgba(20, 22, 30, .35);
  border: 1px solid rgba(200, 204, 214, .28); opacity: .6; transition: opacity .2s, color .2s, border-color .2s; }
.legal-mark:hover, .legal-mark:focus-visible, .legal-corner.open .legal-mark { opacity: 1; color: rgba(225, 228, 236, .9); border-color: rgba(225, 228, 236, .5); }
.legal-mark:focus-visible { outline: 2px solid rgba(160, 185, 255, .7); outline-offset: 2px; }
.legal-corner .legal-tip { position: absolute; z-index: 70; right: 0; bottom: calc(100% + 8px); width: min(360px, calc(100vw - 32px)); max-width: none; margin: 0;
  padding: 10px 12px; border-radius: 10px; text-align: left; font: 400 12px/1.5 "Inter", var(--font-ui); color: rgba(218, 222, 232, .82);
  background: rgba(10, 12, 18, .94); border: 1px solid rgba(200, 204, 214, .18); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .18s, transform .18s, visibility 0s .18s; pointer-events: none; }
.legal-mark:hover + .legal-tip, .legal-mark:focus-visible + .legal-tip, .legal-corner.open .legal-tip {
  opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s, visibility 0s; }

/* ===== sub tabs (the owner, 2026-11-17) ===========================================
   Every main tab's pages are sub tabs now, not one long scroll: each
   <section class="tab-panel"> in <main> is one page (js/tabs.js shows one at
   a time, css/subbar.css draws the bar that picks it). These rules make each
   panel a page of its own: it clears the fixed bars, fades in, and stays
   short. */
html { scroll-snap-type: none; }
.tab-panel { position: relative; display: block; }
.tab-panel.is-in { animation: tab-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.calm .tab-panel.is-in, html.still .tab-panel.is-in { animation: none; }
.tab-panel [id] { scroll-margin-top: calc(var(--top) + 16px); }
.tab-panel > .block:first-child { padding-top: calc(var(--top) + 56px); }
body:has(.announce:not([hidden])) .tab-panel > .block:first-child { padding-top: calc(var(--top) + 100px); }
.tab-panel > .block { padding-bottom: 96px; }
.tab-panel .sec-head { margin-bottom: 48px; }
.tab-panel .h2 { font-size: clamp(32px, 3.8vw, 56px); }
.tab-panel .stat-row { margin-bottom: 28px; }

/* six main tabs: the bar, the dock and the footer make room */
.footer-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.sg a { font-size: 15px; padding: 6px 0; }

/* Home: at a glance (real numbers only) and a door to every part of the site */
.glance { padding-top: 64px; }
.glance-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.glance-tile { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 4px; align-items: center;
  padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); overflow: hidden; }
.glance-tile .gt-ic { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--accent);
  background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.glance-tile .gt-ic .ic { width: 22px; height: 22px; }
.glance-tile b { align-self: end; font: 600 32px/1.05 "Inter", var(--font-ui); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.glance-tile b + span { align-self: start; font: 500 14px/1.3 var(--font-ui); color: var(--text-3); }
.gt-hot { border-color: rgba(var(--accent-rgb), .34); background: radial-gradient(120% 110% at 100% 0%, rgba(var(--accent-rgb), .15), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card)); }
.gt-hot b { color: var(--accent); }

.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.explore-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.xcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border-radius: 22px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); color: var(--text);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .35s; }
.xcard::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75; transition: opacity .3s;
  background: radial-gradient(70% 60% at 100% 100%, rgba(var(--accent-rgb), .13), transparent 70%), radial-gradient(40% 30% at 0% 0%, rgba(255, 255, 255, .04), transparent 70%); }
.xcard:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .45);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 44px -12px rgba(var(--accent-rgb), .4); }
.xcard:hover::after { opacity: 1; }
.x-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--accent);
  background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.x-ic .ic { width: 22px; height: 22px; }
.x-k { font: 600 13px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.x-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 700 30px/1.1 var(--font-display); letter-spacing: .02em; color: var(--text); }
.x-text { max-width: 46ch; font: 400 16px/1.5 var(--font-ui); color: var(--text-2); }
.x-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font: 600 15px/1 var(--font-ui); color: var(--accent); }
.x-go .ic { transition: transform .25s; }
.xcard:hover .x-go .ic { transform: translateX(4px); }
.xcard-members, .xcard-photo { min-height: 300px; }
.x-bar { display: flex; gap: 2px; width: 100%; max-width: 440px; height: 10px; margin-top: 8px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.x-bar:empty { display: none; }
.x-bar i { flex: var(--n, 1) 1 0; min-width: 3px; height: 100%; background: var(--cc, #8a8a8a); box-shadow: 0 0 10px color-mix(in srgb, var(--cc, #8a8a8a) 55%, transparent); }
.xcard-photo { border-color: rgba(255, 255, 255, .12); }
.x-photo { position: absolute; inset: 0; z-index: -2; }
.x-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.xcard-photo:hover .x-photo img { transform: scale(1.08); }
.xcard-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 5, 4, .92) 0%, rgba(6, 5, 4, .7) 45%, rgba(6, 5, 4, .15) 100%), linear-gradient(0deg, rgba(6, 5, 4, .55), transparent 55%); }
.xcard-photo .x-text { color: rgba(246, 239, 226, .86); }
.xcard-sm { gap: 8px; padding: 20px; }
.xcard-sm .x-ic { width: 38px; height: 38px; border-radius: 11px; }
.xcard-sm .x-ic .ic { width: 19px; height: 19px; }
.xcard-sm .x-name { font-size: 21px; }
.xcard-sm .x-text { font-size: 14px; }

/* Members: the roster and the class spread side by side, then everyone */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; margin-bottom: 56px; }
.duo .live-card .vmarquee { height: 330px; }
.rank-tags { gap: 6px; }

@media (max-width: 1280px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .glance-row { grid-template-columns: 1fr 1fr; }
  .explore, .duo { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .dock { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-left: 4px; padding-right: 4px; }
  .dock-link { gap: 4px; letter-spacing: -.01em; }
  .tab-panel > .block:first-child { padding-top: calc(var(--top) + 32px); }
  body:has(.announce:not([hidden])) .tab-panel > .block:first-child { padding-top: calc(var(--top) + 92px); }
  .tab-panel > .block { padding-bottom: 56px; }
  .tab-panel .sec-head { margin-bottom: 32px; }
  .glance { padding-top: 36px; }
  .glance-row { gap: 10px; }
  .glance-tile { grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; padding: 14px; }
  .glance-tile .gt-ic { width: 38px; height: 38px; border-radius: 11px; }
  .glance-tile .gt-ic .ic { width: 19px; height: 19px; }
  .glance-tile b { font-size: 24px; }
  .glance-tile b + span { font-size: 13px; }
  .xcard { padding: 20px; }
  .xcard-members, .xcard-photo { min-height: 0; }
  .x-name { font-size: 26px; }
  .x-text { font-size: 15px; }
  .explore-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .xcard-sm { padding: 16px; }
  .xcard-sm .x-name { font-size: 18px; }
  .xcard-sm .x-text { font-size: 13px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
/* the role split needs specs the roster doesn't have: once it hides, the banners take the card */
.comp:has(.role-split[hidden]) { grid-template-columns: minmax(0, 1fr); }
:root[data-theme="crystal"] .comp:has(.role-split[hidden]) { justify-items: center; }

/* ===== real content (content.json, the owner's words from wow-admin; 2026-11-17) =====
   Recruiting, Hall of fame, Gallery (+ the upload form and the lightbox),
   FAQ, and the Members tab's placeholders while guild.json loads. */
.lead-block { display: grid; gap: 10px; justify-items: center; }
.recruit-main { display: grid; gap: 14px; align-content: start; }
.recruit-any { padding: 22px; border-radius: 18px; border: 1px dashed var(--line-2); font: 500 16px/1.5 var(--font-ui); color: var(--text-2); text-align: center; }
.cls-note { margin: 0; font: 400 14px/1.45 var(--font-ui); color: var(--text-2); }
.cls-have { font: 600 13px/1.25 var(--font-ui); color: var(--text-3); }
.cls .pips { margin-top: auto; }

.plaques { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plaques-few { max-width: 780px; }
.pl-date { font: 500 13px/1 var(--font-ui); letter-spacing: .04em; color: var(--text-3); }

.gallery-empty { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 640px; margin: 0 auto 8px; padding: 22px; border-radius: 18px;
  border: 1px dashed var(--line-2); font: 500 16px/1.45 var(--font-ui); color: var(--text-2); text-align: center; }
.gallery-empty .ic { width: 22px; height: 22px; flex: none; color: var(--accent); }
.shot { background: var(--card); }
.shot-open { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot-open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.shot:hover .shot-open img { transform: scale(1.04); }
.shot-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 18px; }
.shot figcaption { z-index: 1; pointer-events: none; }
.shot figcaption b { font: inherit; }
.gallery-few { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 320px; }
.gallery-few .shot-a { grid-row: span 1; }
.gallery-few:has(> :only-child) { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 460px; max-width: 900px; }

.upload-card { margin-top: 28px; padding: 26px; display: grid; gap: 20px; }
.up-head { display: flex; align-items: flex-start; gap: 16px; }
.up-head .h3 { font-size: clamp(22px, 2vw, 28px); }
.up-note { max-width: 62ch; margin: 6px 0 0; font: 400 15px/1.5 var(--font-ui); color: var(--text-2); }
.up-form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.up-drop { position: relative; display: grid; place-items: center; min-height: 230px; border-radius: 18px; overflow: hidden; cursor: pointer;
  border: 1px dashed rgba(var(--accent-rgb), .45); background: rgba(255, 255, 255, .025); transition: border-color .2s, background-color .2s; }
.up-drop:hover, .up-drop:focus-within { border-color: var(--accent); background: rgba(var(--accent-rgb), .06); }
.up-file { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.up-pick { display: grid; justify-items: center; gap: 8px; padding: 24px; text-align: center; pointer-events: none; }
.up-pick .ic { width: 30px; height: 30px; color: var(--accent); }
.up-pick b { font: 700 19px/1.2 var(--font-display); letter-spacing: .02em; color: var(--text); }
.up-pick small { max-width: 40ch; font: 400 13px/1.45 var(--font-ui); color: var(--text-3); }
.up-preview { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; pointer-events: none; }
.has-picture .up-drop { place-items: stretch; border-style: solid; }
.has-picture .up-pick { position: absolute; right: 12px; bottom: 12px; z-index: 1; grid-auto-flow: column; padding: 8px 14px; border-radius: 999px;
  background: rgba(6, 5, 4, .72); border: 1px solid rgba(255, 255, 255, .16); }
.has-picture .up-pick b { font: 600 14px/1 var(--font-ui); letter-spacing: 0; }
.has-picture .up-pick small, .has-picture .up-pick .ic { display: none; }
.up-fields { display: grid; gap: 14px; }
.up-field { display: grid; gap: 7px; font: 600 14px/1.2 var(--font-ui); color: var(--text-2); }
.up-field small { font-weight: 500; color: var(--text-3); }
.up-field input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35);
  font: 500 16px/1 var(--font-ui); color: var(--text); }
.up-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.up-turnstile { min-height: 65px; }
.up-turnstile:empty { display: none; }
.up-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.up-status { margin: 0; font: 500 14px/1.45 var(--font-ui); color: var(--text-2); }
.up-status:empty { display: none; }
.up-ok { color: var(--ok); }
.up-bad { color: var(--bad); }

.lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text); overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(4, 3, 2, .9); backdrop-filter: blur(6px); }
.lb-figure { display: grid; justify-items: center; gap: 12px; max-width: min(92vw, 1700px); margin: 0; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65); }
.lb-cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; font: 500 15px/1.4 var(--font-ui); color: var(--text-2); }
.lb-cap b { font: 700 19px/1.3 var(--font-display); letter-spacing: .02em; color: var(--text); }
.lb-btn { position: fixed; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 8, 6, .62); color: var(--text); transition: border-color .2s, color .2s; }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-prev .ic { rotate: 180deg; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }
.lb-close { right: 20px; top: 20px; }

.faq summary span { flex: 1; }
.faq details p:not(:last-child) { padding-bottom: 10px; }

.mrow.skel { pointer-events: none; }
.mrow.skel .avatar { background: rgba(255, 255, 255, .06); }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .11), rgba(255, 255, 255, .05));
  background-size: 200% 100%; animation: sk 1.4s linear infinite; }
.sk-name { width: 62%; height: 15px; margin-bottom: 8px; }
.sk-sub { width: 40%; }
.skel.still .sk { animation: none; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
html.calm .sk, html.still .sk { animation: none; }

@media (max-width: 1080px) {
  .up-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .gallery-few, .gallery-few:has(> :only-child) { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
  .upload-card { padding: 18px; }
  .up-head { gap: 12px; }
  .up-drop { min-height: 180px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-img { max-height: calc(100dvh - 190px); }
}
