@charset "UTF-8";
/* Tale of the Tape. Layout: a fight poster pinned to a smoky arena wall. Paper cards carry the
   reading; the room behind them changes with the decade: poster red in the 1930s, wartime olive and
   navy in the 1940s, television teal in the 1950s. */
[hidden] { display: none !important; }
:root {
  --bg: #1d0b07; --bg2: #2e0f0a; --paper: #f1e6cc; --paper2: #e5d4ab; --paper3: #d6c193; --ink: #17130f; --ink2: #4a3f33;
  --accent: #b8231b; --on-accent: #fbf3df; --accent2: #e0a526; --accent3: #1f3f8f; --good: #2f6b3a; --bad: #9c1f17; --focus: #ffd34d;
  --display: 'Alfa Slab One', 'Rockwell Extra Bold', Rockwell, Georgia, serif;
  --cond: Oswald, 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --serif: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  --type: 'Special Elite', 'Courier New', monospace;
  --comic: Bangers, Impact, sans-serif;
  --shadow: 6px 6px 0 rgba(0, 0, 0, .55);
  color-scheme: dark;
  font-size: 16px;
}
body[data-era="war"] { --bg: #151810; --bg2: #232a17; --paper: #ebe3c9; --paper2: #d9cca4; --accent: #a3221a; --accent2: #c9a650; --accent3: #2b3a5c; }
body[data-era="postwar"] { --bg: #14161f; --bg2: #212638; --paper: #f2ead3; --paper2: #ded0a8; --accent: #b02a20; --accent2: #e3b23c; --accent3: #23408e; }
body[data-era="tv"] { --bg: #0d2526; --bg2: #143a3b; --paper: #f5efdd; --paper2: #e2d8bb; --accent: #e8664a; --on-accent: #17130f; --accent2: #f2c14e; --accent3: #2f8f87; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-width: 300px; color: var(--paper); font-family: var(--serif); line-height: 1.5;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255, 220, 160, .18), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .045) 1px, transparent 1.5px) 0 0 / 7px 7px,
    linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 200; top: 8px; left: 8px; background: var(--paper); color: var(--ink); padding: 12px 16px; }
.loading { padding: 60px 20px; text-align: center; font-family: var(--cond); font-size: 1.3rem; }
.muted { opacity: .75; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1400px; margin: 0 auto; padding: 14px 24px; }
.desk { font-family: var(--cond); font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.desk span { font-weight: 400; opacity: .7; font-size: .85rem; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tools button { background: transparent; color: var(--paper); border: 1px solid rgba(241, 230, 204, .45); padding: 8px 12px; font-family: var(--cond); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; min-height: 40px; border-radius: 3px; }
.tools button:hover { background: rgba(255, 255, 255, .08); }
main { max-width: 1400px; margin: 0 auto; padding: 8px 24px 60px; }
main:focus { outline: none; }

/* ---------- shared bits ---------- */
.paper-card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 20px; position: relative; }
.paper-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 1px 1px, rgba(23, 19, 15, .07) 1px, transparent 1.4px) 0 0 / 5px 5px; }
.card-head { font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; margin-bottom: 12px; letter-spacing: .01em; }
.card-head small { font-family: var(--cond); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin-left: 6px; }
.card-head.big { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.kicker { font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; display: block; }
body[data-era="tv"] .paper-card .kicker { color: #b23a1f; }
.button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 12px 22px; background: var(--accent); color: var(--on-accent); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-family: var(--cond); font-weight: 700; font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: transform .08s, box-shadow .08s; }
.button:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.button small { font-weight: 400; font-size: .74rem; letter-spacing: .03em; text-transform: none; opacity: .9; }
.button.big { font-size: 1.2rem; padding: 14px 26px; min-height: 58px; }
.button.secondary { background: var(--paper); color: var(--ink); }
.button.danger { background: #3b0d09; color: #ffd9cf; }
.button kbd { font-family: var(--cond); font-size: .7rem; border: 1px solid currentColor; padding: 0 5px; border-radius: 3px; opacity: .7; margin-top: 4px; }
.chip { background: var(--paper2); color: var(--ink); border: 2px solid var(--ink); padding: 7px 12px; font-family: var(--cond); font-size: .85rem; letter-spacing: .03em; border-radius: 999px; min-height: 40px; margin: 3px; }
.chip.on { background: var(--ink); color: var(--paper); }
.linkish { background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-family: var(--cond); letter-spacing: .04em; padding: 8px 4px; opacity: .85; }
.center-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.screen-title { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1; margin: 18px 0 8px; text-shadow: 3px 3px 0 rgba(0, 0, 0, .5); }
.screen-sub { font-size: 1.08rem; max-width: 70ch; opacity: .92; }
.bar { display: block; position: relative; height: 10px; background: rgba(23, 19, 15, .15); border: 2px solid var(--ink); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.bar.heart i { background: #c2412f; } .bar.sharp i { background: var(--accent3); } .bar.fame i { background: var(--accent2); } .bar.warn i { background: #6d1410; }
.bar.opp i { background: var(--ink2); }

/* ---------- title ---------- */
.title-screen { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 32px; align-items: start; padding-top: 10px; }
.title-poster { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: 10px 10px 0 rgba(0, 0, 0, .6); padding: 26px 30px 24px; position: relative; overflow: hidden; }
.title-poster::before { content: ''; position: absolute; inset: 10px; border: 2px solid var(--ink); pointer-events: none; }
.title-poster::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 1px 1px, rgba(23, 19, 15, .09) 1px, transparent 1.4px) 0 0 / 5px 5px; }
.poster-top { text-align: center; font-family: var(--cond); letter-spacing: .22em; text-transform: uppercase; font-size: .85rem; border-bottom: 3px double var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.logo { margin: 6px 0 10px; text-align: center; line-height: .82; font-weight: 400; }
.logo span { display: block; }
.logo-a, .logo-b { font-family: var(--display); font-size: clamp(3.8rem, 9vw, 7.6rem); color: var(--accent); text-shadow: 4px 4px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); letter-spacing: .02em; }
.logo-of { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.3rem); margin: 4px 0 6px; }
.poster-art { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; margin: 14px 0 16px; }
.poster-portrait { width: 100%; height: auto; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); display: block; }
.poster-bill span { font-family: var(--cond); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--accent); display: block; margin-bottom: 6px; }
.poster-bill strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.05; display: block; }
.poster-pitch { font-size: 1.12rem; max-width: 60ch; }
.title-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 14px 0 18px; position: relative; z-index: 1; }
.poster-foot { font-family: var(--type); font-size: .82rem; margin: 10px 0 0; }
.title-side { display: grid; gap: 22px; }
.how { padding-left: 20px; margin: 0; } .how li { margin-bottom: 8px; }
.hall { list-style: none; padding: 0; margin: 0; } .hall li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 0; border-bottom: 1px dashed var(--ink2); }
.hall span { font-family: var(--cond); } .hall small { grid-column: 1 / -1; color: var(--ink2); font-family: var(--cond); }
.ach-count { font-family: var(--cond); } .ach-count b { font-size: 1.6rem; color: var(--accent); }
.ach-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-family: var(--cond); font-size: .84rem; color: var(--ink2); }
.ach-list li.got { color: var(--ink); font-weight: 600; }

/* ---------- create ---------- */
.create-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 10px; text-shadow: 3px 3px 0 rgba(0, 0, 0, .5); }
.code-note { font-family: var(--type); background: var(--paper); color: var(--ink); display: inline-block; padding: 6px 10px; }
.create-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: start; }
.create-preview { text-align: center; position: sticky; top: 14px; }
.create-portrait { width: 100%; height: auto; border: 3px solid var(--ink); display: block; margin-bottom: 12px; }
.preview-name { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; margin-bottom: 4px; }
.preview-sub { font-family: var(--cond); color: var(--ink2); }
.create-fields label { display: block; font-family: var(--cond); font-weight: 600; letter-spacing: .03em; margin-bottom: 12px; }
.create-fields input, .create-fields select, .quick-card input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; min-height: 46px; background: #fffaf0; color: var(--ink); border: 2px solid var(--ink); font-family: var(--serif); font-size: 1.05rem; border-radius: 2px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.field-note { font-size: .95rem; margin: -2px 0 16px; }
fieldset { border: 2px solid var(--ink); padding: 12px 14px 14px; margin: 0 0 16px; }
legend { font-family: var(--cond); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 0 6px; }
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.styles legend { grid-column: 1 / -1; }
.style-card { display: block; border: 2px solid var(--ink); padding: 10px; background: var(--paper2); margin: 0 !important; cursor: pointer; position: relative; }
.style-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.style-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.style-card small { font-family: var(--serif); font-weight: 400; font-size: .86rem; line-height: 1.35; display: block; margin-top: 4px; }
.style-card.on { background: var(--ink); color: var(--paper); }
.style-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.look-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.look-row > span { font-family: var(--cond); font-weight: 600; width: 64px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ink); background: var(--c); margin: 2px; }
.swatch.on { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.create-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- date banner ---------- */
.date-banner { display: flex; align-items: stretch; gap: 0; margin: 4px 0 20px; max-width: 900px; }
.db-date { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); padding: 6px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 4px 4px 0 rgba(0, 0, 0, .5); min-width: 120px; }
.db-month { font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 600; color: var(--accent); }
body[data-era="tv"] .db-month { color: #b23a1f; }
.db-year { font-family: var(--display); font-size: 2rem; line-height: 1; }
.db-era { padding: 8px 16px; display: flex; flex-direction: column; justify-content: center; }
.db-era b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; letter-spacing: .02em; }
.db-era small { font-size: .92rem; opacity: .85; }

