:root {
  --gold: #d2a94e;
  --gold-soft: rgba(210, 169, 78, 0.45);
  --gold-faint: rgba(210, 169, 78, 0.18);
  --ink: #ece4d2;
  --mute: #9b917d;
  --panel: rgba(11, 13, 19, 0.82);
  --panel-2: rgba(22, 24, 32, 0.9);
  --blue: #3d7bff;
  --red: #ff4a42;
  --green: #4dff9a;
  --serif: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --body: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #07080b; color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; touch-action: none; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(0,0,0,0.55) 100%); }
#flash { position: fixed; inset: 0; pointer-events: none; background: #fff; opacity: 0; mix-blend-mode: screen; }
.hidden { display: none !important; }

.eyebrow { font-family: var(--serif); font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--mute); }
.eyebrow.tiny { font-size: 9px; letter-spacing: 0.3em; }
.title { font-family: var(--serif); font-weight: 600; letter-spacing: 0.06em; color: #f1e3bf; margin: 8px 0; font-size: 34px; text-shadow: 0 2px 18px rgba(0,0,0,0.8), 0 0 30px rgba(210,169,78,0.18); }
.title.big { font-size: clamp(34px, 6vw, 64px); }
.italic { font-style: italic; color: var(--mute); font-size: 15px; }
.mute { color: var(--mute); }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; margin-top: 16px; }
.row.center { justify-content: center; }
.ico { display: inline-flex; width: 16px; height: 16px; vertical-align: -3px; }
.ico svg { width: 100%; height: 100%; }

.overlay { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 20; }
#loader { background: rgba(4,5,8,0.88); transition: opacity 0.8s; }
#loader.fade { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; }
.rule { width: 260px; height: 1px; background: var(--gold-faint); margin: 18px auto 14px; position: relative; overflow: hidden; }
.rule span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #8d2a22, var(--gold)); transition: width 0.3s; }

#skip { position: fixed; inset: 0; z-index: 19; background: transparent; border: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 40px;
  font-family: var(--serif); letter-spacing: 0.4em; font-size: 11px; color: rgba(210,169,78,0.7); text-transform: uppercase; }
.letterbox::before, .letterbox::after { content: ''; position: fixed; left: 0; right: 0; height: 9vh; background: #000; z-index: 18; transition: transform 0.8s; }
.letterbox::before { top: 0; } .letterbox::after { bottom: 0; }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--gold-soft); border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.02); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.panel.slim { padding: 8px 12px; }
.label { font-family: var(--serif); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mute); margin: 16px 0 8px; }
.hint { font-style: italic; color: var(--mute); font-size: 13.5px; margin-top: 8px; line-height: 1.35; }
.hint.mono { font-family: ui-monospace, monospace; font-style: normal; font-size: 11px; opacity: 0.8; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-faint), transparent); margin: 18px 0 4px; }

