/* Gamble (module "gamble", 2.110.0): window (public/js/modules/gamble/gamble-panel.js), floating in the room
   (gamble-room.js), tile in the lobby, effects (gamble-fx.js). Loaded only while the module is on (src/routes/pages.js). */

/* 2.112.0 (David): square like the reactions button beside it, the symbol in the middle */
body:not(.tv) .altar .altar-gamble { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
  border-radius: var(--r); background: transparent; border: 1px solid rgba(180, 120, 232, .25); font-size: 15px; line-height: 1;
  letter-spacing: 0; }   /* .btn's .12em sat after the symbol and pushed it left (David 2026-11-21) */
body:not(.tv) .altar .altar-gamble[hidden] { display: none; }
body:not(.tv) .altar .altar-gamble:hover, body:not(.tv) .altar .altar-gamble[aria-expanded="true"] { border-color: var(--k-violet); }

.gmb { position: relative; display: flex; flex-direction: column; min-width: 0; }
.gmb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--k-line); user-select: none; }
/* 2.123.0: four tabs - when they and the balance do not fit in one line, the balance wraps below instead of covering a tab */
.gmb-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 0 auto; max-width: 100%; }   /* 2.125.2: wraps only when one line is wider than the window */
.gmb-tab { background: none; border: 1px solid transparent; color: var(--k-muted); padding: 4px 8px; border-radius: var(--r); cursor: pointer; font: inherit; }
.gmb-tab[aria-selected="true"] { color: var(--k-gold); border-color: var(--k-line); background: var(--k-tile); }
.gmb-bal { color: var(--k-teal); font: 12px var(--data); white-space: nowrap; margin-left: auto; }
.gmb-icon { background: none; border: 0; color: var(--k-muted); cursor: pointer; font-size: 15px; padding: 2px 4px; }
/* volume (2.124.0, gamble-panel.js): popover under the speaker, anchored right so it stays inside the window */
.gmb-volwrap { position: relative; display: inline-flex; }
.gmb-vol { position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: var(--k-tile); border: 1px solid var(--k-line); border-radius: var(--r);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5); white-space: nowrap; }
.gmb-vol[hidden] { display: none; }
.gmb .gmb-vol input[type=range] { width: 140px; accent-color: var(--k-gold); }
.gmb-volpct { font: 12px var(--data); color: var(--k-muted); min-width: 5ch; text-align: right; font-variant-numeric: tabular-nums; }
.gmb-body { padding: 12px; }
.gmb-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.gmb-small { color: var(--k-muted); font-size: 12px; }
.gmb-push { margin-left: auto; text-align: right; }
.gmb-go { flex: 1; font-weight: 700; letter-spacing: .04em; }

/* slots */
/* jackpot counter (2.116.0): live via the socket (gamble:pot) */
.gmb-jp { position: relative; text-align: center; padding: 5px 8px 6px; margin-bottom: 8px; border-radius: 5px; border: 1px solid var(--k-gold-dim);
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 195, 122, .2), rgba(23, 13, 34, .9) 70%); overflow: hidden; }
.gmb-jp-label { font: 700 10px/1 var(--display); letter-spacing: .32em; color: var(--k-gold); opacity: .85; }
.gmb-jp-num { font: 700 24px/1.15 var(--data); color: var(--k-gold); text-shadow: 0 0 10px rgba(232, 195, 122, .55); }
.gmb-jp-num small { font-size: 13px; opacity: .8; margin-left: 3px; }
.gmb-jp-how { font-size: 10.5px; color: var(--k-muted); }
.gmb-jp.tick .gmb-jp-num { animation: gmb-jp-tick .5s ease; }
@keyframes gmb-jp-tick { 40% { color: #fff3d6; text-shadow: 0 0 16px rgba(232, 195, 122, .9); } }
.gmb-jp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 190, .16) 50%, transparent 60%);
  transform: translateX(-100%); animation: gmb-jp-shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes gmb-jp-shine { 60%, 100% { transform: translateX(100%); } }
