/* Digital Lottery web panel. Palette: ticket ink, counter blue, scratch-foil gold, cool paper. */
@font-face { font-family: Barlow; font-weight: 400; src: url(fonts/Barlow-Regular.ttf); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 500; src: url(fonts/Barlow-Medium.ttf); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 600; src: url(fonts/Barlow-SemiBold.ttf); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 700; src: url(fonts/Barlow-Bold.ttf); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url(fonts/BarlowCondensed-SemiBold.ttf); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url(fonts/BarlowCondensed-Bold.ttf); font-display: swap; }

:root {
  --ink: #0E1B3D; --ink-soft: #1B2B57; --blue: #1746D1; --foil: #E9B420; --foil-deep: #B98605;
  --paper: #F3F5FA; --line: #DDE2EE; --cash: #11845B; --signal: #C8322B; --amber: #B36B00;
  --text: #16203A; --muted: #5E6A85; --white: #fff;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 15px/1.4 Barlow, system-ui, sans-serif; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .2px; }
h1 { font-size: 34px; } h2 { font-size: 22px; margin: 26px 0 10px; } h3 { font-size: 24px; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
:focus-visible { outline: 3px solid var(--foil); outline-offset: 2px; }

/* Shell */
.shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100%; }
.side { background: var(--ink); color: #D5DCEE; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 16px; font: 700 26px/1 var(--display); color: #fff; }
.coin { width: 30px; height: 30px; border-radius: 50%; background: var(--foil); color: var(--ink); display: grid; place-items: center; font: 700 22px/1 var(--display); flex: none; }
.nav { flex: 1; overflow-y: auto; padding: 0 10px; }
.nav a { display: block; padding: 9px 12px; margin-bottom: 2px; border-radius: 9px; color: #D5DCEE; font-weight: 500; }
.nav a:hover { background: var(--ink-soft); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--ink-soft); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--foil); }
.who { margin: 10px; padding: 10px 12px; background: var(--ink-soft); border-radius: 10px; display: flex; align-items: center; gap: 8px; }
.who b { color: #fff; display: block; } .who span { font-size: 12.5px; color: #AEB9D6; }
.who button { margin-left: auto; background: none; border: 1px solid #51618F; color: #D5DCEE; border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.topbar { display: none; }
.main { padding: 22px 28px 60px; max-width: 1300px; width: 100%; min-width: 0; }
.head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.head > div:first-child { flex: 1; min-width: 220px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trail { color: var(--muted); margin-top: 2px; }

@media (max-width: 899px) {
  .shell { display: block; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 30; transform: translateX(-102%); transition: transform .18s; height: auto; }
  .shell.open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(14, 27, 61, .5); }
  .topbar { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 20; font: 700 22px/1 var(--display); }
  .topbar button { background: var(--ink-soft); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; font: 600 14px Barlow, sans-serif; cursor: pointer; }
  .main { padding: 14px 14px 60px; }
  h1 { font-size: 28px; }
}

/* Panels, ledger strip */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.note { background: #FCF4D9; border-color: var(--foil); font-weight: 600; }
.panel.bad { background: #FBEDEC; border-color: #E9B1AE; color: var(--signal); font-weight: 600; }
.panel.good { background: #E9F5F0; border-color: #A5D3C2; color: var(--cash); font-weight: 700; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat { background: #fff; padding: 14px 16px; color: inherit; display: block; }
a.stat:hover { background: #F8F9FD; text-decoration: none; }
.stat .k { color: var(--muted); font-size: 13.5px; } a.stat .k::after { content: " ›"; }
.stat .v { font: 700 30px/1.1 var(--display); margin-top: 4px; white-space: nowrap; }
.stat .hint { color: var(--muted); font-size: 12.5px; }
.good-t { color: var(--cash); } .bad-t { color: var(--signal); } .warn-t { color: var(--amber); } .gold-t { color: var(--foil-deep); } .info-t { color: var(--blue); }

/* Tables: wide content scrolls inside its own box, never the page */
.tablewrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th { text-align: left; background: var(--paper); color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 14px; white-space: nowrap; }
td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
th.num, td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.strong { font-weight: 600; } td.act { text-align: right; white-space: nowrap; }
tr.click { cursor: pointer; } tr.click:hover td { background: #F8F9FD; }
tr.total td { background: var(--paper); font-weight: 700; }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* Controls */
button, .btn { font: 600 15px Barlow, sans-serif; border-radius: 10px; padding: 10px 16px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); min-height: 42px; }
button:hover { background: #F8F9FD; }
button.primary { background: var(--blue); border-color: var(--blue); color: #fff; } button.primary:hover { background: #123AB0; }
button.cash { background: var(--cash); border-color: var(--cash); color: #fff; }
button.danger { color: var(--signal); } button.danger.primary { background: var(--signal); border-color: var(--signal); color: #fff; }
button.link { border: 0; background: none; color: var(--blue); padding: 6px 8px; min-height: 0; }
button.sm { padding: 6px 10px; min-height: 0; font-size: 14px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 13px; min-height: 0; font-weight: 500; font-size: 14px; color: var(--text); display: inline-block; }
.chip:hover { text-decoration: none; background: #F8F9FD; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.alert { border-color: var(--signal); color: var(--signal); font-weight: 700; }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
label.f small { font-weight: 400; display: block; margin-top: 3px; }
input, select, textarea { font: 400 15px Barlow, sans-serif; color: var(--text); width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
input[type=date] { width: auto; }
.pill { display: inline-block; border-radius: 20px; padding: 2px 9px; font-size: 12.5px; font-weight: 600; background: #EDF0F7; color: var(--text); white-space: nowrap; }
.pill.good { background: #E3F2EC; color: var(--cash); } .pill.warn { background: #FBF0DD; color: var(--amber); }
.pill.bad { background: #FAE6E5; color: var(--signal); } .pill.info { background: #E5EBFB; color: var(--blue); } .pill.gold { background: #FCF4D9; color: var(--foil-deep); }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.kv span { color: var(--muted); } .kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; } .kv.strong b { font-weight: 700; }
.big { font: 700 30px/1.1 var(--display); }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* Dialogs and toasts */
.backdrop { position: fixed; inset: 0; background: rgba(14, 27, 61, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 16px; padding: 22px; width: min(460px, 100%); max-height: 92vh; overflow-y: auto; }
.modal h3 { margin-bottom: 10px; } .modal .stack { margin-top: 12px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.err { color: var(--signal); font-weight: 600; }
.secret { background: var(--paper); border-radius: 12px; padding: 14px; text-align: center; font: 700 30px/1 var(--display); letter-spacing: 1px; user-select: all; }
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(520px, calc(100% - 28px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 6px 20px rgba(14, 27, 61, .25); }
.toast.error { background: var(--signal); }

/* Sign-in */
.login { display: grid; grid-template-columns: 5fr 4fr; min-height: 100%; }
.login .art { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.login .art h1 { font-size: 44px; color: #fff; } .login .art p { color: #AEB9D6; font-size: 16px; }
.login .formside { display: grid; place-items: center; padding: 32px; }
.login form { width: min(400px, 100%); } .login form h1 { margin-bottom: 6px; }
@media (max-width: 899px) { .login { display: block; } .login .art { display: none; } .login .formside { min-height: 100vh; } }

/* Ticket: rounded card with punched notches where the stub tears off */
.ticket { width: 340px; max-width: 100%; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.ticket .top { background: var(--ink); color: #fff; padding: 18px 22px; position: relative; }
.ticket .top.win { background: var(--foil); color: var(--ink); }
.ticket .top h3 { color: inherit; font-size: 30px; } .ticket .top .amount { font: 700 56px/1 var(--display); }
.ticket .top::before, .ticket .top::after { content: ""; position: absolute; bottom: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); z-index: 1; }
.ticket .top::before { left: -11px; } .ticket .top::after { right: -11px; }
.ticket .body { padding: 18px 22px 20px; border-top: 2px dashed var(--line); }
.ticket .pin { background: var(--foil); color: var(--ink); border-radius: 8px; padding: 4px 10px; font: 700 20px/1.2 var(--display); float: right; }
.ticket .qr { display: block; margin: 0 auto 10px; }
.ticket.void { opacity: .45; }
.art .ticket { transform: rotate(-2.5deg); }
.receipts { display: flex; flex-wrap: wrap; gap: 16px; }
.balls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ball { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font: 700 22px/1 var(--display); background: #fff; }
.ball.gold { background: var(--foil); border-color: var(--foil-deep); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.bars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: 11px; color: var(--muted); }
.bars .pair { display: flex; align-items: flex-end; gap: 2px; flex: 1; width: 100%; justify-content: center; }
.bars i { display: block; width: 12px; border-radius: 3px 3px 0 0; background: var(--blue); } .bars i.b { background: var(--foil); }

/* Busy buttons: disabled with a small spinner while their request runs */
button[aria-busy="true"] { position: relative; color: transparent !important; }
button[aria-busy="true"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  border: 2px solid var(--muted); border-top-color: transparent; animation: spin .7s linear infinite; }
button.primary[aria-busy="true"]::after, button.cash[aria-busy="true"]::after { border-color: #fff; border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Game types */
.pill.type-scratch { background: #EDF0F7; color: var(--ink); } .pill.type-pick_box { background: #FCF4D9; color: #8A6100; } .pill.type-lucky_spin { background: #E5EBFB; color: var(--blue); }
.typepick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.typecard { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; box-shadow: 0 1px 2px rgba(14, 27, 61, .04); transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 0; }
.typecard:hover:not(:disabled) { border-color: #B9C3DD; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 27, 61, .08); background: #fff; }
.typecard .ico { grid-row: span 2; font-size: 28px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--paper); }
.typecard b { font: 700 21px/1.1 var(--display); color: var(--ink); } .typecard small { color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.3; }
.typecard.on { border-color: var(--blue); background: linear-gradient(180deg, #F5F8FF, #fff); box-shadow: 0 0 0 3px rgba(23, 70, 209, .14), 0 8px 20px rgba(23, 70, 209, .12); }
.typecard.on .ico { background: var(--blue); }
.tier input { width: 160px; margin: 0; }
.gamehead { background: var(--ink); color: #fff; padding: 18px; }
.gamehead.type-pick_box { background: linear-gradient(135deg, #0E1B3D 55%, #5B3B00); } .gamehead.type-lucky_spin { background: linear-gradient(135deg, #0E1B3D 55%, #1746D1); }

/* Lucky Spin wheel */
.wheelwrap { display: grid; justify-items: center; gap: 12px; }
.wheel { max-width: 100%; height: auto; filter: drop-shadow(0 10px 22px rgba(14, 27, 61, .22)); }
.wheel .rot { transform-origin: 0 0; transform-box: view-box; }
.wlegend { justify-content: center; }
.spinbtn { font: 700 24px/1 var(--display); padding: 16px 34px; letter-spacing: .5px; border-radius: 40px; background: linear-gradient(180deg, #2457F0, #1239AE); border: 0;
  box-shadow: 0 8px 20px rgba(23, 70, 209, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }

/* Pick a Box: nine gift boxes */
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 420px; margin: 0 auto; width: 100%; }
.gbox { position: relative; aspect-ratio: 1; border: 0; border-radius: 16px; padding: 0; overflow: hidden; background: linear-gradient(160deg, #1B2B57, #0E1B3D);
  box-shadow: 0 6px 14px rgba(14, 27, 61, .25), inset 0 1px 0 rgba(255, 255, 255, .12); transition: transform .18s, opacity .3s, filter .3s; min-height: 0; }
.gbox:hover:not(:disabled) { transform: translateY(-3px) scale(1.02); background: linear-gradient(160deg, #22356A, #0E1B3D); }
.gbox .cube { position: absolute; left: 20%; right: 20%; top: 34%; bottom: 22%; border-radius: 6px; background: linear-gradient(90deg, transparent 42%, var(--foil) 42% 58%, transparent 58%), linear-gradient(160deg, #E9B420, #C79410); }
.gbox .lid { position: absolute; left: 15%; right: 15%; top: 24%; height: 14%; border-radius: 6px; background: linear-gradient(90deg, #F6D97A 42%, #FFF0B8 42% 58%, #F6D97A 58%); z-index: 2;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .15); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 10% 100%; }
.gbox .lid::before, .gbox .lid::after { content: ""; position: absolute; top: -60%; width: 26%; height: 70%; border: 4px solid #F6D97A; border-radius: 50% 50% 0 50%; }
.gbox .lid::before { left: 22%; transform: rotate(-20deg); } .gbox .lid::after { right: 22%; transform: rotate(110deg); }
.gbox .no { position: absolute; left: 0; right: 0; bottom: 6%; color: #D5DCEE; font: 700 14px/1 var(--display); letter-spacing: 1px; }
.gbox .prize { position: absolute; inset: 0; display: grid; place-items: center; font: 700 30px/1 var(--display); color: var(--ink); opacity: 0; transform: scale(.4); transition: opacity .4s .35s, transform .5s .35s cubic-bezier(.3, 1.6, .5, 1); z-index: 3; }
.gbox.open .lid { transform: translate(10%, -120%) rotate(-28deg); opacity: .0; transition: transform .7s, opacity .5s .3s; }
.gbox.open .cube { opacity: .25; }
.gbox.open .prize { opacity: 1; transform: none; }
.gbox.won { background: radial-gradient(circle at 50% 45%, #FFF6D6, #E9B420 75%); box-shadow: 0 0 0 4px var(--foil), 0 10px 26px rgba(233, 180, 32, .55); }
.gbox.lost { background: linear-gradient(160deg, #EDF0F7, #D5DCEE); }
.gbox.lost .prize { color: var(--muted); font-size: 20px; }
.gbox.open .no { color: var(--ink); }
.gbox.dim { opacity: .38; filter: grayscale(.6); }
.gbox:disabled { cursor: default; } .gbox.open:disabled { opacity: 1; }
.gbox.instant, .gbox.instant * { transition: none !important; }
@media (max-width: 420px) { .gbox .prize { font-size: 22px; } .gbox .no { font-size: 12px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .side, .topbar, .head .actions, .noprint, #toasts { display: none !important; }
  .shell { display: block; } body { background: #fff; } .main { padding: 0; }
  .ticket { break-inside: avoid; border-color: #999; } .ticket .top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.gbox.dim:hover { background: linear-gradient(160deg, #1B2B57, #0E1B3D); }
@media (max-width: 560px) { .tier { flex-wrap: nowrap; gap: 6px; } .tier input { flex: 1 1 0; min-width: 0; width: auto; } .tier button { flex: none; padding: 6px 8px; } }

/* ---- Boulpik games (Pick & Win, Lucky 5, Cash Match, Golden Key) ---- */
.bk-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.bk-num { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 700 22px/1 var(--display); padding: 0; cursor: pointer; }
.bk-num.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 10px rgba(23, 70, 209, .3); }
.bk-num:disabled:not(.on) { opacity: .45; cursor: not-allowed; }
.bk-count { color: var(--blue); }
.bk-balls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.bk-ball { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 24px/1 var(--display); background: var(--ink-soft); color: #AEB9D6; transition: all .3s; }
.bk-ball.mine, .bk-ball.shown { background: #fff; color: var(--ink); }
.bk-ball.print { background: #fff; color: var(--ink); border: 2px solid var(--ink); width: 44px; height: 44px; font-size: 20px; }
.bk-ball.hit { background: var(--foil); color: var(--ink); box-shadow: 0 0 0 4px rgba(233, 180, 32, .3); }
.bk .bk-board { background: var(--ink); color: #fff; border-radius: 18px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.bk-cap { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #AEB9D6; text-transform: uppercase; text-align: left; }
.bk-msg { font: 700 20px/1.2 var(--display); color: var(--foil); min-height: 1px; }
.bk-hint { color: #DCE3F5; margin: 0; }
.bk .muted { color: #AEB9D6; }
.bk-go { width: 100%; min-height: 58px; font: 700 24px/1 var(--display) !important; letter-spacing: 1.5px; background: var(--foil) !important; color: var(--ink) !important; border: 0 !important; }
.bk-syms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bk-sym { height: 110px; border: 0; border-radius: 18px; background: linear-gradient(160deg, #2C3F7A, #1B2B57); box-shadow: inset 0 0 0 2px #3A4E8F; color: #AEB9D6; font: 700 54px/1 var(--display); cursor: pointer; display: grid; place-items: center; padding: 0; }
.bk-sym.open { background: #fff; box-shadow: none; color: #5E6A85; cursor: default; animation: bkpop .35s; }
.bk-sym.s5 { background: var(--blue); color: #fff; font-size: 70px; }
.bk-sym.sg5 { background: var(--foil); color: var(--ink); font-size: 70px; box-shadow: 0 0 0 4px rgba(233, 180, 32, .35); }
.bk-sym.sbar { font-size: 30px; }
.bk-sym svg { width: 60%; height: 60%; }
.bk-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-box { height: 80px; border: 0; border-radius: 16px; background: linear-gradient(160deg, #2C3F7A, #1B2B57); box-shadow: inset 0 0 0 2px #3A4E8F; color: #AEB9D6; font: 700 32px/1 var(--display); cursor: pointer; padding: 0; }
.bk-box.open { background: #fff; color: var(--ink); box-shadow: none; cursor: default; animation: bkpop .3s; }
.bk-box.hit { background: var(--foil); box-shadow: 0 0 0 3px rgba(233, 180, 32, .45); }
.bk-bonus { width: 100%; min-height: 60px; border: 0; border-radius: 16px; background: var(--ink-soft); box-shadow: inset 0 0 0 2px #8A6100; color: var(--foil); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.bk-bonus span { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
.bk-bonus b { font: 700 24px/1 var(--display); }
.bk-bonus.open { background: #fff; color: var(--muted); box-shadow: none; cursor: default; }
.bk-bonus.win { background: var(--foil); color: var(--ink); }
.bk-chests { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bk-chest { width: calc((100% - 24px) / 3); max-width: 112px; height: 116px; border: 0; border-radius: 18px; background: #16244A; box-shadow: inset 0 0 0 2px #3A4E8F; color: #AEB9D6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: 12px; padding: 0; }
.bk-chest svg { width: 70%; }
.bk-chest.dim { opacity: .4; }
.bk-chest.open { background: var(--foil); color: var(--ink); box-shadow: 0 0 0 4px rgba(233, 180, 32, .35); font-size: 17px; animation: bkpop .4s; }
.bk-chest.open.empty { background: var(--ink-soft); color: #fff; box-shadow: none; }
.bk-chest:disabled { cursor: default; }
.bk-pay { border: 1px solid var(--ink-soft); border-radius: 14px; overflow: hidden; text-align: left; }
.bk-payh { padding: 8px 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #AEB9D6; text-transform: uppercase; background: #16244A; }
.bk-payr { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--ink-soft); color: #DCE3F5; }
.bk-payr.on { background: var(--foil); color: var(--ink); font-weight: 700; }
@keyframes bkpop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bk-sym.open, .bk-box.open, .bk-chest.open { animation: none; } .bk-ball { transition: none; } }
@media (max-width: 520px) {
  .bk-grid { gap: 6px; } .bk-num { min-height: 44px; font-size: 20px; }
  .bk-ball { width: 46px; height: 46px; font-size: 21px; }
  .bk-sym { height: 92px; font-size: 46px; } .bk-sym.s5, .bk-sym.sg5 { font-size: 58px; }
  .bk-box { height: 68px; font-size: 26px; }
  .bk-chest { height: 104px; }
}
@media print { .bk-ball.print { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