/* menu */
#menu { justify-content: flex-start; padding: 6vh 16px 20px; overflow-y: auto; background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0.15), rgba(0,0,0,0.55)); }
.menu-head { text-align: center; margin-bottom: 14px; }
.menu-head .sub { margin-top: 6px; }
.menu-panel { width: min(440px, 100%); padding: 18px 20px 20px; }
.foot-hint { margin-top: 16px; font-family: var(--serif); font-size: 10px; letter-spacing: 0.3em; color: rgba(236,228,210,0.45); text-transform: uppercase; text-align: center; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; padding: 9px 6px; background: rgba(255,255,255,0.03); border: 1px solid rgba(210,169,78,0.25); border-radius: 3px; cursor: pointer;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #cfc4ab; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button:hover { border-color: var(--gold); color: #fff; }
.seg button.on { background: linear-gradient(180deg, #d9b25d, #a9832f); color: #1a1408; border-color: #e8c877; box-shadow: 0 0 18px rgba(210,169,78,0.35); }
.side-tag { font-style: italic; color: var(--mute); font-size: 13px; display: flex; align-items: center; gap: 6px; margin: 10px 0 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); } .dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cards.bg { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.modal { overflow: hidden; }
#settings .label { margin: 12px 0 6px; }
#settings .toggle { padding: 7px 0; }
#settings .card .sw { height: 22px; margin-bottom: 4px; }

.card { padding: 6px 6px 7px; border: 1px solid rgba(210,169,78,0.22); border-radius: 4px; background: rgba(255,255,255,0.025); cursor: pointer; text-align: center; transition: all 0.2s; }
.card:hover { border-color: var(--gold); transform: translateY(-1px); }
.card.on { border-color: var(--gold); background: rgba(210,169,78,0.1); box-shadow: 0 0 0 1px rgba(210,169,78,0.4) inset, 0 0 16px rgba(210,169,78,0.2); }
.card .sw { height: 30px; border-radius: 3px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.card .nm { font-family: var(--serif); font-size: 10.5px; letter-spacing: 0.06em; color: #e8dcc0; }
.card .un { font-style: italic; font-size: 11px; color: var(--mute); }
.btn { flex: 1; padding: 12px 14px; border: 1px solid var(--gold-soft); background: rgba(0,0,0,0.4); border-radius: 4px; cursor: pointer; font-family: var(--serif); letter-spacing: 0.2em; font-size: 12.5px; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; color: #eadfc4; }
.btn:hover { border-color: var(--gold); background: rgba(210,169,78,0.12); }
.btn.gold { background: linear-gradient(180deg, rgba(210,169,78,0.25), rgba(120,80,20,0.35)); border-color: var(--gold); color: #fff3d6; box-shadow: 0 0 22px rgba(210,169,78,0.2); }

/* HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
#turn { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 10px; min-width: 132px; }
.turn-name { font-family: var(--serif); font-size: 16px; letter-spacing: 0.08em; }
.crest { width: 28px; height: 32px; display: inline-block; background-size: contain; background-repeat: no-repeat; background-position: center; }
.crest.sm { width: 14px; height: 16px; }
.crest.w { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M2 2h20v10c0 7-5 11-10 14C7 23 2 19 2 12z' fill='%232c5bd0' stroke='%23e6ebf5' stroke-width='1.6'/%3E%3Cpath d='M12 7l1.5 3 3 .4-2.2 2 .6 3-2.9-1.5-2.9 1.5.6-3-2.2-2 3-.4z' fill='%23fff'/%3E%3C/svg%3E"); }
.crest.b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M2 2h20v10c0 7-5 11-10 14C7 23 2 19 2 12z' fill='%23a3201d' stroke='%23f1e2c2' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='11' r='3.6' fill='none' stroke='%23f1e2c2' stroke-width='1.4'/%3E%3C/svg%3E"); }
.thinking { display: flex; gap: 3px; margin-left: 4px; }
.thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: blink 1s infinite; }
.thinking i:nth-child(2) { animation-delay: 0.15s; } .thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
#tally { position: absolute; top: 72px; left: 14px; min-width: 176px; font-size: 12px; }
.tally-head { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 8.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.tally-row { display: grid; grid-template-columns: 16px 1fr auto 44px; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 3px; font-family: var(--serif); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.tally-row.active { background: rgba(61,123,255,0.18); }
#tally-b.active { background: rgba(255,74,66,0.16); }
.tally-row .clock { text-align: right; font-variant-numeric: tabular-nums; color: #eadfc4; }
.tally-row .clock.low { color: #ff7a6a; animation: blink 0.8s infinite; }
.tally-row .caps { color: var(--mute); font-size: 10px; }
#toolbar { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.tb { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--gold-soft); border-radius: 5px; cursor: pointer; transition: all 0.2s; position: relative; }
.tb:hover { border-color: var(--gold); background: rgba(210,169,78,0.14); }
.tb.danger { background: rgba(120,20,20,0.6); border-color: rgba(255,90,80,0.5); }
.tb.on { background: rgba(210,169,78,0.22); border-color: var(--gold); }
.tb:disabled { opacity: 0.35; cursor: default; }
.tb .ico { width: 17px; height: 17px; }
.tb[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: 44px; right: 0; white-space: nowrap; background: var(--panel-2); border: 1px solid var(--gold-soft); padding: 4px 8px; border-radius: 3px; font-family: var(--serif); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
#side { position: absolute; top: 64px; right: 14px; width: 236px; display: flex; flex-direction: column; gap: 8px; bottom: 60px; pointer-events: none; }
#side > * { pointer-events: auto; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 9.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute); }
#spoils { padding: 10px 12px; }
#spoils-adv { color: #eadfc4; letter-spacing: 0.15em; }
.spoil-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 16px; min-height: 18px; letter-spacing: 1px; }
.spoil-row span:last-child { font-family: 'DejaVu Sans', 'Segoe UI Symbol', sans-serif; }
#ledger { padding: 10px 12px; display: flex; flex-direction: column; min-height: 120px; max-height: 100%; flex: 1; }
#ledger .row { gap: 4px; }
.mini { background: transparent; border: 1px solid transparent; border-radius: 3px; cursor: pointer; padding: 3px 5px; display: inline-flex; align-items: center; gap: 6px; color: #cfc4ab; }
.mini:hover:not(:disabled) { border-color: var(--gold-soft); color: #fff; }
.mini:disabled { opacity: 0.35; cursor: default; }
#moves { margin-top: 8px; overflow-y: auto; flex: 1; font-size: 14px; scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent; }
#moves .empty { text-align: center; font-style: italic; color: var(--mute); margin-top: 20px; font-size: 13px; line-height: 1.5; }
.mv { display: grid; grid-template-columns: 28px 1fr 1fr; padding: 2px 4px; border-radius: 2px; }
.mv:nth-child(odd) { background: rgba(255,255,255,0.025); }
.mv .n { color: var(--mute); font-size: 12px; }
.mv span { font-family: 'Cormorant Garamond', 'DejaVu Sans', serif; font-weight: 600; }
.mv span.last { color: var(--gold); }
#recbar { position: absolute; left: 14px; bottom: 54px; display: flex; gap: 2px; align-items: center; }
.rec { font-family: var(--serif); font-size: 11px; letter-spacing: 0.1em; }
.recdot { width: 9px; height: 9px; border-radius: 50%; background: #b33; box-shadow: 0 0 0 2px rgba(255,80,80,0.25); display: inline-block; }
.rec.live .recdot { background: #ff3b3b; animation: blink 1s infinite; }
.rec.live { color: #ff8a80; }
#ledger-toggle { position: absolute; left: 14px; bottom: 14px; padding: 7px 9px; }
#fps { position: absolute; right: 14px; bottom: 10px; font-family: ui-monospace, monospace; font-size: 10px; color: rgba(236,228,210,0.35); pointer-events: none; }
body.no-ledger #side #ledger { display: none; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); padding: 16px; }
.modal-panel { width: min(920px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 8px; border-bottom: 1px solid var(--gold-faint); }
.modal-head h2 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.12em; margin: 0; font-size: 18px; color: #f1e3bf; }
.modal-body { padding: 0 18px 18px; overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent; }
.slider-row { display: grid; grid-template-columns: 90px 1fr 44px; gap: 10px; align-items: center; font-size: 15px; }
input[type=range] { accent-color: var(--gold); width: 100%; }
.toggle { display: grid; grid-template-columns: 1fr 42px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; }
.toggle .t { font-size: 15.5px; font-weight: 600; }
.toggle .d { font-style: italic; color: var(--mute); font-size: 13px; line-height: 1.3; }
.switch { width: 38px; height: 20px; border-radius: 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(210,169,78,0.3); position: relative; transition: all 0.2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #bbb; transition: all 0.2s; }
.toggle.on .switch { background: rgba(210,169,78,0.45); border-color: var(--gold); }
.toggle.on .switch::after { left: 20px; background: #fff3d6; }
.promo-panel { padding: 18px 22px; text-align: center; }
.promo-panel .label { margin-top: 0; }
.promo-opt { width: 64px; height: 70px; background-size: 52px; background-position: center; background-repeat: no-repeat; border: 1px solid var(--gold-soft); border-radius: 5px; cursor: pointer; background-color: rgba(255,255,255,0.03); }
.promo-opt:hover { border-color: var(--gold); background-color: rgba(210,169,78,0.15); }
.over-panel { padding: 28px 30px; text-align: center; width: min(460px, 100%); animation: rise 0.6s ease-out; }
.over-panel .title { font-size: 40px; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
#over { background: radial-gradient(ellipse at center, rgba(0,0,0,0.25), rgba(0,0,0,0.6)); }
#toast { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 40; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
#toast div { background: var(--panel-2); border: 1px solid var(--gold-soft); border-radius: 4px; padding: 7px 14px; font-family: var(--serif); font-size: 11.5px; letter-spacing: 0.14em; animation: rise 0.3s; }

  .cards.bg { grid-template-columns: repeat(3, 1fr); }
}

/* tabs & two-column panes — everything fits on one screen */
.modal-head { gap: 14px; }
.tabs { display: flex; gap: 4px; margin-right: auto; margin-left: 18px; }
.tabs button { background: transparent; border: 1px solid transparent; border-radius: 3px; padding: 6px 12px; cursor: pointer; font-family: var(--serif); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.tabs button:hover { color: #fff; }
.tabs button.on { color: #1a1408; background: linear-gradient(180deg, #d9b25d, #a9832f); border-color: #e8c877; }
.pane { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; align-items: start; }
.modal-panel { width: min(860px, 100%); }
.menu-panel { width: min(860px, 100%); padding: 14px 20px 16px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; align-items: start; }
.menu-grid .label.first { margin-top: 2px; }
#menu { padding-top: 3vh; }
.menu-head { margin-bottom: 8px; }
.menu-head .title.big { font-size: clamp(30px, 4.6vw, 54px); margin: 2px 0; }
.menu-panel .label { margin: 11px 0 6px; }
.menu-panel .card .sw, #settings .card .sw { height: 22px; margin-bottom: 4px; }
.menu-panel .seg button { padding: 8px 6px; }
.menu-panel .hint { margin-top: 6px; font-size: 13px; }
.style-block.single { display: none; }
@media (max-width: 760px), (max-height: 520px) {
  .pane, .menu-grid { grid-template-columns: 1fr; }
  .tabs { margin-left: 6px; } .tabs button { padding: 5px 7px; letter-spacing: 0.08em; }
}
#settings .modal-body { min-height: min(350px, calc(100dvh - 120px)); }

/* ---------------- phones ---------------- */
@media (max-width: 760px) {
  #toolbar { position: fixed; top: auto; left: 0; right: 0; bottom: 0; justify-content: space-around; gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(9,10,15,0.9); border-top: 1px solid var(--gold-faint); backdrop-filter: blur(8px); }
  .tb { width: 36px; height: 36px; border-color: transparent; background: transparent; }
  .tb.danger { background: transparent; color: #ff8a80; }
  .tb[data-tip]:hover::after { display: none; }
  #turn { top: calc(8px + env(safe-area-inset-top)); left: 8px; padding: 6px 10px; min-width: 0; gap: 8px; }
  #turn .crest { width: 20px; height: 24px; }
  .turn-name { font-size: 13px; }
  #tally { top: calc(56px + env(safe-area-inset-top)); left: 8px; min-width: 0; padding: 5px 8px; }
  .tally-row { grid-template-columns: 14px auto auto 38px; font-size: 9.5px; letter-spacing: 0.06em; gap: 5px; }
  .tally-head { display: none; }
  #side { top: calc(8px + env(safe-area-inset-top)); right: 8px; width: 132px; bottom: auto; }
  #spoils { padding: 7px 9px; }
  .spoil-row { font-size: 13px; margin-top: 3px; }
  #ledger { display: none; }
  body.show-ledger #ledger { display: flex; position: fixed; left: 8px; right: 8px; bottom: calc(60px + env(safe-area-inset-bottom)); top: auto; max-height: 42vh; z-index: 12; }
  #recbar { display: none; }
  #ledger-toggle { bottom: calc(62px + env(safe-area-inset-bottom)); left: 8px; }
  #fps { display: none; }
  #toast { bottom: calc(110px + env(safe-area-inset-bottom)); }
  #menu { padding: calc(14px + env(safe-area-inset-top)) 10px 16px; }
  .menu-head .title.big { font-size: 30px; }
  .menu-head .sub { font-size: 13px; }
  .menu-panel { padding: 12px 12px 14px; }
  .seg button { font-size: 10px; letter-spacing: 0.08em; padding: 8px 3px; }
  .card .nm { font-size: 9.5px; }
  .card .un { font-size: 10px; }
  .foot-hint { font-size: 9px; letter-spacing: 0.16em; }
  .menu-panel > .row.gap { position: sticky; bottom: -14px; margin: 14px -12px -14px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(9,10,15,0.94); border-top: 1px solid var(--gold-faint); z-index: 2; }
  .modal { padding: 8px; }
  .modal-head h2 { font-size: 15px; }
  .over-panel .title { font-size: 30px; }
}
@media (max-width: 380px) { .tabs button { font-size: 9px; } .menu-head .title.big { font-size: 26px; } }

/* brand */
.title .three { font-size: 0.42em; vertical-align: 0.95em; margin-left: 0.12em; padding: 0.08em 0.32em; border: 1px solid var(--gold-soft); border-radius: 4px; color: var(--gold); letter-spacing: 0.08em; }
.byline { font-family: var(--serif); font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); opacity: 0.75; margin-top: 2px; }
.credit { display: block; margin-top: 8px; text-align: center; font-family: var(--serif); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(210,169,78,0.7); text-decoration: none; }
.credit b { font-weight: 600; color: #e8c877; }
.credit:hover { color: var(--gold); }
.about a { color: #e8c877; }
#style-cards, #s-style-cards { grid-template-columns: repeat(5, 1fr); gap: 4px; }
#style-cards .card, #s-style-cards .card { padding: 5px 3px 6px; }
#style-cards .card .nm, #s-style-cards .card .nm { font-size: 9px; letter-spacing: 0.02em; }
#style-cards .card .un, #s-style-cards .card .un { font-size: 10px; }
@media (max-width: 760px) { #style-cards, #s-style-cards { grid-template-columns: repeat(3, 1fr); } }

/* kill cam */
body.killcam #hud { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#hud { transition: opacity 0.4s; }
#killbanner { position: fixed; left: 50%; bottom: calc(9vh + 18px); transform: translate(-50%, 16px); z-index: 25; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; font-family: var(--serif); letter-spacing: 0.32em; text-transform: uppercase; font-size: 15px; color: #f1e3bf;
  transition: opacity 0.35s, transform 0.35s; text-shadow: 0 2px 12px rgba(0,0,0,0.9); }
#killbanner.on { opacity: 1; transform: translate(-50%, 0); }
#killbanner .kb-x { color: var(--gold); font-size: 20px; letter-spacing: 0; }
#killbanner .w { color: #8fb4ff; } #killbanner .b { color: #ff8a80; }
.letterbox::before, .letterbox::after { animation: barsIn 0.4s ease-out; }
@keyframes barsIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.letterbox::before { transform-origin: top; } .letterbox::after { transform-origin: bottom; }
@media (max-width: 760px) { #killbanner { font-size: 11px; gap: 8px; letter-spacing: 0.18em; } }

#ledger-close:hover { color: #ff8a80; }
body.no-spoils #spoils { display: none; }
#spoils-close:hover { color: #ff8a80; }
#spoils .panel-head .row { gap: 6px; }
body.no-ledger #ledger-toggle, body.no-spoils #ledger-toggle { border-color: var(--gold); box-shadow: 0 0 12px rgba(210,169,78,0.35); }
