/* ==========================================================================
   NexaBet — interfejs „arcade”: scena na górze, pod nią pulpit jak na maszynie (LCD WYGRANA, stawka − / +,
   okrągły SPIN, „Wypłaty”, „Auto”), bez panelu z lewej. Włączasz go na liście CFG.ARCADE_GAMES w js/config.js.
   Cyrkowa oprawa Still the Game (markiza, drabinka scatterów, ekran startowy, balony) jest na końcu pliku.
   ========================================================================== */

.nb-arc { display: flex; flex-direction: column; align-items: center; gap: 0; overflow-y: auto; min-height: 0; background: #080c1f; }
.nb-arc > .nb-gv__stagewrap { width: 100%; flex: 0 0 auto; overflow: visible; grid-template-rows: auto auto auto; }
.nb-arc .nb-gv__stage { padding: 4px 12px 8px; }
.nb-arc .nb-gv__msg { padding-bottom: 8px; }
.nb-arc__deck {
  --slot-a: #6d28d9; --slot-b: #0c0a2e;
  width: min(640px, calc(100% - 20px)); flex: none; margin: 0 auto 18px; padding: 14px 16px 12px; gap: 12px; position: relative;
  border: 3px solid #e5e7eb; border-radius: 26px; overflow: visible;
  background: linear-gradient(180deg, color-mix(in srgb, var(--slot-a) 38%, #000) 0%, color-mix(in srgb, var(--slot-b) 70%, #000) 100%);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .5), inset 0 14px 30px rgba(255, 255, 255, .06), 0 16px 40px rgba(0, 0, 0, .55);
}
.nb-arc__deck::after { content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px); }
.nb-arc__deck > * { position: relative; z-index: 1; }

/* Rzędy pulpitu */
.nb-arc__row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nb-arc__row--top { align-items: center; }
.nb-arc__row--ctl { justify-content: space-between; gap: 10px; }
.nb-arc__mid { flex: 1; min-width: 0; display: grid; gap: 4px; }
.nb-arc__hint { margin: 0; font-size: .9rem; font-weight: 600; color: #e5e7eb; }
.nb-arc .nb-autostat { margin: 0; font-size: .85rem; }
.nb-arc__bal { justify-content: flex-start; font-size: .8rem; color: #cbd5e1; }
.nb-arc__bal b { color: #fff; }
.nb-arc__bal.is-bonus b { color: #f0abfc; }

/* LCD „WYGRANA” */
.nb-lcd {
  flex: none; display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 124px; padding: 7px 14px 8px; border-radius: 14px;
  background: linear-gradient(180deg, #050505, #121212); border: 2px solid #4b5563; box-shadow: inset 0 0 14px rgba(0, 0, 0, .9), 0 0 0 1px #000;
}
.nb-lcd small { font-size: .62rem; letter-spacing: .22em; color: #9ca3af; font-weight: 800; }
.nb-lcd__val { font: 800 1.45rem/1.1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: #ff5a4d; text-shadow: 0 0 10px rgba(255, 70, 50, .75); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.nb-lcd i { font-style: normal; font-size: .62rem; color: #6b7280; font-weight: 800; margin-top: -1px; }
.nb-lcd.is-on .nb-lcd__val { animation: nb-lcd .5s ease-out; color: #ffd24d; text-shadow: 0 0 12px rgba(255, 200, 40, .8); }
@keyframes nb-lcd { from { transform: scale(1.18); } }

/* Stawka − [ 10 ] + */
.nb-arc__stepper {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .6);
}
.nb-arc__stepper .nb-gin {
  width: 62px; min-width: 0; padding: 0; text-align: center; font-size: 1.25rem; font-weight: 900; background: transparent; border: 0; color: #fff;
  font-variant-numeric: tabular-nums; box-shadow: none; min-height: 40px;
}
.nb-arc__stepper .nb-gin:focus-visible { outline: 2px solid var(--nb-cyan, #22d3ee); outline-offset: 0; border-radius: 10px; }
.nb-arc__step {
  width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; font-size: 1.5rem; font-weight: 900; line-height: 1; color: #fff;
  background: radial-gradient(circle at 35% 30%, #4b5563, #1f2937); border: 1px solid rgba(255, 255, 255, .2);
}
.nb-arc__step[data-edge="1"] { opacity: .4; }

/* Duży okrągły przycisk (SPIN / IDŹ / ODBIERZ) */
.nb-arc__actions { margin: 0; padding: 0; order: 0; display: grid; place-items: center; }
.nb-arc--slot .nb-arc__actions .nb-gbig {
  width: 100px; height: 100px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 0;
  font-size: 1.35rem; font-weight: 900; letter-spacing: .02em; color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, .55);
  background: radial-gradient(circle at 36% 28%, #ff8a80 0%, #e11d1d 38%, #8f0f0f 100%);
  box-shadow: 0 0 0 4px #e5e7eb, 0 0 0 8px #374151, 0 10px 26px rgba(255, 40, 40, .45), inset 0 -10px 16px rgba(0, 0, 0, .35), inset 0 10px 14px rgba(255, 255, 255, .3);
}
.nb-arc--slot .nb-arc__actions .nb-gbig:active:not(:disabled) { transform: scale(.96); }
.nb-arc--slot .nb-arc__actions .nb-gbig:disabled { opacity: 1; filter: saturate(.55) brightness(.7); }
.nb-arc--slot .nb-arc__actions .nb-gbig small { font-size: .56rem; letter-spacing: .14em; font-weight: 800; line-height: 1; }
.nb-arc--slot .nb-arc__actions .nb-gbig b { font-size: 1.9rem; line-height: 1; }
.nb-arc--slot .nb-arc__actions .nb-gbig.is-stop { background: radial-gradient(circle at 36% 28%, #fde68a, #f59e0b 45%, #92400e); color: #1c0f00; text-shadow: none; box-shadow: 0 0 0 4px #e5e7eb, 0 0 0 8px #374151, 0 10px 26px rgba(245, 158, 11, .45), inset 0 -10px 16px rgba(0, 0, 0, .25), inset 0 10px 14px rgba(255, 255, 255, .4); }

/* „Wypłaty” i „Auto” */
.nb-arc__side { display: grid; gap: 8px; justify-items: stretch; }
.nb-arc__pill, .nb-slot__ptbtn.nb-arc__pill {
  appearance: none; cursor: pointer; padding: 9px 16px; min-height: 40px; border-radius: 999px; font-weight: 800; font-size: .92rem; color: #fff;
  background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .22); white-space: nowrap;
}
.nb-arc__pill:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.nb-arc__pill[aria-expanded="true"] { background: rgba(255, 255, 255, .18); border-color: #fff; }
.nb-arc__autowrap { position: relative; display: grid; }
.nb-arc__automenu {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 4; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 8px; border-radius: 14px;
  background: #11162e; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 14px 34px rgba(0, 0, 0, .6); min-width: 150px;
}
.nb-arc__automenu .nb-arc__pill { padding: 8px 10px; min-height: 38px; text-align: center; }

.nb-arc__coin { text-align: center; font: 900 .72rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .4em; color: rgba(255, 255, 255, .32); text-shadow: 0 1px 0 rgba(0, 0, 0, .7); padding: 2px 0; }
.nb-arc__legal { margin: 2px 0 0; text-align: center; font-size: .78rem; color: #8e98bb; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; }
.nb-arc__legal a { color: #b4bddb; text-underline-offset: 3px; }
.nb-arc__snd { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; }
.nb-arc .nb-gv__note { margin: 0; text-align: center; font-size: .72rem; color: #94a3b8; }

/* ---------- Chicken Cross (układ jak na zdi2): trzy kafelki, komunikat, stawka, trzy poziomy, IDŹ / ODBIERZ ---------- */
.nb-arc--chicken .nb-arc__deck { border-color: #facc15; background: linear-gradient(180deg, #14182f, #0b0e1f); }
.nb-arc--chicken .nb-arc__deck::after { display: none; }
.nb-arc--chicken .nb-arc__stepper { justify-self: center; margin: 0 auto; }
.nb-arc--chicken .nb-arc__bal { justify-content: center; }
.nb-arc--chicken .nb-gf__top { display: none; }
.nb-arc--chicken .nb-seg2--ck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: none; border: 0; padding: 0; }
.nb-arc--chicken .nb-seg2--ck .nb-seg2__btn { min-height: 62px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: #94a3b8; }
.nb-arc--chicken .nb-seg2--ck .nb-seg2__btn[aria-pressed="true"] { background: linear-gradient(180deg, #fde047, #f59e0b); color: #2a1500; border-color: #fbbf24; box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.nb-arc--chicken .nb-ck__lv b { font-size: 1.02rem; }
.nb-arc--chicken .nb-ck__lv small { font-size: .7rem; opacity: .85; }
.nb-arc--chicken .nb-arc__actions { display: block; }
.nb-arc--chicken .nb-arc__actions .nb-gbig { min-height: 58px; border-radius: 16px; font-size: 1.12rem; font-weight: 900; letter-spacing: .02em; }
.nb-arc--chicken .nb-ck__stats { margin-top: 6px; }

/* ---------- Telefon ---------- */
@media (max-width: 560px) {
  .nb-arc__deck { padding: 12px 12px 10px; width: calc(100% - 14px); border-radius: 22px; }
  .nb-arc__row--top { gap: 10px; }
  .nb-lcd { min-width: 104px; padding: 6px 10px 7px; }
  .nb-lcd__val { font-size: 1.2rem; }
  .nb-arc__step { width: 36px; height: 36px; font-size: 1.3rem; }
  .nb-arc__stepper .nb-gin { width: 46px; font-size: 1.1rem; }
  .nb-arc--slot .nb-arc__actions .nb-gbig { width: 88px; height: 88px; font-size: 1.2rem; }
  .nb-arc__pill, .nb-slot__ptbtn.nb-arc__pill { padding: 8px 12px; font-size: .84rem; }
  .nb-arc__row--ctl { gap: 6px; }
}

/* ==========================================================================
   CYRK — Still the Game: markiza, drabinka scatterów, ekran startowy, balony, fajerwerki
   (wygląd własny: kolory i kształty z CSS + emoji z img/sym; bez cudzej grafiki)
   ========================================================================== */
.nb-slot--retro { background: radial-gradient(120% 80% at 50% 0%, rgba(30, 20, 70, .55), transparent 70%); }
.nb-retro__awning {
  height: 22px; margin: -6px -6px 2px; border-radius: 22px 22px 0 0;
  background:
    radial-gradient(circle at 18px 100%, #fef3c7 17px, transparent 18px) 0 100% / 36px 12px repeat-x,
    repeating-linear-gradient(90deg, #dc2626 0 18px, #fef3c7 18px 36px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .35); position: relative;
}
.nb-retro__awning::after { content: ""; position: absolute; left: 50%; top: -9px; width: 3px; height: 14px; background: #fde68a; }
.nb-ladder { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.nb-ladder li {
  display: flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 999px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(251, 191, 36, .35);
  color: #a8a29e; font-size: .78rem; font-weight: 900; transition: all .25s;
}
.nb-ladder li img { width: 20px; height: 20px; filter: grayscale(1) opacity(.5); transition: filter .25s; }
.nb-ladder li.is-lit { color: #1c1100; background: linear-gradient(180deg, #fde047, #f59e0b); border-color: #fde68a; box-shadow: 0 0 14px rgba(251, 191, 36, .75); transform: translateY(-1px); }
.nb-ladder li.is-lit img { filter: none; animation: nb-pop .45s ease-out; }
.nb-ladder.is-fs li { animation: nb-blink 1s ease-in-out infinite alternate; }
@keyframes nb-blink { from { box-shadow: 0 0 6px rgba(251, 191, 36, .5); } to { box-shadow: 0 0 18px rgba(251, 191, 36, 1); } }
@keyframes nb-pop { 0% { transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.4) rotate(8deg); } 100% { transform: none; } }
.nb-cell.is-pop { animation: nb-cellpop .6s ease-out; z-index: 2; }
@keyframes nb-cellpop { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-3deg); filter: drop-shadow(0 0 14px #fde047); } 100% { transform: scale(1); } }

/* Ekran startowy */
.nb-splash {
  position: absolute; inset: 0; z-index: 8; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; align-items: center; padding: 14px 10px 18px; cursor: pointer; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 20%, #5b1230 0%, #1b0a2e 55%, #0a0618 100%); animation: nb-fadein .35s ease-out;
}
.nb-splash.is-out { animation: nb-fadeout .3s ease-in forwards; }
@keyframes nb-fadein { from { opacity: 0; } }
@keyframes nb-fadeout { to { opacity: 0; } }
.nb-splash__tent {
  position: absolute; left: 50%; top: 4%; width: 74%; height: 62%; transform: translateX(-50%); opacity: .9;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(90deg, #b91c1c 0 8%, #fde68a 8% 16%);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .6));
}
.nb-splash__title { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; padding: 10px 18px; border-radius: 16px; background: rgba(12, 6, 22, .82); box-shadow: 0 0 0 2px #fbbf24, 0 0 26px rgba(251, 191, 36, .45); text-align: center; align-self: start; margin-top: 8px; }
.nb-splash__title small { letter-spacing: .3em; font-size: .64rem; color: #fde68a; font-weight: 800; }
.nb-splash__title b { font: 900 clamp(1.5rem, 6vw, 2.5rem)/1 Impact, "Arial Black", system-ui, sans-serif; font-style: italic; letter-spacing: .03em; background: linear-gradient(180deg, #fff7ae, #fbbf24 50%, #ea580c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nb-splash__title span { font-size: .72rem; color: #cbd5e1; }
.nb-splash__clown { position: relative; z-index: 1; width: clamp(110px, 30%, 190px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); animation: nb-clown 1.3s ease-in-out infinite alternate; }
@keyframes nb-clown { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-14px) rotate(6deg); } }
.nb-splash__side { position: absolute; bottom: 13%; z-index: 1; width: clamp(60px, 21%, 124px); object-fit: contain; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55)); animation: nb-side 1.5s ease-in-out infinite alternate; }
.nb-splash__side--l { left: 3%; }
.nb-splash__side--r { right: 3%; animation-delay: -.75s; }
@keyframes nb-side { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }
.nb-splash__go { position: relative; z-index: 1; appearance: none; border: 0; cursor: pointer; padding: 11px 28px; border-radius: 999px; font-weight: 900; font-size: 1rem; color: #2a1500; background: linear-gradient(180deg, #fde047, #f59e0b); box-shadow: 0 6px 18px rgba(245, 158, 11, .5); animation: nb-throb 1.1s ease-in-out infinite alternate; }
@keyframes nb-throb { to { transform: scale(1.06); } }

/* Balony i fajerwerki */
.nb-balloons { z-index: 9; }
.nb-balloon { position: absolute; bottom: -60px; will-change: transform; }
.nb-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.nb-fsintro--retro .nb-fsintro__mult { display: grid; justify-items: center; font: 900 clamp(2.2rem, 9vw, 3.6rem)/1 Impact, "Arial Black", sans-serif; font-style: italic; color: #fde047; text-shadow: 0 3px 0 #b45309, 0 0 22px rgba(251, 191, 36, .8); animation: nb-throb .7s ease-in-out infinite alternate; }
.nb-fsintro--retro .nb-fsintro__mult small { font: 800 .7rem/1 system-ui, sans-serif; letter-spacing: .24em; color: #fff; text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .nb-splash__clown, .nb-splash__side, .nb-splash__go, .nb-ladder.is-fs li, .nb-fsintro--retro .nb-fsintro__mult { animation: none; }
}

/* ---------- Rozmiar maszyny: scena + pulpit mają się zmieścić w oknie (przy niskim ekranie okno się przewija) ---------- */
.nb-arc { --arc-h: min(92dvh, 860px); --arc-chrome: 392px; }   /* v7.1: +32 px na wiersz ostatnich wyników */
.nb-arc--slot .nb-slot { width: clamp(280px, calc((var(--arc-h) - var(--arc-chrome)) * var(--ar)), min(900px, 100%)); min-width: 0; gap: 8px; }
.nb-arc--slot .nb-slot--retro { --arc-chrome: 552px; }
.nb-arc--slot .nb-slot__name { display: none; }
.nb-arc--slot .nb-slot__top { min-height: 0; }
.nb-arc .nb-gv__stagewrap { position: relative; }
/* v7.1: ostatnie wyniki we własnym wierszu NAD planszą (wcześniej leżały na planszy i zasłaniały nagłówek gry / bębny) */
.nb-arc .nb-gv__hist { position: static; min-height: 32px; padding: 6px 10px 2px; }
.nb-arc .nb-hpill { padding: 3px 9px; font-size: .72rem; }
.nb-arc--slot .nb-retro { padding: 12px 14px 10px; gap: 8px; }
.nb-arc--slot .nb-retro__marquee { padding: 6px 12px; }
.nb-arc--slot .nb-retro__marquee b { font-size: clamp(1.2rem, 3.2vw, 1.8rem); }

@media (min-width: 761px) {
  /* komputer: LCD · podpowiedź · stawka · SPIN · Wypłaty/Auto w jednym rzędzie */
  .nb-arc--slot .nb-arc__deck { width: min(780px, calc(100% - 20px)); display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; column-gap: 14px; row-gap: 6px; padding: 12px 18px 10px; }
  .nb-arc--slot .nb-arc__row { display: contents; }
  .nb-arc--slot .nb-arc__deck > .nb-arc__controls, .nb-arc--slot .nb-arc__deck > .nb-arc__coin, .nb-arc--slot .nb-arc__deck > .nb-arc__legal { grid-column: 1 / -1; }
  .nb-arc--slot .nb-arc__deck > .nb-arc__controls { margin-top: -2px; }
}
@media (max-width: 760px) {
  .nb-arc { --arc-h: 100dvh; --arc-chrome: 502px; }
  .nb-arc--slot .nb-slot--retro { --arc-chrome: 672px; }
  .nb-arc--slot .nb-retro__marquee span { display: none; }
  .nb-arc--slot .nb-retro__awning { height: 14px; }
  .nb-arc--slot .nb-bulbs { transform: scale(.85); }
}

/* Chicken Cross w pulpicie: niższa jezdnia, żeby pulpit z przyciskami mieścił się bez przewijania */
.nb-arc--chicken .nb-ck { width: min(860px, 100%); gap: 8px; }
.nb-arc--chicken .nb-ck__track { height: clamp(190px, 26vh, 250px); }
.nb-arc--chicken .nb-ck__head span { display: none; }
.nb-arc--chicken .nb-ck__head b { font-size: clamp(1.1rem, 2.6vw, 1.5rem); }
.nb-arc--chicken .nb-arc__deck { width: min(560px, calc(100% - 20px)); gap: 10px; padding: 10px 14px 10px; margin-bottom: 12px; }
.nb-arc--chicken .nb-arc__stepper .nb-gin { min-height: 34px; }
.nb-arc--chicken .nb-arc__step { width: 36px; height: 36px; }
@media (max-width: 760px) { .nb-arc--chicken .nb-ck__track { height: 210px; } }
