/* Dekaron Legacy+ — public site styles. No remote fonts or assets (CSP: self only). */
:root {
  --bg: #0a0909; --bg-2: #100e0d; --surface: #151312; --surface-2: #1b1816; --surface-3: #231f1c;
  --line: rgba(201, 164, 92, .16); --line-2: rgba(201, 164, 92, .32); --line-soft: rgba(255, 255, 255, .06);
  --gold: #c9a45c; --gold-2: #e3c887; --gold-deep: #8a6c34; --ember: #b4452f; --ember-2: #d9694f; --ember-deep: #5e1f15;
  --text: #ece5d8; --muted: #a79e8f; --dim: #8d8477; --ok: #7fb58b; --warn: #d9a64e; --err: #dc6b56; --info: #8fa9c9;
  --display: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", Menlo, monospace;
  --r: 3px; --gut: clamp(16px, 4vw, 40px); --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1); --t: 220ms;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.6 var(--body);
  background-image: radial-gradient(1200px 600px at 50% -200px, rgba(201, 164, 92, .06), transparent 70%);
  min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff3d6; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3, h2.h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: rgba(201, 164, 92, .35); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: #140f08; padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- layout */
.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(36px, 5vw, 64px) 0; }
.eyebrow { font: 600 .74rem/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: .7em; align-items: center; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.grid { display: grid; gap: 20px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
hr.rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 28px 0; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 9, 9, .94); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand img { width: 34px; height: auto; }
.brand b { font: 600 1.05rem/1 var(--display); letter-spacing: .08em; }
.brand small { display: block; font: 600 .62rem/1.4 var(--body); letter-spacing: .28em; color: var(--gold); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--muted); padding: 8px 12px; font-size: .9rem; letter-spacing: .02em; border-radius: var(--r); position: relative; transition: color var(--t) var(--ease); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--gold-2); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 2px; background: var(--gold); }
.header-cta { display: flex; gap: 8px; }
.site-header .menu-btn { display: none; margin-left: auto; }
@media (max-width: 1299px) { #hdr-vote { display: none; } }  /* the menu, footer and pages still link it */
@media (max-width: 1199px) {
  .nav, .header-cta { display: none; }
  .site-header .menu-btn { display: inline-grid; }
}
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); animation: fade var(--t) var(--ease); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 360px); background: var(--bg-2); border-left: 1px solid var(--line-2); padding: 20px; display: flex; flex-direction: column; gap: 4px; animation: slidein var(--t) var(--ease); overflow-y: auto; }
.drawer .panel a { color: var(--text); padding: 12px 10px; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; }
.drawer .panel a[aria-current="page"] { color: var(--gold-2); }

/* ---------- buttons, chips, badges */
.btn { --b: var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border: 1px solid var(--b); border-radius: var(--r); background: transparent; color: var(--text); font: 600 .85rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform 120ms; text-decoration: none; }
.btn:hover { border-color: var(--gold); color: #fff; background: rgba(201, 164, 92, .08); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #d9b772, #b38a45); color: #1b1307; border-color: #e3c887; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 22px -10px rgba(201, 164, 92, .6); }
.btn.primary:hover { background: linear-gradient(180deg, #e8c884, #c09550); color: #120c04; }
.btn.ember { border-color: rgba(217, 105, 79, .5); color: #f6d3c8; }
.btn.ember:hover { background: rgba(180, 69, 47, .16); border-color: var(--ember-2); }
.btn.ghost { border-color: transparent; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .74rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .82rem; cursor: pointer; transition: all var(--t) var(--ease); }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: #1b1307; background: var(--gold); border-color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 2px; font: 600 .66rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.badge.verified { color: var(--ok); } .badge.planned { color: var(--warn); } .badge.testing { color: var(--info); }
.badge.sample { color: var(--muted); } .badge.unverified { color: var(--err); } .badge.gold { color: var(--gold-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 3px rgba(127, 181, 139, .15); }
.dot.off { background: var(--err); box-shadow: 0 0 0 3px rgba(220, 107, 86, .15); }

/* ---------- engraved frame */
.frame { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r); }
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold); opacity: .55; pointer-events: none; }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.pad { padding: clamp(18px, 2.4vw, 28px); }

/* ---------- hero */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero .art { position: absolute; inset: 0; z-index: -2; }
.hero .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.02); animation: heroin 1.6s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(10, 9, 9, .92) 0%, rgba(10, 9, 9, .55) 42%, rgba(10, 9, 9, .1) 70%),
  linear-gradient(0deg, var(--bg) 0%, rgba(10, 9, 9, 0) 45%), radial-gradient(900px 400px at 75% 10%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .35)); }
