/* /block-blast/ — Block Blast, a port of the Pocket Games "Block Puzzle"
   (block-blast.css + block-blast-themes.css). The game card (#bb-root) carries
   its own style palette ("bb-skin" + data-theme); everything around it reads the
   site tokens. Shared by all locales. */

.bb-play { text-align: center; }
.bb-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text);
}
:lang(zh) .bb-h1, :lang(ja) .bb-h1 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-3); line-height: 1.15; }
:lang(ru) .bb-h1, :lang(hi) .bb-h1 { line-height: 1.15; }
:lang(ar) .bb-h1 { line-height: 1.4; letter-spacing: 0; }
.bb-h1-sub { max-inline-size: 60ch; margin-inline: auto !important; color: var(--text-muted); text-wrap: pretty; }
.bb-lb-cta { display: flex; justify-content: center; margin-block: var(--space-4); }
.bb-play .arcade-rank { margin: var(--space-4) auto 0; text-align: start; }

/* ── The game card ─────────────────────────────────────────────────── */
.bb-root { inline-size: min(100%, 540px); margin: var(--space-3) auto 0; }
.bb-game {
  --safe-top: 0px; --safe-bottom: 0px;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  block-size: clamp(600px, calc(100svh - 150px), 860px);
  border-radius: 28px; background: var(--game-bg); color: var(--game-ink);
  font-family: var(--font-body); text-align: center;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.28);
  transition: background-color .5s ease;
}
.bb-game svg { inline-size: 17px; block-size: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.bb-hud { position: relative; display: flex; gap: 12px; align-items: center; inline-size: min(100%, 540px); margin: 0 auto; padding: 14px 22px 6px; }
.bb-score { flex: 1; display: grid; text-align: center; padding-inline-start: 86px; }
.bb-hud span { color: color-mix(in srgb, var(--game-muted), var(--game-ink) 30%); text-transform: uppercase; font-weight: 900; font-size: 10px; letter-spacing: .12em; }
.bb-score strong { font-size: clamp(28px, 5vh, 42px); line-height: 1.2; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--game-ink); }
.bb-best { min-inline-size: 86px; display: grid; text-align: center; padding: 9px 12px; background: var(--game-panel); border: 1px solid var(--game-border); border-radius: 18px; color: var(--game-ink); }
.bb-best strong { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bb-best span { display: flex; justify-content: center; align-items: center; gap: 4px; }
.bb-best svg { inline-size: 13px; block-size: 13px; }

/* Themes bar: the app's style shop without the coins — the name of the style in play
   and the drag controls (the app keeps those in its host menu). */
.bb-shop { position: relative; z-index: 12; inline-size: min(calc(100% - 36px), 496px); margin: 2px auto 0; flex: none; font-size: 12px; color: var(--game-ink); text-align: start; }
.bb-shop summary { display: flex; align-items: center; gap: 8px; min-block-size: 42px; padding: 8px 12px; border-radius: 12px; background: var(--game-surface); cursor: pointer; list-style: none; box-shadow: 0 4px 12px #00000012; touch-action: manipulation; }
.bb-shop summary::-webkit-details-marker { display: none; }
.bb-shop summary > b { font-size: 13px; }
.bb-shop summary > span { margin-inline-start: auto; font-size: 11px; font-weight: 750; max-inline-size: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-shop summary > svg:last-child { inline-size: 15px; block-size: 15px; transition: transform .2s; }
.bb-shop[open] summary > svg:last-child { transform: rotate(180deg); }
.bb-shop-body { position: absolute; inset-inline: 0; top: calc(100% + 6px); max-block-size: min(65vh, 520px); overflow-y: auto; overscroll-behavior: contain; border-radius: 14px; background: var(--game-surface); padding: 14px 16px 16px; box-shadow: 0 12px 28px #00000035; display: grid; gap: 14px; }
.bb-shop-note { margin: 0; line-height: 1.45; font-size: 12px; }
.bb-opt { display: grid; gap: 8px; }
.bb-opt > b { font-size: 12px; }
.bb-opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-opt-row button { flex: 1 1 0; min-inline-size: 64px; min-block-size: 44px; display: grid; place-content: center; gap: 2px; padding: 6px 8px; border: 1px solid var(--game-border); border-radius: 10px; background: var(--game-panel); color: var(--game-ink); font: inherit; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.bb-opt-row button small { font-size: 10px; font-weight: 700; opacity: .8; }
.bb-opt-row button[aria-pressed="true"] { outline: 2px solid var(--game-accent); outline-offset: -2px; }
.bb-opt-row button:disabled { opacity: .5; cursor: default; }
.bb-shop button:focus-visible, .bb-shop summary:focus-visible { outline: 3px solid var(--game-accent); outline-offset: 3px; }

.bb-area { position: relative; display: flex; flex: 1; min-block-size: 0; padding: 0 18px 12px; }
.bb-wrap { display: flex; flex-direction: column; inline-size: min(100%, 520px); margin: auto; block-size: 100%; touch-action: none; }
.bb-stage { flex: 1; min-block-size: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; container-type: size; }
.bb-combo { font-weight: 900; block-size: 31px; line-height: 31px; flex: none; color: var(--game-accent); font-size: 21px; letter-spacing: -.02em; }
.bb-board {
  inline-size: min(100%, calc(100cqh - 91px), 490px); aspect-ratio: 1; flex: none; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); gap: var(--bb-gap, 4px);
  position: relative; border-radius: var(--bb-board-radius, 16px); outline: var(--bb-board-outline, 8px solid var(--bb-board)); background: var(--bb-board); box-shadow: var(--bb-board-shadow);
  direction: ltr; transition: background-color .5s ease, outline-color .5s ease;
}
.bb-cell { border-radius: var(--bb-cell-radius, 3px); background: var(--bb-slot); box-shadow: var(--bb-slot-shadow, inset 0 2px 3px #00000018); transition: transform .15s, opacity .2s; }
/* The display palette fills the whole face; the style's material only shapes the edges. */
.bb-cell.on, .bb-cell.ghost, .bb-piece i, .bb-float i {
  background-color: var(--c); background-image: var(--bb-face); border: 0; border-radius: var(--bb-cell-radius); box-shadow: var(--bb-bevel), var(--bb-detail);
}
.bb-cell.ghost { opacity: .58; transform: scale(.95); box-shadow: var(--bb-bevel), inset 0 0 0 2px #ffffffb8; }
.bb-cell.ghost.bad { opacity: .35; filter: grayscale(.7); box-shadow: inset 0 0 0 2px #ff6b6bcc; }
.bb-cell.pre { box-shadow: var(--bb-bevel), inset 0 0 0 2px #fff, 0 0 9px #ffffff66; }
.bb-cell.placed { animation: bbLand .32s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes bbLand { 0% { transform: scale(1.18); } 60% { transform: scale(.94); } 100% { transform: scale(1); } }
.bb-cell.clearing { animation: bbClear .3s cubic-bezier(.2, .6, .3, 1) var(--delay) both; }
@keyframes bbClear { 0% { transform: scale(1); filter: brightness(1); } 30% { transform: scale(1.14); filter: brightness(1.8); } 100% { transform: scale(.1) rotate(15deg); opacity: 0; } }
.bb-game.is-over .bb-cell.on { filter: grayscale(.85) brightness(.7); transition: filter .4s ease; }

/* Line-clear flash bars, score pops, the praise word and confetti sit over the grid. */
.bb-flash { position: absolute; inset: -2px; z-index: 3; pointer-events: none; border-radius: 6px; background: linear-gradient(90deg, transparent, #fff, transparent); animation: bbFlashRow .45s ease-out both; }
.bb-flash.col { background: linear-gradient(180deg, transparent, #fff, transparent); animation-name: bbFlashCol; }
@keyframes bbFlashRow { 0% { opacity: 0; transform: scaleX(.2); } 30% { opacity: .95; transform: scaleX(1.02); } 100% { opacity: 0; transform: scaleX(1.05); } }
@keyframes bbFlashCol { 0% { opacity: 0; transform: scaleY(.2); } 30% { opacity: .95; transform: scaleY(1.02); } 100% { opacity: 0; transform: scaleY(1.05); } }
.bb-pop { position: absolute; z-index: 5; transform: translate(-50%, -50%); pointer-events: none; font-weight: 900; font-size: 22px; letter-spacing: -.02em; color: #fff; -webkit-text-stroke: 1px var(--game-accent); text-shadow: 0 2px 0 var(--game-accent), 0 6px 14px #00000055; animation: bbPopUp 1.05s cubic-bezier(.2, .7, .3, 1) both; white-space: nowrap; }
.bb-pop.big { font-size: 30px; }
@keyframes bbPopUp { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 70% { opacity: 1; transform: translate(-50%, -140%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(.9); } }
.bb-praise { position: absolute; left: 50%; top: 42%; z-index: 6; display: grid; justify-items: center; gap: 2px; pointer-events: none; text-align: center; white-space: nowrap; animation: bbPraise 1.3s cubic-bezier(.2, .8, .3, 1) both; transform: translate(-50%, -50%); }
.bb-praise strong { font-size: clamp(30px, 10cqw, 56px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; color: #fff; -webkit-text-stroke: 1.5px var(--game-accent); paint-order: stroke fill; text-shadow: 0 3px 0 var(--game-accent), 0 10px 24px #00000066; }
.bb-praise[data-level='3'] strong, .bb-praise[data-level='4'] strong { color: #ffe08a; }
.bb-praise[data-level='5'] strong { color: #ffd6ec; -webkit-text-stroke-color: #e0398a; text-shadow: 0 3px 0 #e0398a, 0 10px 24px #00000066; font-size: clamp(34px, 11cqw, 62px); }
.bb-praise small { font-size: 15px; font-weight: 900; color: #fff; -webkit-text-stroke: .6px var(--game-accent); text-shadow: 0 2px 0 var(--game-accent), 0 6px 14px #00000055; }
@keyframes bbPraise { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-6deg); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(2deg); } 24% { transform: translate(-50%, -50%) scale(1) rotate(0); } 75% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1.05); } }
.bb-confetti { position: absolute; left: 50%; top: 45%; z-index: 7; inline-size: 9px; block-size: 13px; border-radius: 2px; pointer-events: none; animation: bbConfetti 1.3s cubic-bezier(.15, .7, .3, 1) both; }
@keyframes bbConfetti { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(.6); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 120px)) rotate(var(--r)) scale(1); } }
.bb-board.bb-shake { animation: bbShake .45s ease; }
@keyframes bbShake { 20% { translate: -7px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; } }
.bb-scene-name { block-size: 30px; line-height: 30px; margin-top: 22px; flex: none; font-size: 13px; font-weight: 900; color: var(--game-accent); }
.bb-scene-name.celebrate { animation: bbScene 2.6s both; }
@keyframes bbScene { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 12% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; } }

.bb-tray { block-size: clamp(116px, 18dvh, 160px); flex: none; display: flex; align-items: stretch; justify-content: space-around; gap: 7px; padding: 8px 0; direction: ltr; }
.bb-slot { flex: 1; min-inline-size: 0; display: grid; place-items: center; touch-action: none; border-radius: 12px; background: var(--bb-tray); border: var(--bb-tray-border, 0); box-shadow: var(--bb-tray-shadow, none); cursor: grab; transition: background-color .5s ease; }
.bb-slot:active { cursor: grabbing; }
.bb-piece { display: grid; grid-template-columns: repeat(var(--w), 1fr); grid-template-rows: repeat(var(--h), 1fr); gap: 2px; inline-size: calc(var(--w) * clamp(14px, 4.7vw, 24px)); block-size: calc(var(--h) * clamp(14px, 4.7vw, 24px)); transition: transform .15s, opacity .15s; pointer-events: none; }
.bb-piece.dealt { animation: bbDeal .35s ease; }
@keyframes bbDeal { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }
.bb-piece i { display: block; }
.bb-piece.lifted { opacity: .16; transform: scale(.85); }
.bb-piece.stuck { opacity: .55; }
.bb-piece.chosen { transform: scale(1.12); filter: drop-shadow(0 0 6px #fff); }
.bb-float { position: fixed; left: 0; top: 0; z-index: 2600; pointer-events: none; will-change: transform; animation: bbLift .12s ease-out; }
.bb-float i { position: absolute; inline-size: calc(var(--cs) - var(--bb-gap, 3px)); block-size: calc(var(--cs) - var(--bb-gap, 3px)); filter: drop-shadow(0 7px 5px #00000030); }
@keyframes bbLift { from { opacity: .4; } to { opacity: 1; } }
/* Picked up: the piece grows from tray size while it rises from the fingertip (--rise px below) to where it rides. */
.bb-float-body { position: absolute; left: 0; top: 0; inline-size: calc(var(--w) * var(--cs)); block-size: calc(var(--h) * var(--cs)); transform-origin: 50% 100%; animation: bbRise .13s cubic-bezier(.2, .9, .3, 1.12) both; }
@keyframes bbRise { from { transform: translateY(var(--rise, 0px)) scale(.55); } to { transform: none; } }
.bb-game.is-paused *, .bb-game.is-paused *::before, .bb-game.is-paused *::after { animation-play-state: paused !important; }

.bb-keys { margin: 0 0 10px; font-size: 11px; font-weight: 700; color: var(--game-ink); }
@media (pointer: coarse) { .bb-keys { display: none; } }

/* Standalone game-over card (the play layer shows its own finish sheet instead). */
.bb-over { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--game-bg) 55%, transparent); backdrop-filter: blur(3px); animation: bbFade .3s ease both; }
.bb-over[hidden] { display: none; }
.bb-over-card { inline-size: min(100%, 340px); display: grid; gap: 8px; justify-items: center; padding: 26px 22px 22px; border-radius: 28px; background: var(--game-surface); border: 3px solid var(--game-border); box-shadow: 0 8px 0 var(--game-panel), 0 25px 70px #00000040; }
.bb-over-card h2 { margin: 0; font-family: var(--font-body); text-transform: none; font-size: 28px; font-weight: 900; color: var(--game-accent); letter-spacing: -.02em; }
.bb-over-sub { margin: 0; font-size: 13px; color: var(--game-muted); }
.bb-over-score { margin: 6px 0 0; display: grid; }
.bb-over-score span { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--game-muted); }
.bb-over-score strong { font-size: 44px; line-height: 1.1; font-weight: 900; font-variant-numeric: tabular-nums; }
.bb-over-best { margin: 0 0 8px; font-weight: 800; font-size: 14px; }
.bb-over-best.is-best { color: var(--game-accent); }
@keyframes bbFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-height: 640px) { .bb-hud { padding-top: 8px; } .bb-tray { block-size: 112px; } .bb-scene-name { margin-top: 15px; block-size: 22px; line-height: 22px; } .bb-combo { block-size: 26px; line-height: 26px; } }
@media (max-width: 420px) { .bb-score { padding-inline-start: 40px; } .bb-hud { padding-inline: 14px; } .bb-area { padding-inline: 12px; } }

/* ── Play layer (assets/play/play.mjs): the card fills the slot under the bar ── */
html.play-open .bb-play { inline-size: min(100%, 560px) !important; }
html.play-open .bb-root { inline-size: 100%; margin: 0; }
html.play-open .bb-game { block-size: calc(100dvh - 92px); max-block-size: 920px; }
html.play-open .bb-over { display: none; }
@media (max-width: 599px) {
  html.play-open .bb-game { block-size: calc(100dvh - 84px); border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-cell, .bb-game, .bb-board, .bb-slot { transition: none; }
  .bb-cell.clearing { animation: none; opacity: .2; }
  .bb-piece, .bb-scene-name, .bb-cell.placed, .bb-flash, .bb-float, .bb-float-body, .bb-board.bb-shake, .bb-over { animation: none !important; }
  .bb-pop, .bb-praise { animation: bbScene 1.2s both; }
}

/* Opaque colors stay readable; face, silhouette and edges share one material
   across the board, tray, dragged piece, landing preview and shop sample. */
.bb-skin {
  --bb-gap: 3px;
  --bb-board-radius: 8px;
  --bb-cell-radius: 7%;
  --bb-board-outline: 7px solid var(--bb-board);
  --bb-board-shadow: 0 8px 20px #07152c35;
  --bb-slot-shadow: inset 0 1px 2px #00000018;
  --bb-bevel: inset 0 2px 0 #ffffff38, inset 0 -3px 0 #00000024, inset 2px 0 0 #ffffff14, inset -2px 0 0 #00000012;
  --bb-tray: var(--bb-board);
  --bb-tray-border: 0;
  --bb-tray-shadow: none;
  --bb-face: linear-gradient(180deg, #ffffff12, transparent 44%, #00000010);
  --bb-detail: inset 0 0 0 0 transparent;
}

.bb-skin[data-theme='candy'] {
  --game-bg: #416abd; --game-chrome: #416abd; --game-surface: #345ba6; --game-panel: #2e5299; --game-ink: #ffffff; --game-muted: #e1eafe; --game-accent: #ffe279; --game-border: #6486ce;
  --bb-board: #182b56; --bb-slot: #223862; --bb-cell-radius: 7%;
}
.bb-skin[data-theme='jelly'] {
  --game-bg: #284d65; --game-chrome: #284d65; --game-surface: #224358; --game-panel: #1c394c; --game-ink: #f3fbff; --game-muted: #d0e6ef; --game-accent: #a9f0ca; --game-border: #50778c;
  --bb-board: #102e3c; --bb-slot: #1a3946; --bb-cell-radius: 28%;
  --bb-face: radial-gradient(ellipse at 30% 20%, #ffffff48, transparent 53%), linear-gradient(180deg, transparent 60%, #00000012);
  --bb-bevel: inset 0 3px 2px #ffffff48, inset 0 -4px 2px #00000024, inset 2px 0 2px #ffffff24;
}
.bb-skin[data-theme='neon'] {
  --game-bg: #191f39; --game-chrome: #191f39; --game-surface: #252c4c; --game-panel: #2e3659; --game-ink: #f6f8ff; --game-muted: #d3dcf4; --game-accent: #76e6ee; --game-border: #4d587d;
  --bb-board: #10182b; --bb-slot: #1a233a; --bb-cell-radius: 5%;
  --bb-face: linear-gradient(180deg, #ffffff0c, #0000003d);
  --bb-bevel: inset 0 0 0 2px #ffffff70, inset 0 0 0 4px #00000028;
}
.bb-skin[data-theme='crystal'] {
  --game-bg: #433d6d; --game-chrome: #433d6d; --game-surface: #39345c; --game-panel: #302b50; --game-ink: #faf7ff; --game-muted: #e3d9f3; --game-accent: #edd794; --game-border: #756b9d;
  --bb-board: #221c3c; --bb-slot: #302847; --bb-cell-radius: 5%;
  --bb-face: conic-gradient(from 45deg at 50% 50%, #ffffff06 0deg 90deg, #00000010 90deg 180deg, #ffffff38 180deg 270deg, #ffffff14 270deg);
  --bb-bevel: inset 0 2px 0 #ffffff48, inset 0 -3px 0 #00000026, inset 2px 0 0 #ffffff28, inset -2px 0 0 #00000016;
}
.bb-skin[data-theme='retro'] {
  --game-bg: #343f52; --game-chrome: #343f52; --game-surface: #2b3546; --game-panel: #253040; --game-ink: #fbfaf1; --game-muted: #dbe1df; --game-accent: #ffe06a; --game-border: #607084;
  --bb-board: #17212d; --bb-slot: #23303e; --bb-cell-radius: 0px; --bb-board-radius: 2px;
  --bb-bevel: inset 2px 2px 0 #ffffff40, inset -2px -2px 0 #00000034;
  --bb-face: none;
  --bb-detail: inset 0 0 0 4px #0000000c;
}
.bb-skin[data-theme='frost'] {
  --game-bg: #dce8f0; --game-chrome: #dce8f0; --game-surface: #f4f8fb; --game-panel: #c8dbe8; --game-ink: #203d56; --game-muted: #3f5d72; --game-accent: #275e88; --game-border: #9dbacb;
  --bb-board: #294356; --bb-slot: #354f61; --bb-cell-radius: 10%;
  --bb-face: linear-gradient(135deg, #ffffff58, #ffffff08 43%, #ffffff35 45%, transparent 48%, #ffffff22 75%);
  --bb-bevel: inset 0 2px 0 #ffffff55, inset 0 -2px 0 #00000022;
}
.bb-skin[data-theme='bubble'] {
  --game-bg: #337591; --game-chrome: #337591; --game-surface: #29677e; --game-panel: #25596e; --game-ink: #f4fcff; --game-muted: #d9eff6; --game-accent: #ffdf8d; --game-border: #69a1b5;
  --bb-board: #123b4c; --bb-slot: #20495a; --bb-cell-radius: 38%;
  --bb-face: radial-gradient(ellipse at 30% 22%, #ffffff68 0 10%, transparent 26%), radial-gradient(ellipse at 65% 75%, #ffffff28, transparent 55%);
  --bb-bevel: inset 0 0 0 2px #ffffff58, inset 0 -3px 3px #00000022;
}
.bb-skin[data-theme='porcelain'] {
  --game-bg: #e9e8df; --game-chrome: #e9e8df; --game-surface: #fffdf6; --game-panel: #d8dfda; --game-ink: #314e58; --game-muted: #53656a; --game-accent: #27647c; --game-border: #afbfb9;
  --bb-board: #263d44; --bb-slot: #33494e; --bb-cell-radius: 12%;
  --bb-face: linear-gradient(180deg, #ffffff50, #ffffff0a 32%, transparent 66%, #00000010);
  --bb-bevel: inset 0 2px 0 #ffffff65, inset 0 -2px 0 #00000020, inset 1px 0 0 #ffffff30;
}
.bb-skin[data-theme='observatory'] {
  --game-bg: #243b59; --game-chrome: #243b59; --game-surface: #1f324c; --game-panel: #1b2c43; --game-ink: #fff6df; --game-muted: #d9e0e9; --game-accent: #f3d58f; --game-border: #65758a;
  --bb-board: #142339; --bb-slot: #213148; --bb-cell-radius: 5%;
  --bb-face: linear-gradient(135deg, #ffffff30, transparent 40%, #00000020);
  --bb-bevel: inset 0 0 0 1px #fff0b9, inset 0 0 0 3px #00000020, inset 0 -3px 0 #00000020;
}
.bb-skin[data-theme='clockwork'] {
  --game-bg: #5a5147; --game-chrome: #5a5147; --game-surface: #4c443b; --game-panel: #413a33; --game-ink: #fff3da; --game-muted: #e6d7c1; --game-accent: #f0ce91; --game-border: #8c7d66;
  --bb-board: #302b27; --bb-slot: #3c3731; --bb-cell-radius: 5%;
  --bb-face: linear-gradient(90deg, #ffffff20, transparent 35%, #0000000c 65%, #ffffff20);
  --bb-detail: inset 0 0 0 2px #fff0c138;
  --bb-bevel: inset 0 2px 0 #ffffff30, inset 0 -3px 0 #00000030, inset 2px 0 0 #ffffff15;
}
.bb-skin[data-theme='woodland'] {
  --game-bg: #ece2cd; --game-chrome: #ece2cd; --game-surface: #fff6e3; --game-panel: #e3d5b8; --game-ink: #4b4434; --game-muted: #675e48; --game-accent: #4b6747; --game-border: #b3a382;
  --bb-board: #3d392d; --bb-slot: #4a4435; --bb-cell-radius: 7%;
  --bb-face: repeating-linear-gradient(4deg, transparent 0 5px, #70472314 6px, transparent 7px 11px), linear-gradient(180deg, #ffffff20, transparent 40%, #00000015);
  --bb-bevel: inset 0 2px 0 #ffffff30, inset 0 -3px 0 #00000026;
}
.bb-skin[data-theme='seaglass'] {
  --game-bg: #d8e9e5; --game-chrome: #d8e9e5; --game-surface: #f2fbf7; --game-panel: #bdd7d0; --game-ink: #244d50; --game-muted: #3e6161; --game-accent: #28676d; --game-border: #8fbbb4;
  --bb-board: #244247; --bb-slot: #304f52; --bb-cell-radius: 12%;
  --bb-face: radial-gradient(ellipse at 35% 20%, #ffffff3a, transparent 60%), linear-gradient(135deg, #ffffff12, #00000012);
  --bb-bevel: inset 0 2px 0 #ffffff50, inset 0 -2px 0 #00000025, inset 1px 0 0 #ffffff28;
}
.bb-skin[data-theme='origami'] {
  --game-bg: #f0e7de; --game-chrome: #f0e7de; --game-surface: #fff8f1; --game-panel: #e4d3c7; --game-ink: #504249; --game-muted: #6e5760; --game-accent: #8a465b; --game-border: #c8abae;
  --bb-board: #45333c; --bb-slot: #523f47; --bb-cell-radius: 3%;
  --bb-face: conic-gradient(from 45deg, #ffffff0c 0deg 90deg, #00000016 90deg 180deg, #ffffff32 180deg 270deg, transparent 270deg);
  --bb-bevel: inset 0 1px 0 #ffffff50, inset 0 -1px 0 #00000028;
}
.bb-skin[data-theme='honey'] {
  --game-bg: #f1dfb7; --game-chrome: #f1dfb7; --game-surface: #fff4d7; --game-panel: #e5cd95; --game-ink: #594324; --game-muted: #715331; --game-accent: #80551f; --game-border: #c4a36e;
  --bb-board: #453720; --bb-slot: #514129; --bb-cell-radius: 10%;
  --bb-face: radial-gradient(ellipse at 40% 20%, #ffffff34, transparent 58%), linear-gradient(180deg, transparent 70%, #70451020);
  --bb-detail: inset 0 0 0 2px #fff1af28;
  --bb-bevel: inset 0 2px 0 #ffffff35, inset 0 -3px 0 #00000026;
}

