/* Doce Encanto 1000 — palco lógico 1920×1080 (paisagem) ou 1080×1920 (retrato), escalado por JS */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/baloo-2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/fonts/baloo-2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #39124f; --panel: #391256; --cream: #fff2d3; --pink: #ed3c8c; --aqua: #4ed7cf; --gold: #ffd15d;
  --orange: #f6a21a; --green: #17b25a; --green2: #0e8a44;
  --stroke: #5a1d63;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #1a0630; overscroll-behavior: none; }
body { font-family: "Baloo 2", system-ui, sans-serif; color: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button:focus-visible, #ante:focus-visible { outline: 4px solid var(--cream); outline-offset: 3px; border-radius: 12px; }
button:disabled { cursor: default; }
::selection { background: var(--pink); color: #fff; }

#viewport { position: fixed; inset: 0; overflow: hidden; background: #1a0630; }
#stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
#stage.land { width: 1920px; height: 1080px; }
#stage.port { width: 1080px; height: 1920px; }
#stage > * { position: absolute; }

.bgimg { inset: 0; background-size: cover; background-position: center; }
.land #bg { background-image: url(assets/background-base-wide.png); }
.land #bgBonus { background-image: url(assets/background-bonus-wide.png); }
.port #bg { background-image: url(assets/background-base.png); }
.port #bgBonus { background-image: url(assets/background-bonus.png); }
#bgBonus { opacity: 0; transition: opacity .9s ease; }
.bonus #bgBonus { opacity: 1; }

/* título */
#titlebar { pointer-events: none; filter: drop-shadow(0 6px 10px rgba(57, 18, 79, .45)); z-index: 6; }
.land #titlebar { left: 760px; top: -16px; width: 520px; }
.port #titlebar { left: 190px; top: 20px; width: 700px; }
#topline { z-index: 7; text-align: center; font-weight: 800; letter-spacing: .02em; pointer-events: none; transition: opacity .5s; }
.land #topline { left: 372px; top: 22px; width: 1228px; height: 60px; }
.port #topline { left: 10px; top: 500px; width: 1060px; height: 60px; }
#topline span { display: inline-block; font-size: 42px; line-height: 60px; color: #fff; -webkit-text-stroke: 8px #6b2a8f; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(60, 10, 90, .4); }
#titlebar { transition: opacity .5s; }
.showtext #titlebar { opacity: 0; } #topline { opacity: 0; } .showtext #topline { opacity: 1; }


/* geometria do tabuleiro (JS define por orientação): passo da célula, tamanho do símbolo e espessura da moldura */
#stage { --cw: 186px; --ch: 144px; --sym: 138px; --bd: 56px; }

/* coluna esquerda — painéis empilhados como no original (texto fixo na arte; preço e contador são texto do jogo) */
.buy, #ante, #panelFs { z-index: 3; width: 172px; height: 248px; background-size: 100% 100%; background-repeat: no-repeat; }
.buy { background-image: url(assets/panels/buy-fs.webp); display: block; transition: transform .15s var(--ease-out), filter .2s; }
.buy.super { background-image: url(assets/panels/buy-super.webp); }
.buy b, #ante > b { position: absolute; left: 8%; right: 8%; font-size: 25px; line-height: 1; font-weight: 800; color: #fff; text-align: center; text-shadow: 0 3px 0 rgba(60, 0, 30, .55); white-space: nowrap; }
.buy b { top: 61.5%; }
.buy:hover:not(:disabled) { transform: scale(1.04); }
.buy:active:not(:disabled) { transform: scale(.97); }
.buy:disabled { filter: grayscale(.85) brightness(.7); }
#ante { background-image: url(assets/panels/ante.webp); cursor: pointer; text-align: center; }
#ante > b { top: 36.5%; font-size: 24px; }
#ante .sw { position: absolute; left: 14%; right: 14%; bottom: 9%; height: 17%; background: url(assets/panels/tg-track.webp) center / 100% 100% no-repeat; display: block; }
#ante .sw i { position: absolute; left: 3%; top: 8%; width: 46%; height: 84%; background: url(assets/panels/tg-off.webp) center / 100% 100% no-repeat; transition: transform .25s var(--ease-out); }
#ante .sw em { position: absolute; right: 8%; top: 0; bottom: 0; width: 40%; font-style: normal; font-weight: 800; font-size: 15px; color: #fff; text-align: center; line-height: 32px; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
#ante[aria-checked="true"] .sw i { transform: translateX(106%); background-image: url(assets/panels/tg-on.webp); }
#ante[aria-checked="true"] .sw em { right: auto; left: 8%; }
#ante.off { filter: grayscale(.7) brightness(.8); pointer-events: none; }
.land #buyFs, .land #panelFs { left: 170px; top: 12px; } .land #buySuper { left: 170px; top: 262px; } .land #ante { left: 170px; top: 512px; }

#panelList { width: 172px; height: 176px; background: url(assets/panel-win-list.png) center / 100% 100% no-repeat; z-index: 3; }
.land #panelList { left: 170px; top: 770px; }
#listRows { position: absolute; left: 13%; top: 15%; width: 74%; height: 70%; overflow: hidden; display: flex; flex-direction: column; gap: 4px; justify-content: flex-start; }
.row { display: flex; align-items: center; gap: 3px; font-size: 17px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 var(--stroke); animation: rowin .35s var(--ease-out) both; }
.row .sy { width: 32px; height: 32px; flex: none; }
.row .n { color: var(--cream); min-width: 18px; }
.row .v { margin-left: auto; color: var(--gold); }
@keyframes rowin { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

#panelFs { background-image: url(assets/panels/counter-fs.webp); display: none; text-align: center; }
.bonus #panelFs { display: block; }
.bonus #buyFs, .bonus #buySuper, .bonus #ante { display: none; }
#panelFs b { position: absolute; left: 12%; right: 12%; top: 66%; font-size: 58px; font-weight: 800; color: #fff; text-shadow: 0 4px 0 rgba(60, 0, 40, .6); line-height: 1; }

/* tabuleiro: largo como o original; moldura em nove fatias para não distorcer os cantos */
#board { z-index: 2; width: calc(var(--cw) * 6 + var(--bd) * 2); height: calc(var(--ch) * 5 + var(--bd) * 2); }
.land #board { left: 372px; top: 70px; }
.port #board { left: 10px; top: 560px; }
#boardBg { position: absolute; inset: calc(var(--bd) - 20px); border-radius: 30px; z-index: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--cw) - 2px), rgba(90, 40, 140, .26) calc(var(--cw) - 2px), rgba(90, 40, 140, .26) var(--cw)), linear-gradient(rgba(206, 168, 244, .80), rgba(184, 146, 234, .76) 55%, rgba(236, 160, 210, .78));
  box-shadow: inset 0 0 40px rgba(180, 120, 220, .35); transition: background .8s; }
.bonus #boardBg { background: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--cw) - 2px), rgba(255, 255, 255, .08) calc(var(--cw) - 2px), rgba(255, 255, 255, .08) var(--cw)), linear-gradient(#7a35b0, #4a1a78 60%, #3a1260); box-shadow: inset 0 0 40px rgba(30, 5, 60, .45); }
#cells, #fx { position: absolute; left: var(--bd); top: var(--bd); width: calc(var(--cw) * 6); height: calc(var(--ch) * 5); }
#cells { z-index: 3; overflow: visible; clip-path: inset(-130px -96px -96px -96px); }
#cells.mv { clip-path: inset(0 -96px -64px -96px); }
#fx { pointer-events: none; z-index: 4; }
#frame { position: absolute; inset: 0; z-index: 2; background: center / 100% 100% no-repeat; pointer-events: none; }
#glow { position: absolute; left: -34px; top: -28px; right: -34px; bottom: -28px; background: url(assets/board-glow-bonus.png) center / 100% 100% no-repeat; opacity: 0; pointer-events: none; z-index: 6; transition: opacity .6s; }
.bonus #glow { opacity: .9; animation: glowp 2.4s ease-in-out infinite; }
@keyframes glowp { 50% { opacity: .5; } }
#banner { position: absolute; left: 50%; top: 4px; transform: translate(-50%, -30px) scale(.9); opacity: 0; z-index: 8; min-width: 380px; height: 62px; padding: 0 34px; border-radius: 31px; background: linear-gradient(#a64fd0, #5a1d83); border: 4px solid var(--cream); box-shadow: 0 6px 14px rgba(40, 8, 60, .5); text-align: center; pointer-events: none; transition: transform .3s var(--ease-out), opacity .2s; }
#banner.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
#bannerText { font-size: 34px; font-weight: 800; line-height: 54px; color: #fff; text-shadow: 0 2px 0 var(--stroke); white-space: nowrap; }
#bannerText b { color: var(--gold); }

.c { position: absolute; width: var(--cw); height: var(--ch); will-change: transform; transform-origin: 50% 100%; transition: filter .25s; }
.c.dimc { filter: brightness(.55) saturate(.8); }
.c .s { position: absolute; left: 50%; top: 50%; width: var(--sym); height: var(--sym); margin: calc(var(--sym) / -2) 0 0 calc(var(--sym) / -2);
  background: url(assets/atlas/symbols.png) calc(var(--bx, 0) * var(--sym) * -1) calc(var(--by, 0) * var(--sym) * -1) / calc(var(--sym) * 4) calc(var(--sym) * 3) no-repeat; filter: drop-shadow(0 3px 0 rgba(70, 20, 100, .5)) drop-shadow(0 8px 8px rgba(57, 18, 79, .32)); }
.c.sc, .c.bomb { z-index: 5; }
.c.sc { --k: 1.7; }
.c.sc .s { width: calc(var(--sym) * var(--k)); height: calc(var(--sym) * var(--k)); margin: calc(var(--sym) * var(--k) / -2) 0 0 calc(var(--sym) * var(--k) / -2); background: url(assets/scatter-lollipop.png) center / 100% 100% no-repeat; filter: drop-shadow(0 0 16px rgba(255, 120, 190, .55)) drop-shadow(0 10px 8px rgba(40, 8, 60, .4)); }
.c.bomb { --k: 1.7; }
.c.bomb .s { width: calc(var(--sym) * var(--k)); height: calc(var(--sym) * var(--k)); margin: calc(var(--sym) * var(--k) / -2) 0 0 calc(var(--sym) * var(--k) / -2); background: url(assets/bomb-multiplier.png) center / 100% 100% no-repeat; filter: drop-shadow(0 0 14px rgba(255, 220, 120, .5)) drop-shadow(0 10px 8px rgba(40, 8, 60, .45)); }
.c.bomb.sup .s { background-image: url(assets/bomb-multiplier-super.png); }
@property --burn { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
.c.bomb { --burn: 0%; --tl: 87.7%; --tt: 14%; --sl: .22; --my: 20%; }
.c.bomb.sup { --tl: 86.5%; --tt: 14%; --sl: .57; --my: 25%; }
.c.bomb.b1000 { --tl: 86.5%; --tt: 13.5%; --sl: .71; --my: 26%; }
.c.bomb .s { -webkit-mask: linear-gradient(#000 0 0), linear-gradient(#000 0 0); -webkit-mask-size: 100% 100%, var(--burn) var(--my); -webkit-mask-position: 0 0, 100% 0; -webkit-mask-repeat: no-repeat; -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0), linear-gradient(#000 0 0); mask-size: 100% 100%, var(--burn) var(--my); mask-position: 0 0, 100% 0; mask-repeat: no-repeat; mask-composite: exclude; }
.tipbox { position: absolute; left: 50%; top: 50%; width: calc(var(--sym) * var(--k)); height: calc(var(--sym) * var(--k)); margin: calc(var(--sym) * var(--k) / -2) 0 0 calc(var(--sym) * var(--k) / -2); pointer-events: none; }
.c.bomb.b1000 .tipbox { margin-top: calc(var(--sym) * var(--k) * -.6); }
.c.bomb.b1000 { --k: 2.1; }
.c.bomb.b1000 .s { background-image: url(assets/bomb-1000x.webp); margin-top: calc(var(--sym) * var(--k) * -.6); }
.c.bomb .m { position: absolute; left: -60px; right: -60px; top: 58%; transform: translateY(-50%); text-align: center; font-weight: 800; font-size: calc(var(--sym) * .5); line-height: 1; color: var(--gold); -webkit-text-stroke: 10px #3b0f55; paint-order: stroke fill; text-shadow: 0 5px 0 rgba(30, 5, 45, .5); letter-spacing: -.01em; white-space: nowrap; pointer-events: none; }
.c.bomb.m4 .m { font-size: calc(var(--sym) * .38); }
.c.bomb.sup .m { color: #fff4fb; -webkit-text-stroke-color: #8a2a78; }
.c.hit .s { animation: hit .5s ease-in-out infinite alternate; filter: drop-shadow(0 0 16px #fff) drop-shadow(0 0 28px var(--gold)); }
@keyframes hit { to { transform: scale(1.14); } }
.pop { position: absolute; background: url(assets/burst-candy-pop.png) 0 0 / 100% 100% no-repeat; pointer-events: none; }
.wp { position: absolute; transform: translate(-50%, -50%); font-size: 46px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 var(--stroke), 0 0 12px var(--pink); white-space: nowrap; pointer-events: none; z-index: 3; }
.wp b { color: var(--gold); }
.tag { position: absolute; transform: translate(-50%, -50%); padding: 0 22px; border-radius: 28px; background: linear-gradient(#ffd15d, #f59a14); color: #5a1d63; font-weight: 800; font-size: 44px; line-height: 56px; border: 4px solid var(--cream); box-shadow: 0 6px 12px rgba(40, 8, 60, .4); z-index: 3; white-space: nowrap; }

/* barra */
#stage > #bar { inset: 0; position: absolute; z-index: 4; pointer-events: none; }
#bar > * { position: absolute; z-index: 4; pointer-events: auto; }
.ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(30, 8, 48, .55); color: #fff; border: 3px solid rgba(255, 255, 255, .55); padding: 9px; transition: background .2s, transform .15s; }
.ic:hover { background: rgba(30, 8, 48, .8); } .ic:active { transform: scale(.92); }
.ic svg { width: 100%; height: 100%; display: block; }
.land #btnMenu { left: 184px; top: 944px; } .land #btnSound { left: 184px; top: 1016px; } .land #btnInfo { left: 256px; top: 980px; width: 62px; height: 62px; padding: 11px; }
#money { display: block; padding: 6px 20px; border-radius: 22px; background: linear-gradient(rgba(40, 10, 60, .78), rgba(25, 5, 40, .86)); border: 3px solid rgba(255, 210, 120, .6); box-shadow: 0 6px 0 rgba(0, 0, 0, .22); }
.land #money { left: 340px; top: 968px; width: 430px; height: 94px; }
.mline { display: flex; gap: 14px; align-items: baseline; text-align: left; height: 42px; }
.mline span { font-size: 24px; font-weight: 800; color: var(--gold); text-shadow: 0 2px 0 #5a1d63; min-width: 168px; white-space: nowrap; }
.mline b { font-size: 34px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 var(--stroke); }
#status { text-align: center; pointer-events: none; border-radius: 28px; background: rgba(40, 10, 60, .5); }
.land #status { left: 790px; top: 964px; width: 480px; height: 100px; }
#statusText { font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 var(--stroke); line-height: 52px; white-space: nowrap; }
#statusText b { color: #fff; margin-left: 10px; font-size: 60px; -webkit-text-stroke: 8px #4a1668; paint-order: stroke fill; font-variant-numeric: tabular-nums; }
#statusText .k { color: var(--gold); font-size: 34px; }
#statusText .s2 { display: block; font-size: 24px; line-height: 26px; margin-top: -4px; }
.rb { width: 72px; height: 72px; border-radius: 50%; background: rgba(30, 8, 48, .6); color: #fff; border: 4px solid rgba(255, 255, 255, .6); padding: 14px; transition: transform .15s, background .2s, opacity .2s; }
.rb svg { width: 100%; height: 100%; display: block; }
.rb:hover:not(:disabled) { background: rgba(30, 8, 48, .85); } .rb:active:not(:disabled) { transform: scale(.92); }
.rb:disabled, .ic:disabled { opacity: .4; }
.land #btnMinus { left: 1298px; top: 949px; } .land #btnPlus { left: 1597px; top: 949px; }
#btnSpin { width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(60, 20, 90, .78), rgba(18, 5, 30, .88)); border: 5px solid rgba(255, 255, 255, .55); box-shadow: 0 8px 22px rgba(40, 8, 60, .55); padding: 20px; transition: transform .15s var(--ease-out), box-shadow .3s; }
.land #btnSpin { left: 1392px; top: 890px; }
#btnSpin svg { width: 100%; height: 100%; display: block; }
#btnSpin:hover:not(:disabled) { transform: scale(1.05); } #btnSpin:active:not(:disabled) { transform: scale(.94); }
#btnSpin.go #spinIcon { animation: spinr .9s linear infinite; }
@keyframes spinr { to { transform: rotate(360deg); } }
#btnSpin:disabled { opacity: .55; }
#btnAuto { height: 40px; width: 190px; border-radius: 18px; background: rgba(18, 5, 30, .88); border: 3px solid rgba(255, 255, 255, .5); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: .06em; color: #fff; }
.land #btnAuto { left: 1392px; top: 1038px; }
#btnAuto svg { width: 46px; height: 30px; padding: 7px 9px; margin: -7px 0 -7px -12px; flex: none; }
#btnAuto svg:hover g { fill: var(--gold); }
#btnAuto.on { background: var(--green2); }
#btnAuto.turbo svg g, #btnAuto.quick svg g { fill: var(--gold); }

/* retrato */
.port #titlebar { left: 190px; top: 20px; width: 700px; }
.port #bar > .ic { top: 1452px; }
.port #btnMenu { left: 800px; } .port #btnInfo { left: 866px; } .port #btnSound { left: 932px; }
.port #money { left: 60px; top: 1440px; width: 700px; height: 80px; }
.port #status { left: 40px; top: 1385px; width: 1000px; height: 56px; }
.port #btnMinus { left: 290px; top: 1617px; } .port #btnPlus { left: 718px; top: 1617px; }
.port #btnSpin { left: 432px; top: 1545px; width: 216px; height: 216px; }
.port #btnAuto { left: 435px; top: 1782px; width: 210px; }
.port #buyFs, .port #panelFs { left: 150px; top: 250px; } .port #buySuper { left: 462px; top: 250px; } .port #ante { left: 774px; top: 250px; }
.port #panelFs { left: 462px; }
.port #panelList { display: none; }

/* camadas */
#layers { inset: 0; position: absolute; pointer-events: none; z-index: 20; }
#layers > * { position: absolute; inset: 0; }
#trans { background: #2a0d40 url(assets/transition-swirls.png) center / cover no-repeat; opacity: 0; transform: scale(1.35); }
#dim { background: rgba(26, 6, 48, .72); opacity: 0; transition: opacity .35s; }
#dim.on { opacity: 1; pointer-events: auto; }
#popup, #celebrate { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
#popup > *, #celebrate > *, #modal > * { pointer-events: auto; }
.dlg { position: relative; width: 980px; padding: 56px 60px 44px; border-radius: 40px; background: linear-gradient(#6b2a96, #3a1058); border: 10px solid #ffb6dc; box-shadow: 0 0 0 6px #ed3c8c, 0 30px 70px rgba(20, 4, 36, .6); }
.port .dlg { width: 940px; }
.dlg h1 { margin: 0; font-size: 84px; line-height: 1; font-weight: 800; color: var(--gold); text-shadow: 0 5px 0 #8a2d5f, 0 0 24px rgba(255, 209, 93, .5); }
.dlg h2 { margin: 14px 0 0; font-size: 52px; line-height: 1; font-weight: 800; color: var(--aqua); text-shadow: 0 4px 0 #1b6f78; }
.dlg .plate { position: relative; width: 520px; height: 260px; margin: 12px auto; background: url(assets/plate-candy-wrapper.png) center / 100% 100% no-repeat; }
.dlg .plate b { position: absolute; left: 27%; top: 31%; width: 46%; height: 38%; display: flex; align-items: center; justify-content: center; font-size: 150px; line-height: 1; font-weight: 800; color: #fff; text-shadow: 0 6px 0 #b0236f, 0 0 20px #ff7ac2; }
.dlg .cont { margin-top: 18px; font-size: 40px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 var(--stroke); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
.dlg .sub { font-size: 40px; font-weight: 800; color: var(--cream); text-shadow: 0 3px 0 var(--stroke); }
.dlg .big { font-size: 130px; line-height: 1.05; font-weight: 800; color: #fff; text-shadow: 0 6px 0 #b0236f, 0 0 26px #ff7ac2; font-variant-numeric: tabular-nums; }
.dlg.buyq h2 { color: #fff; text-shadow: 0 4px 0 var(--stroke); font-size: 56px; }
.dlg.buyq .price { color: var(--gold); }
.dlg .btns { display: flex; gap: 40px; justify-content: center; margin-top: 30px; }
.bt { min-width: 230px; height: 96px; border-radius: 22px; font-size: 54px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); border: 5px solid var(--cream); box-shadow: 0 8px 0 rgba(0, 0, 0, .3); transition: transform .12s; }
.bt:active { transform: translateY(4px); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
.bt.no { background: linear-gradient(#ff5a5a, #c01f2d); } .bt.yes { background: linear-gradient(#5fd35f, #1c8a2c); }

#celebrate .cel { width: 640px; height: 640px; background: url(assets/atlas/celebrations.png) 0 0 / 1920px 1280px no-repeat; position: relative; }
#celebrate .celv { position: absolute; left: 0; right: 0; top: 76%; transform: translateY(-50%); font-size: 74px; font-weight: 800; color: #fff; text-shadow: 0 5px 0 #8a2d5f, 0 0 22px #ff7ac2; font-variant-numeric: tabular-nums; }
.coinp { position: absolute; width: 60px; height: 60px; background: url(assets/atlas/particles.png) 0 0 / 240px 240px no-repeat; pointer-events: none; }

/* modais de sistema (aparência do original: painel escuro, títulos laranja, botões verdes) */
#modal { display: none; align-items: center; justify-content: center; }
#modal.on { display: flex; }
.mp { position: relative; background: rgba(8, 4, 12, .94); border-radius: 26px; padding: 40px 54px 44px; color: #fff; min-width: 760px; max-width: 1500px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.port .mp { min-width: 0; width: 960px; }
.mp h3 { margin: 0 0 22px; text-align: center; font-size: 40px; font-weight: 800; color: var(--orange); letter-spacing: .03em; }
.mp .x { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; }
.mp .x svg { width: 100%; height: 100%; padding: 14px; }
.mp .x:hover { background: rgba(255, 255, 255, .16); }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 14px 0; font-size: 30px; font-weight: 800; }
.setrow small { display: block; font-size: 20px; font-weight: 600; color: #bdb3c6; max-width: 380px; line-height: 1.05; }
.tg { width: 112px; height: 52px; border-radius: 26px; background: #4a4553; position: relative; flex: none; transition: background .2s; }
.tg i { position: absolute; left: 4px; top: 4px; width: 44px; height: 44px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-out); }
.tg[aria-checked="true"] { background: var(--green); } .tg[aria-checked="true"] i { transform: translateX(60px); }
.step { display: flex; align-items: center; gap: 16px; justify-content: center; }
.step button { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; font-size: 50px; font-weight: 800; line-height: 1; display: grid; place-items: center; }
.step button.mn { background: #e6e1ec; color: #222; }
.step button:disabled { opacity: .35; }
.step .val { min-width: 190px; height: 72px; border-radius: 12px; background: #1f1c25; border: 2px solid #3a3544; font-size: 36px; font-weight: 800; line-height: 68px; text-align: center; }
.betgrid { display: grid; gap: 14px; }
.betgrid > div > label { display: block; text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.gbtn { display: block; width: 100%; height: 76px; border-radius: 12px; background: var(--green); color: #fff; font-size: 36px; font-weight: 800; margin-top: 18px; }
.gbtn:hover { background: #1ec86a; }
.chk { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; cursor: pointer; }
.chk i { width: 48px; height: 48px; border-radius: 8px; border: 3px solid #fff; display: grid; place-items: center; flex: none; }
.chk[aria-checked="true"] i { background: var(--green); border-color: var(--green); }
.chk[aria-checked="true"] i::after { content: ""; width: 22px; height: 12px; border: 6px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(2px, -3px); }
.slider { width: 100%; accent-color: var(--green); height: 40px; }
.info { width: 1500px; max-width: 94vw; height: 880px; padding: 36px 70px; display: flex; flex-direction: column; }
.port .info { width: 980px; height: 1500px; }
.info .pg { flex: 1; overflow: hidden; font-size: 27px; line-height: 1.12; text-align: center; font-weight: 600; }
.info .pg h4 { margin: 16px 0 8px; font-size: 34px; color: var(--orange); font-weight: 800; }
.info .pg p { margin: 8px auto; max-width: 1100px; }
.info .nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 10px; }
.info .nav button { width: 84px; height: 84px; display: grid; place-items: center; color: var(--green); }
.info .nav svg { width: 70px; height: 70px; }
.info .nav .pgn { font-size: 28px; font-weight: 800; color: #cfc6d8; }
.ptab { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 24px; margin-top: 10px; }
.ptab .it { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; text-align: left; font-size: 24px; font-weight: 700; line-height: 1.05; }
.ptab .it .sy { width: 90px; height: 90px; position: relative; } .ptab .it span b { color: var(--gold); }
.hist { max-height: 640px; overflow: auto; font-size: 24px; font-weight: 600; width: 900px; }
.hist table { width: 100%; border-collapse: collapse; } .hist td, .hist th { padding: 8px 10px; text-align: right; border-bottom: 1px solid #2d2835; } .hist th { color: var(--orange); position: sticky; top: 0; background: #0b070f; }
.hist td:first-child, .hist th:first-child { text-align: left; }
#toast { display: flex; align-items: flex-start; justify-content: center; padding-top: 40px; }
#toast span { background: rgba(8, 4, 12, .92); border: 3px solid var(--orange); color: #fff; padding: 12px 34px; border-radius: 40px; font-size: 32px; font-weight: 800; opacity: 0; transform: translateY(-24px); transition: opacity .25s, transform .35s var(--ease-out); }
#toast span.on { opacity: 1; transform: none; }
#testbar { left: 6px; top: 6px; z-index: 30; display: flex; gap: 6px; flex-wrap: wrap; width: 460px; }
#testbar button { background: #0009; color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 20px; font-weight: 700; }
#testbar button.on { background: var(--pink); }

@media (prefers-reduced-motion: reduce) { .bonus #glow { animation: none; } .dlg .cont { animation: none; } #btnSpin.go #spinIcon { animation-duration: 2s; } }

/* estados de botão: tecla que afunda, desabilitado legível, foco visível */
.ic, .rb, #btnAuto, .bt, .gbtn { box-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.ic:active, .rb:active:not(:disabled), #btnAuto:active { transform: translateY(3px) scale(.97); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.rb:disabled, .ic:disabled { opacity: 1; filter: saturate(.3) brightness(.7); cursor: not-allowed; }
#btnSpin:disabled { opacity: 1; filter: saturate(.5) brightness(.8); }
button:focus-visible, #ante:focus-visible { outline: none; box-shadow: 0 0 0 4px #1a0630, 0 0 0 8px var(--cream); }
.rb, #btnAuto { scale: var(--bump, 1); }
.ic { scale: var(--bumpI, 1); }
@media (hover: none) { .buy:hover, #btnSpin:hover, .ic:hover, .rb:hover { transform: none; } }

/* efeitos novos */
.ring { position: absolute; z-index: 1; border-radius: 22px; border: 5px solid rgba(255, 209, 93, .9); box-shadow: 0 0 0 6px rgba(255, 209, 93, .25); pointer-events: none; animation: ringp .45s ease-in-out infinite alternate; }
@keyframes ringp { to { transform: scale(1.015); border-color: rgba(255, 250, 220, 1); } }
.spr { position: absolute; width: 7px; height: 16px; border-radius: 4px; pointer-events: none; z-index: 3; }
.spk { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; background: url(assets/atlas/particles.png) 0 0 / 360px 360px no-repeat; pointer-events: none; z-index: 6; animation: spk 1.1s ease-out forwards; }
@keyframes spk { 0% { transform: scale(0) rotate(0); opacity: 0; } 35% { transform: scale(1.1) rotate(45deg); opacity: 1; } 100% { transform: scale(.2) rotate(120deg); opacity: 0; } }
.flash { position: absolute; inset: -20px; background: #fff; pointer-events: none; z-index: 7; opacity: 0; border-radius: 30px; }
.tag.mtag { background: linear-gradient(#e8a5ff, #a64fd0); color: #fff; text-shadow: 0 3px 0 #5a1d83; }
.wp.fly { font-size: 56px; color: var(--gold); -webkit-text-stroke: 8px #3b0f55; paint-order: stroke fill; z-index: 8; }
.rays { position: absolute; width: 1500px; height: 1500px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 230, 160, .32) 0 9deg, transparent 9deg 18deg); -webkit-mask: radial-gradient(circle, #000 15%, transparent 68%); mask: radial-gradient(circle, #000 15%, transparent 68%); animation: spinr 14s linear infinite; pointer-events: none; }
#celebrate .cel { z-index: 1; }
.port #status { height: 96px; top: 1365px; }

/* microanimações (respeitam prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  /* bomba: a faísca fica exatamente na ponta do pavio da arte (a bomba não balança), com brilho pulsante e fagulhas saindo */
  .tip b { animation: tipglow .3s ease-in-out infinite alternate; }
  .tip i { animation: emit 1s ease-out infinite; }
  @keyframes tipglow { from { transform: scale(.7); opacity: .55; } to { transform: scale(1.25); opacity: 1; } }
  @keyframes emit { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
  /* scatter: halo giratório rosa e creme + flutuar */
  .c.sc::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--sym) * 2); height: calc(var(--sym) * 2); margin: calc(var(--sym) * -1) 0 0 calc(var(--sym) * -1); border-radius: 50%; z-index: -1;
    background: conic-gradient(rgba(255, 150, 200, 0), rgba(255, 215, 235, .6), rgba(255, 255, 255, 0) 30%, rgba(255, 160, 205, .5) 55%, rgba(255, 150, 200, 0) 80%);
    -webkit-mask: radial-gradient(circle, transparent 26%, #000 34%, transparent 68%); mask: radial-gradient(circle, transparent 26%, #000 34%, transparent 68%); animation: spinr 4.5s linear infinite; pointer-events: none; }
  .c.sc .s { animation: bob 2.4s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 5px; } }
  /* brilho que passeia nos painéis de compra */
  .buy::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%) -160% 0 / 260% 100% no-repeat;
    -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; animation: shine 5s ease-in-out infinite; }
  #buyFs { --m: url(assets/panels/buy-fs.webp); } #buySuper { --m: url(assets/panels/buy-super.webp); animation-delay: 0s; }
  #buySuper::after { animation-delay: 1.3s; }
  @keyframes shine { 0%, 55% { background-position: -160% 0; } 100% { background-position: 160% 0; } }
  /* botão de girar chama atenção depois de um tempo parado */
  #btnSpin.nudge { animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { box-shadow: 0 8px 22px rgba(40, 8, 60, .55), 0 0 0 0 rgba(255, 255, 255, .5); transform: scale(1); } 50% { box-shadow: 0 8px 22px rgba(40, 8, 60, .55), 0 0 0 22px rgba(255, 255, 255, 0); transform: scale(1.04); } }
  /* painel de rodadas restantes e preço da compra respiram levemente */
  .bonus #panelFs b { animation: breathe 2.2s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: scale(1.06); } }
}

.tip { position: absolute; left: min(var(--tl), calc(100% - var(--burn))); top: calc(var(--tt) + (var(--tl) - min(var(--tl), calc(100% - var(--burn)))) * var(--sl)); width: 0; height: 0; pointer-events: none; }
.tip b { position: absolute; left: calc(var(--sym) * -.13); top: calc(var(--sym) * -.13); width: calc(var(--sym) * .26); height: calc(var(--sym) * .26); border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 16%, rgba(255, 222, 100, .75) 38%, rgba(255, 140, 30, 0) 70%); }
.tip i { position: absolute; left: calc(var(--sym) * -.02); top: calc(var(--sym) * -.02); width: calc(var(--sym) * .04); height: calc(var(--sym) * .04); border-radius: 50%; background: #ffe9a0; box-shadow: 0 0 6px 2px rgba(255, 170, 40, .9); opacity: 0; }
.tip i:nth-of-type(1) { --dx: 30px; --dy: -34px; animation-delay: 0s; } .tip i:nth-of-type(2) { --dx: -8px; --dy: -44px; animation-delay: .33s; } .tip i:nth-of-type(3) { --dx: 40px; --dy: -8px; animation-delay: .66s; }

.boom { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 10px solid #fff6c8; box-shadow: 0 0 40px 10px rgba(255, 200, 80, .7), inset 0 0 30px rgba(255, 200, 80, .6); pointer-events: none; z-index: 7; }

/* diálogos e celebrações centralizados no tabuleiro (o centro dele não é o centro do palco em paisagem) */
.land #popup, .land #celebrate { padding: 0 0 78px 52px; }

/* giros grátis do operador: contador ao lado do botão de girar */
#freeBadge { z-index: 6; width: 230px; padding: 8px 16px 10px; border-radius: 26px; text-align: center; background: linear-gradient(#ffd15d, #f59a14); border: 4px solid var(--cream); box-shadow: 0 6px 0 rgba(90, 29, 99, .35); color: #5a1d63; }
#freeBadge span { display: block; font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: .04em; }
#freeBadge b { display: block; font-size: 52px; font-weight: 800; line-height: 1.05; }
.land #freeBadge { left: 1672px; top: 820px; width: 220px; }
.port #freeBadge { left: 770px; top: 1372px; width: 270px; }
@media (prefers-reduced-motion: no-preference) { #freeBadge:not([hidden]) { animation: freein .5s cubic-bezier(.34, 1.56, .64, 1); } @keyframes freein { from { transform: scale(.3) rotate(-8deg); opacity: 0; } } }