.hero .wrap { padding: 120px 0 64px; }
.hero .shield { width: 64px; height: auto; margin-bottom: 16px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .8)); }
.hero h1 { max-width: 19ch; font-size: clamp(2.3rem, 4.1vw, 3.9rem); text-shadow: 0 2px 30px rgba(0, 0, 0, .8); }
.hero .lede { max-width: 52ch; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero .lede { color: #cfc6b6; }
.hero .facts { display: flex; gap: clamp(18px, 4vw, 44px); margin-top: 36px; flex-wrap: wrap; }
.fact b { display: block; font: 600 1.7rem/1 var(--display); color: var(--gold-2); }
.fact span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.page-hero { position: relative; padding: clamp(64px, 7vw, 100px) 0 clamp(26px, 3.5vw, 40px); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .art { position: absolute; inset: 0; z-index: -2; }
.page-hero .art img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 3%, rgba(10, 9, 9, .45) 55%, rgba(10, 9, 9, .7)), linear-gradient(90deg, rgba(10, 9, 9, .75), rgba(10, 9, 9, .15) 65%); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.page-hero .lede { margin-bottom: 0; }
.band-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.band-grid li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: baseline; padding: 9px 12px; border: 1px solid var(--line-soft); background: var(--surface); transition: border-color var(--t), transform var(--t) var(--ease); }
.band-grid li:hover { border-color: var(--line-2); transform: translateX(3px); }
.band-grid .lv { color: var(--gold-2); font: 600 .95rem var(--display); font-variant-numeric: tabular-nums; }
.band-grid small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
@media (max-width: 640px) { .band-grid { grid-template-columns: 1fr; } }

/* ---------- status strip */
.status-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); }
.status-strip > div { padding: 18px 20px; border-right: 1px solid var(--line-soft); }
.status-strip > div:last-child { border-right: 0; }
.status-strip b { display: block; font: 600 1.3rem/1.2 var(--display); }
.status-strip span { color: var(--muted); font-size: .8rem; letter-spacing: .06em; }
@media (max-width: 760px) { .status-strip { grid-template-columns: 1fr 1fr; } .status-strip > div:nth-child(2) { border-right: 0; } .status-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); } }

/* ---------- class roster */
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.roster > [role="listitem"] { display: flex; }
.class-card { width: 100%; font: inherit; position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); overflow: hidden; cursor: pointer; text-align: left; padding: 0; color: inherit; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); display: flex; flex-direction: column; }
.class-card .bg { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: #000; }
.class-card .bg img.env { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: opacity var(--t), transform 600ms var(--ease); }
.class-card .bg img.face { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 78%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .6); transition: transform var(--t) var(--ease); }
.class-card .meta { padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.class-card .meta b { font: 600 1rem/1.2 var(--display); display: block; }
.class-card .meta span { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.class-card:hover, .class-card:focus-visible { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.class-card:hover .env { opacity: .75; transform: scale(1.05); }
.class-card:hover .face { transform: translateX(-50%) translateY(-3px); }
.class-card[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }

.class-detail { display: grid; grid-template-columns: 360px 1fr; gap: 0; border: 1px solid var(--line-2); background: var(--surface); animation: rise 320ms var(--ease); }
.class-detail .visual { position: relative; min-height: 460px; overflow: hidden; border-right: 1px solid var(--line); }
.class-detail .visual img.env { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.class-detail .visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 8%, rgba(21, 19, 18, .1) 70%); }
.class-detail .visual .portrait { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); width: min(216px, 70%); bottom: 100px; border: 1px solid var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .8), 0 0 0 6px rgba(10, 9, 9, .65); }
.class-detail .visual .portrait img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.class-detail .visual .skills { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); width: min(216px, 70%); bottom: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.class-detail .visual .skills span { aspect-ratio: 1; border: 1px solid var(--line-2); background-image: var(--skills); background-size: 400% 100%; }
.class-detail .body { padding: clamp(22px, 3vw, 40px); }
.class-detail dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 18px; margin: 18px 0; }
.class-detail dt { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.class-detail dd { margin: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--muted); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .class-detail { grid-template-columns: 1fr; } .class-detail .visual { min-height: 380px; border-right: 0; border-bottom: 1px solid var(--line); } .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cols-2 { grid-template-columns: 1fr; } .class-detail dl { grid-template-columns: 1fr; gap: 2px 0; } .class-detail dd { margin-bottom: 8px; } }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding-left: 22px; position: relative; margin: 7px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
ul.ticks.minus li::before { border-color: var(--ember-2); background: transparent; }

/* ---------- cards / feature panels */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease); color: inherit; }
a.card:hover, button.card:hover { border-color: var(--line-2); transform: translateY(-2px); color: inherit; }
.card .media { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
a.card:hover .media img { transform: scale(1.04); }
.card .content { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: .8rem; }
.feature-band { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.feature-band > * { padding: 26px; border-right: 1px solid var(--line-soft); position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: end; isolation: isolate; color: inherit; }
.feature-band > *:last-child { border-right: 0; }
.feature-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: opacity var(--t), transform 700ms var(--ease); }
.feature-band > *::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 9, 9, .96) 20%, rgba(10, 9, 9, .2)); }
.feature-band > *:hover img { opacity: .8; transform: scale(1.04); }
@media (max-width: 900px) { .feature-band { grid-template-columns: 1fr; } .feature-band > * { border-right: 0; border-bottom: 1px solid var(--line-soft); min-height: 240px; } }

