/* Bankomat — the winner's bonus round (public/games/bankomat.js). A veil over the game's screen: a cash machine. */
.bk-veil {
  position: absolute; inset: 0; z-index: 30; display: flex; align-items: stretch; justify-content: center;
  padding: 10px 12px 14px; background: radial-gradient(120% 80% at 50% 0%, #2c3a4e 0%, #12161f 70%);
  animation: bk-in .45s ease-out both;
}
.bk-veil[hidden] { display: none; }
@keyframes bk-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.bk {
  width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 8px; min-height: 0;
  color: #eef3f8; font-family: var(--ui, system-ui, sans-serif);
}
.bk-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border-radius: 12px; background: linear-gradient(180deg, #3d4f68, #26324a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 8px rgba(0,0,0,.4);
}
.bk-logo { font-weight: 900; letter-spacing: .14em; font-size: 15px; color: #9be7c4; text-shadow: 0 0 8px rgba(110,240,180,.45); }
.bk-cur { font-size: 13px; color: #ffd98a; font-weight: 700; }
.bk-say { margin: 0; min-height: 2.6em; text-align: center; font-size: 16px; font-weight: 700; line-height: 1.3; display: flex; align-items: center; justify-content: center; }
.bk-clock { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.bk-clock i { display: block; height: 100%; background: #9be7c4; transform-origin: left; transition: transform .12s linear; }
.bk-clock.off i { opacity: 0; }
.bk-stage { flex: 1; min-height: 150px; display: flex; align-items: center; justify-content: center; position: relative; }

/* chase: the pyramid of prize fields */
.bk-pyr { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.bk-row { display: flex; gap: 4px; justify-content: center; }
.bk-f {
  --s: min(11.5vw, 44px); width: var(--s); height: var(--s); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #2f3d55; border: 2px solid #4a5d7c; color: #dfe9f5; font-size: calc(var(--s) * .36); font-weight: 800; transition: background .08s, box-shadow .08s;
}
.bk-f.zero { color: #7d8aa0; }
.bk-f.top { border-color: #ffc65c; color: #ffd98a; }
.bk-f.hit { background: #3e5a48; border-color: #9be7c4; }
.bk-f.lit { background: #ffd166; border-color: #fff3c4; color: #241a2d; box-shadow: 0 0 14px 4px rgba(255,209,102,.75); }

/* wheel */
.bk-wheel { position: relative; display: flex; justify-content: center; }
.bk-wheel canvas { display: block; border-radius: 50%; box-shadow: 0 6px 22px rgba(0,0,0,.5); }
.bk-ptr { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0;
  border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid #fff3c4; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.bk-hub { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #ffd166; border: 3px solid #fff3c4; }

/* the three results */
.bk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px;
  background: #0b1a12; border: 1px solid #2c4a3a; font-family: ui-monospace, Consolas, monospace;
}
.bk-slot small { color: #6f9a85; font-size: 11px; }
.bk-slot b { font-size: 19px; color: #6f9a85; }
.bk-slot.on b { color: #9be7c4; text-shadow: 0 0 6px rgba(110,240,180,.5); animation: bk-pop .4s ease-out; }
.bk-slot.zero b { color: #e98b8b; text-shadow: none; }
@keyframes bk-pop { from { transform: scale(1.5); } to { transform: none; } }
.bk-total { margin: 0; text-align: center; font-size: 17px; animation: bk-pop .5s ease-out; }
.bk-total b { display: block; font-size: 30px; color: #ffd98a; text-shadow: 0 0 12px rgba(255,200,90,.6); }
.bk-total small { display: block; font-size: 12px; color: #aab8c8; margin-top: 2px; }
.bk-go { min-height: 52px; font-size: 19px; font-weight: 900; letter-spacing: .06em; }
.bk-ready .bk-go { animation: bk-pulse 1.1s ease-in-out infinite; }
@keyframes bk-pulse { 50% { transform: scale(1.04); } }
.bk-sum { margin: 6px 0 0; font-size: 14px; }
@media (max-height: 600px) { .bk-f { --s: min(9.5vw, 34px); } .bk-say { min-height: 2em; font-size: 15px; } .bk-total b { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .bk-veil, .bk-slot.on b, .bk-total, .bk-ready .bk-go { animation: none; } }

/* cards (Riskuj!, provisional: public/games/riskuj.js registers the kind) */
.bk-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; width: 100%; }
.bk-card {
  aspect-ratio: 3 / 4; border-radius: 8px; border: 2px solid #4a5d7c; background: linear-gradient(160deg, #2b47b3, #0f1a52);
  color: #ffd98a; font: 800 clamp(13px, 4.2vw, 20px) var(--ui, system-ui); display: flex; align-items: center; justify-content: center; padding: 0; cursor: default;
}
.bk-pickable .bk-card:not(:disabled) { cursor: pointer; border-color: #ffd166; box-shadow: 0 0 8px rgba(255,209,102,.35); }
.bk-card.turning { animation: bk-shake .5s ease-in-out infinite; border-color: #fff3c4; }
.bk-card.open { background: #fbf6ea; color: #241a2d; border-color: #ffc65c; animation: bk-flip .45s ease-out; }
.bk-card.open.zero { background: #3a2a2a; color: #e98b8b; }
.bk-card:disabled:not(.open) { opacity: .85; }
@keyframes bk-shake { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes bk-flip { from { transform: rotateY(90deg); } to { transform: none; } }