/* ---------- trail ---------- */
.trail { margin: -6px 0 22px; max-width: 1100px; }
.trail-line { position: relative; height: 12px; background: rgba(241, 230, 204, .18); border: 2px solid var(--paper); margin: 26px 8px 0; }
.trail-done { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent2); }
.trail .tf { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border: 1px solid var(--ink); border-radius: 50%; z-index: 2; }
.trail .tf.t { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
.lm { position: absolute; bottom: 100%; transform: translateX(-50%); padding-bottom: 4px; font-family: var(--cond); font-size: .68rem; letter-spacing: .04em; white-space: nowrap; opacity: .6; }
.lm::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 2px; height: 10px; background: var(--paper); }
.lm.past { opacity: 1; color: var(--accent2); }
.lm.low { bottom: auto; top: 100%; padding: 4px 0 0; }
.lm.low::after { bottom: auto; top: -8px; }
.trail-ends { margin-top: 20px !important; }
.lm b { font-weight: 500; }
.trail-you { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--c); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--ink); z-index: 3; }
.trail-ends { display: flex; justify-content: space-between; font-family: var(--cond); font-size: .75rem; margin: 6px 8px 0; opacity: .8; }
@media (max-width: 760px) { .lm { display: none; } .trail-line { margin-top: 8px; } }