/* ---------- tables */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin: 18px 0 14px; }
.toolbar .field { min-width: 150px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.input, select.input, textarea.input { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-height: 42px; color: var(--text); transition: border-color var(--t); width: 100%; }
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201, 164, 92, .15); }
textarea.input { min-height: 120px; resize: vertical; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search .input { padding-left: 36px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.tablewrap { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.data th { text-align: left; font: 600 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); white-space: nowrap; }
table.data th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
table.data th button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
table.data th[aria-sort="ascending"] button::after { content: "▲"; font-size: .6rem; color: var(--gold); }
table.data th[aria-sort="descending"] button::after { content: "▼"; font-size: .6rem; color: var(--gold); }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
table.data tbody tr { transition: background var(--t); }
table.data tbody tr:hover { background: rgba(201, 164, 92, .05); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .rank { font: 600 1rem var(--display); color: var(--muted); width: 56px; }
table.data tr.top1 .rank { color: #f2d48c; } table.data tr.top2 .rank { color: #cfd3d8; } table.data tr.top3 .rank { color: #d39a67; }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 34px; height: 28px; object-fit: cover; border: 1px solid var(--line-2); }
.who a { color: var(--text); font-weight: 600; }
.who a:hover { color: var(--gold-2); }
.state { padding: 48px 20px; text-align: center; color: var(--muted); }
.state h3 { color: var(--text); }
.skeleton { height: 14px; border-radius: 2px; background: linear-gradient(90deg, #1a1716 0%, #26221f 50%, #1a1716 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 22px; }
.podium .spot { border: 1px solid var(--line); background: var(--surface); padding: 18px; text-align: center; position: relative; color: inherit; display: block; transition: border-color var(--t), transform var(--t) var(--ease); }
.podium .spot:hover { border-color: var(--gold); transform: translateY(-2px); }
.podium .spot img { width: 92px; height: 76px; object-fit: cover; margin: 0 auto 10px; border: 1px solid var(--line-2); }
.podium .spot.first { padding-top: 30px; border-color: var(--line-2); background: linear-gradient(180deg, rgba(201, 164, 92, .1), var(--surface)); }
.podium .spot.first img { width: 116px; height: 96px; border-color: var(--gold); }
.podium .place { position: absolute; top: 10px; left: 12px; font: 600 1.4rem var(--display); color: var(--gold-2); }
.podium b { display: block; font: 600 1.1rem var(--display); }
.podium small { color: var(--muted); }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .podium .spot.first { order: -1; } }

/* ---------- tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { background: none; border: 0; padding: 14px 16px; color: var(--muted); cursor: pointer; font: 600 .82rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; position: relative; white-space: nowrap; transition: color var(--t); }
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { color: var(--gold-2); }
.tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--gold); }
[role="tabpanel"] { animation: fade 220ms var(--ease); }

/* ---------- dialog */
dialog.modal { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); padding: 0; border-radius: var(--r); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 40px 80px rgba(0, 0, 0, .8); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .7); }
dialog.modal[open] { animation: rise 220ms var(--ease); }
dialog.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
dialog.modal header h2 { font-size: 1.3rem; margin: 0; }
dialog.modal .mbody { padding: 22px; overflow-y: auto; }
dialog.modal footer { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: end; gap: 10px; }

/* ---------- notices & toast */
.demo-notice { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(21, 19, 18, .96); border: 1px solid var(--line-2); font-size: .78rem; color: var(--muted); max-width: calc(100vw - 32px); }
.demo-notice b { color: var(--gold-2); letter-spacing: .1em; font-size: .7rem; text-transform: uppercase; }
.demo-notice button { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; }
.demo-notice button:hover { color: var(--text); }
.demo-notice.min span { display: none; }
@media (max-width: 640px) {
  .demo-notice { right: 10px; bottom: 10px; max-width: 250px; font-size: .7rem; padding: 7px 10px; gap: 8px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 2%, rgba(10, 9, 9, .78) 45%, rgba(10, 9, 9, .55) 100%); }
  .hero .wrap { padding-top: 96px; }
}
.callout { border-left: 2px solid var(--gold); background: rgba(201, 164, 92, .06); padding: 14px 18px; color: #d9d0bf; font-size: .92rem; }
.callout.warn { border-color: var(--warn); background: rgba(217, 166, 78, .07); }
.callout.err { border-color: var(--err); background: rgba(220, 107, 86, .07); }
.toast-host { position: fixed; right: 16px; bottom: 72px; z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: end; }
.toast { background: var(--surface-2); border: 1px solid var(--line-2); padding: 12px 16px; max-width: 360px; box-shadow: var(--shadow); animation: rise 220ms var(--ease); font-size: .9rem; }

/* ---------- news / article */
.news-list { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.news-list .lead { grid-row: span 3; }
.news-list .lead .media { aspect-ratio: 16 / 10; }
.news-list .compact { flex-direction: row; }
.news-list .compact .media { aspect-ratio: auto; width: 150px; flex-shrink: 0; }
@media (max-width: 860px) { .news-list { grid-template-columns: 1fr; } .news-list .lead { grid-row: auto; } }
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: 1.6rem; margin-top: 1.6em; }
.article p, .article li { color: #d6cebf; font-size: 1.04rem; }
.article .meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- schedule */
.schedule { display: grid; grid-template-columns: 90px repeat(7, 1fr); border: 1px solid var(--line); background: var(--surface); font-size: .8rem; overflow-x: auto; }
.schedule > div { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 8px; min-height: 44px; }
.schedule .hd { background: var(--surface-2); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; font-size: .68rem; text-align: center; }
.schedule .slot { display: block; border-left: 2px solid var(--gold); padding: 3px 6px; margin-bottom: 4px; background: rgba(201, 164, 92, .08); color: var(--text); }
.schedule .slot.br { border-color: var(--ember-2); background: rgba(180, 69, 47, .12); }
.schedule .slot.dk { border-color: var(--info); background: rgba(143, 169, 201, .1); }
.sched-wrap { overflow-x: auto; }
.sched-wrap .schedule { min-width: 760px; }

/* ---------- forms / auth */
.auth { max-width: 460px; margin-inline: auto; }
.form-grid { display: grid; gap: 14px; }
.check { display: flex; gap: 10px; align-items: start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--gold); }
.help { font-size: .8rem; color: var(--dim); }
.err-text { color: var(--err); font-size: .82rem; min-height: 1em; }

/* ---------- steps / guide */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.step::before { content: counter(s, decimal-leading-zero); font: 600 1.6rem/1 var(--display); color: var(--gold); }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { color: var(--muted); padding: 7px 14px; font-size: .9rem; border-left: 2px solid transparent; margin-left: -1px; }
.toc a:hover, .toc a.active { color: var(--gold-2); border-left-color: var(--gold); }
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.tabs-v button { all: unset; cursor: pointer; display: flex; gap: 12px; align-items: baseline; padding: 11px 14px; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; transition: color var(--t), background var(--t), border-color var(--t), padding var(--t) var(--ease); }
.tabs-v button .num { font: 600 .8rem var(--display); color: var(--dim); transition: color var(--t); }
.tabs-v button:hover { color: var(--text); padding-left: 18px; }
.tabs-v button[aria-selected="true"] { color: var(--gold-2); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(201, 164, 92, .1), transparent); }
.tabs-v button[aria-selected="true"] .num { color: var(--gold); }
.tabs-v button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.guide-view { min-height: 420px; }
.guide-view > section { animation: rise 320ms var(--ease); }
.guide-layout > *, .split > *, .cols-2 > *, .cols-3 > *, .class-detail > * { min-width: 0; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } .toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; } .toc a { border: 1px solid var(--line); margin: 0 6px 6px 0; } }
.band-table { width: 100%; border-collapse: collapse; }
.band-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.band-table td:first-child { color: var(--gold-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; transition: transform var(--t); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--muted); }

