/* ChessGods — app styles · "WAR TABLE" theme (warm walnut & brass) */
:root {
  --bg: #161009; --panel: #241b10; --panel2: #332718; --line: #4a3a22;
  --text: #f0e6d2; --sec: #c0b090; --muted: #8a7a5c;
  --gold: #e2b264; --gold2: #f5d9a8; --gold-deep: #8a6a35; --green: #3fae62; --red: #ff7847;
  --sq-light: #a08b5f; --sq-dark: #4a3823;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; min-height: 100vh; }

/* ---------- header (legacy pill bar — still used by test-*.html) ---------- */
header:not(.pnx) { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(22, 16, 9, .96); z-index: 20; flex-wrap: wrap; }
.logo { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.logo em { color: var(--gold); font-style: normal; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.chip { display: flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; white-space: nowrap; }
.chip b { font-weight: 700; }
.chip .sub { color: var(--muted); font-size: 11.5px; }
.pbar { width: 54px; height: 6px; background: #171006; border-radius: 3px; overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--gold); }
nav { display: flex; gap: 6px; }
header:not(.pnx) .navbtn { background: transparent; border: 1px solid transparent; color: var(--sec); padding: 7px 14px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 600; }
header:not(.pnx) .navbtn:hover { color: var(--text); }
header:not(.pnx) .navbtn.active { background: var(--panel); border-color: var(--line); color: var(--text); }

/* ---------- header · Pantheon (2026-09-13, from design/mockups/navbar-redesigns.html D) ---------- */
header.pnx { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 26px; height: 70px; padding: 0 28px;
  background: radial-gradient(1100px 110px at 16% -40%, rgba(226, 178, 100, .16), transparent 62%), linear-gradient(180deg, #1a1309, #120d06);
  border-bottom: 1px solid var(--line); }
header.pnx::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(226, 178, 100, .3), transparent); }
.pnx-brand { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.pnx-word { font-family: Georgia, 'Times New Roman', serif; font-variant: small-caps; font-size: 24px; letter-spacing: 3px; font-weight: 700; }
.pnx-word em { color: var(--gold); font-style: normal; }
.pnx-kicker { font-size: 8.5px; letter-spacing: 4px; color: var(--muted); margin-top: 5px; text-transform: uppercase; }
.pnx-nav { margin: 0 auto; display: flex; gap: 8px; align-items: stretch; align-self: stretch; min-width: 0; }
header.pnx .navbtn { flex: 0 1 82px; min-width: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; border-radius: 0; padding: 0; cursor: pointer; position: relative; color: var(--muted); overflow: hidden; }
header.pnx .navbtn .ic { display: grid; place-items: center; color: #8a7a5c; opacity: .75; }
header.pnx .navbtn .ic svg { display: block; width: 17px; height: 17px; }
header.pnx .navbtn .lb { font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header.pnx .navbtn:hover { color: var(--text); }
header.pnx .navbtn:hover .ic { opacity: 1; }
header.pnx .navbtn.active { color: var(--text); }
header.pnx .navbtn.active .ic { color: var(--gold); opacity: 1; filter: drop-shadow(0 0 7px rgba(226, 178, 100, .8)); }
header.pnx .navbtn.active .lb { color: var(--gold); }
header.pnx .navbtn.active::before { content: ""; position: absolute; bottom: 7px; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
header.pnx .navbtn.active::after { content: "◆"; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); font-size: 6px; color: var(--gold); }
.pnx-devsep { width: 1px; height: 20px; background: var(--line2); align-self: center; margin: 0 2px; }
header.pnx .navbtn.pnx-dev { width: 64px; text-decoration: none; }
header.pnx .navbtn.pnx-dev .ic svg { width: 15px; height: 15px; }
header.pnx .navbtn.pnx-dev .lb { letter-spacing: 1px; font-size: 10px; }
.pnx-stats { display: flex; align-items: center; gap: 18px; white-space: nowrap; flex: none; }
.pnx-ringwrap { display: flex; align-items: center; gap: 9px; }
.pnx-ring { position: relative; width: 38px; height: 38px; flex: none; }
.pnx-ring svg { transform: rotate(-90deg); display: block; }
.pnx-ring .trk { fill: none; stroke: #2a2013; stroke-width: 3; }
.pnx-ring .arc { fill: none; stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray .5s; }
.pnx-ring .arc.gold { stroke: var(--gold); }
.pnx-ring .arc.star { stroke: var(--star); }
.pnx-ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; }
.pnx-ring .val.star { font-size: 12px; color: var(--star); }
.pnx-ringwrap .a { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.pnx-ringwrap .a b { font-variant-numeric: tabular-nums; }
.pnx-ringwrap .a i { font-style: normal; font-weight: 400; color: var(--muted); }
.pnx-ringwrap .b { display: block; font-size: 9px; color: var(--muted); letter-spacing: .4px; min-height: 11px; font-variant-numeric: tabular-nums; }
.pnx-ringwrap.low .arc.gold { stroke: var(--red); }
.pnx-ringwrap.low .val { text-shadow: 0 0 10px rgba(255, 120, 71, .8); }
.pnx-seal { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 15px; cursor: pointer;
  background: radial-gradient(circle at 34% 30%, #3a2d18, #1d150c); border: 1px solid rgba(226, 178, 100, .55); border-radius: 50%;
  box-shadow: 0 0 16px -3px rgba(226, 178, 100, .65); }
.pnx-seal .n { position: absolute; top: -5px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center;
  background: var(--gold); color: #1c1305; border-radius: 9px; font-size: 10px; font-weight: 800; font-style: normal; }
.pnx-seal.none { border-color: var(--line); box-shadow: none; opacity: .55; }
.pnx-seal.none .n { background: var(--panel2); color: var(--muted); }
.pnx-coin { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.pnx-coin b { color: var(--text); font-variant-numeric: tabular-nums; }
.pnx-coin.gem b { color: #8fc2ff; }
.pnx-coin.shard b { color: #b9a3f7; }
.pnx-snd { display: flex; align-items: center; gap: 4px; background: none; border: none; font-size: 15px; cursor: pointer; opacity: .85; }
.pnx-snd b { font-size: 10px; color: var(--muted); font-weight: 600; }
.pnx-snd:not(.on) { opacity: .45; }
.pnx-seal svg { width: 17px; height: 17px; }
.pnx-snd svg { width: 15px; height: 15px; display: block; }

/* ---------- vector icon system (Set E "Minimal Engine", js/icons.js) ---------- */
[data-ic] { display: inline-grid; place-items: center; vertical-align: -3px; line-height: 1; }
svg.icn { flex: none; }
.pnx-word [data-ic] { color: var(--gold); margin-right: 7px; vertical-align: -2px; }
.alt-packobj .crown svg { width: 52px; height: 52px; }
.alt-mini svg { width: 26px; height: 26px; }
.wbp-hd i svg, .cpanel-hd i svg { width: 14px; height: 14px; }
.ban-sigil svg { width: 14px; height: 14px; }
.dv-gems .gic svg { width: 24px; height: 24px; }
.ts-cup svg { width: 46px; height: 46px; }
.pk-back .dm svg { width: 40px; height: 40px; }
.begin .b-orn svg { width: 15px; height: 15px; }
.axtag svg { vertical-align: -2px; }
/* --- header compaction ladder (2026-09-16): the old 1650/1080 tiers left dead zones
 * (overlap from ~1730 down to ~1080). Each tier below was swept in-browser for its true
 * min viewport width (pessimistic chip strings); breakpoints = min + ~30px. Tiers, tightest→widest:
 * T1 1701–1820 · T2 1541–1700 · T3 1421–1540 · T4 1341–1420 · T5 1171–1340 ·
 * T6 1081–1170 · T7 901–1080 · T8 761–900 · T9 581–760 · T10 471–580 · T11 ≤470 */
@media (max-width: 1820px) {
  header.pnx { gap: 16px; padding: 0 18px; }
  .pnx-kicker { display: none; }
  .pnx-nav { gap: 2px; }
  header.pnx .navbtn { flex-basis: 66px; }
  .pnx-stats { gap: 12px; }
}
@media (max-width: 1700px) {
  header.pnx .navbtn { flex-basis: 62px; min-width: 52px; }
  .pnx-stats { gap: 8px; }
  .pnx-ringwrap .b { display: none; }             /* "+1 in 42m" / "next pack" sublines */
}
@media (max-width: 1540px) {
  .pnx-coin.elo small { display: none; }          /* "unranked · n/30" */
  .pnx-snd b { display: none; }                   /* On / Full → icon-only */
}
@media (max-width: 1420px) {
  header.pnx { gap: 12px; }
  .pnx-coin.elo span { display: none; }           /* tier word (Recruit…Warlord) */
}
@media (max-width: 1340px) {
  .pnx-word { font-size: 0; letter-spacing: 0; }  /* brand → sigil only */
  .pnx-word [data-ic] { margin-right: 0; }
}
@media (max-width: 1170px) {
  header.pnx .navbtn { flex-basis: 46px; min-width: 44px; }
  header.pnx .navbtn .lb { display: none; }       /* nav → icons + tooltips */
  header.pnx .navbtn.active::before { left: 8px; right: 8px; }
  .pnx-nav { gap: 4px; }
  .pnx-coin.shard b { display: none; }
}
@media (max-width: 1080px) {
  .pnx-ringwrap .pnx-rw { display: none; }        /* rings → icon only */
  .acct-chip b, .acct-chip i { display: none; }   /* account chip → dot */
}
@media (max-width: 900px) {
  .pnx-stats { gap: 6px; }
  .pnx-stats .pnx-ringwrap:nth-of-type(2) { display: none; }  /* stars ring */
  .pnx-coin.shard { display: none; }
  .pnx-snd { display: none; }                     /* sound/FX toggles (board HUD keeps mute) */
}
@media (max-width: 760px) {
  .pnx-nav { gap: 1px; }
  header.pnx .navbtn { flex-basis: 38px; min-width: 34px; }
  header.pnx .navbtn .ic svg { width: 15px; height: 15px; }
  header.pnx .navbtn.pnx-dev, .pnx-devsep { display: none; }  /* dev console off tiny screens */
}
@media (max-width: 580px) {
  header.pnx { padding: 0 12px; gap: 10px; }
  header.pnx .navbtn { flex-basis: 30px; min-width: 28px; }
  .pnx-stats .pnx-ringwrap { display: none; }     /* energy ring joins the cut */
  .pnx-coin.elo b { font-size: 12px; }
}
@media (max-width: 470px) {
  header.pnx { padding: 0 8px; gap: 8px; }
  .pnx-word { display: none; }                    /* brand sigil hidden — nav is the row */
  .pnx-nav { gap: 0; }
  header.pnx .navbtn { flex-basis: 24px; min-width: 22px; }
  header.pnx .navbtn .ic svg { width: 13px; height: 13px; }
  header.pnx .navbtn.active::before { left: 4px; right: 4px; }
  #chip-packs { display: none; }
}

/* ---------- layout ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 22px 18px 60px; }
.view { display: none; }
.view.active { display: block; }
h2.vt { margin: 4px 0 4px; font-size: 24px; }
p.vs { margin: 0 0 18px; color: var(--sec); font-size: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.btn { background: var(--panel2); border: 1px solid #6a5232; color: var(--text); padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.btn:hover { filter: brightness(1.15); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.note { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* ---------- lobby ---------- */
.setup { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
@media (max-width: 900px) { .setup { grid-template-columns: 1fr; } }
.bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.botcard { background: var(--panel2); border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; }
.botcard:hover { border-color: #8a6a35; }
.botcard.sel { border-color: var(--gold); box-shadow: 0 0 12px rgba(226, 178, 100, .25); }
.botcard h3 { margin: 0 0 2px; font-size: 16.5px; }
.botcard .rating { color: var(--gold); font-weight: 700; font-size: 13px; }
.botcard p { margin: 8px 0 0; color: var(--sec); font-size: 12.5px; line-height: 1.45; }
.colorrow { display: flex; gap: 10px; margin: 14px 0; }
.colorbtn { flex: 1; padding: 12px; text-align: center; background: var(--panel2); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; }
.colorbtn.sel { border-color: var(--gold); }
.rewardline { margin: 12px 0 0; font-size: 13.5px; color: var(--sec); }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.statgrid .cell { background: var(--panel2); border-radius: 9px; padding: 8px 12px; font-size: 13px; color: var(--sec); }
.statgrid .cell b { color: var(--text); display: block; font-size: 17px; }

/* ---------- game ---------- */
#view-game .gamewrap { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.boardcol { flex: 0 1 auto; padding: 16px; border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.07) 0 2px, rgba(0,0,0,0) 2px 9px),
    linear-gradient(135deg, #41311d, #241a0e 60%, #191207);
  border: 1px solid #8a6a35;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .35);
}
#board { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); width: min(calc(100dvh - 350px), calc(100vw - 520px), 800px); min-width: 280px; aspect-ratio: 1; border: 2px solid rgba(138, 106, 53, .65); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 26px 70px -18px rgba(0, 0, 0, .95); user-select: none; container-type: inline-size; }
#board::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 58%, rgba(10, 6, 2, .40) 100%); }
.sq { position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; min-width: 0; min-height: 0; overflow: hidden; }
.sq.light { background: var(--sq-light); }
.sq.dark { background: var(--sq-dark); }
.sq.center::after { content: ""; position: absolute; inset: 0; background: rgba(255, 181, 74, .09); pointer-events: none; }
.sq.lastmove::before { content: ""; position: absolute; inset: 0; background: rgba(226, 178, 100, .20); }
.sq.selected::before { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--gold); }
.sq.check::before { content: ""; position: absolute; inset: 0; background: rgba(255, 60, 60, .3); animation: pulseW 1s infinite; }
.glyph { font-size: clamp(16px, 10.2cqi, 56px); line-height: 1; font-family: "Segoe UI Symbol", serif; z-index: 2; flex: none; }
/* ---------- piece badges ---------- */
/* ---------- on-board piece readout ---------- */
.ebadge { display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: rgba(20,14,8,.88); border: 1.5px solid var(--ec, #9aa0b5);
  box-shadow: 0 0 5px -1px var(--ec, #9aa0b5); color: var(--ec, #9aa0b5);
  vertical-align: -3px; }
.ebadge svg { width: 11px; height: 11px; display: block; }
.sq .ebadge { position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
  z-index: 4; pointer-events: none; }
.pl { position: absolute; top: 3px; height: 17px; border-radius: 4px; background: rgba(20,14,8,.88);
  display: flex; align-items: center; justify-content: center; gap: 2px; z-index: 4; }
.pl.atk { left: 3px; } .pl.def { right: 3px; }
.pl .ic { width: 11px; height: 11px; }
.pl b { font-size: 11px; font-weight: 800; line-height: 1; }
.pl.atk b { color: #ff5a4e; }
.pl.def b { color: #b8bcc4; }
.hpbar { position: absolute; left: 8px; right: 8px; bottom: 9px; height: 4px; border-radius: 2px;
  background: rgba(13,10,8,.8); z-index: 3; pointer-events: none; }
.hpbar i { display: block; height: 100%; border-radius: 2px; background: #7fd87f; }
.hpn { position: absolute; left: 50%; transform: translateX(-50%); bottom: 2px; font-size: 10px;
  font-weight: 800; color: #7fd87f; z-index: 4; }
.dmg { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); color: #ff8a8a;
  font-weight: 800; font-size: 15px; z-index: 6; pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,.85); animation: dmgpop 1.05s ease-out forwards; }
@keyframes dmgpop { 0% { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.7); }
  25% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.15); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(1); } }
.pl.atk b { font-size: 12px; }
.glyph.pw { color: #f6ecd2; text-shadow: 0 0 1px #2a1f10, 1px 1px 0 #3a2c16, -1px -1px 0 #3a2c16, 1px -1px 0 #3a2c16, -1px 1px 0 #3a2c16, 0 2px 0 #2a1f10, 0 3px 3px rgba(0, 0, 0, .45), 0 7px 10px rgba(0, 0, 0, .45); }
.glyph.pb { color: #17110a; text-shadow: 0 0 1px #d8ae62, 1px 1px 0 #d8ae62, -1px -1px 0 #d8ae62, 1px -1px 0 #d8ae62, -1px 1px 0 #d8ae62, 0 2px 0 #6b5228, 0 3px 3px rgba(0, 0, 0, .5), 0 7px 10px rgba(0, 0, 0, .5); }
.frame { position: absolute; inset: 3px; border-radius: 4px; pointer-events: none; z-index: 1; }
.frame.own {
  background:
    linear-gradient(#e2b264, #e2b264) left 0 top 0 / 16px 2.5px,
    linear-gradient(#e2b264, #e2b264) left 0 top 0 / 2.5px 16px,
    linear-gradient(#e2b264, #e2b264) right 0 top 0 / 16px 2.5px,
    linear-gradient(#e2b264, #e2b264) right 0 top 0 / 2.5px 16px,
    linear-gradient(#e2b264, #e2b264) left 0 bottom 0 / 16px 2.5px,
    linear-gradient(#e2b264, #e2b264) left 0 bottom 0 / 2.5px 16px,
    linear-gradient(#e2b264, #e2b264) right 0 bottom 0 / 16px 2.5px,
    linear-gradient(#e2b264, #e2b264) right 0 bottom 0 / 2.5px 16px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 3px rgba(226, 178, 100, .4));
}
@keyframes pulseW { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.sq .dot { position: absolute; width: 26%; height: 26%; border-radius: 50%; background: rgba(24, 16, 6, .5); z-index: 3; pointer-events: none; box-shadow: 0 0 0 1.5px rgba(226, 178, 100, .65); }
.sq .cap { position: absolute; inset: 5%; border-radius: 50%; border: 3px solid rgba(255, 120, 71, .9); z-index: 3; pointer-events: none; }
.coord { position: absolute; font-size: 10px; color: #cdb98b; z-index: 2; }
.coord.file { right: 3px; bottom: 1px; }
.coord.rank { left: 3px; top: 1px; }
.gside { flex: 1 1 260px; min-width: 250px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- game · "THE ARENA" (gameboard-redesigns.html §F, shipped 2026-09-16) ----------
 * board is the centerpiece; identity bars pinned to its top-left/bottom-left corners,
 * GOD'S HAND in the clock slot; VS cards slide in from top/bottom, hold, slide back out. */
.arena { display: flex; align-items: stretch; min-height: calc(100dvh - 230px); }
.a-stage { flex: 1; min-width: 0; display: grid; place-items: center; padding: 68px 40px; overflow: hidden;
  background: radial-gradient(900px 480px at 50% 42%, rgba(226, 178, 100, .07), transparent 70%),
              linear-gradient(180deg, #120d07, #0b0805); border-radius: 16px; }
.a-bwrap { position: relative; width: min(calc(100dvh - 350px), calc(100vw - 520px), 800px); min-width: 280px; container-type: inline-size; }
.a-bwrap > #board { width: 100%; }
.a-bar { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; z-index: 6; }
.a-bar.foe { top: -56px; }
.a-bar.you { bottom: -56px; }
.a-bar .av { width: 40px; height: 40px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: #241a0d; border: 1px solid var(--line2); font-family: "Segoe UI Symbol", serif; font-size: 21px; }
.a-bar .av.fb { color: #2a1d10; text-shadow: 0 0 1px #d8ae62; }
.a-bar .av.fw { color: var(--text); }
.a-bar .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.a-bar .nm { font-size: 13.5px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }
.a-bar .rt { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-bar .a-end { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 12px; }
.a-bar .state { font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.a-bar #g-status { font-size: 10.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; padding: 0;
  background: none; border: none; border-radius: 0; color: var(--gold); white-space: nowrap; }
.tray2 { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; }
.tray2 span { font-family: "Segoe UI Symbol", serif; font-size: 15px; line-height: 1; opacity: .85; }
.tray2 span.w { color: var(--text); }
.tray2 span.b { color: #2a1d10; text-shadow: 0 0 1px #d8ae62; }
.tray2 .none { font-size: 9px; letter-spacing: 1.8px; color: #5c503c; font-style: normal; }
.gh { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 13px;
  background: rgba(30, 21, 11, .8); cursor: pointer; flex: none; }
.gh .sw { width: 28px; height: 15px; flex: none; border-radius: 999px; background: #1c130a; border: 1px solid var(--line2); position: relative; }
.gh .sw::after { content: ""; position: absolute; top: 1px; left: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); transition: left .25s, right .25s; }
.gh b { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.gh.on { border-color: var(--gold); background: rgba(46, 34, 16, .85); box-shadow: 0 0 18px -4px rgba(226, 178, 100, .6); }
.gh.on .sw { background: #3a2a10; border-color: var(--gold); }
.gh.on .sw::after { left: auto; right: 1px; background: var(--gold); box-shadow: 0 0 7px rgba(226, 178, 100, .9); }
.gh.on b { color: var(--gold); }
/* the VS ceremony — foe card slides down from above, yours up from below, hold, back out */
.a-vs { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; pointer-events: none; visibility: hidden; }
.a-vs.play { visibility: visible; }
.a-vstack { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.a-vcard { display: flex; align-items: stretch; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .85);
  background: rgba(22, 16, 9, .94); border: 1px solid var(--line2); }
.a-vcard .fig { width: 60px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); font-family: "Segoe UI Symbol", serif; font-size: 32px; }
.a-vcard.foe .fig { color: #2a1d10; text-shadow: 0 0 1px #d8ae62; }
.a-vcard.you .fig { color: var(--text); }
.a-vcard .tx { padding: 9px 16px 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.a-vcard .n { font-size: 13.5px; font-weight: 700; letter-spacing: .4px; }
.a-vcard .d { font-size: 9.5px; letter-spacing: 1.8px; color: var(--muted); text-transform: uppercase; }
.a-vcard .d b { color: var(--gold); }
.a-vschip { padding: 5px 16px; border-radius: 8px; background: rgba(10, 7, 4, .88); border: 1px solid var(--line2);
  font-family: Georgia, serif; letter-spacing: 3px; font-size: 14px; color: var(--text); }
.a-vs.play .a-vcard.foe { animation: vsFoe 4.6s both; }
.a-vs.play .a-vcard.you { animation: vsYou 4.6s both; }
.a-vs.play .a-vschip { animation: vsChip 4.6s both; }
@keyframes vsFoe {
  0% { transform: translateY(-52dvh); opacity: 0; animation-timing-function: cubic-bezier(.16, .75, .28, 1); }
  3% { opacity: 1; }
  26%, 72% { transform: translateY(0); opacity: 1; animation-timing-function: cubic-bezier(.6, .05, .7, .4); }
  97% { opacity: 0; }
  100% { transform: translateY(-52dvh); opacity: 0; }
}
@keyframes vsYou {
  0% { transform: translateY(52dvh); opacity: 0; animation-timing-function: cubic-bezier(.16, .75, .28, 1); }
  3% { opacity: 1; }
  26%, 72% { transform: translateY(0); opacity: 1; animation-timing-function: cubic-bezier(.6, .05, .7, .4); }
  97% { opacity: 0; }
  100% { transform: translateY(52dvh); opacity: 0; }
}
@keyframes vsChip {
  0%, 14% { opacity: 0; transform: scale(.7); }
  26%, 72% { opacity: 1; transform: scale(1); }
  88%, 100% { opacity: 0; transform: scale(.85); }
}
@media (prefers-reduced-motion: reduce) {
  .a-vs.play .a-vcard.foe, .a-vs.play .a-vcard.you, .a-vs.play .a-vschip { animation-duration: .9s; }
}
.a-side { width: 336px; flex: none; display: flex; flex-direction: column; background: #100c07; border-left: 1px solid var(--line); min-height: 0; }
.a-tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.a-tabs span { flex: 1; text-align: center; padding: 12px 0 10px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.a-tabs span.on { color: var(--text); border-bottom: 2px solid var(--gold); background: rgba(226, 178, 100, .04); }
.a-body { flex: 1; min-height: 0; overflow: hidden; }
.a-pane { display: none; height: 100%; overflow-y: auto; padding: 16px 18px; }
.a-pane.on { display: block; }
.a-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--panel); }
.a-box .dname { font-family: Georgia, serif; font-variant: small-caps; letter-spacing: 1.5px; font-size: 16px; margin-top: 6px; }
.a-box .dsub { font-size: 10.5px; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; margin: 2px 0 4px; }
.a-box .dsc { margin: 6px 0 0; font-size: 12px; color: var(--sec); line-height: 1.6; }
.a-box .dsc .r { color: #ff5a4e; }
.a-box .dsc .b2 { color: #7fb3ff; }
.a-box .dsc .g { color: #7fd87f; }
.a-odds { flex: none; text-align: center; font-size: 11.5px; color: var(--sec); line-height: 1.7; padding: 12px 14px; border-top: 1px solid var(--line); }
.a-odds b { color: var(--text); }
.a-actions { flex: none; display: flex; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
@media (max-width: 1140px) {
  .arena { flex-direction: column; }
  .a-side { width: auto; border-left: none; border-top: 1px solid var(--line); }
  .a-stage { padding: 64px 26px; }
  .a-bwrap { width: min(calc(100dvw - 80px), calc(100dvh - 380px), 800px); }
}
@media (max-width: 700px) {
  .a-bar .state, .a-bar .rt { display: none; }
}
@container (max-width: 640px) {
  .tray2 .none { display: none; }
  .a-bar .rt { display: none; }
  .a-bar .who { gap: 7px; }
  .a-bar { left: -18px; right: -18px; }
  .gh { padding: 5px 9px; }
}
@container (max-width: 420px) {
  .pl { height: 13px; top: 2px; }
  .pl b { font-size: 9px; }
  .pl .ic { width: 9px; height: 9px; }
  .hpbar { bottom: 5px; height: 3px; }
  .coord { display: none; }
}
#g-status { font-size: 16px; font-weight: 700; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
#g-status.think { color: var(--gold); }
#g-log { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; max-height: 340px; overflow-y: auto; font-size: 13.5px; font-family: Consolas, monospace; }
#g-log div { padding: 1.5px 0; color: var(--sec); }
#g-log div b { color: var(--text); font-weight: 600; }
.grow { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- collection ---------- */
.csec { margin: 20px 0 8px; font-size: 16px; font-weight: 700; color: var(--sec); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.ccard { position: relative; background: #241c10; border: 2px solid var(--line); border-radius: 12px; padding: 12px; }
.ccard .cname { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.ccard .cflavor { color: var(--muted); font-size: 11px; font-style: italic; margin-top: 6px; line-height: 1.4; }
.cglyph { font-size: 44px; line-height: 1.15; font-family: "Segoe UI Symbol", serif; }
.ccard .crow { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); }
.ccard .cstats { display: flex; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--sec); }
.ccard.r-common { border-color: #6b7280; } .ccard.r-rare { border-color: #3b82f6; }
.ccard.r-epic { border-color: #a855f7; } .ccard.r-legendary { border-color: #f59e0b; }
.ccard.unowned { opacity: .5; }
.ccard .count { position: absolute; top: 8px; right: 10px; font-size: 12px; color: var(--sec); }
.ccard .aegtag { position: absolute; bottom: 8px; right: 10px; font-size: 11px; font-weight: 700; color: var(--gold); text-shadow: 0 0 8px rgba(226, 178, 100, .6); }

/* ---------- shop ---------- */
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shopitem { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.shopitem h3 { margin: 0; font-size: 16px; }
.shopitem p { margin: 0; color: var(--sec); font-size: 12.5px; flex: 1; line-height: 1.45; }
.price { font-weight: 800; color: #67c1ff; }
.shoptag { align-self: flex-start; font-size: 11px; color: var(--green); font-weight: 700; }

/* ---------- packs · The Unsealing Altar (2026-09-14, from design/mockups/packs-redesigns.html B) ---------- */
.altar { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr) 252px; max-width: 1280px; margin: 26px auto 0;
  border: 1px solid var(--line2); border-radius: 14px; background: #0b0805; overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9); }
.alt-rail { padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; background: rgba(22, 16, 9, .5); min-width: 0; }
.alt-rail.stock { border-right: 1px solid var(--line2); }
.alt-rail.odds { border-left: 1px solid var(--line2); }
.alt-kick { font-size: 10px; letter-spacing: 2.8px; color: var(--muted); text-transform: uppercase; }
.alt-mid { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  min-height: 640px; padding: 24px 20px; overflow: hidden;
  background-image: radial-gradient(560px 300px at 50% 30%, rgba(226, 178, 100, .07), transparent 70%); }
.alt-shout { font-family: Georgia, serif; font-size: 19px; letter-spacing: 2px; color: var(--gold2); min-height: 26px; text-align: center; }
.alt-stage { display: flex; align-items: center; justify-content: center; min-height: 340px; }
.alt-embers { position: absolute; inset: 0; pointer-events: none; }
.alt-embers i { position: absolute; bottom: -8px; border-radius: 50%; background: #f0c87e; opacity: 0; animation: alt-ember 4.5s linear infinite; }
@keyframes alt-ember { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .8; } 100% { transform: translateY(-560px); opacity: 0; } }
/* idle pack object + count chip */
.alt-packobj { position: relative; width: 220px; height: 290px; border-radius: 18px; animation: alt-deal .45s cubic-bezier(.2, .8, .3, 1.2) backwards;
  background: linear-gradient(150deg, #5a2410 0%, #3a1826 46%, #170f22 100%);
  border: 2px solid var(--gold); box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(245, 217, 168, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.alt-packobj::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(226, 178, 100, .35); border-radius: 13px; }
.alt-packobj .crown { font-size: 52px; filter: drop-shadow(0 6px 14px rgba(226, 178, 100, .45)); }
.alt-packobj .nm { font-weight: 800; letter-spacing: 3px; color: var(--gold2); font-size: 14px; text-shadow: 0 2px 0 #6b4d1e; }
.alt-packobj .ct { font-size: 11.5px; color: #e8d9a8; }
.alt-count { position: absolute; top: -11px; right: -11px; min-width: 44px; height: 32px; padding: 0 10px; border-radius: 10px;
  background: linear-gradient(180deg, #f0c87e, #d9a558); border: 2px solid var(--gold-deep); color: #241503;
  font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); z-index: 2; }
.alt-empty { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 360px; }
.alt-empty b { color: var(--sec); }
/* stock rail */
.alt-minis { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.alt-mini { position: relative; width: 58px; height: 78px; border-radius: 9px; border: 1.5px solid var(--gold);
  background: linear-gradient(150deg, #5a2410, #3a1826 55%, #170f22); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.alt-xn { font-size: 21px; font-weight: 800; color: var(--gold2); }
.alt-xn small { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 800; }
.alt-starwrap { display: flex; gap: 11px; align-items: center; border-top: 1px solid var(--line2); padding-top: 14px; }
.alt-starwrap .txt { font-size: 12.5px; font-weight: 700; }
.alt-starwrap .txt small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; line-height: 1.5; margin-top: 2px; }
.alt-ring { position: relative; width: 44px; height: 44px; flex: none; }
.alt-ring svg { transform: rotate(-90deg); display: block; }
.alt-ring .trk { fill: none; stroke: #2a2013; stroke-width: 4; }
.alt-ring .arc { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray .5s; }
.alt-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; color: var(--gold2); }
.alt-shards { border-top: 1px solid var(--line2); padding-top: 14px; font-size: 12.5px; font-weight: 700; }
.alt-shards small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; line-height: 1.5; margin-top: 3px; }
.alt-raillinks { margin-top: auto; border-top: 1px solid var(--line2); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.alt-lnk { font-family: inherit; font-weight: 700; letter-spacing: 1.4px; border-radius: 10px; padding: 9px 14px; font-size: 11.5px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--sec); text-align: left; }
.alt-lnk:hover { color: var(--text); border-color: var(--gold-deep); }
/* odds rail */
.alt-led { border-collapse: collapse; width: 100%; font-size: 12px; }
.alt-led th { font-size: 9px; letter-spacing: 1.6px; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.alt-led td { padding: 7px 8px; border-bottom: 1px solid #1c150c; color: var(--text); }
.alt-led td.num { font: 12px Consolas, monospace; text-align: right; }
.rswatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; }
.alt-oddsnote { font-size: 10.8px; color: var(--sec); line-height: 1.7; border-top: 1px solid var(--line2); padding-top: 12px; }
.alt-oddsnote .mono { color: var(--muted); font-family: Consolas, monospace; }
.alt-last { border-top: 1px solid var(--line2); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--sec); }
.alt-last .row { display: flex; justify-content: space-between; gap: 8px; }
.alt-last .row .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-last .row .mono { font-family: Consolas, monospace; flex: none; }
.alt-last .none { color: var(--muted); font-style: italic; }
/* seal + actions */
.alt-seal { font-family: inherit; font-weight: 800; letter-spacing: 2px; border-radius: 12px; padding: 13px 34px; font-size: 14px; cursor: pointer; position: relative;
  background: linear-gradient(180deg, #f0c87e, #d9a558); color: #241503; border: 1px solid var(--gold-deep);
  box-shadow: 0 6px 22px rgba(226, 178, 100, .3), inset 0 1px 0 rgba(255, 255, 255, .5); }
.alt-seal::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(36, 21, 3, .35); border-radius: 8px; pointer-events: none; }
.alt-seal:hover { filter: brightness(1.06); }
.alt-btn { font-family: inherit; font-weight: 700; letter-spacing: 1.4px; border-radius: 10px; padding: 11px 20px; font-size: 12.5px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--sec); }
.alt-btn:hover { color: var(--text); border-color: var(--gold-deep); }
.alt-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; min-height: 48px; }
/* the dealt fan — overlapping pitch, flipped card pops above its neighbors */
.alt-fan { display: flex; justify-content: center; align-items: center; }
.afan-slot { width: 138px; flex: none; animation: alt-deal .4s cubic-bezier(.2, .8, .3, 1.2) backwards; }
/* each 224px flip overflows its 138px slot to the right — give the last slot its full
   layout width so flex centers the VISUAL fan (776px), not the 690px slot strip */
.afan-slot:last-child { width: 224px; }
/* symmetric fan: z AND arc transform live on the FLIPS via classes (no inline transforms —
   inline would fight the hover/front rules), never on the slots (a flex item with z-index
   becomes a stacking context and would clamp every hover/front z inside it).
   Each slot's arc is a --arc variable so the carousel settle can re-apply it. */
.afan-slot:nth-child(1) { --arc: rotate(-8deg) translateY(22px); }
.afan-slot:nth-child(2) { --arc: rotate(-4deg) translateY(8px); }
.afan-slot:nth-child(3) { --arc: rotate(0deg) translateY(0px); } /* the middle card sits straight in the fan */
.afan-slot:nth-child(4) { --arc: rotate(4deg) translateY(8px); }
.afan-slot:nth-child(5) { --arc: rotate(8deg) translateY(22px); }
.afan-slot:nth-child(1) .pk-flip { z-index: 1; transform: var(--arc); }
.afan-slot:nth-child(2) .pk-flip { z-index: 2; transform: var(--arc); }
.afan-slot:nth-child(3) .pk-flip { z-index: 3; }
.afan-slot:nth-child(4) .pk-flip { z-index: 2; transform: var(--arc); }
.afan-slot:nth-child(5) .pk-flip { z-index: 1; transform: var(--arc); }
/* no margin hacks: 224px flips on a 138px slot pitch already overlap by exactly 86px */
@keyframes alt-deal { from { transform: translateY(26px) scale(.92); opacity: 0; } }
.pk-flip { position: relative; width: 224px; height: 296px; perspective: 900px; cursor: pointer; transition: transform .25s ease; }
/* carousel pick: one card front at a time — hover lifts+enlarges, click pins.
   Flipping keeps each card IN its arc (compose on top of --arc) — there is exactly one
   idle layout, the arch; highlights only lift a card further out of it. */
.afan-slot .pk-flip.on { transform: var(--arc) translateY(-10px) scale(1.04); z-index: 30; }
.afan-slot .pk-flip.on:hover { transform: var(--arc) translateY(-36px) scale(1.15); z-index: 40; }
.afan-slot .pk-flip.front { transform: var(--arc) translateY(-38px) scale(1.2); z-index: 50; }
/* while a card is highlighted (hovered or pinned), every OTHER flipped card settles
   back to its original fan-arc position — one card reads at a time */
.alt-fan:has(.pk-flip.on:hover) .pk-flip.on:not(:hover),
.alt-fan:has(.pk-flip.front) .pk-flip.on:not(.front) { transform: var(--arc); z-index: 15; }
.pk-flip .fface .mcard { transition: box-shadow .15s ease; }
.pk-flip.on:hover .fface .mcard { box-shadow: 0 0 0 3px rgba(226, 178, 100, .5), 0 12px 28px rgba(0, 0, 0, .5); }
.pk-flip.front .fface .mcard { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(226, 178, 100, .4); }
.pk-flip:not(.on):hover .cback { filter: brightness(1.12); }
.pk-flip .fin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .7, .3, 1); }
.pk-flip.on .fin { transform: rotateY(180deg); }
.pk-flip .fback, .pk-flip .fface { position: absolute; inset: 0; backface-visibility: hidden; }
.pk-flip .fface { transform: rotateY(180deg); }
.pk-back { position: relative; width: 224px; height: 296px; border-radius: 14px; border: 8px solid var(--gold-deep);
  background: radial-gradient(220px 200px at 50% 38%, #4a2c14, #241503 78%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(245, 217, 168, .3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.pk-back::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(226, 178, 100, .4); border-radius: 9px; }
.pk-back .dm { font-size: 44px; color: var(--gold); text-shadow: 0 0 18px rgba(226, 178, 100, .5); }
.pk-back .bt { font-size: 9px; letter-spacing: 3.5px; color: var(--gold-deep); font-weight: 800; }
.pk-flip .fface .pk-wrap { width: 224px; height: 296px; overflow: hidden; }
.pk-flip .fface .pk-scale { width: 320px; height: 422px; transform: scale(0.70); transform-origin: top left; }
.pk-flip.aegis .fface .mcard { box-shadow: 0 0 26px rgba(226, 178, 100, .55); }
.pk-newtab { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 9.5px; letter-spacing: 1.5px; font-weight: 800;
  color: #0e2412; background: #7fd8a0; border-radius: 5px; padding: 2px 7px; }
.afan-best { position: relative; display: inline-block; padding-top: 9px; }
.afan-best::after { content: "BEST PULL"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 8.5px; letter-spacing: 2px; font-weight: 800; color: #241503; background: linear-gradient(180deg, #f0c87e, #d9a558);
  border-radius: 6px; padding: 3px 9px; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
/* verdict bar — floating notification: fixed to the viewport, never in the layout flow,
   so its appearance can't shift the fan or the page */
.alt-verdict { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  border: 1px solid #6b5222; border-radius: 11px; padding: 10px 18px; max-width: min(92vw, 640px);
  background: linear-gradient(180deg, rgba(226, 178, 100, .10), rgba(22, 16, 9, .72));
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .85);
  animation: alt-vfloat .35s cubic-bezier(.2, .8, .3, 1.2); }
@keyframes alt-vfloat { from { opacity: 0; transform: translateX(-50%) translateY(14px); } }
.alt-verdict[hidden] { display: none; }
.alt-verdict .bp { font-size: 12px; letter-spacing: 1.6px; font-weight: 800; color: var(--gold2); }
.alt-verdict .sub { font-size: 11.5px; color: var(--sec); }
.alt-verdict .sh { font: 12px Consolas, monospace; font-weight: 800; color: #7fd8a0; border: 1px solid #2c5a3d; border-radius: 7px; padding: 4px 9px; background: rgba(63, 174, 98, .10); }
/* narrow windows: tighter rails + a tighter fan pitch (row 4×120+224 = 704) */
@media (max-width: 1240px) {
  .altar { grid-template-columns: 200px minmax(0, 1fr) 220px; }
  .afan-slot { width: 120px; }
}

/* ---------- modals & toasts ---------- */
.overlay { position: fixed; inset: 0; background: rgba(12, 8, 3, .72); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; text-align: center; max-width: 90vw; }
.modal h3 { margin: 0 0 6px; font-size: 22px; }
.modal p { margin: 4px 0 14px; color: var(--sec); }
#toasts { position: fixed; right: 16px; top: 66px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--panel); border: 1px solid var(--gold); color: var(--text); border-radius: 10px; padding: 10px 16px; font-size: 13.5px; animation: toastin .25s ease-out; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
@keyframes toastin { from { transform: translateX(30px); opacity: 0; } }
.promoRow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.promoRow button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 122px; max-width: 168px;
  padding: 10px 12px 8px; background: var(--panel2); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--text); }
.promoRow button:hover { border-color: var(--gold); }
.promoRow .pg { font-family: "Segoe UI Symbol", serif; font-size: 36px; line-height: 1.1; }
.promoRow .pn { font-family: Georgia, 'Times New Roman', serif; font-size: 11.5px; font-weight: 700; max-width: 144px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promoRow .ps { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.promo-hint { text-align: center; font-size: 11px; color: var(--muted); margin: 12px 0 0; }
#errlog { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #3a0e18; color: #ffd7dd; font: 12px Consolas monospace; padding: 8px 14px; z-index: 99; max-height: 130px; overflow: auto; }
.mutedlink { color: var(--muted); font-size: 12.5px; }
.mutedlink:hover { color: var(--sec); }

/* ---------- army builder · The War Camp (2026-09-13, mockup army-redesigns.html A) ---------- */
#view-army.active { position: relative; }
#view-army.active::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.4px 1.4px at 12% 14%, rgba(255, 240, 200, .5), transparent 100%),
    radial-gradient(1.2px 1.2px at 34% 7%, rgba(255, 240, 200, .35), transparent 100%),
    radial-gradient(1.6px 1.6px at 58% 12%, rgba(255, 240, 200, .4), transparent 100%),
    radial-gradient(1.1px 1.1px at 78% 19%, rgba(255, 240, 200, .45), transparent 100%),
    radial-gradient(1.3px 1.3px at 92% 8%, rgba(255, 240, 200, .35), transparent 100%),
    radial-gradient(1px 1px at 22% 26%, rgba(255, 240, 200, .3), transparent 100%),
    radial-gradient(1px 1px at 68% 30%, rgba(255, 240, 200, .25), transparent 100%),
    radial-gradient(900px 420px at 46% 40%, rgba(226, 178, 100, .12), transparent 68%),
    radial-gradient(1300px 700px at 50% 116%, rgba(4, 3, 1, .72), transparent 66%); }
.camp { max-width: 1340px; margin: 0 auto; }
.camp-title { text-align: center; margin: 2px 0 26px; }
.camp-title b { font-family: Georgia, 'Times New Roman', serif; font-variant: small-caps; font-weight: 700;
  font-size: 25px; letter-spacing: 5px; color: var(--text); text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.camp-title i { display: block; font-style: normal; font-size: 9.5px; letter-spacing: 4px; color: var(--muted); margin-top: 7px; }

/* banner poles with pennants */
.camp-poles { position: relative; height: 20px; max-width: 1280px; margin: 0 auto; }
.camp-poles .pole { position: absolute; top: -18px; width: 3px; height: 108px; z-index: 1;
  background: linear-gradient(180deg, #6a5232, #3a2b16); }
.camp-poles .pole.l { left: 6%; } .camp-poles .pole.r { right: 6%; }
.camp-poles .pole::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #e2b264, #6a4a1c); }
.camp-poles .pennant { position: absolute; top: 8px; left: -29px; width: 58px; padding: 10px 0 18px; text-align: center;
  background: linear-gradient(180deg, #5a1620, #3a0e16); border: 1px solid #7a2c34;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 50% 100%, 0 calc(100% - 12px));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.camp-poles .pennant i { display: block; font-style: normal; font-size: 19px; color: #e8c9a0; }
.camp-poles .pennant u { display: block; text-decoration: none; font-size: 7px; letter-spacing: 1.6px; color: #e8c9c0;
  writing-mode: vertical-rl; margin: 6px auto 0; }

.camp-main { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 22px; align-items: start; }

/* the general's map table */
.maptable { position: relative; padding: 30px 30px 26px; border-radius: 6px;
  background: linear-gradient(135deg, #3d2d18, #241a0e 55%, #191207);
  border: 1px solid #6a5232; box-shadow: inset 0 0 40px rgba(0, 0, 0, .55), 0 18px 44px rgba(0, 0, 0, .5); }
.camp-board { position: relative; padding: 14px; border: none; background: none; box-shadow: none; }
.camp-board::before, .camp-board::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 6; }
.camp-board::before { top: 4px; left: 4px; border-top: 2px solid rgba(226, 178, 100, .5); border-left: 2px solid rgba(226, 178, 100, .5); }
.camp-board::after { bottom: 4px; right: 4px; border-bottom: 2px solid rgba(226, 178, 100, .5); border-right: 2px solid rgba(226, 178, 100, .5); }
.camp-board .halo { position: absolute; left: 50%; top: 27%; transform: translate(-50%, -50%); z-index: 4;
  font-family: "Segoe UI Symbol", serif; font-size: 130px; color: rgba(226, 178, 100, .07);
  pointer-events: none; user-select: none; }
#army-board { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  width: 100%; max-width: 620px; margin: 0 auto; aspect-ratio: 1;
  border: 2px solid rgba(138, 106, 53, .8); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 10px 30px rgba(0, 0, 0, .45); user-select: none; }
#army-board::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 58%, rgba(10, 6, 2, .40) 100%); }
#army-board .sq { transition: box-shadow .12s ease; }
#army-board .sq.ownslot { background-image: linear-gradient(180deg, rgba(226, 178, 100, .17), rgba(226, 178, 100, .05)); box-shadow: inset 0 1px 0 rgba(226, 178, 100, .22); }
#army-board .sq.ownslot:hover, #army-board .sq.hl { box-shadow: inset 0 0 0 3px rgba(226, 178, 100, .85); cursor: pointer; }
.compass { position: absolute; left: 14px; bottom: 10px; width: 58px; height: 58px; opacity: .5; pointer-events: none; }
.waxstamp { position: absolute; right: 6px; bottom: 40px; width: 84px; height: 84px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 36% 32%, #8a2a2a, #5a1620 68%); border: 2px solid #a83838;
  transform: rotate(-14deg); display: grid; place-items: center; text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5), inset 0 2px 6px rgba(255, 255, 255, .14); }
.waxstamp span { font: 800 8px Georgia, serif; letter-spacing: 1.2px; color: #f0c9c0; line-height: 1.5; }

/* hanging banner panel */
.bannercast { position: relative; padding-top: 26px; }
.bcpole { position: absolute; top: 8px; left: 0; right: 0; height: 5px; border-radius: 3px;
  background: linear-gradient(180deg, #7a5c34, #3a2b16); box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.bcpole::before, .bcpole::after { content: "◆"; position: absolute; top: -7px; font-size: 13px; color: #c99a4e;
  text-shadow: 0 0 8px rgba(226, 178, 100, .6); }
.bcpole::before { left: -4px; } .bcpole::after { right: -4px; }
.bcrope { position: absolute; top: 13px; width: 2px; height: 16px; background: linear-gradient(180deg, #8a6a35, #5a4526); }
.wbp { position: relative; background: linear-gradient(180deg, #261c10, #181106); border: 1px solid #55401f;
  border-radius: 12px; padding: 14px 15px 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05); }
.wbp::before, .wbp::after { content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none; }
.wbp::before { top: 6px; left: 6px; border-top: 1.5px solid rgba(226, 178, 100, .4); border-left: 1.5px solid rgba(226, 178, 100, .4); }
.wbp::after { bottom: 6px; right: 6px; border-bottom: 1.5px solid rgba(226, 178, 100, .4); border-right: 1.5px solid rgba(226, 178, 100, .4); }
.wbp-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(74, 58, 34, .55); }
.wbp-hd i { font-style: normal; font-size: 12px; color: var(--gold); text-shadow: 0 0 10px rgba(226, 178, 100, .5); }
.wbp-hd span { font-size: 10.5px; font-weight: 800; letter-spacing: 2.6px; color: var(--sec); }
.wbp-hd em { margin-left: auto; font-style: normal; font-size: 8px; letter-spacing: 1.4px; color: var(--muted); }
.wstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 10px; }
.wstat { text-align: center; padding: 8px 3px 7px; background: rgba(36, 27, 16, .55);
  border: 1px solid rgba(74, 58, 34, .5); border-radius: 9px; }
.wstat b { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 800; font-size: 19px;
  line-height: 1.1; color: var(--gold); text-shadow: 0 0 12px rgba(226, 178, 100, .25); font-variant-numeric: tabular-nums; }
.wstat span { display: block; margin-top: 3px; font-size: 7.5px; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; }
.wstat.lit { border-color: rgba(226, 178, 100, .6); box-shadow: 0 0 14px -4px rgba(226, 178, 100, .55); }
.wstat.lit b { color: #f5d9a8; text-shadow: 0 0 14px rgba(226, 178, 100, .65); }
.wstat.lit span { color: var(--gold); }
.wstat b .bump { font: 800 8.5px "Segoe UI", Arial, sans-serif; font-style: normal; color: #f5d9a8;
  margin-left: 3px; vertical-align: 4px; text-shadow: 0 0 6px rgba(226, 178, 100, .5); }
.wstat b .bump.neg { color: #ff9d7a; text-shadow: 0 0 6px rgba(255, 120, 71, .5); }
.camp-rulz { margin-top: 14px; }

/* parchment muster roll — pawns first, officers behind */
.musterroll { position: relative; max-width: 1280px; margin: 22px auto 0; padding: 13px 20px 14px;
  background: linear-gradient(180deg, #e6d9b4, #d3c294); border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px #b7a274, inset 0 0 60px rgba(120, 90, 40, .25); }
.musterroll::before, .musterroll::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 0;
  border-left: 1px dashed rgba(90, 60, 20, .45); }
.musterroll::before { left: 8px; } .musterroll::after { right: 8px; }
.roll-hd { display: flex; align-items: baseline; gap: 12px; margin: 0 4px 9px; flex-wrap: wrap; }
.roll-hd b { font-family: Georgia, serif; font-variant: small-caps; font-weight: 700; font-size: 13.5px;
  letter-spacing: 3px; color: #4a3010; }
.roll-hd span { font-size: 10px; color: #7a5f34; letter-spacing: .6px; }
.roll-hd .tally { margin-left: auto; font: 800 11.5px Georgia, serif; color: #5a3a12; letter-spacing: .5px; }
.rollrows { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px 6px; }
.ritem { position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 7px; cursor: pointer;
  border: 1px solid transparent; border-radius: 4px; min-width: 0; overflow: hidden; }
.ritem:hover, .ritem.hl { background: rgba(90, 58, 18, .14); border-color: rgba(90, 58, 18, .4); }
/* .rg figurines ride the Muster-Review chips (D migration 2026-09-18): dark slot on the
   parchment, rarity-tinted border + glyph — rare blue · epic purple · legendary amber ·
   AEGIS gold glow outranks all; common/classical stay neutral like D's default slots */
.ritem .rg { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 5px;
  background: #120c05; border: 1.5px solid #3f3220; color: #c0b090;
  font-family: Georgia, serif; font-size: 13.5px; line-height: 1;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .6); }
.ritem .rg.rare { border-color: #2a4a7a; color: #7aa8e0; }
.ritem .rg.epic { border-color: #6a3a97; color: #c49af0; box-shadow: 0 0 8px rgba(168, 85, 247, .2), inset 0 0 6px rgba(0, 0, 0, .6); }
.ritem .rg.leg { border-color: #7a5a10; color: #f0b45c; box-shadow: 0 0 8px rgba(245, 158, 11, .22), inset 0 0 6px rgba(0, 0, 0, .6); }
.ritem .rg.aeg { border-color: #e2b264; color: #f5d9a8; box-shadow: 0 0 0 1px rgba(226, 178, 100, .4), 0 0 10px rgba(226, 178, 100, .35), inset 0 0 6px rgba(0, 0, 0, .6); }
.ritem.vacant .rg { border-style: dashed; color: #5c4f38; }
.ritem .rt { display: block; min-width: 0; }
.ritem .rn { display: block; font: 700 10.5px Georgia, serif; color: #2e2008;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ritem .rm { display: block; font-size: 8.5px; color: #6a5228; letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ritem.king { background: rgba(90, 58, 18, .1); border-color: rgba(90, 58, 18, .35); }
.ritem.buffed .rm { color: #7a4a10; font-weight: 700; }
.ritem.vacant { border: 1px dashed rgba(90, 60, 20, .4); }
.ritem.vacant .rn { color: #8a7346; font-family: "Segoe UI", Arial, sans-serif; font-size: 9px; letter-spacing: 1px; }
.wseal { position: absolute; right: 24px; bottom: -15px; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #8a2a2a, #521320 70%); border: 2px solid #a83838;
  display: grid; place-items: center; font-size: 20px; color: #edbcb0; transform: rotate(8deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .4), inset 0 2px 6px rgba(255, 255, 255, .15); }
.camp-actions { max-width: 1280px; margin: 14px auto 0; display: flex; justify-content: center; }
.camp-actions .reseal { min-width: 340px; justify-content: center; }
@media (max-width: 1160px) {
  .camp-main { grid-template-columns: 1fr; }
  .camp-poles .pole.l { left: 2%; } .camp-poles .pole.r { right: 2%; }
}
@media (max-width: 720px) {
  .rollrows { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wstats { grid-template-columns: repeat(2, 1fr); }
  .camp-actions .reseal { min-width: 0; width: 100%; }
}

/* ---------- army builder · previous Muster Ground skin (superseded, kept for test copies) ---------- */
.muster-kick { margin-bottom: 20px; }
.muster { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 20px; align-items: start; }
.muster-table { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* HUD — the army's engraved power plaque */
.hud { display: flex; flex-wrap: wrap; border: 1px solid #55401f; border-radius: 13px; overflow: hidden;
  background: linear-gradient(180deg, #241b10, #171006);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 8px 22px rgba(0, 0, 0, .35); }
.hud-seg { flex: 1 1 0; min-width: 96px; text-align: center; padding: 11px 6px 9px; position: relative; }
.hud-seg + .hud-seg::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px;
  background: linear-gradient(180deg, transparent, #55401f 30% 70%, transparent); }
.hud-seg b { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 23px; line-height: 1.1;
  color: var(--gold); text-shadow: 0 0 16px rgba(226, 178, 100, .3); font-variant-numeric: tabular-nums; }
.hud-seg span { display: block; margin-top: 3px; font-size: 8.5px; letter-spacing: 2.2px; color: var(--muted); text-transform: uppercase; }
.hud-seg.lit b { color: #f5d9a8; text-shadow: 0 0 18px rgba(226, 178, 100, .65); }
.hud-seg.lit span { color: var(--gold); }

/* the war table stage — flanking ground ribbons */
.muster-stage { display: flex; align-items: stretch; justify-content: center; gap: 8px; }
.ground { position: relative; width: 26px; flex: none; }
.ground::before { content: ""; position: absolute; left: 50%; top: 4%; bottom: 4%; width: 1px;
  background: linear-gradient(180deg, transparent, #4a3a22 30% 70%, transparent); }
.ground span { position: absolute; left: 50%; writing-mode: vertical-rl; white-space: nowrap;
  font-size: 8.5px; letter-spacing: 2.6px; color: var(--muted); text-transform: uppercase; }
.ground-foe span { top: 25%; transform: translate(-50%, -50%) rotate(180deg); }
.ground-you span { bottom: 25%; transform: translate(-50%, 50%) rotate(180deg); color: var(--gold-deep, #8a6a35); }
.muster-board { position: relative; }
.muster-board .halo { position: absolute; left: 50%; top: 27%; transform: translate(-50%, -50%); z-index: 4;
  font-family: "Segoe UI Symbol", serif; font-size: 130px; color: rgba(226, 178, 100, .07);
  pointer-events: none; user-select: none; }
.muster-board::before, .muster-board::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 6; }
.muster-board::before { top: 5px; left: 5px; border-top: 2px solid rgba(226, 178, 100, .5); border-left: 2px solid rgba(226, 178, 100, .5); }
.muster-board::after { bottom: 5px; right: 5px; border-bottom: 2px solid rgba(226, 178, 100, .5); border-right: 2px solid rgba(226, 178, 100, .5); }
#army-board { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); width: min(92vw, 68vh, 660px); aspect-ratio: 1; border: 2px solid rgba(138, 106, 53, .65); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 16px 40px rgba(0, 0, 0, .45); user-select: none; }
#army-board::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 58%, rgba(10, 6, 2, .40) 100%); }
#army-board .sq { transition: box-shadow .12s ease; }
#army-board .sq.ownslot { background-image: linear-gradient(180deg, rgba(226, 178, 100, .17), rgba(226, 178, 100, .05)); box-shadow: inset 0 1px 0 rgba(226, 178, 100, .22); }
#army-board .sq.ownslot:hover, #army-board .sq.hl { box-shadow: inset 0 0 0 3px rgba(226, 178, 100, .85); cursor: pointer; }

/* war council column */
.council { display: flex; flex-direction: column; gap: 14px; }
.cpanel { position: relative; background: linear-gradient(180deg, #1f170d, #161006); border: 1px solid #3f3120; border-radius: 14px; padding: 13px 14px 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.cpanel::before, .cpanel::after { content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none; }
.cpanel::before { top: 6px; left: 6px; border-top: 1.5px solid rgba(226, 178, 100, .35); border-left: 1.5px solid rgba(226, 178, 100, .35); }
.cpanel::after { bottom: 6px; right: 6px; border-bottom: 1.5px solid rgba(226, 178, 100, .35); border-right: 1.5px solid rgba(226, 178, 100, .35); }
.cpanel-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(74, 58, 34, .55); }
.cpanel-hd i { font-style: normal; font-size: 12px; color: var(--gold); text-shadow: 0 0 10px rgba(226, 178, 100, .5); }
.cpanel-hd span { font-size: 10.5px; font-weight: 800; letter-spacing: 2.6px; color: var(--sec); }
.chd-note { margin-left: auto; font-style: normal; font-size: 9px; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.cpanel-grow { flex: 1; }

/* war banners — race & element tallies as pips */
.banners { display: flex; flex-direction: column; gap: 6px; }
.ban { display: flex; align-items: center; gap: 10px; padding: 6px 9px; border-radius: 10px;
  background: rgba(36, 27, 16, .55); border: 1px solid rgba(74, 58, 34, .5); }
.ban-sigil { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12.5px;
  background: radial-gradient(circle at 34% 30%, #3a2d18, #1d150c); border: 1px solid rgba(226, 178, 100, .4);
  box-shadow: 0 0 8px -2px rgba(226, 178, 100, .4); }
.ban-name { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.15; }
.ban-sub { font-size: 9.5px; color: var(--muted); letter-spacing: .4px; }
.ban-pips { margin-left: auto; display: flex; gap: 3.5px; align-items: center; flex: none; }
.ban-pips i { width: 6.5px; height: 6.5px; transform: rotate(45deg); background: #241a0d; border: 1px solid #4a3a22; }
.ban-pips i.on { background: var(--gold); border-color: #8a6a35; box-shadow: 0 0 6px rgba(226, 178, 100, .55); }
.ban-n { min-width: 30px; text-align: right; font-size: 11px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; flex: none; }
.ban-group { margin-top: 5px; font-size: 8.5px; letter-spacing: 2.4px; color: var(--muted); text-transform: uppercase; }
.ban-empty { font-size: 12px; color: var(--muted); font-style: italic; padding: 5px 2px; }

/* battle roster — sixteen unit seals */
.roster { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slotchip { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: start;
  padding: 8px 9px; border-radius: 11px; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, #241b10, #191207); border: 1px solid #3f3120; border-left: 3px solid var(--rarc, #6b7280);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.slotchip:hover, .slotchip.hl { transform: translateY(-2px); border-color: #6a5232; box-shadow: 0 0 16px -5px rgba(226, 178, 100, .55); }
.slotchip .sc-sq { font-size: 8.5px; font-weight: 800; letter-spacing: 1px; color: var(--muted);
  background: #141009; border: 1px solid #3f3120; border-radius: 5px; padding: 2px 4px; white-space: nowrap; }
.slotchip .sc-body { min-width: 0; }
.slotchip .sc-name { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 11.5px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slotchip .sc-meta { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slotchip .sc-meta .sca { color: var(--gold); font-style: normal; text-shadow: 0 0 8px rgba(226, 178, 100, .7); }
.slotchip .sc-glyph { position: absolute; right: 4px; top: 50%; transform: translateY(-54%); font-family: "Segoe UI Symbol", serif;
  font-size: 34px; opacity: .3; pointer-events: none; }
.slotchip .sc-stats { grid-column: 1 / -1; width: fit-content; margin-top: 2px; background: #ece6d4; border: 1.5px solid #14101c; border-radius: 5px;
  padding: 2px 6px; display: flex; align-items: center; gap: 3px; color: #14101c; font-weight: 800; font-size: 9.5px; }
.slotchip .sc-stats .ic { width: 9px; height: 9px; }
.slotchip .sc-stats i { color: #6b6280; font-style: normal; }
.slotchip.king { border-left-color: var(--gold); background: linear-gradient(180deg, #2b2113, #1b130a); }
.slotchip.king .sc-sq { color: var(--gold); border-color: #6a5232; }
.slotchip.vacant { border: 1px dashed #4a3a22; border-left: 3px solid #3f3120; background: #150f08; }
.slotchip.vacant .sc-name { color: var(--muted); font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; letter-spacing: 1px; }

/* war banners — quantified kin system (2026-09-13, wiki pieces-roster §3b) */
.ban > div { min-width: 0; }
.ban-name .bstate { display: inline-block; vertical-align: 1px; margin-left: 6px; font-size: 7px; font-weight: 800;
  letter-spacing: 1px; border-radius: 4px; padding: 1.5px 5px; white-space: nowrap; }
.bstate.armed { color: #f5d9a8; border: 1px solid rgba(226, 178, 100, .55); background: rgba(226, 178, 100, .08); }
.bstate.crest { color: #241503; background: linear-gradient(180deg, #f0c87e, #d9a558); }
.bstate.dorm { color: var(--muted); border: 1px dashed #4a3a22; }
.bstate.penal { color: #ff9d7a; border: 1px solid rgba(255, 120, 71, .5); background: rgba(255, 120, 71, .08); }
.bstate.zero { color: var(--muted); border: 1px solid #4a3a22; }
.ban-sub.on { color: #d8b877; }
.ban-lad { margin-top: 1px; font-size: 8.2px; letter-spacing: 0; color: #a8946e; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.ban-pips i:nth-child(2n) { width: 7.5px; height: 7.5px; border-color: #8a6a35; }
.hud-seg b .bump { font: 800 9px "Segoe UI", Arial, sans-serif; font-style: normal; color: #f5d9a8;
  margin-left: 3px; vertical-align: 5px; text-shadow: 0 0 6px rgba(226, 178, 100, .5); }
.hud-seg b .bump.neg { color: #ff9d7a; text-shadow: 0 0 6px rgba(255, 120, 71, .5); }
.slotchip.buffed { border-color: #6a5232; }
.slotchip.buffed .sc-stats { box-shadow: 0 0 0 1px rgba(226, 178, 100, .55), 0 0 10px -2px rgba(226, 178, 100, .5); }

/* restore seal */
.reseal { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 16px; cursor: pointer;
  background: linear-gradient(180deg, #1f150c, #150e07); border: 1px solid #4a3120; border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, filter .15s ease; }
.reseal:hover { border-color: #8a4a32; box-shadow: 0 0 18px -6px rgba(255, 120, 71, .55); filter: brightness(1.12); }
.reseal .rs-ic { font-size: 19px; color: var(--red); text-shadow: 0 0 10px rgba(255, 120, 71, .4); }
.reseal .rs-tx b { display: block; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--sec); }
.reseal .rs-tx small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }

.muster-rulz { margin-top: 2px; align-self: center; }
.army-modal { width: min(940px, 94vw); text-align: left; }
.mfoot { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-height: 42px; }
.mfoot .primary { margin-left: auto; }
@media (max-width: 1160px) { .muster { grid-template-columns: 1fr; } .ground { display: none; } }
@media (max-width: 560px) { .roster { grid-template-columns: 1fr; } .hud-seg { min-width: 84px; } }

/* ---------- v3 MTG-style card face (deploy dialog) ---------- */
.mcard-wrap { width: 258px; height: 340px; margin: 0 auto; overflow: hidden; }
.mcard-scale { width: 320px; height: 422px; transform: scale(0.806); transform-origin: top left; }
.mcard { position: relative; width: 320px; height: 422px; border-radius: 12px;
  background: linear-gradient(180deg, var(--b1, #2e2a26), var(--b2, #1a1712));
  border: 10px solid var(--rarc, #6b7280); box-shadow: 0 12px 28px rgba(0,0,0,.5);
  font-family: "Segoe UI", Arial, sans-serif; }
.mc-name { position: absolute; left: 10px; right: 10px; top: 8px; height: 38px;
  background: rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
  display: flex; align-items: center; padding: 0 10px; gap: 8px;
  font-family: Georgia, serif; font-weight: 700; font-size: 15.5px; color: #f0e6d2; }
.mc-set { margin-left: auto; font-size: 9.5px; font-weight: 800; background: var(--rarc); color: #10101a;
  padding: 2px 7px; border-radius: 6px; }
.mc-art { position: absolute; left: 10px; right: 10px; top: 54px; height: 148px;
  background: #0d0a14; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; overflow: hidden; }
.mc-glow { position: absolute; inset: 0; }
.mc-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Segoe UI Symbol", serif; font-size: 100px;
  -webkit-text-stroke: 5px #0d0a14; paint-order: stroke fill;
  text-shadow: 0 8px 20px rgba(0,0,0,.6); }
.mc-aegis { position: absolute; left: 8px; right: 8px; bottom: 6px; text-align: center;
  font-weight: 800; font-size: 10.5px; letter-spacing: 2px; color: var(--gold);
  background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px; }
.mc-type { position: absolute; left: 10px; right: 10px; top: 210px; font-size: 11px; color: #c0b090;
  background: rgba(0,0,0,.32); border-radius: 6px; padding: 4px 9px; }
.mc-info { position: absolute; left: 10px; right: 10px; top: 246px; font-size: 12.5px;
  background: rgba(0,0,0,.30); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 7px 10px; }
.mc-info div { display: flex; gap: 8px; padding: 1px 0; }
.mc-info i { color: #8f86b8; font-style: normal; width: 62px; }
.mc-info b { color: #f0e6d2; font-weight: 700; }
.mc-flavor { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255,255,255,.12);
  font-style: italic; color: #cdbfa4; font-size: 11px; }
.mc-stats { position: absolute; right: 8px; bottom: 8px; background: #ece6d4;
  border: 2px solid #14101c; border-radius: 7px; padding: 4px 8px;
  display: flex; align-items: center; gap: 5px; }
.mc-stats span { display: flex; align-items: center; gap: 2px; color: #14101c; font-weight: 800; font-size: 14px; }
.mc-stats .ic { width: 13px; height: 13px; }
.mc-stats i { color: #6b6280; font-style: normal; font-weight: 700; }


/* ---------- board fx: drag & drop, shake, slash ---------- */
#board { touch-action: none; }
#board .sq.dragover::before { content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 3px #7fd87f; pointer-events: none; }
.drag-ghost { position: fixed; z-index: 70; pointer-events: none;
  transform: translate(-50%, -50%) scale(1.18);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); }
.fx-slash { position: absolute; left: -12%; top: 50%; width: 124%; height: 5px; z-index: 8;
  pointer-events: none; transform: rotate(-38deg);
  background: linear-gradient(90deg, transparent, #fff 30%, #ff5a3c 62%, transparent);
  animation: fx-slash-sweep 300ms ease-out forwards; }
@keyframes fx-slash-sweep {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  30% { opacity: 1; }
  100% { opacity: 0; clip-path: inset(0 0 0 0); }
}
.fx-pop { animation: fx-pop-rise 650ms ease-out forwards; }
@keyframes fx-pop-rise {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-16px); }
}

/* ---------- deploy dialog · Card Spotlight (2026-09-13, from design/mockups/deploy-redesigns.html A) ---------- */
.modal.bare { padding: 0; background: none; border: none; box-shadow: none; max-width: none; }
.army-modal.da { width: 880px; max-width: 94vw; height: 680px; display: flex; flex-direction: column; gap: 12px; text-align: left;
  padding: 18px 22px 16px; background: linear-gradient(180deg, #2a2013, #1e160c 60%, #191207); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 34px 90px -28px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05); }
.da-head { display: flex; align-items: center; gap: 14px; flex: none; }
.da-slot { position: relative; width: 54px; height: 54px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #a08b5f, #8a7448 55%, #4a3823); border: 1px solid #6b5a33;
  display: flex; align-items: center; justify-content: center; font-family: "Segoe UI Symbol", serif;
  font-size: 26px; color: #f5efdf; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); }
.da-slot i { position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--gold); opacity: .9; }
.da-slot i.tl { top: 3px; left: 3px; border-right: none; border-bottom: none; }
.da-slot i.tr { top: 3px; right: 3px; border-left: none; border-bottom: none; }
.da-slot i.bl { bottom: 3px; left: 3px; border-right: none; border-top: none; }
.da-slot i.br { bottom: 3px; right: 3px; border-left: none; border-top: none; }
.da-kick { font-size: 10px; letter-spacing: 2.6px; color: var(--muted); text-transform: uppercase; margin-bottom: 3px; }
.da-title h3 { margin: 0; font-family: Georgia, serif; font-size: 19px; letter-spacing: .5px; }
.da-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.da-filters { margin-left: auto; display: flex; gap: 8px; }
.da-dd { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; font-size: 12.5px; cursor: pointer; }
.da-spot { position: relative; flex: 1; min-height: 0; border-radius: 12px; border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center; gap: 26px; overflow: hidden;
  background: radial-gradient(420px 300px at 50% 38%, rgba(226, 178, 100, .13), transparent 70%),
              radial-gradient(560px 340px at 50% 105%, rgba(0, 0, 0, .5), transparent 70%); }
.da-arrow { width: 44px; height: 64px; border-radius: 10px; border: 1px solid var(--line); background: rgba(51, 39, 24, .7);
  color: var(--gold); font-size: 22px; cursor: pointer; flex: none; z-index: 2; }
.da-arrow:hover { border-color: #8a6a35; }
.da-arrow[disabled] { opacity: .3; cursor: default; }
.da-hero { width: 224px; height: 296px; flex: none; overflow: hidden; }
.da-scale { width: 320px; height: 422px; transform: scale(0.70); transform-origin: top left; flex: none; }
.da-nostage { height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-align: center; padding: 0 30px; }
.da-cap { flex: none; min-height: 22px; text-align: center; font-size: 12.5px; color: var(--muted); }
.da-cap b { font-family: Georgia, serif; font-size: 15px; }
.da-shelf { flex: none; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px;
  background: rgba(22, 16, 9, .75); border: 1px solid var(--line2); overflow-x: auto; }
.da-shelftag { flex: none; font-size: 10px; letter-spacing: 1.8px; color: var(--muted); text-transform: uppercase;
  writing-mode: vertical-rl; transform: rotate(180deg); }
.da-shelfrow { display: flex; gap: 10px; }
.da-empty { color: var(--muted); font-size: 12.5px; padding: 10px 4px; }
.dmini { position: relative; flex: none; width: 86px; height: 116px; border-radius: 9px; overflow: hidden;
  border: 3px solid var(--rarc, #6b7280); background: linear-gradient(180deg, var(--b1, #2e2a26), var(--b2, #1a1712));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45); display: flex; flex-direction: column; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease; }
.dmini:hover { transform: translateY(-3px); }
.dmini.sel { box-shadow: 0 0 0 2px var(--gold), 0 10px 22px rgba(226, 178, 100, .28); transform: translateY(-3px); }
.dmini.off { filter: grayscale(.85) brightness(.72); cursor: not-allowed; }
.dmini .dcp { position: absolute; left: 4px; top: 4px; z-index: 2; font-size: 8.5px; font-weight: 800;
  background: rgba(10, 7, 3, .82); border: 1px solid rgba(255, 255, 255, .18); color: var(--sec); border-radius: 5px; padding: 2px 5px; }
.dmini .dgl { flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: "Segoe UI Symbol", serif; font-size: 46px; color: #b8bcc4; text-shadow: 0 4px 12px rgba(0, 0, 0, .65); }
.dmini .dnm { font-family: Georgia, serif; font-weight: 700; font-size: 10.5px; color: #f0e6d2; padding: 5px 7px 4px;
  background: rgba(0, 0, 0, .42); border-top: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmini .dst { position: absolute; right: 4px; bottom: 26px; background: #ece6d4; border: 1.5px solid #14101c; border-radius: 5px;
  padding: 2px 5px; display: flex; align-items: center; gap: 3px; color: #14101c; font-weight: 800; font-size: 9px; }
.dmini .dst .ic { width: 8px; height: 8px; }
.dmini .dst i { color: #6b6280; font-style: normal; }

/* ---------- collection · binder page (from deploy-redesigns.html D) ---------- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, 178px); gap: 14px; }
.bcell { position: relative; display: flex; flex-direction: column; align-items: center; padding: 7px 7px 0;
  border-radius: 10px; border: 1px solid transparent; transition: transform .12s ease; }
.bcell:hover { transform: translateY(-2px); }
.bcell .bwrap { width: 160px; height: 211px; overflow: hidden; }
.bcell .bscale { width: 320px; height: 422px; transform: scale(0.5); transform-origin: top left; }
.bcell .bcap { width: 100%; text-align: center; padding: 5px 0 6px; }
.bcell .bnm { font-family: Georgia, serif; font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcell .bmeta { font-size: 10px; color: var(--muted); margin-top: 1px; }
.bcell.unowned .bwrap { filter: grayscale(.85) brightness(.62); }
.bcell .band { position: absolute; z-index: 3; top: 96px; left: -22px; right: -22px; transform: rotate(-14deg);
  background: rgba(60, 52, 40, .92); color: #cfc4ab; font-size: 10px; font-weight: 900; letter-spacing: 2.5px;
  text-align: center; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 760px) { .army-modal.da { height: auto; min-height: 540px; } .da-filters { flex-wrap: wrap; } }

/* ---------- end-of-game · Triumph Stage (2026-09-13, from design/mockups/victory-redesigns.html C) ---------- */
.vmodal { color: var(--text); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #2b2113, #1e160c 58%, #171006); border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .06); }
.vmodal.loss { background: linear-gradient(180deg, #231a20, #1a1319 58%, #120d10); }
.vmodal.draw { background: linear-gradient(180deg, #262013, #1c170c 58%, #151106); }
.vc .bigword { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: 6px; }
.vc.win .bigword { color: var(--gold2); text-shadow: 0 0 26px rgba(226, 178, 100, .4), 0 2px 0 #6b4d1e; }
.vc.loss .bigword { color: #c9d4e0; text-shadow: 0 0 22px rgba(120, 150, 180, .25); }
.vc.draw .bigword { color: #e8d9a8; text-shadow: 0 0 20px rgba(200, 180, 100, .25); }
.vc { width: 720px; max-width: 94vw; min-height: 440px; padding: 0 0 24px; display: flex; flex-direction: column; align-items: center; }
.vc-stage { position: relative; width: 100%; height: 250px; overflow: hidden; display: block; }
.vc-rays { position: absolute; left: 50%; top: 40%; width: 560px; height: 560px; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(226, 178, 100, .10) 0deg 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 34%, transparent 66%); mask: radial-gradient(circle, #000 0 34%, transparent 66%);
  animation: vc-rays 26s linear infinite; }
.vc.loss .vc-rays { background: repeating-conic-gradient(from 0deg, rgba(120, 150, 180, .08) 0deg 9deg, transparent 9deg 18deg); }
@keyframes vc-rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.vc-fell { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); width: 134px; height: 134px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: "Segoe UI Symbol", serif; font-size: 64px;
  background: radial-gradient(circle at 38% 30%, #5a4a30, #241b10 76%); border: 3px solid #a8894c; color: #f0e0ba;
  box-shadow: 0 0 0 6px rgba(12, 8, 3, .4), 0 10px 30px rgba(0, 0, 0, .6); filter: grayscale(.25);
  animation: vc-crackin .55s ease-out; }
.vc.win .vc-fell { border-color: #c9a45c; box-shadow: 0 0 0 6px rgba(12, 8, 3, .4), 0 0 60px rgba(226, 178, 100, .4), 0 10px 30px rgba(0, 0, 0, .6); }
.vc.loss .vc-fell { animation: none; }
@keyframes vc-crackin { from { transform: translateX(-50%) scale(1.06); opacity: 0; } }
.vc-crown { position: absolute; top: -16px; right: -20px; font-size: 26px; transform: rotate(28deg); }
.vc.loss .vc-crown { display: none; }
.vc-emb { position: absolute; bottom: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0; animation: vc-embers 3.2s linear infinite; }
@keyframes vc-embers { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translateY(-120px); opacity: 0; } }
.vc-word { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; text-shadow: 0 4px 18px rgba(12, 8, 3, .9); }
.vc-word .bigword { font-size: 44px; }
.vc-sub { margin-top: 2px; font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.vc-chips { margin-top: 16px; display: flex; gap: 10px; }
.dchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; border-radius: 7px; padding: 6px 12px; border: 1px solid; letter-spacing: .6px; }
.dchip.up { color: #7fd8a0; border-color: #2c5a3d; background: rgba(63, 174, 98, .12); }
.dchip.star { color: var(--star); border-color: #6b5222; background: rgba(226, 178, 100, .10); }
.dchip.dn { color: #ff9d7a; border-color: #5a2c1a; background: rgba(255, 120, 71, .10); }
.dchip.eq { color: var(--muted); border-color: var(--line2); background: rgba(51, 39, 24, .5); }
.vc-act { margin-top: 20px; display: flex; gap: 12px; }
.vbtn { font-family: inherit; font-weight: 800; letter-spacing: 1.6px; border-radius: 12px; padding: 12px 26px; font-size: 14px; cursor: pointer; }
.vbtn.seal { background: linear-gradient(180deg, #f0c87e, #d9a558); color: #241503; border: 1px solid #8a6a35; box-shadow: 0 6px 22px rgba(226, 178, 100, .3); }
.vbtn.seal.cold { background: linear-gradient(180deg, #5a6a7c, #3c4a5c); color: #eef4fa; border-color: #2c3844; box-shadow: 0 6px 22px rgba(60, 80, 100, .3); }
.vbtn.ghost { background: transparent; border: 1px solid var(--line); color: var(--sec); }
@media (max-width: 760px) { .vc { min-height: 380px; } .vc-word .bigword { font-size: 34px; } .vc-fell { width: 104px; height: 104px; font-size: 50px; } }

/* ---------- play view · Versus Stage (2026-09-13, from design/mockups/lobby-redesigns.html C) ---------- */
.kick { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.kick::before, .kick::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep, #8a6a35)); }
.kick::after { background: linear-gradient(90deg, var(--gold-deep, #8a6a35), transparent); }
.kick span { font-size: 11px; font-weight: 700; letter-spacing: 3.5px; color: var(--gold); white-space: nowrap; }
.kick b { color: #f5d9a8; font-weight: 800; }
.vsgrid { position: relative; display: flex; gap: 16px; }
.vspane { flex: 1; min-width: 0; border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); }
.vs-you { background: linear-gradient(180deg, #191208, #151006); border-color: rgba(226, 178, 100, .3); }
.vs-foe { background: linear-gradient(180deg, #1e1510, #171008); border-color: #5a462a; text-align: center; }
.vs-lab { font-size: 10px; letter-spacing: 3px; color: var(--muted); margin-bottom: 14px; }
.vsbadge { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 2; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: #120d06; border: 2px solid #6a5232;
  box-shadow: 0 0 0 5px var(--bg), 0 0 30px -4px rgba(226, 178, 100, .8);
  font-family: Georgia, serif; font-style: italic; font-weight: 800; font-size: 23px; color: var(--gold); letter-spacing: 1px; }
.vscolors { display: flex; gap: 12px; }
.vscolors .colorbtn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 10px;
  text-align: center; background: #1a1309; border-radius: 13px; }
.vscolors .colorbtn:hover { border-color: var(--gold-deep, #8a6a35); }
.vscolors .colorbtn.sel { box-shadow: 0 0 18px -4px rgba(226, 178, 100, .45); background: #1d150c; }
.cw { position: relative; display: grid; place-items: center; flex: none; }
.checker { display: block; width: 52px; height: 52px; border-radius: 9px;
  background: conic-gradient(var(--sq-light) 0 25%, var(--sq-dark) 0 50%, var(--sq-light) 0 75%, var(--sq-dark) 0);
  box-shadow: inset 0 0 0 1px rgba(226, 178, 100, .25); }
.pg { position: absolute; font-size: 34px; }
.pg.w { color: #f2ead8; text-shadow: 0 2px 3px rgba(0, 0, 0, .7); }
.pg.b { color: #2a2013; text-shadow: 0 1px 1px rgba(240, 230, 210, .45); }
.vscolors .colorbtn .t { display: block; }
.vscolors .colorbtn b { display: block; font-size: 15px; }
.vscolors .colorbtn small { font-size: 10.5px; color: var(--muted); letter-spacing: .4px; font-weight: 400; }
.armysnap { margin-top: 16px; }
.armysnap .lab { font-size: 9.5px; letter-spacing: 2px; color: var(--muted); margin-bottom: 7px; }
.mini { display: grid; grid-template-columns: repeat(8, 26px); width: fit-content; }
.mini i { width: 26px; height: 26px; display: grid; place-items: center; font-style: normal; font-size: 16px; color: #f0e6d2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.mini i:nth-child(odd) { background: var(--sq-dark); }
.mini i:nth-child(even) { background: var(--sq-light); }
.mini i:nth-child(n+9) { filter: brightness(.92); }
.armysnap > small { display: block; margin-top: 7px; font-size: 9.5px; color: var(--muted); }
.autosw { display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: #1a1309; border: 2px solid var(--line);
  border-radius: 13px; cursor: pointer; margin-top: 16px; }
.autosw .sw { flex: none; width: 40px; height: 22px; border-radius: 999px; background: #120c05; border: 1px solid var(--line); position: relative; }
.autosw .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.autosw.on { border-color: var(--gold-deep, #8a6a35); }
.autosw.on .sw { background: #2a1f0e; border-color: var(--gold-deep, #8a6a35); }
.autosw.on .sw::after { left: auto; right: 2px; background: var(--gold); box-shadow: 0 0 8px rgba(226, 178, 100, .7); }
.autosw b { font-size: 12.5px; letter-spacing: 1px; color: var(--sec); }
.autosw b .on { color: var(--gold); }
.autosw small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }
.vs-foe .cameo { position: relative; width: 112px; height: 112px; margin: 2px auto 12px; display: grid; place-items: center; border-radius: 14px;
  background: repeating-conic-gradient(from 0deg, rgba(226, 178, 100, .10) 0 9deg, rgba(226, 178, 100, .02) 9deg 18deg),
              radial-gradient(circle at 50% 42%, #3a2d18, #1a130a 75%);
  box-shadow: inset 0 0 0 1px rgba(226, 178, 100, .25), inset 0 0 24px rgba(0, 0, 0, .6); }
.vs-foe .cameo::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(226, 178, 100, .28); border-radius: 10px; }
.vs-foe .cameo .g { font-family: Georgia, serif; font-size: 58px; line-height: 1; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.vs-foe .cameo.t-god .g { font-size: 46px; }
.fname { font-family: Georgia, 'Times New Roman', serif; font-variant: small-caps; font-size: 27px; letter-spacing: 2px; color: var(--text); line-height: 1.05; }
.fmeta { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 9px 0 10px; flex-wrap: wrap; }
.elochip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #120c05; border: 1px solid var(--line);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.pips { font-size: 10px; letter-spacing: 3px; color: var(--gold-deep, #8a6a35); }
.pips i { font-style: normal; color: var(--gold); text-shadow: 0 0 6px rgba(226, 178, 100, .6); }
.fdesc { font-size: 12.5px; color: var(--sec); line-height: 1.5; max-width: 360px; margin: 0 auto; min-height: 57px; } /* floor = 3 lines (god desc) — tier swaps must never resize the stage */
.fscout { display: flex; gap: 8px; margin-top: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.unk { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: #120c05;
  border: 1px dashed var(--line); color: var(--muted); font-size: 11.5px; }
.unk b { color: var(--sec); font-weight: 700; }
.scoutlab { font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.t-bronze { color: #c98a4e; }
.t-silver { color: #c9d1dc; }
.t-gold { color: var(--gold); }
.t-god { color: #f5d9a8; text-shadow: 0 0 18px rgba(245, 217, 168, .55); }
.vs-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 10px; margin-top: 16px; }
.vs-roster .botcard h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-roster .botcard { position: relative; padding: 11px 8px 10px; background: #1a1309; border: 1.5px solid var(--line); border-radius: 12px;
  cursor: pointer; text-align: center; transition: transform .12s, border-color .12s, box-shadow .12s; }
.vs-roster .botcard:hover { transform: translateY(-2px); border-color: #6a5232; }
.vs-roster .botcard.sel { border-color: var(--gold); box-shadow: 0 0 16px -4px rgba(226, 178, 100, .5); }
.vs-roster .botcard .rg { display: block; font-family: Georgia, serif; font-size: 24px; line-height: 1; }
.vs-roster .botcard h3 { margin: 6px 0 0; font-size: 11px; letter-spacing: 1px; color: var(--text); font-variant: small-caps; font-weight: 700; }
.vs-roster .botcard .rating { margin-top: 4px; font-size: 10px; letter-spacing: .5px; }
.vs-roster .botcard .pips { display: block; margin-top: 4px; font-size: 8px; letter-spacing: 2px; }
.vsactions { display: flex; flex-direction: column; align-items: center; margin-top: 20px; }
/* BEGIN seal lives inside the YOUR SIDE pane (2026-09-16 user ask) — pane-wide terminal action */
.vs-you .begin { width: 100%; min-width: 0; margin: 18px 0 2px; }
.hintline { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--muted); letter-spacing: .3px; }
.hintline b { color: var(--sec); }

/* BEGIN — chamfered conquest seal */
.begin { position: relative; display: block; margin: 0 auto; min-width: 460px; padding: 3px; border: none; cursor: pointer;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  background: linear-gradient(180deg, #f7e3b8, #6a5232 55%, #c99a4e);
  filter: drop-shadow(0 8px 24px rgba(226, 178, 100, .38)); animation: beginPulse 3.4s ease-in-out infinite; }
@keyframes beginPulse {
  0%, 100% { filter: drop-shadow(0 8px 22px rgba(226, 178, 100, .35)); }
  50% { filter: drop-shadow(0 8px 34px rgba(226, 178, 100, .62)); }
}
.begin .bin { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; height: 56px; padding: 0 38px;
  overflow: hidden;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  background: linear-gradient(180deg, #f5d9a8 0%, #e2b264 48%, #c99a4e 100%);
  box-shadow: inset 0 2px 0 rgba(255, 246, 224, .55), inset 0 -3px 0 rgba(96, 64, 22, .5), inset 0 0 0 1px rgba(255, 235, 200, .25);
  color: #241708; font: 800 17px/1 "Segoe UI", Arial, sans-serif; letter-spacing: 3px; transition: filter .15s, transform .1s; }
.begin .bin::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 62%); transform: translateX(-130%); }
.begin .bin::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(circle 2.5px at 12px 12px, rgba(84, 56, 16, .75) 0 2.5px, transparent 3px),
  radial-gradient(circle 2.5px at calc(100% - 12px) 12px, rgba(84, 56, 16, .75) 0 2.5px, transparent 3px),
  radial-gradient(circle 2.5px at 12px calc(100% - 12px), rgba(84, 56, 16, .75) 0 2.5px, transparent 3px),
  radial-gradient(circle 2.5px at calc(100% - 12px) calc(100% - 12px), rgba(84, 56, 16, .75) 0 2.5px, transparent 3px); }
.begin:hover .bin { filter: brightness(1.07); }
.begin:hover .bin::before { transform: translateX(130%); transition: transform .55s; }
.begin:active .bin { transform: translateY(1px); }
.begin .b-orn { font-size: 15px; color: #6a4a1c; }
.begin .cost { font-style: normal; padding: 5px 13px; border-radius: 8px; background: rgba(30, 20, 6, .88); color: #f5d9a8;
  font-size: 13px; letter-spacing: 1px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(245, 217, 168, .3); }
@media (prefers-reduced-motion: reduce) { .begin { animation: none; } }
.recline { display: flex; gap: 22px; justify-content: center; align-items: baseline; margin: 18px auto 0; padding: 9px 26px;
  background: #141009; border: 1px solid var(--line2, #2a2013); border-radius: 999px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.recline b { color: var(--text); font-family: Georgia, serif; font-size: 15px; margin-right: 3px; }
.recline .sep { color: var(--line); }
.rulz { margin: 14px auto 0; width: fit-content; max-width: 780px; text-align: center; }
.rulz summary { cursor: pointer; font-size: 10px; letter-spacing: 2.5px; color: var(--muted); list-style: none; }
.rulz summary::-webkit-details-marker { display: none; }
.rulz summary::before { content: "◆ "; color: var(--gold-deep, #8a6a35); }
.rulz[open] summary { color: var(--gold); }
.rulz p { margin: 10px 0 0; font-size: 12.5px; color: var(--sec); line-height: 1.55; text-align: left; }
.rulz p.note { color: var(--muted); font-size: 11.5px; }
@media (max-width: 1100px) {
  .vsgrid { flex-direction: column; }
  .vsbadge { display: none; }
  .begin { min-width: 0; width: 100%; }
}

/* ---------- THE SUMMONING lobby (B, 2026-09-17 — design/mockups/lobby-redesigns-2.html)
   The attacker always marches White; the foe is a drawn gate from the Elo-category pool.
   Replaces the Versus Stage (left pane + color pick + tier cards are gone). ---------- */
.summon { display: flex; flex-direction: column; align-items: center; }
.arcade { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; margin-top: 6px; }
.arcade .ghost { flex: none; width: 86px; height: 118px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #171006, #120c05); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px; opacity: .55; }
.arcade .ghost .gz { font-family: Georgia, serif; font-size: 30px; color: #171006;
  filter: drop-shadow(0 0 6px rgba(226, 178, 100, .3)); }
.arcade .ghost .gr { display: flex; gap: 3px; }
.arcade .ghost .gr i { width: 4px; height: 4px; border-radius: 50%; background: #3f3220; }
.arcade .ghost small { font-size: 7.5px; letter-spacing: 1.5px; color: #5c4f38; font-weight: 800; }
.arcade .ghost.g2 { transform: translateY(9px); opacity: .38; }
.arcade .ghost.g1 { transform: translateY(15px); opacity: .22; }
.arcade .spot { flex: none; position: relative; width: 122px; height: 128px; border-radius: 14px;
  border: 1px solid #6d5426; background: radial-gradient(circle at 50% 34%, #3a2d18, #1a130a 78%);
  box-shadow: 0 0 0 1px rgba(226, 178, 100, .2), 0 0 34px rgba(226, 178, 100, .16), inset 0 0 24px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.arcade .spot::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(226, 178, 100, .3); border-radius: 9px; }
.arcade .spot .mystery .msil { font-size: 54px; }
.arcade .spot .mystery .mq { font-size: 22px; }
.arcade .spot .sealtag { font-size: 8px; letter-spacing: 2.5px; color: var(--gold); font-weight: 800; }
.catplate { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 14px;
  padding: 7px 18px; border-radius: 999px; border: 1px solid var(--line); background: #141009;
  font-size: 10px; letter-spacing: 2px; color: var(--muted); font-weight: 700; text-align: center; }
.catplate b { color: #c98a4e; letter-spacing: 2.5px; }
.catplate .dot { width: 4px; height: 4px; border-radius: 50%; background: #3f3220; }
.dgate { width: 470px; max-width: 100%; margin-top: 14px; }
.dgate .vs-lab { text-align: left; }
.fmirror { margin-top: 5px; font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.fmirror b { color: #c98a4e; }
.dgate .begin { margin-top: 14px; }
.stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 560px; max-width: 100%; margin-top: 14px; }
.st { border-radius: 10px; border: 1px solid var(--line); background: #141009; padding: 9px 10px; text-align: center; }
.st .k { font-size: 8.5px; letter-spacing: 2.5px; color: var(--muted); font-weight: 800; }
.st .v { font-family: Georgia, serif; font-size: 16px; margin-top: 3px; color: var(--text); font-variant-numeric: tabular-nums; }
.st .m { font-size: 9px; color: #5c4f38; margin-top: 2px; }
.st.win { border-color: #4a5a3a; }
.st.win .v { color: #a8c89a; }
.st.loss { border-color: #5a3a2a; }
.st.loss .v { color: #d98a6a; }
@media (max-width: 760px) {
  .arcade .ghost { display: none; }
  .dgate { width: 100%; }
  .kick span { white-space: normal; text-align: center; line-height: 1.7; }
}

/* ---------- promotion — "THE CORONATION" (A, user-picked 2026-09-18; design/mockups/promo-redesigns.html) ---------- */
.pcA-frame { display: grid; grid-template-columns: 168px 1fr; gap: 18px; text-align: left; margin: 6px 0 0; }
.pcA-dais { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-right: 1px dashed var(--line); padding-right: 16px; }
.pcA-dais .pcA-pawn { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 12px;
  font-family: Georgia, serif; font-size: 40px; color: #f5d9a8;
  background: radial-gradient(circle at 50% 34%, #3a2d18, #1a130a 78%);
  border: 1.5px solid #e2b264; box-shadow: 0 0 0 1px rgba(226, 178, 100, .35), 0 0 18px rgba(226, 178, 100, .3); }
.pcA-dais .pcA-rise { font-family: Georgia, serif; color: #8a7a5c; font-size: 15px; line-height: 1; }
.pcA-dais .pcA-rk { font-size: 8.5px; letter-spacing: 2.5px; color: #e2b264; font-weight: 800; text-align: center; line-height: 1.9; }
.pcA-dais .pcA-rk span { display: block; color: #8a7a5c; }
.pcA-seal { margin-top: 2px; padding: 9px 24px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(180deg, #f0cf96, #c89a55); color: #241708; font: 800 11.5px "Segoe UI", Arial, sans-serif;
  letter-spacing: 2px; box-shadow: 0 0 14px rgba(226, 178, 100, .3); }
.pcA-seal:hover { filter: brightness(1.07); }
.pcA-cands { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pcA-grp { font-size: 8.5px; letter-spacing: 2.5px; color: #5c4f38; font-weight: 800; margin: 4px 0 0; }
.pcA-writ { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid #3f3220; background: linear-gradient(180deg, #1d1509, #171008); min-width: 0;
  transition: border-color .12s, transform .12s, box-shadow .12s; }
.pcA-writ:hover { border-color: #8a6a35; transform: translateX(3px); }
.pcA-writ.sel { border-color: #e2b264; box-shadow: 0 0 16px rgba(226, 178, 100, .22); }
.pcA-fig { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px;
  background: #120c05; border: 1.5px solid #3f3220; font-family: Georgia, serif; font-size: 22px; color: #c0b090; }
.pcA-fig.rare { border-color: #2a4a7a; color: #7aa8e0; }
.pcA-fig.epic { border-color: #6a3a97; color: #c49af0; box-shadow: 0 0 8px rgba(168, 85, 247, .2); }
.pcA-fig.legendary { border-color: #7a5a10; color: #f0b45c; box-shadow: 0 0 8px rgba(245, 158, 11, .22); }
.pcA-writ.sel .pcA-fig, .pcA-writ:hover .pcA-fig { border-color: #e2b264; color: #f5d9a8; }
.pcA-mid { flex: 1; min-width: 0; }
.pcA-nm { display: block; font: 700 14px Georgia, serif; font-variant: small-caps; letter-spacing: .5px; color: #f0e6d2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcA-tags { display: flex; gap: 6px; margin-top: 4px; align-items: center; flex-wrap: wrap; }
.pcA-rchip { padding: 2px 9px; border-radius: 999px; font-size: 8.5px; font-weight: 800; letter-spacing: 1.5px; }
.pcA-rchip.common { border: 1px solid #3f3220; color: #8a7a5c; }
.pcA-rchip.classic { border: 1px solid #6d5426; color: #c9b58a; }
.pcA-rchip.rare { border: 1px solid #2a4a7a; color: #7aa8e0; }
.pcA-rchip.epic { border: 1px solid #6a3a97; color: #c49af0; }
.pcA-rchip.legendary { border: 1px solid #7a5a10; color: #f0b45c; }
.pcA-ebadge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 8.5px; font-weight: 800; letter-spacing: 1.5px; border: 1px solid; }
.pcA-copies { font-size: 9px; letter-spacing: 1px; color: #5c4f38; font-weight: 700; }
.pcA-rhs { display: flex; gap: 12px; align-items: center; }
.pcA-rhs .st { display: inline-flex; align-items: center; gap: 4px; font: 700 12.5px Georgia, serif; color: #f0e6d2; font-variant-numeric: tabular-nums; }
.pcA-rhs .st svg { color: #8a7a5c; }
.pcA-law { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
  border-top: 1px dashed #3a2b16; padding-top: 10px; font-size: 10.5px; color: #8a7a5c; line-height: 1.6; text-align: center; }
.pcA-law b { color: #c0b090; }
@media (max-width: 820px) {
  .pcA-frame { grid-template-columns: 1fr; }
  .pcA-dais { border-right: none; border-bottom: 1px dashed var(--line); padding: 0 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .pcA-writ { transition: none; } }

/* ---------- dev console (2026-09-13 — mock gems moved here from the top bar) ---------- */
.dvs { margin: 0 0 16px; color: var(--sec); font-size: 13.5px; max-width: 760px; line-height: 1.55; }
.dvgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.dvcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.dv-hd { font-size: 10.5px; letter-spacing: 2.5px; color: var(--gold); margin-bottom: 12px; }
.dv-gems { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dv-gems .gic { font-size: 26px; }
.dv-gems b { font-family: Georgia, serif; font-size: 34px; color: #8fc2ff; line-height: 1; font-variant-numeric: tabular-nums; }
.dv-gems small { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.dvrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.dvrow .btn { padding: 8px 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.dv-sub { margin: 12px 0 8px; font-size: 9.5px; letter-spacing: 2px; color: var(--muted); }
.dv-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line2, #2a2013); font-size: 12.5px; color: var(--sec); }
.dv-kv:last-of-type { border-bottom: none; }
.dv-kv b { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.dv-links { display: flex; flex-direction: column; gap: 6px; }
.dv-links a { color: var(--gold); font-size: 13px; text-decoration: none; }
.dv-links a:hover { text-decoration: underline; color: #f5d9a8; }
.dvcard.dv-danger { border-color: rgba(255, 120, 71, .35); }
.dvcard .note a { color: var(--gold); text-decoration: none; }
.dvcard .note a:hover { text-decoration: underline; color: #f5d9a8; }
.dv-wipe { width: 100%; justify-content: flex-start; }
.dv-wipe .rs-tx { display: block; text-align: left; color: #ffb08a; letter-spacing: 1px; font-weight: 700; }
.dv-wipe b { color: #fff0d8; letter-spacing: 1px; }

/* ===== Elo ladder + the hidden 26th god (design/elo-ranking.md — 2026-09-13) ===== */

/* header Elo + rank chip */
.pnx-coin.elo { cursor: default; }
.pnx-coin.elo b { font-family: Georgia, serif; color: var(--gold); font-size: 15px; }
.pnx-coin.elo #h-rank { color: var(--sec); font-size: 11px; letter-spacing: 1px; font-variant: small-caps; }
.pnx-coin.elo #h-unranked { color: var(--muted); font-size: 9.5px; letter-spacing: .5px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; }

/* lobby: composition readout + live odds on every card; odds under the featured foe */
.bcomp { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 6px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bcomp .rds { display: inline-flex; gap: 3px; align-items: center; }
.rd { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.rd.l { background: #f59e0b; } .rd.e { background: #a855f7; } .rd.r { background: #3b82f6; }
.rd.a { color: var(--gold); font-style: normal; font-size: 11px; width: auto; height: auto; background: none; }
.bodds { margin-top: 5px; font-size: 9.5px; color: var(--sec); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: .2px; }
.vs-roster .botcard { padding-bottom: 9px; }
.fodds { min-height: 18px; margin-top: 8px; font-size: 12.5px; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.vs-foe .fscout { min-height: 56px; align-content: center; } /* scout line ↔ retinue preview swap never shifts the pane */

/* god retinue preview chips (featured panel + Magnus card) */
.retchip { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--rarc, #6b7280); border-radius: 6px; background: #120c05; font-size: 14px; line-height: 1; }
.retchip.aeg { box-shadow: 0 0 0 1.5px rgba(226, 178, 100, .55), 0 0 10px rgba(226, 178, 100, .4); }

/* the pantheon seat — fixed-height region in YOUR SIDE; god tier = matchmaking, never a pick */
.godpick { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .22); padding: 10px; height: 158px; display: flex; flex-direction: column; transition: opacity .15s; }
.godpick.off { opacity: .55; }
.gp-hint { margin: auto; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.55; padding: 0 10px; }
.gp-hint b { color: var(--gold); letter-spacing: 1px; }
.gp-mm { margin: auto; text-align: center; padding: 0 12px; }
.gp-mm-t { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--gold); }
.gp-mm p { margin: 6px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.gp-mm p b { color: var(--sec); }

/* mystery foe (2026-09-14): backlit king silhouette + gold ? — the dice is retired */
.mystery { position: relative; display: inline-block; line-height: 1; }
.mystery .msil { font-family: Georgia, serif; color: #171006; filter: drop-shadow(0 0 7px rgba(226, 178, 100, .55)) drop-shadow(0 0 20px rgba(226, 178, 100, .22)); }
.mystery .mq { position: absolute; top: -.16em; right: -.58em; font-family: Georgia, serif; font-weight: 700; color: var(--gold); text-shadow: 0 0 10px rgba(226, 178, 100, .9); transform: rotate(10deg); }
.vs-foe .cameo .mystery .msil { font-size: 66px; }
.vs-foe .cameo .mystery .mq { font-size: 26px; }
.gp-mm .mystery .msil { font-size: 38px; }
.gp-mm .mystery .mq { font-size: 17px; }

/* the ambush reveal — Magnus, the hidden 26th (§5b) */
.magcard { text-align: center; min-width: 460px; }
.mag-kick { font-size: 10px; letter-spacing: 3px; color: #ff5a4e; margin-bottom: 10px; }
.mag-name { font-family: Georgia, serif; font-size: 44px; letter-spacing: 6px; color: var(--gold); text-shadow: 0 0 24px rgba(226, 178, 100, .35); }
.mag-sub { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); margin: 6px 0 14px; }
.mag-ret { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.mag-ret .retchip { width: 30px; height: 30px; border-radius: 7px; font-size: 17px; }
.mag-odds { font-size: 15px; color: var(--gold); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.mag-note { font-size: 12.5px; color: var(--sec); max-width: 430px; margin: 0 auto 14px; line-height: 1.55; }
.mag-note b { color: var(--text); }

/* ---------- combat juice (J1): check drama (design/combat-juice.md).
   The SUPER cut-in overlay (#cg-cutin family + .cg-flash) was removed 2026-09-13
   after live play — user: too much flashing. Kills play the standard kit. ---------- */
.cg-vig { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(200, 40, 20, .5) 100%); }
.cg-rim { position: absolute; inset: 2px; border: 3px solid var(--red); border-radius: 6px; pointer-events: none; z-index: 5; }

/* ---------- tournament (2026-09-14): page stubbed — bracket play among the seeded
   gods; the spec comes another day (open-questions). Placeholder keeps a fixed
   min-height so the view never shifts. ---------- */
.tourney-soon { margin: 26px auto 0; max-width: 540px; min-height: 300px; border: 1px dashed var(--line); border-radius: 16px; background: rgba(0, 0, 0, .22); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 26px; }
.tourney-soon .ts-cup { font-size: 46px; filter: drop-shadow(0 0 18px rgba(226, 178, 100, .35)); }
.tourney-soon .ts-kick { font-size: 11px; font-weight: 700; letter-spacing: 4px; color: var(--gold); }
.tourney-soon p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 400px; }

/* ---------- collection · full-permutation matrix toolbar (2026-09-14) ----------
   806 cells (stock 6 + 400 base + 400 ✦ twins): filter select row + result count +
   pager. #col-body keeps a 4-row min-height on desktop so paging/filtering never
   toggles the scrollbar (constant-height LOCK). ---------- */
.colbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: end; margin: 14px 0 12px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.cbsel { display: flex; flex-direction: column; gap: 3px; }
.cbsel > span { font-size: 9.5px; font-weight: 700; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase; }
.cbsel select { background: var(--panel2); border: 1px solid #6a5232; color: var(--text);
  border-radius: 8px; padding: 6px 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; min-width: 108px; }
.axtag { color: var(--gold); font-weight: 700; }
.col-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--muted); text-align: center; padding: 40px 16px; font-size: 13px; }
.colpager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 6px; }
.colpager .btn { padding: 7px 16px; font-size: 13px; }
.colpager .btn:disabled { opacity: .38; cursor: default; }
.pginfo { font-size: 12.5px; color: var(--sec); font-variant-numeric: tabular-nums; }
.pginfo b { color: var(--gold); }
@media (min-width: 1100px) { #view-collection #col-body { min-height: 1072px; } }

/* ---------- PANTHEON (2026-09-14): #view-ranks "Throne of Light" + #view-shrine "The Shrine"
   (design/mockups/leaderboard-redesigns.html A + profile-redesigns.html A, user pick).
   Canonical: docs/wiki/pantheon.md · open-questions §30. All sigils are inline SVG —
   no emojis on these two pages. Countdown ticks are text-only (constant-height LOCK). ---------- */
.pan-mono { font-family: Consolas, monospace; font-variant-numeric: tabular-nums; }
.dimpan { color: #6f5f45; }
.med { position: relative; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none;
  font-family: "Segoe UI Symbol", Georgia, serif; background: radial-gradient(circle at 50% 32%, #33240f, #17100a 78%);
  box-shadow: inset 0 0 0 2px rgba(226, 178, 100, .28), 0 4px 14px rgba(0, 0, 0, .55); }
.med i { font-style: normal; -webkit-text-stroke: 1.5px rgba(0, 0, 0, .55); paint-order: stroke fill; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.med::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(226, 178, 100, .16); pointer-events: none; }
.med .pan-face { position: absolute; inset: 4px; border-radius: 50%; background-size: cover; background-position: center; display: block; }
.f-gold { box-shadow: inset 0 0 0 3px rgba(226, 178, 100, .8), 0 0 26px rgba(226, 178, 100, .32) !important; }
.f-silver { box-shadow: inset 0 0 0 3px rgba(201, 204, 212, .6), 0 0 18px rgba(201, 204, 212, .18) !important; }
.f-bronze { box-shadow: inset 0 0 0 3px rgba(205, 143, 78, .7), 0 0 20px rgba(205, 143, 78, .25) !important; }
.f-bone { box-shadow: inset 0 0 0 3px rgba(138, 130, 114, .6), 0 0 14px rgba(138, 130, 114, .15) !important; }
.f-radiant { box-shadow: inset 0 0 0 3px #f0c87e, 0 0 34px rgba(240, 200, 126, .45) !important; }
.f-eclipse { box-shadow: inset 0 0 0 3px #241503, inset 0 0 0 5px rgba(226, 178, 100, .8), 0 0 34px rgba(226, 178, 100, .4) !important; }

/* — the Throne of Light — */
.thr { max-width: 1060px; margin: 0 auto; position: relative; }
.thr-mast { display: flex; align-items: center; gap: 18px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.thr-brand { display: flex; align-items: center; gap: 10px; }
.thr-brand .kg { font-family: "Segoe UI Symbol", Georgia, serif; font-size: 30px; color: var(--gold); text-shadow: 0 0 14px rgba(226, 178, 100, .4); }
.thr-brand b { font-size: 16px; letter-spacing: 3.5px; color: var(--gold2, #f5d9a8); }
.thr-brand small { display: block; font-size: 8.5px; letter-spacing: 2.6px; color: var(--muted); margin-top: 2px; }
.thr-tag { margin: 0 auto; font-family: Georgia, serif; font-size: 15px; letter-spacing: 2.5px; color: var(--sec); font-style: italic; }
.thr-tag b { color: var(--gold); font-style: normal; }
.thr-season { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(22, 16, 9, .7); font-size: 11.5px; color: var(--sec); max-width: 700px; margin: 0 auto 14px; flex-wrap: wrap; }
.thr-season .k { font-size: 10px; letter-spacing: 2.2px; color: var(--muted); font-weight: 800; }
.thr-season b { color: var(--gold2, #f5d9a8); font-family: Consolas, monospace; }
.thr-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 18px 0 22px; }
.thr-ray { position: absolute; left: 50%; top: -120px; transform: translateX(-50%); width: 520px; height: 520px; pointer-events: none;
  background: conic-gradient(from 168deg at 50% 0%, transparent 40%, rgba(226, 178, 100, .09) 46%, rgba(245, 217, 168, .15) 50%, rgba(226, 178, 100, .09) 54%, transparent 60%); }
.thr-crownband { display: flex; align-items: flex-end; gap: 26px; position: relative; }
.thr-crown { width: 42px; height: 42px; fill: var(--gold); filter: drop-shadow(0 0 12px rgba(226, 178, 100, .5)); margin-bottom: 10px; }
.thr-crown svg { width: 100%; height: 100%; }
.thr-crown.flip { transform: scaleX(-1); }
.thr-heromed { width: 148px; height: 148px; font-size: 84px; color: #f5d9a8; background: radial-gradient(circle at 50% 30%, #4a3212, #1a1209 76%); }
.thr-herokick { font-size: 11px !important; letter-spacing: 2.8px !important; position: relative; }
.thr-heroname { font-family: Georgia, serif; font-size: 34px; font-weight: 700; letter-spacing: 1px; color: var(--gold2, #f5d9a8); text-align: center; position: relative; }
.thr-heroelo { font-family: Consolas, monospace; font-weight: 700; color: var(--gold); font-size: 52px; line-height: .95; letter-spacing: 1px; text-align: center; position: relative; }
.thr-heroelo small { display: block; font-size: 11px; letter-spacing: 2.5px; color: var(--muted); font-family: "Segoe UI", sans-serif; font-weight: 800; margin-bottom: 4px; }
.thr-heroelo span { font-size: 20px; color: var(--muted); font-family: "Segoe UI", sans-serif; font-weight: 700; letter-spacing: 0; }
.thr-herochips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; position: relative; }
.thr-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: 1.2px; font-weight: 700; white-space: nowrap;
  color: var(--sec); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; background: rgba(22, 16, 9, .7); }
.thr-chip svg { width: 11px; height: 11px; fill: var(--gold); flex: none; }
.thr-chip b { color: var(--gold2, #f5d9a8); font-family: Consolas, monospace; }
.thr-step { height: 12px; max-width: 980px; margin: 0 auto; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #3a2c18, #241b10); border: 1px solid var(--line); border-bottom: none; }
.thr-p23 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 18px auto 0; }
.thr-pcard { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: linear-gradient(180deg, rgba(36, 27, 16, .9), rgba(22, 16, 9, .9)); display: flex; gap: 14px; align-items: center; }
.thr-pcard .rk { position: absolute; top: -11px; left: 16px; font-size: 10px; letter-spacing: 2px; font-weight: 800; color: #241503; background: linear-gradient(180deg, #f0c87e, #d9a558); border-radius: 6px; padding: 3px 10px; }
.thr-pcard.silver { border-color: #3d4046; } .thr-pcard.silver .rk { background: linear-gradient(180deg, #e8eaf0, #aeb3bd); color: #191b1f; }
.thr-pcard.bronze { border-color: #4e3520; } .thr-pcard.bronze .rk { background: linear-gradient(180deg, #e6aa6e, #b97f42); color: #241305; }
.thr-pcard.you { border-color: var(--gold-deep, #8a6a35); box-shadow: 0 0 18px rgba(226, 178, 100, .22); }
.thr-p23med { width: 64px; height: 64px; font-size: 36px; }
.thr-p23id { min-width: 0; }
.thr-p23id .nm { font-family: Georgia, serif; font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thr-p23id .el b { font-family: Consolas, monospace; font-size: 16px; color: var(--gold2, #f5d9a8); }
.thr-p23id .el span { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; font-weight: 700; }
.thr-p23id .wk { font-size: 11px; color: var(--sec); margin-top: 3px; }
.thr-p23id .wk .up { color: #7fd8a0; } .thr-p23id .wk .dn { color: var(--red); } .thr-p23id .wk .zero { color: #6f5f45; }
.thr-ledger { max-width: 980px; margin: 22px auto 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(22, 16, 9, .55); overflow: hidden; }
.thr-lhead, .thr-lrow { display: grid; grid-template-columns: 64px 1fr 110px 150px; gap: 10px; align-items: center; padding: 9px 18px; }
.thr-lhead { padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 9.5px; letter-spacing: 2px; color: var(--muted); font-weight: 800; }
.thr-lhead .r, .thr-lrow .r { text-align: right; }
.thr-lrow { border-bottom: 1px solid #1c150c; font-size: 13px; }
.thr-lrow:last-of-type { border-bottom: none; }
.thr-lrow:hover { background: rgba(226, 178, 100, .05); }
.thr-lrow.isyou { background: rgba(226, 178, 100, .08); }
.thr-lrow .num { color: var(--muted); }
.thr-lrow .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thr-lrow .nm b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thr-lrow .nm small { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; }
.thr-rowmed { width: 26px; height: 26px; font-size: 14px; }
.thr-rowmed i { color: #8a7a5c; }
.thr-lrow .elo, .thr-lrow .wk.elo { text-align: right; }
.thr-lrow .elo { color: var(--gold2, #f5d9a8); font-size: 13.5px; }
.thr-lrow .wk { text-align: right; font-size: 11px; }
.thr-lrow .wk.up { color: #7fd8a0; } .thr-lrow .wk.dn { color: var(--red); } .thr-lrow .wk.zero { color: #6f5f45; }
.gatetag { font-size: 8.5px; letter-spacing: 1.6px; font-weight: 800; color: #241503; background: var(--gold); border-radius: 4px; padding: 2px 6px; margin-left: 8px; }
.thr-yourow { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: linear-gradient(90deg, rgba(226, 178, 100, .13), rgba(226, 178, 100, .04) 70%); border-top: 2px solid var(--gold-deep, #8a6a35); }
.thr-yourow .yk { font-size: 9.5px; letter-spacing: 2px; font-weight: 800; color: #241503; background: linear-gradient(180deg, #f0c87e, #d9a558); border-radius: 6px; padding: 3px 10px; flex: none; }
.thr-yourow .yid small { display: block; color: var(--muted); font-size: 10.5px; }
.thr-yourow .yelo { font-size: 19px; color: var(--gold2, #f5d9a8); }
.thr-yourow .ygap { margin-left: auto; font-size: 11.5px; color: var(--sec); }
.thr-yourow .ygap b { color: var(--gold2, #f5d9a8); font-family: Consolas, monospace; }
.thr-note { text-align: center; max-width: 860px; margin: 14px auto 0; }

/* — the Shrine — */
.shr { max-width: 760px; margin: 0 auto; position: relative; }
.shr-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.shr-rites { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 1.6px; font-weight: 800; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: rgba(22, 16, 9, .7); cursor: pointer; }
.shr-rites svg { width: 10px; height: 10px; fill: currentColor; }
.shr-rites.on { color: var(--gold2, #f5d9a8); border-color: var(--gold-deep, #8a6a35); border-style: dashed; }
.shr-framehint { font-size: 10px; letter-spacing: 1.6px; font-weight: 700; color: #6f5f45; }
.shr-alcove { position: relative; max-width: 560px; margin: 0 auto; padding: 34px 30px 24px; text-align: center;
  background: radial-gradient(320px 420px at 50% 0%, rgba(226, 178, 100, .10), transparent 74%); }
.shr-arch { position: absolute; inset: 0; border: 1px solid var(--line); border-bottom: none; border-radius: 280px 280px 0 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(0, 0, 0, .6); }
.shr-alcove .k { position: relative; }
.shr-alcovelab { margin-bottom: 16px; }
.shr-medwrap { position: relative; display: inline-block; }
.shr-bigmed { width: 172px; height: 172px; font-size: 96px; color: #f0e6d2; background: radial-gradient(circle at 50% 30%, #3a2a14, #17100a 76%); }
.shr-bigmed i { color: #f0e6d2; }
.med .pan-face, .med .thr-face, .med .shr-face { position: absolute; inset: 4px; border-radius: 50%; background-size: cover; background-position: center; display: block; }
.shr-facebtn { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: 1.8px; font-weight: 800;
  color: #241503; background: linear-gradient(180deg, #f0c87e, #d9a558); border: 1px solid var(--gold-deep);
  border-radius: 7px; padding: 4px 11px; cursor: pointer; font-family: inherit; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.shr-facebtn svg { width: 10px; height: 10px; fill: #241503; }
.thr-ctas { display: flex; gap: 10px; align-items: center; }
.dim { color: #6f5f45; }
.thr-p23id .delta.up { color: #7fd8a0; } .thr-p23id .delta.dn { color: var(--red); } .thr-p23id .delta.zero { color: #6f5f45; }
.shr-namewrap { margin-top: 20px; min-height: 46px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; position: relative; }
.shr-carve { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; letter-spacing: 1.6px; font-weight: 800; color: var(--gold2, #f5d9a8);
  border: 1px dashed var(--gold-deep, #8a6a35); border-radius: 6px; padding: 3px 8px; background: rgba(226, 178, 100, .07); cursor: pointer; font-family: inherit; }
.shr-carve svg { width: 9px; height: 9px; fill: var(--gold2, #f5d9a8); }
.shr-carve:hover { background: rgba(226, 178, 100, .14); }
.shr-name { font-family: Georgia, serif; font-size: 31px; font-weight: 700; letter-spacing: 1px; }
.shr-nameinp { font-family: Georgia, serif; font-size: 24px; font-weight: 700; letter-spacing: 1px; text-align: center; color: var(--gold2, #f5d9a8);
  background: #171006; border: 1px solid var(--gold-deep, #8a6a35); border-radius: 9px; padding: 2px 12px; width: 280px; max-width: 60vw; }
.shr-nameinp:focus, .shr-socinp:focus, .shr-bioinp:focus { outline: none; border-color: var(--gold); }
.shr-carveacts { display: inline-flex; gap: 8px; margin-left: 10px; }
.shr-carveacts .btn { padding: 5px 12px; font-size: 11px; }
.shr-kick { font-size: 10px; letter-spacing: 2.4px; color: var(--muted); margin-top: 8px; font-weight: 800; }
.shr-plinthwrap { min-height: 84px; margin-top: 8px; position: relative; }
.shr-plinthwrap .shr-carve { position: absolute; left: 50%; transform: translateX(-50%); top: -12px; z-index: 2; }
.shr-plinth { max-width: 430px; margin: 10px auto 0; border-top: 1px solid var(--gold-deep, #8a6a35); padding-top: 10px;
  font-style: italic; font-family: Georgia, serif; font-size: 14.5px; color: var(--sec); line-height: 1.55;
  overflow-wrap: anywhere; } /* a carved bio can be one unbreakable 140-char run — wrap it, never widen the page */
.shr-plinth.empty { color: #544832; font-style: normal; font-family: "Segoe UI", sans-serif; font-size: 12px; }
.shr-bioedit { max-width: 430px; margin: 6px auto 0; }
.shr-bioinp { display: block; width: 100%; background: #171006; border: 1px solid var(--gold-deep, #8a6a35); border-radius: 9px; color: var(--text); font-size: 13px; padding: 8px 10px; resize: vertical; font-family: inherit; }
.shr-biometa { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 6px; font-size: 10.5px; color: var(--muted); }
.shr-offerings { max-width: 720px; margin: 20px auto 0; }
.shr-plaqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.shr-plaq { border: 1px solid var(--line); border-radius: 11px; padding: 11px 15px 10px; background: rgba(22, 16, 9, .72); text-align: center; }
.shr-plaq .k { font-size: 9px; letter-spacing: 2.2px; color: var(--muted); font-weight: 800; }
.shr-plaq .v { font-size: 20px; font-weight: 800; margin-top: 3px; font-family: Consolas, monospace; color: var(--text); }
.shr-plaq .v.gold { color: var(--gold2, #f5d9a8); }
.shr-plaq .v.green { color: #7fd8a0; }
.shr-plaq .v i { font-style: normal; font-size: 12px; color: var(--muted); }
.shr-plaq .s { font-size: 10px; color: var(--muted); margin-top: 2px; }
.shr-socgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 560px; margin: 16px auto 0; }
.shr-socrow { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(22, 16, 9, .6); font-size: 12px; }
.shr-socrow.connected { border-color: #2c5a3d; }
.shr-socrow .sic { width: 14px; height: 14px; color: var(--muted); flex: none; }
.shr-socrow .sic svg { width: 100%; height: 100%; fill: currentColor; }
.shr-socrow.connected .sic { color: var(--gold); }
.shr-socrow .sl { font-weight: 700; }
.shr-socrow .shand { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shr-state { margin-left: auto; font-size: 9px; letter-spacing: 1.6px; font-weight: 800; border-radius: 5px; padding: 4px 9px; cursor: pointer; border: none; font-family: inherit; flex: none; }
.shr-state.on { color: #0e2412; background: #7fd8a0; }
.shr-state.off { color: var(--sec); background: transparent; border: 1px solid var(--line); }
.shr-state.off:hover { color: var(--gold2, #f5d9a8); border-color: var(--gold-deep, #8a6a35); }
.shr-socinp { flex: 1; min-width: 0; background: #171006; border: 1px solid var(--gold-deep, #8a6a35); border-radius: 7px; color: var(--text); font-size: 12px; padding: 6px 9px; }
.shr-note { text-align: center; max-width: 640px; margin: 16px auto 0; }
.shr-ladder { max-width: 560px; margin: 26px auto 0; }
.shr-lad { border-collapse: collapse; width: 100%; font-size: 12px; background: rgba(22, 16, 9, .5); }
.shr-lad th { font-size: 9px; letter-spacing: 1.8px; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.shr-lad td { padding: 7px 10px; border-bottom: 1px solid #1c150c; }
.shr-lad tr.cur td { background: rgba(205, 143, 78, .10); }
.shr-lad .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.sw-bone { background: #8a8272; } .sw-bronze { background: #cd8f4e; } .sw-silver { background: #c9ccd4; }
.sw-gold { background: var(--gold); } .sw-radiant { background: linear-gradient(90deg, #f0c87e, #fff2cf); }
.sw-eclipse { background: linear-gradient(90deg, #241503, var(--gold)); }
#chip-elo.clickable { cursor: pointer; }
#chip-elo.clickable:hover b { color: var(--gold); }
.pnx-nav .ic svg { width: 16px; height: 16px; fill: currentColor; display: block; margin: 0 auto; }
@media (max-width: 1100px) { .thr-p23 { grid-template-columns: 1fr; } .shr-socgrid { grid-template-columns: 1fr; } .thr-lhead, .thr-lrow { grid-template-columns: 44px 1fr 84px 100px; } }

/* ----- account chip (backend.md §8) ----- */
.acct-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px; padding: 5px 12px; color: #d8d3c8;
  font: 600 11px/1 "Inter", sans-serif; letter-spacing: 0.06em; cursor: pointer;
}
.acct-chip i { font-style: normal; color: #9a938a; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chip.in { border-color: rgba(212, 175, 55, 0.45); }
.acct-chip:hover { border-color: rgba(212, 175, 55, 0.6); color: var(--gold, #d4af37); }
.acct-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.acct-dot.gray { background: #6b7280; }
.acct-dot.gold { background: var(--gold, #d4af37); box-shadow: 0 0 6px rgba(212, 175, 55, 0.8); }

/* sign-in / account overlays — fixed frame, in-place content only */
.acct-wrap {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center;
  background: rgba(10, 8, 14, 0.72); backdrop-filter: blur(3px);
}
.acct-wrap.open { display: flex; }
.acct-card {
  position: relative; width: min(420px, 92vw); padding: 20px 20px 16px;
  background: var(--panel, #241b10);
  border: 1px solid var(--line, #4a3a22); border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}
.acct-card h3 { margin: 6px 0 4px; font-size: 21px; color: #efe9dc; }
.acct-kick { font: 700 10px/1 "Inter", sans-serif; letter-spacing: 0.22em; color: var(--gold, #d4af37); }
.acct-s { color: #a89f92; font-size: 12.5px; line-height: 1.5; margin: 6px 0 14px; }
.acct-row { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.acct-main { width: 100%; }
.acct-n { color: #6f6a61; font-size: 11px; margin-top: 10px; }
.acct-x {
  position: absolute; top: 8px; right: 10px; z-index: 5; background: none; border: 0;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: #cfc6b6; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px;
}
.acct-x:hover { color: var(--gold, #d4af37); background: rgba(255, 255, 255, 0.06); }
.acct-who { margin: 8px 0 12px; }
.acct-who b { display: block; font-size: 17px; color: #efe9dc; }
.acct-who span { color: #9a938a; font-size: 12px; }
/* connect modal (house-skinned thirdweb ConnectEmbed — Google/Apple/X only,
 * no injected-wallet door; the embed carries its own themed title) */
.acct-prov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.acct-tile {
  position: relative; padding: 16px 0 14px; text-align: center;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px; color: #d8d2c6; font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.acct-tile .soon {
  position: absolute; top: -8px; right: 7px; font-size: 8px; font-weight: 800; letter-spacing: 0.14em;
  background: #2a2417; color: #b9a06a; border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px; padding: 2px 7px;
}
.acct-status { min-height: 17px; margin: 9px 0 0; color: #c9a24a; font-size: 12px; }
.acct-status:empty { min-height: 0; height: 0; margin: 0; }
.acct-card [data-twembed] p { margin: 0; }
/* the embed IS the panel: melt its inner box into the house card */
#acct-dlg [data-twembed] > div { border: 0 !important; border-radius: 0 !important; }
/* header sits flush top-left, beside the × (Purrbook placement) */
#acct-dlg [data-twembed] div:has(> .tw-header) { padding-top: 0 !important; }
/* the title outdents slightly from the tile grid — panel chrome, not content */
.acct-card [data-twembed] .tw-header { margin-left: -12px !important; }
/* the embed's title row gets the house crown + gold accent */
.acct-card [data-twembed] .tw-header { color: var(--text, #f0e6d2) !important; }
.acct-card [data-twembed] .tw-header::before {
  content: ""; width: 24px; height: 24px; flex: 0 0 24px; display: inline-block; margin-right: 10px;
  background: center / contain no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e2b264" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 18h16M4 18l-1.5-9 5.5 4L12 6l4 7 5.5-4L20 18"/></svg>');
}

/* ---------- BUY GEMS · USDC (Base) ---------- */
#usdc-ov { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; background: rgba(8, 6, 2, 0.86); }
#usdc-ov.open { display: flex; }
.usdc-card {
  position: relative; width: min(500px, 94vw); max-height: 92vh; overflow-y: auto;
  padding: 22px 26px 18px; text-align: center;
  background: linear-gradient(180deg, #292013 0%, #1d150c 100%); border: 1px solid #6d5426; border-radius: 14px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(226, 178, 100, 0.12);
}
.usdc-stage { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.usdc-acts { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.usdc-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.usdc-plate {
  display: flex; flex-direction: column; gap: 3px; padding: 16px 8px 13px; border-radius: 12px; cursor: pointer;
  border: 1px solid #3a2c17; background: linear-gradient(180deg, #241a0e, #1a1208); color: var(--sec, #c0b090);
}
.usdc-plate:hover { border-color: var(--gold, #e2b264); box-shadow: 0 0 18px rgba(226, 178, 100, 0.25); transform: translateY(-2px); }
.usdc-plate .k { font-size: 9.5px; letter-spacing: 0.22em; font-weight: 800; color: var(--gold, #e2b264); }
.usdc-plate .g { font-family: Georgia, serif; font-size: 21px; color: #f0e6d2; }
.usdc-plate .u { font-family: Georgia, serif; font-size: 14px; color: #b9a06a; }
.usdc-note { font-size: 12px; color: var(--muted, #8a7a5c); line-height: 1.6; max-width: 400px; }
.usdc-note b { color: #f0e6d2; }
.usdc-inv { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.usdc-qr { padding: 8px; background: #f5ecd8; border-radius: 10px; }
.usdc-qr img { display: block; }
.usdc-amt { font-size: 20px; color: #ffd76a; }
.usdc-amt .serif { font-family: Georgia, serif; font-size: 34px; }
.usdc-amt small { color: var(--muted, #8a7a5c); font-size: 13px; }
.usdc-row { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 380px; justify-content: space-between;
  background: rgba(18, 12, 6, 0.6); border: 1px solid #352916; border-radius: 9px; padding: 7px 10px;
  font-size: 12px; color: var(--sec, #c0b090); }
.usdc-copy { background: none; border: 1px solid #4a3a22; border-radius: 7px; color: var(--gold, #e2b264);
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; padding: 3px 9px; cursor: pointer; }
.usdc-copy:hover { border-color: var(--gold, #e2b264); }
.usdc-count { font-size: 11px; color: var(--muted, #8a7a5c); letter-spacing: 0.1em; }
.usdc-count .serif { color: #f0e6d2; }
.usdc-status { min-height: 18px; font-size: 12.5px; color: #c9a24a; }
.usdc-fallback { width: 100%; max-width: 400px; font-size: 11px; color: var(--muted, #8a7a5c); text-align: left; }
.usdc-fallback summary { cursor: pointer; }
.usdc-fallback input { flex: 1; min-width: 0; background: #140d06; border: 1px solid #352916; border-radius: 7px; color: #f0e6d2; padding: 6px 9px; font-size: 11px; }
.usdc-acts .btn, .usdc-acts a.btn { min-width: 260px; text-align: center; text-decoration: none; }

/* ---------- themed scrollbars (app-wide; replaces the stock white bar) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #171006; border-radius: 5px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6e5630, #4a3823); border-radius: 5px; border: 2px solid #171006; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #c89a55, #8a6a3a); }
* { scrollbar-width: thin; scrollbar-color: #6e5630 #171006; }
