/* The Sporting Record, 1911. Aged newsprint, one bleeding red, chromolithograph color on the cards. */
@font-face { font-family: 'Fraktur'; src: url(assets/fonts/UnifrakturCook-700.woff2) format('woff2'); font-display: swap }
@font-face { font-family: 'Head'; src: url(assets/fonts/Oswald-500.woff2) format('woff2'); font-weight: 500; font-display: swap }
@font-face { font-family: 'Head'; src: url(assets/fonts/Oswald-700.woff2) format('woff2'); font-weight: 700; font-display: swap }
@font-face { font-family: 'Old'; src: url(assets/fonts/OldStandardTT-400.woff2) format('woff2'); font-weight: 400; font-display: swap }
@font-face { font-family: 'Old'; src: url(assets/fonts/OldStandardTT-400i.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap }
@font-face { font-family: 'Old'; src: url(assets/fonts/OldStandardTT-700.woff2) format('woff2'); font-weight: 700; font-display: swap }
@font-face { font-family: 'Type'; src: url(assets/fonts/SpecialElite-400.woff2) format('woff2'); font-display: swap }
@font-face { font-family: 'Wood'; src: url(assets/fonts/Rye-400.woff2) format('woff2'); font-display: swap }

:root {
  --paper: #efe6d0; --paper2: #e6dabf; --paper3: #d9caa6; --ink: #1c1712; --ink2: #4a3f31; --ink3: #6f6250;
  --red: #9e2316; --red2: #c23a1e; --gold: #b8892b; --green: #2e4a34; --baize: #2f5a3f; --baize2: #264a33; --line: #a8987a; --wire: #f3e6b4; --sky: #7fb0c4;
  --hit: #2e6b45; --bad: #9e2316; --mid: #8a6a1e; font-size: 16px;
}
* { box-sizing: border-box }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--paper); color: var(--ink); font-family: 'Old', Georgia, 'Times New Roman', serif; font-size: 1rem; line-height: 1.32; font-variant-numeric: tabular-nums lining-nums }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .32; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .32 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E") }
#app { height: 100%; display: flex; flex-direction: column; min-width: 1280px; min-height: 720px }
@media (max-width: 1279px), (max-height: 719px) { html, body { overflow: auto } }
#build-stamp { position: fixed; right: 6px; bottom: 2px; font: .625rem monospace; opacity: .45; pointer-events: none; z-index: 1000 }
h1, h2, h3, h4 { margin: 0; font-weight: 700 }
button { font: inherit; color: inherit; cursor: pointer }
a { color: inherit }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px }

/* Masthead */
.mast { display: flex; align-items: stretch; gap: 0; border-bottom: 3px double var(--ink); background: var(--paper2); padding: 0 10px; height: 58px; flex: none }
.mast .title { font-family: 'Fraktur', serif; font-size: 2rem; line-height: 56px; padding-right: 14px; margin-right: 12px; border-right: 1px solid var(--line); cursor: pointer; background: none; border-top: 0; border-left: 0; border-bottom: 0 }
.mast .fact { display: flex; flex-direction: column; justify-content: center; padding: 0 14px; border-right: 1px solid var(--line); min-width: 84px }
.mast .fact small { font-family: 'Head'; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3) }
.mast .fact b { font-size: 1.0625rem; white-space: nowrap }
.mast .grow { flex: 1 }
.heatbar { width: 70px; height: 7px; background: var(--paper3); border: 1px solid var(--ink3); margin-top: 3px } .heatbar i { display: block; height: 100%; background: var(--red) }
.playon { display: flex; align-items: center; gap: 6px; padding-left: 12px }
.btn { font-family: 'Head'; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; font-size: .875rem; padding: 7px 12px; min-height: 36px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.btn:hover:not(:disabled) { background: var(--wire) } .btn:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink) }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none }
.btn.red { background: var(--red); color: #fbf3df; border-color: #520f07 } .btn.red:hover:not(:disabled) { background: var(--red2) }
.btn.big { font-size: 1.0625rem; padding: 9px 18px } .btn.small { font-size: .75rem; padding: 3px 8px; min-height: 26px; box-shadow: 1px 1px 0 var(--ink) } .btn.on { background: var(--ink); color: var(--paper) }
.link { background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px }
.link:hover { color: var(--red); text-decoration-color: var(--red) }

/* Shell */
.shell { flex: 1; display: flex; min-height: 0 }
.rail { width: 128px; flex: none; border-right: 1px solid var(--ink); background: var(--paper2); overflow: auto; padding: 4px 0 }
.rail button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; font-family: 'Head'; font-size: .8125rem; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px dotted var(--line) }
.rail button:hover { background: var(--paper3) } .rail button.on { background: var(--ink); color: var(--paper) } .rail button .dot { float: right; color: var(--red2) }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden }
.cols { flex: 1; display: grid; gap: 0; min-height: 0 }
.col { border-right: 1px solid var(--line); overflow: auto; padding: 10px 12px; min-height: 0 } .col:last-child { border-right: 0 }
.screenhead { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px 6px; border-bottom: 2px solid var(--ink); flex: none; flex-wrap: wrap }
.screenhead h1 { font-family: 'Head'; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em } .screenhead .sub { color: var(--ink2); font-style: italic }
.sect { font-family: 'Head'; font-weight: 700; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); margin: 10px 0 6px; padding-bottom: 2px } .sect:first-child { margin-top: 0 }
.tabs { display: inline-flex; gap: 4px; flex-wrap: wrap } .tabs .btn { min-height: 28px; padding: 3px 9px; font-size: .75rem; box-shadow: 1px 1px 0 var(--ink) }
.scroll { flex: 1; overflow: auto; min-height: 0 } .muted { color: var(--ink3) } .it { font-style: italic } .good { color: var(--hit) } .bad { color: var(--bad) } .right { text-align: right } .nowrap { white-space: nowrap }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }

/* Tables: ledger */
table.t { border-collapse: collapse; width: 100%; font-size: .9rem } table.t th { font-family: 'Head'; font-weight: 500; font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; text-align: right; padding: 3px 5px; border-bottom: 1.5px solid var(--ink); position: sticky; top: 0; background: var(--paper); white-space: nowrap; z-index: 1 }
table.t td { padding: 2px 5px; text-align: right; border-bottom: 1px dotted var(--line); white-space: nowrap } table.t th.l, table.t td.l { text-align: left } table.t tr.you td { background: rgba(184, 137, 43, .22); font-weight: 700 } table.t tbody tr:hover td { background: rgba(120, 90, 40, .12) } table.t th.sort { cursor: pointer } table.t th.sort:hover, table.t th.on { color: var(--red) }
.grade { font-weight: 700 } .g-lo { color: #8a3a2a } .g-mid { color: var(--ink) } .g-hi { color: #1f6a3f }

/* Telegrams */
.wire { background: var(--wire); border: 1px solid #b7a664; padding: 7px 9px; margin-bottom: 8px; font-family: 'Type', monospace; font-size: .8125rem; box-shadow: 1px 2px 0 rgba(60, 40, 10, .25); line-height: 1.38 } .wire.urgent { border-left: 5px solid var(--red) } .wire .from { font-weight: 700; display: flex; justify-content: space-between; border-bottom: 1px dashed #aa9652; margin-bottom: 4px; padding-bottom: 2px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em } .wire .from small { font-weight: 400; text-transform: none; letter-spacing: 0 } .wire .acts { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap } .wire.read { opacity: .78 }
/* Paper */
.news { border-bottom: 1px solid var(--ink3); padding: 5px 0 7px } .news h3 { font-family: 'Head'; font-size: 1.0625rem; line-height: 1.12; text-transform: uppercase; letter-spacing: .01em } .news.lead h3 { font-size: 1.625rem; line-height: 1.05 } .news p { margin: 3px 0 0; font-size: .9rem } .news small { font-size: .6875rem; color: var(--ink3); font-style: italic }
.paperhead { text-align: center; border-bottom: 3px double var(--ink); padding: 2px 0 4px } .paperhead h2 { font-family: 'Fraktur'; font-weight: 700; font-size: 2.5rem; line-height: 1 } .paperhead small { display: block; border-top: 1px solid var(--ink); margin-top: 2px; padding-top: 2px; font-style: italic }
.press { margin: 2px 0 6px; break-inside: avoid } .press img { display: block; width: 100%; filter: sepia(.45) contrast(1.06); mix-blend-mode: multiply; border: 1px solid var(--ink3) } .press.bw img { filter: grayscale(1) contrast(1.05) } .press figcaption { font-family: 'Old'; font-style: italic; font-size: .8125rem; line-height: 1.2; margin-top: 3px; color: var(--ink2, inherit) }
.news.lead .press { float: right; width: 44%; margin: 0 0 6px 16px } .news.lead .press img { width: auto; max-width: 100%; max-height: 340px; margin-left: auto } .news.lead .press figcaption { text-align: right } .news.lead::after { content: ''; display: block; clear: both }
.paper { column-count: 3; column-gap: 14px; column-rule: 1px solid var(--line) } .paper .news { break-inside: avoid }

/* Tobacco card */
.card { --c1: #1d3461; --c2: #b03a2e; width: 210px; aspect-ratio: 5 / 8; position: relative; background: #f5ecd2; padding: 7px; box-shadow: 1px 2px 5px rgba(40, 25, 5, .55); display: flex; flex-direction: column; font-family: 'Old'; flex: none; border-radius: 2px }
.card .art { flex: 1; position: relative; overflow: hidden; min-height: 0; background: var(--sky) } .card .art svg { width: 100%; height: 100%; display: block }
.card .band { text-align: center; padding-top: 5px; line-height: 1.05 } .card .band b { font-family: 'Head'; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .card .band span { font-size: .75rem; font-style: italic }
.card.small { width: 128px } .card.small .band b { font-size: .75rem } .card.small .band span { font-size: .625rem } .card.mini { width: 78px; padding: 3px } .card.mini .band { padding-top: 2px } .card.mini .band b { font-size: .5625rem } .card.mini .band span { display: none }
.cardback { width: 100%; background: #f5ecd2; padding: 8px 10px; font-size: .8125rem; border: 1px solid var(--line) }
.chart { width: 100%; border-collapse: collapse; font-family: 'Head'; font-size: .75rem } .chart td { padding: 1.5px 5px; border-bottom: 1px solid #cdbf9d } .chart td:last-child { text-align: right; font-variant-numeric: tabular-nums } .chart tr.hit td { background: #dfead0 } .chart tr.neg td { background: #eddccf } .chart tr.now td { background: var(--red); color: #fff; font-weight: 700 }
.flaw { display: inline-block; font-family: 'Head'; font-size: .6875rem; letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--ink3); padding: 0 5px; margin: 1px 3px 1px 0 } .flaw.b { border-color: var(--red); color: var(--red) } .flaw.g { border-color: var(--hit); color: var(--hit) }

/* Modal */
#overlay:empty { display: none } #overlay { position: fixed; inset: 0; background: rgba(28, 20, 8, .62); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px }
.modal { background: var(--paper); border: 2px solid var(--ink); box-shadow: 5px 6px 0 rgba(20, 12, 2, .7); max-height: 100%; overflow: auto; width: 620px; padding: 16px 20px; position: relative } .modal.wide { width: 1040px } .modal.mid { width: 820px }
.modal .x { position: absolute; top: 8px; right: 10px; z-index: 2 }
.modal h2 { font-family: 'Head'; text-transform: uppercase; font-size: 1.75rem; line-height: 1.04 } .modal .kick { font-family: 'Head'; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 3px }
.modal .story { font-size: 1.0625rem; line-height: 1.42; margin: 9px 0 12px } .choice { display: block; width: 100%; text-align: left; background: var(--paper2); border: 1.5px solid var(--ink); padding: 7px 11px; margin: 0 0 7px; font-size: 1rem } .choice:hover:not(:disabled) { background: var(--wire) } .choice:disabled { opacity: .55; cursor: not-allowed } .choice small { display: block; font-style: italic; color: var(--ink2); font-size: .8125rem }

/* Hand-painted scoreboard */
.board { background: #24392c; color: #f1ead6; font-family: 'Head'; padding: 7px 9px; border: 3px solid #17251c; box-shadow: inset 0 0 0 1px #3f5c49 } .board table { border-collapse: collapse; width: 100% } .board td, .board th { text-align: center; padding: 1px 3px; font-weight: 500; font-size: .9375rem; min-width: 22px } .board th { font-size: .625rem; color: #a7c0ab; letter-spacing: .05em } .board td.tm { text-align: left; font-weight: 700; letter-spacing: .05em; white-space: nowrap } .board td.tot { background: #17251c; color: #f6d78a; font-weight: 700 } .board td.cur { background: #f1ead6; color: #24392c }
.diamond { width: 100%; max-width: 250px; display: block; margin: auto } .pbp { font-size: .9375rem } .pbp p { margin: 0; padding: 3px 0; border-bottom: 1px dotted var(--line) } .pbp p.big { font-weight: 700 } .pbp p.score { color: var(--red); font-weight: 700 } .pbp p.inn { font-family: 'Head'; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); background: var(--paper2); padding: 2px 4px; margin-top: 4px }
.baize { background: var(--baize); background-image: radial-gradient(ellipse at center, #3a6c4d 0%, var(--baize) 60%, var(--baize2) 100%); color: #f4edd9 } .baize .sect { color: #e7dcbc; border-color: #9fb99f }
.die { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: #f7f0dc; color: #1c1712; font-family: 'Head'; font-weight: 700; font-size: 1.5rem; border-radius: 6px; box-shadow: 1px 2px 3px rgba(0, 0, 0, .5), inset 0 -2px 3px rgba(90, 70, 30, .3) } .die.red { background: var(--red); color: #fff } .die.roll { animation: die .32s linear infinite } @keyframes die { 0% { transform: rotate(-12deg) } 50% { transform: rotate(12deg) } 100% { transform: rotate(-12deg) } }
@media (prefers-reduced-motion: reduce) { .die.roll { animation: none } }
.title-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; overflow: auto } .title-screen h1 { font-family: 'Fraktur'; font-size: 7rem; line-height: .95 } .title-screen .tag { font-family: 'Head'; letter-spacing: .28em; text-transform: uppercase; font-size: .9375rem; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 5px 16px; margin: 8px 0 14px }
.map { position: relative; background: #ddd0ac; border: 3px double var(--ink); aspect-ratio: 16 / 10.5 } .map svg { position: absolute; inset: 0; width: 100%; height: 100% } .pin { position: absolute; transform: translate(-50%, -50%); width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); font-size: .625rem; font-family: 'Head'; box-shadow: 1px 1px 0 var(--ink3); display: flex; align-items: center; justify-content: center } .pin.on { background: var(--red); color: #fff } .pin.sel { outline: 2px solid var(--ink); outline-offset: 1px } .pin.barred { background: #3a3128; color: #efe6d0 } .pin .lbl { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .625rem; pointer-events: none; font-family: 'Old'; color: var(--ink); font-style: italic }
.toast { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 6px 14px; font-family: 'Head'; letter-spacing: .04em; z-index: 80; font-size: .875rem; pointer-events: none }
.kitchen { background: #3b2a1b; color: #f2e6cf; padding: 12px 16px } .kitchen .story { color: #f2e6cf } .oil { background: repeating-linear-gradient(45deg, #efe2c3 0 14px, #e4d4ae 14px 28px); color: var(--ink); padding: 11px 14px; border: 2px solid #1c1208 }
input[type=range] { width: 100%; accent-color: var(--red) } select { font: inherit; background: var(--paper); border: 1px solid var(--ink); padding: 2px 4px }
.opt { border: 1.5px solid var(--ink); padding: 7px 11px; background: var(--paper2); text-align: left; display: block; width: 100%; margin-bottom: 6px } .opt.on { background: var(--ink); color: var(--paper) } .opt small { display: block; font-style: italic; font-size: .8125rem; opacity: .9 }
.clubpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px } .clubpick button { border: 1.5px solid var(--ink); background: var(--paper2); padding: 4px 8px; text-align: left; font-size: .8125rem; line-height: 1.15 } .clubpick button b { font-family: 'Head'; font-size: .9375rem; display: block; text-transform: uppercase } .clubpick button.on { outline: 3px solid var(--red); background: var(--wire) }

/* world screens */
.blackletter { font-family: 'Fraktur', serif }
.paperhead h2.blackletter { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.2; margin: .1em 0 }
.news .deck { font-size: .9375rem; margin: 2px 0 } .news.lead { column-span: all; border-bottom: 3px double var(--ink); padding-bottom: 8px; margin-bottom: 8px } .news.lead h3 { font-size: 2.25rem } .news.lead .deck { font-size: 1.125rem } .news.lead p { font-size: 1rem; max-width: 70ch }
.heatbar.wide { display: inline-block; width: 110px; vertical-align: middle } .heatbar.big { width: 240px; height: 12px }
.mood { padding: 6px 8px; margin-top: 6px; border-left: 5px solid var(--line); background: var(--paper); font-size: .9375rem } .mood.m-yes { border-color: var(--hit) } .mood.m-warm { border-color: var(--gold) } .mood.m-thinking { border-color: var(--mid) } .mood.m-cold, .mood.m-laughs { border-color: var(--bad) }
table.t td.keycol { background: rgba(184, 137, 43, .14) }
.plaque { display: flex; gap: 10px; background: var(--paper2); border: 2px solid var(--ink); box-shadow: 2px 3px 0 rgba(20, 12, 2, .35); padding: 8px; align-items: flex-start } .plaque .pl { flex: 1; min-width: 0 }
.banner { padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--paper2); flex: none } .banner.now { background: var(--red); color: #fbf3df; font-size: 1.0625rem }
.gloss { margin: 0 } .gloss dt { font-family: 'Head'; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px } .gloss dd { margin: 0 0 2px }
.tin { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; text-align: left; padding: 8px 12px; border: 2px solid var(--ink); background: linear-gradient(#d9caa6, #c3ae7a); box-shadow: 2px 3px 0 rgba(20, 12, 2, .5) } .tin b { font-family: 'Head'; text-transform: uppercase; font-size: 1.0625rem } .tin span { text-align: right; font-size: .8125rem } .tin em { grid-column: 1; font-size: .8125rem } .tin strong { text-align: right; font-family: 'Head' } .tin.silk { background: linear-gradient(#cfd4d6, #9fa9ad) } .tin.gold { background: linear-gradient(#ecd48a, #b8892b) } .tin:disabled { opacity: .55; cursor: not-allowed } .tin.gone { filter: grayscale(1) }
.flipwrap { width: 128px; perspective: 700px } .flipwrap.fresh .flipcard { animation: flipin .7s ease-out both; animation-delay: calc(var(--i) * .22s) } .flipcard { transform-style: preserve-3d }
@keyframes flipin { from { transform: rotateY(180deg); opacity: 0 } 40% { opacity: 1 } to { transform: rotateY(0); opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .flipwrap.fresh .flipcard { animation: none } }
table.t td.wrap { white-space: normal }

.kitchen .wire { color: var(--ink) }

/* sizzle */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden }
.hat { position: absolute; bottom: -60px; animation: hat 1.8s cubic-bezier(.2,.7,.4,1) both }
@keyframes hat { 0% { transform: translate(0, 0) rotate(0) } 55% { transform: translate(calc(var(--drift) * .6), calc(var(--up) * -1)) rotate(calc(var(--spin) * .6)) } 100% { transform: translate(var(--drift), 40px) rotate(var(--spin)); opacity: .9 } }
.slam { position: absolute; top: 13%; left: 50%; transform: translate(-50%, -50%) rotate(-3deg); text-align: center; animation: slam 1.1s ease-out both; white-space: nowrap; pointer-events: none }
.slam b { display: block; font-family: 'Wood', 'Head', serif; font-weight: 400; font-size: 2.75rem; line-height: 1; color: #1c1712; padding: 5px 20px; border: 5px double currentColor; background: rgba(243, 230, 180, .93); box-shadow: 4px 6px 0 rgba(20, 12, 2, .45) }
.slam.red b { color: var(--red) }
.slam small { display: block; font-family: 'Head'; font-size: 1.125rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; background: var(--ink); color: var(--paper); padding: 2px 10px; display: inline-block }
@keyframes slam { 0% { transform: translate(-50%, -50%) rotate(-5deg) scale(2.3); opacity: 0 } 11% { transform: translate(-50%, -50%) rotate(-5deg) scale(1); opacity: 1 } 80% { transform: translate(-50%, -50%) rotate(-5deg) scale(1); opacity: 1 } 100% { transform: translate(-50%, -50%) rotate(-5deg) scale(.98); opacity: 0 } }
.board td.slat { animation: slat .55s cubic-bezier(.2,1.4,.5,1) both; background: #f6d78a; color: #24392c }
@keyframes slat { 0% { transform: translateY(-16px) rotateX(70deg) } 100% { transform: none } }
.wp { display: flex; align-items: center; gap: 8px; height: 30px; flex: none; font-family: 'Head'; font-size: .8125rem; letter-spacing: .03em; background: var(--paper2); border: 1px solid var(--line); padding: 2px 8px; color: var(--ink) } .wp svg { flex: 1; height: 100%; min-width: 0 } .wp span { white-space: nowrap } .wp b { font-size: 1rem }
#overlay .modal { animation: drop .2s cubic-bezier(.2,.9,.3,1.1) both }
@keyframes drop { 0% { transform: translateY(-14px) rotate(-.6deg); opacity: 0 } 100% { transform: none; opacity: 1 } }
.news.lead h3 { animation: press .35s ease-out both }
@keyframes press { 0% { letter-spacing: .08em; opacity: .2 } 100% { letter-spacing: .01em; opacity: 1 } }
.wire.urgent:not(.read) { animation: wireIn .3s ease-out both } @keyframes wireIn { 0% { transform: translateX(-8px); opacity: 0 } 100% { transform: none; opacity: 1 } }
.rail button { transition: background .1s } .btn { transition: background .08s, transform .05s, box-shadow .05s }
.pbp p:first-child { animation: wireIn .25s ease-out both }
@media (prefers-reduced-motion: reduce) { #overlay .modal, .news.lead h3, .wire.urgent:not(.read), .pbp p:first-child, .board td.slat, .slam { animation: none } .btn, .rail button { transition: none } }

/* card room */
/* ---- the frame: everything measured in --u, a card is 100u tall */
.cf { --u: 2.5px; position: relative; display: block; flex: none; width: calc(var(--u) * var(--w, 70)); height: calc(var(--u) * 100); overflow: hidden; box-shadow: 0 1px 4px rgba(20, 10, 0, .55); font-family: 'Old', serif; text-align: left; line-height: 1.05; color: #1c1712; contain: layout paint style }
.cf.mini { --u: 1.04px } .cf.small { --u: 1.8px } .cf.normal { --u: 2.5px } .cf.big { --u: 4.8px }
.cf-art { position: absolute; overflow: hidden } .cf-art svg { width: 100%; height: 100%; display: block }
.cf-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.cf.mini .cf-opt, .cf.small .cf-opt { display: none }
button.cf-btn { background: none; border: 0; padding: 0; display: inline-block; line-height: 0 } button.cf-btn:hover .cf { box-shadow: 0 2px 10px rgba(20, 10, 0, .75); outline: 1px solid rgba(255,255,255,.45) }

/* Sweet Havana Tobacco, 1901-09: tall and thin, white border, flat sky, one line of small caps */
.cf-cuban { --w: 56; background: #f3eee0; box-shadow: 0 1px 4px rgba(20,10,0,.55), inset 0 0 calc(var(--u) * 2.5) rgba(120, 90, 40, .22) }
.cf-cuban .cf-art { left: calc(var(--u) * 3.6); right: calc(var(--u) * 3.6); top: calc(var(--u) * 3.6); bottom: calc(var(--u) * 11.5) }
.cf-line { position: absolute; left: calc(var(--u) * 1.5); right: calc(var(--u) * 1.5); bottom: calc(var(--u) * 3.2); text-align: center; color: #63431f; font-weight: 700; letter-spacing: .05em; white-space: nowrap; overflow: hidden; font-size: max(9px, calc(var(--u) * var(--fs))) }

/* Sovereign Cabinet, 1910-19: warm cream, gilt oval, script name */
.cf-cabinet { --w: 72; background: #efe0bd; box-shadow: 0 1px 4px rgba(20,10,0,.55), inset 0 0 calc(var(--u) * 5) rgba(140, 100, 40, .3) }
.cf-cabinet .cf-art { left: calc(var(--u) * 8); width: calc(var(--u) * 56); top: calc(var(--u) * 6); height: calc(var(--u) * 64); border-radius: 50% }
.cf-script { position: absolute; left: 0; right: 0; bottom: calc(var(--u) * 10.5); text-align: center; font-style: italic; color: #3f2810; font-size: max(9px, calc(var(--u) * var(--fs))); transform: skewX(-8deg); white-space: nowrap }
.cf-cabinet .cf-sub { position: absolute; left: 0; right: 0; bottom: calc(var(--u) * 5); text-align: center; font-size: max(9px, calc(var(--u) * 3.7)); color: #6b4c22; letter-spacing: .05em; font-variant: small-caps }
.cf.small.cf-cabinet .cf-script, .cf.mini.cf-cabinet .cf-script { bottom: calc(var(--u) * 7) }

/* Crackerbox Caramel, 1920-32: red ground, wood type, a small ad line */
.cf-caramel { --w: 60; background: #b3251a }
.cf-rule { position: absolute; inset: calc(var(--u) * 1.3); border: calc(var(--u) * .35) solid #f0d9a6; outline: calc(var(--u) * .25) solid #f0d9a6; outline-offset: calc(var(--u) * -1); pointer-events: none }
.cf-wood { position: absolute; left: calc(var(--u) * 3); right: calc(var(--u) * 3); top: calc(var(--u) * 3.2); height: calc(var(--u) * 12); display: flex; align-items: center; justify-content: center; font-family: 'Wood', serif; color: #fbf0cf; text-shadow: calc(var(--u) * .35) calc(var(--u) * .35) 0 #4d0d07; font-size: max(9px, calc(var(--u) * var(--fs))); white-space: nowrap }
.cf-caramel .cf-art { left: calc(var(--u) * 5); right: calc(var(--u) * 5); top: calc(var(--u) * 16); bottom: calc(var(--u) * 17.5); box-shadow: 0 0 0 calc(var(--u) * .5) #2a0f08 }
.cf-caramel .cf-sub { position: absolute; left: calc(var(--u) * 2); right: calc(var(--u) * 2); bottom: calc(var(--u) * 9.5); text-align: center; font-family: 'Head'; font-weight: 700; color: #f8e6b4; letter-spacing: .06em; font-size: max(9px, calc(var(--u) * 4)); white-space: nowrap; overflow: hidden }
.cf-ad { position: absolute; left: calc(var(--u) * 2); right: calc(var(--u) * 2); bottom: calc(var(--u) * 3.6); text-align: center; font-style: italic; color: #f0d9a6; font-size: max(9px, calc(var(--u) * 3)) }
.cf.small.cf-caramel .cf-art, .cf.mini.cf-caramel .cf-art { bottom: calc(var(--u) * 13) } .cf.small.cf-caramel .cf-sub, .cf.mini.cf-caramel .cf-sub { bottom: calc(var(--u) * 3.6) }

/* Big League Chew-Gum, 1933-41: full bleed, saturated, big banner */
.cf-chew { --w: 83; background: #d6342c } .cf-chew .cf-art { inset: 0 0 calc(var(--u) * 20) }
.cf-banner { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u) * 24); background: #c8241c; clip-path: polygon(0 calc(var(--u) * 4), 100% 0, 100% 100%, 0 100%); display: flex; flex-direction: column; justify-content: flex-end; box-shadow: inset 0 calc(var(--u) * 1) 0 #f2b705 }
.cf-big { flex: 1; display: flex; align-items: center; justify-content: center; font-family: 'Head'; font-weight: 700; text-transform: uppercase; color: #fff7dc; text-shadow: calc(var(--u) * .4) calc(var(--u) * .4) 0 #5a0d08; font-size: max(9px, calc(var(--u) * var(--fs))); letter-spacing: .01em; white-space: nowrap; padding-top: calc(var(--u) * 3.5) }
.cf-strip { background: #f2b705; color: #331708; font-family: 'Head'; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; font-size: max(9px, calc(var(--u) * 3.3)); padding: calc(var(--u) * .7) 0; white-space: nowrap; overflow: hidden }

/* Bright Bubble, 1942-52: plain bright panel, simple sans, a slim strip of team color */
.cf-bright { --w: 82; background: #faf7ee }
.cf-bright .cf-art { left: calc(var(--u) * 3.5); right: calc(var(--u) * 3.5); top: calc(var(--u) * 3.5); bottom: calc(var(--u) * 17.5) }
.cf-tstrip { position: absolute; left: calc(var(--u) * 3.5); right: calc(var(--u) * 3.5); bottom: calc(var(--u) * 15); height: calc(var(--u) * 2.5); background: var(--c1); box-shadow: inset 0 calc(var(--u) * -.9) 0 var(--c2) }
.cf-sans { position: absolute; left: calc(var(--u) * 4); right: calc(var(--u) * 16); bottom: calc(var(--u) * 4.6); font-family: 'Head'; font-weight: 500; color: #1d1d20; font-size: max(9px, calc(var(--u) * var(--fs))); white-space: nowrap; overflow: hidden }
.cf-pos { position: absolute; right: calc(var(--u) * 4); bottom: calc(var(--u) * 4.6); font-family: 'Head'; font-weight: 700; color: var(--c1); font-size: max(9px, calc(var(--u) * 6)) }

/* Hometown Gum, 1953-60: big face, team field, a signature across the front, the cap-letter circle */
.cf-home { --w: 70; background: #fbfaf3 }
.cf-home .cf-art { inset: calc(var(--u) * 3) calc(var(--u) * 3) calc(var(--u) * 21) }
.cf-sig { display: block; text-align: left; font-style: italic; font-weight: 400; color: #14141c; font-size: max(9px, calc(var(--u) * var(--fs))); line-height: 1.1; transform: rotate(-2deg) skewX(-10deg); transform-origin: left bottom; white-space: nowrap; overflow: hidden; margin-bottom: calc(var(--u) * .4) }
.cf-sig svg { display: block; width: 90%; height: calc(var(--u) * 1.4); margin: calc(var(--u) * -.3) 0 0 }
.cf-logo { position: absolute; z-index: 2; left: calc(var(--u) * 4.5); bottom: calc(var(--u) * 5); width: calc(var(--u) * 14); height: calc(var(--u) * 14); border-radius: 50%; background: var(--c1); color: #fff; box-shadow: 0 0 0 calc(var(--u) * .6) #fbfaf3; display: flex; align-items: center; justify-content: center; font-family: 'Wood', serif; font-size: max(9px, calc(var(--u) * 8.5)) }
.cf-plate2 { position: absolute; right: calc(var(--u) * 3); bottom: calc(var(--u) * 3); left: calc(var(--u) * 3); padding-left: calc(var(--u) * 19) !important; min-height: calc(var(--u) * 17); display: flex; flex-direction: column; justify-content: center; background: #fbfaf3; padding: calc(var(--u) * 1) calc(var(--u) * 1.4); font-family: 'Head'; line-height: 1.05; font-size: max(9px, calc(var(--u) * var(--fs))); color: #16161a; white-space: nowrap; overflow: hidden }
.cf-plate2 b, .cf-plate2 span { display: block } .cf-plate2 span { font-size: max(9px, calc(var(--u) * 3.1)); color: #52525a; letter-spacing: .05em; text-transform: uppercase }
.cf.mini.cf-home .cf-logo { display: none } .cf.mini.cf-home .cf-plate2 { padding-left: calc(var(--u) * 3) !important; min-height: 0 } .cf.mini .cf-sig { display: none } .cf.mini.cf-home .cf-art { bottom: calc(var(--u) * 14) }

/* ---- rarity */
.cf-mark { position: absolute; left: calc(var(--u) * 5.2); top: calc(var(--u) * 5.2); width: calc(var(--u) * 3.2); height: calc(var(--u) * 3.2); min-width: 5px; min-height: 5px; background: #f4efe0; border: 1px solid #1c1712; transform: rotate(45deg); z-index: 3 }
.cf-mark.gold { background: #d4af37 }
.cf-mark.star { width: calc(var(--u) * 6); height: calc(var(--u) * 6); min-width: 9px; min-height: 9px; left: calc(var(--u) * 4.4); top: calc(var(--u) * 4.4); border: 0; transform: none; background: #f7d24a; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 96%, 50% 76%, 20% 96%, 30% 60%, 0 38%, 38% 35%) }
.cf-pin { position: absolute; inset: calc(var(--u) * 1); border: calc(var(--u) * .55) solid #d4af37; outline: calc(var(--u) * .18) solid #f6e39a; outline-offset: calc(var(--u) * -.55); pointer-events: none; z-index: 3; min-width: 0 }
.cf-foil { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; mix-blend-mode: soft-light; background: linear-gradient(125deg, rgba(255, 215, 90, .6), rgba(255, 255, 255, 0) 45%, rgba(120, 200, 255, .5) 70%, rgba(255, 150, 200, .55)) }
.cf-foil::before { content: ''; position: absolute; top: -20%; left: -60%; width: 34%; height: 140%; background: linear-gradient(100deg, transparent, rgba(255, 240, 180, .55) 35%, rgba(255, 255, 255, .95) 50%, rgba(190, 230, 255, .55) 65%, transparent); animation: cf-shine 3.6s linear infinite var(--d, 0s); will-change: transform }
@keyframes cf-shine { 0% { transform: translateX(0) } 55%, 100% { transform: translateX(300%) } }
@media (prefers-reduced-motion: reduce) { .cf-foil::before { animation: none; transform: translateX(110%); opacity: .4 } }
.cf-stamps { position: absolute; right: calc(var(--u) * 2.6); top: calc(var(--u) * 2.6); display: flex; flex-direction: column; align-items: flex-end; gap: calc(var(--u) * 1); z-index: 5 }
.cf-st { font-family: 'Head'; font-weight: 700; font-size: max(9px, calc(var(--u) * 4)); letter-spacing: .04em; line-height: 1; padding: calc(var(--u) * 1) calc(var(--u) * 1.2); transform: rotate(-9deg) }
.cf-st.hof { background: #d4af37; color: #2b1c05; border: calc(var(--u) * .35) solid #6d5413; box-shadow: 0 0 0 calc(var(--u) * .25) #f6e39a; border-radius: 50% / 40% }
.cf-st.rc { background: #fbf6e6; color: #a81d10; border: calc(var(--u) * .45) solid #a81d10; transform: rotate(7deg) }
.cf.mini .cf-st { padding: 1px 2px; font-size: 9px } .cf.mini .cf-stamps { gap: 1px }

.cf-caramel .cf-mark { top: calc(var(--u) * 17.5); left: calc(var(--u) * 6.5) } .cf-caramel .cf-stamps { top: calc(var(--u) * 17); right: calc(var(--u) * 6) }
.cf-cabinet .cf-mark { top: calc(var(--u) * 6) ; left: calc(var(--u) * 6) } 

/* ---- the hole in the binder */
.cf.ghost { box-shadow: none; outline: 1.5px dashed rgba(244, 236, 214, .32); outline-offset: -3px; color: rgba(244, 236, 214, .8) }
.cf-shade { position: absolute; left: 12%; right: 12%; width: 76%; top: 8%; height: 64%; fill: rgba(0, 0, 0, .3) }
.cf-gname { position: absolute; left: 3px; right: 3px; bottom: calc(var(--u) * 5); text-align: center; font-family: 'Head'; white-space: nowrap; overflow: hidden } .cf-gname b { display: block; font-weight: 500; font-size: max(11px, calc(var(--u) * 6)); letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis } .cf-gname span { display: block; font-size: max(9px, calc(var(--u) * 3.6)); opacity: .8 }
.g-cuban { background: rgba(120, 170, 130, .13) } .g-cabinet { background: rgba(200, 160, 90, .15) } .g-caramel { background: rgba(190, 60, 45, .16) } .g-chew { background: rgba(70, 130, 200, .15) } .g-bright { background: rgba(240, 130, 150, .13) } .g-home { background: rgba(244, 236, 214, .1) }
.cf.ghost.small .cf-gname span { display: block } .cf.ghost .cf-mark { opacity: .7; left: 8px; top: 8px }

/* ---- face down */
.cf-cover { background: var(--cv, #4d6a4a); box-shadow: 0 2px 6px rgba(10, 5, 0, .6) }
.c-cuban { --cv: #2f5233 } .c-cabinet { --cv: #6b4c22 } .c-caramel { --cv: #8c1c13 } .c-chew { --cv: #1b4f8c } .c-bright { --cv: #c8501e } .c-home { --cv: #26262c }
.cf-lattice { position: absolute; inset: calc(var(--u) * 3); border: calc(var(--u) * .6) solid rgba(255, 245, 215, .75); background-image: repeating-linear-gradient(45deg, rgba(255, 245, 215, .22) 0 calc(var(--u) * .5), transparent 0 calc(var(--u) * 4)), repeating-linear-gradient(-45deg, rgba(255, 245, 215, .22) 0 calc(var(--u) * .5), transparent 0 calc(var(--u) * 4)) }
.cf-mono { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(var(--u) * 26); height: calc(var(--u) * 26); border-radius: 50%; background: var(--cv); border: calc(var(--u) * .7) solid rgba(255, 245, 215, .85); color: #fff5d7; font-family: 'Fraktur', serif; font-size: calc(var(--u) * 12); display: flex; align-items: center; justify-content: center }

/* ---- the back: one ink on gray-tan stock */
.cb { background: #c9bda3; color: var(--ink); padding: calc(var(--u) * 3.2) calc(var(--u) * 3.6); box-shadow: 0 1px 4px rgba(20,10,0,.55), inset 0 0 calc(var(--u) * 6) rgba(110, 90, 50, .28); font-family: 'Old', serif; display: flex; flex-direction: column; gap: calc(var(--u) * .9) }
.cb-maker { font-family: 'Head'; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: max(9px, calc(var(--u) * 3.1)); border-bottom: calc(var(--u) * .3) solid var(--ink); padding-bottom: calc(var(--u) * .8); text-align: center } .cb-maker small { display: block; font-weight: 500; font-size: max(9px, calc(var(--u) * 2.1)); letter-spacing: .05em }
.cb-name { font-family: 'Wood', serif; text-align: center; font-size: calc(var(--u) * 4.6); line-height: 1.05 }
.cb-vit { font-size: max(9px, calc(var(--u) * 2.6)); line-height: 1.18; text-align: center }
.cb-head { font-family: 'Head'; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: max(9px, calc(var(--u) * 2)); border-top: 1px solid var(--ink); padding-top: calc(var(--u) * .5) }
.cb-line { display: flex; flex-wrap: wrap; gap: 0 calc(var(--u) * .2); font-family: 'Type', monospace } .cb-line div { flex: 1 0 calc(var(--u) * 6); text-align: center } .cb-line small { display: block; font-family: 'Head'; font-size: max(9px, calc(var(--u) * 1.9)) } .cb-line b { font-weight: 400; font-size: max(9px, calc(var(--u) * 2.5)) }
.cb-chart { font-family: 'Type', monospace; font-size: max(9px, calc(var(--u) * 2.45)); line-height: 1.5; columns: 2; column-gap: calc(var(--u) * 2) } .cb-chart div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--ink); break-inside: avoid; white-space: nowrap } .cb-chart b { font-weight: 400 }
.cb-cuban .cb-chart, .cb-caramel .cb-chart { columns: 1 }
.cb-blurb { margin: calc(var(--u) * 1) 0 0; font-style: italic; font-size: max(9px, calc(var(--u) * 3)); line-height: 1.24; flex: 1; min-height: 0; overflow: hidden }
.cb-ad { font-family: 'Head'; letter-spacing: .05em; text-transform: uppercase; text-align: center; font-size: max(9px, calc(var(--u) * 1.9)); border-top: calc(var(--u) * .3) solid var(--ink); padding-top: calc(var(--u) * .6) }
.cb-cuban .cb-name { font-size: calc(var(--u) * 3.8) } .cb-cuban .cb-vit { font-size: max(9px, calc(var(--u) * 2)) } .cb-cuban .cb-blurb { font-size: max(9px, calc(var(--u) * 2.25)) } .cb-caramel .cb-blurb { font-size: max(9px, calc(var(--u) * 2.5)) } .cb-cuban .cb-chart, .cb-caramel .cb-chart { font-size: max(9px, calc(var(--u) * 2.15)); line-height: 1.3 }

/* ---- the flip */
.cf-flip { perspective: 1400px; cursor: pointer; display: inline-block; line-height: 0 }
.cf-flip-in { position: relative; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, .9, .4, 1) }
.cf-flip.flipped .cf-flip-in { transform: rotateY(180deg) }
.cf-face { backface-visibility: hidden; -webkit-backface-visibility: hidden } .cf-face.cf-rev { position: absolute; inset: 0; transform: rotateY(180deg); display: flex; justify-content: center }
@media (prefers-reduced-motion: reduce) { .cf-flip-in { transition: none } }

/* story */
.modal.rv { width: min(1290px, 96vw); padding: 0; display: flex; flex-direction: column; font-size: .9rem; overflow: hidden } .rv-head, .rv-foot { flex: none }
.rv-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 9px 18px 7px; border-bottom: 4px double var(--ink); border-top: 7px solid var(--c1, var(--ink)) }
.rv-head h2 { font-size: 1.875rem } .rv-record { text-align: right; font-family: 'Head'; text-transform: uppercase; line-height: 1.05 } .rv-record b { font-size: 1.875rem; display: block } .rv-record span { font-size: .875rem; letter-spacing: .04em }
.rv-cols { display: grid; grid-template-columns: 1fr 1.28fr 1fr; min-height: 0; flex: 1; overflow: hidden } .rv-cols section { padding: 8px 14px; min-width: 0; min-height: 0; overflow: auto } .rv-cols section + section { border-left: 1px solid var(--line) }
.rv-cols .sect { margin: 8px 0 4px } .rv-cols .sect:first-child { margin-top: 0 } .rv-cols table.t td { padding: 1px 4px } .rv-cols table.t { font-size: .8125rem; width: 100% }
.rv-says { margin: 0 0 5px; font-size: .9875rem; line-height: 1.28; font-style: italic } .rv-says .muted { font-style: normal; font-size: .8125rem } .rv-fired { margin: 0 0 5px; font-family: 'Head'; text-transform: uppercase; color: var(--red) }
.rv-goals { list-style: none; margin: 0 0 4px; padding: 0; font-size: .8125rem; line-height: 1.22 } .rv-goals li { padding: 2px 0 2px 7px; border-left: 4px solid var(--line); margin-bottom: 3px } .rv-goals li.met { border-color: var(--green) } .rv-goals li.miss { border-color: var(--red) } .rv-goals b { font-family: 'Head'; text-transform: uppercase; font-size: .6875rem; letter-spacing: .06em } .rv-goals i { opacity: .75; white-space: nowrap }
.rv-small { margin: 0 0 3px; font-size: .8125rem; line-height: 1.26 } .rv-note { color: var(--red); font-size: .75rem } .rv-star { color: var(--red) }
.rv-paper { margin: 8px 0 0; padding: 6px 9px; background: var(--paper2); border-left: 4px solid var(--ink); font-size: .875rem; line-height: 1.26; font-style: italic } .rv-paper cite { display: block; font-style: normal; font-family: 'Head'; font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px }
.rv-awards, .rv-gone { list-style: none; margin: 0; padding: 0; font-size: .8125rem; line-height: 1.22 } .rv-awards li, .rv-gone li { padding: 1px 0 } .rv-awards li.mine { font-weight: 700; color: var(--red) }
.rv-foot { padding: 7px 14px; border-top: 1px solid var(--ink); display: flex; justify-content: flex-end }
.goals { list-style: none; margin: 0; padding: 0; font-size: .875rem; line-height: 1.24 } .goals li { display: flex; gap: 6px; margin-bottom: 4px } .goals .mark { flex: none; color: var(--mid, #8a7a5a) } .goals li.ok .mark { color: var(--green) }
.nem { margin: 0; font-size: .875rem; line-height: 1.28 }
.rulebook { background: var(--wire, #efe2c3); border: 1.5px solid var(--ink); padding: 6px 9px; margin-bottom: 9px; font-size: .875rem; line-height: 1.26 } .rulebook .kick { font-family: 'Head'; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red) }
.mstory { max-height: 96px; overflow: auto; margin: 4px 0; flex: none } .mstory .sect { margin: 2px 0 3px } .mstory ul { list-style: none; margin: 0; padding: 0; font-size: .8125rem; line-height: 1.22 } .mstory li { padding: 1px 0 } .mstory li b { font-family: 'Head'; font-size: .75rem; margin-right: 3px } .mstory li.k-promise { color: var(--red) } .mstory li.k-debut, .mstory li.k-mile, .mstory li.k-nohit { font-weight: 700 }

/* ---- room shell */
.rm-mast { height: 48px; flex: none; display: flex; align-items: stretch; background: #1a120a; color: #f1e6cc; border-bottom: 3px double #b8892b; padding: 0 12px }
.rm-title { font-family: 'Fraktur', serif; font-size: 1.75rem; line-height: 46px; padding-right: 18px; margin-right: 10px; border-right: 1px solid #5a4a30; color: #f0d98c }
.rm-fact { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-right: 1px solid #3f3322; line-height: 1.1 } .rm-fact small { font-family: 'Head'; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #bda67a } .rm-fact b { font-size: 1.0625rem; white-space: nowrap } .rm-fact em { font-weight: 400; font-style: normal; color: #bda67a; font-size: .8125rem }
.rm-shell { flex: 1; display: flex; min-height: 0 }
.rm-rail { width: 128px; flex: none; background: #2a1c10; border-right: 2px solid #120b05; display: flex; flex-direction: column; padding-top: 4px }
.rm-rail button { background: none; border: 0; border-bottom: 1px solid #47331e; color: #e8d9b4; text-align: left; padding: 12px 11px; font-family: 'Head'; letter-spacing: .05em; text-transform: uppercase; font-size: .875rem } .rm-rail button:hover { background: #3c2a18 } .rm-rail button.on { background: #efe6d0; color: #1c1712 }
.rm-rail .rm-out { margin-top: auto; border-top: 1px solid #47331e; border-bottom: 0; color: #bda67a; font-size: .8125rem }
.rm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; background: #2b2118 }
.rm-small { font-size: .875rem } .rm-load { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #1a120a; color: #f1e6cc; text-align: center; gap: 8px } .rm-load h1 { font-family: 'Fraktur', serif; font-size: 3rem; color: #f0d98c }
.rm-riffle { display: flex; height: 120px; align-items: flex-end; margin-bottom: 12px } .rm-riffle i { display: block; width: 64px; height: 100px; margin-left: -34px; background: #efe0bd; border: 3px solid #fbf6e6; box-shadow: 0 2px 5px #000; transform-origin: bottom center; transform: rotate(calc((var(--i) - 2) * 12deg)); animation: rm-riffle 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * .12s) }
@keyframes rm-riffle { 0%, 100% { translate: 0 0 } 40% { translate: 0 -18px } }
@media (prefers-reduced-motion: reduce) { .rm-riffle i { animation: none } }
.rm-note .story { font-size: 1.0625rem }

/* ---- the counter */
.rm-counter { flex: 1; display: grid; grid-template-columns: 1fr 270px; min-height: 0; background: #33261a; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.09) 0 2px, transparent 2px 7px, rgba(255,255,255,.015) 7px 9px, transparent 9px 23px) }
.rm-packs { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px 6px; padding: 10px 12px; min-height: 0 }
.pk { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 0; color: #f1e6cc } .pk-btn { background: none; border: 0; padding: 0; width: 148px; height: 232px; transition: transform .14s; filter: drop-shadow(0 6px 6px rgba(0,0,0,.6)) } .pk-btn:hover:not(:disabled) { transform: translateY(-5px) rotate(-1.2deg) } .pk.short .pk-btn { filter: saturate(.75) brightness(.84) drop-shadow(0 3px 3px rgba(0,0,0,.6)); cursor: not-allowed }
.pk-price { font-family: 'Head'; letter-spacing: .03em; margin-top: 6px; font-size: .9375rem; line-height: 1.1 } .pk-price b { font-size: 1.25rem; color: #f0d98c } .pk.short .pk-price b { color: #d98c7c } .pk-why { font-size: .8125rem; color: #cdbb95; line-height: 1.1 } .pk.short .pk-why { color: #e8a08e }
.rm-side { background: #efe6d0; color: #1c1712; padding: 12px 14px; border-left: 3px solid #120b05; display: flex; flex-direction: column; overflow: auto } .rm-side p { margin: 4px 0 10px; font-size: .9375rem } .rm-have { text-align: center; border: 2px solid #1c1712; padding: 4px; margin-bottom: 12px; background: #e6dabf; line-height: 1.05 } .rm-have small { display: block; font-family: 'Head'; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem } .rm-have b { font-family: 'Wood', serif; font-size: 2.5rem; font-weight: 400; color: #9e2316 }
.rm-check { display: flex; gap: 6px; align-items: flex-start; font-size: .875rem; margin-top: 4px; cursor: pointer } .rm-check input { margin-top: 3px; accent-color: #9e2316 }

/* wrappers */
.pk-paper { position: relative; width: 100%; height: 100%; overflow: hidden; filter: saturate(1.5) contrast(1.08) sepia(.1) } /* warm and rich, like the cards in them */ .pk-paper.tin { border-radius: 10px }
.pk-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 38%, rgba(255, 196, 96, .28), transparent 66%), linear-gradient(105deg, rgba(255,255,255,.3) 0, transparent 22%, transparent 44%, rgba(255,255,255,.2) 50%, transparent 58%), linear-gradient(0deg, rgba(0,0,0,.2), transparent 12%, transparent 88%, rgba(0,0,0,.2)); box-shadow: inset 8px 0 8px -7px rgba(0,0,0,.4), inset -8px 0 8px -7px rgba(0,0,0,.4) }
.pa { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 14px 8px; line-height: 1.05; overflow: hidden } .pa > b, .pa > span, .pa > div { position: relative; z-index: 1 } .pa span { font-size: .75rem }
.pa-emb { width: 64px; height: 64px } .pa-emb svg { width: 100%; height: 100%; display: block } .pa-bg { position: absolute !important; inset: 0; z-index: 0 !important } .pa-bg svg { width: 100%; height: 100%; display: block }
.pa-nickel { background: #b08d57; background-image: repeating-linear-gradient(0deg, rgba(60, 35, 10, .08) 0 1px, transparent 1px 4px); color: #2d1c0a } .pa-nickel b { font-family: 'Wood', serif; font-weight: 400; font-size: 1.3rem } .pa-nickel span { font-family: 'Type' } .pa-stamp { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #9e2316; color: #9e2316; font-family: 'Wood', serif; font-size: 2.3rem; display: flex; align-items: center; justify-content: center; transform: rotate(-12deg) }
.pa-cuban { background: #efe8d2; color: #3d2a12 } .pa-ribbon { background: #1f4e79; color: #f6efd9; font-family: 'Head'; letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; padding: 2px 10px } .pa-cuban .pa-emb { width: 58px; height: 78px } .pa-cuban b { font-family: 'Old', serif; font-style: italic; font-size: 1.4rem } .pa-cuban span { font-family: 'Old', serif }
.pa-cabinet { background: #3a2412; color: #e6c565 } .pa-cabinet .pa-emb { width: 84px; height: 100px } .pa-cabinet b { font-family: 'Old', serif; font-style: italic; font-size: 1.5rem } .pa-cabinet span { color: #d9c89a }
.pa-caramel { background: #b3251a; color: #fbf0cf } .pa-caramel b { font-family: 'Wood', serif; font-weight: 400; font-size: 1.75rem; text-shadow: 2px 2px 0 #4d0d07 } .pa-caramel span { font-family: 'Head'; letter-spacing: .04em } 
.pa-chew { color: #fff } .pa-chew b { font-family: 'Head'; font-weight: 700; font-size: 1.75rem; background: #1b4f8c; padding: 2px 8px; text-transform: uppercase; box-shadow: 2px 2px 0 #0a2342; transform: rotate(-4deg) } .pa-chew span { font-family: 'Head'; font-weight: 700; background: #1b4f8c; padding: 1px 6px }
.pa-bright { color: #fff; justify-content: flex-end; padding-bottom: 26px } .pa-bright b { font-family: 'Head'; font-weight: 700; font-size: 2rem; line-height: .98; text-shadow: 0 2px 0 #b1305a } .pa-bright span { font-family: 'Head'; color: #5a0d2c; font-weight: 700 }
.pa-home { color: #16213e } .pa-home b { font-family: 'Old', serif; font-style: italic; font-size: 1.7rem; transform: rotate(-5deg); margin-top: 60px } .pa-home span { font-family: 'Head'; font-weight: 700; letter-spacing: .04em } .pa-home .pa-emb { width: 50px; height: 50px }
.pa-tin { border-radius: 10px; box-shadow: inset 0 0 0 3px rgba(0,0,0,.35), inset 0 0 0 6px rgba(255,255,255,.2) } .pa-lid { position: absolute; top: 22px; left: 0; right: 0; height: 3px; background: rgba(0,0,0,.35); box-shadow: 0 1px 0 rgba(255,255,255,.3) }
.pa-rookie { background: #3f6d8a; color: #f6efd9 } .pa-rookie b { font-family: 'Wood', serif; font-weight: 400; font-size: 1.4rem } .pa-rookie span { font-style: italic }
.pa-gold { background: linear-gradient(160deg, #e3c060, #b8892b 48%, #8f6717 100%); color: #2b1c05 } .pa-gold b { font-family: 'Wood', serif; font-weight: 400; font-size: 1.5rem } .pa-star { font-size: 3.5rem; line-height: 1; color: #fff3b0; text-shadow: 1px 2px 0 #6d5413 }

/* ---- the reveal */
.pv { position: absolute; inset: 0; z-index: 10; background: radial-gradient(ellipse at 50% 46%, #4a3620 0, #1f150b 72%); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 16px; transition: filter .25s }
.pv::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s; pointer-events: none } .pv.dim::before { background: rgba(0,0,0,.62) }
.pv-head { text-align: center; color: #f1e6cc; position: relative } .pv-name { display: block; font-family: 'Wood', serif; font-size: 1.625rem; color: #f0d98c } .pv-tally { font-size: 1rem } .pv-tally b { color: #fff3c8 } .pv-t-legend { color: #ffd84a !important } .pv-t-rare { color: #f0c04a !important }
.pv-row { position: relative; display: flex; gap: 18px; justify-content: center; align-items: center; flex: 1; min-height: 0 }
.pv-card { position: relative; width: calc(var(--u) * var(--w)); height: calc(var(--u) * 100); perspective: 1200px; transform: rotate(var(--rot)) translateY(var(--dy)); cursor: pointer; z-index: 1 }
.pv.fresh .pv-card { animation: pv-deal .6s cubic-bezier(.2, .9, .3, 1.15) both; animation-delay: calc(.32s + var(--i) * .07s) }
@keyframes pv-deal { from { opacity: 0; transform: translate(var(--fx), 240px) rotate(calc(var(--rot) * -6)) } to { opacity: 1; transform: rotate(var(--rot)) translateY(var(--dy)) } }
.pv-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(180deg); transition: transform .5s cubic-bezier(.3, 1.3, .5, 1) } .pv-card.up .pv-in { transform: rotateY(0) }
.pv-f { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden } .pv-backf { transform: rotateY(180deg) } .pv-f .cf { --u: inherit }
.pv-card:not(.up):hover .pv-in { transform: rotateY(180deg) translateY(-8px) }
.pv-new { position: absolute; left: 50%; top: calc(100% + 30px); margin-left: -30px; z-index: 7; font-family: 'Head'; font-weight: 700; font-size: 1.25rem; color: #fff; background: #a81d10; padding: 2px 10px; border: 2px solid #fff; transform: rotate(-4deg) scale(3); opacity: 0; box-shadow: 1px 2px 4px rgba(0,0,0,.6); letter-spacing: .05em; white-space: nowrap }
.pv-card.up.stamped .pv-new { opacity: 1; transform: rotate(-4deg) scale(1); transition: transform .16s cubic-bezier(.3, 1.5, .5, 1), opacity .08s }
.charge-rare .pv-in { animation: pv-shake .62s linear both } .charge-rare::before { content: ''; position: absolute; inset: -6px; z-index: -1; background: #f0c04a; box-shadow: 0 0 22px 10px rgba(240, 192, 74, .85); animation: pv-pulse .62s ease-in both }
.charge-legend { z-index: 8 } .charge-legend .pv-in { animation: pv-shake 1.15s linear both } .charge-legend::before { content: ''; position: absolute; inset: -8px; z-index: -1; background: #ffd84a; box-shadow: 0 0 44px 22px rgba(255, 216, 74, .95), 0 0 110px 50px rgba(255, 150, 60, .55); animation: pv-pulse 1.15s ease-in both }
@keyframes pv-shake { 0% { translate: 0 0 } 15% { translate: -1px 1px } 30% { translate: 2px -1px } 45% { translate: -2px 0 } 60% { translate: 3px 1px } 75% { translate: -4px -2px } 90% { translate: 4px 1px } 100% { translate: 0 0 } }
@keyframes pv-pulse { 0% { opacity: 0 } 100% { opacity: 1 } }
.hit-rare { z-index: 4 } .hit-rare::after { content: ''; position: absolute; inset: -3px; z-index: -1; background: #f0c04a; pointer-events: none; box-shadow: 0 0 18px 7px rgba(240, 192, 74, .7) }
.hit-legend { z-index: 8; transform: rotate(var(--rot)) translateY(var(--dy)) scale(1.06); transition: transform .3s } .hit-legend::after { content: ''; position: absolute; inset: -60px; z-index: -1; pointer-events: none; background: repeating-conic-gradient(rgba(255, 220, 90, .35) 0 12deg, transparent 12deg 30deg); border-radius: 50%; animation: pv-spin 12s linear infinite; mask-image: radial-gradient(circle, #000 30%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%) }
@keyframes pv-spin { to { rotate: 360deg } }
.pv-foot { display: flex; gap: 10px; align-items: center; justify-content: center; position: relative; min-height: 48px } .pv-hint { color: #cdbb95; font-style: italic }
.pv-pack { position: absolute; left: 50%; top: 50%; width: 220px; height: 345px; margin: -172px 0 0 -110px; z-index: 20; pointer-events: none }
.pv-tear { position: absolute; inset: 0 } .pv-tear.top { clip-path: inset(0 0 80% 0); animation: pv-rip .34s .1s cubic-bezier(.3, .2, .6, 1) both } .pv-tear.bot { clip-path: inset(20% 0 0 0); animation: pv-fall .46s .3s ease-in both }
@keyframes pv-rip { to { transform: translate(120px, -160px) rotate(26deg); opacity: 0 } } @keyframes pv-fall { to { transform: translateY(420px) rotate(-5deg); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .pv-in, .pv-new, .pv-card, .hit-legend { transition: none !important; animation: none !important } .pv.fresh .pv-card, .pv-tear, .charge-rare .pv-in, .charge-legend .pv-in { animation: none !important } .hit-legend::after { animation: none } .pv-pack { display: none } }

/* ---- binder */
.rm-binder { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #1f1a14 }
.rm-prog { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: #120e09; flex: none } .rm-pbar { background: #2a2118; color: #e8d9b4; border: 0; padding: 4px 8px; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; align-items: center } .rm-pbar:hover { background: #3a2d1e } .rm-pbar.on { background: #efe6d0; color: #1c1712 } .rm-pbar span { font-family: 'Head'; font-size: .75rem; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .rm-pbar b { font-size: .8125rem; font-weight: 400; grid-row: 1; grid-column: 2 } .rm-pbar em { font-style: normal; opacity: .65 } .rm-pbar i { grid-column: 1 / 3; height: 5px; background: #120e09; display: block } .rm-pbar u { display: block; height: 100%; background: #b8892b; text-decoration: none; min-width: 1px }
.rm-bonus { display: flex; gap: 6px; padding: 4px 8px; background: #3b2b12; flex: none; align-items: center; flex-wrap: wrap; color: #f1e6cc }
.rm-filters { display: flex; gap: 6px; padding: 6px 8px; background: #efe6d0; color: #1c1712; flex: none; align-items: center; border-bottom: 2px solid #120e09 } .rm-filters select { font-size: .8125rem; max-width: 118px; height: 28px } .rm-q { font: inherit; font-size: .875rem; width: 150px; height: 28px; padding: 2px 6px; border: 1px solid #1c1712; background: #fbf6e6 } .rm-count { margin-left: auto; font-family: 'Head'; font-size: .875rem; white-space: nowrap; padding-right: 4px }
.rm-grid { flex: 1; overflow-y: auto; position: relative; min-height: 0; overscroll-behavior: contain; scrollbar-color: #6a5a40 #1f1a14 }
.rm-grid-in { position: relative; margin: 8px 10px 0 } .rm-row { position: absolute; left: 0; right: 0; height: 186px; display: flex; gap: 0; align-items: flex-end; contain: layout style }
.rm-cell { position: relative; flex: 0 0 calc(100% / var(--cols)); width: calc(100% / var(--cols)); height: 186px; background: none; border: 0; padding: 0; display: flex; align-items: flex-end; justify-content: center } .rm-cell:hover .cf { transform: translateY(-3px); box-shadow: 0 5px 14px #000 } .rm-cell .cf { transition: transform .08s } .rm-cell:focus-visible { outline-offset: -2px }
/* A fixed tray slot under every card: mixed card widths sit centred on the same baseline instead of drifting row to row. */
.rm-cell::before { content: ''; position: absolute; left: 3px; right: 3px; bottom: 0; height: 186px; background: rgba(240, 217, 140, .04); border: 1px solid rgba(240, 217, 140, .09); pointer-events: none }
.rm-n { position: absolute; right: 6px; bottom: 2px; background: #1c1712; color: #f0d98c; font-family: 'Head'; font-size: .75rem; padding: 0 5px; border: 1px solid #f0d98c; z-index: 6 }
.rm-empty { display: none; position: absolute; top: 60px; left: 0; right: 0; text-align: center; color: #cdbb95; font-style: italic; font-size: 1.125rem } .rm-empty.show { display: block }
.rm-big { width: auto; max-width: 900px; display: flex; gap: 22px; padding: 16px 18px; align-items: flex-start; overflow: visible } .rm-big-card { flex: none; line-height: 0; min-width: 270px; display: flex; justify-content: center; background: #2b2118; padding: 10px; }
.rm-big-side { width: 320px; display: flex; flex-direction: column; gap: 6px; padding-right: 8px; min-height: 480px } .rm-big-side h2 { padding-right: 56px } .rm-big-line { margin: 0 } .rm-tags { display: flex; gap: 4px; flex-wrap: wrap } .rm-rar { font-family: 'Head'; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; padding: 1px 7px; background: #d9caa6; border: 1px solid #1c1712 } .rm-rar.r-rare { background: #e7c873 } .rm-rar.r-legend { background: #1c1712; color: #ffd84a } .rm-rar.r-uncommon { background: #f4efe0 } .rm-rar.hof { background: #d4af37 } .rm-rar.rc { background: #fbf6e6; color: #a81d10; border-color: #a81d10 }
.rm-dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 12px; margin: 4px 0 } .rm-dl dt { font-family: 'Head'; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: #6f6250 } .rm-dl dd { margin: 0 }
.rm-big-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto } .rm-big-nav { display: flex; gap: 6px; margin-top: 6px }

/* ---- squad */
.rm-squad { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #23412c; color: #f4edd9 }
.rm-meter { display: flex; align-items: center; gap: 14px; padding: 6px 12px; background: #efe6d0; color: #1c1712; flex: none } .rm-meter-l { display: flex; align-items: baseline; gap: 6px; white-space: nowrap } .rm-meter-l small { font-family: 'Head'; letter-spacing: .08em; text-transform: uppercase; font-size: .75rem } .rm-meter-l b { font-family: 'Wood', serif; font-weight: 400; font-size: 1.75rem; line-height: 1 } .rm-meter-l em { font-style: normal; font-size: .9375rem } .rm-meter-b { flex: 1; height: 16px; border: 2px solid #1c1712; background: #d9caa6 } .rm-meter-b i { display: block; height: 100%; background: #2e6b45 } .rm-meter.over .rm-meter-b i { background: #9e2316 }
.rm-problem { padding: 4px 12px; font-size: 1rem; flex: none; font-weight: 700 } .rm-problem.bad-on { background: #9e2316; color: #fbf3df } .rm-problem.ok-on { background: #2e6b45; color: #fbf3df }
.rm-sq-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 396px 270px; gap: 0 }
.rm-diamond { position: relative; margin: 8px 12px; min-height: 0 } .rm-diamond svg { position: absolute; inset: 0; width: 100%; height: 100% }
.rm-pos { position: absolute; transform: translateX(-50%) }
.rm-slot { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; color: #f4edd9; width: 90px } .rm-slot:hover .cf, .rm-slot:hover .rm-slot-e { outline: 2px solid #ffe08a } .rm-slot-l { font-size: .75rem; white-space: nowrap; font-family: 'Head'; letter-spacing: .03em; text-shadow: 0 1px 1px #000 } .rm-slot-l b { color: #ffe08a; font-weight: 700 } .rm-slot-e { width: 72px; height: 104px; border: 2px dashed #e7dcbc; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-family: 'Head'; background: rgba(0,0,0,.2) }
.rm-sq-mid { padding: 6px 8px; overflow: hidden } .rm-sq-mid .sect, .rm-sq-ord .sect { color: #e7dcbc; border-color: #9fb99f } .rm-slots { display: flex; gap: 4px; justify-content: space-between; min-height: 124px }
.rm-sq-ord { padding: 6px 10px; background: rgba(0,0,0,.18); overflow: auto } .rm-ord { list-style: none; margin: 0; padding: 0 } .rm-ord li { display: flex; align-items: center; gap: 5px; padding: 4px 0; border-bottom: 1px dotted #6c8c6f } .rm-ord-n { font-family: 'Wood', serif; font-size: 1.25rem; width: 22px; text-align: center; color: #ffe08a } .rm-ord-name { flex: 1; min-width: 0; line-height: 1.05; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis } .rm-ord-name small { font-size: .75rem; opacity: .85 } .rm-ord .btn { color: #1c1712; font-size: .75rem; padding: 1px 6px; min-height: 24px }
.rm-pickm { max-height: 94%; display: flex; flex-direction: column } .rm-pickm h2 { padding-right: 60px } .rm-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 6px; overflow: auto; min-height: 120px; max-height: 500px; padding: 4px } .rm-pick { display: flex; gap: 7px; align-items: center; background: #e6dabf; border: 1.5px solid #1c1712; padding: 4px; text-align: left; font-size: .875rem; line-height: 1.15 } .rm-pick:hover { background: #f3e6b4 } .rm-pick.cur { background: #f3e6b4; box-shadow: inset 0 0 0 2px #9e2316 } .rm-pick.over { opacity: .62 } .rm-pick-t { display: flex; flex-direction: column; min-width: 0 } .rm-pick-t small { font-size: .75rem } .rm-pick-t em { font-size: .75rem }

/* ---- ladder */
.rm-ladder { flex: 1; display: grid; grid-template-columns: 1fr 480px; min-height: 0; background: #33261a }
.rm-sheet { overflow: auto; background: #efe6d0; background-image: repeating-linear-gradient(0deg, transparent 0 33px, rgba(50, 90, 140, .22) 33px 34px); color: #1c1712; border-right: 3px solid #120b05; position: relative }
.rm-sheet-h { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr 60px 76px 130px; padding: 4px 10px 4px 42px; background: #1c1712; color: #f0d98c; font-family: 'Head'; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase } 
.rm-rung { display: grid; grid-template-columns: 34px 1fr 60px 76px 130px; align-items: center; width: 100%; height: 34px; padding: 0 10px 0 8px; gap: 0; background: none; border: 0; border-bottom: 1px solid transparent; text-align: left; font-size: .9375rem; white-space: nowrap } .rm-rung:hover:not(.locked) { background: rgba(184, 137, 43, .22) }
.rr-n { font-family: 'Wood', serif; font-size: 1.0625rem; color: #9e2316 } .rr-name { overflow: hidden; text-overflow: ellipsis; font-weight: 700 } .rr-y { font-family: 'Type' } .rr-rew { font-family: 'Type' } .rr-st { font-family: 'Head'; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: #2e6b45; text-align: right }
.rm-rung.locked { color: #6f6250 } .rm-rung.locked .rr-name { font-weight: 400 } .rm-rung.locked .rr-n { color: #6f6250 } .rm-rung.boss { background: linear-gradient(90deg, var(--rc), var(--rc) 70%, var(--rd)); color: #fbf3df; height: 44px } .rm-rung.boss .rr-n { color: #ffd84a } .rm-rung.boss .rr-st { color: #fbf3df } .rm-rung.boss .rr-name i { font-style: normal; font-family: 'Head'; font-size: .75rem; background: #ffd84a; color: #1c1712; padding: 0 5px; letter-spacing: .08em; text-transform: uppercase; margin-right: 3px; vertical-align: 1px }
.rm-rung.boss.locked { opacity: .78 } .rm-rung.boss:hover { filter: brightness(1.15) }
.rm-rung.beat:not(.boss) .rr-name { text-decoration: line-through; text-decoration-color: #2e6b45 } .rm-rung.cur { box-shadow: inset 0 0 0 2px #9e2316; background-color: rgba(158, 35, 22, .1) } .rm-rung.cur .rr-st { color: #9e2316; font-weight: 700 } .rm-rung.boss.cur .rr-st { color: #ffd84a } .rm-rung.sel { outline: 3px solid #b8892b; outline-offset: -3px }
.rm-opp { padding: 12px 16px; color: #f1e6cc; overflow: auto; display: flex; flex-direction: column; gap: 6px } .rm-opp p { margin: 0 } .rm-opp .sect { color: #f0d98c; border-color: #8a7a5a; margin: 6px 0 2px } .rm-opp-head { background: linear-gradient(90deg, var(--rc), #3b2a1b); padding: 6px 12px; margin: -12px -16px 2px; border-bottom: 3px solid var(--rd); color: #fbf3df } .rm-opp-head h2 { font-family: 'Head'; font-size: 1.625rem; text-transform: uppercase; line-height: 1.05 } .rm-opp-head .kick { font-family: 'Head'; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #f0d98c }
.rm-rule { background: #f3e6b4; color: #1c1712; padding: 6px 10px; font-family: 'Type', monospace; font-size: .875rem; line-height: 1.3 } .rm-minis { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end } .rm-pay { font-size: .9375rem } .rm-pay b { color: #f0d98c; font-size: 1.125rem } .rm-block { background: #5a1a10; padding: 8px 10px; margin-top: 4px } .rm-block p { margin-bottom: 6px } .rm-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px } .rm-go .btn { color: #1c1712 } .rm-go .btn.red { color: #fbf3df; width: 100% }
.rm-res h2 { font-size: 2.25rem } .rm-res.won h2 { color: #2e6b45 } .rm-res.lost h2 { color: #9e2316 } .rm-score { display: flex; gap: 22px; font-family: 'Head'; font-size: 1.25rem; margin: 6px 0; padding: 6px 0; border-top: 1px solid #1c1712; border-bottom: 1px solid #1c1712 } .rm-score b { font-family: 'Wood', serif; font-size: 1.75rem; font-weight: 400; margin-left: 4px }

/* ---- the last page */
.rm-end { flex: 1; overflow: auto; background: #1a120a; display: flex; justify-content: center; padding: 14px } .rm-end-in { background: #efe6d0; color: #1c1712; max-width: 1180px; width: 100%; padding: 14px 28px; text-align: center; border: 2px solid #b8892b; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center }
.rm-end-mast { border-bottom: 3px double #1c1712; width: 100%; padding-bottom: 4px } .rm-end-mast h1 { font-family: 'Fraktur', serif; font-size: 3.75rem; line-height: 1 } .rm-end-mast small { font-family: 'Head'; letter-spacing: .15em; text-transform: uppercase; font-size: .75rem } .rm-end-in h2 { font-family: 'Head'; text-transform: uppercase; font-size: 1.75rem } .rm-end-lede { font-size: 1.0625rem; max-width: 800px; margin: 0 } .rm-end-cards { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; padding: 8px; background: #2b2118 } .rm-end-cards .cf { --u: 1.3px } .rm-end-stats { margin: 0; font-family: 'Type', monospace; font-size: .9375rem }

/* franchise cards now come in six shapes: let their old fixed slots breathe */
.flipwrap { width: auto; min-width: 128px } .flipwrap .flipcard { display: flex; justify-content: center }
.plaque > .cf-btn { flex: none }

.map-cart { position: absolute; left: 2%; bottom: 3%; border: 1px solid var(--ink); padding: 3px 9px; background: var(--paper); text-align: center; line-height: 1.1; pointer-events: none } .map-cart b { display: block; font-family: 'Fraktur'; font-size: 1.125rem; font-weight: 700 } .map-cart span { font-size: .6875rem; font-style: italic }
.pin .lbl { font-size: .75rem; font-family: 'Head'; letter-spacing: .03em; font-style: normal; text-shadow: 0 0 2px var(--paper), 0 0 2px var(--paper) }

/* photographs and ratings */
.cf-shot { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(160deg, #d3c6a6, #bfb08c) } /* the neutral print a lazy photo loads onto: never a dark hole */
.cf-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.cf-photo.flip { transform: scaleX(-1) } .s-chew .cf-photo { object-position: 50% 0 }
.cf-ovr { position: absolute; left: calc(var(--u) * 2.8); top: calc(var(--u) * 2.8); z-index: 6; min-width: calc(var(--u) * 12); height: calc(var(--u) * 12); padding: 0 calc(var(--u) * 1); display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #1c1712; color: #f7ecc8; font-family: 'Head'; font-weight: 700; font-size: max(10px, calc(var(--u) * 7.2)); line-height: 1; box-shadow: 0 0 0 calc(var(--u) * .5) #f7ecc8, 0 1px 3px rgba(0, 0, 0, .55); font-style: normal }
.r-rare .cf-ovr { background: #7a5a12; color: #fff3c8 } .r-legend .cf-ovr { background: linear-gradient(135deg, #e8c04a, #8c6a10); color: #1c1712 }
.cf-mark { top: calc(var(--u) * 16.5) !important; left: calc(var(--u) * 6.8) !important }
.cf-caramel .cf-ovr { top: calc(var(--u) * 16.8); left: calc(var(--u) * 6) } .cf-caramel .cf-mark { top: calc(var(--u) * 30.5) !important; left: calc(var(--u) * 10) !important }
.cf-cabinet .cf-ovr { top: calc(var(--u) * 3.2); left: calc(var(--u) * 3.2) }
.cf-grade { position: absolute; left: calc(var(--u) * 2.6); bottom: calc(var(--u) * 13); z-index: 6; font-style: normal; font-size: max(10px, calc(var(--u) * 5)); line-height: 1; letter-spacing: -.05em; text-shadow: 0 0 2px #000, 0 1px 2px #000 }
.cf-grade.g1 { color: #d68c45 } .cf-grade.g2 { color: #e5e8ec } .cf-grade.g3 { color: #ffd84a }

/* ---- round two: the chrome catches up with the cards */
/* every button carries its own ink: never inherit cream off the baize */
.btn { color: var(--ink) } .btn.on { color: var(--paper) } .btn.red { color: #fbf3df }
.mast .fact b.tick { animation: tick .4s cubic-bezier(.2,1.3,.5,1) both }
@keyframes tick { 0% { transform: translateY(-7px); opacity: .25 } 100% { transform: none; opacity: 1 } }
#overlay .modal.still { animation: none }

/* scrollbars: thin, period, everywhere */
* { scrollbar-width: thin; scrollbar-color: var(--ink2) var(--paper3) }
::-webkit-scrollbar { width: 9px; height: 9px } ::-webkit-scrollbar-track { background: var(--paper3); border-left: 1px solid var(--line) } ::-webkit-scrollbar-thumb { background: var(--ink2); border: 2px solid var(--paper3); border-radius: 1px } ::-webkit-scrollbar-thumb:hover { background: var(--ink) } ::-webkit-scrollbar-corner { background: var(--paper3) }
.rm-main *, .rm-rail, .baize, .baize * , .kitchen * { scrollbar-color: #8a7a5a #1f1a14 }
.rm-main ::-webkit-scrollbar-track, .rm-rail::-webkit-scrollbar-track, .baize ::-webkit-scrollbar-track { background: #1f1a14; border-left: 1px solid #3c2a18 }
.rm-main ::-webkit-scrollbar-thumb, .rm-rail::-webkit-scrollbar-thumb, .baize ::-webkit-scrollbar-thumb { background: #8a7a5a; border-color: #1f1a14 }
.rm-side, .rm-side *, .rm-sheet, .rm-pickm, .rm-pickm *, .rm-big, .rm-big * { scrollbar-color: var(--ink2) var(--paper3) }
.rm-side::-webkit-scrollbar-track, .rm-sheet::-webkit-scrollbar-track { background: var(--paper3); border-left: 1px solid var(--line) } .rm-side::-webkit-scrollbar-thumb, .rm-sheet::-webkit-scrollbar-thumb { background: var(--ink2); border-color: var(--paper3) }
.rm-grid { scrollbar-color: #8a7a5a #1f1a14 }

/* pencil-box selects, ink-tick boxes, a brass slider */
select { appearance: none; -webkit-appearance: none; font: inherit; font-family: 'Head'; font-size: .8125rem; letter-spacing: .03em; color: var(--ink); min-height: 26px; padding: 2px 22px 2px 7px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0,0 L5,6 L10,0 Z' fill='%231c1712'/%3E%3C/svg%3E") no-repeat right 7px center; border: 1.5px solid var(--ink); border-radius: 0; box-shadow: 1px 1px 0 var(--ink); cursor: pointer; max-width: 100% }
select:hover:not(:disabled) { background-color: var(--wire) } select:disabled { opacity: .5; cursor: not-allowed; box-shadow: none } select option, select optgroup { font-family: Georgia, serif; background: #f5ecd2; color: var(--ink) }
input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 15px; height: 15px; margin: 0 5px 0 0; vertical-align: -2px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0; cursor: pointer; display: inline-block; position: relative } input[type=checkbox]:hover:not(:disabled) { background: var(--wire) } input[type=checkbox]:disabled { opacity: .4; cursor: not-allowed }
input[type=checkbox]:checked { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5,6.5 L4.6,9.8 L10.6,1.8' fill='none' stroke='%231c1712' stroke-width='2.3' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center / 12px }
input[type=range] { appearance: none; -webkit-appearance: none; background: none; height: 22px; cursor: pointer }
input[type=range]::-webkit-slider-runnable-track { height: 5px; background: var(--ink); border-radius: 0 } input[type=range]::-moz-range-track { height: 5px; background: var(--ink) }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 21px; margin-top: -8px; background: linear-gradient(90deg, #e3c060, #b8892b 60%, #8f6717); border: 1.5px solid var(--ink); border-radius: 1px } input[type=range]::-moz-range-thumb { width: 11px; height: 19px; background: #b8892b; border: 1.5px solid var(--ink); border-radius: 1px }
.rm-q:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px }

/* oilcloth is a hem now, not a thing to read through. Notes get a solid panel and dark ink */
.oil { background: linear-gradient(#f5ecd2, #f5ecd2) padding-box, repeating-linear-gradient(45deg, #efe2c3 0 7px, #c9b582 7px 14px) border-box; border: 6px solid transparent; box-shadow: 0 0 0 1px #1c1208; padding: 9px 11px }
.oil .muted { color: var(--ink2) } .note { font-size: .8125rem; font-style: normal; color: var(--ink2); line-height: 1.25; margin: 2px 0 0 } .oil .note { color: #2f2619 }
.oil-grid { background: repeating-linear-gradient(45deg, #efe2c3 0 14px, #e4d4ae 14px 28px); border: 0; box-shadow: none; padding: 10px } .oil-grid > div { background: #f5ecd2; padding: 8px 10px; border: 1px solid #1c1208 }
.oil-grid label { cursor: pointer } .oil-grid .opt { background: var(--paper2) } .oil-grid .opt.on { background: var(--ink) } .oil-grid .opt small { font-style: normal }

/* Next decision says why it stopped */
.why-stop { font-size: .9375rem; color: var(--ink); background: var(--wire); border-left: 5px solid var(--red); padding: 3px 9px; flex: none; animation: wireIn .25s ease-out both } .why-stop b { font-family: 'Head'; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red) }
.readout { display: flex; align-items: center; gap: 12px; font-family: 'Head'; padding: 0 6px } .readout span { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2) } .readout b { font-size: 1.25rem; background: #24392c; color: #f1ead6; padding: 3px 10px; border: 2px solid #17251c }

/* a signing is an occasion */
.kt-won { display: grid; grid-template-columns: auto 1fr; gap: 26px; padding: 20px 26px; background: radial-gradient(ellipse at 22% 45%, #5a4128 0, #3b2a1b 68%) } .kt-won h2 { font-size: 2.5rem; font-family: 'Wood'; font-weight: 400; color: #f0d98c }
.kt-card { position: relative; animation: kt-slide .55s cubic-bezier(.2,.95,.3,1.1) both } @keyframes kt-slide { 0% { transform: translate(-90px, 40px) rotate(-14deg); opacity: 0 } 100% { transform: rotate(-2.5deg); opacity: 1 } } .kt-card { transform: rotate(-2.5deg) } .kt-card .cf { box-shadow: 3px 6px 14px rgba(0,0,0,.7) }
.kt-stamp { position: absolute; left: 50%; top: 52%; font-family: 'Wood'; font-weight: 400; font-size: 2.25rem; line-height: 1; color: #b3231a; border: 5px double #b3231a; padding: 6px 12px 3px; transform: translate(-50%, -50%) rotate(-14deg); background: rgba(247, 239, 216, .32); z-index: 9; animation: kt-stamp .22s .42s cubic-bezier(.3,1.6,.5,1) both; text-shadow: 0 0 1px rgba(255,255,255,.4); mix-blend-mode: multiply; letter-spacing: .02em } @keyframes kt-stamp { 0% { transform: translate(-50%, -50%) rotate(-14deg) scale(3); opacity: 0 } 100% { transform: translate(-50%, -50%) rotate(-14deg) scale(1); opacity: .94 } }
.kt-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; align-items: flex-start } .kt-side .story { margin: 0; color: #f2e6cf } .kt-price { background: #f5ecd2; color: var(--ink); padding: 3px 14px 5px; border: 2px solid #1c1208; box-shadow: 2px 2px 0 #1c1208; transform: rotate(1deg) } .kt-price small { display: block; font-family: 'Head'; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase } .kt-price b { font-family: 'Type'; font-weight: 400; font-size: 1.625rem }
@media (prefers-reduced-motion: reduce) { .kt-card, .kt-stamp, .why-stop { animation: none } .kt-stamp { opacity: .94 } }

/* the front page of the Year in Review */
.rv-head { align-items: center; gap: 18px; padding: 6px 18px 8px } .rv-front { min-width: 0; flex: 1 } .rv-mast { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 1px } .rv-mast .blackletter { font-size: 1.5rem; line-height: 1.1 } .rv-mast small { font-style: italic; font-size: .8125rem }
.rv-head h2.rv-verdict { font-family: 'Head'; font-weight: 700; font-size: 3.25rem; line-height: 1.02; letter-spacing: -.005em; margin-top: 3px; white-space: normal; animation: press .35s ease-out both }
.rv-cols { grid-template-columns: .92fr 1.62fr .92fr } .rv-cols section { overflow: hidden; padding: 7px 13px } .rv-mid { background: var(--paper2) }
.rv-strip { display: flex; gap: 9px; justify-content: space-between; align-items: flex-start } .rv-finds { justify-content: flex-start; gap: 8px; flex-wrap: nowrap }
.rv-man { margin: 0; flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center } .rv-man figcaption { font-size: .78125rem; line-height: 1.16; margin-top: 3px; max-width: 150px } .rv-man figcaption b { font-family: 'Head'; font-weight: 500; font-size: .875rem; letter-spacing: .02em } .rv-finds figcaption { max-width: 92px; font-size: .75rem } .rv-also { margin: 4px 0 0 }
.rv-cols .sect { margin: 6px 0 4px } .rv-paper { margin: 0 } .rv-cols table.t td { padding: .5px 4px }

/* the rest of the punch list */
.ng .col { display: flex; flex-direction: column } .ng .opt { padding: 9px 13px; margin-bottom: 8px } .ng .sect { margin-top: 12px } .ng .col > .sect:first-child { margin-top: 0 }
.ng .clubpick { gap: 7px } .ng .clubpick button { padding: 7px 8px } .ng-go { margin-top: auto; padding-top: 10px }
.ng-club { display: flex; gap: 14px; align-items: flex-start; padding: 6px 2px } .ng-name { font-family: 'Head'; font-weight: 700; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase } .ng-input { font: inherit; width: 100%; padding: 4px 6px; background: var(--paper); border: 1.5px solid var(--ink) }
.sv-l { font-family: 'Head'; font-weight: 500; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; margin-right: 4px }
.tool { white-space: nowrap } .tool small { font-family: 'Head'; font-size: .6875rem; letter-spacing: .02em; color: var(--ink2) }
.why-row { font-style: italic; font-size: .8125rem; color: var(--ink2); white-space: normal }
.hall-lot { max-width: 620px; margin: 4px auto; text-align: center } .hall-lot svg { width: 100%; max-height: 230px } .hall-lot h2 { font-family: 'Fraktur'; font-size: 2rem; font-weight: 700; margin-top: 4px } .hall-lot p { margin: 2px 0 8px } .hall-lot .sect, .hall-lot table { text-align: left }
.urgent-card { border: 3px solid var(--red); box-shadow: 0 0 0 4px var(--wire), 7px 8px 0 4px rgba(20, 12, 2, .7) } .urgent-card .kick { background: var(--red); color: #fbf3df; display: inline-block; padding: 1px 8px; letter-spacing: .14em }
#build-stamp { right: auto; left: 4px; bottom: 1px; width: 122px; font-size: .5rem; line-height: 1; opacity: .5; white-space: nowrap; overflow: hidden; color: var(--ink2); z-index: 5 }
.rail { padding-bottom: 14px } .rm-rail { padding-bottom: 12px }

/* names always fit: condense rather than clip */
.cf-fit { display: inline-block; white-space: nowrap; transform: scaleX(var(--sx, 1)); transform-origin: 50% 50% }
.cf-line, .cf-script, .cf-sub, .cf-strip, .cf-wood, .cf-big { display: flex; justify-content: center; align-items: center }
.cf-sans .cf-fit { transform-origin: 0 50% } .cf-plate2 .cf-fit { transform-origin: 0 50% } .cf-plate2 b { white-space: nowrap }
.cf-gname b { font-size: max(12px, calc(var(--u) * 6)) } .cf-gname span { font-size: max(12px, calc(var(--u) * 3.6)); white-space: nowrap } .cf.ghost.mini .cf-gname span { display: none }

/* runner tags sit above the animation layer's dots */
.ru-tag text { font-weight: 500; letter-spacing: .02em }

/* ladder: dark ink, bosses with a face and a flag */
.rm-rung, .rm-rung.locked { color: #2a221a } .rm-rung.locked .rr-n { color: #4a3f31 } .rr-y, .rr-rew { color: inherit }
.rm-rung.boss { background: var(--rc); border-right: 7px solid var(--rd); height: 58px } .rm-rung.boss, .rm-rung.boss.locked { color: #fbf3df; text-shadow: 0 1px 1px rgba(0,0,0,.45) } .rm-rung.boss.locked { opacity: 1; filter: saturate(.75) brightness(.92) }
.rr-name { display: flex; align-items: center; gap: 7px; min-width: 0 } .rr-t { overflow: hidden; text-overflow: ellipsis } .rr-pic { position: relative; display: block; flex: none; width: 38px; height: 50px; overflow: hidden; border: 2px solid #f5ecd2; box-shadow: 0 1px 3px rgba(0,0,0,.6); background: #2a2118 } .rr-pic svg { width: 100%; height: 100%; display: block }
.rr-st { display: flex; align-items: center; justify-content: flex-end; gap: 6px } .rr-pennant { width: 52px; height: 22px; flex: none; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)) }

/* squad: one mat, one size */
.rm-mat { display: flex; align-items: center; justify-content: center; width: 92px; height: 110px; background: rgba(10, 20, 10, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1) } .rm-mat .cf { box-shadow: 0 1px 4px rgba(0, 0, 0, .7) }
.rm-slot { width: 92px; min-width: 92px } .rm-slot:hover .rm-mat { box-shadow: inset 0 0 0 2px #ffe08a } .rm-slot:hover .cf, .rm-slot:hover .rm-slot-e { outline: 0 } .rm-slot-e { width: 72px; height: 100px } .rm-slot-l { font-size: .8125rem }
.rm-ord-g, .rm-pick .rm-ord-g { font-size: .75rem; letter-spacing: -.05em } .rm-ord-g.g1 { color: #d68c45 } .rm-ord-g.g2 { color: #dfe3e8 } .rm-ord-g.g3 { color: #ffd84a } .rm-pick .rm-ord-g.g1 { color: #8a4d17 } .rm-pick .rm-ord-g.g2 { color: #5f6a75 } .rm-pick .rm-ord-g.g3 { color: #9a7410 }

/* the shop */
.rm-broke { background: #f3e6b4; border-left: 4px solid var(--red); padding: 4px 8px; margin: 0 0 6px !important; font-size: .875rem !important }
.rm-comb { list-style: none; margin: -4px 0 8px; padding: 0; font-size: .8125rem } .rm-comb li { padding: 1px 0; border-bottom: 1px dotted var(--line); display: flex; justify-content: space-between; gap: 6px } .rm-comb span { white-space: nowrap; color: var(--ink2) }
.pv-cap { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; color: #f1e6cc; font-family: 'Head'; font-size: .875rem; letter-spacing: .03em; line-height: 1.5; background: rgba(0, 0, 0, .45); padding: 0 7px; opacity: 0; transition: opacity .2s .25s; z-index: 2 } .pv-cap b { color: #ffe08a; font-size: 1rem } .pv-card.up .pv-cap { opacity: 1 }
.pv-row { padding-bottom: 28px }

/* the big card: the way it reads, and the way up */
.print-ladder { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); background: var(--paper2) } .pl-step { display: flex; flex-direction: column; align-items: center; padding: 3px 2px; line-height: 1.1; border-right: 1px solid var(--line); color: var(--ink2) } .pl-step:last-child { border-right: 0 } .pl-step i { font-style: normal; height: 14px; font-size: .75rem; letter-spacing: -.05em; color: var(--mid) } .pl-step b { font-family: 'Head'; font-weight: 500; font-size: .75rem; letter-spacing: .03em; text-transform: uppercase } .pl-step small { font-size: .75rem } .pl-step.past { opacity: .55 } .pl-step.now { background: var(--ink); color: var(--paper) } .pl-step.now i { color: #ffd84a }
.rm-combine { display: flex; flex-direction: column; gap: 2px; width: 100% } .rm-combine .btn { width: 100% } .rm-combine small { font-size: .8125rem; line-height: 1.2 }
.cf.mini .cf-strip { display: none }
.tool { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.02; min-width: 38px } .tool small { font-size: .6875rem; line-height: 1 }
.rm-sheet { background-image: none } .rm-rung { border-bottom: 1px solid rgba(50, 90, 140, .25) } .rm-rung.boss { border-bottom: 0 }
.rm-comb .link { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* combined-print stars: each maker has a clear spot for them */
.cf-cabinet .cf-grade { left: calc(var(--u) * 4); bottom: calc(var(--u) * 24); } .cf-caramel .cf-grade { left: calc(var(--u) * 6); bottom: calc(var(--u) * 18.5) } .cf.small.cf-caramel .cf-grade, .cf.mini.cf-caramel .cf-grade { bottom: calc(var(--u) * 14) }
.cf-chew .cf-grade { left: calc(var(--u) * 3); bottom: calc(var(--u) * 25.5) } .cf-bright .cf-grade { left: calc(var(--u) * 5); bottom: calc(var(--u) * 18.5) } .cf-home .cf-grade { left: auto; right: calc(var(--u) * 4.5); bottom: calc(var(--u) * 15.5) } .cf-cuban .cf-grade { left: calc(var(--u) * 4.6); bottom: calc(var(--u) * 13) }

/* the foil sweep: soft on both edges at any card shape, so it flatters a photograph instead of banding it */
.cf-foil::before { top: -20%; height: 140%; width: 42%; left: -70%; background: linear-gradient(90deg, rgba(255, 240, 180, 0), rgba(255, 240, 180, .4) 30%, rgba(255, 255, 255, .8) 50%, rgba(190, 230, 255, .4) 70%, rgba(190, 230, 255, 0)); animation-name: cf-shine2 }
@keyframes cf-shine2 { 0% { transform: translateX(0) skewX(-12deg) } 55%, 100% { transform: translateX(350%) skewX(-12deg) } }
.r-rare .cf-strip, .r-legend .cf-strip { padding-bottom: calc(var(--u) * 1.9) } .cf-chew.r-rare .cf-banner, .cf-chew.r-legend .cf-banner { height: calc(var(--u) * 25.5) }
.tb-end { display: flex; flex-direction: column; align-items: center; gap: 6px } .tb-end small { color: #e7dcbc } .baize .tb-end .good { color: #bfe6c6 } .baize .tb-end .bad { color: #ffb4a4 }
.rv-cols section:last-child .sect { margin: 4px 0 2px } .rv-cols section:last-child .rv-small { margin-bottom: 2px; line-height: 1.2 }
/* The Paper: the lead prints its whole story; column stories fold it under a native Read on. */
.news .body p { margin: 4px 0 0; font-size: .875rem; line-height: 1.38; text-wrap: pretty } .news.lead .body p { font-size: 1rem; max-width: 70ch }
.news.lead .body p:first-child::first-letter { font-family: 'Head'; font-size: 2.1em; float: left; line-height: .85; margin: 3px 5px 0 0 }
.news details.readon { margin: 3px 0 0 } .news details.readon summary { cursor: pointer; font-size: .75rem; font-style: italic; color: var(--ink3); list-style: none; width: max-content; border-bottom: 1px dotted var(--ink3) } .news details.readon summary::-webkit-details-marker { display: none } .news details.readon summary:hover, .news details.readon summary:focus-visible { color: var(--ink) } .news details.readon[open] summary { margin-bottom: 2px }

/* ---- the dice table: big cards, readable tags, a place for everything before the first roll */
.baize .tb-card { display: flex; justify-content: center; padding: 6px 0 4px } .baize .tb-card .cf.small { --u: 2.7px }
.baize .tb-name { text-align: center; margin: 2px 0 6px } .baize .tb-tags { margin-top: 3px; min-height: 22px }
.baize .flaw { font-size: .875rem; font-weight: 700; padding: 1px 8px; margin: 2px 3px; background: #f5ecd2; line-height: 1.35 } .baize .flaw.b { color: #9e2316; border-color: #9e2316 } .baize .flaw.g { color: #1d5a2d; border-color: #1d5a2d }
.baize .tb-chart { background: #f5ecd2; color: #1c1712; padding: 4px }
.tb-pre { background: var(--paper); color: #1c1712; padding: 8px 10px; flex: 1; overflow: auto; font-size: .9375rem } .tb-pre p { margin: 4px 0 } .tb-pre ol { margin: 4px 0 4px 18px; padding: 0 }
.wp.quiet { color: var(--ink3, #6f6250); background: transparent; border-style: dashed }

/* Six makers print six card shapes (56 to 83 wide). On the squad's diamond every man is cut to one shape, so the field reads as one size. */
.rm-mat .cf { --w: 70 }
.rm-mat .cf-chew .cf-big { transform: scale(.82) } .rm-mat .cf-bright .cf-sans { transform: scale(.88); transform-origin: left center }

/* ---- the player card modal: a card you can read, and a stats line that fits at 1366 */
.modal.pmodal { width: min(1260px, 97vw) } .pcard .cf { --u: 3.2px }
.pstats .t th, .pstats .t td { padding-left: 4px; padding-right: 4px }

/* ---- the Hunt map: Mills sits above its pin and College below its own, so the two names never touch; the caption moves off the Gulf */
.pin-mill .lbl { top: auto; bottom: 19px } .pin-college .lbl { top: 50%; left: 25px; transform: translateY(-50%) }
.map-cart { bottom: auto; top: 3% }

/* Save failure banner: always on top, never auto-hides. */
#save-warn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--red); color: #fff; padding: 8px 14px; font-size: .9375rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: 0 -3px 12px rgba(0,0,0,.35) }
#save-warn .why { opacity: .85; font-size: .8125rem }
#save-warn .btn { margin-left: auto }
#save-warn .btn + .btn { margin-left: 0 }
.modal.crash h2 { margin-top: 0 }

/* Club art: white-ground crests sit on paper with multiply (see ui/src/logo.ts) */
.tlogo { mix-blend-mode: multiply; object-fit: contain; vertical-align: middle; flex: none; user-select: none }
.tl-s { height: 20px; width: 20px } .tl-m { height: 30px; width: 30px } .tl-l { height: 56px; width: 56px } .tl-xl { height: 96px; width: 96px }
.tl-cap.tl-s, .tl-pennant.tl-s { width: auto; height: 18px } .tl-cap.tl-m, .tl-pennant.tl-m { width: auto; height: 28px }
.tl-cap.tl-l, .tl-pennant.tl-l { width: auto; height: 52px } .tl-pennant.tl-xl { width: auto; height: 76px } .tl-cap.tl-xl { width: auto; height: 90px }
.mast .tlogo { margin-right: 8px }
.fact .row-logo { display: flex; align-items: center }
.pwall { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: flex-end }
.pwall figure { margin: 0; text-align: center; font-family: 'Head'; font-size: .6875rem; letter-spacing: .06em; color: var(--ink3) }
.pwall figure img { display: block; margin: 0 auto 1px }
.badgepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; max-height: 360px; overflow: auto; padding: 4px }
.badgepick button { border: 1.5px solid var(--line); background: var(--paper); padding: 4px 2px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .6875rem; line-height: 1.1; cursor: pointer }
.badgepick button.on { border-color: var(--ink); background: var(--paper2); outline: 2px solid var(--ink) }
.badgepick img { width: 72px; height: 72px }

/* Card Room: packs on the house, and goals */
.rm-free { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; margin-bottom: 10px; background: #f6e6a8; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink) }
.rm-goals { list-style: none; margin: 0 0 8px; padding: 0; font-size: .875rem } .rm-goals li { display: flex; gap: 6px; padding: 2px 0; border-bottom: 1px dotted var(--line) } .rm-goals li b { flex: 1 } .rm-goals li em { font-style: normal; color: var(--green); font-weight: 700 } .rm-goals li.done { opacity: .55 }
.rm-goals.big { font-size: 1rem } .rm-goals.big li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; padding: 6px 0 } .rm-goals.big li span { grid-column: 1 / 2; color: var(--ink3); font-size: .875rem } .rm-goals.big li i { font-style: normal; grid-row: 1 } .rm-goals.big li em { grid-row: 1; grid-column: 3 }
.gift-tag { position: absolute; top: -9px; right: -8px; background: #f2b705; color: #1c1712; border: 2px solid #1c1712; font-family: 'Head'; font-size: .625rem; letter-spacing: .08em; padding: 1px 5px; transform: rotate(6deg) }
.rm-first { background: #f6e6a8; border: 2px solid var(--ink); padding: 6px 10px; margin: 6px 0; font-size: .9375rem }
/* The club mark on a Hometown card is the club's letters (PIT), not one letter that reads like a position (P) */
.cf-logo.cf-abbr { font-size: max(7px, calc(var(--u) * 4.6)); letter-spacing: -.02em }
/* The final stamp sits over the diamond, never over the line score or the box log (round 5 L1/M8) */
.slam.diamond { top: 58%; left: 27%; transform: translate(-50%, -50%) rotate(-3deg) }
.slam.diamond b { font-size: 2.1rem; padding: 3px 14px } .slam.diamond small { font-size: .9rem }

/* Faces in the club game's tables (ui/src/rowface.ts) */
.rface { display: inline-block; width: 22px; height: 27px; margin-right: 6px; vertical-align: middle; overflow: hidden; border: 1px solid var(--ink); background: var(--paper2); cursor: pointer }
.rface img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12% }
.rface.strip { width: 46px; height: 56px; margin: 0 }
.rface:focus { outline: 2px solid var(--red) }
.facepop { position: fixed; z-index: 60; pointer-events: none; padding: 6px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 4px 6px 0 rgba(20, 12, 2, .35) }
.nine { display: flex; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--paper2) }
.nine figure { margin: 0; text-align: center; font-family: 'Head'; font-size: .6875rem; letter-spacing: .04em; line-height: 1.1 }

.rm-prints { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 8px 0 }
.rm-prints figure { margin: 0; text-align: center; font-size: .875rem; animation: press .35s ease-out both }
/* Boss rows on the ladder: the number was dark on dark (round 7 M3) */
.rm-rung.boss .rr-n { color: #fbf3d6; text-shadow: 0 1px 0 rgba(0,0,0,.6); font-weight: 700 }
.rm-near { padding: 4px 10px; font-size: .875rem; background: #f6e6a8; border: 1px solid var(--ink); margin: 4px 0 } .rm-near span { white-space: nowrap }
.rm-first, .rm-first b { color: #1c1712 } .rm-rule { color: #1c1712 }

/* The Deals page (N13) */
.sp-art { display: block; object-fit: contain; background: rgba(255,255,255,.35); border: 1px solid rgba(28,18,8,.35); border-radius: 3px }
.sp-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin-bottom: 6px }
.sp-card { display: flex; gap: 8px; border: 1px solid var(--line); background: #f3e8c8; padding: 5px } .sp-t { display: flex; flex-direction: column; gap: 2px; font-size: .8125rem; min-width: 0 } .sp-t b { font-size: .875rem }
.sp-open { border: 1px dashed var(--line); color: var(--muted); padding: 20px 8px; text-align: center; font-style: italic; font-size: .8125rem }
.sp-offer { display: grid; grid-template-columns: 60px 1fr auto; gap: 8px; align-items: center; border-bottom: 1px dotted var(--line); padding: 5px 0 }
.sp-b { display: flex; flex-direction: column; gap: 3px }
.dl-opts { display: grid; gap: 5px } .dl-opt { text-align: left; border: 1px solid var(--line); background: #f3e8c8; padding: 6px 9px; cursor: pointer; font: inherit; display: flex; flex-direction: column } .dl-opt span { font-size: .8125rem; color: var(--muted) } .dl-opt.on { background: #e3cf94; border-color: #1c1208; box-shadow: inset 0 0 0 1px #1c1208 } .dl-opt:disabled { cursor: default; opacity: .8 }
.pk-signs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 } .pk-signs figure { margin: 0; width: 76px; text-align: center; font-size: .6875rem; line-height: 1.1 }

/* Card Room round 11: stats beside the card, other seasons, view buttons */
.rm-sh { margin: 8px 0 3px } .rm-stat { border-collapse: collapse; font-size: .8125rem; width: 100%; table-layout: fixed } .rm-stat th { font-weight: normal; color: var(--muted); border-bottom: 1px solid var(--line); text-align: right; padding: 0 2px; font-size: .6875rem } .rm-stat td { text-align: right; padding: 1px 2px; font-variant-numeric: tabular-nums }
.rm-rts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 14px; margin-top: 5px } .rm-rt { display: grid; grid-template-columns: 58px 1fr 24px; gap: 5px; align-items: center; font-size: .75rem } .rm-rt i { display: block; height: 6px; background: rgba(0,0,0,.15); border-radius: 3px } .rm-rt b { display: block; height: 100%; background: #6d8f54; border-radius: 3px } .rm-rt em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums }
.rm-yrs { display: flex; flex-wrap: wrap; gap: 4px } .rm-yr { border: 1px solid var(--line); background: #f3e8c8; padding: 2px 6px; font: inherit; font-size: .8125rem; cursor: pointer } .rm-yr small { color: var(--muted) } .rm-yr.own { background: #e3cf94; border-color: #1c1208 }
.rm-slot-wrap { position: relative } .rm-view { position: absolute; top: -9px; right: -5px; z-index: 1; font-size: .625rem; padding: 0 4px; background: rgba(20,12,4,.75); color: #f6e9c8; border: 1px solid #b8892b; cursor: pointer; line-height: 1.4 }
.rm-roster { list-style: none; margin: 0 0 8px; padding: 0; columns: 2; font-size: .8125rem } .rm-roster .link { text-align: left } button.rm-mini { background: none; border: 0; padding: 0; cursor: pointer }
.rm-ord-name { white-space: normal !important; overflow: visible !important }
.rm-notice { background: #f0d99a; color: #1c1208; border-bottom: 2px solid #1c1208; padding: 8px 16px; display: flex; gap: 14px; align-items: center } .rm-notice p { margin: 0; font-size: .9375rem; flex: 1 }
.rm-big { max-height: calc(100vh - 20px); overflow-y: auto !important } .rm-big-side { width: 360px } .rm-stat { table-layout: auto; white-space: nowrap } .rm-big-side { min-height: 0 }

/* The Market (N58): who you are talking to, who is on the table, the farm behind one button. */
.mk-pick, .mk-who, .mk-farmbar, .mk-block { flex: none }
.mk-pick { padding: 4px 12px 6px; border-bottom: 1px solid var(--line) }
.mk-league { display: flex; align-items: center; gap: 8px; min-width: 0 }
.mk-league + .mk-league { margin-top: 3px }
.mk-lg { flex: none; font-size: .75rem; color: var(--ink3); white-space: nowrap }
.mk-clubs { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; flex-wrap: nowrap }
.mk-clubs .btn { flex: none }
.mk-who { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--paper2) }
.mk-who-name { min-width: 0; flex: 1 }
.mk-who-name b { font-family: 'Head'; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; display: block; line-height: 1.05 }
.mk-who-name span { display: block; font-size: .8125rem; color: var(--ink2); line-height: 1.25 }
.mk-farmbar { display: flex; align-items: center; gap: 10px; padding: 4px 12px; border-bottom: 1px solid var(--line) }
.mk-block { margin: 6px 12px 0 }
.mk-cols { grid-template-columns: 1fr 1fr 340px }
.mk-cols .col { padding: 6px 10px }
.mk-cols .mk-rost { display: flex; flex-direction: column; padding: 0; overflow: hidden }
.mk-rost-ml, .mk-rost-farm { flex: 1 1 0; min-height: 0; overflow: auto; padding: 6px 10px }
.mk-rost-farm { border-top: 2px solid var(--ink); background: var(--paper2) }
.mk-men { list-style: none; margin: 2px 0 8px; padding: 0 }
.mk-men li { padding: 3px 0; border-bottom: 1px dotted var(--line); font-size: .875rem; line-height: 1.2 }
.mk-men li small, .mk-sub { display: block; color: var(--ink3); font-size: .75rem; font-weight: 400; line-height: 1.2 }
.mk-side > b { font-family: 'Head'; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase }

/* The Ladder (N58): who you are playing stays on the glass. Their card scrolls. */
.rm-opp { overflow: hidden; min-height: 0 }
.rm-opp-body { flex: 1 1 auto; min-height: 0; overflow: auto }
.rm-pay, .rm-opp > .rm-go, .rm-opp > .rm-block { flex: none }

/* N52: the lesson sits on the page. The kitchen note sits on the sheet. Neither moves the camera. */
.lesson { flex: none; display: flex; gap: 8px; align-items: center; background: #f3e6c4; border-bottom: 2px solid var(--ink); padding: 4px 8px }
.lesson p { margin: 0; flex: 1; font-size: .875rem; line-height: 1.25 }
.kt-help { display: flex; gap: 8px; align-items: flex-start; background: #f5ecd2; color: var(--ink); padding: 8px 12px; border-bottom: 2px solid #1c1208 }
.kt-help p { margin: 0; flex: 1; font-size: .875rem; line-height: 1.3 }

/* N7. The Grand Hunt uses the same map box. A shut state is not on the railroad yet. */
.map.grand svg { pointer-events: none }
.map.grand svg path.st { pointer-events: auto; cursor: pointer; fill: #efe6cf; stroke: #5c4f3a; stroke-width: .35 }
.map.grand svg path.st:hover { fill: #f6f0dc }
.map.grand svg path.st.tip { stroke: #b8892b; stroke-width: .7 }
.map.grand svg path.st.shut { fill: #cfc6ae; cursor: default; pointer-events: none }
.map.grand.zoom svg path.st, .map.grand.zoom svg path.st:hover { cursor: default; pointer-events: none; fill: #efe6cf }
.map.grand svg path.rail { fill: none; stroke: #3c3226; stroke-width: .42; stroke-dasharray: .9 .55 }
.greg { border-top: 1px solid var(--line); padding: 6px 0 8px }
.greg.on { background: var(--paper2) }
.greg h3 { margin: 0; font-family: Head; font-size: 1rem; text-transform: uppercase }
/* The dog table has to keep Fire on the glass at 1366. Names clip; the button does not. */
table.t.dogs { table-layout: fixed }
table.t.dogs td:first-child { width: 30%; overflow: hidden }
table.t.dogs td:nth-child(2) { width: 20%; white-space: normal }
table.t.dogs td:last-child { width: 3.4rem }
table.t.dogs .clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
table.t.dogs small { display: block; white-space: normal }