/* ---------- profile */
.profile-head { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.profile-head img.face { width: 180px; aspect-ratio: 6 / 5; object-fit: cover; border: 1px solid var(--gold); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); }
.statgrid > div { background: var(--surface); padding: 16px; }
.statgrid b { display: block; font: 600 1.3rem var(--display); }
.statgrid span { font-size: .76rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 640px) { .profile-head { grid-template-columns: 1fr; } }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 90px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { font: 600 .72rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer a { display: block; color: var(--muted); padding: 4px 0; font-size: .9rem; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: .8rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- class accordion (greyed panels expand + gain colour) */
.cls-stage { height: calc(100svh - 69px); min-height: 600px; display: flex; flex-direction: column; padding-bottom: 14px; }
.cls-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding: 18px 0 14px; }
.cls-top h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
.cls-top .eyebrow { margin-bottom: 6px; }
.cls-accordion { flex: 1; display: flex; gap: 6px; padding: 0 var(--gut); min-height: 0; }
.cls-panel { position: relative; flex: 1 1 0; min-width: 64px; overflow: hidden; border: 1px solid var(--line); background: #000; isolation: isolate;
  transition: flex-grow 560ms var(--ease), border-color 300ms, box-shadow 300ms; }
.cls-panel .cls-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) brightness(.42) contrast(1.05);
  transform: scale(1.12); transition: filter 520ms var(--ease), transform 900ms var(--ease); }
.cls-fig { position: absolute; left: 50%; bottom: 0; height: 90%; aspect-ratio: 3 / 5; transform: translateX(-50%); z-index: -1; pointer-events: none;
  transition: left 560ms var(--ease), transform 560ms var(--ease), height 560ms var(--ease); }
.cls-fig img.keying { opacity: 0; }
.cls-fig img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(.5) contrast(1.05) drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 4%, #000 92%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, transparent 0, #000 4%, #000 92%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
  transition: filter 520ms var(--ease), transform 600ms var(--ease); }