/* ---------- discoveries ---------- */
.disc-card { text-align: center; background: var(--paper); }
.recipe { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }
.recipe .ing { background: #fffaf0; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 10px 16px; font-family: var(--cond); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.recipe b { font-family: var(--display); font-size: 2rem; }
.disc-name { color: var(--accent); text-shadow: 3px 3px 0 var(--ink); font-size: clamp(2.2rem, 5vw, 3.6rem) !important; }
body[data-era="tv"] .disc-name { color: #b23a1f; }
.disc-first { font-family: var(--cond); }
.disc-card .event-body p { max-width: 60ch; margin: 0 auto; }
.disc-card .choices { max-width: 420px; margin: 18px auto 0; }
.book-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; max-height: 320px; overflow: auto; }
.book-list li { font-family: var(--cond); font-size: .84rem; border-bottom: 1px dashed rgba(23, 19, 15, .3); padding-bottom: 4px; }
.book-list li b { display: block; color: var(--ink2); }
.book-list li.got b { color: var(--accent); }
.book-list small { color: var(--ink2); }

/* ---------- ledger ---------- */
.ledger-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.col-left, .col-mid, .col-right { display: grid; gap: 22px; min-width: 0; }
.fighter-card { padding: 16px; }
.fc-top { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.fc-portrait { width: 100%; height: auto; border: 3px solid var(--ink); display: block; }
.fc-id h2 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.05; margin: 0 0 6px; overflow-wrap: anywhere; }
.fc-id .nick { font-family: var(--serif); font-style: italic; font-size: 1rem; display: block; color: var(--accent); }
body[data-era="tv"] .fc-id .nick { color: #b23a1f; }
.fc-rec { font-family: var(--cond); margin: 0; } .fc-rec b { font-size: 1.6rem; } .fc-rec span { color: var(--ink2); }
.fc-meta { font-family: var(--cond); font-size: .85rem; color: var(--ink2); margin: 0; }
.stats { display: grid; gap: 6px; margin-bottom: 12px; }
.stat { display: grid; grid-template-columns: 74px 1fr 30px; gap: 8px; align-items: center; font-family: var(--cond); font-size: .9rem; }
.stat b { text-align: right; font-size: 1rem; }
.life { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 12px; }
.lifebox span { font-family: var(--cond); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 3px; }
.lifebox small { font-family: var(--cond); font-size: .75rem; color: var(--ink2); }
.purse-line { display: flex; align-items: baseline; gap: 10px; border-top: 2px solid var(--ink); padding-top: 8px; font-family: var(--cond); }
.purse-line b { font-size: 1.4rem; } .purse-line b.neg { color: var(--bad); } .purse-line small { margin-left: auto; color: var(--ink2); }
.injury { margin: 10px 0 0; background: #3b0d09; color: #ffd9cf; padding: 6px 10px; font-family: var(--cond); }
.belt { margin: 10px 0 0; background: var(--accent2); color: var(--ink); padding: 6px 10px; font-family: var(--cond); font-weight: 700; border: 2px solid var(--ink); }
.actions-card .card-head { margin-bottom: 14px; }
.last-month { background: var(--paper2); border-left: 5px solid var(--accent); padding: 10px 14px; margin-bottom: 14px; }
.last-month p { margin: 4px 0; } .last-month .kicker { margin-bottom: 2px; }
.action { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 3px; background: var(--paper2); color: var(--ink); border: 2px solid var(--ink); padding: 12px 14px; min-height: 64px; border-radius: 2px; box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .1s; position: relative; z-index: 1; }
.action b { font-family: var(--cond); font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; }
.action small { font-size: .88rem; color: var(--ink2); line-height: 1.3; }
.action:hover:not(:disabled) { background: #fff6dc; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.action:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.action.primary { width: 100%; background: var(--accent); color: var(--on-accent); padding: 16px 18px; }
.action.primary b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; text-transform: none; letter-spacing: .01em; }
.action.primary small { color: var(--on-accent); opacity: .9; }
.action.locked { opacity: .55; } .action em { font-family: var(--cond); font-style: normal; font-size: .8rem; color: var(--bad); }
.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.action-grid.one { grid-template-columns: 1fr; }
.group-label { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin: 18px 0 8px; font-size: .85rem; }
.group-label small { font-weight: 400; color: var(--ink2); letter-spacing: .04em; text-transform: none; margin-left: 6px; }
.ledger-foot { display: flex; justify-content: flex-end; margin-top: 10px; position: relative; z-index: 1; }
.wire ul { list-style: none; padding: 0; margin: 0; }
.wire li { padding: 8px 0; border-bottom: 1px dashed rgba(23, 19, 15, .35); font-size: .95rem; }
.wire li span { font-family: var(--type); font-size: .75rem; display: block; color: var(--ink2); }
.wire li.k-world { font-style: italic; } .wire li.k-good { color: var(--good); } .wire li.k-bad { color: var(--bad); }
.wire .linkish { position: relative; z-index: 1; }
.rankings ol { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.rankings li { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; padding: 5px 0; border-bottom: 1px solid rgba(23, 19, 15, .15); font-family: var(--cond); font-size: .92rem; }
.rankings li b { font-weight: 500; overflow-wrap: anywhere; } .rankings li small { color: var(--ink2); }
.rankings li.you { background: var(--accent2); font-weight: 700; padding-left: 4px; }
.rankings li.rival b { color: var(--accent); }
.rk { color: var(--ink2); }
.champ-line { background: var(--ink); color: var(--paper); padding: 6px 10px; font-family: var(--cond); margin-bottom: 8px; }
.champ-line small { opacity: .7; }
.unranked, .rival-line { font-family: var(--cond); font-size: .88rem; margin: 10px 0 0; }
.people ul { list-style: none; padding: 0; margin: 0; }
.people li { display: grid; grid-template-columns: 76px 1fr; gap: 0 8px; padding: 6px 0; border-bottom: 1px dashed rgba(23, 19, 15, .3); }
.people li span { font-family: var(--cond); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; padding-top: 3px; }
.people li b { font-family: var(--cond); font-weight: 600; } .people li small { grid-column: 2; color: var(--ink2); font-size: .82rem; }

/* ---------- events ---------- */
.event { max-width: 860px; margin: 0 auto; }
.event-card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 10px 10px 0 rgba(0, 0, 0, .55); padding: 26px 32px 28px; position: relative; }
.event-card.newspaper { background: #efe7d2; }
.event-card.note { background: var(--paper); transform: rotate(-.4deg); }
.event-card.note::before { content: ''; position: absolute; left: 50%; top: -14px; width: 120px; height: 28px; transform: translateX(-50%) rotate(2deg); background: rgba(224, 165, 38, .7); border: 1px solid rgba(23, 19, 15, .3); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; border-bottom: 4px double var(--ink); padding-bottom: 8px; margin-bottom: 14px; font-family: var(--cond); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.masthead b { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: .02em; text-transform: none; text-align: center; }
.masthead span:last-child { text-align: right; }
.event-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.02; margin: 4px 0 14px; }
.newspaper .event-title { font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(2rem, 4.6vw, 3.6rem); text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.event-title:focus { outline: none; }
.event-body p { font-size: 1.16rem; line-height: 1.6; }
.newspaper .event-body p { columns: 2 280px; column-gap: 28px; column-rule: 1px solid rgba(23, 19, 15, .35); text-align: justify; hyphens: auto; }
.newspaper .event-body p::first-letter { font-family: var(--display); float: left; font-size: 3.3rem; line-height: .9; padding: 4px 8px 0 0; color: var(--accent); }
.archive { background: var(--paper2); border: 2px solid var(--ink); padding: 12px 16px; margin: 12px 0 16px; font-size: .98rem; }
.archive b { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; display: block; margin-bottom: 4px; color: var(--accent); }
body[data-era="tv"] .archive b { color: #b23a1f; }
.archive p { margin: 0; }
.event-link a { font-family: var(--cond); font-weight: 600; color: var(--accent3); }
body[data-era="tv"] .event-link a { color: #1f6560; }
.choices { display: grid; gap: 10px; margin-top: 16px; }
.choice { text-align: left; display: flex; flex-direction: column; gap: 2px; background: var(--paper2); color: var(--ink); border: 2px solid var(--ink); padding: 12px 16px; box-shadow: 3px 3px 0 var(--ink); min-height: 52px; border-radius: 2px; counter-increment: c; }
.choice b { font-family: var(--cond); font-weight: 600; font-size: 1.08rem; letter-spacing: .02em; }
.choice small { font-size: .88rem; color: var(--ink2); }
.choice .locked { color: var(--bad); }
.choice:hover:not(:disabled) { background: #fff6dc; }
.choice.picked { background: var(--ink); color: var(--paper); } .choice.picked small { color: var(--paper2); }
.choice:disabled:not(.picked) { opacity: .5; }
.outcome { margin-top: 18px; border-top: 3px solid var(--ink); padding-top: 14px; }
.outcome p { font-size: 1.12rem; font-style: italic; }

/* ---------- offers ---------- */
.posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 18px; }
.fight-poster { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 16px 16px 18px; display: flex; flex-direction: column; text-align: center; position: relative; }
.fight-poster.p-red { background: #a3221a; color: #fbf3df; }
.fight-poster.p-gold { background: var(--accent2); color: var(--ink); }
.fight-poster.crooked { outline: 4px dashed #3b0d09; outline-offset: -10px; }
.fp-venue { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .9rem; margin-bottom: 2px; }
.fp-venue span { display: block; font-weight: 400; font-size: .78rem; opacity: .85; }
.fp-level { font-family: var(--type); font-size: .82rem; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; padding: 3px 0; margin-bottom: 10px; }
.fp-face { width: 150px; margin: 0 auto 10px; }
.fp-portrait { width: 100%; height: auto; border: 3px solid var(--ink); display: block; }
.fight-poster h3 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.05; margin: 0 0 6px; }
.fight-poster h3 span { display: block; font-family: var(--serif); font-style: italic; font-size: 1rem; }
.fp-rec { font-family: var(--cond); font-size: 1.05rem; margin: 0; font-weight: 600; }
.fp-style { font-size: .9rem; margin: 2px 0 8px; }
.fp-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 8px; }
.fp-tags span { background: var(--ink); color: var(--paper); font-family: var(--cond); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; }
.fp-note { font-style: italic; font-size: .9rem; }
.fp-terms { display: grid; grid-template-columns: repeat(3, 1fr); margin: auto 0 12px; border-top: 2px solid currentColor; padding-top: 10px; }
.fp-terms dt { font-family: var(--cond); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.fp-terms dd { margin: 0; font-family: var(--display); font-size: 1.08rem; }
.fight-poster .button { width: 100%; }
.p-red .button, .p-gold .button { background: var(--paper); color: var(--ink); }

/* ---------- camp ---------- */
.camp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.camp-track { list-style: none; padding: 0; margin: 14px 0; display: flex; gap: 6px; flex-wrap: wrap; position: relative; z-index: 1; }
.camp-track li { flex: 1; min-width: 90px; border: 2px solid var(--ink); padding: 6px 8px; font-family: var(--cond); font-size: .82rem; text-align: center; background: var(--paper2); }
.camp-track li.done { background: var(--ink); color: var(--paper); } .camp-track li.now { background: var(--accent2); font-weight: 700; }
.camp-track li.fight-night { background: var(--accent); color: var(--on-accent); font-weight: 700; text-transform: uppercase; }

/* ---------- tale of the tape ---------- */
.tape { max-width: 1100px; margin: 0 auto; text-align: center; }
.tape-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .9; margin: 10px 0 6px; color: var(--paper); text-shadow: 4px 4px 0 var(--accent), 8px 8px 0 rgba(0, 0, 0, .5); }
.tape-title span { display: block; font-family: var(--serif); font-style: italic; font-size: .38em; text-shadow: none; }
.tape-sub { font-family: var(--cond); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.tape-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 18px; align-items: start; margin: 18px 0; }
.tape-side h2 { font-family: var(--display); font-weight: 400; font-size: 1.4rem; margin: 10px 0 2px; line-height: 1.05; }
.tape-side p { font-style: italic; margin: 0; }
.tape-portrait { width: 100%; height: auto; border: 4px solid var(--paper); box-shadow: 6px 6px 0 rgba(0, 0, 0, .55); display: block; }
.tape-table { width: 100%; border-collapse: collapse; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); }
.tape-table th { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; background: var(--ink); color: var(--paper); padding: 7px 8px; width: 24%; }
.tape-table td { font-family: var(--display); font-size: 1.15rem; padding: 7px 10px; border-bottom: 1px solid rgba(23, 19, 15, .2); width: 38%; }
.tape-table tr.cmp td { font-family: var(--cond); font-size: .95rem; }
.tape-table tr.cmp td { display: table-cell; }
.tape-table tr.cmp .bar { display: inline-block; width: calc(100% - 40px); vertical-align: middle; margin-right: 6px; }
.unknown { font-family: var(--type); font-size: .82rem; color: var(--ink2); }
.tape-quirk { font-size: 1.08rem; max-width: 70ch; margin: 10px auto; }
.tape-quirk q { font-style: italic; }
.tape-scout { background: var(--paper); color: var(--ink); display: inline-block; padding: 8px 14px; border: 2px solid var(--ink); max-width: 70ch; }
.tape-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 10px; }
.assist-row { font-family: var(--cond); }
.dive-box { background: #3b0d09; border: 3px solid #ffd9cf; padding: 16px 20px; margin: 20px auto; max-width: 640px; }

/* ---------- radio ---------- */
.radio { max-width: 860px; margin: 10px auto; }
.radio-set { background: linear-gradient(180deg, #5a3a1f, #3d2612); border: 4px solid #1a0f06; border-radius: 26px 26px 10px 10px; padding: 26px 28px 30px; box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, .15); color: #f6e7c4; position: relative; }
.radio-set::before { content: ''; display: block; height: 70px; margin: -6px 0 18px; border-radius: 12px; border: 3px solid #1a0f06; background: repeating-linear-gradient(90deg, #2b1a0b 0 4px, #c8a464 4px 6px), #2b1a0b; opacity: .85; }
.radio.newsreel .radio-set { background: linear-gradient(180deg, #2a2a26, #151512); border-radius: 6px; }
.radio.newsreel .radio-set::before { background: repeating-linear-gradient(90deg, #111 0 14px, #eee 14px 22px); height: 28px; }
.radio.tv .radio-set { background: linear-gradient(180deg, #3c4a48, #1d2626); border-radius: 30px; }
.radio.tv .radio-set::before { background: radial-gradient(ellipse at 50% 50%, #9fb7b2, #2b3534 70%); height: 90px; border-radius: 40px / 30px; }
.radio .kicker { color: var(--accent2); }
.call { list-style: none; padding: 0; margin: 10px 0 0; }
.call li { padding: 10px 0; border-bottom: 1px solid rgba(246, 231, 196, .2); font-size: 1.06rem; animation: callIn .5s both; animation-delay: var(--d, 0s); }
.call li span { font-family: var(--type); color: var(--accent2); margin-right: 10px; font-size: .85rem; }
.call.circuit li { animation: none; }
.call-result { font-family: var(--display); font-size: 1.8rem; text-align: center; margin: 18px 0 0; animation: callIn .6s both; animation-delay: var(--d, 0s); color: var(--accent2); }
@keyframes callIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- clipping ---------- */
.clipping-screen { max-width: 880px; margin: 0 auto; }
.clipping { background: #efe7d2; color: var(--ink); border: 1px solid #b9ab88; box-shadow: 10px 12px 0 rgba(0, 0, 0, .5); padding: 22px 30px 26px; transform: rotate(.35deg); position: relative; }
.clipping::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 1px 1px, rgba(23, 19, 15, .08) 1px, transparent 1.4px) 0 0 / 4px 4px; }
.clipping h1 { font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.8rem); line-height: .98; text-align: center; margin: 6px 0 8px; letter-spacing: -.01em; }
.clipping h1:focus { outline: none; }
.clip-sub { text-align: center; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.clip-body { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: start; margin: 14px 0; }
.clip-portrait { width: 100%; height: auto; border: 2px solid var(--ink); filter: grayscale(.7) contrast(1.15); display: block; }
.clip-body p { font-size: 1.1rem; }
.byline { font-family: var(--type); font-size: .9rem; }
.stamp { display: inline-block; font-family: var(--display); color: var(--accent); border: 4px solid var(--accent); padding: 4px 14px; transform: rotate(-6deg); font-size: 1.5rem; }
body[data-era="tv"] .stamp { color: #b23a1f; border-color: #b23a1f; }
.stamp.loss { color: #3b0d09; border-color: #3b0d09; }
.purse-table { width: 100%; max-width: 520px; border-collapse: collapse; margin: 10px 0; font-family: var(--cond); position: relative; z-index: 1; }
.purse-table caption { text-align: left; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; padding-bottom: 4px; }
.purse-table th { text-align: left; font-weight: 400; padding: 4px 0; border-bottom: 1px dotted var(--ink2); }
.purse-table td { text-align: right; padding: 4px 0; border-bottom: 1px dotted var(--ink2); }
.purse-table .net th, .purse-table .net td { font-weight: 700; font-size: 1.15rem; border-bottom: 3px double var(--ink); }
.changes { display: flex; flex-wrap: wrap; gap: 6px; }
.changes span { background: var(--ink); color: var(--paper); font-family: var(--cond); padding: 3px 9px; font-size: .85rem; }
.clipping .center-row { position: relative; z-index: 1; }

/* ---------- service, paths, after ---------- */
.service, .after { max-width: 980px; margin: 0 auto; display: grid; gap: 22px; }
.after-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.service-card { background: #d8d0b0; }
.path-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.path-grid .action { min-height: 110px; }

/* ---------- the end ---------- */
.final { max-width: 1060px; margin: 0 auto; }
.final-paper { background: #efe7d2; color: var(--ink); border: 3px solid var(--ink); box-shadow: 12px 12px 0 rgba(0, 0, 0, .55); padding: 24px 32px 30px; }
.final-paper h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: .95; text-align: center; margin: 8px 0 6px; color: var(--accent); text-shadow: 3px 3px 0 var(--ink); }
body[data-era="tv"] .final-paper h1 { color: #b23a1f; }
.final-paper h1:focus { outline: none; }
.final-dek { text-align: center; font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; border-bottom: 3px double var(--ink); padding-bottom: 10px; }
.final-top { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; margin: 18px 0; }
.final-portrait { width: 100%; height: auto; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); display: block; }
.story h2, .final-cols h2 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.story p { font-size: 1.22rem; line-height: 1.6; }
.story p::first-letter { font-family: var(--display); float: left; font-size: 3.6rem; line-height: .85; padding: 6px 8px 0 0; color: var(--accent); }
.final-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; }
.legacy h2 b { font-family: var(--display); font-size: 1.6rem; color: var(--accent); margin-left: 8px; letter-spacing: 0; }
.legacy table { width: 100%; border-collapse: collapse; font-family: var(--cond); }
.legacy th { text-align: left; font-weight: 400; padding: 3px 0; border-bottom: 1px dotted var(--ink2); }
.legacy td { text-align: right; font-weight: 600; border-bottom: 1px dotted var(--ink2); }
.timeline ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 18px; }
.timeline li { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; padding: 2px 0; break-inside: avoid; font-family: var(--cond); font-size: .85rem; }
.timeline li span { width: 40px; color: var(--ink2); }
.timeline li em { font-size: .75rem; color: var(--ink2); }
.timeline i, .legend i { display: inline-block; width: 11px; height: 11px; border: 1.5px solid var(--ink); border-radius: 50%; }
.r-W { background: var(--accent2); } .r-L { background: var(--ink); } .r-D { background: #fff; } .t { border-radius: 2px !important; box-shadow: 0 0 0 2px var(--accent); }
.legend { font-family: var(--cond); font-size: .8rem; margin-top: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ach ul { list-style: none; padding: 0; margin: 0; } .ach li { padding: 4px 0; } .ach small { color: var(--ink2); }
.ach ul + h2, .ach p + h2 { margin-top: 26px; }
.discuss ol { padding-left: 20px; margin: 0; } .discuss li { margin-bottom: 8px; }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; border-top: 3px double var(--ink); padding-top: 20px; }
.same-start { text-align: center; font-family: var(--type); margin: 16px 0 0; }

/* ---------- quick fight ---------- */
.quick { max-width: 860px; margin: 0 auto; }
.quick-card fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.quick-card legend { margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: center; font-family: var(--cond); margin: 8px 0 14px; }
.check input { width: 22px; height: 22px; }
.quick-card label { font-family: var(--cond); font-weight: 600; display: block; position: relative; z-index: 1; }
.quick-card fieldset, .quick-card .center-row { position: relative; z-index: 1; }

/* ---------- dialog & toast ---------- */
dialog { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 12px 12px 0 rgba(0, 0, 0, .6); padding: 26px 28px; width: min(680px, calc(100% - 28px)); max-height: 88vh; border-radius: 2px; }
dialog::backdrop { background: rgba(10, 5, 3, .72); }
dialog h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin-bottom: 12px; }
dialog h3 { font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em; margin: 18px 0 6px; }
dialog p, dialog li { font-size: 1rem; }
.keys { padding-left: 18px; } kbd { font-family: var(--cond); background: var(--ink); color: var(--paper); padding: 1px 6px; border-radius: 3px; font-size: .85em; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.close { width: 100%; margin-top: 18px; }
.journal { max-height: 60vh; overflow: auto; padding-left: 0; list-style: none; }
.journal li { padding: 6px 0; border-bottom: 1px dashed var(--ink2); font-size: .95rem; }
.journal li span { font-family: var(--type); font-size: .78rem; color: var(--ink2); }
.codebox { background: var(--ink); color: var(--paper); padding: 12px; overflow-wrap: anywhere; font-family: var(--type); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; z-index: 150; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 6px 6px 0 rgba(0, 0, 0, .55); padding: 12px 18px; display: flex; flex-direction: column; min-width: 240px; max-width: min(92vw, 460px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; } .toast small { font-size: .92rem; }
.toast-kicker { font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--accent); }

/* ---------- the fight ---------- */
body.fighting .topbar { display: none; }
body.fighting main { padding-top: 6px; padding-bottom: 10px; }
.fight-screen { max-width: 1120px; margin: 0 auto; }
.fight-host { position: relative; }
.fight-hud { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; background: #120c08; border: 3px solid var(--ink); border-bottom: 0; padding: 8px 12px; color: #f6e7c4; }
.hud-side { display: grid; gap: 4px; }
.hud-side.opp { text-align: right; }
.hud-name { font-family: var(--display); font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }
.hud-bar { position: relative; height: 16px; background: #3a120c; border: 2px solid #f6e7c4; overflow: hidden; }
.hud-bar i, .hud-bar b { position: absolute; top: 0; bottom: 0; left: 0; }
.hud-side.opp .hud-bar i, .hud-side.opp .hud-bar b { left: auto; right: 0; }
.hud-bar.hp i { background: linear-gradient(180deg, #f0c454, #e0a526); z-index: 2; }
.hud-bar.hp b { background: #c8341f; z-index: 1; }
.hud-bar.sta { height: 8px; border-width: 1px; }
.hud-bar.sta i { background: #6fb3d8; }
.hud-bar.sta.low i { background: #c8341f; }
.hud-mid { text-align: center; display: grid; gap: 2px; }
.hud-round { font-family: var(--cond); letter-spacing: .14em; font-size: .78rem; }
.hud-clock { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.hud-stars { letter-spacing: 2px; }
.hud-stars i { display: inline-block; width: 18px; height: 18px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: #3a3026; }
.hud-stars i.on { background: #ffe27a; }
.fight-stage { position: relative; border: 3px solid var(--ink); background: #000; line-height: 0; overflow: hidden; }
.fight-canvas { width: 100%; height: auto; aspect-ratio: 960 / 600; display: block; touch-action: none; }
.fight-host[data-era="poster"] .fight-canvas { filter: sepia(.18) saturate(1.12) contrast(1.04); }
.fight-host[data-era="newsreel"] .fight-canvas { filter: grayscale(.85) sepia(.45) contrast(1.18) brightness(1.02); }
.fight-host[data-era="tv"] .fight-canvas { filter: grayscale(1) contrast(1.22) brightness(1.06); }
.era-overlay { position: absolute; inset: 0; pointer-events: none; }
.fight-host[data-era="poster"] .era-overlay { background: radial-gradient(circle at 1px 1px, rgba(23, 19, 15, .16) 1px, transparent 1.4px) 0 0 / 5px 5px, radial-gradient(ellipse at center, transparent 55%, rgba(30, 8, 4, .55)); }
.fight-host[data-era="newsreel"] .era-overlay { background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .7)), repeating-linear-gradient(90deg, transparent 0 220px, rgba(255, 255, 255, .06) 221px 222px, transparent 223px 400px); animation: flicker .18s steps(2) infinite; }
.fight-host[data-era="tv"] .era-overlay { background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .75)); border-radius: 28px / 22px; box-shadow: inset 0 0 0 10px #111; }
@keyframes flicker { 0% { opacity: .85; } 100% { opacity: 1; } }
.tv-bug, .lower-third { display: none; }
.fight-host[data-era="tv"] .tv-bug { display: block; position: absolute; top: 22px; right: 30px; background: #fff; color: #111; font-family: var(--cond); font-weight: 700; letter-spacing: .14em; padding: 3px 8px; font-size: .85rem; line-height: 1.2; }
.fight-host[data-era="tv"] .lower-third { display: block; position: absolute; left: 30px; bottom: 26px; background: rgba(255, 255, 255, .92); color: #111; font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding: 4px 10px; line-height: 1.3; }
.fight-callout { position: absolute; left: 50%; top: 18%; transform: translate(-50%, -50%) scale(.6); opacity: 0; font-family: var(--comic); font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: .06em; color: #fff6d8; -webkit-text-stroke: 2px #17130f; text-shadow: 3px 3px 0 #17130f; pointer-events: none; line-height: 1.1; white-space: nowrap; transition: opacity .12s, transform .12s; }
.fight-callout.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fight-callout.big { font-size: clamp(2.4rem, 7vw, 5rem); top: 40%; color: #ffe27a; }
.fight-callout.good { color: #c8f5a6; } .fight-callout.bad { color: #ff9c8a; } .fight-callout.star { color: #ffe27a; } .fight-callout.dim { color: #ddd; font-size: clamp(1.2rem, 3vw, 2rem); }
.fight-callout.taunt { color: #ffb36b; }
.fight-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 5, 3, .55); line-height: 1.4; padding: 16px; z-index: 5; }
.ov-card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 rgba(0, 0, 0, .6); padding: 22px 26px; max-width: 560px; width: 100%; text-align: center; max-height: 100%; overflow: auto; }
.ov-card h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.05; margin: 4px 0 8px; }
.ov-card h2 span { font-family: var(--serif); font-style: italic; font-size: .6em; }
.ov-kicker { font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent); margin: 0; }
.ov-sub { font-family: var(--cond); margin-bottom: 10px; }
.ov-hint { font-size: 1rem; }
.ov-big { font-family: var(--comic) !important; font-size: clamp(3rem, 9vw, 5.5rem) !important; letter-spacing: .05em; color: var(--accent); -webkit-text-stroke: 2px var(--ink); }
.ov-card.loss .ov-big { color: var(--ink); -webkit-text-stroke: 0; }
.ov-cards { font-family: var(--type); }
.ov-stats { font-family: var(--cond); font-size: .92rem; }
.ov-buttons { display: grid; gap: 10px; }
.ov-buttons.three { grid-template-columns: repeat(3, 1fr); }
.ov-buttons .button b { font-size: 1rem; }
.corner blockquote { margin: 6px 0 12px; font-style: italic; font-size: 1.08rem; border-left: 4px solid var(--accent); text-align: left; padding: 4px 12px; }
.corner cite { display: block; font-style: normal; font-family: var(--cond); font-size: .82rem; margin-top: 4px; }
.fight-ticker { font-family: var(--type); color: #f6e7c4; background: #120c08; border: 3px solid var(--ink); border-top: 0; margin: 0; padding: 8px 12px; min-height: 40px; font-size: .95rem; }
.fight-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; font-family: var(--cond); font-size: .85rem; opacity: .9; }
.touch-pad { display: none; justify-content: space-between; gap: 12px; margin-top: 10px; user-select: none; -webkit-user-select: none; }
.pad-left, .pad-right { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.pad-btn { min-height: 62px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font-family: var(--cond); font-weight: 700; font-size: 1.1rem; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: none; box-shadow: 3px 3px 0 var(--ink); }
.pad-btn small { font-weight: 400; font-size: .68rem; text-transform: uppercase; }
.pad-btn.hit { background: var(--accent); color: var(--on-accent); }
.pad-btn.hay { background: var(--accent2); color: var(--ink); }
.pad-btn.on { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); filter: brightness(1.15); }
@media (pointer: coarse) { .touch-pad { display: flex; } .fight-keys { display: none; } }
.fight-host.touch .touch-pad { display: flex; }
@media (max-width: 760px) { .touch-pad { display: flex; } .fight-keys { display: none; } }
.rotate-hint { display: none; text-align: center; font-family: var(--cond); font-size: .85rem; margin: 6px 0 0; opacity: .85; }
@media (max-width: 600px) and (orientation: portrait) { .rotate-hint { display: block; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ledger-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .ledger-grid .col-right { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .title-screen { grid-template-columns: 1fr; }
  .create-grid { grid-template-columns: 1fr; }
  .create-preview { position: static; display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; text-align: left; align-items: center; }
  .create-preview canvas { grid-row: span 3; }
  .styles { grid-template-columns: 1fr 1fr; }
  .camp-grid { grid-template-columns: 1fr; }
  .tape-grid { grid-template-columns: 1fr 1fr; }
  .tape-grid .tape-table { grid-column: 1 / -1; grid-row: 2; }
  .final-cols, .after-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  main { padding: 6px 16px 50px; }
  .topbar { padding: 12px 16px; flex-wrap: wrap; }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-grid .col-right { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr; }
  .poster-art { grid-template-columns: 130px 1fr; }
  .title-poster { padding: 20px 18px; }
  .event-card { padding: 20px 18px 22px; }
  .newspaper .event-body p { columns: 1; }
  .masthead { grid-template-columns: 1fr; text-align: center; }
  .masthead span:last-child { text-align: center; }
  .final-top { grid-template-columns: 1fr; }
  .final-portrait { max-width: 220px; margin: 0 auto; }
  .final-paper, .clipping { padding: 18px 16px 22px; }
  .clip-body { grid-template-columns: 100px 1fr; }
  .timeline ol { columns: 1; }
  .ov-buttons.three { grid-template-columns: 1fr; }
  .fight-hud { gap: 8px; padding: 6px 8px; }
  .hud-name { font-size: .9rem; }
  .hud-clock { font-size: 1.2rem; }
  .date-banner { margin-bottom: 14px; }
  .db-era small { display: none; }
}
@media (max-width: 480px) {
  .tools button { padding: 6px 8px; font-size: .72rem; }
  .desk span { display: none; }
  .title-actions .button { width: 100%; }
  .poster-art { grid-template-columns: 1fr; }
  .poster-portrait { max-width: 200px; margin: 0 auto; }
  .styles { grid-template-columns: 1fr; }
  .create-preview { grid-template-columns: 100px 1fr; }
  .tape-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tape-table td { font-size: .95rem; padding: 5px 6px; }
  .tape-table th { font-size: .7rem; padding: 5px 4px; }
  .menu-grid { grid-template-columns: 1fr; }
  .pad-left, .pad-right { grid-template-columns: repeat(2, 1fr); }
  .pad-btn { min-height: 54px; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .fp-face { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .share-row, .center-row, .toast, dialog { display: none !important; }
  body { background: #fff; color: #000; }
  .final-paper, .clipping { box-shadow: none; border: 0; transform: none; }
}

/* =================================================================
   POLISH PASS — atmosphere, motion, and the big moments.
   Everything animated here has a still fallback under reduced motion.
   ================================================================= */

/* film grain and drifting smoke over the whole room */
body::before { content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(ellipse 40% 30% at 20% 30%, rgba(255, 235, 210, .05), transparent 70%), radial-gradient(ellipse 35% 25% at 80% 60%, rgba(255, 235, 210, .04), transparent 70%); animation: smoke 40s ease-in-out infinite alternate; }
main, .topbar { position: relative; z-index: 1; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
@keyframes smoke { from { transform: translateX(-4%) scale(1); } to { transform: translateX(4%) scale(1.08); } }

/* every screen arrives */
main > section { animation: arrive .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ledger-grid > div > *, .camp-grid > * , .title-side > *, .after-grid > * { animation: drop .5s cubic-bezier(.2, .8, .2, 1) both; }
.ledger-grid > div:nth-child(2) > * { animation-delay: .06s; } .ledger-grid > div:nth-child(3) > * { animation-delay: .12s; }
.title-side > *:nth-child(2) { animation-delay: .1s; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px) rotate(-.6deg); } to { opacity: 1; transform: none; } }

/* buttons feel like stamped cardboard */
.button, .action, .choice, .chip { position: relative; }
.action .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.action.primary .ico { color: var(--on-accent); width: 34px; height: 34px; float: left; margin: 2px 14px 0 0; }
body[data-era="tv"] .action .ico { color: #b23a1f; }
body[data-era="tv"] .action.primary .ico { color: var(--on-accent); }
.action.primary { overflow: hidden; }
.action.primary::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; left: -80px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); animation: sheen 4s ease-in-out infinite; }
@keyframes sheen { 0%, 70% { left: -80px; } 100% { left: 110%; } }
.delta { font-style: normal; font-family: var(--cond); font-size: .72rem; font-weight: 700; margin-left: 4px; padding: 0 4px; border-radius: 2px; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; display: inline-block; }
.delta.up { background: #2f6b3a; color: #f1e6cc; } .delta.down { background: #9c1f17; color: #f1e6cc; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.bar i { transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.ck { font-family: var(--cond); font-size: .7rem; background: var(--ink); color: var(--paper); padding: 1px 6px; border-radius: 3px; position: absolute; right: 10px; top: 10px; opacity: .7; }
.choice { padding-right: 40px; }
.choice.picked .ck { background: var(--paper); color: var(--ink); }

/* ---------- title screen ---------- */
.title-screen { padding-bottom: 54px; }
.logo-a, .logo-b { position: relative; display: inline-block !important; }
.logo-a::before, .logo-b::before { content: attr(data-text); position: absolute; left: 6px; top: 4px; z-index: -1; color: var(--accent2); -webkit-text-stroke: 0; text-shadow: none; opacity: .9; }
.logo { display: flex; flex-direction: column; align-items: center; }
.logo-a { animation: slam .7s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.logo-b { animation: slam .7s cubic-bezier(.2, 1.4, .4, 1) .3s both; }
.logo-of { animation: arrive .5s ease .5s both; }
@keyframes slam { from { transform: scale(2.2) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.burst-wrap { position: relative; isolation: isolate; }
.burst-wrap::before { content: ''; position: absolute; inset: -30px; z-index: -1; background: repeating-conic-gradient(from 0deg, rgba(184, 35, 27, .22) 0 8deg, transparent 8deg 16deg); border-radius: 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.now-showing { background: #0b0806; border: 4px solid var(--ink); box-shadow: 10px 10px 0 rgba(0, 0, 0, .6); padding: 0 0 10px; }
.ns-marquee { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: linear-gradient(180deg, #2a0c08, #120604); border-bottom: 3px solid var(--accent2); font-family: var(--cond); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--accent2); position: relative; }
.ns-marquee b { font-family: var(--display); font-weight: 400; letter-spacing: .06em; font-size: 1.3rem; color: #fff1c9; text-shadow: 0 0 10px rgba(255, 200, 100, .8); }
.ns-marquee::before, .ns-marquee::after { content: ''; position: absolute; left: 0; right: 0; height: 4px; background: radial-gradient(circle, #ffe27a 1.5px, transparent 2px) 0 0 / 12px 4px; animation: bulbs 1s steps(2) infinite; }
.ns-marquee::before { top: 2px; } .ns-marquee::after { bottom: 2px; }
@keyframes bulbs { to { background-position: 6px 0; } }
.ns-frame { margin: 10px 10px 0; position: relative; }
.ns-still { display: grid; place-items: center; padding: 18px; background: #1f3f8f; }
.ns-portrait { width: 60%; height: auto; border: 3px solid var(--ink); }
.fight-host.demo .fight-hud, .fight-host.demo .fight-ticker, .fight-host.demo .touch-pad, .fight-host.demo .fight-keys, .fight-host.demo .rotate-hint, .fight-host.demo .fight-callout { display: none !important; }
.fight-host.demo .fight-stage { border-width: 2px; }
.record-book { padding-top: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 3px solid var(--ink); margin: 0 -6px 12px; padding: 0 6px; position: relative; z-index: 1; }
.tab { background: var(--paper2); color: var(--ink); border: 2px solid var(--ink); border-bottom: 0; padding: 7px 10px; font-family: var(--cond); font-weight: 600; font-size: .82rem; letter-spacing: .03em; border-radius: 4px 4px 0 0; min-height: 38px; }
.tab.on { background: var(--ink); color: var(--paper); }
.tab-body { position: relative; z-index: 1; max-height: 360px; overflow: auto; }
.tab-body .ach-list { grid-template-columns: 1fr; }
.tab-body .ach-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; padding: 4px 0; border-bottom: 1px dashed rgba(23, 19, 15, .25); }
.tab-body .ach-list li small { grid-column: 2; color: var(--ink2); }
.empty { font-style: italic; color: var(--ink2); }
.ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #0b0806; border-top: 3px solid var(--accent2); overflow: hidden; height: 38px; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 46px; white-space: nowrap; animation: tick 160s linear infinite; padding-left: 20px; }
.ticker-track span { font-family: var(--cond); letter-spacing: .08em; font-size: .9rem; color: #f6e7c4; }
.ticker-track b { color: var(--accent2); margin-right: 6px; }
@keyframes tick { to { transform: translateX(-50%); } }
body:has(.ticker) main { padding-bottom: 80px; }

/* ---------- events ---------- */
.event-card.newspaper { animation: spinPaper .95s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes spinPaper { from { transform: scale(.08) rotate(-900deg); opacity: 0; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }
.event-card.note { animation: drop .5s cubic-bezier(.2, .8, .2, 1) both; }
.event-card.telegram { background: #f3e2a6; border-color: #3a2f12; transform: rotate(.3deg); animation: slideIn .55s cubic-bezier(.2, .8, .2, 1) both; font-family: var(--type); }
.event-card.telegram .event-title { font-family: var(--type); text-transform: uppercase; font-size: clamp(1.5rem, 3.4vw, 2.3rem); letter-spacing: .03em; }
.event-card.telegram .event-body p { font-family: var(--type); text-transform: uppercase; font-size: 1.02rem; letter-spacing: .02em; background: rgba(255, 255, 255, .45); padding: 10px 12px; border: 1px dashed rgba(58, 47, 18, .5); }
.wire-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px double #3a2f12; padding-bottom: 8px; margin-bottom: 10px; font-family: var(--cond); letter-spacing: .12em; }
.wire-head b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .1em; color: #8a2a1c; }
@keyframes slideIn { from { transform: translateX(-60px) rotate(-3deg); opacity: 0; } to { transform: rotate(.3deg); opacity: 1; } }
.event-card.letter { background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(31, 63, 143, .18) 31px 32px), #fbf6e6; border-color: #3b3328; transform: rotate(-.6deg); animation: unfold .6s cubic-bezier(.2, .8, .2, 1) both; padding-left: 52px; }
.event-card.letter::after { content: ''; position: absolute; left: 34px; top: 0; bottom: 0; width: 2px; background: rgba(184, 35, 27, .35); }
.event-card.letter .event-title { font-family: var(--serif); font-style: italic; font-weight: 700; }
.event-card.letter .event-body p { font-family: var(--serif); font-style: italic; line-height: 32px; font-size: 1.15rem; }
.letter-date { font-family: var(--serif); font-style: italic; text-align: right; margin: 0; }
@keyframes unfold { from { transform: perspective(900px) rotateX(70deg); opacity: 0; } to { transform: rotate(-.6deg); opacity: 1; } }
.outcome:not([hidden]) { animation: arrive .4s ease both; }

/* ---------- offers: posters dealt onto the table ---------- */
.fight-poster { animation: deal .55s cubic-bezier(.2, .9, .3, 1.15) both; transition: transform .18s ease, box-shadow .18s ease; transform: rotate(var(--r, 0deg)); }
.posters .fight-poster:nth-child(1) { --r: -1.6deg; animation-delay: .05s; } .posters .fight-poster:nth-child(2) { --r: 1.2deg; animation-delay: .17s; } .posters .fight-poster:nth-child(3) { --r: -.8deg; animation-delay: .29s; } .posters .fight-poster:nth-child(4) { --r: 1.8deg; animation-delay: .41s; }
.fight-poster:hover, .fight-poster:focus-within { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 12px 14px 0 rgba(0, 0, 0, .55); z-index: 2; }
@keyframes deal { from { transform: translate(-160px, -120px) rotate(-25deg); opacity: 0; } to { transform: rotate(var(--r, 0deg)); opacity: 1; } }
.fight-poster::before { content: ''; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(241, 230, 204, .65); border: 1px solid rgba(23, 19, 15, .2); }
.fight-poster.p-gold { background: radial-gradient(circle at 50% 30%, #f3c55a, var(--accent2) 60%); }
.fight-poster.p-red { background: radial-gradient(circle at 50% 30%, #c33224, #8f1c14 70%); }

/* ---------- tale of the tape ---------- */
.tape-title { position: relative; }
.tape-title::after { content: ''; display: block; height: 22px; margin: 10px auto 0; max-width: 680px; background: repeating-linear-gradient(90deg, #17130f 0 2px, transparent 2px 12px) 0 0 / 100% 10px no-repeat, repeating-linear-gradient(90deg, #17130f 0 2px, transparent 2px 60px) 0 0 / 100% 16px no-repeat, #e0a526; border: 2px solid #17130f; transform: rotate(-1deg); animation: tapeRoll .8s cubic-bezier(.2, .8, .2, 1) .1s both; transform-origin: left center; }
@keyframes tapeRoll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.tape-side.you { animation: fromLeft .6s cubic-bezier(.2, .8, .2, 1) .15s both; } .tape-side.opp { animation: fromRight .6s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes fromLeft { from { transform: translateX(-120px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fromRight { from { transform: translateX(120px); opacity: 0; } to { transform: none; opacity: 1; } }
.tape-table { animation: arrive .5s ease .35s both; position: relative; }
.tape-table tbody tr { animation: arrive .35s ease both; }
.tape-table tbody tr:nth-child(n) { animation-delay: calc(.4s + var(--row, 0) * .04s); }
.tape-grid { position: relative; }
.tape-grid::after { content: 'VS'; position: absolute; left: 50%; top: -34px; transform: translateX(-50%) rotate(-8deg); font-family: var(--comic); font-size: 3.2rem; color: var(--accent2); -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 3px 0 var(--ink); animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) .7s both; pointer-events: none; }
@keyframes stamp { from { transform: translateX(-50%) rotate(-8deg) scale(3); opacity: 0; } to { transform: translateX(-50%) rotate(-8deg) scale(1); opacity: 1; } }
.tape-actions .button.big:first-child { animation: pulse 2.2s ease-in-out 1.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 4px 4px 0 var(--ink); } 50% { box-shadow: 4px 4px 0 var(--ink), 0 0 0 8px rgba(224, 165, 38, .35); } }

/* ---------- radio, newsreel, television ---------- */
.radio-set { overflow: hidden; }
.radio-set::after { content: ''; position: absolute; left: 50%; top: 22px; width: 3px; height: 62px; background: #ff4b2b; box-shadow: 0 0 10px #ff6a3d; animation: dial 6s ease-in-out infinite alternate; }
@keyframes dial { from { transform: translateX(-180px); } to { transform: translateX(140px); } }
.radio.poster .radio-set { box-shadow: var(--shadow), inset 0 2px 0 rgba(255, 255, 255, .15), 0 0 60px rgba(255, 170, 80, .25); }
.radio.newsreel .radio-set::after { display: none; }
.radio.newsreel .radio-set { animation: flickerBox .2s steps(2) infinite; }
@keyframes flickerBox { 50% { filter: brightness(1.06); } }
.radio.tv .radio-set::after { display: none; }
.radio.tv .call li { text-shadow: 0 0 6px rgba(200, 240, 255, .5); }
.call li { animation: typeIn .6s both; animation-delay: var(--d, 0s); }
@keyframes typeIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------- clippings ---------- */
.clipping { animation: dropPaper .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dropPaper { from { transform: translateY(-80px) rotate(-6deg) scale(1.08); opacity: 0; } to { transform: rotate(.35deg); opacity: 1; } }
.clipping h1 { animation: inkIn .6s ease .25s both; }
@keyframes inkIn { from { opacity: 0; letter-spacing: .2em; filter: blur(3px); } to { opacity: 1; letter-spacing: -.01em; filter: none; } }
.stamp { animation: stampSlam .5s cubic-bezier(.2, 1.6, .4, 1) .7s both; }
@keyframes stampSlam { from { transform: rotate(-6deg) scale(3); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
.purse-table tr { animation: arrive .35s ease both; }
.purse-table tr:nth-child(1) { animation-delay: .5s; } .purse-table tr:nth-child(2) { animation-delay: .62s; } .purse-table tr:nth-child(3) { animation-delay: .74s; } .purse-table tr:nth-child(4) { animation-delay: .86s; } .purse-table tr:nth-child(5) { animation-delay: 1s; }

/* ---------- the final paper ---------- */
.final-paper { animation: spinPaper 1.1s cubic-bezier(.2, .8, .25, 1) both; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -30px; width: 8px; height: 18px; background: var(--c); animation: fall var(--t) linear var(--d) infinite; }
@keyframes fall { 0% { transform: translateY(0) rotate(0deg) rotateY(0deg); } 100% { transform: translateY(110vh) rotate(720deg) rotateY(720deg); } }

/* ---------- cutscenes ---------- */
.cutscene { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; animation: csIn .4s ease both; cursor: pointer; }
.cutscene.out { animation: csOut .45s ease both; }
@keyframes csIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes csOut { to { opacity: 0; } }
.cutscene canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-text { position: relative; z-index: 2; text-align: center; padding: 20px; max-width: 900px; color: #f6e7c4; text-shadow: 0 3px 0 rgba(0, 0, 0, .7), 0 0 30px rgba(0, 0, 0, .8); }
.cs-kicker { font-family: var(--cond); text-transform: uppercase; letter-spacing: .3em; font-size: clamp(.9rem, 2vw, 1.2rem); margin: 0 0 8px; animation: arrive .6s ease .4s both; }
.cs-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: .95; margin: 0 0 18px; color: #f1e6cc; -webkit-text-stroke: 2px #17130f; text-shadow: 5px 5px 0 #b8231b, 10px 10px 0 rgba(0, 0, 0, .6); animation: slam .8s cubic-bezier(.2, 1.4, .4, 1) .9s both; }
.cs-line { font-family: var(--type); font-size: clamp(1rem, 2.3vw, 1.45rem); margin: 6px 0; animation: typeIn .9s steps(30) both; animation-delay: calc(2s + var(--i) * 1.4s); }
.cs-war .cs-text { opacity: 0; animation: csIn .4s ease 3s both; }
.cs-war .cs-title { font-family: 'Special Elite', var(--display); letter-spacing: .08em; text-shadow: 4px 4px 0 #3b3a30, 0 0 30px #000; animation-delay: 3.5s; }
.cs-war .cs-line { animation-delay: calc(4.6s + var(--i) * 1.2s); }
.cs-war .cs-kicker { animation-delay: 3.2s; }
.cs-tv .cs-text { opacity: 0; animation: csIn .4s ease 1.6s both; background: rgba(0, 0, 0, .55); padding: 22px 34px; border-radius: 30px; }
.cs-tv .cs-title { text-shadow: 4px 4px 0 #2f8f87, 0 0 20px #fff; animation-delay: 2s; }
.cs-tv .cs-line { animation-delay: calc(3s + var(--i) * 1.2s); }
.cs-champion .cs-text { align-self: end; padding-bottom: 6vh; }
.cs-champion .cs-title { font-size: clamp(2.2rem, 6vw, 4.8rem); color: #ffe27a; animation-delay: 1.5s; }
.cs-champion .cs-line { animation-delay: calc(2.5s + var(--i) * .8s); }
.cs-champion .cs-line:first-of-type { font-family: var(--display); font-size: clamp(1.4rem, 3.2vw, 2.4rem); }
.cs-intro .cs-text { align-self: start; padding-top: 10vh; }
.cs-skip { position: absolute; z-index: 3; right: 20px; bottom: 20px; background: rgba(0, 0, 0, .55); color: #f6e7c4; border: 2px solid rgba(246, 231, 196, .6); font-family: var(--cond); text-transform: uppercase; letter-spacing: .12em; padding: 8px 14px; min-height: 42px; }
.cutscene.static .cs-text, .cutscene.static .cs-text * { animation: none !important; opacity: 1 !important; clip-path: none !important; }

/* ---------- fight HUD dressed like a scoreboard ---------- */
.fight-hud { background: linear-gradient(180deg, #24140c, #0e0805); border-color: #0b0806; box-shadow: inset 0 -3px 0 rgba(224, 165, 38, .5); }
.hud-name { font-family: var(--display); font-weight: 400; color: #f6e7c4; text-shadow: 2px 2px 0 #000; }
.hud-bar.hp { height: 20px; border-radius: 3px; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .4); }
.hud-bar.hp::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(0, 0, 0, .35) 9% 10%); z-index: 3; pointer-events: none; }
.hud-bar.hp i { background: linear-gradient(180deg, #ffe08a, #e0a526 60%, #b8801a); }
.hud-side.you .hud-bar.hp i { transition: width .1s; }
.hud-clock { font-family: var(--display); color: #ffe27a; text-shadow: 0 0 10px rgba(255, 210, 100, .6); }
.hud-stars i.on { background: #ffe27a; filter: drop-shadow(0 0 6px #ffcf4a); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.fight-ticker { font-size: .92rem; }
.ov-card { animation: drop .4s cubic-bezier(.2, .8, .2, 1) both; }
.ov-card.result.win .ov-big { animation: slam .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.ov-card.intro h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

@media (max-width: 900px) { .ticker { height: 32px; } .ticker-track span { font-size: .78rem; } }
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .cutscene canvas { display: block; }
}
.tape-grid { margin-top: 46px; }
.tape-grid::after { top: -50px; font-size: 2.8rem; }
.radio .screen-title { font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.15; }
.radio .screen-title::first-letter { text-transform: uppercase; }

.ov-sig { background: #3b0d09; color: #ffd9cf; padding: 8px 12px; font-size: .95rem; text-align: left; border-left: 4px solid var(--accent2); }
.pad-right:has([data-k="clinch"]) { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 480px) {
  .pad-right:has([data-k="clinch"]) { flex: 1.45; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pad-right:has([data-k="clinch"]) .pad-btn { font-size: .95rem; }
  .pad-right:has([data-k="clinch"]) .pad-btn small { font-size: .58rem; letter-spacing: 0; }
}

/* ---------- notebook & camp shop ---------- */
.notebook { max-width: 1100px; margin: 0 auto; }
.nb-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.lesson-count { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 10px 18px; text-align: center; transform: rotate(2deg); }
.lesson-count b { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--accent); }
body[data-era="tv"] .lesson-count b { color: #b23a1f; }
.lesson-count span { font-family: var(--cond); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.nb-group { font-family: var(--cond); text-transform: uppercase; letter-spacing: .16em; font-size: 1rem; margin: 26px 0 10px; color: var(--accent2); }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.perk, .gear { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 rgba(0, 0, 0, .5); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; animation: drop .4s ease both; background-image: repeating-linear-gradient(180deg, transparent 0 25px, rgba(31, 63, 143, .12) 25px 26px); }
.perk header, .gear header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.perk header b, .gear header b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; line-height: 1.1; }
.cost { font-family: var(--cond); font-weight: 700; color: var(--accent); white-space: nowrap; }
body[data-era="tv"] .cost { color: #b23a1f; }
.perk p, .gear p { margin: 0; font-size: .95rem; flex: 1; }
.perk .button, .gear .button { align-self: flex-start; min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.perk.owned, .gear.owned { background-color: #e7f0d8; }
.perk.locked { opacity: .65; }
.req { font-family: var(--cond); color: var(--bad) !important; flex: 0 !important; }
.upkeep { font-family: var(--cond); color: var(--ink2); }
.stamp-small { font-family: var(--display); color: var(--good) !important; border: 3px solid var(--good); align-self: flex-start; padding: 2px 10px; transform: rotate(-4deg); flex: 0 !important; }
.action.ready { box-shadow: 3px 3px 0 var(--ink), 0 0 0 4px var(--accent2); }
.badge-new { position: absolute; top: 10px; right: 10px; background: var(--accent2); color: var(--ink); border: 2px solid var(--ink); font-family: var(--cond); font-style: normal; font-weight: 700; font-size: .72rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .12em; padding: 1px 7px; transform: rotate(4deg); animation: badge-bob 1.8s ease-in-out infinite; }
@keyframes badge-bob { 0%, 100% { transform: rotate(4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .badge-new { animation: none; } }
.fp-buttons { display: flex; gap: 8px; }
.fp-buttons .button { width: auto; }
.fp-buttons .button:first-child { flex: 1; }
.fp-buttons .button + .button { padding-left: 14px; padding-right: 14px; }
.button.small { min-height: 44px; padding: 8px 12px; font-size: .85rem; }
.fp-sig { font-family: var(--cond); font-size: .85rem; margin: 0 0 8px; background: rgba(23, 19, 15, .85); color: #ffe27a; padding: 3px 8px; }
.tape-sig { background: #3b0d09; color: #ffd9cf; display: inline-block; padding: 8px 14px; border-left: 5px solid var(--accent2); max-width: 70ch; }
.ambitions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ambitions legend, .ambitions .field-note { grid-column: 1 / -1; }
.amb small { font-family: var(--cond); font-weight: 700; color: var(--good); }
.amb.on small { color: #c8f5a6; }
.amb-result.done h2 { color: var(--good); }
@media (max-width: 760px) { .ambitions { grid-template-columns: 1fr; } }

/* ---------- game length, consequences, callbacks ---------- */
.paces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.paces legend { grid-column: 1 / -1; }
.style-card.pace em { display: block; font-family: var(--cond); font-style: normal; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.style-card.pace.on em { color: var(--accent2); }
@media (max-width: 760px) { .paces { grid-template-columns: 1fr; } }
.consequences { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.cq { font-family: var(--cond); font-size: .82rem; letter-spacing: .04em; padding: 3px 9px; border: 2px solid var(--ink); background: var(--paper2); animation: arrive .35s ease both; }
.cq.up { background: #dbe9d0; color: #1f4a29; }
.cq.down { background: #f2d3cc; color: #7c1810; }
.cq.echo { background: var(--ink); color: var(--accent2); border-style: dashed; border-color: var(--accent2); text-transform: uppercase; letter-spacing: .1em; }
.cq:nth-child(2) { animation-delay: .05s; } .cq:nth-child(3) { animation-delay: .1s; } .cq:nth-child(4) { animation-delay: .15s; } .cq:nth-child(n+5) { animation-delay: .2s; }
.because { font-family: var(--type); font-size: .9rem; margin: 0 0 8px; padding: 6px 10px; border-left: 4px solid var(--accent2); background: rgba(224, 165, 38, .14); }
.because span { opacity: .75; }
.digest-cols { columns: 2 300px; column-gap: 26px; column-rule: 1px solid rgba(23, 19, 15, .35); margin-bottom: 16px; }
.digest-item { break-inside: avoid; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed rgba(23, 19, 15, .35); }
.digest-item h2 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.1; margin: 2px 0 6px; }
.digest-item p { margin: 0 0 6px; }
.digest-archive { font-size: .9rem; color: var(--ink2); }
.story-card ol { list-style: none; padding: 0; margin: 0; }
.story-card li { padding: 7px 0; border-bottom: 1px dashed rgba(23, 19, 15, .3); font-size: .95rem; line-height: 1.35; }
.story-card li span { display: block; font-family: var(--cond); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; color: var(--accent); }
.story-card li:first-child { animation: arrive .5s ease both; }
.tape-camp { background: var(--paper); color: var(--ink); display: inline-block; padding: 8px 14px; border: 2px solid var(--ink); max-width: 70ch; margin: 4px auto 10px; }
.camp-plan-note { font-family: var(--type); background: var(--paper2); border-left: 4px solid var(--accent); padding: 6px 10px; }
.event-card.newspaper.digest-card { animation: arrive .5s ease both; }
