/* /play: the free blackjack table. The table is a fixed 1920x1080 stage scaled to fit (play.js), so every
   position below is in stage pixels, the same layout as the YouTube count-along videos. */
.bj-section { padding: 12px 0 8px; }
.bj-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 auto; overflow: hidden; border-radius: 18px; background: #0a0e1a; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.bj-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: #0f1a3a url(/assets/play/felt.jpg) 0 0 / 1920px 1280px no-repeat; font-family: Inter, "Helvetica Neue", Arial, sans-serif; color: #f1f5f9; user-select: none; -webkit-user-select: none; overflow: hidden; }
.bj-print { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; filter: blur(.5px); }

/* side panel */
.bj-panel { position: absolute; left: 40px; top: 30px; bottom: 30px; width: 440px; box-sizing: border-box; padding: 20px 30px; border-radius: 26px; background: rgba(10, 14, 26, .9); border: 1.5px solid rgba(0, 212, 255, .28); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); display: flex; flex-direction: column; z-index: 50; }
.bj-brand { display: flex; align-items: center; gap: 14px; }
.bj-brand img { width: 64px; height: 64px; border-radius: 15px; }
.bj-brand b { display: block; font-size: 26px; font-weight: 800; }
.bj-brand small { display: block; font-size: 14px; letter-spacing: 2.5px; color: #9fb3c8; font-weight: 700; margin-top: 2px; }
.bj-rule { height: 1px; background: rgba(0, 212, 255, .28); margin: 16px 0 14px; }
.bj-label { font-size: 15px; letter-spacing: 3px; color: #9fb3c8; font-weight: 700; }
.bj-bank { font-size: 66px; font-weight: 900; line-height: 1.05; color: #00d4ff; margin-top: 4px; }
.bj-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.bj-row .bj-val { font-size: 40px; font-weight: 900; }
.bj-last { font-size: 40px; font-weight: 900; }
.bj-last.win { color: #4ade80; } .bj-last.lose { color: #ff6b6b; }
.bj-rules { font-size: 18px; line-height: 1.6; color: #9fb3c8; font-weight: 600; }
.bj-grow { flex: 1; }
.bj-cta { display: block; text-decoration: none; border-radius: 16px; padding: 12px 20px; border: 1px solid rgba(0, 212, 255, .28); background: linear-gradient(135deg, rgba(0, 212, 255, .16), rgba(124, 58, 237, .22)); }
.bj-cta small { display: block; font-size: 18px; color: #9fb3c8; font-weight: 700; }
.bj-cta b { display: block; font-size: 30px; font-weight: 900; color: #00d4ff; margin-top: 2px; }

/* table furniture */
/* discard tray: a clear acrylic box on a black base, seen from above like a real one; the pile is a 3D block */
.bj-tray { position: absolute; left: 500px; top: 6px; width: 220px; height: 220px; perspective: 900px; z-index: 4; pointer-events: none; }
.bj-t3 { position: absolute; left: 30px; top: 54px; width: 166px; height: 122px; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-12deg); }
.bj-box { position: absolute; transform-style: preserve-3d; --w: 166px; --d: 122px; --h: 16px; width: var(--w); height: var(--d); }
.bj-box .f { position: absolute; display: block; }
.bj-box .top { left: 0; top: 0; width: var(--w); height: var(--d); transform: translateZ(var(--h)); }
.bj-box .front { left: 0; top: calc(var(--d) - var(--h)); width: var(--w); height: var(--h); transform-origin: bottom; transform: rotateX(-90deg); }
.bj-box .back { left: 0; top: 0; width: var(--w); height: var(--h); transform-origin: top; transform: rotateX(90deg); }
.bj-box .left { left: 0; top: 0; width: var(--h); height: var(--d); transform-origin: left; transform: rotateY(-90deg); }
.bj-box .right { left: calc(var(--w) - var(--h)); top: 0; width: var(--h); height: var(--d); transform-origin: right; transform: rotateY(90deg); }
.bj-box.base { transform: translateZ(-16px); }
.bj-box.base .f { background: #0b0d12; } .bj-box.base .top { background: #14171e; }
.bj-box.base .front { background: linear-gradient(#22262f, #050608); } .bj-box.base .left, .bj-box.base .right { background: #08090c; }
.bj-box.glass { --h: 84px; }
.bj-box.glass .f { background: linear-gradient(180deg, rgba(225, 238, 255, .16), rgba(225, 238, 255, .05)); border: 2px solid rgba(235, 244, 255, .55); box-sizing: border-box; }
.bj-box.glass .front { border-top-color: rgba(255, 255, 255, .9); }
.bj-box.stack { left: 9px; top: 9px; --w: 148px; --d: 104px; --h: 0px; transition: --h .4s ease; }
.bj-box.stack[hidden] { display: none; }
.bj-box.stack .top { border-radius: 4px; background: #fff; padding: 5px; box-sizing: border-box; }
.bj-box.stack .top::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 3px; background: repeating-linear-gradient(45deg, #b3202a 0 5px, #d8434d 5px 10px); }
.bj-box.stack .front, .bj-box.stack .back { background: repeating-linear-gradient(0deg, #f1ece2 0 1.3px, #b9b1a2 1.3px 2.1px); }
.bj-box.stack .left, .bj-box.stack .right { background: repeating-linear-gradient(90deg, #e2dccf 0 1.3px, #a49c8e 1.3px 2.1px); }
.bj-limit { position: absolute; left: 1338px; top: 30px; width: 160px; box-sizing: border-box; padding: 10px 8px; border-radius: 12px; text-align: center; background: linear-gradient(160deg, rgba(20, 28, 52, .96), rgba(8, 12, 26, .96)); border: 1.5px solid rgba(0, 212, 255, .28); box-shadow: 0 10px 18px rgba(0, 0, 0, .5); }
.bj-limit .t { font-size: 13px; letter-spacing: 2.5px; color: #00d4ff; font-weight: 800; }
.bj-limit .m { font-size: 13px; color: #9fb3c8; font-weight: 700; margin-top: 6px; }
.bj-limit .v { font-size: 34px; font-weight: 900; line-height: 1.05; }

/* cards */
.bj-card { position: absolute; left: 0; top: 0; width: 180px; height: 252px; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .35s ease; z-index: 20; filter: drop-shadow(0 9px 10px rgba(0, 0, 0, .5)); }
.bj-face, .bj-back { position: absolute; inset: 0; border-radius: 14px; }
.bj-card.down .bj-face { visibility: hidden; } .bj-card:not(.down) .bj-back { visibility: hidden; }
.bj-card.flip { transition: transform .17s ease-in; }
.bj-face { background: linear-gradient(170deg, #fffefb, #f0ede4); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.bj-back { background: #fff; padding: 9px; box-sizing: border-box; }
.bj-back::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 9px; background: repeating-linear-gradient(45deg, #b3202a 0 7px, #d8434d 7px 14px); border: 2px solid #8d1720; box-sizing: border-box; }
.bj-red { color: #b5121b; } .bj-black { color: #121212; }
.bj-idx { position: absolute; left: 10px; top: 8px; width: 34px; text-align: center; line-height: .95; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.bj-idx.flip { left: auto; top: auto; right: 10px; bottom: 8px; transform: rotate(180deg); }
.bj-idx .r { font-size: 40px; } .bj-idx .r.ten { letter-spacing: -4px; } .bj-idx .s { font-size: 32px; }
.bj-pip { position: absolute; width: 40px; height: 44px; text-align: center; font-size: 40px; line-height: 44px; }
.bj-pip.down { transform: rotate(180deg); }
.bj-pip.ace { font-size: 92px; width: 100px; height: 100px; line-height: 100px; }
.bj-court { position: absolute; left: 44px; top: 46px; right: 44px; bottom: 46px; border: 3px solid currentColor; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: Georgia, serif; font-weight: 700; line-height: 1; }
.bj-court .r { font-size: 70px; } .bj-court .s { font-size: 44px; }

/* betting circle, chips, pills */
.bj-chips { position: absolute; z-index: 10; transition: transform .35s ease, opacity .35s ease; }
.bj-chip { position: absolute; left: 0; width: 84px; height: 84px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.bj-pill { position: absolute; transform: translate(-50%, -50%); padding: 6px 18px; border-radius: 999px; font-weight: 800; font-size: 28px; white-space: nowrap; background: rgba(8, 12, 24, .88); color: #00d4ff; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); z-index: 60; transition: opacity .25s ease; }
.bj-pill[hidden] { display: none; }
.bj-pill.amt { color: #e8f6ff; font-size: 22px; }
.bj-pill.win { background: #16a34a; color: #fff; } .bj-pill.lose { background: #b3262e; color: #fff; } .bj-pill.push { background: #5d6670; color: #fff; } .bj-pill.bj { background: #c79a1b; color: #fff; }
.bj-banner { position: absolute; left: 1330px; top: 700px; transform: translate(-50%, -50%) scale(.8); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .25s ease; z-index: 70; font-weight: 900; font-size: 64px; text-shadow: 0 4px 14px rgba(0, 0, 0, .8); white-space: nowrap; pointer-events: none; }
.bj-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bj-banner.win { color: #4ade80; } .bj-banner.lose { color: #ff6b6b; } .bj-banner.push { color: #e2e8f0; }

/* controls */
.bj-controls { position: absolute; left: 330px; width: 1400px; top: 952px; height: 92px; display: flex; justify-content: center; align-items: center; gap: 18px; z-index: 80; }
.bj-controls [hidden] { display: none !important; }
.bj-btn { font: inherit; font-size: 26px; font-weight: 900; letter-spacing: 1px; padding: 14px 30px; border-radius: 16px; border: 2px solid rgba(0, 212, 255, .5); background: rgba(8, 12, 24, .92); color: #f1f5f9; cursor: pointer; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); transition: transform .08s ease, background .15s ease; }
.bj-btn:hover { background: rgba(20, 30, 56, .95); }
.bj-btn:active { transform: translateY(2px); }
.bj-btn.primary { background: linear-gradient(135deg, #00b8e0, #6d35c9); border-color: transparent; }
.bj-btn:disabled { opacity: .4; cursor: default; }
.bj-chipbtn { width: 92px; height: 92px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); transition: transform .1s ease; }
.bj-chipbtn:hover { transform: translateY(-4px); }
.bj-chipbtn:disabled { opacity: .35; cursor: default; transform: none; }
.bj-chipbtn svg { width: 92px; height: 92px; display: block; }
.bj-note { position: absolute; left: 1030px; top: 470px; transform: translate(-50%, -50%); font-size: 30px; font-weight: 800; color: #dbe7f3; text-shadow: 0 3px 10px rgba(0, 0, 0, .8); z-index: 65; }
.bj-note[hidden] { display: none; }

.bj-copy { max-width: 760px; margin: 28px auto 0; }

/* the shoe: card backs showing in its mouth while it holds cards; the yellow cut card slides out at 75% */
.bj-shoecard { position: absolute; left: 1594px; top: 302px; width: 104px; height: 66px; transform: rotate(31deg); border-radius: 52px 52px 6px 6px / 44px 44px 6px 6px; overflow: hidden; z-index: 3; background: #f6f1e7; box-shadow: inset 0 14px 14px -6px rgba(0, 0, 0, .65); }
.bj-shoecard::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; bottom: 9px; border-radius: 4px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .5) 0 1.5px, transparent 1.5px 6px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .5) 0 1.5px, transparent 1.5px 6px), #c8434c; box-shadow: inset 0 0 0 1.5px #a8323a, inset 0 12px 12px -6px rgba(0, 0, 0, .55); }
.bj-shoecard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(0deg, #f1ebe0 0 1px, #cfc6b5 1px 2px); }
.bj-shoecard[hidden] { display: none; }
.bj-cut { position: absolute; left: 0; top: 0; width: 180px; height: 252px; border-radius: 14px; background: linear-gradient(160deg, #ffe066, #f0b90b); box-shadow: 0 9px 12px rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 900; font-size: 34px; letter-spacing: 2px; color: #3a2c00; transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .4s ease; z-index: 15; }
.bj-cut[hidden] { display: none; }

.bj-btn.ghost { background: rgba(8, 12, 24, .7); border-color: rgba(159, 179, 200, .4); color: #c9d6e3; }
.bj-pill.active { background: #00d4ff; color: #0a0e1a; box-shadow: 0 0 0 4px rgba(0, 212, 255, .25), 0 4px 12px rgba(0, 0, 0, .45); }

/* old-school arcade high scores (hardcoded until the leaderboard service is wired up) */
.bj-board { margin-top: 12px; padding: 16px 18px 12px; border-radius: 14px; background: #05070d; border: 2px solid rgba(0, 212, 255, .35); box-shadow: inset 0 0 24px rgba(0, 212, 255, .08); font-family: "Press Start 2P", ui-monospace, Menlo, monospace; }
.bj-board-t { text-align: center; font-size: 17px; color: #ffd84a; letter-spacing: 2px; margin-bottom: 8px; text-shadow: 0 0 8px rgba(255, 216, 74, .5); }
.bj-score { display: flex; align-items: center; font-size: 15px; line-height: 25px; color: #dbe7f3; }
.bj-score .n { width: 46px; color: #9fb3c8; } .bj-score .i { width: 80px; color: #00d4ff; letter-spacing: 3px; } .bj-score .v { flex: 1; text-align: right; color: #f1f5f9; }
.bj-score:nth-child(1) .i, .bj-score:nth-child(1) .v { color: #ffd84a; }

/* mode switch */
.bj-mode { display: flex; gap: 6px; margin-top: 16px; padding: 5px; border-radius: 14px; background: #05070d; border: 1.5px solid rgba(0, 212, 255, .28); }
.bj-mode button { flex: 1; font: inherit; font-size: 16px; font-weight: 900; letter-spacing: 2px; padding: 11px 0; border: 0; border-radius: 10px; background: transparent; color: #9fb3c8; cursor: pointer; }
.bj-mode button.on { background: linear-gradient(135deg, #00b8e0, #6d35c9); color: #fff; }
.bj-mode button:disabled:not(.on) { opacity: .45; cursor: default; }
.bj-mode-tip { font-size: 16px; line-height: 1.45; color: #9fb3c8; font-weight: 600; margin: 8px 2px 10px; min-height: 46px; }
.bj-score.new .i, .bj-score.new .v { color: #4ade80 !important; animation: bj-blink 1s steps(2, start) infinite; }
@keyframes bj-blink { to { visibility: hidden; } }
/* game over */
.bj-over { position: absolute; left: 1180px; top: 560px; transform: translate(-50%, -50%); width: 760px; box-sizing: border-box; padding: 44px 40px 40px; border-radius: 26px; background: rgba(5, 7, 13, .94); border: 2px solid rgba(0, 212, 255, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 40px rgba(0, 212, 255, .08); text-align: center; z-index: 95; display: flex; flex-direction: column; align-items: center; gap: 18px; font-family: "Press Start 2P", ui-monospace, Menlo, monospace; }
.bj-over[hidden], .bj-over [hidden] { display: none !important; }
.bj-over .t { font-size: 40px; color: #ffd84a; letter-spacing: 2px; text-shadow: 0 0 14px rgba(255, 216, 74, .5); }
.bj-over .s { font-size: 16px; color: #9fb3c8; letter-spacing: 3px; margin-top: 6px; }
.bj-over .v { font-family: Inter, system-ui, sans-serif; font-size: 96px; font-weight: 900; color: #00d4ff; line-height: 1; }
.bj-over .r { font-size: 22px; color: #4ade80; }
.bj-init { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bj-init label { font-size: 16px; color: #4ade80; letter-spacing: 1px; }
.bj-init div { display: flex; gap: 14px; align-items: center; }
.bj-init input { width: 210px; font: inherit; font-size: 44px; letter-spacing: 14px; text-align: center; text-transform: uppercase; padding: 14px 0 14px 14px; border-radius: 14px; border: 2px solid #00d4ff; background: #0b1120; color: #ffd84a; outline: none; }
.bj-over .bj-btn { font-family: Inter, system-ui, sans-serif; }
/* clear-bet badge on the bet circle (kept off the button row so the chips never shift) */
.bj-x { position: absolute; left: 1068px; top: 770px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: #e11d48; color: #fff; font: 900 30px/1 Inter, system-ui, sans-serif; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; cursor: pointer; z-index: 85; box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.bj-x[hidden] { display: none; }
.bj-x:hover { background: #f43f5e; }
/* Turnstile, if Cloudflare wants a click: centred over the table, outside the scaled stage so it keeps its real size */
.bj-ts { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 120; }
.bj-score.empty .i { color: #3b4a5e; }
/* the guide under the table */
.bj-guide { padding-top: 40px; padding-bottom: 20px; }
.bj-guide h1 { margin-top: 0; }
/* a phone held sideways: the table fills the screen, over the site header, inside the notch and home-bar areas */
html.bj-full, html.bj-full body { overflow: hidden; height: 100%; }
html.bj-full .bj-section { position: fixed; inset: 0; z-index: 200; background: #05070d; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); display: flex; }
html.bj-full .bj-section > .wrap { flex: 1; max-width: none; padding: 0; display: flex; align-items: center; justify-content: center; }
html.bj-full .bj-wrap { border-radius: 0; box-shadow: none; flex: none; }
/* ---- a phone held upright: a 780-wide stage (play.js sets its height to the screen). Top bar, felt, thumb bar. ---- */
.bj-felt-tall, .bj-print-tall, .bj-ring { display: none; }
html.bj-tall .bj-section { padding: 0; }
html.bj-tall .bj-section > .wrap { padding: 0; max-width: none; }
html.bj-tall .bj-wrap { aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.bj-stage.tall { width: 780px; background: #0a0e1a; }
.bj-stage.tall .bj-print, .bj-stage.tall .bj-limit, .bj-stage.tall .bj-brand, .bj-stage.tall .bj-rule, .bj-stage.tall .bj-rules,
.bj-stage.tall .bj-board, .bj-stage.tall .bj-grow, .bj-stage.tall .bj-cta { display: none; }
.bj-stage.tall .bj-felt-tall { display: block; position: absolute; left: 0; right: 0; top: var(--ft); height: var(--fh); background: #13203f url(/assets/play/felt.jpg) no-repeat; box-shadow: inset 0 22px 26px -16px rgba(0, 0, 0, .75), inset 0 -22px 26px -16px rgba(0, 0, 0, .75); }
.bj-stage.tall .bj-print-tall { display: block; position: absolute; left: 0; width: 780px; height: 190px; pointer-events: none; filter: blur(.4px); }
/* top bar: mode switch, bankroll with bet and last hand, games left */
.bj-stage.tall .bj-panel { left: 0; top: 0; bottom: auto; width: 780px; padding: 14px 30px 14px; border-radius: 0; border: 0; border-bottom: 2px solid rgba(0, 212, 255, .16); box-shadow: none; background: #0a0e1a;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "mode mode" "label bet" "bank last" "tip tip"; column-gap: 20px; align-items: end; }
.bj-stage.tall .bj-mode { grid-area: mode; margin: 0 0 10px; padding: 5px; border-radius: 20px; }
.bj-stage.tall .bj-mode button { font-size: 23px; letter-spacing: 3px; padding: 12px 0; border-radius: 15px; }
.bj-stage.tall .bj-mode-tip { grid-area: tip; font-size: 22px; line-height: 1.3; margin: 6px 0 0; min-height: 0; }
.bj-stage.tall .bj-label { font-size: 20px; letter-spacing: 4px; }
.bj-stage.tall .bj-panel > .bj-label { grid-area: label; }
.bj-stage.tall .bj-bank { grid-area: bank; font-size: 66px; line-height: 1; margin: 4px 0 0; }
.bj-stage.tall .bj-row { margin: 0; gap: 14px; justify-content: flex-end; align-items: baseline; }
.bj-stage.tall .bj-row-bet { grid-area: bet; }
.bj-stage.tall .bj-row-last { grid-area: last; padding-bottom: 6px; }
.bj-stage.tall .bj-row .bj-val, .bj-stage.tall .bj-last { font-size: 32px; }
.bj-stage.tall .bj-row-last .bj-label { font-size: 0; } .bj-stage.tall .bj-row-last .bj-label::after { content: "LAST"; font-size: 20px; }
/* table furniture scaled for the narrow felt */
.bj-stage.tall .bj-tray { left: -18px; transform: scale(.56); transform-origin: 0 0; }
.bj-stage.tall .bj-shoecard { transform-origin: 0 0; }
/* thumb bar */
.bj-stage.tall .bj-controls { left: 0; width: 780px; top: auto; bottom: 0; height: 172px; padding: 0 24px 8px; box-sizing: border-box; gap: 16px; background: linear-gradient(#0a0e1a, #070a13); border-top: 2px solid rgba(0, 212, 255, .16); }
.bj-stage.tall .bj-btn { flex: 1; font-size: 34px; padding: 0; height: 112px; border-radius: 30px; letter-spacing: 1px; }
.bj-stage.tall .bj-chipbtn, .bj-stage.tall .bj-chipbtn svg { width: 124px; height: 124px; flex: none; }
.bj-stage.tall .bj-pill { font-size: 32px; padding: 6px 20px; }
.bj-stage.tall .bj-pill.amt { font-size: 26px; }
.bj-stage.tall .bj-x { width: 60px; height: 60px; font-size: 38px; }
.bj-stage.tall .bj-banner { font-size: 72px; }
.bj-stage.tall .bj-note { font-size: 28px; white-space: nowrap; }
.bj-stage.tall .bj-over { left: 390px; top: 50%; width: 720px; padding: 44px 30px 40px; }
.bj-stage.tall .bj-over .t { font-size: 34px; }
.bj-stage.tall .bj-ring { display: block; position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 4px solid rgba(214, 236, 255, .7); box-sizing: border-box; z-index: 2; pointer-events: none; }
#bj-bet-chips { left: 0; top: 0; }
/* TOP 10: on an upright phone the board is a sheet that slides up over the table (fixed = the stage, which is transformed) */
.bj-top10, .bj-board-left { display: none; }
.bj-stage.tall .bj-panel { grid-template-areas: "mode top" "label bet" "bank last" "tip tip"; }
.bj-stage.tall .bj-top10 { grid-area: top; display: flex; align-items: center; gap: 10px; height: 70px; margin: 0 0 10px; padding: 0 22px; border-radius: 999px; border: 3px solid rgba(255, 216, 74, .55); background: rgba(255, 216, 74, .07); color: #ffd84a; font: 400 19px "Press Start 2P", ui-monospace, monospace; cursor: pointer; }
.bj-stage.tall .bj-top10 svg { width: 30px; height: 30px; }
.bj-stage.tall .bj-board { display: block; position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 22px 40px 60px; border-radius: 48px 48px 0 0; border: 0; border-top: 4px solid rgba(0, 212, 255, .45); z-index: 150;
  box-shadow: 0 0 0 3000px rgba(0, 0, 0, .55), 0 -30px 60px rgba(0, 0, 0, .6); transform: translateY(110%); transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .32s ease; pointer-events: none; }
.bj-stage.tall .bj-board:not(.open) { box-shadow: 0 0 0 3000px rgba(0, 0, 0, 0); }
.bj-stage.tall .bj-board.open { transform: none; pointer-events: auto; }
.bj-stage.tall .bj-board::before { content: ""; display: block; width: 80px; height: 10px; border-radius: 5px; background: #3b4a5e; margin: 0 auto 34px; }
.bj-stage.tall .bj-board-t { font-size: 34px; margin-bottom: 30px; }
.bj-stage.tall .bj-score { font-size: 26px; line-height: 62px; }
.bj-stage.tall .bj-score .n { width: 96px; } .bj-stage.tall .bj-score .i { width: 160px; letter-spacing: 6px; }
.bj-stage.tall .bj-board-left { display: block; margin-top: 34px; text-align: center; font: 600 26px/1.4 Inter, system-ui, sans-serif; color: #9fb3c8; }
.bj-stage.tall .bj-panel.sheet-open { z-index: 160; }
/* upright phone: the site header scrolls away instead of pinning over the top bar (it covered the mode switch) */
html.bj-tall .site-header { position: relative; }