.cls-panel:hover .cls-fig img, .cls-panel:focus-within .cls-fig img { filter: grayscale(.1) brightness(.95); transform: translateY(-8px) scale(1.04); }
.cls-panel.active .cls-fig { left: clamp(0px, 2%, 30px); transform: none; height: 98%; max-width: calc(100% - 500px); min-width: 240px; }
.cls-panel.active .cls-fig img { object-position: 50% 100%; }
.cls-panel.active .cls-fig img { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); transform: none; animation: figin 700ms var(--ease) both; }
@keyframes figin { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.cls-namerow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 6px; }
.cls-namerow .cls-name { margin: 0; }
.cls-face { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 1px solid var(--gold); flex-shrink: 0; }
.cls-face img { width: 100%; height: 100%; object-fit: cover; }
.cls-panel .cls-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 9, 9, .95) 5%, rgba(10, 9, 9, .15) 55%, rgba(10, 9, 9, .55)); transition: opacity 400ms; }
.cls-panel:hover, .cls-panel:focus-within { flex-grow: 1.9; border-color: var(--line-2); }
.cls-panel:hover .cls-bg, .cls-panel:focus-within .cls-bg { filter: grayscale(.15) brightness(.78); transform: scale(1.04); }
.cls-panel.active { flex-grow: 11; border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201, 164, 92, .35), var(--shadow); }
.cls-panel.active .cls-bg { filter: none; transform: scale(1); }
.cls-panel.active .cls-shade { background: linear-gradient(90deg, rgba(10, 9, 9, .1) 0%, rgba(10, 9, 9, .2) 36%, rgba(10, 9, 9, .9) 52%, rgba(10, 9, 9, .96) 100%), linear-gradient(0deg, rgba(10, 9, 9, .7), transparent 35%); }.cls-hit { position: absolute; inset: 0; width: 100%; background: none; border: 0; cursor: pointer; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 18px 6px; gap: 14px; }
.cls-vname { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 1.15rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: #cfc6b6; transition: color 300ms, letter-spacing 400ms var(--ease); }
.cls-panel:hover .cls-vname { color: var(--gold-2); letter-spacing: .2em; }
.cls-medal { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); filter: grayscale(1); transition: filter 400ms, transform 400ms var(--ease), border-color 300ms; flex-shrink: 0; }
.cls-medal img { width: 100%; height: 100%; object-fit: cover; }
.cls-panel:hover .cls-medal { filter: none; transform: scale(1.15); border-color: var(--gold); }
.cls-hit[hidden] { display: none; }
.cls-body { position: absolute; inset: 0; pointer-events: none; }
.cls-panel.active .cls-body { pointer-events: auto; }
.cls-info { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 480px); animation: fade 420ms var(--ease) 120ms both; }
.cls-hero { position: relative; }
.cls-portrait { position: absolute; left: clamp(20px, 5%, 64px); bottom: 110px; width: clamp(150px, 70%, 210px); border: 1px solid var(--gold); box-shadow: 0 30px 60px rgba(0, 0, 0, .8), 0 0 0 6px rgba(10, 9, 9, .6); animation: rise 520ms var(--ease) 200ms both; }
.cls-portrait img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.cls-card { padding: clamp(18px, 2.4vw, 32px); overflow-y: auto; display: flex; flex-direction: column; animation: slidein 460ms var(--ease) 160ms both; }
.cls-name { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 10px 0 6px; outline: none; }
.cls-card .lede { font-size: .98rem; margin-bottom: 10px; }
.cls-card .tabs [role="tab"] { padding: 11px 12px; font-size: .74rem; }
.cls-tab { padding-top: 14px; font-size: .93rem; }
.cls-tab p { color: #d6cebf; }
.statbars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 6px; font-size: .8rem; }
.statbars .bar { height: 4px; background: var(--surface-3); margin-top: 4px; }
.statbars .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); transform-origin: left; animation: grow 700ms var(--ease) both; }
/* Signature skills (client icons) + in-game style tooltip */
.sig { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0 16px; }
.sig-group { display: flex; flex-direction: column; gap: 5px; }
.sig-glabel { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sig-icons { display: flex; gap: 5px; }
.sig-icon { width: 40px; height: 40px; padding: 0; border: 1px solid #5a4a2e; background-color: #000; background-repeat: no-repeat; cursor: help;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); filter: saturate(.85); transition: transform 180ms var(--ease), filter 180ms, border-color 180ms, box-shadow 180ms; }
.sig-icon:hover, .sig-icon:focus-visible { filter: none; border-color: var(--gold-2); transform: translateY(-2px); box-shadow: 0 0 0 1px var(--gold), 0 6px 16px rgba(0, 0, 0, .6), 0 0 14px rgba(201, 164, 92, .35); outline: none; }
.skill-tip { position: fixed; z-index: 1000; max-width: min(320px, calc(100vw - 16px)); padding: 10px 12px 9px; pointer-events: none;
  background: rgba(8, 10, 14, .94); border: 1px solid #6d5a36; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8), 0 12px 30px rgba(0, 0, 0, .7);
  font: 400 .8rem/1.45 var(--body, system-ui, sans-serif); color: #e8e4da; animation: fade 140ms ease-out both; }
.skill-tip[hidden] { display: none; }
.skill-tip .tip-name { display: block; color: #f3d27a; font-size: .92rem; margin-bottom: 3px; }
.skill-tip .tip-meta { display: block; color: #9fc3e6; font-size: .74rem; }
.skill-tip .tip-desc { margin: 7px 0 6px; padding-top: 7px; border-top: 1px solid rgba(109, 90, 54, .6); }
.skill-tip .tip-foot { display: block; color: #8a8478; font-size: .66rem; }
@media (prefers-reduced-motion: reduce) { .skill-tip { animation: none; } .sig-icon { transition: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 900px) {
  .cls-stage { height: auto; min-height: 0; }
  .cls-accordion { flex-direction: column; gap: 6px; }
  .cls-panel { flex: none; height: 76px; transition: height 500ms var(--ease); }
  .cls-panel:hover, .cls-panel:focus-within { flex-grow: 0; }
  .cls-panel.active { height: auto; min-height: 0; }
  .cls-panel.active .cls-body { position: relative; inset: auto; }
  .cls-card { overflow: visible; }
  .cls-hit { flex-direction: row; justify-content: flex-start; padding: 0 16px; }
  .cls-vname { writing-mode: horizontal-tb; transform: none; font-size: 1rem; }
  .cls-info { position: relative; grid-template-columns: 1fr; }
  .cls-hero { height: 330px; }
  .cls-panel:not(.active) .cls-fig { display: none; }
  .cls-panel.active .cls-fig { left: 50%; transform: translateX(-50%); top: 0; bottom: auto; height: 330px; }
  .cls-portrait { bottom: 60px; width: 150px; }
  .cls-panel.active .cls-shade { background: linear-gradient(0deg, rgba(10, 9, 9, .96) 55%, rgba(10, 9, 9, .3)); }
}

/* ---------- flare: spotlight + develop (news) */
.spot { --mx: 50%; --my: 40%; position: relative; }
.spot .media img { filter: sepia(.55) saturate(.55) brightness(.72) contrast(1.05); transition: filter 600ms var(--ease), transform 900ms var(--ease); }
.spot:hover .media img, .spot:focus-visible .media img { filter: none; }
.spot .media { position: relative; }
.spot .media::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 226, 160, .22), transparent 60%); }
.spot:hover .media::after { opacity: 1; }

/* ---------- flare: gold ring draws around portraits (launch strip) */
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ring-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(8px, 1.6vw, 20px); }
.ring { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); text-align: center; font-size: .82rem; }
.ring .disc { position: relative; width: min(112px, 100%); aspect-ratio: 1; border-radius: 50%; padding: 3px; background: conic-gradient(var(--gold-2) var(--ring), var(--line) 0); transition: --ring 700ms var(--ease), transform 400ms var(--ease); }
.ring .disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(.85) brightness(.8); transition: filter 400ms; border: 2px solid var(--bg); }
.ring:hover .disc, .ring:focus-visible .disc { --ring: 360deg; transform: translateY(-4px); }
.ring:hover .disc img, .ring:focus-visible .disc img { filter: none; }
.ring b { color: var(--text); font: 600 .95rem var(--display); transition: color 300ms; }
.ring:hover b { color: var(--gold-2); }
@media (max-width: 760px) { .ring-row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- flare: light beam sweep (arenas) */
.beams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .beams { grid-template-columns: repeat(2, 1fr); } }
.df-times { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.df-times li { border: 1px solid var(--line); padding: 8px 0; text-align: center; font: 600 1.05rem var(--display); color: var(--gold-2); }
.beam { position: relative; overflow: hidden; min-height: 250px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: end; padding: 22px; color: var(--text); isolation: isolate; }
.beam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.35) saturate(.6); transition: filter 600ms var(--ease), transform 900ms var(--ease); }
.beam::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 9, 9, .95), rgba(10, 9, 9, .1) 70%); }
.beam::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; z-index: -1; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 223, 150, .28), transparent); }
.beam:hover img, .beam:focus-visible img, .beam[aria-selected="true"] img { filter: brightness(.85) saturate(1.05); transform: scale(1.05); }
.beam:hover::after, .beam:focus-visible::after { animation: sweep 900ms var(--ease); }
.beam:hover, .beam[aria-selected="true"] { border-color: var(--gold); color: var(--text); }
button.beam { font: inherit; text-align: left; background: #000; cursor: pointer; min-height: 210px; }
.beam[aria-selected="true"] { box-shadow: 0 0 0 1px var(--gold) inset, 0 12px 30px -12px rgba(201, 164, 92, .45); }
.beam[aria-selected="true"]::after { animation: sweep 1.1s var(--ease); }
.beam h3 { margin: 8px 0 4px; font-size: 1.35rem; }
.beam p { margin: 0; color: #cfc6b6; font-size: .9rem; }
@keyframes sweep { from { left: -60%; } to { left: 130%; } }
@media (max-width: 800px) { .beams { grid-template-columns: 1fr; } .beam { min-height: 170px; } }

/* ---------- war room grid (home) */
.warroom { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; }
.warroom .news-stack { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.warroom .news-stack .lead { grid-row: span 3; }
.warroom .news-stack .compact { flex-direction: row; }
.warroom .news-stack .compact .media { width: 110px; aspect-ratio: auto; flex-shrink: 0; }
.warroom .news-stack .compact h3 { font-size: 1rem; }
.board-card .tabs [role="tab"] { padding: 12px 10px; font-size: .7rem; }
.board-list { list-style: none; padding: 0; margin: 8px 0 0; }
.board-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); animation: rise 360ms var(--ease) both; }
.board-list li:nth-child(2) { animation-delay: 50ms; } .board-list li:nth-child(3) { animation-delay: 100ms; } .board-list li:nth-child(4) { animation-delay: 150ms; } .board-list li:nth-child(5) { animation-delay: 200ms; }
.hero-status { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; font-size: .82rem; color: var(--muted); }
.hero-status b { color: var(--text); font-weight: 600; }
@media (max-width: 1000px) { .warroom { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .warroom .news-stack { grid-template-columns: 1fr; } .warroom .news-stack .lead { grid-row: auto; } }

/* ---------- podium flare */
.podium .spot { animation: rise 520ms var(--ease) both; }
.podium .spot:nth-child(1) { animation-delay: 120ms; } .podium .spot:nth-child(3) { animation-delay: 220ms; }
.podium .spot.first { overflow: hidden; }
.podium .spot.first::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 224, 150, .18), transparent); animation: sweep 2.8s var(--ease) 600ms infinite; }
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -50%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
.btn.primary:hover::after { animation: sweep 700ms var(--ease); }

