/* Free Spins Zone - pagina unui slot */
html, body { height: 100%; }
body.slot-page { display: flex; flex-direction: column; min-height: 100%; background: var(--g-bg, #041E42); color: var(--sp-text); overflow: hidden; }
:root[data-theme="light"] body.slot-page { background: #FFFFFF; --title-grad: linear-gradient(180deg, #041E42, #0060A9); }
.slot-page .top {
  --sp-text: #fff; --sp-chip: rgba(255,255,255,.14); --sp-chip-line: rgba(255,255,255,.28); --sp-box: rgba(3,20,45,.35); --sp-glow: rgba(0,0,0,.4);
  color: #fff;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; position: relative; z-index: 5;
  background: var(--head-bg);
}
.slot-page .back { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--sp-chip); border: 1px solid var(--sp-chip-line); font-weight: 800; font-size: 14px; }
.slot-page .gname { font: 800 16px "Cinzel", sans-serif; text-shadow: 0 2px 10px var(--sp-glow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.slot-page .top .sp { flex: 1; }
.slot-page .balance-chip { background: var(--sp-box); border-color: var(--sp-chip-line); color: var(--sp-text); }
.slot-page .icon-btn { background: var(--sp-chip); border-color: var(--sp-chip-line); color: var(--sp-text); flex: none; }

.stage-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 6px 12px; position: relative; }
.stage { position: relative; width: min(100%, var(--stage-max, 860px)); max-height: 100%; aspect-ratio: var(--ratio, 5/3.35); display: flex; flex-direction: column; }
.stage-title { text-align: center; font: 800 clamp(18px, 3vw, 30px) "Cinzel", sans-serif; letter-spacing: .02em; margin-bottom: 6px; text-shadow: var(--sp-title-shadow); background: var(--title-grad, linear-gradient(180deg, #fff, #F0D48A)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.frame {
  position: relative; flex: 1; min-height: 0; border-radius: 22px; padding: 10px;
  background: var(--frame-bg, linear-gradient(180deg, #F0D48A, #b06e00));
  box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.4);
}
.reels {
  position: relative; height: 100%; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 6px;
  border-radius: 14px; padding: 6px; background: var(--reels-bg, #060E1C); overflow: hidden;
  box-shadow: inset 0 6px 20px rgba(0,0,0,.7);
}
.reel { position: relative; overflow: hidden; border-radius: 10px; background: var(--reel-bg, linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02) 50%, rgba(255,255,255,.06))); }
.strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.strip.blur .cell .sym { filter: blur(1.6px); }
.cell { height: var(--ch, 100px); display: grid; place-items: center; position: relative; }
.cell .sym { width: 92%; height: 92%; display: grid; place-items: center; font-size: calc(var(--ch, 100px) * .58); line-height: 1; border-radius: 12px; transition: transform .25s, opacity .25s, filter .25s; position: relative; }
.cell .lbl { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); font: 800 calc(var(--ch, 100px) * .15) "Cinzel", sans-serif; background: rgba(0,0,0,.65); color: #ffe36e; padding: 2px 7px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.reels.dim .cell .sym { opacity: .32; filter: saturate(.4); }
.reels.dim .cell.win .sym, .cell.win .sym { opacity: 1; filter: none; animation: winPulse .9s ease-in-out infinite; }
.cell.win::after { content: ""; position: absolute; inset: 3%; border-radius: 12px; border: 3px solid var(--win-c, #F0D48A); box-shadow: 0 0 18px var(--win-c, #F0D48A), inset 0 0 14px var(--win-c, #F0D48A); pointer-events: none; }
@keyframes winPulse { 50% { transform: scale(1.1); } }
.reel.anticip { box-shadow: inset 0 0 0 3px #F0D48A, 0 0 26px #F0D48A; animation: antic .5s ease-in-out infinite alternate; }
@keyframes antic { to { box-shadow: inset 0 0 0 3px #fff6d6, 0 0 34px #fff6d6; } }
.lines-svg { position: absolute; inset: 6px; pointer-events: none; z-index: 3; overflow: visible; }
.lines-svg polyline { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px currentColor); }

/* bara de jos */
.controls {
  position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 10px 16px 14px; background: var(--sp-ctl);
  border-top: 1px solid var(--sp-ctl-line);
}
.ctl-left, .ctl-right { display: flex; align-items: center; gap: 10px; }
.ctl-right { justify-content: flex-end; }
.box { background: var(--sp-box); border: 1px solid var(--sp-chip-line); border-radius: 14px; padding: 6px 12px; min-width: 110px; text-align: center; }
.box small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.box b { font: 800 17px "Cinzel", sans-serif; white-space: nowrap; }
.box.win b { color: var(--sp-win); }
.betctl { display: flex; align-items: center; gap: 6px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sp-chip-line); background: var(--sp-chip); color: var(--sp-text); font: 800 18px "Cinzel", sans-serif; display: grid; place-items: center; }
.round:disabled, .spin:disabled, .pill-btn:disabled { opacity: .4; cursor: not-allowed; }
.spin {
  width: 84px; height: 84px; border-radius: 50%; border: 0; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #FFF1C2, #F5BE3A 45%, #C98A22 80%); color: #2A1800;
  box-shadow: 0 8px 26px var(--cta-glow), inset 0 -5px 0 rgba(0,0,0,.2), 0 0 0 5px rgba(255,255,255,.12);
  font: 800 13px "Cinzel", sans-serif; transition: transform .15s;
}
.spin svg { width: 38px; height: 38px; transition: transform .6s; }
.spin.busy svg { animation: rot 0.7s linear infinite; }
.spin:active { transform: scale(.95); }
.spin.stop { background: radial-gradient(circle at 35% 30%, #174579, #041E42 70%); color: #fff; }
@keyframes rot { to { transform: rotate(360deg); } }
.pill-btn { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sp-chip-line); background: var(--sp-chip); color: var(--sp-text); font-weight: 800; font-size: 13px; }
.pill-btn.on { background: #F5BE3A; color: #2A1800; border-color: #F5BE3A; }
.msg { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); font-weight: 800; font-size: 14px; text-shadow: 0 1px 6px var(--sp-glow); white-space: nowrap; pointer-events: none; }

/* bannere, ferestre */
.fs-banner { position: absolute; top: -4px; left: 50%; transform: translate(-50%, -100%); z-index: 4; display: none; gap: 14px; align-items: center; padding: 6px 16px; border-radius: 999px; background: linear-gradient(135deg, #F5DFA0, #E3BE62 50%, #8a6a1c); color: #1a1200; font: 800 13px "Cinzel", sans-serif; box-shadow: 0 6px 20px rgba(255,184,0,.45); white-space: nowrap; }
.fs-banner.on { display: flex; }
.overlay { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: radial-gradient(circle, rgba(10,50,110,.88), rgba(4,18,42,.94)); padding: 16px; text-align: center; color: #fff; }
.overlay.on { display: grid; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.overlay .big-t { font: 800 clamp(34px, 8vw, 78px)/1 "Cinzel", sans-serif; background: linear-gradient(180deg, #fff6cc, #E3BE62 55%, #d97f00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 20px rgba(255,170,0,.6)); animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.overlay .big-n { font: 800 clamp(28px, 6vw, 56px) "Cinzel", sans-serif; margin-top: 14px; text-shadow: 0 4px 20px rgba(0,0,0,.7); }
.overlay .sub { opacity: .8; margin-top: 10px; font-weight: 700; }
.overlay .btn { margin-top: 22px; }
.overlay .btn:not(.primary) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.overlay .burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.overlay .burst i { position: absolute; top: -40px; font-size: 28px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.pick-row { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.pick-row .sym-big { width: 110px; height: 110px; border-radius: 20px; display: grid; place-items: center; font-size: 66px; background: rgba(255,255,255,.08); border: 2px solid #E3BE62; box-shadow: 0 0 30px rgba(255,197,61,.5); animation: pop .6s; }

.pt { text-align: left; }
.pt h3 { margin: 18px 0 8px; font-size: 15px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pt-item { display: flex; gap: 10px; align-items: center; background: var(--surface-raised); border-radius: 12px; padding: 8px 10px; }
.pt-item .s { width: 46px; height: 46px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 30px; background: #041E42; color: #fff; }
.pt-item .p { font-size: 12px; line-height: 1.35; color: var(--text-muted); }
.pt-item .p b { color: var(--text); }
.pt p, .pt li { color: var(--text-muted); font-size: 14px; }
.fsz-dialog.wide { width: min(720px, 100%); }

@media (max-width: 720px) {
  .controls { grid-template-columns: 1fr 1fr; grid-template-areas: "spin spin" "l r"; gap: 8px; padding: 8px 10px 12px; }
  .ctl-mid { grid-area: spin; display: flex; justify-content: center; }
  .ctl-left { grid-area: l; } .ctl-right { grid-area: r; }
  .spin { width: 72px; height: 72px; }
  .box { min-width: 0; padding: 4px 8px; }
  .box b { font-size: 14px; }
  .round { width: 34px; height: 34px; font-size: 15px; }
  .pill-btn { height: 34px; padding: 0 10px; font-size: 12px; }
  .slot-page .gname { font-size: 13px; }
  .slot-page .back span, .slot-page .top .balance-chip .lbl { display: none; }
  .frame { padding: 6px; border-radius: 16px; }
  .reels { gap: 3px; padding: 3px; }
  .ctl-left .box.winbox { display: none; }
}
@media (max-width: 480px) { .slot-page .gname { display: none; } }

/* ===== shared crash game shell (shared/crash-ui.js) ===== */
.cr { position: relative; height: 100%; border-radius: 14px; overflow: hidden; background: #040A20; }
.cr canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cr-x { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%); text-align: center; font: 900 clamp(42px, 10vw, 88px)/1 "Cinzel", serif; color: #fff; text-shadow: 0 4px 22px rgba(0,0,0,.75); white-space: nowrap; pointer-events: none; }
.cr-x small { display: block; font: 800 clamp(12px, 2vw, 15px) "Manrope", sans-serif; color: #E6EEF8; margin-top: 6px; letter-spacing: .05em; }
.cr-x.boom { color: #FF4D5E; } .cr-x.cash { color: #22E67A; }
.cr-hist { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 5px; overflow: hidden; }
.cr-hist i { flex: none; font: 800 12px "Manrope", sans-serif; font-style: normal; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.35); color: #fff; }
.cr-hist i.hi { background: rgba(0,200,83,.32); color: #9DFFC8; }
.cr-go { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); height: 54px; min-width: 210px; padding: 0 26px; border: 0; border-radius: 16px; background: var(--cta-grad); color: #2A1800; font: 900 19px "Manrope", sans-serif; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.cr-go.cash { background: linear-gradient(135deg, #B6FFD8, #22C27A 55%, #0B8A4B); color: #04220F; }
.cr-auto { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; color: var(--sp-text); font: 700 14px "Manrope", sans-serif; flex: none; }
.cr-auto input { width: 84px; height: 36px; border-radius: 10px; border: 1px solid var(--sp-chip-line); background: var(--sp-box); color: var(--sp-text); padding: 0 10px; font: 800 15px "Manrope", sans-serif; }
