@font-face { font-family: "Arimo"; src: url(/fonts/arimo-400.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Limelight"; src: url(/fonts/limelight-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url(/fonts/courierprime-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url(/fonts/courierprime-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(/fonts/silkscreen-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(/fonts/silkscreen-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "VT323"; src: url(/fonts/vt323-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --peach: #f3bd8f;
  --peach-deep: #e9a874;
  --ink: #1c130c;
  --ink-soft: #4a3424;
  --brown: #5a3218;
  --gold: #c9962e;
  --felt: #1f6b33;
  --chrome: #c3c3c3;
  --chrome-dark: #7b7b7b;
  --link: #0b2fa8;
  --visited: #5b1a8a;
  --red: #b3261e;
  --green-ink: #145c2a;
  --mono: "Courier Prime", "Courier New", monospace;
  --sans: "Arimo", Arial, Helvetica, sans-serif;
  --sign: "Limelight", Georgia, serif;
  --px: "Silkscreen", "Courier New", monospace;
  --vt: "VT323", "Courier New", monospace;
  color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: #2b2118 url(/art/room_wide.png) center / cover fixed; image-rendering: pixelated; }
body { margin: 0; min-height: 100vh; padding: 14px; font-family: var(--sans); color: var(--ink); background: rgba(16, 10, 6, 0.72); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { display: block; }
a { color: var(--link); }
a:visited { color: var(--visited); }
:focus-visible { outline: 2px dotted #000; outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------------- the browser window: every band is a generated strip, stretched sideways ---------------- */
.win { max-width: 1480px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 28px); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); }
.titlebar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 6px 12px 0; color: #fff; font-weight: 700; font-size: 14px; border-image: url(/art/chrome_title.png) 6 14 0 14 fill / 6px 14px 0 14px stretch; white-space: nowrap; overflow: hidden; }
.tb-icon { width: 20px; height: 20px; }
.menubar { height: 38px; display: flex; align-items: center; padding: 0 10px; border-image: url(/art/chrome_menu.png) 0 14 0 14 fill / 0 14px 0 14px stretch; position: relative; z-index: 30; }
.menu { position: relative; }
.mbtn { background: none; border: 0; padding: 6px 10px; font-size: 14px; }
.mbtn:hover, .mbtn[aria-expanded="true"] { background: #0a246a; color: #fff; }
.drop { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; padding: 3px; background: url(/art/chrome_menu.png) center / 100% 100%; border: 1px solid #fff; border-right-color: #404040; border-bottom-color: #404040; box-shadow: 2px 2px 0 rgba(0,0,0,.35); z-index: 40; }
.drop.open { display: block; }
.drop > * { display: block; width: 100%; text-align: left; padding: 7px 22px; background: none; border: 0; font-size: 14px; color: #000; text-decoration: none; }
.drop > *:hover, .drop > *:focus-visible { background: #0a246a; color: #fff; outline: none; }
.drop [aria-checked="true"]::before { content: "\2713"; position: absolute; margin-left: -16px; }
.toolbar { height: 57px; display: flex; align-items: stretch; padding: 3px 10px 2px; gap: 2px; border-image: url(/art/chrome_tool.png) 0 14 0 14 fill / 0 14px 0 14px stretch; position: relative; z-index: 20; }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 62px; padding: 2px 6px; background: none; border: 1px solid transparent; font-size: 12px; }
.tool img { width: 28px; height: 28px; object-fit: contain; }
.tool:hover:not(:disabled) { border-color: #fff #555 #555 #fff; }
.tool:active:not(:disabled), .tool[aria-pressed="true"] { border-color: #555 #fff #fff #555; background: rgba(255,255,255,.25); }
.tool:disabled { opacity: .45; cursor: default; }
.sep { width: 2px; margin: 4px 6px; background: linear-gradient(90deg, #808080 50%, #fff 50%); }
.throb { margin-left: auto; width: 50px; display: grid; place-items: center; }
.throb img { width: 44px; height: 44px; }
.throb.spin img { animation: throb 1s ease-in-out infinite; }
@keyframes throb { 50% { transform: scaleX(.25); } }
.favdrop { left: auto; right: 64px; top: 52px; }
.addrbar { height: 48px; display: flex; align-items: center; gap: 8px; padding: 4px 18px 6px; border-image: url(/art/chrome_addr.png) 0 14 0 14 fill / 0 14px 0 14px stretch; font-size: 13px; }
.addrbar label { color: #444; }
.addrbar input { flex: 1; min-width: 0; height: 28px; padding: 2px 8px; font: 14px var(--sans); border: 2px solid; border-color: #7b7b7b #fff #fff #7b7b7b; background: #fff; }
.go { height: 28px; padding: 0 14px; background: url(/art/chrome_menu.png) center / 100% 100%; border: 2px solid; border-color: #fff #555 #555 #fff; font-size: 13px; }
.linksbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 3px 16px 5px; border-image: url(/art/chrome_menu.png) 0 14 0 14 fill / 0 14px 0 14px stretch; font-size: 13px; }
.lb-label { color: #444; margin-right: 6px; }
.linksbar a { color: #000; text-decoration: none; padding: 3px 8px; border: 1px solid transparent; }
.linksbar a:hover { border-color: #fff #555 #555 #fff; }
.statusbar { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 4px 18px 8px; font-size: 13px; border-image: url(/art/chrome_status.png) 0 14 0 14 fill / 0 14px 0 14px stretch; }
.mode { font-weight: 700; }

/* ---------------- the page: flat peach, centred like 1997 ---------------- */
.page { flex: 1; background: var(--peach); border-left: 6px solid; border-right: 6px solid; border-image: url(/art/chrome_side.png) 0 6 0 6 / 0 6px 0 6px stretch; padding: 22px clamp(12px, 3vw, 44px) 60px; outline: none; }
.welcome { font: 700 clamp(24px, 3.4vw, 40px)/1.15 var(--sans); text-align: center; margin: 4px 0 10px; letter-spacing: -0.01em; text-wrap: balance; }
.lede { text-align: center; max-width: 760px; margin: 0 auto 16px; font-size: 17px; line-height: 1.5; text-wrap: balance; }
.strip { max-width: 1240px; margin: 0 auto 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font: 700 14px/1.4 var(--mono); color: var(--ink); }
.strip b { color: var(--red); }
.strip .tag { background: var(--ink); color: var(--peach); padding: 0 6px; }

/* the framed scene, with the sign on top like the reference's plaque */
.framed { max-width: 1240px; margin: 0 auto; position: relative; padding-top: 86px; }
.sign { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(340px, 60%); z-index: 3; pointer-events: none; }
.frame { border: 22px solid transparent; border-image: url(/art/frame.png) 44 / 22px stretch; background: #120c07; }
/* ---------------- the table: HUD slots in seat columns over a pixel scene ---------------- */
.tablebox { position: relative; container-type: inline-size; background: #0e0905; user-select: none; }
.hud { display: grid; gap: .7cqw; padding: .8cqw .7cqw .5cqw; background: #120b06; border-bottom: .3cqw solid #3a2414; }
.slot { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .45cqw; min-width: 0; }
.say { position: relative; height: 8.4cqw; }
.bub, .dlg { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity .12s steps(2); pointer-events: none; }
.bub { bottom: 0; display: flex; align-items: center; justify-content: center; min-height: 4.2cqw; padding: .55cqw .8cqw 1.5cqw; border: 1px solid transparent; border-image: url(/art/bubble.png) 8 10 14 10 fill / .65cqw .8cqw 1.2cqw .8cqw stretch; image-rendering: pixelated; font: max(14px, 1.45cqw)/1 var(--vt); color: #111; text-align: center; overflow: hidden; }
.bub.quiet { font: max(9px, .8cqw)/1.2 var(--px); color: #444; text-transform: uppercase; }
.slot.talking .bub { opacity: 1; }
.dlg { top: 0; bottom: 0; padding: .55cqw .7cqw .6cqw; border: 1px solid transparent; border-image: url(/art/dialog.png) 10 fill / .55cqw stretch; image-rendering: pixelated; color: #fff; display: flex; flex-direction: column; pointer-events: auto; }
.slot.thinking-out .dlg { opacity: 1; }
.slot.thinking-out.talking .dlg { opacity: 0; }
.dlg h4 { margin: 0 0 .25cqw; font: 700 max(8px, .66cqw)/1.1 var(--px); color: #ffd84a; display: flex; justify-content: space-between; gap: .3cqw; text-transform: uppercase; }
.dlg h4 em { font-style: normal; color: #ff6b5e; }
.dlg h4 em.honest { color: #7cf27c; }
.dlg p { margin: 0; flex: 1; min-height: 0; overflow-y: auto; font: max(13px, 1.3cqw)/.98 var(--vt); scrollbar-width: thin; scrollbar-color: #ffd84a #0b1a4a; }
.plaque { position: relative; text-align: center; padding: .35cqw .45cqw .45cqw; border: 1px solid transparent; border-image: url(/art/plaque.png) 6 8 fill / .45cqw .55cqw stretch; image-rendering: pixelated; color: #2a1806; line-height: 1.1; }
.plaque .nm { font: 700 max(9px, .82cqw) var(--px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.plaque .md { font: max(12px, 1cqw)/1 var(--vt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1em; }
.plaque .st { font: max(9px, .8cqw) var(--px); }
.plaque .timer { height: max(3px, .28cqw); margin-top: .25cqw; background: rgba(60, 30, 0, .25); }
.plaque .timer i { display: block; height: 100%; width: 0; background: #c0261c; }
.plaque .bluff { display: none; position: absolute; right: .3cqw; top: -1.6cqw; font: 700 max(8px, .7cqw) var(--px); padding: .2cqw .5cqw; background: #2a1806; color: #ffd84a; border: .15cqw solid #ffd84a; }
.slot.can-call .bluff { display: block; }
.slot.called .bluff { background: #c0261c; color: #fff; }
.slot.acting .plaque { filter: drop-shadow(0 0 .45cqw #ffe27a); }
.slot.winner .plaque { filter: drop-shadow(0 0 .7cqw #fff2a8) brightness(1.1); }
.slot.out { opacity: .5; }

.scene { position: relative; width: 100%; overflow: hidden; background: #1a120b url(/art/room_wide.png) 50% 100% / 100% auto no-repeat; image-rendering: pixelated; }
.scene.tall { background-image: url(/art/room_tall.png); background-size: 100% 100%; }
.scene img, .scene .card .b, .scene .card .f { image-rendering: pixelated; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.front { background: url(/art/room_wide_front.png) 50% 100% / 100% auto no-repeat; image-rendering: pixelated; }
.machine { position: absolute; transform-origin: 50% 100%; cursor: help; }
.machine > img { width: 100%; height: auto; }
.screen { position: absolute; background: #000; overflow: hidden; }
.screen img { width: 100%; height: 100%; object-fit: contain; }
.screen.flick img { animation: flick .25s steps(3); }
@keyframes flick { 0% { opacity: .2; } 50% { opacity: 1; filter: brightness(1.8); } 100% { opacity: 1; } }
.machine.thinking { animation: hum 1.1s steps(4) infinite; }
@keyframes hum { 50% { transform: translateY(-1.5%); } }
.machine.shake { animation: shake .5s steps(4) 2; }
@keyframes shake { 25% { transform: translateX(-2%); } 75% { transform: translateX(2%); } }
.machine.folded { filter: brightness(.5) saturate(.4); }
.machine.out { filter: grayscale(1) brightness(.45); }

.card { position: absolute; aspect-ratio: 200 / 291; perspective: 400px; z-index: 4; }
.card .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .35s steps(4); }
.card.up .in { transform: rotateY(180deg); }
.card .b, .card .f { position: absolute; inset: 0; backface-visibility: hidden; background: center / 100% 100% no-repeat; }
.card .b { background-image: url(/art/card_back.png); }
.card .f { background-image: url(/art/card_face.png); transform: rotateY(180deg); color: #111; }
.card .f.red { color: #c0161b; }
.card .f .ix { position: absolute; left: 13%; top: 7%; font: 700 1.1cqw/1 var(--px); text-align: center; }
.card .f .ix small { display: block; margin-top: .15cqw; }
.card .f .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2cqw; padding-top: 22%; }
.suit { display: inline-block; width: 1.1em; height: 1.1em; background: center / contain no-repeat; image-rendering: pixelated; vertical-align: top; }
.card .f .ix .suit { width: .85em; height: .85em; }
.board .card .f .ix { font-size: 1.4cqw; }
.board .card .f .pip { font-size: 2.8cqw; }
.card.dim { filter: brightness(.5) grayscale(.6); opacity: .6; }
.card.best { filter: drop-shadow(0 0 .45cqw #fff59a); }

.bet { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .3cqw; z-index: 5; }
.bet.sliding { transition: left .65s cubic-bezier(.3,.6,.3,1), top .65s cubic-bezier(.3,.6,.3,1), opacity .25s .45s; }
.bet img { width: 2.3cqw; }
.bet span { font: max(9px, .9cqw) var(--px); color: #fff; background: #000; padding: .1cqw .4cqw; }
.pot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 5; }
.pot .stack { display: flex; gap: .15cqw; }
.pot img { width: 2.8cqw; }
.pot span { margin-top: .3cqw; font: max(9px, 1cqw) var(--px); color: #ffe9a8; background: #000; padding: .1cqw .5cqw; }
.btnchip { position: absolute; width: 2.2cqw; z-index: 5; transform: translate(-50%, -50%); }
.btnchip img { width: 100%; }

.shoe { position: absolute; z-index: 6; transform: translate(-50%, -50%); }
.arm-seg, .arm-base, .arm-grip { position: absolute; z-index: 8; pointer-events: none; image-rendering: pixelated; }
.arm-base { z-index: 9; }
.arm-seg { object-fit: fill; }
.arm-grip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.arm-carry { position: absolute; left: 66% !important; top: 50% !important; right: auto !important; bottom: auto !important; width: 22% !important; height: auto !important; transform: translate(-50%, -50%) rotate(90deg); z-index: -1; }

.banner { position: absolute; left: 50%; top: 79%; transform: translate(-50%, -50%); z-index: 10; padding: 1cqw 2.2cqw 1.1cqw; border: 1px solid transparent; border-image: url(/art/dialog.png) 10 fill / .7cqw stretch; image-rendering: pixelated; text-align: center; color: #fff; font: 700 max(10px, 1.1cqw)/1.35 var(--px); max-width: 56cqw; }
.banner small { display: block; margin-top: .3cqw; font: max(15px, 1.5cqw)/1 var(--vt); color: #ffd84a; }
.stamp { position: absolute; right: 1.6cqw; top: 1.4cqw; z-index: 11; font: 700 max(9px, .95cqw) var(--px); color: #ffd84a; outline: .22cqw solid #ffd84a; outline-offset: .2cqw; padding: .2cqw .7cqw; background: #000; }
.handno { position: absolute; left: 1.6cqw; top: 1.4cqw; z-index: 11; font: max(9px, .95cqw) var(--px); color: #fff; background: #000; padding: .25cqw .7cqw; }
.toast { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); z-index: 12; border: 1px solid transparent; border-image: url(/art/dialog.png) 10 fill / .7cqw stretch; image-rendering: pixelated; padding: .7cqw 1.4cqw; color: #fff; font: max(15px, 1.5cqw)/1.05 var(--vt); max-width: 70cqw; text-align: center; }
.paused::after { content: "PAUSED - press Stop again to catch up"; position: absolute; inset: auto 0 0 0; text-align: center; font: max(10px, 1cqw) var(--px); background: #000; color: #ffd84a; padding: .5cqw; z-index: 13; }

/* narrow: two rows of three, the second HUD row sits on the felt right above its machines */
.scene.tall .hud.inside { position: absolute; left: 0; right: 0; z-index: 10; background: none; border: 0; padding: 0 1.5cqw; align-content: end; }
@container (max-width: 699px) {
  .hud { gap: 1.6cqw; padding: 1.6cqw 1.5cqw 1cqw; }
  .say { height: 17cqw; }
  .hud.inside .say { height: 15cqw; }
  .bub { min-height: 8cqw; padding: 1cqw 1.4cqw 2.4cqw; border-image-width: 1.3cqw 1.6cqw 2.3cqw 1.6cqw; font-size: max(13px, 3.3cqw); }
  .bub.quiet { font-size: max(8px, 2cqw); }
  .dlg { padding: 1.1cqw 1.4cqw 1.2cqw; border-image-width: 1.1cqw; }
  .dlg h4 { font-size: max(7px, 1.65cqw); }
  .dlg p { font-size: max(12px, 2.9cqw); }
  .plaque { padding: .8cqw 1cqw 1cqw; border-image-width: 1cqw 1.2cqw; }
  .plaque .nm { font-size: max(8px, 2cqw); }
  .plaque .md { font-size: max(11px, 2.5cqw); }
  .plaque .st { font-size: max(8px, 1.9cqw); }
  .plaque .bluff { font-size: max(8px, 1.8cqw); top: -3.8cqw; }
  .card .f .ix { font-size: 2cqw; }
  .card .f .pip { font-size: 3.8cqw; }
  .board .card .f .ix { font-size: 2.6cqw; }
  .board .card .f .pip { font-size: 5cqw; }
  .bet img { width: 4.4cqw; } .bet span { font-size: max(8px, 2cqw); }
  .pot img { width: 5cqw; } .pot span { font-size: max(9px, 2.3cqw); }
  .btnchip { width: 4.4cqw; }
  .handno, .stamp { font-size: max(8px, 2.1cqw); }
  .banner { font-size: max(9px, 2.6cqw); max-width: 86cqw; border-image-width: 1.4cqw; padding: 2cqw 3cqw; top: 56%; }
  .banner small { font-size: max(13px, 3.4cqw); }
  .toast { font-size: max(14px, 3.4cqw); border-image-width: 1.3cqw; }
}

.under { padding: 10px 4px 0; }
.hint { text-align: center; margin: 0; font-size: 15px; }
.hint #score { font-family: var(--mono); font-weight: 700; }

/* ---------------- the cage: a pixel cashier booth, the contract in its glass ---------------- */
.cage { max-width: 940px; margin: 44px auto 0; }
.cage-plate { border: 1px solid transparent; border-image: url(/art/cage2.png) 35 22 32 22 fill / 70px 44px 64px 44px stretch; image-rendering: pixelated; padding: 74px 56px 72px; text-align: center; color: #f4ecd2; }
.cage-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cage-sub { margin: 0 auto 14px; max-width: 560px; font: max(17px, 1.1rem)/1.1 var(--vt); font-size: 20px; color: #f4ecd2; }
.ca { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 12px; background: #062612; padding: 10px 12px; outline: 3px solid #0a3a1c; text-align: left; }
.ca-label { font: 700 11px var(--px); color: #ffd84a; text-transform: uppercase; }
.ca-addr { font: 22px/1 var(--vt); color: #fff; word-break: break-all; user-select: all; }
.ca-addr.none { color: #9fc4a6; user-select: none; word-break: normal; }
.ca-msg { grid-column: 1 / -1; font: 18px/1 var(--vt); color: #b8f5a8; min-height: 0; }
.ca-msg:empty { display: none; }
.cage-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 20px; border: 1px solid transparent; border-image: url(/art/plaque.png) 6 8 fill / 6px 8px stretch; image-rendering: pixelated; color: #2a1806 !important; font: 700 13px var(--px); text-transform: uppercase; text-decoration: none; }
.btn:active { transform: translateY(2px); }
.btn img { width: 22px; height: 22px; object-fit: contain; image-rendering: auto; }
.btn.small { min-height: 34px; padding: 2px 12px; font-size: 11px; }
.btn.xbtn { width: 56px; padding: 0; }
.btn.xbtn img { width: 20px; height: 20px; }
.btn[aria-disabled="true"], .btn:disabled { filter: grayscale(.85) brightness(.7); cursor: not-allowed; }
.btn .later { font: 400 16px var(--vt); text-transform: none; }
@media (max-width: 760px) {
  .cage-plate { border-image-width: 40px 24px 36px 24px; padding: 46px 30px 44px; }
  .ca { grid-template-columns: 1fr; text-align: center; }
  .cage-sub { font-size: 18px; }
}

/* ---------------- sections: 1997 page grammar, clip-art heading icons, rules ---------------- */
.sec { max-width: 1100px; margin: 44px auto 0; }
.sec h2 { display: flex; align-items: center; gap: 12px; font: 400 clamp(22px, 2.6vw, 32px)/1.1 var(--sign); color: var(--brown); margin: 0 0 6px; padding-bottom: 8px; border-bottom: 3px double var(--brown); }
.sec h2 img { width: 54px; height: 54px; object-fit: contain; }
.sec-sub { margin: 6px 0 14px; font-size: 15px; line-height: 1.5; max-width: 820px; }
.sec-sub.small { font-size: 13px; color: var(--ink-soft); }
.railgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rcard { border: 14px solid transparent; border-image: url(/art/frame.png) 44 / 14px stretch; background: #fbe5cc; padding: 10px 12px 12px; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; align-items: center; }
.rcard.mine { background: #fff3b0; }
.rcard.lead { box-shadow: 0 0 0 3px #ffd36e; }
.rcard img { width: 64px; grid-row: span 2; image-rendering: pixelated; }
.rcard .rn { font: 700 17px var(--sans); }
.rcard .rm { font: 13px var(--mono); color: var(--ink-soft); }
.rcard dl { grid-column: 1 / -1; margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font: 14px var(--mono); }
.rcard dt { color: var(--ink-soft); }
.rcard dd { margin: 0; font-weight: 700; text-align: right; }
.rcard .btn { grid-column: 1 / -1; margin-top: 6px; }
.railyou { margin-top: 18px; padding: 12px 16px; background: var(--peach-deep); font-size: 15px; line-height: 1.6; }
.railyou label { font-weight: 700; }
.railyou input, .railyou select { font: 15px var(--mono); padding: 4px 6px; border: 2px solid; border-color: #7b5b3b #fff2df #fff2df #7b5b3b; background: #fff8ee; width: 12em; }
.railyou select { width: auto; }
.chartbox { background: #fff6ea; border: 2px solid var(--brown); padding: 8px; }
#stackchart { width: 100%; height: 300px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font: 700 14px var(--mono); }
.legend i { display: inline-block; width: 22px; height: 4px; vertical-align: middle; margin-right: 6px; }
.handsearch { display: flex; gap: 10px; align-items: center; margin: 10px 0; font-size: 15px; flex-wrap: wrap; }
.handsearch input { flex: 1; max-width: 360px; font: 15px var(--mono); padding: 5px 8px; border: 2px solid; border-color: #7b5b3b #fff2df #fff2df #7b5b3b; background: #fff8ee; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; border-top: 1px solid var(--brown); }
.feed li { display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 14px; padding: 9px 4px; border-bottom: 1px dashed rgba(90, 50, 24, .5); font-size: 14px; align-items: baseline; }
.feed .n { font: 700 14px var(--mono); }
.feed .nt { font: 13px/1.45 var(--mono); color: var(--ink-soft); word-break: break-word; }
.feed .res { font-weight: 700; }
.feed .res .ai { color: var(--red); }
.feed a { font-size: 14px; white-space: nowrap; }
.feed .live { opacity: .7; }
.tabs { display: flex; gap: 4px; margin: 10px 0 0; flex-wrap: wrap; }
.tabs button { padding: 7px 16px; border: 2px solid var(--brown); border-bottom: 0; background: var(--peach-deep); font-weight: 700; font-size: 14px; }
.tabs button[aria-selected="true"] { background: #fff6ea; }
.tablewrap { overflow-x: auto; border: 2px solid var(--brown); background: #fff6ea; }
table.lb { border-collapse: collapse; width: 100%; font: 14px var(--mono); min-width: 760px; }
.lb th, .lb td { padding: 8px 10px; text-align: right; border-bottom: 1px solid rgba(90, 50, 24, .3); }
.lb th:nth-child(-n+2), .lb td:nth-child(-n+2) { text-align: left; }
.lb th { font-family: var(--sans); font-size: 13px; background: #f3d6b4; }
.lb td.neg { color: var(--red); }
.lb caption { caption-side: bottom; text-align: left; padding: 8px 10px; font: 13px var(--sans); color: var(--ink-soft); }
.deckrow { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: 14px; margin-bottom: 8px; align-items: baseline; }
.deckrow code { font: 13px var(--mono); word-break: break-all; }
.deckres { margin-top: 10px; font: 700 15px var(--mono); }
.deckres.ok { color: var(--green-ink); }
.deckres.bad { color: var(--red); }
.rules { line-height: 1.6; font-size: 16px; }
.rules h3 { font: 700 19px var(--sans); margin: 22px 0 4px; }
.rules ol, .rules ul { padding-left: 22px; margin: 6px 0; }
.rules li { margin: 4px 0; }
.rules code { font: 14px var(--mono); background: rgba(255, 255, 255, .45); padding: 0 4px; }
.rules table { border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.rules td, .rules th { border: 1px solid var(--brown); padding: 4px 12px; text-align: left; }
.risk { margin-top: 30px; font-size: 13px; color: var(--ink-soft); }

/* ---------------- replay page ---------------- */
.replay h1 { font: 700 clamp(22px, 3vw, 34px) var(--sans); text-align: center; margin: 4px 0 4px; }
.replay .meta { text-align: center; font: 14px var(--mono); margin: 0 0 14px; }
.player { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0; align-items: center; }
.player .pos { font: 700 15px var(--mono); min-width: 12ch; text-align: center; }
.steps { max-width: 1000px; margin: 18px auto 0; list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 150px 1fr; gap: 4px 16px; padding: 10px 6px; border-bottom: 1px dashed rgba(90, 50, 24, .5); font-size: 14px; cursor: pointer; }
.steps li.cur { background: #fff3b0; }
.steps .who { font-weight: 700; }
.steps .act { font: 700 14px var(--mono); }
.steps .th { grid-column: 2; font: 13px/1.45 var(--mono); color: var(--ink-soft); }
.steps .tg { font: 700 12px var(--sans); padding: 0 5px; margin-left: 6px; }
.steps .tg.bl { background: var(--red); color: #fff; }
.steps .tg.il { background: #000; color: #fff; }
.notfound { text-align: center; font-size: 17px; margin: 50px auto; max-width: 600px; }
.noscript { color: #fff; text-align: center; }

/* ---------------- narrow screens: the page keeps the window, the table goes vertical ---------------- */
@media (max-width: 760px) {
  body { padding: 0; }
  .win { min-height: 100vh; box-shadow: none; }
  .menubar { padding: 0 4px; }
  .mbtn { padding: 6px 7px; }
  .toolbar { padding: 3px 4px 2px; overflow-x: auto; }
  .tool { min-width: 48px; padding: 2px 3px; font-size: 11px; }
  .tool span { display: none; }
  .tool img { width: 30px; height: 30px; }
  #t-search, #t-fav, .sep { display: none; }
  .addrbar { padding: 4px 8px 6px; }
  .addrbar label { display: none; }
  .linksbar { padding: 3px 8px 5px; font-size: 13px; }
  .linksbar a { padding: 6px 7px; }
  .lb-label { display: none; }
  .page { padding: 16px 10px 40px; }
  .lede { font-size: 15px; }
  .strip { font-size: 12px; gap: 2px 12px; }
  .framed { padding-top: 58px; }
  .sign { width: min(230px, 64%); }
  .frame { border-width: 12px; border-image-width: 12px; }
  .feed li { grid-template-columns: 44px 1fr; }
  .feed li a { grid-column: 2; }
  .deckrow { grid-template-columns: 1fr; gap: 0; }
  .steps li { grid-template-columns: 1fr; }
  .steps .th { grid-column: 1; }
  .sec h2 img { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.reduce *, .reduce *::before, .reduce *::after { animation: none !important; transition: none !important; }
.ca-addr.none { word-break: normal; }
.sign { image-rendering: pixelated; }

/* ---------------- live: claims, heckle dialog, hand of the day ---------------- */
.subh { font: 400 22px var(--sign); color: var(--brown); margin: 26px 0 8px; }
.claims { background: #fff6ea; border: 2px solid var(--brown); padding: 12px 14px; font-size: 15px; }
.claims p { margin: 4px 0 10px; }
table.lb.small { min-width: 0; margin: 6px 0; }
.btn.ghost { filter: saturate(.6) brightness(.95); }
.pxdialog { border: 1px solid transparent; border-image: url(/art/dialog.png) 10 fill / 10px stretch; image-rendering: pixelated; padding: 18px 22px; color: #fff; max-width: min(460px, 92vw); background: transparent; }
.pxdialog::backdrop { background: rgba(10, 6, 2, .65); }
.pxdialog h3 { margin: 0 0 8px; font: 700 14px var(--px); color: #ffd84a; text-transform: uppercase; }
.pxdialog p { font: 20px/1.05 var(--vt); margin: 6px 0 10px; }
.pxdialog label { display: block; font: 700 11px var(--px); color: #ffd84a; text-transform: uppercase; }
.pxdialog input { display: block; width: 100%; margin-top: 6px; font: 22px var(--vt); padding: 6px 8px; border: 2px solid #fff; background: #061033; color: #fff; }
.pxdialog .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pxdialog .btn { margin: 4px 6px 0 0; }
.pxdialog .btn img { width: 20px; height: 20px; }
.hk-cost { color: #b8f5a8; }
.dailies { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dailies > p { grid-column: 1 / -1; font-size: 15px; }
.daily { margin: 0; background: #fff6ea; border: 2px solid var(--brown); }
.daily img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; image-rendering: pixelated; background: #120c07; }
.daily figcaption { padding: 8px 10px 10px; font-size: 14px; line-height: 1.45; }
.daily .btn { margin-top: 6px; }
/* the X card of a hand: the replay page alone at 1200x630 */
body.card-mode { padding: 0; background: #0e0905; }
body.card-mode .win > :not(.page), body.card-mode .replay > :not(.framed):not(.cardcap) { display: none !important; }
body.card-mode .win { min-height: 0; box-shadow: none; max-width: none; }
body.card-mode .page { padding: 0; border: 0; background: #0e0905; }
body.card-mode .framed { max-width: 1200px; padding-top: 0; }
body.card-mode .sign, body.card-mode .hud { display: none; }
body.card-mode .frame { border-width: 14px; border-image-width: 14px; }
body.card-mode .cardcap { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 24px; background: #000; color: #fff; font: 26px/1 var(--vt); z-index: 50; }
body.card-mode .cardcap b { font: 700 16px var(--px); color: #ffd84a; }

/* the 3D dealer arm: a low-resolution canvas scaled up with crisp pixels; it rises from below the scene */
.arm3d { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; z-index: 8; }
.scene.tall .arm3d { z-index: 2; }

/* the players in 3D: one canvas behind the near rail and the cards; the sprites hide once it is up */
.cast3d { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; z-index: 6; }
.scene.tall .cast3d { z-index: 6; }
.scene.cast-3d .machine > img, .scene.cast-3d .machine .screen { visibility: hidden; }