@media (max-width: 800px) { .mode-row { grid-template-columns: 1fr !important; } .mode-row > div:first-child { order: 0 !important; min-height: 200px !important; } }

/* ---------- view transitions */
#view { min-height: 60vh; }
#view.enter { animation: viewin 260ms var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heroin { from { opacity: 0; transform: scale(1.1); } to { opacity: 1; transform: scale(1.04); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- About page */
ul.ticks.plus li::before { background: rgba(201, 164, 92, .35); }
.about-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.about-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.about-manifesto p { color: #d6cebf; max-width: 62ch; }
.about-quote { margin: 26px 0 0; padding: 18px 22px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(201, 164, 92, .09), transparent 80%); }
.about-quote p { margin: 0; font: italic 500 1.12rem/1.55 var(--display); color: var(--gold-2); }
.about-ledger ul.ticks { margin-top: 8px; font-size: .93rem; }
.about-ledger hr.rule { margin: 18px 0; }
.pillars { display: flex; gap: 14px; margin-top: 26px; min-height: 430px; }
.pillar { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); display: flex; align-items: flex-end; isolation: isolate; outline: none;
  transition: flex-grow 620ms var(--ease), border-color 300ms, box-shadow 400ms; }
.pillar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) brightness(.42) contrast(1.1); transform: scale(1.08);
  transition: filter 700ms var(--ease), transform 1100ms var(--ease); }
.pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 9, 9, .97) 18%, rgba(10, 9, 9, .55) 55%, rgba(10, 9, 9, .15)); }
.pillar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--ember), var(--gold-2), var(--ember)); transform: scaleX(0); transition: transform 620ms var(--ease); }
.pillar-body { padding: 22px; width: 100%; }
.pillar h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 12px 0 6px; transition: color 300ms; }
.pillar-lede { color: #cfc6b6; margin: 0; font-size: .95rem; max-width: 48ch; }
.pillar-more { max-height: 0; opacity: 0; overflow: hidden; transform: translateY(10px); font-size: .92rem; color: #e4dccd;
  transition: max-height 620ms var(--ease), opacity 400ms, transform 500ms var(--ease), margin 400ms; }
.pillar:hover, .pillar:focus-visible, .pillar:focus-within { flex-grow: 1.7; border-color: var(--gold); box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 164, 92, .25); }
.pillar:hover > img, .pillar:focus-visible > img { filter: none; transform: scale(1); }
.pillar:hover::after, .pillar:focus-visible::after { transform: scaleX(1); }
.pillar:hover h3, .pillar:focus-visible h3 { color: var(--gold-2); }
.pillar:hover .pillar-more, .pillar:focus-visible .pillar-more { max-height: 220px; opacity: 1; transform: none; margin-top: 12px; }
.about-why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.about-why h2 { margin-bottom: 8px; }
.about-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: step; }
.about-steps li { counter-increment: step; border: 1px solid var(--line); padding: 16px; background: rgba(10, 9, 9, .35); transition: border-color 300ms, transform 400ms var(--ease); }
.about-steps li::before { content: "0" counter(step); display: block; font: 600 1.6rem/1 var(--display); color: var(--gold-deep); margin-bottom: 8px; transition: color 300ms; }
.about-steps li:hover { border-color: var(--gold); transform: translateY(-3px); }
.about-steps li:hover::before { color: var(--gold-2); }
.about-steps b { display: block; font: 600 1.05rem var(--display); margin-bottom: 4px; }
.about-steps span { color: var(--muted); font-size: .88rem; }
.about-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
@media (max-width: 900px) {
  .about-split, .about-why { grid-template-columns: 1fr; }
  .pillars { flex-direction: column; min-height: 0; }
  .pillar { min-height: 260px; flex: none; }
  .pillar:hover, .pillar:focus-visible, .pillar:focus-within { flex-grow: 0; }
  .pillar > img { filter: grayscale(.3) brightness(.5); }
  .pillar-more { max-height: none; opacity: 1; transform: none; margin-top: 12px; }
  .about-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pillar, .pillar > img, .pillar-more, .pillar::after, .about-steps li { transition: none; } }

/* About: no pay-to-win banner */
.about-p2w { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--gold-deep); outline: none;
  background: radial-gradient(120% 140% at 0% 0%, rgba(180, 69, 47, .22), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(201, 164, 92, .16), transparent 55%), var(--surface);
  box-shadow: 0 0 0 1px rgba(201, 164, 92, .12), 0 24px 60px rgba(0, 0, 0, .5); transition: border-color 300ms, box-shadow 400ms; }
.about-p2w::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 30%; left: -45%; z-index: -1; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(227, 200, 135, .12), transparent); }
.about-p2w:hover, .about-p2w:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(201, 164, 92, .35), 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(201, 164, 92, .12); }
.about-p2w:hover::after, .about-p2w:focus-visible::after { animation: sweep 1100ms var(--ease); }
.about-p2w h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 0 0 10px; background: linear-gradient(90deg, var(--gold-2), #fff3d6 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-p2w-head p:last-child { color: #d6cebf; margin: 0; max-width: 52ch; }
.about-p2w-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about-p2w-points li { border: 1px solid var(--line); background: rgba(10, 9, 9, .45); padding: 12px 16px 12px 44px; position: relative; transition: border-color 300ms, transform 400ms var(--ease); }
.about-p2w-points li::before { content: "✓"; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem;
  color: var(--bg); background: var(--gold); }
.about-p2w-points li:hover { border-color: var(--gold); transform: translateX(4px); }
.about-p2w-points b { display: block; font: 600 1rem var(--display); }
.about-p2w-points span { color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .about-p2w { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .about-p2w::after { animation: none !important; } .about-p2w-points li { transition: none; } }
/* ---------- pre-launch states, emblem slot, launch strip */
.coming { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 44px 20px; margin-top: 8px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .02); color: var(--muted); }
.coming svg { color: var(--gold-2); }
.coming h3 { margin: 6px 0 0; color: var(--text); }
.coming p { margin: 0; max-width: 46ch; }
.emblem { display: inline-grid; place-items: center; flex: none; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .03); overflow: hidden; vertical-align: middle; }
.emblem img { width: 100%; height: 100%; object-fit: contain; display: block; }
.launch-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.launch-strip .launch-date { display: block; margin-top: 4px; font-family: var(--display); font-size: 1.3rem; color: var(--gold-2); }
.nav a { white-space: nowrap; }
@media (max-width: 1360px) { .nav a { padding: 8px 8px; font-size: .84rem; } .nav a[aria-current="page"]::after { left: 8px; right: 8px; } }