.gmb-jp.won { border-color: var(--k-gold); box-shadow: 0 0 24px rgba(232, 195, 122, .6); }
.gmb-board { position: relative; padding-right: 18px; }   /* room for the row tags */
.gmb-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; background: #0c0714; padding: 6px; border-radius: var(--r); border: 1px solid var(--k-line); }
.gmb-cell { height: 36px; display: grid; place-items: center; font-size: 22px; background: var(--k-tile); border-radius: 2px; }
.gmb-cell.spin { animation: gmb-blur .12s linear infinite; }
.gmb-cell.win { background: #3a2a10; box-shadow: inset 0 0 0 2px var(--k-gold); animation: gmb-pop .5s ease 3; }
.gmb-lines { position: absolute; inset: 6px; width: calc(100% - 30px); height: calc(100% - 12px); pointer-events: none; }
.gmb-lines polyline { fill: none; stroke: var(--k-gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .8;
  stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: gmb-draw .6s ease forwards; filter: drop-shadow(0 0 6px var(--k-gold)); }
/* every line faint grey over the cells, the middle one gold (2.116.0; the gold middle line since 2.113.0) */
.gmb-paths { position: absolute; inset: 6px; width: calc(100% - 30px); height: calc(100% - 12px); pointer-events: none; overflow: visible; }
.gmb-paths polyline { fill: none; stroke: rgba(196, 184, 220, .2); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gmb-paths .gmb-path-mid { stroke: var(--k-gold); stroke-opacity: .42; stroke-width: 2.4; filter: drop-shadow(0 0 3px rgba(232, 195, 122, .7)); }
.gmb-tags { position: absolute; right: 0; top: 6px; bottom: 6px; width: 18px; pointer-events: none; }
.gmb-tags span { position: absolute; right: 0; transform: translateY(-50%); font: 700 9px/1 var(--data); color: var(--k-muted); opacity: .55; }
.gmb-tags .gmb-tag-mid { color: var(--k-gold); opacity: 1; font-size: 10px; text-shadow: 0 0 4px rgba(232, 195, 122, .8); }
.gmb-cell { position: relative; }
.gmb-cell.gmb-joker::after { content: '+1'; position: absolute; right: 1px; top: -1px; font: 700 9px/1 var(--data); color: var(--k-teal); }
/* thirst hint (admin switch, off by default): the middle line a dull ember, slow flicker */
.gmb-thirsty .gmb-paths .gmb-path-mid { stroke: #8a3b2a; filter: drop-shadow(0 0 3px rgba(138, 59, 42, .5)); animation: gmb-ember 3.2s ease-in-out infinite; }
.gmb-thirsty .gmb-tags .gmb-tag-mid { color: #b0603f; text-shadow: none; }
@keyframes gmb-ember { 0%, 100% { stroke-opacity: .42; } 45% { stroke-opacity: .2; } 55% { stroke-opacity: .46; } }
/* bets, autospin (2.116.0) */
.gmb-bets { display: inline-flex; flex: none; border: 1px solid var(--k-line); border-radius: var(--r); overflow: hidden; }
.gmb-bets[hidden] { display: none; }
.gmb-bets button { background: none; border: 0; color: var(--k-muted); font: 600 12px/1 var(--data); padding: 9px 7px; cursor: pointer; }
.gmb-bets button + button { border-left: 1px solid var(--k-line); }
.gmb-bets button[aria-pressed="true"] { background: rgba(232, 195, 122, .14); color: var(--k-gold); }
.gmb-go-free { border-color: var(--k-teal); color: #d7fff0; background: linear-gradient(180deg, rgba(63, 240, 176, .22), rgba(29, 143, 107, .22)); }
.gmb-auto { flex: none; padding-left: 9px; padding-right: 9px; }
.gmb-auto[hidden] { display: none; }
/* Auto row under Spin (2.121.1): a narrow budget field (what is left of it while it runs), Auto takes the rest. `.gmb` in
   front so it beats voodoo.css' input[type=number] { width: 100% } - that rule made the field fill the row (2.121.0). */
.gmb-autorow { margin-top: 8px; align-items: stretch; }
.gmb-autorow .gmb-auto { flex: 1; }
.gmb .gmb-budget { flex: 0 0 116px; width: 116px; min-width: 0; padding: 8px 10px; font: 600 12px/1 var(--data); color: var(--k-gold);
  background: none; border: 1px solid var(--k-line); border-radius: var(--r); }
.gmb .gmb-budget::placeholder { color: var(--k-muted); }
.gmb .gmb-budget:disabled { opacity: .85; }
.gmb-auto[aria-pressed="true"] { border-color: var(--k-teal); color: var(--k-teal); background: rgba(63, 240, 176, .1); }
.gmb-auto small { font-size: 10px; opacity: .8; }
.gmb-extra { font-size: 12px; color: var(--k-muted); font-weight: 400; }
/* jackpot win: gold overlay over the slots pane */
[data-pane="slots"] { position: relative; }
.gmb-jpwin { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 5;
  background: radial-gradient(circle at 50% 45%, rgba(232, 195, 122, .35), rgba(8, 5, 13, .85) 70%); }
.gmb-jpwin[hidden] { display: none; }
.gmb-jpwin b { display: block; font: 900 26px/1.1 var(--display); color: var(--k-gold); letter-spacing: .12em; text-shadow: 0 0 18px rgba(232, 195, 122, .9); }
.gmb-jpwin span { font: 700 22px var(--data); color: #fff3d6; }
.gmb-result { min-height: 24px; margin-top: 8px; text-align: center; font-weight: 700; color: var(--k-gold); font-size: 18px; }

/* gacha */
/* capsule machine (2.112.0, gacha-machine.js): layers on top of each other in 400 x 520, scaled - at most 300 px high */
.gmb-stage { position: relative; width: 100%; max-width: 231px; aspect-ratio: 400 / 520; margin: 4px auto 0; overflow: hidden; border-radius: 6px;
  background: radial-gradient(ellipse at 50% 35%, #21143a 0%, #120b1c 55%, #08050d 100%); }
.gmb-stage > .gmb-mw { position: absolute; inset: 0; transform-origin: 50% 96%; }
.gmb-stage svg, .gmb-stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.gmb-stage .gmb-brand { font-family: var(--display); }
.gmb-flash-in { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.gmb-label { position: absolute; left: 0; right: 0; top: 70%; text-align: center; pointer-events: none; opacity: 0; }
.gmb-label-tier { font: 700 10px var(--display); letter-spacing: .32em; text-transform: uppercase; }
.gmb-label-name { margin-top: 2px; font: 700 15px var(--display); letter-spacing: .03em; color: var(--bone); text-shadow: 0 2px 8px #000; }
.gmb-lt-common { color: #b3aac2; }
.gmb-lt-uncommon { color: var(--k-teal); }
.gmb-lt-rare { color: var(--k-violet); }
.gmb-lt-legendary { font-size: 12px; color: transparent; background: linear-gradient(90deg, #a07a2c, #ffe7a3, #a07a2c) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; animation: gmb-shimmer 2.4s linear infinite; }
.gmb-caps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.gmb-cap { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 10px; min-width: 92px; border: 1px solid var(--k-line);
  border-radius: var(--r); background: var(--k-tile); text-align: center; animation: gmb-open .4s ease; }
.gmb-cap img { width: 36px; height: 36px; }
/* preview on the card (2.112.2, totem-preview.js): cat, Dammberman sprite, name chip, emoji - about 44 px high */
.gmb-cap-pic { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.gmb-cap-pic .totem-cat { zoom: .5; }
.gmb-cap-pic .totem-bomber { width: 44px; height: 44px; }
.gmb-cap-pic .totem-food { font-size: 28px; line-height: 1; }
.gmb-cap-pic .who-chip { font-size: .72rem; }
/* the prize in the machine as an HTML preview, moved/scaled by gacha-machine.js itemAt */
.gmb-prize { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; transform-origin: 50% 50%; }
.gmb-prize .totem-prev { display: block; }
.gmb-prize .totem-food { font-size: 40px; line-height: 1; }
.gmb-prize .who-chip { white-space: nowrap; }
.gmb-cap small { color: var(--k-muted); }
.gmb-t-common { border-color: #6b6378; }
.gmb-t-uncommon { border-color: var(--k-teal); }
.gmb-t-rare { border-color: var(--k-violet); box-shadow: 0 0 14px rgba(180, 120, 232, .5); }
.gmb-t-legendary { border-color: var(--k-gold); box-shadow: 0 0 22px rgba(232, 195, 122, .7); }
.gmb-skip { display: block; margin: 8px auto 0; }

/* floating window in the room */
/* 2.125.2: 470 px instead of 340 (the German tabs were 4 px too wide - the window scrolled sideways); the scrollbar
   gutter is kept, so a tall tab (Overbrew) does not narrow the content when the scrollbar appears */
.gmb-float { position: fixed; right: 24px; bottom: 96px; z-index: 60; width: min(470px, calc(100vw - 16px)); scrollbar-gutter: stable; background: var(--k-panel-2); border: 1px solid var(--k-gold);
  border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6), var(--glow-loa); max-height: calc(100vh - 16px); overflow: auto; }
.gmb-float .gmb-head { cursor: move; }
@media (max-width: 700px) {
  .gmb-float { left: 8px; right: 8px; top: 8px; bottom: auto; width: auto; }
  .gmb-float .gmb-head { cursor: default; }
}

/* effects */
.gmb-shake { animation: gmb-shake .45s ease; }
.gmb-banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font: 700 42px var(--display); color: var(--k-gold);
  text-shadow: 0 0 18px var(--k-gold), 0 2px 0 #000; pointer-events: none; animation: gmb-stamp 2.2s ease forwards; z-index: 2; white-space: nowrap; }
.gmb-spark { position: fixed; z-index: 70; color: var(--k-gold); pointer-events: none; font-size: 16px; animation: gmb-spark 1.1s ease-out forwards; }
.gmb-rain { position: fixed; top: -60px; z-index: 70; pointer-events: none; animation: gmb-fall 2.6s linear forwards; }
.gmb-flash { position: fixed; inset: 0; z-index: 69; pointer-events: none; background: rgba(255, 255, 255, .55); animation: gmb-flash .9s ease forwards; }
.gmb-flash-gold { background: rgba(232, 195, 122, .5); }
.gmb-bad { color: var(--blood); font-weight: 700; }

/* admin section (public/js/modules/gamble/admin-gamble.js) */
.gmb-adm-syms { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.gmb-adm-sym { display: flex; gap: 4px; align-items: center; }
.gmb-adm-sub { margin: 12px 0 4px; font: 600 13px/1.2 var(--display); color: var(--k-gold); }
.gmb-adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.gmb-adm-pot { color: var(--k-gold); font-family: var(--data); }   /* jackpot pot (2.116.0) */
.gmb-adm-potrow .gmb-num { display: inline-block; width: 140px; margin: 0 6px; }
.gmb-adm-sum { margin-top: 14px; }   /* 2.117.4: estimate below the folded parts */
.gmb-num { width: 80px; }

@keyframes gmb-blur { 50% { transform: translateY(4px); filter: blur(1.5px); } }
@keyframes gmb-pop { 50% { transform: scale(1.15); } }
@keyframes gmb-draw { to { stroke-dashoffset: 0; } }
@keyframes gmb-shimmer { to { background-position: -200% 0; } }
@keyframes gmb-open { from { transform: scale(.3); opacity: 0; } }
@keyframes gmb-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes gmb-stamp { 0% { transform: translate(-50%, -50%) scale(3); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes gmb-spark { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes gmb-fall { to { transform: translateY(calc(100vh + 120px)) rotate(360deg); } }
@keyframes gmb-flash { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .gmb-cell.spin, .gmb-cell.win, .gmb-shake, .gmb-cap, .gmb-lt-legendary { animation: none; }
  .gmb-lt-legendary { color: var(--k-gold); background: none; }
  .gmb-banner { animation: none; opacity: 1; }
  .gmb-lines polyline { animation: none; stroke-dashoffset: 0; }
  .gmb-thirsty .gmb-paths .gmb-path-mid, .gmb-jp::after, .gmb-jp.tick .gmb-jp-num { animation: none; }
}

/* machines of the slots tab (2.120.0): Kwaba slot | Cauldron of Kwaba */
.gmb-machines { display: flex; border: 1px solid var(--k-line); border-radius: var(--r); overflow: hidden; margin-bottom: 10px; }
.gmb-machines button { flex: 1; background: none; border: 0; color: var(--k-muted); font: 600 12px/1 var(--display); padding: 7px 4px; cursor: pointer; }
.gmb-machines button + button { border-left: 1px solid var(--k-line); }
.gmb-machines button[aria-pressed="true"] { background: rgba(232, 195, 122, .14); color: var(--k-gold); }
[data-machine][hidden] { display: none; }
/* Hexenspiele (2.126.0, witch-games.js): the selector reuses .gmb-machines */
.wtg [data-wgame][hidden] { display: none; }

/* Cauldron of Kwaba (2.120.0, cauldron-machine.js): 5 reels × 3 rows, strips spin inside the reels */
.cdn { position: relative; --ch: 48px; }
.cdn-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cdn-title { font: 900 15px/1 var(--display); letter-spacing: .06em; color: var(--k-gold); text-shadow: 0 0 10px rgba(63, 240, 176, .35); white-space: nowrap; }
.cdn-title i { font-weight: 400; font-size: 11px; color: var(--k-teal); }
.cdn-fg { flex: 1; text-align: right; font: 600 11px var(--data); color: var(--k-teal); white-space: nowrap; }
.cdn-fg .cdn-e, .cdn-fg .cdn-l { font-size: 14px; }
.cdn-frame { position: relative; padding: 6px; border-radius: 6px; border: 1px solid var(--k-gold-dim);
  background: radial-gradient(ellipse at 50% 120%, rgba(47, 217, 157, .18), #0c0714 65%); transition: border-color .4s, box-shadow .4s; }
.cdn-free .cdn-frame { border-color: var(--k-teal); box-shadow: 0 0 18px rgba(63, 240, 176, .35), inset 0 0 30px rgba(63, 240, 176, .12); }
.cdn-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cdn-reel { position: relative; height: calc(var(--ch) * 3); overflow: hidden; border-radius: 3px; background: linear-gradient(180deg, #120a1c, #1f1530 50%, #120a1c);
  box-shadow: inset 0 8px 10px -6px #000, inset 0 -8px 10px -6px #000; transition: box-shadow .3s; }
.cdn-reel.tease { box-shadow: 0 0 0 2px var(--k-teal), 0 0 16px rgba(63, 240, 176, .7); animation: cdn-tease .5s ease-in-out infinite alternate; }
.cdn-strip { will-change: transform; }
.cdn-strip.cdn-blur { filter: blur(1.2px) brightness(.85); }
.cdn-cell { height: var(--ch); display: grid; place-items: center; }
.cdn-cell.win { animation: cdn-win .6s ease-in-out 3; }
.cdn-cell.win, .cdn-cell.scat { background: radial-gradient(circle, rgba(232, 195, 122, .3), transparent 70%); }
.cdn-cell.scat .cdn-pot { animation: cdn-win .5s ease-in-out 4; }
.cdn-e { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 2px #000); }
.cdn-l { font: 900 26px/1 var(--display); -webkit-text-stroke: 1px rgba(0, 0, 0, .6); filter: drop-shadow(0 2px 2px #000); }
.cdn-l5 { color: #ff6b5e; }
.cdn-l6 { color: #5eb6ff; }
.cdn-l7 { color: #c58bff; }
.cdn-l8 { color: #5ee8a0; }
.cdn-l9 { color: #ffb84d; }
/* 2.122.0: the card symbols are runes (SVG, colour = currentColor), as big as the letters were */
.cdn-l svg { display: block; width: 1em; height: 1em; overflow: visible; }
/* 2.122.0: the global pot's counter under the Cauldron's title */
.cdn .gmb-jp { margin: 6px 0 8px; }
.cdn-pot { display: block; width: 38px; height: 38px; filter: drop-shadow(0 0 6px rgba(63, 240, 176, .55)); }
.cdn-pot svg { width: 100%; height: 100%; display: block; }
.cdn-bub { animation: cdn-bub 1.6s ease-in infinite; transform-box: fill-box; }
.cdn-bub + .cdn-bub { animation-delay: .7s; }
.cdn-col { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; border-radius: 3px; border: 2px solid var(--k-gold);
  background: radial-gradient(ellipse, rgba(232, 195, 122, .35), rgba(23, 13, 34, .92) 75%); box-shadow: 0 0 16px rgba(232, 195, 122, .6); }
.cdn-col .cdn-e { font-size: 54px; }
.cdn-col .cdn-l { font-size: 50px; }
.cdn-lines { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); pointer-events: none; z-index: 3; }
.cdn-lines polyline { fill: none; stroke: var(--k-gold); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .85;
  vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px var(--k-gold)); }
.cdn-lines.all polyline { stroke-width: 2.5; opacity: .5; filter: none; }
.cdn-msg { min-height: 22px; margin-top: 6px; text-align: center; font-size: 13px; color: var(--k-text); display: flex; gap: 4px; align-items: center; justify-content: center; }
.cdn-msg .cdn-e, .cdn-msg .cdn-l { font-size: 16px; }
.cdn-msg .cdn-pot, .cdn-fg .cdn-pot, .cdn-pay .cdn-pot { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.cdn-msg b { color: var(--k-gold); }
.cdn-gamble { border-color: #c0392b; background: linear-gradient(180deg, rgba(192, 57, 43, .35), rgba(20, 20, 20, .5)); }
/* overlays over the reels: free games, the symbol draw, the summary, the gamble card, the pay table */
.cdn-ov { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; border-radius: 6px; background: radial-gradient(circle at 50% 45%, rgba(18, 58, 46, .94), rgba(8, 5, 13, .96) 72%); cursor: pointer; }
.cdn-ov[hidden] { display: none; }
.cdn-big { font: 900 26px/1.1 var(--display); color: var(--k-gold); letter-spacing: .08em; text-shadow: 0 0 18px rgba(232, 195, 122, .9); animation: cdn-in .5s ease-out; }
.cdn-sub { font: 600 12px var(--display); color: var(--k-teal); letter-spacing: .14em; text-transform: uppercase; }
.cdn-pick { display: grid; place-items: center; gap: 4px; }
.cdn-pick-pot { width: 64px; height: 64px; }
.cdn-pick-pot svg { width: 100%; height: 100%; }
.cdn-pick-sym { width: 70px; height: 70px; display: grid; place-items: center; border: 2px solid var(--k-gold-dim); border-radius: 8px; background: rgba(12, 7, 20, .85); }
.cdn-pick-sym .cdn-e { font-size: 44px; }
.cdn-pick-sym .cdn-l { font-size: 40px; }
.cdn-pick-sym.picked { border-color: var(--k-gold); box-shadow: 0 0 22px rgba(232, 195, 122, .8); animation: cdn-in .45s ease-out; }
.cdn-pick-txt { font: 600 11px var(--display); color: var(--k-teal); letter-spacing: .14em; text-transform: uppercase; }
.cdn-gmb { display: flex; align-items: center; gap: 14px; cursor: default; }
.cdn-gmb-card, .cdn-gmb-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cdn-gmb-btns { display: flex; gap: 6px; }
.cdn-hist { display: flex; gap: 3px; min-height: 16px; font-size: 12px; }
.cdn-card { width: 54px; height: 76px; border-radius: 6px; border: 2px solid var(--k-gold); display: grid; place-items: center; font-size: 40px;
  background: repeating-linear-gradient(45deg, #b3261e 0 6px, #7a140f 6px 12px); animation: cdn-back .5s steps(1) infinite; }
.cdn-card.cdn-s-hearts, .cdn-card.cdn-s-diamonds, .cdn-card.cdn-s-clubs, .cdn-card.cdn-s-spades { background: #f4efe6; animation: cdn-flip .35s ease-out; }
.cdn-s-hearts, .cdn-s-diamonds { color: #d2271c; }
.cdn-s-clubs, .cdn-s-spades { color: #111; }
.cdn-hist span { background: #f4efe6; border-radius: 3px; padding: 0 3px; }
.cdn-gmb-info { font-size: 12px; color: var(--k-muted); }
.cdn-gmb-info b { color: var(--k-gold); }
.cdn-red { border-color: #c0392b; color: #ffb3ab; }
.cdn-black { border-color: #555; color: #ddd; background: #151515; }
.cdn-pay { padding: 8px; font-size: 11.5px; color: var(--k-text); max-height: 100%; overflow: auto; }
.cdn-pay table { margin: 0 auto 6px; border-collapse: collapse; }
.cdn-pay td { padding: 1px 6px; text-align: left; white-space: nowrap; color: var(--k-muted); }
.cdn-pay td b { color: var(--k-gold); }
.cdn-pay .cdn-e, .cdn-pay .cdn-l { font-size: 15px; }
.cdn-pay p { margin: 4px 0; }
@keyframes cdn-tease { to { box-shadow: 0 0 0 2px var(--k-teal), 0 0 26px rgba(63, 240, 176, 1); } }
@keyframes cdn-win { 50% { transform: scale(1.14); } }
@keyframes cdn-bub { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }
@keyframes cdn-in { from { transform: scale(2.2); opacity: 0; } }
@keyframes cdn-back { 50% { background: repeating-linear-gradient(45deg, #222 0 6px, #0d0d0d 6px 12px); } }
@keyframes cdn-flip { from { transform: rotateY(90deg); } }
@media (prefers-reduced-motion: reduce) {
  .cdn-reel.tease, .cdn-cell.win, .cdn-cell.scat .cdn-pot, .cdn-bub, .cdn-big, .cdn-pick-sym.picked, .cdn-card { animation: none; }
}

/* Overbrew (2.123.0, overbrew-machine.js): one SVG scene seen from above - the witch stands behind the cauldron and stirs
   (only arms and ladle move), the foam head rises out of the opening. --ovb-lvl (0…1) = foam height, --ovb-c = brew
   colour, data-heat 0-4 = how wild bubbles, ladle and flames go; .brewing / .over / .won = the phases */
.ovb { display: grid; gap: 8px; outline: none; }
.ovb-scene { position: relative; border: 1px solid var(--k-line); border-radius: var(--r); overflow: hidden;
  background: radial-gradient(ellipse at 50% 92%, #3a1d10 0%, #140d1c 60%); }
.ovb-svg { display: block; width: 100%; height: auto; max-height: 380px; }
/* the witch of the loading screen (public/kessel.html): her colours sit in the SVG, the right arm turns around the shoulder */
.ovb-dip { fill: var(--ovb-c, #34d27a); filter: brightness(1.8); }
.ovb-stir { animation: ovb-stir var(--ovb-stir, 1.6s) ease-in-out infinite; transform-box: view-box; transform-origin: 184px 132px; }
@keyframes ovb-stir { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.ovb-blink { animation: ovb-blink 4.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ovb-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
/* her mood (2.125.2, data-mood 0-4 while brewing, then win or shock): brows rise, eyes widen, the mouth opens, the cheeks
   redden and the head wobbles faster; from 3 sparkles, at 4 (and on a win) star eyes */
.ovb[data-mood="1"] { --ovb-eye: 1.08; --ovb-brow: 1; --ovb-blush: .45; --ovb-tilt: 2; --ovb-bob: 1.3s; }
.ovb[data-mood="2"] { --ovb-eye: 1.15; --ovb-brow: 2; --ovb-blush: .55; --ovb-tilt: 3; --ovb-bob: .9s; }
.ovb[data-mood="3"] { --ovb-eye: 1.22; --ovb-brow: 3; --ovb-blush: .7; --ovb-tilt: 4; --ovb-bob: .6s; }
.ovb[data-mood="4"], .ovb[data-mood="win"] { --ovb-eye: 1.25; --ovb-brow: 3.5; --ovb-blush: .85; --ovb-tilt: 5; --ovb-bob: .4s; }
.ovb[data-mood="shock"] { --ovb-eye: 1.35; --ovb-brow: 3; --ovb-blush: .1; }
.ovb-noggin { transform-box: view-box; transform-origin: 150px 122px; }
.ovb.brewing:not([data-mood="0"]) .ovb-noggin { animation: ovb-bob var(--ovb-bob, 1.3s) ease-in-out infinite alternate; }
.ovb[data-mood="win"] .ovb-noggin { animation: ovb-bob .4s ease-in-out 6 alternate; }
@keyframes ovb-bob { from { transform: rotate(calc(var(--ovb-tilt, 0) * -1deg)); } to { transform: rotate(calc(var(--ovb-tilt, 0) * 1deg)) translateY(-1.5px); } }
.ovb-eye { transform-box: fill-box; transform-origin: center; transform: scale(var(--ovb-eye, 1)); transition: transform .3s; }
.ovb-stareyes path { fill: #f3c64a; stroke: #8a5a10; stroke-width: .6; }
.ovb-brows { fill: none; stroke: #5a2f7a; stroke-width: 2.2; stroke-linecap: round; transform: translateY(calc(var(--ovb-brow, 0) * -1px)); transition: transform .3s; }
.ovb-blush { fill: #d5486b; opacity: var(--ovb-blush, .35); transition: opacity .3s; }
.ovb-mouth path:not(.ovb-open) { fill: none; stroke: #8a4b3a; stroke-width: 2; stroke-linecap: round; }
.ovb-mouth .ovb-open { fill: #6b2234; stroke: #8a4b3a; stroke-width: 1.2; }
.ovb-mouth .ovb-teeth { stroke: #fff; }
.ovb-mouth > *, .ovb-stareyes, .ovb-spark { display: none; }
.ovb:not([data-mood]) .ovb-m0, .ovb[data-mood="0"] .ovb-m0, .ovb[data-mood="1"] .ovb-m1, .ovb[data-mood="2"] .ovb-m2,
.ovb[data-mood="3"] .ovb-m3, .ovb[data-mood="4"] .ovb-m3, .ovb[data-mood="win"] .ovb-m3, .ovb[data-mood="shock"] .ovb-mo,
.ovb[data-mood="4"] .ovb-stareyes, .ovb[data-mood="win"] .ovb-stareyes,
.ovb[data-mood="3"] .ovb-spark:not(.ovb-spark2), .ovb[data-mood="4"] .ovb-spark, .ovb[data-mood="win"] .ovb-spark { display: inline; }
.ovb[data-mood="4"] .ovb-eye, .ovb[data-mood="win"] .ovb-eye { display: none; }
.ovb-spark { fill: #ffe6a0; transform-box: fill-box; transform-origin: center; animation: ovb-twinkle .7s ease-in-out infinite alternate; }
@keyframes ovb-twinkle { from { transform: scale(.4) rotate(0deg); opacity: .4; } to { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.ovb-pot { fill: url(#ovbPotG); stroke: #e8c37a; stroke-width: 2; }
.ovb-in { fill: #0b0710; }
.ovb-ring { fill: none; stroke: #e8c37a; stroke-width: 3; }
.ovb-front { fill: none; stroke: #e8c37a; stroke-width: 5; stroke-linecap: round; }
.ovb-leg { fill: #120c19; stroke: #e8c37a; stroke-width: 1.5; }
.ovb-brew, .ovb-head, .ovb-foam path { fill: var(--ovb-c, #34d27a); }
.ovb-brew-top { fill: var(--ovb-c, #34d27a); filter: brightness(1.25); }
.ovb-head, .ovb-foam { filter: brightness(1.7) saturate(.6); }
.ovb-head circle { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(calc(.55 + var(--ovb-lvl, 0) * 1.7)); }
.ovb.over .ovb-head circle { transform: scale(2.5); transition: transform .4s ease-out; }
.ovb-head { transform-box: fill-box; transform-origin: 50% 100%; animation: ovb-boil var(--ovb-bub, 1.6s) ease-in-out infinite alternate; }
@keyframes ovb-boil { from { transform: scale(1, .94); } to { transform: scale(1.02, 1.08); } }
.ovb-bub { fill: var(--ovb-c, #34d27a); filter: brightness(1.8); transform-box: fill-box; transform-origin: center;
  animation: ovb-bub var(--ovb-bub, 1.6s) ease-in infinite; }
@keyframes ovb-bub { 0% { transform: translateY(6px) scale(.4); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-16px) scale(1.25); opacity: 0; } }
.ovb-pops { transform: translateY(calc(var(--ovb-lvl, 0) * -44px)); }   /* ride the top of the foam head */
.ovb-b2 { animation-delay: -.5s; }
.ovb-b3 { animation-delay: -1s; }
.ovb-b4 { animation-delay: -.3s; }
.ovb-b5 { animation-delay: -.8s; }
.ovb-b6 { animation-delay: -1.2s; }
.ovb-b7 { animation-delay: -.6s; }
.ovb-b4, .ovb-b5, .ovb-b6, .ovb-b7 { display: none; }
.ovb[data-heat="1"] .ovb-b4, .ovb[data-heat="2"] .ovb-b4, .ovb[data-heat="2"] .ovb-b5, .ovb[data-heat="3"] .ovb-b4, .ovb[data-heat="3"] .ovb-b5,
.ovb[data-heat="3"] .ovb-b6, .ovb[data-heat="4"] .ovb-b4, .ovb[data-heat="4"] .ovb-b5, .ovb[data-heat="4"] .ovb-b6, .ovb[data-heat="4"] .ovb-b7 { display: inline; }
/* fire (2.124.1): glow, five flames in three layers on crossed logs, embers; it grows with the brew */
.ovb-fire { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(calc(1 + var(--ovb-lvl, 0) * .3)); transition: transform .4s; }
.ovb-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: ovb-flame var(--ovb-fire, .6s) ease-in-out infinite alternate; }
@keyframes ovb-flame { to { transform: scale(.92, 1.15) skewX(4deg); } }
.ovb-fl1 { fill: #e8521c; }
.ovb-fl2 { fill: #ff9a2e; }
.ovb-fl3 { fill: #ffe6a0; }
.ovb-glow { animation: ovb-glow calc(var(--ovb-fire, .6s) * 2) ease-in-out infinite alternate; opacity: calc(.6 + var(--ovb-lvl, 0) * .4); }
@keyframes ovb-glow { to { transform: scale(1.04); filter: brightness(1.2); } }
.ovb-ember { fill: #ffc861; transform-box: fill-box; transform-origin: center; animation: ovb-ember calc(var(--ovb-fire, .6s) * 3.5) ease-out infinite; }
@keyframes ovb-ember { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(5px, -34px) scale(.4); opacity: 0; } }
.ovb-logs path { stroke: #5a3420; stroke-width: 7; stroke-linecap: round; }
.ovb-logs circle { fill: #8a5a34; stroke: #3a2014; stroke-width: 1; }
/* cauldron detail (2.124.1): shaded body, gold band with rivets, a sheen on the left, the Kwaba sigil, feet */
.ovb-foot { fill: #120c19; stroke: #e8c37a; stroke-width: 1.5; }
.ovb-band { fill: none; stroke: #e8c37a; stroke-width: 3; opacity: .8; }
.ovb-band2 { fill: none; stroke: #e8c37a; stroke-width: 1.2; opacity: .45; }
.ovb-rivet { fill: #f3d99a; stroke: #6b5426; stroke-width: .8; }
.ovb-sheen { fill: none; stroke: #fff; stroke-opacity: .1; stroke-width: 7; stroke-linecap: round; }
.ovb-sigil { fill: none; stroke: #e8c37a; stroke-opacity: .55; stroke-width: 1.5; }
.ovb-steam path { fill: none; stroke: #cfc7dd; stroke-width: 4; stroke-linecap: round; opacity: calc(.06 + var(--ovb-lvl, 0) * .45); }
.ovb[data-heat="1"] { --ovb-bub: 1.25s; --ovb-stir: 1.25s; --ovb-fire: .5s; }
.ovb[data-heat="2"] { --ovb-bub: .95s; --ovb-stir: .95s; --ovb-fire: .42s; }
.ovb[data-heat="3"] { --ovb-bub: .65s; --ovb-stir: .65s; --ovb-fire: .34s; }
.ovb[data-heat="4"] { --ovb-bub: .42s; --ovb-stir: .42s; --ovb-fire: .26s; }
.ovb:not(.brewing) .ovb-stir, .ovb.won .ovb-bub, .ovb.won .ovb-head { animation-play-state: paused; }
.ovb-foam { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }
.ovb.over .ovb-foam { animation: ovb-spill .9s ease-out forwards; }
@keyframes ovb-spill { 0% { opacity: 0; transform: scaleY(.1); } 30% { opacity: 1; } 100% { opacity: 1; transform: scaleY(1); } }
.ovb.over .ovb-witch { animation: ovb-jump .5s ease-out; }
@keyframes ovb-jump { 40% { transform: translateY(-12px); } }
.ovb-mult { position: absolute; top: 10px; left: 12px; font: 700 1.9rem/1 var(--data); color: var(--k-gold);
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 8px #000; }
.ovb.over .ovb-mult { color: #ff5a5a; }
.ovb-say { position: absolute; top: 46px; left: 12px; right: 12px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.ovb.over .ovb-say { color: #ff7a7a; }
.ovb.won .ovb-say { color: var(--k-gold); }
.ovb-hist { display: flex; flex-wrap: wrap; gap: 4px; }
.ovb-hist:empty { display: none; }
.ovb-chip { font: 600 11px/1.4 var(--data); padding: 1px 6px; border: 1px solid var(--k-line); border-radius: 999px; font-variant-numeric: tabular-nums; }
.ovb-lo { color: #ff7a7a; }
.ovb-mid { color: #f2c94c; }
.ovb-hi { color: var(--k-gold); border-color: var(--k-gold); }
.ovb-target { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--k-muted); }
.ovb-target input { width: 6em; }
.ovb .gmb-row, .rnf .gmb-row { flex-wrap: wrap; }
.ovb-go { position: relative; overflow: hidden; padding-block: 12px; font-size: 1.05rem; justify-content: center; text-align: center; }
.ovb-go.ovb-stop { background: #8b1e2d; border-color: #c0394b; }
.ovb-ring { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--ovb-ready, 0) * 100%); background: var(--k-gold); }
.ovb-how { font-size: .85rem; color: var(--k-muted); }
.ovb-how p { margin: 4px 0 0; }
@media (prefers-reduced-motion: reduce) { .ovb, .ovb * { animation: none !important; } }

/* Runenfeld (2.126.0, runen-machine.js): 5 × 5 runestones. .safe = turned and safe, .boom = the cursed pick; after the
   round the others turn over half-transparent (.ghost), curses with a skull (.cursed); .shake on a curse. History chips
   and the help fold are Overbrew's (.ovb-hist, .ovb-chip, .ovb-how). */
.rnf { display: grid; gap: 8px; outline: none; }
.rnf-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rnf-mult { font: 700 1.9rem/1 var(--data); color: var(--k-gold); font-variant-numeric: tabular-nums; }
.rnf-next { font: 12px var(--data); color: var(--k-muted); }
/* Runenfeld look (2.140.0): stone sprites and frame cut from a reference sheet (public/img/runen, tools/runen-sprites.py), the glow
   is CSS; the floors are an own drawing (tools/runen-floors.py, 2.141.0). The level changes the field: mild = clean stones
   on dirt, wild = mossy stones on roots and moss, doom = darkened stones on bones. */
.rnf-board { --floor: url('/img/runen/floor-mild.jpg');
  --h0: url('/img/runen/clean-0.png'); --h1: url('/img/runen/clean-1.png'); --h2: url('/img/runen/clean-2.png');
  --h3: url('/img/runen/clean-3.png'); --h4: url('/img/runen/clean-4.png'); --h5: url('/img/runen/clean-5.png');
  --s0: url('/img/runen/safe-0.png'); --s1: url('/img/runen/safe-1.png'); --s2: url('/img/runen/safe-2.png');
  --s3: url('/img/runen/safe-3.png'); --s4: url('/img/runen/safe-4.png'); --s5: url('/img/runen/safe-5.png');
  --skull: url('/img/runen/skull.png'); --skull-ghost: url('/img/runen/skull-ghost.png');
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 8px;
  /* the stone frame of the reference sheet (a 9-slice: 52 px corner blocks of the half-size picture), the floor lies inside it */
  border: 25px solid transparent; border-image: url('/img/runen/frame.png') 52 / 25px stretch;
  background: linear-gradient(rgba(10, 6, 14, .1), rgba(10, 6, 14, .1)), var(--floor) center / cover no-repeat, #120c19;
  background-origin: padding-box; background-clip: padding-box; box-shadow: inset 0 0 22px rgba(0, 0, 0, .5); }
.rnf-board[data-level="wild"] { --floor: url('/img/runen/floor-wild.jpg');
  --h0: url('/img/runen/moss-0.png'); --h1: url('/img/runen/moss-1.png'); --h2: url('/img/runen/moss-2.png');
  --h3: url('/img/runen/moss-3.png'); --h4: url('/img/runen/moss-4.png'); --h5: url('/img/runen/moss-0.png'); }
.rnf-board[data-level="doom"] { --floor: url('/img/runen/floor-doom.jpg'); }
.rnf-board[data-level="doom"] .rnf-stone:not(.safe, .boom, .cursed) { filter: brightness(.78) saturate(.8) drop-shadow(0 3px 2px rgba(0, 0, 0, .7)); }
.rnf-stone { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  background: var(--hid) center / contain no-repeat; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .6)); transition: transform .2s, filter .2s; }
.rnf-stone[data-v="0"] { --hid: var(--h0); --safe: var(--s0); }
.rnf-stone[data-v="1"] { --hid: var(--h1); --safe: var(--s1); }
.rnf-stone[data-v="2"] { --hid: var(--h2); --safe: var(--s2); }
.rnf-stone[data-v="3"] { --hid: var(--h3); --safe: var(--s3); }
.rnf-stone[data-v="4"] { --hid: var(--h4); --safe: var(--s4); }
.rnf-stone[data-v="5"] { --hid: var(--h5); --safe: var(--s5); }
.rnf-stone:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.15) drop-shadow(0 0 6px rgba(180, 120, 232, .7)); }
.rnf-stone:disabled { cursor: default; }
.rnf-stone.safe { background-image: var(--safe); animation: rnf-flip .35s ease-out, rnf-glow 2.4s ease-in-out .35s infinite;
  filter: drop-shadow(0 0 4px #34d27a) drop-shadow(0 0 11px rgba(52, 210, 122, .55)); }
@keyframes rnf-glow { 50% { filter: drop-shadow(0 0 6px #34d27a) drop-shadow(0 0 17px rgba(52, 210, 122, .8)); } }
.rnf-stone.boom { background-image: var(--skull); animation: rnf-flip .35s ease-out;
  filter: drop-shadow(0 0 7px #b03ad0) drop-shadow(0 0 16px rgba(176, 58, 208, .7)); }
.rnf-stone.cursed { background-image: var(--skull-ghost); filter: drop-shadow(0 0 5px rgba(176, 58, 208, .55)); }
.rnf-stone.boom::before { content: ''; position: absolute; inset: -20%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(180, 120, 232, .55), transparent 70%); animation: rnf-smoke .8s ease-out forwards; }
.rnf-stone.ghost { opacity: .8; }   /* after the round: the stones not picked, still clearly there */
@keyframes rnf-flip { from { transform: rotateY(90deg); } }
@keyframes rnf-smoke { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.rnf.shake .rnf-board { animation: rnf-shake .4s; }
@keyframes rnf-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.rnf-levels { display: inline-flex; flex: 1; border: 1px solid var(--k-line); border-radius: var(--r); overflow: hidden; }
.rnf-levels button { flex: 1; background: none; border: 0; color: var(--k-muted); font: 600 12px/1.2 var(--data); padding: 6px 4px; cursor: pointer; }
.rnf-levels button + button { border-left: 1px solid var(--k-line); }
.rnf-levels button[aria-pressed="true"] { background: rgba(232, 195, 122, .14); color: var(--k-gold); }
.rnf-levels small { display: block; font-size: 10px; opacity: .8; }
.rnf-go { padding-block: 12px; font-size: 1.05rem; justify-content: center; text-align: center; }
@media (prefers-reduced-motion: reduce) { .rnf, .rnf *, .rnf *::before { animation: none !important; transition: none !important; } }

/* Tarot-Orakel (2.127.0, tarot-machine.js; pixel-art table and cards since 2.140.0): the table picture with two candles, the current card big, the deck face down;
   on the card .flip when it turns, .good after a right guess or a cash-out, .bad after a wrong one; .dim on the cloth
   lets the candles flicker out. History chips and the help fold are Overbrew's. */
.trt { display: grid; gap: 8px; outline: none; }
.trt-mult { font: 700 1.9rem/1 var(--data); color: var(--k-gold); font-variant-numeric: tabular-nums; }
.trt-cloth { position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--k-line); border-radius: var(--r); background: #0e0906 url('/img/tarot/table.gif') center / cover no-repeat; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { .trt-cloth { background-image: url('/img/tarot/table-still.png'); } }
/* the face-up card is the star (big, left of the circle), the deck lies small at the right (2.141.0) */
.trt-cur, .trt-deck { position: absolute; display: flex; }
.trt-cur { left: 25%; top: 5%; height: 90%; transform: rotate(-5deg); }   /* the bottom leans toward the middle of the table */
.trt-deck { right: 25%; top: 27%; height: 42%; }
.trt-card { position: relative; display: flex; height: 100%; aspect-ratio: 230 / 405; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .7)); transition: filter .3s; }
.trt-card img { display: block; height: 100%; width: auto; image-rendering: pixelated; user-select: none; }
/* the value of the card (Roman numeral) on top of the face, as in the first version */
.trt-num { position: absolute; top: 5.5%; left: 50%; transform: translateX(-50%); padding: 1px 7px; border: 1px solid #ffc169; border-radius: 3px;
  background: #0b0b0d; color: #fff; font: 700 13px/1.25 var(--display); letter-spacing: .08em; white-space: nowrap; pointer-events: none; }
.trt-deck .trt-card { transform: rotate(4deg); filter: drop-shadow(3px 3px 0 #0d0814) drop-shadow(6px 6px 0 #0a0610) drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
.trt-cur .trt-card.flip { animation: trt-flip .4s ease-out; }
@keyframes trt-flip { from { transform: rotateY(90deg); } }
.trt-cur .trt-card.good { filter: drop-shadow(0 0 7px rgba(255, 205, 110, .95)) drop-shadow(0 0 2px rgba(255, 205, 110, .8)); }
.trt-cur .trt-card.bad { filter: grayscale(.5) brightness(.65) drop-shadow(0 0 7px rgba(176, 58, 208, .8)); }
/* a wrong guess: the room goes dark for a moment (the candles of the picture flicker out) */
.trt-cloth::after { content: ''; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.trt-cloth.dim::after { animation: trt-out 1.2s ease-out; }
@keyframes trt-out { from { opacity: .65; } to { opacity: 0; } }
.trt-credit { margin: 2px 0 0; font: 11px/1.4 var(--data); color: var(--k-muted); }
.trt-credit a { color: inherit; text-decoration: underline; }
.trt-row { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.trt-mini { font: 600 11px/1.6 var(--display); color: #e8c37a; padding: 0 6px; border: 1px solid rgba(232, 195, 122, .5); border-radius: 4px; background: #1c1226; }
.trt .gmb-row { flex-wrap: wrap; }
.trt-guess .btn { flex: 1; justify-content: center; text-align: center; }
.trt-guess small { display: block; font: 600 11px/1.2 var(--data); opacity: .85; }
.trt-guess[hidden], .trt-swap[hidden] { display: none; }
.trt-go { padding-block: 12px; font-size: 1.05rem; justify-content: center; text-align: center; }
@media (prefers-reduced-motion: reduce) { .trt, .trt *, .trt *::before { animation: none !important; transition: none !important; } }

/* Player overview (2.123.0, gamble-players.js): Top and Flop cards, then everyone; profit like the win display
   (.gmb-result), reddish when down */
.gpl { display: grid; gap: 10px; }
.gpl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.gpl-card { display: grid; justify-items: center; gap: 2px; padding: 10px 8px; border: 1px solid var(--k-line); border-radius: var(--r);
  background: var(--k-tile); text-align: center; min-width: 0; }
.gpl-top { border-color: var(--k-gold); }
.gpl-flop { border-color: #8b2e3f; }
.gpl-label { font: 600 11px/1.2 var(--data); letter-spacing: .1em; text-transform: uppercase; color: var(--k-muted); }
.gpl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; min-width: 0; }
.gpl-card .gpl-name { font-size: 16px; }
.gpl-card .gpl-profit { font-size: 20px; }
.gpl-sub { font-size: 12px; color: var(--k-muted); }
.gpl-profit { font-weight: 700; color: var(--k-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gpl-neg { color: #ff6b6b; }
.gpl-zero { color: var(--k-muted); }
.gpl-list { border: 1px solid var(--k-line); border-radius: var(--r); overflow: hidden; }
.gpl-rows { max-height: 360px; overflow-y: auto; }
.gpl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 7.5em; gap: 10px; align-items: center; padding: 6px 10px; }
.gpl-rows .gpl-row:nth-child(even) { background: rgba(255, 255, 255, .03); }
.gpl-row > :last-child { text-align: right; }
.gpl-head { font: 600 11px/1.2 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--k-muted); border-bottom: 1px solid var(--k-line); }
.gpl-plays { text-align: right; font-variant-numeric: tabular-nums; color: var(--k-muted); min-width: 3em; }
.gpl-me { background: rgba(232, 195, 122, .12) !important; box-shadow: inset 3px 0 0 var(--k-gold); }
