/* ==========================================================================
   PAGANDO PATO — identidade visual (cartoon, piscina, dinheiro)
   Água #2BB0D8 · Ouro #F7C04A · Deck #7A4A22 · Boia #FF4D5A
   Bronze #E0904F · Prata #B8C8DA · Diamante #8FE3FF · Fundo #0B3D5C
   ========================================================================== */
:root {
  --ice: #5bc0f8; --ice-dk: #1f6fb8; --gold: #f7c04a; --gold-dk: #c98a12; --wood: #7a4a22; --wood-dk: #4a2a10;
  --leaf: #5dbb4a; --leaf-dk: #2f7d24; --fire: #ff7a2f; --air: #8be3ff; --night: #113641; --night-2: #194f60;
  --cream: #fff6e3; --text: #fff; --muted: #ceeef8; --pink: #ff6fa8;
  --font-t: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-b: "Nunito", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--text); font-family: var(--font-b); overflow: hidden; overscroll-behavior: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { -webkit-user-drag: none; }
#app { position: fixed; inset: 0; max-width: 560px; margin: 0 auto; overflow: hidden; background: var(--night); }
@media (min-width: 561px) { body { background: radial-gradient(circle at 50% 30%, #28697c, #09252d); } #app { box-shadow: 0 0 80px rgba(0,0,0,.6); } }
.screen { position: absolute; inset: 0; display: none; }
.screen.is-on { display: block; animation: scr-in .35s ease; }
@keyframes scr-in { from { opacity: 0; } }
canvas { display: block; touch-action: none; }

/* ---------- textos e botões cartoon ---------- */
.t-title { font-family: var(--font-t); font-weight: 700; letter-spacing: .01em; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.stroke { -webkit-text-stroke: 1px rgba(60,20,0,.5); paint-order: stroke fill; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 18px; font-family: var(--font-t); font-weight: 700; font-size: 20px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.3);
  background: linear-gradient(180deg, #8be36f, #3fa52e); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.18), 0 5px 0 #23701a, 0 8px 18px rgba(0,0,0,.35); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 #23701a, 0 3px 8px rgba(0,0,0,.3); }
.btn--gold { background: linear-gradient(180deg, #ffe08a, #f2a81d); color: #6b3a00; text-shadow: 0 1px 0 rgba(255,255,255,.5); box-shadow: inset 0 3px 0 rgba(255,255,255,.6), inset 0 -4px 0 rgba(0,0,0,.12), 0 5px 0 #b06d00, 0 8px 18px rgba(0,0,0,.35); }
.btn--blue { background: linear-gradient(180deg, #7fd4ff, #2b8ee0); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.18), 0 5px 0 #165c9c, 0 8px 18px rgba(0,0,0,.35); }
.btn--red { background: linear-gradient(180deg, #ff9a8a, #e4473a); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.18), 0 5px 0 #a3241a, 0 8px 18px rgba(0,0,0,.35); }
.btn--ghost { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); text-shadow: none; }
.btn--sm { min-height: 40px; font-size: 16px; padding: 0 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { filter: grayscale(.8) brightness(.8); pointer-events: none; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #7fd4ff, #2b8ee0); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 4px 0 #165c9c, 0 6px 12px rgba(0,0,0,.35); font-size: 22px; }
.round:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 1px 0 #165c9c; }
.round img { width: 30px; height: 30px; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b5c; color: #fff; font: 800 12px/22px var(--font-b); text-align: center; box-shadow: 0 2px 0 #a3001f; }
.dot { position: absolute; top: 0; right: 0; width: 14px; height: 14px; border-radius: 50%; background: #ff3b5c; border: 2px solid #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }

/* ---------- Abertura ---------- */
#splash { background: #113641 center/cover no-repeat; }
#splash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,54,65,.15), rgba(17,54,65,.05) 40%, rgba(17,54,65,.75)); }
.splash__in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(40px + var(--safe-t)) 24px calc(30px + var(--safe-b)); }
.splash__logo { width: min(92%, 440px); filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); animation: logo-in 1s cubic-bezier(.2,1.4,.4,1) both, float 4s ease-in-out 1s infinite; }
@keyframes logo-in { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-10px); } }
.splash__sun { position: absolute; top: 18%; right: 6%; width: 120px; opacity: .9; animation: spin 40s linear infinite; z-index: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.splash__bottom { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loadbar { width: 100%; height: 14px; border-radius: 10px; background: rgba(0,0,0,.4); box-shadow: inset 0 2px 4px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.25); overflow: hidden; }
.loadbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5bc0f8, #8be3ff, #f7c04a); border-radius: 10px; transition: width .2s; }
.splash__hint { font-family: var(--font-t); font-size: 20px; text-shadow: 0 2px 0 rgba(0,0,0,.4); animation: pulse 1.4s infinite; }
.splash__by { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .85; }
.splash__by img { height: 28px; }

/* ---------- Mapa ---------- */
#map { background: #10213f; }
#mapCanvas { position: absolute; inset: 0; }
.topbar { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; gap: 8px; padding: calc(10px + var(--safe-t)) 10px 10px; pointer-events: none; }
.pill { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 4px; border-radius: 22px; background: linear-gradient(180deg, rgba(22,75,92,.92), rgba(11,42,51,.92)); box-shadow: inset 0 0 0 2px rgba(247,192,74,.7), 0 4px 10px rgba(0,0,0,.4); font: 800 16px var(--font-t); }
.pill img { width: 34px; height: 34px; margin-left: -2px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.pill small { font: 700 11px var(--font-b); color: var(--muted); }
.pill .plus { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #8be36f, #3fa52e); display: grid; place-items: center; font-size: 18px; line-height: 1; margin-right: -6px; box-shadow: 0 2px 0 #23701a; }
.pill--grow { flex: 1; justify-content: center; }
.map__world { position: absolute; left: 50%; top: calc(62px + var(--safe-t)); transform: translateX(-50%); z-index: 4; pointer-events: none; padding: 4px 16px; border-radius: 14px; background: rgba(0,0,0,.35); font: 700 14px var(--font-t); letter-spacing: .04em; white-space: nowrap; text-shadow: 0 2px 0 rgba(0,0,0,.4); transition: opacity .3s; }
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-around; align-items: flex-end; padding: 10px 8px calc(10px + var(--safe-b)); background: linear-gradient(0deg, rgba(5,25,31,.85), transparent); pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock__btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 11px var(--font-t); text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.dock__btn .round { width: 52px; height: 52px; }
.dock__play { min-width: 150px; min-height: 60px; font-size: 22px; margin-bottom: 4px; animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }

/* ---------- Jogo ---------- */
#play { background: #102040 center/cover no-repeat; }
#play::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 25%, rgba(0,0,0,.05) 75%, rgba(0,0,0,.45)); pointer-events: none; }
#playCanvas { position: absolute; inset: 0; z-index: 1; }
.hud { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: calc(20px + var(--safe-t)) 12px 0 14px; pointer-events: none; }
.hud > * { pointer-events: auto; }
/* placa principal: jogadas + objetivo + sair */
.hud__top { position: relative; display: flex; align-items: center; gap: 8px; padding: 14px 10px 8px 10px; border-radius: 24px;
  background: linear-gradient(180deg, #378eab 0%, #206b82 45%, #124e60 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.25), 0 0 0 3px #f7c04a, 0 0 0 6px #7a4a22, 0 8px 18px rgba(0,0,0,.5); }
.hud__top::after { content: ""; position: absolute; left: 14px; right: 14px; top: 4px; height: 40%; border-radius: 18px 18px 40% 40%; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)); pointer-events: none; }
.moves { position: relative; flex: none; width: 76px; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 4px 4px; border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 0%, #7fd4ff 0%, #2b8ee0 45%, #134a86 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.25), inset 0 0 0 2px rgba(255,255,255,.25), 0 3px 0 #0d3a6b; }
.moves::before { content: "Jogadas"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 10px; font: 700 11px var(--font-t); letter-spacing: .1em; text-transform: uppercase; color: #6b3a00; background: linear-gradient(180deg, #ffe08a, #f2a81d); box-shadow: 0 2px 0 #b06d00; white-space: nowrap; }
.moves b { font: 700 36px/1 var(--font-t); color: #fff; -webkit-text-stroke: 2px #0d3a6b; paint-order: stroke fill; text-shadow: 0 3px 0 #0d3a6b; }
.moves small { display: none; }
.moves.is-low { animation: low .8s infinite; background: radial-gradient(120% 90% at 50% 0%, #ffb19a 0%, #e4473a 50%, #8f1d14 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -4px 0 rgba(0,0,0,.25), 0 3px 0 #6b1209; }
.moves.is-low b { -webkit-text-stroke-color: #6b1209; text-shadow: 0 3px 0 #6b1209; }
@keyframes low { 50% { transform: scale(1.08); } }
.hud__goal { position: relative; flex: 1; min-width: 0; min-height: 58px; display: flex; align-items: center; justify-content: center; padding: 14px 6px 6px; border-radius: 16px; background: rgba(3,28,35,.55); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), inset 0 0 0 2px rgba(139,227,255,.35); }
.hud__tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 12px; border-radius: 10px; font: 700 11px var(--font-t); letter-spacing: .12em; text-transform: uppercase; color: #6b3a00; background: linear-gradient(180deg, #ffe08a, #f2a81d); box-shadow: 0 2px 0 #b06d00; white-space: nowrap; }
.objs { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.obj { position: relative; display: flex; align-items: center; }
.obj img { width: 40px; height: 40px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.obj b { position: relative; margin-left: -6px; font: 700 22px/1 var(--font-t); color: #fff; -webkit-text-stroke: 2px #0e3f52; paint-order: stroke fill; text-shadow: 0 2px 0 #0e3f52; }
.obj[data-type="score"] b { font-size: 18px; margin-left: 2px; }
.obj.is-done b { display: none; }
.obj.is-done::after { content: ""; position: absolute; right: -6px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #3fa52e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0,0,0,.4); }
.obj.bump img { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.35); } }
/* botão de jogo (sair) */
.gbtn { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: radial-gradient(circle at 35% 28%, #ffc2b8 0%, #ff6a55 40%, #c52a1c 85%); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), inset 0 3px 4px rgba(255,255,255,.55), 0 0 0 3px #fff3d6, 0 0 0 5px #7a4a22, 0 4px 8px rgba(0,0,0,.45); transition: transform .1s; }
.gbtn:active { transform: scale(.9); }
.gbtn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; filter: drop-shadow(0 2px 0 rgba(110,15,5,.7)); }
/* faixa de pontos com o Patacão ao lado */
.hud__bottom { display: flex; align-items: center; gap: 4px; margin-top: 6px; padding-left: 2px; }
.mascot { position: relative; flex: none; width: 66px; height: 66px; margin: -4px 0 -8px; }
.mascot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); animation: bob 2.4s ease-in-out infinite; transform-origin: 50% 90%; cursor: pointer; }
.mascot img.react { animation: react .6s cubic-bezier(.2,1.6,.4,1), bob 2.4s ease-in-out .6s infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes react { 0% { transform: scale(.7); } 60% { transform: scale(1.15) rotate(4deg); } }
.hud__score { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 18px; background: linear-gradient(180deg, rgba(26,92,112,.95), rgba(11,48,59,.95)); box-shadow: inset 0 0 0 2px rgba(247,192,74,.8), 0 5px 12px rgba(0,0,0,.45); }
.score__n { flex: none; display: flex; flex-direction: column; line-height: 1; min-width: 74px; }
.score__n small { font: 800 9px var(--font-b); letter-spacing: .12em; text-transform: uppercase; color: #ceeef8; }
.score__n b { font: 700 24px/1.05 var(--font-t); background: linear-gradient(180deg, #fff6c8, #ffd04a 55%, #f29a1a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #5a2a00); }
.starbar { position: relative; flex: 1; height: 16px; margin-right: 6px; border-radius: 10px; background: linear-gradient(180deg, #072731, #165062); box-shadow: inset 0 2px 4px rgba(0,0,0,.7), 0 0 0 2px rgba(255,255,255,.18); }
.starbar span { position: absolute; inset: 2px auto 2px 2px; max-width: calc(100% - 4px); border-radius: 8px; background: linear-gradient(180deg, #fff3b0, #ffc93c 50%, #f29a1a); box-shadow: 0 0 10px rgba(255,200,60,.7); transition: width .35s; }
.starbar i { position: absolute; top: 50%; width: 30px; height: 30px; margin: -16px 0 0 -15px; background: url(../assets/sprites/ui/star.png) center/contain no-repeat; filter: grayscale(1) brightness(.55) drop-shadow(0 2px 2px rgba(0,0,0,.6)); transition: filter .3s, transform .3s; }
.starbar i.on { filter: drop-shadow(0 0 8px rgba(255,210,80,.9)); transform: scale(1.18); }
.bubble { position: absolute; left: 8px; top: 120px; z-index: 6; max-width: min(360px, calc(100% - 16px)); padding: 10px 14px; border-radius: 16px; background: var(--cream); color: #4a2a10; font: 700 14px/1.35 var(--font-b); box-shadow: 0 6px 16px rgba(0,0,0,.4); opacity: 0; transform: translateY(-6px) scale(.95); transition: opacity .25s, transform .25s; pointer-events: none; }
.bubble::before { content: ""; position: absolute; top: -8px; left: 30px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--cream); }
.bubble.is-on { opacity: 1; transform: none; pointer-events: auto; }
.boosters { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: center; gap: 12px; padding: 8px 10px calc(10px + var(--safe-b)); }
.boost { position: relative; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(34,109,132,.95), rgba(15,58,71,.95)); box-shadow: inset 0 0 0 2px rgba(247,192,74,.75), 0 5px 0 rgba(0,0,0,.35); transition: transform .15s; }
.boost img { width: 44px; height: 44px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
.boost .badge { background: #2b8ee0; box-shadow: 0 2px 0 #165c9c; }
.boost .badge.buy { background: #3fa52e; box-shadow: 0 2px 0 #23701a; }
.boost.is-active { transform: translateY(-6px) scale(1.08); box-shadow: inset 0 0 0 3px #fff, 0 0 22px #f7c04a, 0 5px 0 rgba(0,0,0,.35); }
.toolhint { position: absolute; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%); z-index: 4; padding: 8px 14px; border-radius: 14px; background: rgba(0,0,0,.65); font: 700 14px var(--font-b); white-space: nowrap; }

/* mensagens grandes ("Iluminado!") */
.shout { position: absolute; left: 50%; top: 42%; z-index: 8; transform: translate(-50%, -50%); pointer-events: none; font: 700 clamp(40px, 12vw, 64px)/1 var(--font-t); text-align: center; white-space: nowrap; color: #fff; background: linear-gradient(180deg, #fff 10%, #ffe27a 45%, #ff9d2e 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 0 #7a2d00) drop-shadow(0 0 18px rgba(255,200,80,.8)); animation: shout 1.3s cubic-bezier(.2,1.5,.4,1) forwards; }
.shout.blue { background-image: linear-gradient(180deg, #fff 10%, #9be2ff 45%, #2b8ee0 90%); filter: drop-shadow(0 4px 0 #0d3a6b) drop-shadow(0 0 18px rgba(120,200,255,.9)); }
.shout.purple { background-image: linear-gradient(180deg, #fff 10%, #c8f0ff 45%, #5cd7ff 90%); filter: drop-shadow(0 4px 0 #18627c) drop-shadow(0 0 18px rgba(150,227,255,.9)); }
.shout.green { background-image: linear-gradient(180deg, #fff 10%, #c8ffb0 45%, #3fa52e 90%); filter: drop-shadow(0 4px 0 #1b4d12) drop-shadow(0 0 18px rgba(140,240,110,.9)); }
.shout small { display: block; font-size: .38em; margin-top: 6px; }
.shout { text-transform: uppercase; letter-spacing: .03em; font-size: clamp(46px, 14vw, 76px) !important; line-height: 1 !important; white-space: normal !important; width: 94%; max-width: 520px; }
.shout small { text-transform: none; letter-spacing: 0; }
@keyframes shout { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-6deg); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.12) rotate(2deg); opacity: 1; } 40% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -64%) scale(1.04); opacity: 0; } }

/* ---------- Modais ---------- */
.modal { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4,20,24,.62); backdrop-filter: blur(3px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.panel { position: relative; width: 100%; max-width: 380px; max-height: calc(100% - 20px); overflow: auto; padding: 46px 20px 22px; border-radius: 28px; text-align: center; background: linear-gradient(180deg, #247c96, #104555 70%); box-shadow: inset 0 0 0 3px #f7c04a, inset 0 0 0 7px rgba(122,74,34,.85), inset 0 0 0 9px rgba(247,192,74,.5), 0 20px 50px rgba(0,0,0,.6); animation: pop .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.panel__ribbon { position: relative; margin: -30px auto 12px; width: fit-content; min-width: 210px; padding: 10px 26px 12px; border-radius: 14px; background: linear-gradient(180deg, #ffe08a, #f2a81d); color: #6b3a00; font: 700 24px var(--font-t); text-shadow: 0 1px 0 rgba(255,255,255,.6); box-shadow: inset 0 3px 0 rgba(255,255,255,.6), 0 5px 0 #b06d00, 0 8px 16px rgba(0,0,0,.4); }
.panel__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #ff9a8a, #e4473a); box-shadow: 0 3px 0 #a3241a; font: 700 20px var(--font-t); z-index: 2; }
.panel h3 { font: 700 20px var(--font-t); margin: 6px 0; }
.panel p { margin: 6px 0; color: var(--muted); font-weight: 700; }
.panel .stack { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.panel .row2 { display: flex; gap: 10px; }
.panel .row2 > * { flex: 1; }
.goal-list { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.goal { width: 90px; padding: 10px 6px; border-radius: 16px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.goal img { width: 44px; height: 44px; display: block; margin: 0 auto 4px; }
.goal b { font: 700 18px var(--font-t); display: block; }
.goal small { font-size: 11px; color: var(--muted); font-weight: 700; display: block; line-height: 1.2; }
.prebo { display: flex; justify-content: center; gap: 10px; margin: 10px 0 4px; }
.prebo button { position: relative; width: 64px; height: 64px; border-radius: 16px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); display: grid; place-items: center; }
.prebo button img { width: 46px; height: 46px; }
.prebo button[aria-pressed="true"] { background: rgba(247,192,74,.25); box-shadow: inset 0 0 0 3px #f7c04a, 0 0 14px rgba(247,192,74,.6); }
.prebo button .badge { background: #2b8ee0; box-shadow: none; }
.bigstars { display: flex; justify-content: center; align-items: flex-end; gap: 4px; height: 92px; margin: 4px 0 6px; }
.bigstars img { width: 72px; height: 72px; filter: grayscale(1) brightness(.45); transform: scale(.85); transition: filter .3s, transform .4s cubic-bezier(.2,1.8,.4,1); }
.bigstars img:nth-child(2) { width: 90px; height: 90px; margin-bottom: 10px; }
.bigstars img.on { filter: drop-shadow(0 0 14px rgba(255,210,80,.9)); transform: scale(1); }
.reward { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 14px; background: rgba(0,0,0,.3); font: 700 20px var(--font-t); margin: 4px; }
.reward img { width: 30px; height: 30px; }
.mini-rank { margin-top: 12px; text-align: left; border-radius: 14px; background: rgba(0,0,0,.25); padding: 6px; }
.rank-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-weight: 800; font-size: 14px; }
.rank-row img { width: 34px; height: 34px; }
.rank-row .n { width: 26px; text-align: center; font: 700 16px var(--font-t); color: var(--gold); }
.rank-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row.me { background: rgba(247,192,74,.25); box-shadow: inset 0 0 0 2px #f7c04a; }
.tabs { display: flex; gap: 6px; margin: 4px 0 10px; }
.tabs button { flex: 1; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.25); font: 700 14px var(--font-t); }
.tabs button[aria-selected="true"] { background: #f7c04a; color: #5a2e00; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.shop-item { padding: 10px 8px; border-radius: 16px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.shop-item img { width: 50px; height: 50px; }
.shop-item b { font: 700 14px var(--font-t); }
.shop-item small { font-size: 11px; color: var(--muted); line-height: 1.2; min-height: 26px; }
.shop-item .btn { min-height: 36px; font-size: 15px; padding: 0 12px; width: 100%; }
.daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.daily-grid div { padding: 8px 2px; border-radius: 12px; background: rgba(0,0,0,.28); font: 700 12px var(--font-t); }
.daily-grid div img { width: 30px; height: 30px; display: block; margin: 2px auto; }
.daily-grid div.done { opacity: .45; }
.daily-grid div.today { background: rgba(247,192,74,.3); box-shadow: inset 0 0 0 2px #f7c04a; animation: pulse 1.4s infinite; }
.daily-grid div:last-child { grid-column: span 2; }
.wheel { position: relative; width: 270px; height: 270px; margin: 8px auto; }
.wheel__disc { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 8px #7a4a22, 0 0 0 11px #f7c04a, 0 10px 30px rgba(0,0,0,.5); transition: transform 4.2s cubic-bezier(.12,.8,.18,1); }
.wheel__pin { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border: 16px solid transparent; border-top: 30px solid #ff3b5c; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); z-index: 2; }
.wheel__hub { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: url(../assets/sprites/ui/coin.webp) center/80% no-repeat, radial-gradient(#fff3c4, #f2a81d); box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.field { width: 100%; height: 48px; border-radius: 14px; border: 0; padding: 0 14px; font: 700 18px var(--font-t); text-align: center; background: var(--cream); color: #4a2a10; }
.avatars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0; max-height: 180px; overflow: auto; }
.avatars button { aspect-ratio: 1; border-radius: 14px; background: rgba(0,0,0,.25); }
.avatars button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px #f7c04a; background: rgba(247,192,74,.25); }
.avatars img { width: 100%; height: 100%; object-fit: contain; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px; font: 700 17px var(--font-t); border-bottom: 1px solid rgba(255,255,255,.1); }
.tgl { width: 58px; height: 32px; border-radius: 16px; background: rgba(0,0,0,.4); position: relative; transition: background .2s; }
.tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .2s; }
.tgl[aria-checked="true"] { background: #3fa52e; }
.tgl[aria-checked="true"]::after { left: 29px; }
.toast { position: absolute; left: 50%; top: calc(70px + var(--safe-t)); z-index: 40; transform: translateX(-50%); padding: 10px 18px; border-radius: 16px; background: rgba(9,41,51,.92); box-shadow: inset 0 0 0 2px #f7c04a; font: 700 15px var(--font-b); white-space: nowrap; animation: toast 2.4s forwards; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.coinfly { position: absolute; z-index: 50; width: 30px; height: 30px; pointer-events: none; transition: transform .7s cubic-bezier(.5,-0.3,.6,1), opacity .7s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* botões de voltar/sair e engrenagem de som */
.backbtn, .exitbtn { flex: none; pointer-events: auto; width: 44px; height: 44px; color: #fff; text-decoration: none; background: linear-gradient(180deg, #ff9a8a, #e4473a); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 4px 0 #a3241a, 0 6px 12px rgba(0,0,0,.35); }
.backbtn { width: 40px; height: 40px; background: linear-gradient(180deg, #7fd4ff, #2b8ee0); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 4px 0 #165c9c, 0 6px 12px rgba(0,0,0,.35); }
.splash__back { position: absolute; top: calc(14px + var(--safe-t)); left: 14px; z-index: 3; }
.boost--gear { width: 52px; background: linear-gradient(180deg, rgba(22,75,92,.95), rgba(11,42,51,.95)); font-size: 26px; }
.boost--gear span { filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.boosters { gap: 10px; }
.pill { white-space: nowrap; }
.pill small { font-size: 10px; }

/* barra de baixo: Música (toque direto) · turbinas · Ajustes */
.boosters { gap: 8px; align-items: flex-end; }
.boost { width: 56px; height: 56px; }
.boost img { width: 40px; height: 40px; }
.sidebtn { position: relative; width: 50px; height: 50px; margin-bottom: 3px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1;
  background: radial-gradient(circle at 35% 28%, #b9e8ff 0%, #2b8ee0 55%, #134a86 100%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), inset 0 2px 3px rgba(255,255,255,.6), 0 0 0 3px #f7c04a, 0 4px 6px rgba(0,0,0,.45); }
.sidebtn small { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font: 700 10px var(--font-t); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); white-space: nowrap; }
.sidebtn:active { transform: scale(.92); }
.sidebtn[aria-pressed="false"] { background: radial-gradient(circle at 35% 28%, #d6e3e6 0%, #7c7894 55%, #41555b 100%); }
.boosters { padding-bottom: calc(18px + var(--safe-b)); }

/* música e ajustes nos cantos, separados das 4 turbinas */
#boosters { padding-left: 72px; padding-right: 72px; }
.sidebtn--l, .sidebtn--r { position: absolute; bottom: calc(22px + var(--safe-b)); margin: 0; }
.sidebtn--l { left: 12px; } .sidebtn--r { right: 12px; }
/* voltar para a fase atual no mapa */
.gohome { position: absolute; right: 12px; bottom: calc(96px + var(--safe-b)); z-index: 6; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 21px; font: 700 15px var(--font-t); color: #6b3a00;
  background: linear-gradient(180deg, #ffe08a, #f2a81d); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 0 #b06d00, 0 6px 12px rgba(0,0,0,.4); animation: pop .3s cubic-bezier(.2,1.5,.4,1); }
.gohome:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 1px 0 #b06d00; }
.gohome[hidden] { display: none; }
/* barras de rolagem do jogo (sem a barra padrão do sistema) */
#app * { scrollbar-width: thin; scrollbar-color: #f7c04a rgba(0,0,0,.25); }
#app *::-webkit-scrollbar { width: 6px; height: 0; }
#app *::-webkit-scrollbar-track { background: rgba(0,0,0,.25); border-radius: 6px; }
#app *::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffe08a, #f2a81d); border-radius: 6px; }
#app *::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
.panel, .avatars, .mini-rank { overflow-x: hidden !important; }
.avatars { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-right: 4px; }

/* janela da fase — layout limpo */
.lv-sub { margin: 0 0 2px !important; font-size: 14px; }
.lv-boss { display: inline-block; margin-top: 4px; padding: 3px 12px; border-radius: 10px; font: 700 12px var(--font-t); color: #6b3a00; background: linear-gradient(180deg, #ffe08a, #f2a81d); }
.lv-stars { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 8px 0 12px; }
.lv-stars img { width: 40px; height: 40px; filter: grayscale(1) brightness(.45); }
.lv-stars img:nth-child(2) { width: 50px; height: 50px; }
.lv-stars img.on { filter: drop-shadow(0 0 8px rgba(255,210,80,.8)); }
.lv-card { display: flex; align-items: stretch; border-radius: 18px; overflow: hidden; background: rgba(3,23,29,.45); box-shadow: inset 0 0 0 2px rgba(139,227,255,.3); }
.lv-card__goals { flex: 1; display: flex; justify-content: center; gap: 14px; padding: 12px 8px; flex-wrap: wrap; }
.lv-goal { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.lv-goal img { width: 44px; height: 44px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.lv-goal b { font: 700 20px/1.1 var(--font-t); }
.lv-goal small { font: 700 11px/1.2 var(--font-b); color: var(--muted); max-width: 90px; }
.lv-card__moves { flex: none; width: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, #2b8ee0, #134a86); box-shadow: inset 2px 0 0 rgba(255,255,255,.15); }
.lv-card__moves b { font: 700 30px/1 var(--font-t); text-shadow: 0 2px 0 #0d3a6b; }
.lv-card__moves small { font: 800 10px var(--font-b); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.lv-streak { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding: 6px 12px; border-radius: 12px; background: rgba(63,165,46,.18); box-shadow: inset 0 0 0 1px rgba(139,227,111,.5); font-size: 13px; }
.lv-streak b { color: #8be36f; }
.lv-streak span { color: var(--muted); font-weight: 700; }
.lv-label { margin: 16px 0 2px; font: 700 12px var(--font-t); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prebo .badge.buy { background: #3fa52e; }
.lv-play { margin-top: 16px; }
.lv-cost { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding: 2px 8px 2px 4px; border-radius: 12px; background: rgba(0,0,0,.22); font-size: 15px; }
.lv-cost img { width: 20px; height: 20px; }

/* balão de som (música / efeitos) */
.soundpop { position: absolute; left: 10px; bottom: calc(88px + var(--safe-b)); z-index: 8; width: 220px; padding: 8px; border-radius: 18px;
  background: linear-gradient(180deg, #247c96, #104555); box-shadow: inset 0 0 0 2px #f7c04a, 0 10px 24px rgba(0,0,0,.5); animation: pop .25s cubic-bezier(.2,1.5,.4,1); }
.soundpop::after { content: ""; position: absolute; left: 26px; bottom: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: #f7c04a; }
.soundpop__row { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 12px; font: 700 15px var(--font-t); color: #fff; text-align: left; }
.soundpop__row + .soundpop__row { border-top: 1px solid rgba(255,255,255,.1); }
.soundpop__row span { font-size: 18px; } .soundpop__row .tgl { margin-left: auto; pointer-events: none; }
/* tela de vitória */
.win-score { margin: 6px auto 0; padding: 10px 14px 12px; border-radius: 18px; background: rgba(3,23,29,.45); box-shadow: inset 0 0 0 2px rgba(247,192,74,.6); }
.win-score small { display: block; font: 800 11px var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.win-score b { display: block; font: 700 40px/1.05 var(--font-t); background: linear-gradient(180deg, #fff6c8, #ffd04a 55%, #f29a1a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #5a2a00); }
.win-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip2 { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 14px; background: rgba(0,0,0,.3); font: 700 15px var(--font-t); }
.chip2 img { width: 24px; height: 24px; }
.chip2--gold { color: #6b3a00; background: linear-gradient(180deg, #ffe08a, #f2a81d); box-shadow: 0 2px 0 #b06d00; }
.chip2--green { color: #d9ffd0; background: rgba(63,165,46,.25); box-shadow: inset 0 0 0 1px rgba(139,227,111,.6); font-size: 13px; }
.chip2--blue { color: #dff3ff; background: rgba(43,142,224,.3); box-shadow: inset 0 0 0 1px rgba(127,212,255,.6); font-size: 13px; }
.win-rank-t { margin: 16px 0 6px; font: 700 12px var(--font-t); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.win-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.wheel__disc--img { box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.daily-hero { width: 110px; margin: -6px auto 0; display: block; filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)); animation: float 3s ease-in-out infinite; }
.dock__btn .round img { width: 36px; height: 36px; }
.chip2--chest img:first-child { width: 34px; height: 34px; }
/* moldura de borda de piscina (pedra clara + azulejo) e faixa listrada de boia — só CSS.
   Para usar uma arte pintada, salve assets/ui/panel.webp e ribbon.webp e troque aqui (ver prompts.html › Interface). */
.panel { max-width: 420px; padding: 50px 18px 20px; border-radius: 30px; overflow: visible !important; max-height: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 30%), repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.07) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.07) 31px 32px), linear-gradient(180deg, #1aa6cc, #0b6f99 60%, #08577a);
  box-shadow: 0 0 0 8px #fbf6ea, 0 0 0 11px #d9c9a4, 0 0 0 14px #f7c04a, 0 22px 50px rgba(0,0,0,.55), inset 0 4px 0 rgba(255,255,255,.25); }
.panel__close { top: -22px; right: -22px; z-index: 3; }
.panel__ribbon { position: relative; z-index: 2; margin: -82px auto 10px; width: fit-content; min-width: 220px; max-width: calc(100% + 30px); padding: 12px 34px 14px; border-radius: 40px; color: #fff; font-size: 22px; text-shadow: 0 2px 0 rgba(120,20,20,.55);
  background: repeating-linear-gradient(90deg, #ff4d5a 0 34px, #ff6b75 34px 36px, #ffffff 36px 70px, #f1f1f1 70px 72px); box-shadow: inset 0 -5px 0 rgba(0,0,0,.15), inset 0 4px 0 rgba(255,255,255,.5), 0 6px 0 #b3202b, 0 10px 18px rgba(0,0,0,.35); }
.panel__ribbon { -webkit-text-stroke: 5px #b3202b; paint-order: stroke fill; }
.shop-grid { max-height: 52vh; overflow-y: auto; padding-right: 4px; }

/* ===================== CARTAS ===================== */
.dockcard { width: 26px; height: 34px; border-radius: 5px; background: linear-gradient(135deg, #ffe27a, #8be3ff 55%, #5bc0f8); box-shadow: 0 0 0 2px #fff, 4px 3px 0 -1px rgba(255,255,255,.55); transform: rotate(-8deg); }
.tcard { --rx: 0deg; --ry: 0deg; --hx: 50%; --hy: 50%; width: 100%; aspect-ratio: 3 / 4.2; perspective: 900px; cursor: pointer; }
.tcard--big { width: min(78vw, 300px); margin: 0 auto; }
.tcard__in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3,1.4,.5,1); transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.tcard__in.is-flipped { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
.tcard__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; padding: 8px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 35%, #113641), #09262f 70%); box-shadow: 0 0 0 3px var(--fr, #c9b98a), 0 0 0 5px #3a2a14, 0 14px 30px rgba(0,0,0,.6); }
.tcard__back { transform: rotateY(180deg); }
.tcard--c { --fr: #cfd6e0; } .tcard--r { --fr: #5bc0f8; } .tcard--e { --fr: #7bdbff; } .tcard--l { --fr: #f7c04a; }
.tcard--l { box-shadow: 0 0 0 3px #f7c04a, 0 0 0 5px #7a4a22, 0 0 24px rgba(247,192,74,.7), 0 14px 30px rgba(0,0,0,.6); }
.tcard__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 6px; }
.tcard__top b { font: 700 clamp(13px, 4.4vw, 18px)/1.1 var(--font-t); text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.tcard__rar { color: var(--fr); font-size: 12px; letter-spacing: 1px; text-shadow: 0 0 6px var(--fr); }
.tcard__art { position: relative; flex: 1; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cc) 55%, #000), #030d0f 80%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.tcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.tcard__ph img { width: 46%; filter: drop-shadow(0 0 18px var(--cc)) saturate(0) brightness(1.4); opacity: .85; mix-blend-mode: screen; }
.tcard__ph small { font: 700 11px var(--font-b); color: rgba(255,255,255,.6); }
.tcard__bot { display: flex; justify-content: space-between; padding: 6px 4px 0; font: 700 11px var(--font-b); color: #ceeef8; }
.tcard__holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35; background: radial-gradient(circle at var(--hx) var(--hy), rgba(255,255,255,.7), transparent 40%), linear-gradient(115deg, transparent 20%, rgba(255,120,200,.35) 35%, rgba(120,220,255,.35) 50%, rgba(255,240,120,.35) 65%, transparent 80%); }
.tcard--c .tcard__holo { opacity: .15; }
.tcard__info { margin: 4px 0 8px; display: grid; gap: 6px; }
.tcard__info div { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(0,0,0,.3); font-size: 12px; }
.tcard__info dt { color: #acd4e0; font-weight: 700; } .tcard__info dd { margin: 0; font-weight: 800; text-align: right; }
.rar-c { color: #cfd6e0 } .rar-r { color: #7fd4ff } .rar-e { color: #a6e7ff } .rar-l { color: #ffd36b }
.tcard__fact { flex: 1; margin: 0; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.06); font: 700 13px/1.4 var(--font-b); color: #effbff; text-align: left; overflow: auto; }
.tcard__src { position: relative; width: 22px; height: 22px; border-radius: 50%; font-size: 14px; color: #acd4e0; opacity: .7; }
.tcard__tip { position: absolute; right: 0; top: 26px; z-index: 3; width: 210px; padding: 8px 10px; border-radius: 10px; background: rgba(5,25,31,.95); box-shadow: 0 0 0 1px rgba(247,192,74,.5); font: 600 10.5px/1.45 var(--font-b); color: #ceeef8; text-align: left; opacity: 0; pointer-events: none; transition: opacity .2s; }
.tcard__src:hover .tcard__tip, .tcard__src.is-on .tcard__tip { opacity: 1; }
.card-hint { font-size: 12px; margin-top: 12px !important; }
.modal--card .panel { padding-top: 24px; }
/* coleção */
.col-head { display: flex; align-items: center; gap: 10px; }
.col-bar { flex: 1; height: 14px; border-radius: 8px; background: rgba(0,0,0,.4); overflow: hidden; } .col-bar span { display: block; height: 100%; background: linear-gradient(90deg, #5bc0f8, #8be3ff, #f7c04a); }
.col-head b { font: 700 16px var(--font-t); }
.col-sub { font-size: 13px; margin: 6px 0 !important; }
.col-tabs { display: flex; gap: 4px; margin: 8px 0; } .col-tabs button { flex: 1; padding: 6px 2px; border-radius: 10px; background: rgba(0,0,0,.3); font: 700 11px var(--font-t); }
.col-tabs button[aria-pressed="true"] { background: #f7c04a; color: #5a2e00; }
.col-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; padding: 4px 4px 4px 2px; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.mini[hidden] { display: none; }
.mini__art { width: 100%; aspect-ratio: 3 / 4.2; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--cc, #555) 60%, #000), #030d0f); box-shadow: 0 0 0 2px var(--fr, #cfd6e0); }
.mini__art img { width: 100%; height: 100%; object-fit: cover; }
.mini__art img[src*="gems/white"] { width: 55%; height: auto; mix-blend-mode: screen; opacity: .8; }
.mini small { width: 100%; font: 700 10px/1.15 var(--font-b); color: #e4f9ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini--c { --fr: #cfd6e0; } .mini--r { --fr: #5bc0f8; } .mini--e { --fr: #7bdbff; } .mini--l { --fr: #f7c04a; }
.mini--lock .mini__art { background: repeating-linear-gradient(45deg, #113641 0 8px, #17424e 8px 16px); box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.mini--lock .mini__art b { font: 700 22px var(--font-t); color: rgba(255,255,255,.25); }
.mini--lock small { color: #83adb9; }
/* revelação */
.reveal { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: radial-gradient(circle at 50% 45%, rgba(28,98,122,.92), rgba(4,20,24,.96)); animation: fade .3s; overflow: hidden; }
.reveal.is-out { opacity: 0; transition: opacity .25s; }
.reveal__rays { position: absolute; left: 50%; top: 45%; width: 1200px; height: 1200px; margin: -600px; background: repeating-conic-gradient(rgba(255,226,122,.18) 0 8deg, transparent 8deg 20deg); animation: spin 12s linear infinite; }
.reveal--e .reveal__rays { background: repeating-conic-gradient(rgba(150,227,255,.22) 0 8deg, transparent 8deg 20deg); }
.reveal__glow { position: absolute; left: 50%; top: 45%; width: 360px; height: 360px; margin: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,180,.55), transparent 65%); animation: pulse 1.6s infinite; }
.reveal__title { position: relative; font: 700 34px var(--font-t); background: linear-gradient(180deg, #fff 10%, #ffe27a 50%, #ff9d2e 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #7a2d00); animation: rv-title .7s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes rv-title { from { transform: scale(.3); opacity: 0; } }
.reveal--l .reveal__title { font-size: 38px; }
.reveal__card { position: relative; animation: card-in 1.05s cubic-bezier(.2,1.1,.3,1) both; }
@keyframes card-in { 0% { transform: scale(.1) rotate(-720deg); opacity: 0; } 70% { transform: scale(1.12) rotate(8deg); opacity: 1; } 100% { transform: none; } }
.reveal__info { position: relative; font: 700 15px var(--font-b); color: #e4f9ff; text-align: center; }
.reveal__info b { color: #ffd36b; }
.reveal__actions { position: relative; display: flex; gap: 10px; }
.reveal__spark { position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-radius: 50%; opacity: 0; animation: spark 1.1s ease-out forwards; box-shadow: 0 0 10px currentColor; }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scale(.3); } }
.ph-gem { width: 52%; filter: drop-shadow(0 0 14px rgba(255,255,255,.35)); }
.mini__art .ph-gem { width: 60%; }
.mini__art { position: relative; }
.mini__art .tcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal--card .panel { max-width: 340px; }
.modal--card .tcard--big { width: min(66vw, 250px); }

/* SPLASH! (Pato Jato) */
.shout.electric { font-size: clamp(34px, 10.5vw, 58px) !important; width: auto; max-width: 92%; white-space: nowrap !important; background-image: linear-gradient(180deg, #ffffff 5%, #fff36b 40%, #5bc0f8 75%, #2b5ee0 100%); filter: drop-shadow(0 4px 0 #0b2a6b) drop-shadow(0 0 14px rgba(120,220,255,1)) drop-shadow(0 0 30px rgba(255,240,120,.8)); animation-name: shout-zap; letter-spacing: .02em; }
.shout.electric::before, .shout.electric::after { content: "⚡"; position: absolute; top: 50%; font-size: .7em; -webkit-text-fill-color: initial; filter: drop-shadow(0 0 10px #fff36b); animation: bolt .18s steps(2) infinite; }
.shout.electric::before { left: -.75em; transform: translateY(-50%) rotate(-15deg); } .shout.electric::after { right: -.75em; transform: translateY(-50%) rotate(15deg) scaleX(-1); }
@keyframes bolt { 50% { opacity: .3; } }
@keyframes shout-zap {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(-8deg); opacity: 0; }
  14% { transform: translate(-50%, -50%) scale(1.25) rotate(3deg); opacity: 1; }
  18% { transform: translate(-46%, -52%) scale(1.15) rotate(-3deg); } 22% { transform: translate(-54%, -48%) scale(1.18) rotate(3deg); }
  26% { transform: translate(-47%, -51%) scale(1.12) rotate(-2deg); } 30% { transform: translate(-53%, -49%) scale(1.1) rotate(2deg); }
  34% { transform: translate(-48%, -50%) scale(1.06); } 38% { transform: translate(-52%, -50%) scale(1.04); }
  44% { transform: translate(-50%, -50%) scale(1); } 82% { opacity: 1; filter: drop-shadow(0 4px 0 #0b2a6b) drop-shadow(0 0 22px rgba(120,220,255,1)); }
  100% { transform: translate(-50%, -58%) scale(1.08); opacity: 0; } }
#play.is-zap #playCanvas, #play.is-zap .hud, #play.is-zap .boosters { animation: zapshake .6s cubic-bezier(.36,.07,.19,.97); }
#play.is-zap::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; box-shadow: inset 0 0 0 4px rgba(150,230,255,.9), inset 0 0 60px 10px rgba(91,192,248,.6); animation: zapedge .6s ease-out forwards; }
@keyframes zapedge { 0%, 30% { opacity: 1; } 15% { opacity: .4; } 100% { opacity: 0; } }
@keyframes zapshake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(5px, -3px); } 30%, 50%, 70% { transform: translate(-8px, 4px) rotate(-.4deg); } 40%, 60% { transform: translate(8px, -4px) rotate(.4deg); } }

/* CHUVA DE DINHEIRO! — Pato Arco-Íris */
.shout.rainbow { font-size: clamp(26px, 8.4vw, 50px) !important; -webkit-text-stroke: 1.5px rgba(7,78,113,.55); width: auto; max-width: 94%; white-space: nowrap !important; letter-spacing: .02em;
  background-image: linear-gradient(90deg, #ff5f6d, #ffc371, #fff36b, #6bff95, #5bc0f8, #6bd6ff, #ff6bd6, #ff5f6d); background-size: 300% 100%;
  filter: drop-shadow(0 4px 0 #084460) drop-shadow(0 0 16px rgba(255,255,255,.95)) drop-shadow(0 0 32px rgba(120,211,255,.85));
  animation-name: shout-total, rainbow-run; animation-duration: 1.3s, .9s; animation-timing-function: ease-out, linear; animation-iteration-count: 1, infinite; animation-fill-mode: forwards, none; }
.shout.rainbow::before, .shout.rainbow::after { content: "✦"; position: absolute; top: 50%; font-size: .75em; -webkit-text-fill-color: #fff; filter: drop-shadow(0 0 10px #ff6bd6) drop-shadow(0 0 14px #5bc0f8); animation: sparkle-spin .7s linear infinite; }
.shout.rainbow::before { left: -.8em; } .shout.rainbow::after { right: -.8em; }
@keyframes rainbow-run { to { background-position: 300% 0; } }
@keyframes sparkle-spin { from { transform: translateY(-50%) rotate(0) scale(1); } 50% { transform: translateY(-50%) rotate(180deg) scale(1.35); } to { transform: translateY(-50%) rotate(360deg) scale(1); } }
@keyframes shout-total {
  0% { transform: translate(-50%, -50%) scale(.1); opacity: 0; }
  12% { transform: translate(-50%, -50%) scale(1.45); opacity: 1; }
  16% { transform: translate(-45%, -53%) scale(1.3) rotate(-4deg); } 20% { transform: translate(-55%, -47%) scale(1.32) rotate(4deg); }
  24% { transform: translate(-46%, -52%) scale(1.2) rotate(-3deg); } 28% { transform: translate(-54%, -48%) scale(1.18) rotate(3deg); }
  33% { transform: translate(-48%, -51%) scale(1.08) rotate(-1deg); } 38% { transform: translate(-52%, -49%) scale(1.04); }
  45% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(1.12); opacity: 0; } }
#play.is-total #playCanvas, #play.is-total .hud, #play.is-total .boosters { animation: totalshake 1s cubic-bezier(.36,.07,.19,.97); }
#play.is-total::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.9), inset 0 0 70px 16px rgba(255,107,214,.6), inset 0 0 120px 30px rgba(91,192,248,.45);
  animation: totaledge 1s ease-out forwards, total-hue 1s linear; }
@keyframes totaledge { 0% { opacity: 1; } 10% { opacity: .5; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes total-hue { to { filter: hue-rotate(360deg); } }
@keyframes totalshake { 6%, 94% { transform: translate(-3px, 2px); } 12%, 88% { transform: translate(8px, -5px) rotate(.4deg); } 18%, 36%, 54%, 72% { transform: translate(-12px, 6px) rotate(-.7deg) scale(1.01); } 27%, 45%, 63%, 81% { transform: translate(12px, -6px) rotate(.7deg) scale(1.01); } }

/* botão discreto de voz (acima do Som) */
.voicebtn { position: absolute; left: 20px; bottom: calc(96px + var(--safe-b)); z-index: 5; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(11,43,52,.38); border: 1px solid rgba(255,255,255,.28); opacity: .6; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .2s, transform .15s; }
.voicebtn img { width: 22px; height: 22px; object-fit: contain; }
.voicebtn:hover, .voicebtn:focus-visible { opacity: 1; }
.voicebtn:active { transform: scale(.9); }
.voicebtn[aria-pressed="false"] { opacity: .55; }
.voicebtn[aria-pressed="false"] img, .voicebtn[aria-pressed="false"] svg { opacity: .55; }
.voicebtn[aria-pressed="false"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(11,43,52,.5); transform: translate(-50%, -50%) rotate(-45deg); }
.soundpop { width: 236px; }
.loadbar { transition: opacity .3s; } .loadbar.is-done { opacity: 0; } .loadbar[hidden] { display: none; }
/* miolo da roleta: fica parado enquanto o disco gira */
.wheel__axle { position: absolute; left: 50%; top: 50%; width: 23.55%; height: 23.55%; transform: translate(-50%, -50%); background: center/100% no-repeat; pointer-events: none; z-index: 2; }
.wheel__pin { z-index: 3; }

/* Roda da Sorte: giro e comemoração */
.wheel__disc { will-change: transform; }
.wheel__rays { position: absolute; left: 50%; top: 50%; width: 170%; height: 170%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0; z-index: 0;
  background: repeating-conic-gradient(rgba(255,226,122,.22) 0 9deg, transparent 9deg 22.5deg); -webkit-mask: radial-gradient(circle, #000 30%, transparent 68%); mask: radial-gradient(circle, #000 30%, transparent 68%); transition: opacity .4s; }
.wheel__disc, .wheel__axle { position: relative; z-index: 1; } .wheel__axle { position: absolute; z-index: 2; }
.wheel.is-spinning .wheel__rays { opacity: .55; animation: wrays 3s linear infinite; }
.wheel.is-won .wheel__rays { opacity: 1; animation: wrays 6s linear infinite; }
.wheel.is-jackpot .wheel__rays { background: repeating-conic-gradient(rgba(255,240,170,.35) 0 9deg, rgba(150,227,255,.18) 9deg 13deg, transparent 13deg 22.5deg); }
@keyframes wrays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.wheel.is-spinning .wheel__disc { filter: drop-shadow(0 0 10px rgba(255,226,122,.5)); }
.wheel__pin.tick { animation: wtick .12s ease-out; }
@keyframes wtick { 0% { transform: translateX(-50%) rotate(0); } 40% { transform: translateX(-50%) rotate(-22deg); } 100% { transform: translateX(-50%) rotate(0); } }
.wheel__pin { transform-origin: 50% 0; }
/* fatia vencedora acende embaixo da seta */
.wheel__win { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0;
  background: conic-gradient(from -22.5deg, rgba(255,255,255,.75) 0 45deg, transparent 45deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 23%, #000 24%, #000 73%, transparent 75%); mask: radial-gradient(circle, transparent 23%, #000 24%, #000 73%, transparent 75%); mix-blend-mode: overlay; }
.wheel.is-won .wheel__win { animation: wwin .7s ease-in-out 4 alternate both; }
@keyframes wwin { from { opacity: .15; } to { opacity: 1; } }
.wheel.is-won .wheel__disc { animation: wbump .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes wbump { 0% { scale: 1; } 40% { scale: 1.07; } 100% { scale: 1; } }
.wheel.is-won::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; z-index: 4; border: 4px solid rgba(255,240,180,.95); animation: wring .8s ease-out forwards; }
@keyframes wring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.wheel__fx { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 5; pointer-events: none; }
.wconf, .wspark { position: absolute; left: -5px; top: -7px; width: 10px; height: 14px; border-radius: 2px; background: var(--c); animation: wconf 1.4s cubic-bezier(.15,.7,.3,1) both; }
.wspark { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, var(--c) 45%, transparent 70%); box-shadow: 0 0 8px var(--c); }
@keyframes wconf { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)) scale(1); opacity: 0; } }
/* cartão do prêmio */
.wprize { position: relative; display: flex; align-items: center; gap: 12px; margin: 4px auto 10px; padding: 10px 16px 10px 12px; width: fit-content; max-width: 100%; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,240,190,.18), rgba(255,200,90,.08)); box-shadow: inset 0 0 0 2px rgba(255,214,107,.7), 0 0 24px rgba(255,214,107,.35); animation: wprize .6s cubic-bezier(.2,1.6,.4,1) both; }
.wprize__glow { position: absolute; left: 38px; top: 50%; width: 110px; height: 110px; margin: -55px; border-radius: 50%; background: radial-gradient(circle, rgba(255,240,170,.7), transparent 65%); animation: wglow 1.6s ease-in-out infinite; pointer-events: none; }
.wprize__img { position: relative; width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); animation: wfloat 1.6s ease-in-out infinite; }
.wprize__txt { position: relative; display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.wprize__txt small { font: 700 12px var(--font-b); color: #c4f2ff; text-transform: uppercase; letter-spacing: .08em; }
.wprize__txt b { font: 700 26px var(--font-t); background: linear-gradient(180deg, #fff 10%, #ffe27a 50%, #ff9d2e 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 #7a2d00); }
.wprize__txt span { font: 600 13px var(--font-b); color: #e4f9ff; }
@keyframes wprize { 0% { transform: scale(.3) translateY(20px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes wglow { 50% { transform: scale(1.2); opacity: .7; } }
@keyframes wfloat { 50% { transform: translateY(-4px) rotate(-4deg); } }
.wprize[hidden] { display: none; }
.wprize__txt b { font-size: 22px; max-width: 190px; }
.wheel__win { mix-blend-mode: normal; background: conic-gradient(from -22.5deg, rgba(255,250,220,.55) 0 45deg, transparent 45deg 360deg); }
@keyframes wwin { from { opacity: 0; } to { opacity: 1; } }
/* atalho discreto para a coleção de cartas durante a partida (acima de Ajustes) */
.cardsbtn { left: auto; right: 20px; }
.cardsbtn .dockcard { width: 14px; height: 19px; border-radius: 3px; box-shadow: 0 0 0 1.5px #fff, 3px 2px 0 -1px rgba(255,255,255,.55); }

/* carregamento lúdico */
.story { position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 66px; padding: 10px 14px; border-radius: 16px;
  background: rgba(11,43,52,.55); box-shadow: inset 0 0 0 1.5px rgba(255,214,107,.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.story__gem { flex: none; width: 22px; height: 22px; margin-top: 2px; background: linear-gradient(135deg, #fff, #7fd4ff 30%, #8be3ff 60%, #ffd36b); clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%); animation: gemspin 2.4s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); }
@keyframes gemspin { 50% { transform: rotate(14deg) scale(1.15); } }
.story__txt { margin: 0; font: 600 14.5px/1.4 var(--font-b); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); transition: opacity .28s, transform .28s; }
.story__txt.is-out { opacity: 0; transform: translateY(6px); }
.loadwrap { position: relative; width: 100%; padding-top: 18px; transition: opacity .35s; }
.loadwrap.is-done { opacity: 0; } .loadwrap[hidden] { display: none; }
.loadwrap .loadbar { position: relative; }
.loadwrap .loadbar span { position: relative; overflow: hidden; }
.loadwrap .loadbar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.65) 50%, transparent 80%); background-size: 200% 100%; animation: barshine 1.2s linear infinite; }
@keyframes barshine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.loadwrap__sol { position: absolute; top: -8px; left: -18px; width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); transition: left .25s ease-out; animation: solhop .45s ease-in-out infinite alternate; z-index: 2; }
.loadwrap__sol.is-done { animation: solwin .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes solhop { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-6px) rotate(6deg); } }
@keyframes solwin { 50% { transform: translateY(-14px) scale(1.25); } 100% { transform: translateY(-4px) scale(1.1); } }
.loadwrap__pct { position: absolute; right: 0; top: -4px; font: 700 12px var(--font-t); color: #ffe27a; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.splash__hint { font-size: 17px; }
#startBtn[hidden] { display: none; } #startBtn { animation: pop .35s cubic-bezier(.2,1.5,.4,1); }

/* abertura sem "pulos": cada elemento tem um espaço fixo; barra e botão Jogar dividem o mesmo lugar */
.story { height: 92px; min-height: 0; align-items: center; }
.splash__bottom .slot { position: relative; width: 100%; height: 60px; flex: none; }
.slot > .loadwrap { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding-top: 0; }
.slot > #startBtn { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; animation: startin .4s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes startin { from { opacity: 0; transform: translateY(-50%) scale(.7); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.loadwrap[hidden] { display: block; visibility: hidden; }
.splash__hint { height: 1.4em; line-height: 1.4em; margin: 0; white-space: nowrap; }

/* cartas bloqueadas: silhueta do ícone em vez de "?" */
.mini--lock .mini__art { background: radial-gradient(circle at 50% 42%, #1b5465, #0b2b34 75%); }
.mini--lock .sil-gem { width: 58%; filter: drop-shadow(0 0 4px rgba(179,239,255,.45)); }
.mini--lock .sil-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(0 0 3px rgba(179,239,255,.55)); opacity: .9; }
.mini--lock .sil-img { inset: 10%; width: 80%; height: 80%; object-fit: contain; animation: silin .35s ease-out both; }
@keyframes silin { from { opacity: 0; transform: scale(.92); } to { opacity: .9; transform: none; } }

/* "ler" na caixinha da história da abertura */
.story__more { position: absolute; right: 8px; bottom: 6px; padding: 2px 8px; border-radius: 99px; font: 700 11px var(--font-b); color: #ffe27a; background: rgba(0,0,0,.25); opacity: .75; }
.story__more:hover { opacity: 1; }
.story { padding-bottom: 14px; }
/* botão discreto do livro no mapa */
.storybtn { position: absolute; left: 14px; right: auto; top: calc(68px + var(--safe-t)); bottom: auto; font-size: 16px; line-height: 1; }

/* ---------- A Lenda dos Cristais (livro) ---------- */
.storybook { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; padding: calc(14px + var(--safe-t)) 18px calc(18px + var(--safe-b)); overflow: hidden; animation: sbin .35s ease-out both; touch-action: pan-y; }
.storybook.is-out { opacity: 0; transition: opacity .3s; }
@keyframes sbin { from { opacity: 0; } }
.storybook__bg { position: absolute; inset: -20px; background: #0b2b34 center/cover no-repeat; filter: blur(3px) brightness(.55) saturate(1.2); transform: scale(1.05); animation: kenburns 18s ease-in-out infinite alternate; }
.storybook__bg--next { opacity: 0; } .storybook__bg--next.is-on { opacity: 1; transition: opacity .6s; }
@keyframes kenburns { to { transform: scale(1.14) translate(-2%, -1%); } }
.storybook::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, transparent 20%, rgba(11,43,52,.75) 80%); pointer-events: none; }
.storybook__x { position: absolute; top: calc(12px + var(--safe-t)); right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font: 700 16px var(--font-t); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.storybook__head { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
.storybook__head small { font: 700 13px var(--font-t); letter-spacing: .12em; text-transform: uppercase; color: #ffe27a; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.storybook__dots { display: flex; gap: 6px; } .storybook__dots i { width: 18px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); transition: background .3s; } .storybook__dots i.is-on { background: linear-gradient(90deg, #ffe27a, #f7a81d); }
.storybook__page { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.storybook__page.in-r { animation: pagein-r .45s cubic-bezier(.2,1,.3,1) both; } .storybook__page.in-l { animation: pagein-l .45s cubic-bezier(.2,1,.3,1) both; }
@keyframes pagein-r { from { opacity: 0; transform: translateX(40px) rotate(2deg); } } @keyframes pagein-l { from { opacity: 0; transform: translateX(-40px) rotate(-2deg); } }
.storybook__sol { position: relative; width: min(52vw, 210px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: -26px; z-index: 1; }
.storybook__sol img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); animation: solfloat 3s ease-in-out infinite; }
.storybook__halo { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--g, #ffd36b) 70%, transparent), transparent 62%); animation: halo 3s ease-in-out infinite; }
.storybook__halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(color-mix(in srgb, var(--g, #ffd36b) 35%, transparent) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: spin 24s linear infinite; }
@keyframes solfloat { 50% { transform: translateY(-8px) rotate(2deg); } } @keyframes halo { 50% { transform: scale(1.08); opacity: .85; } }
.storybook__card { position: relative; width: 100%; padding: 30px 20px 18px; border-radius: 24px; text-align: center; background: linear-gradient(180deg, rgba(27,84,101,.92), rgba(14,50,61,.94)); box-shadow: inset 0 0 0 2px rgba(255,214,107,.55), 0 18px 40px rgba(0,0,0,.5); }
.storybook__card::before, .storybook__card::after { content: "✦"; position: absolute; top: 10px; color: #ffe27a; opacity: .7; font-size: 14px; } .storybook__card::before { left: 14px; } .storybook__card::after { right: 14px; }
.storybook__num { font: 700 11px var(--font-b); letter-spacing: .1em; text-transform: uppercase; color: #acd4e0; }
.storybook__card h2 { margin: 2px 0 10px; font: 700 26px var(--font-t); background: linear-gradient(180deg, #fff 10%, #ffe27a 55%, #ff9d2e 95%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #4a1d00); }
.storybook__txt { min-height: 4.2em; margin: 0; font: 600 18px/1.4 var(--font-b); color: #fff; }
.storybook__more { min-height: 3em; margin: 10px 0 0; font: 500 14px/1.45 var(--font-b); color: #d0f5ff; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.storybook__more.is-on { opacity: 1; transform: none; }
.storybook__nav { position: relative; z-index: 2; display: flex; gap: 10px; width: 100%; max-width: 440px; align-items: center; }
.storybook__nav [data-next] { flex: 1; } .storybook__nav [data-prev] { flex: none; padding-inline: 18px; }
.story__more { display: inline-flex; align-items: center; gap: 4px; }
.storybtn { background: rgba(11,43,52,.5); }

/* coleção em seções por raridade; as abas levam até a seção */
.col-grid { position: relative; }
.col-sec { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 10px 2px 2px; font: 700 14px var(--font-t); color: var(--fr, #fff); text-align: left; }
.col-sec:first-child { margin-top: 0; }
.col-sec::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--fr, #fff), transparent); opacity: .55; }
.col-sec small { font: 700 11px var(--font-b); color: #c4f2ff; }
.col-sec--c { --fr: #cfd6e0; } .col-sec--r { --fr: #5bc0f8; } .col-sec--e { --fr: #a6e7ff; } .col-sec--l { --fr: #f7c04a; }

/* compartilhar nos stories */
.share-btn { margin-top: 10px; }
.modal--share .panel { max-width: 380px; }
.share__prev { position: relative; width: min(62vw, 240px); aspect-ratio: 9 / 16; margin: 0 auto 12px; border-radius: 16px; overflow: hidden; background: #061e25; box-shadow: 0 0 0 3px rgba(255,214,107,.6), 0 12px 30px rgba(0,0,0,.5); }
.share__prev img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s, transform .25s; }
.share__prev img.is-busy { opacity: .35; transform: scale(.97); }
.share__load { position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px var(--font-t); color: #ffe27a; z-index: 1; animation: pulse 1.2s infinite; }
.share__load[hidden] { display: none; }
.share__row { display: flex; gap: 8px; } .share__row .btn { flex: 1; }
.reveal__actions { flex-wrap: wrap; justify-content: center; }
.share__prev img[hidden] { display: none; }

/* botões do compartilhar: uma linha só, sem quebrar */
.modal--share .btn { white-space: nowrap; gap: 8px; }
.modal--share .btn span { overflow: hidden; text-overflow: ellipsis; }
.modal--share [data-go] { font-size: 20px; }
.modal--share .share__row .btn { padding: 0 10px; font-size: 15px; min-width: 0; }
.modal--share .btn svg { flex: none; }
.modal--share [data-go] { font-size: 17px; padding: 0 14px; min-height: 48px; }
.modal--share .share__row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.modal--share .share__row .btn { padding: 0 6px; font-size: 13.5px; gap: 5px; min-height: 40px; }
.modal--share .share__row .btn svg { width: 16px; height: 16px; }
.modal--share .stack { gap: 8px; }

/* ===================== OBJETIVOS EXPLICADOS (mini-animações) ===================== */
.ohelp { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 2px; text-align: left; }
.ohelp__row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: rgba(3,28,35,.45); box-shadow: inset 0 0 0 1.5px rgba(247,192,74,.35); }
.ohelp__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ohelp__txt b { font: 700 16px var(--font-t); color: #ffd864; }
.ohelp__txt small { font: 700 12.5px/1.35 var(--font-b); color: #dcf6ff; }
.ohelp--tip .ohelp__row { background: linear-gradient(100deg, rgba(91,192,248,.22), rgba(139,227,255,.22)); box-shadow: inset 0 0 0 1.5px rgba(91,192,248,.6); }
.odemo { --d: 3.2s; position: relative; flex: none; border-radius: 10px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); overflow: hidden; transform: scale(.92); transform-origin: left center; }
.od, .od-tile, .od-exit, .od-hand { position: absolute; left: var(--x); top: var(--y); width: 34px; height: 34px; }
.od { padding: 2px; object-fit: contain; animation: var(--d) infinite both; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.od-tile { border-radius: 7px; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(127,212,255,.45)); box-shadow: inset 0 0 0 2px #fff; animation: od-tile var(--d) infinite; }
.od-exit { display: grid; place-items: center; font: 700 18px var(--font-t); color: #8be36f; text-shadow: 0 0 8px #3fa52e; animation: pulse 1s infinite; }
.od-hand { width: 26px; height: 26px; margin: 18px 0 0 16px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 0 0 4px rgba(255,255,255,.35); animation: od-hand var(--d) infinite; pointer-events: none; }
.od-pts { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font: 700 18px var(--font-t); color: #ffd864; -webkit-text-stroke: 3px #2a1405; paint-order: stroke fill; opacity: 0; animation: od-pts var(--d) infinite; }
.od-pts--n { color: #8be36f; }
.od-swap-down { animation-name: od-down; }
.od-swap-up { animation-name: od-up; }
.od-pop { animation-name: od-pop; }
.od-swap-down.od-pop2 { animation-name: od-down-pop; }
.od-merge { animation-name: od-merge; }
.od-swap-down.od-merge { animation-name: od-down-merge; }
.od-born { animation-name: od-born; }
.od-crack { animation-name: od-crack; }
.od-unlock { animation-name: od-unlock; }
.od-fall { animation-name: od-fall; }
@keyframes od-hand { 0% { opacity: 0; transform: scale(1.4); } 6% { opacity: 1; transform: scale(1); } 18% { opacity: 1; transform: translateY(34px) scale(.9); } 26%, 100% { opacity: 0; transform: translateY(34px); } }
@keyframes od-down { 0%, 8% { transform: none; } 22%, 100% { transform: translateY(34px); } }
@keyframes od-up { 0%, 8% { transform: none; } 22%, 100% { transform: translateY(-34px); } }
@keyframes od-pop { 0%, 30% { transform: none; opacity: 1; filter: brightness(1); } 38% { transform: scale(1.25); filter: brightness(1.8); opacity: 1; } 48%, 88% { transform: scale(0); opacity: 0; } 96%, 100% { transform: none; opacity: 1; } }
@keyframes od-down-pop { 0%, 8% { transform: none; opacity: 1; } 22%, 30% { transform: translateY(34px); filter: brightness(1); } 38% { transform: translateY(34px) scale(1.25); filter: brightness(1.8); opacity: 1; } 48%, 88% { transform: translateY(34px) scale(0); opacity: 0; } 96%, 100% { transform: none; opacity: 1; } }
@keyframes od-merge { 0%, 30% { transform: none; opacity: 1; } 34% { filter: brightness(1.8); } 46% { transform: translate(var(--mx), var(--my)) scale(.6); opacity: .9; } 50%, 88% { transform: translate(var(--mx), var(--my)) scale(0); opacity: 0; } 96%, 100% { transform: none; opacity: 1; } }
@keyframes od-down-merge { 0%, 8% { transform: none; opacity: 1; } 22%, 30% { transform: translateY(34px); } 34% { filter: brightness(1.8); } 46% { transform: translate(var(--mx), var(--my)) scale(.6); opacity: .9; } 50%, 88% { transform: translate(var(--mx), var(--my)) scale(0); opacity: 0; } 96%, 100% { transform: none; opacity: 1; } }
@keyframes od-born { 0%, 46% { transform: scale(0); opacity: 0; } 56% { transform: scale(1.35); opacity: 1; filter: brightness(1.6) drop-shadow(0 0 8px #fff); } 64%, 84% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); } 94%, 100% { transform: scale(0); opacity: 0; } }
@keyframes od-crack { 0%, 36% { transform: none; opacity: 1; } 40% { transform: translateX(-3px) rotate(-6deg); } 44% { transform: translateX(3px) rotate(6deg); } 52% { transform: scale(1.2); opacity: .8; } 60%, 88% { transform: scale(0); opacity: 0; } 96%, 100% { transform: none; opacity: 1; } }
@keyframes od-unlock { 0%, 36% { transform: none; opacity: 1; } 56%, 88% { transform: translateY(-30px) rotate(25deg) scale(.6); opacity: 0; } 96%, 100% { transform: none; opacity: 1; } }
@keyframes od-fall { 0%, 40% { transform: none; opacity: 1; } 52% { transform: translateY(68px); } 70% { transform: translateY(102px); opacity: 1; } 78%, 90% { transform: translateY(102px) scale(.3); opacity: 0; } 98%, 100% { transform: none; opacity: 1; } }
@keyframes od-tile { 0%, 34% { opacity: 1; } 42% { opacity: 1; filter: brightness(2); } 52%, 88% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes od-pts { 0%, 38% { opacity: 0; transform: translate(-50%, 6px); } 46% { opacity: 1; } 70% { opacity: 1; transform: translate(-50%, -14px); } 80%, 100% { opacity: 0; transform: translate(-50%, -18px); } }
.odemo--floor .od { z-index: 1; }
/* janela "Objetivo" durante a partida */
.objs { cursor: pointer; }
.hud__goal::after { content: "?"; position: absolute; right: 6px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #f7c04a; color: #5a2e00; font: 700 12px var(--font-t); box-shadow: 0 2px 0 #7a4a22; pointer-events: none; }
.ohelp__row { flex-direction: column; gap: 6px; text-align: center; padding: 10px 10px 12px; }
.ohelp__txt { align-items: center; }
.ohelp__txt b { font-size: 17px; }
.odemo { transform: none; margin: 0 auto; background: radial-gradient(circle, rgba(255,255,255,.1), rgba(255,255,255,.03)); }

/* janela de compartilhar abre por cima da revelação de carta e da coleção */
.modal--share { z-index: 80; }

/* ===== explicação compacta dos objetivos (janela da fase e "?") ===== */
.oh2 { margin: 10px 0 4px; padding: 8px; border-radius: 16px; background: rgba(3,28,35,.45); box-shadow: inset 0 0 0 1.5px rgba(247,192,74,.3); text-align: left; }
.oh2__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; padding-bottom: 2px; }
.oh2__tabs::-webkit-scrollbar { display: none; }
.oh2__tabs button { flex: none; max-width: 70%; padding: 5px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 700 12px var(--font-t); color: var(--muted); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.oh2__tabs button[aria-selected="true"] { color: #5a2e00; background: linear-gradient(180deg, #ffe08a, #f2a81d); box-shadow: 0 2px 0 #b06d00; }
.oh2__row { display: flex; align-items: center; gap: 10px; }
.oh2__row[hidden] { display: none; }
.oh2__demo { flex: none; width: 104px; height: 84px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: radial-gradient(circle, rgba(255,255,255,.1), rgba(255,255,255,.02)); }
.oh2__demo .odemo { transform: scale(.62); transform-origin: center; margin: 0; background: none; box-shadow: none; }
.oh2__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oh2__txt b { font: 700 14px/1.2 var(--font-t); color: #ffd864; }
.oh2__txt small { font: 700 12px/1.35 var(--font-b); color: #dcf6ff; }
.oh2__tip { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 6px 10px; border-radius: 12px; background: rgba(91,192,248,.14); text-align: left; font: 700 11.5px/1.3 var(--font-b); color: #dff3ff; }
.oh2__tip img { width: 28px; height: 28px; flex: none; }
.oh2__tip b { color: #7fd4ff; }
/* janela da fase: botão Jogar sempre visível */
.modal--level .panel { padding-bottom: 0; }
.modal--level .lv-play { position: sticky; bottom: 0; z-index: 3; margin: 12px 0 0; box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.18), 0 5px 0 #23701a, 0 -10px 18px 6px rgba(16,69,85,.95); }
.modal--level .panel::after { content: ""; display: block; height: 18px; }
/* abas e explicação deslizáveis */
.oh2__tabs { cursor: grab; touch-action: pan-x; scroll-snap-type: x proximity; }
.oh2__tabs.is-drag { cursor: grabbing; scroll-snap-type: none; }
.oh2__tabs.is-drag button { pointer-events: none; }
.oh2__tabs button { scroll-snap-align: center; user-select: none; }
.oh2__panes { touch-action: pan-y; user-select: none; cursor: grab; }
.oh2__row.is-in { animation: oh2in .28s ease-out; }
@keyframes oh2in { from { opacity: 0; transform: translateX(10px); } }
.oh2__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.oh2__nav button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 18px/1 var(--font-t); color: #ffd864; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(247,192,74,.4); }
.oh2__nav span { display: flex; gap: 6px; }
.oh2__nav i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; transition: width .2s, background .2s; }
.oh2__nav i.on { width: 18px; border-radius: 4px; background: #f7c04a; }
/* pedras da fase (janela da fase) */
.lv-stones { margin: 8px 0 2px; }
.lv-stones small { display: block; font: 700 11px var(--font-t); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lv-stones.has-new small { color: #ffd864; }
.lv-stones > div { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.lv-stones span { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(3,28,35,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.lv-stones img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.lv-stones span.is-new { box-shadow: inset 0 0 0 2px #f7c04a, 0 0 12px rgba(247,192,74,.55); animation: stonenew 1.6s ease-in-out infinite; }
.lv-stones span.is-new::after { content: "novo"; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); padding: 0 4px; border-radius: 5px; background: #f7c04a; color: #5a2e00; font: 700 8px/12px var(--font-t); text-transform: uppercase; }
@keyframes stonenew { 50% { transform: translateY(-2px); } }
/* janela da fase: vantagens ativas numa linha só */
.lv-perks { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lv-perk { padding: 4px 10px; border-radius: 999px; font: 700 12px var(--font-b); color: var(--muted); background: rgba(255,211,107,.16); box-shadow: inset 0 0 0 1px rgba(255,211,107,.4); white-space: nowrap; }
.lv-perk b { color: #ffd864; }
.lv-perk--inf { background: rgba(232,52,79,.16); box-shadow: inset 0 0 0 1px rgba(255,120,150,.4); }
.lv-perk--inf b { color: #ff9ab0; }
.lv-stones > div { flex-wrap: nowrap; }
.lv-stones span { flex: 0 1 40px; min-width: 0; aspect-ratio: 1; height: auto; }
.lv-stones img { width: 82%; height: 82%; }
/* telas baixas (iPhone SE e afins): tudo cabe sem rolar */
@media (max-height: 760px) {
  .modal--level { padding: 10px 14px; }
  .modal--level .panel { padding-top: 36px; }
  .modal--level .panel__ribbon { margin-top: -24px; margin-bottom: 6px; font-size: 20px; padding: 6px 22px 8px; }
  .modal--level .lv-sub { font-size: 12.5px; }
  .modal--level .lv-boss { margin-top: 2px; padding: 1px 10px; font-size: 11px; }
  .modal--level .lv-stars { margin: 4px 0 6px; } .modal--level .lv-stars img { width: 28px; height: 28px; } .modal--level .lv-stars img:nth-child(2) { width: 34px; height: 34px; }
  .modal--level .lv-card__goals { flex-wrap: nowrap; gap: 6px; padding: 8px 6px; }
  .modal--level .lv-goal { min-width: 0; flex: 1; } .modal--level .lv-goal img { width: 34px; height: 34px; } .modal--level .lv-goal b { font-size: 17px; } .modal--level .lv-goal small { font-size: 10px; }
  .modal--level .lv-card__moves { width: 64px; } .modal--level .lv-card__moves b { font-size: 24px; }
  .modal--level .lv-stones { margin: 6px 0 0; } .modal--level .lv-stones small { margin-bottom: 3px; font-size: 10px; } .modal--level .lv-stones span { flex-basis: 34px; border-radius: 9px; }
  .modal--level .oh2 { margin: 6px 0 2px; padding: 6px; } .modal--level .oh2__tabs { margin-bottom: 4px; }
  .modal--level .oh2__demo { width: 84px; height: 64px; } .modal--level .oh2__demo .odemo { transform: scale(.5); }
  .modal--level .oh2__txt small { font-size: 11px; line-height: 1.3; }
  .modal--level .oh2__nav { margin-top: 2px; } .modal--level .oh2__nav button { width: 22px; height: 22px; font-size: 15px; }
  .modal--level .oh2__tip { display: none; }
  .modal--level .lv-perks { margin-top: 6px; } .modal--level .lv-streak { margin-top: 6px; padding: 4px 10px; font-size: 12px; }
  .modal--level .lv-label { margin: 8px 0 0; font-size: 10.5px; }
  .modal--level .prebo { gap: 8px; margin: 6px 0 2px; } .modal--level .prebo button { width: 50px; height: 50px; border-radius: 13px; } .modal--level .prebo button img { width: 36px; height: 36px; }
  .modal--level .lv-play { min-height: 46px; margin-top: 8px; font-size: 19px; }
}
.modal--level .lv-perks { flex-wrap: nowrap; } .modal--level .lv-perk { font-size: 11px; padding: 3px 8px; }
@media (max-height: 760px) { .modal--level { padding-top: 18px; } }
/* botões das janelas: texto sempre numa linha */
.panel .btn { white-space: nowrap; }
.panel .stack .btn--block { min-height: 50px; font-size: clamp(16px, 4.8vw, 20px); padding: 0 16px; }
.panel .stack .btn--sm { font-size: clamp(14px, 4.2vw, 16px); }

/* ---------------- Modo demonstração (?demo=1) ---------------- */
.demo-chip { position: absolute; left: 50%; top: calc(94px + var(--safe-t)); transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border: 2px solid #ffd36b; border-radius: 16px; background: rgba(17,54,65,.88); color: #fff; font: 700 12px var(--font-t); white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.35); cursor: pointer; }
#tabview:not([hidden]) ~ .demo-chip { display: none; } /* só no mapa */
.demo-chip b { padding: 2px 8px; border-radius: 11px; background: linear-gradient(#ffe27a, #f7a928); color: #5a2e00; letter-spacing: .06em; }
.demo-chip span { opacity: .92; }
.modal--demo .demo-p { font-size: 15px; line-height: 1.4; }
.modal--demo .demo-lbl { margin: 14px 0 6px; font: 700 13px var(--font-t); letter-spacing: .05em; text-transform: uppercase; color: #ffd36b; text-align: left; }
.demo-worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; }
.demo-worlds button { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border: 2px solid var(--c); border-radius: 14px; background: rgba(255,255,255,.08); color: #fff; font: 700 15px var(--font-t); cursor: pointer; }
.demo-worlds small { font-size: 11px; opacity: .8; }
.demo-go { display: flex; gap: 8px; }
.demo-go .field { flex: 1; height: 42px; font-size: 15px; }

/* =====================================================================
   PAGANDO PATO — tema piscina e dinheiro (sobrescreve o que vem acima)
   ===================================================================== */
:root { --water: #2bb0d8; --water-dk: #0b6f99; --deep: #0b3d5c; --buoy: #ff4d5a; --bronze: #e0904f; --silver: #b8c8da; --diamond: #8fe3ff; }
html, body, #app { background: var(--deep); }
@media (min-width: 561px) { body { background: radial-gradient(circle at 50% 30%, #1f9cc4, #062a40); } }

/* abertura: água com reflexos, logo em texto com o Patacão e itens boiando */
#splash { background: radial-gradient(120% 70% at 50% 0%, #8ff0ff 0%, #2bb0d8 38%, #0b6f99 72%, #073f5e 100%); overflow: hidden; }
#splash::before { content: ""; position: absolute; inset: -40%; background:
  repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.0) 0 18px, rgba(255,255,255,.10) 19px 21px, rgba(255,255,255,0) 22px 46px),
  repeating-radial-gradient(circle at 70% 60%, rgba(255,255,255,.0) 0 24px, rgba(255,255,255,.08) 25px 27px, rgba(255,255,255,0) 28px 60px);
  animation: caustics 14s linear infinite; pointer-events: none; }
@keyframes caustics { to { transform: translate(6%, 4%) rotate(6deg); } }
#splash::after { background: linear-gradient(180deg, rgba(7,63,94,0), rgba(7,63,94,.05) 45%, rgba(4,40,62,.8)); }
.splash__logo { width: auto; margin: 6px 0 0; display: flex; flex-direction: column; align-items: center; line-height: .82; font: 700 clamp(56px, 17vw, 92px) var(--font-t); letter-spacing: .01em; text-transform: uppercase; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.splash__logo .logo__a, .splash__logo .logo__b { background: linear-gradient(180deg, #fff 8%, #ffe27a 42%, #ff9d2e 92%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 3px #7a2d00; paint-order: stroke fill; }
.splash__logo .logo__b { font-size: 1.32em; }
.splash__duck { width: clamp(110px, 34vw, 170px); margin-bottom: -10px; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.splash__float { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.splash__float img { position: absolute; width: 54px; opacity: .9; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); animation: drift 9s ease-in-out infinite; }
.splash__float img:nth-child(1) { left: 6%; top: 58%; } .splash__float img:nth-child(2) { right: 8%; top: 22%; width: 40px; animation-delay: -2s; }
.splash__float img:nth-child(3) { right: 6%; top: 56%; animation-delay: -4s; } .splash__float img:nth-child(4) { left: 9%; top: 18%; width: 38px; animation-delay: -6s; }
.splash__float img:nth-child(5) { left: 44%; top: 66%; width: 44px; animation-delay: -3s; opacity: .55; } .splash__float img:nth-child(6) { right: 24%; top: 40%; width: 46px; animation-delay: -5s; opacity: .7; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(8px, -14px) rotate(6deg); } }
.splash__by { font: 700 14px var(--font-t); opacity: 1; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.splash__by b { color: #ffe27a; }
.loadbar span { background: linear-gradient(90deg, #ffe27a, #ffb020, #ff9a2e); }
.story__gem { background: url(../assets/sprites/fx/coin.webp) center/contain no-repeat; clip-path: none; }

/* tela da fase: piscina com azulejos e reflexos; tom muda por mundo */
#play { background: radial-gradient(120% 60% at 50% 0%, #6fe0f2 0%, #2bb0d8 40%, #0b6f99 100%); }
#play[data-world="prata"] { background: radial-gradient(120% 60% at 50% 0%, #c9f4ff 0%, #4cc2e6 40%, #1a6a96 100%); }
#play[data-world="ouro"] { background: radial-gradient(120% 60% at 50% 0%, #fff3c0 0%, #48d6dc 35%, #0e7c9a 100%); }
#play[data-world="diamante"] { background: radial-gradient(120% 60% at 50% 0%, #e6fbff 0%, #6fd8ff 40%, #1858a8 100%); }
#play::before { background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.08) 39px 41px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.08) 39px 41px), linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,.35)); }
.shout.gold { background-image: linear-gradient(180deg, #fff 8%, #ffe27a 40%, #ffb020 75%, #d27a00 100%); filter: drop-shadow(0 4px 0 #6b3a00) drop-shadow(0 0 20px rgba(255,210,80,.95)); }

/* mascote: reações diferentes por emoção enquanto as poses próprias não chegam */
.mascot img[data-pose="lose"].react, .mascot img[data-pose="low"].react { animation: sadwob .9s ease-in-out, bob 2.4s ease-in-out .9s infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)) saturate(.6); }
.mascot img[data-pose="epic"].react, .mascot img[data-pose="win"].react { animation: richspin .8s cubic-bezier(.2,1.4,.4,1), bob 2.4s ease-in-out .8s infinite; }
.mascot img[data-pose="wow"].react { animation: wowjump .6s cubic-bezier(.2,1.8,.4,1), bob 2.4s ease-in-out .6s infinite; }
@keyframes sadwob { 25% { transform: rotate(-8deg) translateY(4px); } 75% { transform: rotate(6deg) translateY(4px); } }
@keyframes richspin { 0% { transform: scale(.7) rotate(-20deg); } 60% { transform: scale(1.25) rotate(380deg); } 100% { transform: scale(1) rotate(360deg); } }
@keyframes wowjump { 40% { transform: translateY(-18px) scale(1.15); } }

/* álbum: ícone provisório das cartas e silhueta das bloqueadas */
.ph-ico { width: 62%; height: auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.tcard__ph .ph-ico { width: 58%; opacity: 1; mix-blend-mode: normal; filter: drop-shadow(0 0 16px var(--cc)) drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.mini__art .ph-ico { position: static; width: 70%; height: auto; object-fit: contain; }
.mini--lock .sil-img.ph-ico { position: static; width: 64%; height: auto; object-fit: contain; filter: brightness(0) drop-shadow(0 0 2px rgba(179,239,255,.9)); opacity: .55; }
.mini__img { width: 100%; height: 100%; object-fit: cover; }
.reveal__coin { position: absolute; top: -40px; width: 34px; z-index: 3; pointer-events: none; animation: coinfall linear forwards; }
@keyframes coinfall { to { transform: translateY(110vh) rotate(540deg); } }

/* roda da sorte desenhada em CSS + miolo de moeda */
.wheel__disc { box-shadow: 0 0 0 8px #fbf6ea, 0 0 0 11px #f7c04a, 0 0 0 14px #ff4d5a, 0 10px 30px rgba(0,0,0,.5); }
.wheel__axle { background-color: transparent; background-size: 80%; background-position: center; background-repeat: no-repeat; }

/* computador: o jogo fica centralizado com cara de celular e moldura de piscina */
@media (min-width: 900px) and (min-height: 640px) {
  #app { top: 16px; bottom: 16px; max-width: 480px; border-radius: 34px; box-shadow: 0 0 0 10px #fbf6ea, 0 0 0 14px #f7c04a, 0 30px 80px rgba(0,0,0,.55); }
}

/* artes finais da marca (abertura) */
#splash.has-art { background-size: cover; background-position: center bottom; }
#splash.has-art::before { opacity: .35; }
#splash.has-art .splash__float { display: none; }
#splash.has-art::after { background: linear-gradient(180deg, rgba(7,63,94,.15), rgba(7,63,94,0) 35%, rgba(4,40,62,.25) 60%, rgba(4,40,62,.85)); }
.splash__logo.has-logo { display: block; width: min(94%, 460px); }
.splash__logoimg { width: 100%; height: auto; display: block; animation: logo-in 1s cubic-bezier(.2,1.4,.4,1) both, float 4s ease-in-out 1s infinite; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.lives__nap { display: block; width: 130px; margin: -4px auto 4px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); animation: bob 3s ease-in-out infinite; }
.intro__img--pose { width: min(78%, 320px); margin: 0 auto; display: block; }
.intro__img--scene { width: min(92%, 380px); margin: 0 auto; display: block; filter: drop-shadow(0 10px 16px rgba(0,0,0,.35)); }