/* store packs */
.cards.packs { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
button.card.pack { text-align: left; font: inherit; cursor: pointer; }
button.card.pack:disabled { cursor: default; opacity: .9; transform: none; }
button.card.pack[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

/* ---------- character profile: equipment window, game-style tooltip, combat card, achievements */
.pf-layout { display: grid; grid-template-columns: minmax(0, 379px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 860px) { .pf-layout { grid-template-columns: 1fr; } .eqwrap { justify-self: center; } }
.pf-side { display: grid; gap: 20px; }
.pf-hint { font-size: .82rem; margin-top: 10px; }
.pf-online { display: inline-flex; vertical-align: middle; }
.pf-guild { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-size: 1.15rem; }
.eqwrap { width: 100%; max-width: 379px; }
.eqwin { position: relative; width: 100%; background: #14110e; border: 1px solid var(--line-2); overflow: visible; }
.eqwin.nobg { background: linear-gradient(180deg, #1d1915, #100e0c); }
.eq-bg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: auto; pointer-events: none; }
.eq-slot, .eq-empty { position: absolute; padding: 0; margin: 0; }
.eq-empty { border: 1px dashed rgba(201, 164, 92, .12); pointer-events: none; }
.eq-slot { display: grid; place-items: center; background: rgba(0, 0, 0, .35); border: 1px solid rgba(201, 164, 92, .28); cursor: pointer; overflow: hidden; border-radius: 2px; }
.eq-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.eq-slot.graded { border-color: var(--g); box-shadow: inset 0 0 10px -1px var(--g), 0 0 9px -2px var(--g); }
.eq-slot:hover, .eq-slot:focus-visible { border-color: var(--gold-2); outline: 2px solid var(--gold-2); outline-offset: 1px; z-index: 2; }
.eq-ph { font: 700 .6rem/1 var(--body); color: var(--dim); letter-spacing: .04em; text-transform: uppercase; }
.eq-plus { position: absolute; right: 1px; bottom: 0; font: 700 .68rem/1 var(--body); color: #ffe08c; text-shadow: 0 0 3px #000, 0 0 3px #000, 1px 1px 0 #000; }
.eq-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.eq-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.eq-slot.graded .eq-fx { box-shadow: inset 0 0 10px -1px var(--g); }
.eq-plus { z-index: 2; }
.eqwin.gl .eq-slot:hover, .eqwin.gl .eq-slot:focus-visible { z-index: auto; }
.eqwin.gl .eq-slot.gl-on img, .eqwin.gl .eq-slot.gl-on .eq-ph { visibility: hidden; }
.eq-fallback { display: grid; grid-template-columns: repeat(auto-fill, 56px); gap: 8px; padding: 12px; background: linear-gradient(180deg, #1d1915, #100e0c); border: 1px solid var(--line-2); }
.eq-fallback .eq-slot { position: relative; width: 56px; height: 56px; }
/* item tooltip: client layout (ui_tooltip.txt: font 2 = 10px bold, lineheight 16, margin 10x6, frame = etc_01 idx 66 9-slice) */
.eq-tip, .iv-tip { box-sizing: border-box; min-width: 262px; width: max-content; max-width: min(420px, calc(100vw - 16px)); padding: 6px 10px 7px; color: #fff;
  font: 700 11px/16px "Malgun Gothic", "Segoe UI", Tahoma, Verdana, sans-serif; background: rgba(14, 12, 12, .95); border: 5px solid transparent; border-image: var(--tt-frame, none) 5 fill / 5px stretch; }
.eq-tip { position: fixed; z-index: 90; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.eq-tip[hidden] { display: none; }
.tt-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.iv-tip { width: auto; min-width: 0; }
.tt-l { min-height: 16px; }
.tt-l.c { text-align: center; }
.tt-gap { min-height: 4px; height: 4px; }
.tt-seg { display: inline-block; }
.tt-name { font-size: 13px; }
.tt-grade { font-size: 11px; }
.tt-sep { margin: 1px 0; line-height: 0; max-width: 100%; }
.tt-sep img { display: block; width: 100%; height: 8px; }
.pf-table th, .pf-table td { padding: 8px 10px; }
.pf-table td { font-variant-numeric: tabular-nums; }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); margin-top: 16px; }
.pf-facts > div { background: var(--surface); padding: 12px 14px; }
.pf-facts b { display: block; font: 600 1.1rem var(--display); }
.pf-facts span { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.ach-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ach { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); opacity: .55; }
.ach.on { opacity: 1; }
.ach-ring { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem var(--display); color: #1a1409;
  background: radial-gradient(circle at 35% 30%, #f5e2ab, #b08a3e 70%); box-shadow: 0 0 0 3px #2a2116, 0 0 0 4px var(--gold-deep); }
.ach.t10 .ach-ring { background: radial-gradient(circle at 35% 30%, #e6c8ff, #8a3fc2 72%); color: #fff; box-shadow: 0 0 0 3px #22162e, 0 0 0 4px #7e46b0, 0 0 16px rgba(200, 107, 255, .35); }
.ach:not(.on) .ach-ring { filter: grayscale(1) brightness(.6); box-shadow: 0 0 0 3px #2a2116; }
.ach-n { display: block; font: 600 1.5rem/1.1 var(--display); }
.ach span:not(.ach-ring) { color: var(--muted); font-size: .8rem; }
.mychars { display: grid; gap: 10px; }
.mychar { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.mychar img.face { width: 56px; height: 46px; object-fit: cover; border: 1px solid var(--gold-deep); }
@media (max-width: 560px) { .mychar { grid-template-columns: 56px 1fr; } .mychar .check { grid-column: 1 / -1; } }
.pf-layout > *, .pf-side > * { min-width: 0; } .pf-table { min-width: 0; }

/* ---------- item viewer dialog (tooltip + 3D view) */
dialog.modal.iv-dialog { width: min(760px, calc(100vw - 24px)); }
.iv { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 640px) { .iv { grid-template-columns: 1fr; } }
.iv-stage { position: relative; aspect-ratio: 1 / 1; min-height: 260px; width: 100%; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r);
  background: radial-gradient(circle at 50% 42%, #2a2420 0%, #16120f 60%, #0d0b0a 100%); overflow: hidden; }
.iv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.iv-canvas:active { cursor: grabbing; }
.iv-canvas:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.iv-icon { width: 192px; height: 192px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7)); }
.iv-status { margin: 8px 0 0; font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.iv-actions { display: flex; gap: 8px; margin-top: 8px; }
.iv-actions:empty { display: none; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .72rem; }
.btn.sm[aria-pressed="true"] { border-color: var(--gold); background: rgba(201, 164, 92, .12); }

.pf-preview { margin: 18px 0 -4px; padding: 10px 16px; border: 1px solid rgba(255, 198, 41, .35); border-left: 3px solid #ffc629; background: rgba(255, 198, 41, .07); border-radius: 4px; color: var(--muted, #b9b2a8); font-size: 14px; }
.pf-preview b { color: #ffc629; font-weight: 600; }
