/* Shared HUD finish only: keep its dimensions and the canvas geometry intact. */
.game-page .bb-hud{isolation:isolate;position:relative;font-family:Outfit,'Nunito Sans',sans-serif}
.game-page .bb-hud::after{content:none}
.game-page .bb-hud::before{content:'';position:absolute;left:0;right:0;bottom:-3px;height:24px;z-index:-1;pointer-events:none;background:url('../images/ui/hud-energy-rail.svg') center/100% 100% no-repeat;filter:drop-shadow(0 2px 2px #14091e80)}
.game-page .bb-hud-corner{position:relative;background:linear-gradient(145deg,#78509655,#2b173fe8 38%,#201130ed) padding-box,linear-gradient(135deg,#f1d39d99,#8a618075 45%,#d9b08a99) border-box;border-color:transparent;color:#ffe4af;border-radius:13px 5px 13px 5px;box-shadow:inset 0 1px #fce5c833,inset 0 -3px #09051340,0 3px 0 #1c0c2d99,0 6px 14px #15091e40;text-shadow:0 1px 3px #180b23}
.game-page .bb-hud-corner--right{border-radius:5px 13px 5px 13px}
.game-page .bb-hud-corner::after{content:'';position:absolute;right:-4px;top:43%;width:5px;height:5px;transform:rotate(45deg);background:linear-gradient(135deg,#fff1c8,#ca9755);border:1px solid #edd3aa;box-shadow:0 1px 3px #1d0c28;pointer-events:none}
.game-page .bb-hud-corner--right::after{right:auto;left:-4px}
.game-page .bb-hud-corner::before{color:#d4c0e3;font-weight:500;letter-spacing:.13em}
.game-page .bb-hud-score{position:relative;isolation:isolate;color:#a4ffcd;text-shadow:0 2px 3px #12382599,0 0 10px #38efa333;font-weight:600}
.game-page .bb-hud-score::after{content:none}
.game-page .bb-hud-score::before{color:#e8d3f0;letter-spacing:.14em}
.game-page .bb-hud-score.ready{color:#ffe6a2;text-shadow:0 2px 2px #71461780,0 0 16px #f5c25b55}
.game-page .bb-hud-progress{border-color:transparent;background:linear-gradient(#140c25,#271335) padding-box,linear-gradient(180deg,#a37fa8,#ead1a3 45%,#725068) border-box;box-shadow:inset 0 2px 4px #090613b3,0 2px 0 #160b24,0 0 0 2px #30204499,0 4px 9px #14091f4d}
.game-page .bb-hud-progress::before{content:'';position:absolute;inset:2px;z-index:2;border-radius:999px;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(20% - 1px),#ffe5ff1c calc(20% - 1px),#ffe5ff1c 20%)}
.game-page .bb-hud-progress-fill{position:relative;background:linear-gradient(180deg,#d4ffdb,#76eec0 46%,#26bd99 55%,#65e4b8);box-shadow:inset 0 1px #eeffdd,0 0 8px #5cefa885}
.game-page .bb-hud-progress-fill::after{content:'';position:absolute;right:0;top:0;bottom:0;width:5px;border-radius:50%;background:#e2ffcf;box-shadow:0 0 6px 2px #88ffbc80}
.game-page .bb-hud-progress-fill[style*="width: 0%"]::after{display:none}
.game-page .bb-hud-progress.complete{border-color:#ffde8999;box-shadow:0 0 13px #e4b64d38,inset 0 1px 3px #311c2080}
.game-page .bb-hud-progress-fill.complete{background:linear-gradient(90deg,#e6ab35,#ffda70 60%,#fff0b3);box-shadow:inset 0 1px #fff8dc,0 0 8px #ffdb7066}
.game-page .bb-hud-progress-fill.complete::after{background:#fff4ca;box-shadow:0 0 6px 2px #ffcf6580}
/* All rules below are exclusive to the free tutorial. */
.tutorial-game-page{font-family:'Nunito Sans',sans-serif}
.tutorial-game-page .bubble-canvas{box-shadow:0 0 0 1px #d5b7fa16,0 7px 28px #160b3026}
.tutorial-game-page .tutorial-spotlight-hole{outline-color:#e9c8ff80;box-shadow:0 0 0 999vmax #0e072769}
.tutorial-game-page .tutorial-spotlight-hole.cashout-hole{outline-color:#ffe19b9c}
.tutorial-game-page .tutorial-meta-copy{width:100%;min-width:0;flex:1;background:linear-gradient(125deg,#493064f5,#271938f7);border-color:#d5b0f15e;border-radius:17px;box-shadow:0 12px 32px #13081e66,inset 0 1px #ffe7fc24;backdrop-filter:blur(14px);padding:12px 15px 13px}
.tutorial-game-page .tutorial-meta-text{font-family:'Nunito Sans',sans-serif;font-size:clamp(.8rem,3.4vw,.88rem);font-weight:500;line-height:1.5;color:#fff7ff;text-wrap:pretty}
.tutorial-game-page .tutorial-tip-caret{background:#f8d892;box-shadow:0 0 6px #ffe09a50}
.tutorial-game-page .tutorial-meta-callout .tutorial-tap-text{font-family:'Nunito Sans',sans-serif;font-size:10px;font-weight:700;letter-spacing:.07em;color:#ffe6ac;border-color:#cda6e22e;animation:none}
.tutorial-game-page .tutorial-meta-callout .tutorial-tap-text::before{width:5px;height:5px;background:#ffe6ac;box-shadow:0 0 0 3px #ffe5b015}
.tutorial-game-page .tutorial-meta-arrow{border-bottom-color:#493064}
.tutorial-game-page .tutorial-meta-arrow--down{border-top-color:#271938;border-bottom:none}
.tutorial-game-page .tutorial-meta-arrow--left{border-right-color:#392449}
.tutorial-game-page .tutorial-meta-arrow--right{border-left-color:#392449}
.tutorial-game-page .tutorial-skip-btn{font-family:'Nunito Sans',sans-serif;font-size:11px;font-weight:600;color:#f0ddff;background:#2c1b45c9;border:1px solid #d5b0f147;border-radius:999px;padding:7px 13px;box-shadow:inset 0 1px #ffffff12;backdrop-filter:blur(8px)}
.tutorial-game-page .tutorial-skip-btn:hover{color:#fff;background:#583175e0}
.tutorial-game-page .tutorial-your-turn p{font-family:Outfit,sans-serif;font-weight:600;color:#fff4d6;text-shadow:0 2px 3px #210d39,0 6px 22px #210d398c}
.tutorial-game-page .modal-overlay{background:#160b306b;backdrop-filter:blur(9px);padding:18px}
.tutorial-game-page .modal{border:1px solid #d9b6f14d;border-radius:26px;background:radial-gradient(ellipse at 50% 0%,#79509435,transparent 65%),linear-gradient(145deg,#352249f5,#201331fa);box-shadow:0 24px 70px #10051e85,inset 0 1px #f8ddff2b;width:min(100%,400px);max-height:calc(100dvh - 36px);overflow-y:auto;scrollbar-width:none;padding:0 23px 25px}
.tutorial-game-page .modal::-webkit-scrollbar{display:none;width:0;height:0}
.tutorial-game-page .result-win-banner{position:relative;height:140px;margin:0 -23px 20px;isolation:isolate;overflow:hidden;background:linear-gradient(90deg,#311348b8,#48245525),url('../images/internal-premium/village-night.webp') center 44%/cover}
.tutorial-game-page .result-win-banner img{visibility:hidden;height:100%;width:100%;object-fit:cover}
.tutorial-game-page .result-win-banner::before{content:'Rodada grátis';position:absolute;left:24px;top:46px;width:55%;font-family:BubbleDisplay,Outfit,sans-serif;font-size:35px;line-height:1.02;color:#ffe293;text-align:left;text-shadow:0 3px #8e511e,0 5px #311746;z-index:2}
.tutorial-game-page .result-win-banner::after{content:'';position:absolute;inset:5px -2px -10px 55%;height:auto;background:url('../images/home-v2/cauldron.webp') center/contain no-repeat;filter:drop-shadow(0 6px 10px #170b3e66);pointer-events:none}
.tutorial-game-page .result-modal--win .result-win-banner::before{content:'Parabéns!';top:51px;font-size:33px}
.tutorial-game-page .result-modal--win .result-win-banner::after{background:url('../images/home-v2/step-chest.webp') center/contain no-repeat;height:auto;inset:2px 1px -4px 55%}
.tutorial-game-page .tutorial-intro-modal h2{font-family:Outfit,sans-serif;color:#fff5ff;font-size:21px;font-weight:500;letter-spacing:-.025em;margin-bottom:11px}
.tutorial-game-page .tutorial-intro-accent{color:#ffe09c;text-shadow:none;font-weight:600}
.tutorial-game-page .tutorial-intro-text{font-family:'Nunito Sans',sans-serif;color:#decde9;font-size:13px;font-weight:400;line-height:1.7;margin:0 auto 21px;max-width:310px}
.tutorial-game-page .tutorial-intro-actions{gap:12px}
.tutorial-game-page .result-modal .btn-accent,.tutorial-game-page .result-modal.tutorial-intro-modal .tutorial-intro-actions .btn-accent,.tutorial-game-page .result-modal--win .win-actions .btn-accent{font-family:BubbleRound,'Nunito Sans',sans-serif;font-size:16px;letter-spacing:.035em;font-weight:800;color:#123e25;border:2px solid #c2ffb4;border-radius:999px;min-height:50px;padding:10px 16px;background:linear-gradient(#beffa2,#86f485 46%,#1ad966 51%,#0eba55);box-shadow:0 5px #147546,0 10px 22px #14b85d20,inset 0 2px #f1ffddb3;text-shadow:0 1px #edffcc70;transition:transform .15s,filter .15s;animation:none;margin-bottom:4px}
.tutorial-game-page .result-modal .btn-accent::after{content:none}
.tutorial-game-page .result-modal .btn-accent:hover{filter:brightness(1.05);transform:translateY(-1px)}
.tutorial-game-page .result-modal .btn-accent:active{transform:translateY(3px);box-shadow:0 2px #147546}
.tutorial-game-page .tutorial-intro-actions .tutorial-intro-skip{color:#ddc7ed!important;background:#ffffff05!important;border-color:#d6b1f02e!important;font-family:'Nunito Sans',sans-serif;font-weight:500;font-size:11px;letter-spacing:.03em;padding:9px 14px;border-radius:999px;min-height:36px}
.tutorial-game-page .result-modal--win h2{font-family:Outfit,sans-serif;font-size:18px;font-weight:500;color:#fff5ff;line-height:1.4;margin:0 0 18px;letter-spacing:-.02em}
.tutorial-game-page .result-modal--win .win-note-top{font-family:'Nunito Sans',sans-serif;font-size:9px;font-weight:600;letter-spacing:.12em;color:#e4c596;background:linear-gradient(#d4a7601c,#d4a76009);border-color:#e0b77742;padding:14px 10px 0}
.tutorial-game-page .result-modal--win .result-value.win{font-family:Outfit,sans-serif;font-size:33px;font-weight:600;letter-spacing:-.04em;color:#ffe7a7;-webkit-text-fill-color:#ffe7a7;text-shadow:0 2px #68431f80;background:#d4a76009;border-color:#e0b77742;padding:5px 10px 15px;box-shadow:0 7px 18px #140e221a}
.tutorial-game-page .result-modal--win .win-note{font-family:'Nunito Sans',sans-serif;font-size:12px;font-weight:400;line-height:1.6;color:#d7c1e7;margin:16px 0 21px}
.tutorial-game-page .cashout-btn{font-family:BubbleRound,'Nunito Sans',sans-serif;color:#55350e;border:2px solid #ffe8a3;border-radius:18px;background:linear-gradient(#fff0b0,#ffdc71 47%,#ffc643 52%,#ffda70);box-shadow:0 4px #a9762f,0 8px 22px #f1bb4626,inset 0 2px #fffbd9;text-shadow:0 1px #fff8d48c;animation:none}
.tutorial-game-page button:focus-visible{outline:3px solid #f8db98;outline-offset:4px}
@media(max-width:370px){
  .tutorial-game-page .modal{padding-inline:20px}
  .tutorial-game-page .result-win-banner{margin-inline:-20px;height:125px}
  .tutorial-game-page .result-win-banner::before{font-size:31px;top:38px;left:20px}
  .tutorial-game-page .result-modal--win .result-win-banner::before{font-size:30px;top:46px}
  .tutorial-game-page .tutorial-intro-modal h2{font-size:19px}
}
@media(max-height:650px){
  .tutorial-game-page .result-win-banner{height:100px;margin-bottom:14px}
  .tutorial-game-page .result-win-banner::before{font-size:28px;top:28px}
  .tutorial-game-page .result-modal--win .result-win-banner::before{top:34px;font-size:28px}
  .tutorial-game-page .tutorial-intro-text{font-size:12px;margin-bottom:15px}
  .tutorial-game-page .modal{padding-bottom:20px}
}
@media(prefers-reduced-motion:reduce){
  .game-page .bb-hud-score,.game-page .bb-hud-progress::after,.game-page .bb-hud-progress-fill{animation:none;transition:none}
  .tutorial-game-page .modal,.tutorial-game-page .tutorial-meta-callout{animation:none}
}

/* Gameplay finish: use the same responsive stage as REAL instead of the old
   viewport-height minus 400px width cap. Reserve a small bottom lane for the
   tutorial controls; the flex/container stage still shrinks on short screens.
   The logical canvas, inline aspect ratio and DPR are deliberately untouched. */
.tutorial-game-page .board-wrap.bubble-wrap{width:100%;margin-bottom:64px}
/* Once the real cashout dock is mounted it provides this lane itself. */
.tutorial-game-page.game-page--cashout-ready .board-wrap.bubble-wrap{margin-bottom:0}
/* On wide screens put side instructions outside the board's maximum-width
   lane, so cell spotlights cannot leave a callout covering other bubbles.
   Keep the existing above/below placement on narrow screens. */
@media(min-width:1100px){
  .tutorial-game-page .tutorial-meta-callout.right{left:calc(50% + 244px)!important;transform:translateY(-50%)}
  .tutorial-game-page .tutorial-meta-callout.left{left:calc(50% - 244px)!important;transform:translate(-100%,-50%)}
}

/* Compact gameplay praise. Values/text still come from the original result. */
.game-page .clear-shout{top:var(--sf-shout-top,48%);gap:3px;max-width:85%;animation:sf-praise 1.15s ease-out forwards}
.game-page .clear-shout-word{font-family:BubbleRound,Outfit,sans-serif;font-size:clamp(20px,5.3vw,27px);font-weight:800;letter-spacing:.01em;color:#fff1ae;-webkit-text-stroke:1px #68337b;paint-order:stroke fill;text-shadow:0 2px #3c1b50,0 0 12px #ecbb7133}
.game-page .clear-shout-combo{font-family:Outfit,sans-serif;font-size:clamp(11px,3vw,14px);font-weight:600;letter-spacing:.025em;color:#f2d9ff;-webkit-text-stroke:0;text-shadow:0 2px 4px #261336;transform:none;margin-top:0}
.game-page .clear-shout-combo span{color:#d8ffb0;-webkit-text-stroke:0}
.game-page .clear-shout-spark{width:5px;height:5px;background:#ffe8b4;opacity:.65}
.game-page .clear-shout-spark.s2,.game-page .clear-shout-spark.s4{width:4px;height:4px}
.game-page .gain-float{font-family:Outfit,sans-serif;font-weight:600;font-size:clamp(13px,3.4vw,16px);letter-spacing:-.02em;white-space:nowrap;color:#c2ffb9;padding:3px 7px;background:#28113970;border:1px solid #d0ecb92b;border-radius:999px;text-shadow:0 1px 3px #19132b,0 0 8px #a6ff962b;animation:sf-gain 1.1s ease-out forwards}
@keyframes sf-praise{0%{opacity:0;transform:translate(-50%,5px)scale(.92)}16%{opacity:1;transform:translate(-50%,0)scale(1.03)}32%,65%{opacity:1;transform:translate(-50%,0)scale(1)}100%{opacity:0;transform:translate(-50%,-14px)scale(.98)}}
@keyframes sf-gain{0%{opacity:0;transform:translate(-50%,-35%)scale(.95)}18%{opacity:1;transform:translate(-50%,-55%)scale(1)}72%{opacity:.95}100%{opacity:0;transform:translate(-50%,calc(-50% - 28px))scale(.98)}}
@media(prefers-reduced-motion:reduce){.game-page .clear-shout,.game-page .gain-float{animation-duration:.01ms}}
