/* Jardim Mágico — visual. Pensado para tablet deitado (paisagem), dedos pequenos e caneta. */

:root {
  --texto: #34405a;
  --branco: #fffdf8;
  --agua: #3fa9f5;
  --amarelo: #ffd23f;
  --verde: #5cc46a;
  --rosa: #ff6b9d;
  --fonte: 'Fredoka', 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --sombra-bt: 0 6px 0 rgba(40, 60, 90, .18);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none;
  background: #bfe8ff; color: var(--texto); font-family: var(--fonte); font-weight: 600;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
button { font-family: inherit; font-weight: 700; border: 0; cursor: pointer; color: inherit; background: none; padding: 0; touch-action: manipulation; }
input { font-family: inherit; }
svg { display: block; }
.ic { width: 1em; height: 1em; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; }
.tela { position: absolute; inset: 0; display: none; overflow: hidden; }
.tela.ativa { display: block; animation: aparece .35s ease; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

/* ---------- botões base ---------- */
.bt-redondo {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; font-size: 32px;
  display: grid; place-items: center; box-shadow: 0 5px 0 #c3d2e2, 0 8px 18px rgba(0,0,0,.08);
  transition: transform .08s;
}
.bt-redondo:active { transform: translateY(4px); box-shadow: 0 1px 0 #c3d2e2; }

/* ---------- céu, sol, nuvens, colinas ---------- */
.ceu { position: absolute; inset: 0; background: linear-gradient(#8fd5ff 0%, #c4ebff 45%, #e9f8ff 70%); }
.sol {
  position: absolute; top: 4%; left: 30%; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff8c4, #ffd23f 55%, #ffb800);
  box-shadow: 0 0 0 14px rgba(255, 214, 80, .25), 0 0 60px 20px rgba(255, 214, 80, .35);
  animation: brilhaSol 4s ease-in-out infinite;
}
@keyframes brilhaSol { 50% { box-shadow: 0 0 0 22px rgba(255, 214, 80, .18), 0 0 70px 26px rgba(255, 214, 80, .3); } }
.nuvem { position: absolute; width: 130px; height: 42px; background: #fff; border-radius: 40px; opacity: .92; animation: nuvem linear infinite; }
.nuvem::before, .nuvem::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.nuvem::before { width: 62px; height: 62px; left: 18px; top: -30px; }
.nuvem::after { width: 46px; height: 46px; left: 64px; top: -20px; }
.n1 { top: 10%; animation-duration: 70s; animation-delay: -10s; }
.n2 { top: 22%; transform: scale(.7); animation-duration: 95s; animation-delay: -50s; opacity: .8; }
.n3 { top: 6%; transform: scale(.55); animation-duration: 120s; animation-delay: -85s; opacity: .7; }
@keyframes nuvem { from { left: -180px; } to { left: 110%; } }
.colinas {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 52%;
  background:
    radial-gradient(ellipse 38% 55% at 18% 100%, #9ad87c 98%, transparent 100%),
    radial-gradient(ellipse 45% 48% at 78% 100%, #8ccf6f 98%, transparent 100%),
    radial-gradient(ellipse 60% 36% at 50% 100%, #a6de89 98%, transparent 100%);
}
.grama { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(#7cc95f, #5fb04a); border-top: 6px solid #8fd672; }
.cerca {
  position: absolute; left: 0; right: 0; bottom: 17%; height: 70px; opacity: .55;
  background:
    linear-gradient(transparent 22px, #e9d3b0 22px, #e9d3b0 32px, transparent 32px, transparent 48px, #e9d3b0 48px, #e9d3b0 58px, transparent 58px),
    repeating-linear-gradient(90deg, transparent 0 26px, #f3e1c2 26px 40px);
  -webkit-mask: linear-gradient(#000, #000);
}

/* ---------- abertura ---------- */
#tela-inicio .inicio-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 16px; }
.logo { margin: 0; font-size: clamp(54px, 9vw, 96px); font-weight: 700; color: #fff; letter-spacing: 1px; text-align: center; line-height: 1;
  text-shadow: 0 4px 0 #3fa9f5, 0 8px 0 #2b86c9, 0 14px 20px rgba(0,0,0,.18); }
.logo span { color: #ffe066; text-shadow: 0 4px 0 #ff9f2f, 0 8px 0 #e07a10, 0 14px 20px rgba(0,0,0,.18); }
.bt-play {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #8ef09a, #3fc457 60%, #2ea545);
  box-shadow: 0 10px 0 #23863a, 0 18px 30px rgba(0,0,0,.2); animation: respira 1.6s ease-in-out infinite;
}
.bt-play svg { width: 74px; height: 74px; margin-left: 10px; }
.bt-play:active { transform: translateY(6px) scale(.98); box-shadow: 0 4px 0 #23863a; }
@keyframes respira { 50% { transform: scale(1.07); } }
.inicio-nome { background: rgba(255,255,255,.94); border-radius: 22px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; width: min(420px, 92vw); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.inicio-nome label { font-size: 16px; }
.inicio-nome input { font-size: 26px; padding: 10px 14px; border-radius: 14px; border: 3px solid #cfe3f3; color: var(--texto); font-weight: 600; outline: none; }
.inicio-nome input:focus { border-color: var(--agua); }
.inicio-nome small { font-size: 13px; opacity: .65; }
.inicio-plantas { position: absolute; left: 0; right: 0; bottom: -2%; height: 50%; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 1%; pointer-events: none; }
.inicio-planta { width: 17vw; max-width: 210px; }
.inicio-planta.p2 { opacity: 0; }
.inicio-planta .corpo { transform-origin: 100px 282px; animation: balanco 5s ease-in-out infinite; }
.inicio-planta.p1 .corpo { animation-delay: -1.3s; } .inicio-planta.p3 .corpo { animation-delay: -2.6s; } .inicio-planta.p4 .corpo { animation-delay: -3.4s; }

/* ---------- barra superior ---------- */
.barra { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; z-index: 5; pointer-events: none; }
.barra > * { pointer-events: auto; }
.barra-dir { display: flex; gap: 12px; align-items: center; }
.barra-espaco { width: 64px; }
.inventario { display: flex; gap: 8px; align-items: center; }
.inventario .item {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); border-radius: 40px; padding: 6px 18px 6px 10px;
  font-size: 32px; box-shadow: 0 4px 0 rgba(40,60,90,.12); min-width: 104px;
}
.inventario .item .ic { width: 38px; height: 38px; }
.inventario .item b { font-weight: 700; }
.pula { animation: pula .5s ease; }
@keyframes pula { 40% { transform: scale(1.25); } }
.titulo-mundo { margin: 0; font-size: 34px; color: #fff; background: var(--cor, #3fa9f5); padding: 6px 26px 8px; border-radius: 40px; box-shadow: 0 5px 0 rgba(0,0,0,.15); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.titulo-mundo small { font-size: 20px; opacity: .9; }
#tela-album .titulo-mundo { --cor: #ff9f2f; }

.bt-pais { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.75); font-size: 24px; display: grid; place-items: center; position: relative; }
.bt-pais::after, .bt-segurar::after {
  content: ''; position: absolute; inset: -5px; border-radius: inherit; border: 5px solid transparent; pointer-events: none;
}
.bt-pais.segurando::after { border-color: #ff9f2f; animation: enche var(--ms, 2.5s) linear forwards; }
@keyframes enche { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.bt-semente-extra { display: flex; align-items: center; gap: 6px; background: #fff3c4; border-radius: 40px; padding: 6px 16px 6px 8px; font-size: 28px; box-shadow: 0 4px 0 #e6c45a; animation: respira 1.4s ease-in-out infinite; }
.bt-semente-extra .ic { width: 40px; height: 40px; }

/* ---------- jardim ---------- */
.canteiros {
  position: absolute; left: 0; right: 0; bottom: 2%; top: 84px; display: flex; align-items: flex-end; gap: 0;
  overflow-x: auto; overflow-y: hidden; padding: 0 150px 0 20px; scrollbar-width: none; scroll-behavior: smooth; z-index: 2;
}
.canteiros::-webkit-scrollbar { display: none; }
.canteiro { flex: 0 0 auto; width: clamp(180px, min(24vw, 56vh), 320px); position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.canteiro .planta-svg { width: 100%; height: auto; overflow: visible; }
.canteiro .corpo { transform-origin: 100px 282px; animation: balanco 5s ease-in-out infinite; }
@keyframes balanco { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
.canteiro.vazio { cursor: default; opacity: .7; }
.canteiro.feliz .planta-svg { animation: feliz .7s ease; }
@keyframes feliz { 30% { transform: scale(1.06, .94); } 60% { transform: scale(.97, 1.04); } }
.canteiro.nasceu .planta-svg { animation: nasce .8s ease; }
@keyframes nasce { from { transform: translateY(-40px); opacity: 0; } 60% { transform: translateY(4px); opacity: 1; } }
.crescimento { display: flex; align-items: center; gap: 6px; margin-top: -6px; background: rgba(255,255,255,.88); border-radius: 30px; padding: 4px 6px 4px 10px; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.crescimento .trilho { width: 92px; height: 14px; border-radius: 10px; background: #e2ecd9; overflow: hidden; }
.crescimento .trilho i { display: block; height: 100%; background: linear-gradient(90deg, #8ee07a, #45b34f); border-radius: 10px; transition: width .7s ease; }
.crescimento .ic { width: 24px; height: 24px; }
.crescimento.pronta { padding: 4px 8px; } .crescimento.pronta .ic { width: 28px; height: 28px; }

.acoes { position: absolute; left: 50%; bottom: 46%; transform: translateX(-50%); display: flex; gap: 10px; background: #fff; padding: 10px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 6; animation: balao .25s ease; }
.acoes::after { content: ''; position: absolute; left: 50%; bottom: -14px; margin-left: -14px; border: 14px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes balao { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
.bt-acao { width: 88px; height: 88px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 22px; }
.bt-acao .ic { width: 46px; height: 46px; }
.bt-acao.agua { background: #dff1ff; box-shadow: 0 5px 0 #a9d6f7; }
.bt-acao.adubo { background: #f6ead9; box-shadow: 0 5px 0 #dcc19c; }
.bt-acao:active { transform: translateY(4px); box-shadow: none; }
.bt-acao.sem { filter: grayscale(1); opacity: .5; }

.ferramenta { position: absolute; left: 50%; width: 120px; margin-left: -118px; z-index: 7; pointer-events: none; animation: inclina .85s ease forwards; transform-origin: 70% 60%; }
.ferramenta.adubo { width: 84px; margin-left: -90px; }
@keyframes inclina { 0% { transform: rotate(0) translateY(-20px); opacity: 0; } 25% { opacity: 1; transform: rotate(0); } 50%, 85% { transform: rotate(32deg); } 100% { transform: rotate(32deg); opacity: 0; } }
.ferramenta .pingo { position: absolute; left: 105px; top: 30px; width: 9px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #3fa9f5; opacity: 0; animation: pinga .55s ease-in var(--d) 3; }
.ferramenta.adubo .pingo { left: 70px; top: 30px; width: 7px; height: 7px; border-radius: 50%; background: #8a5a2c; }
@keyframes pinga { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), 140px) rotate(-32deg); } }

.bolha-semente {
  position: absolute; left: 50%; top: 4%; width: 92px; height: 92px; margin-left: -46px; border-radius: 50%; z-index: 6;
  background: radial-gradient(circle at 35% 30%, #fffbe0, #ffe27a 70%, #ffc934); box-shadow: 0 0 0 6px rgba(255,255,255,.7), 0 0 34px 10px rgba(255, 210, 63, .75);
  display: grid; place-items: center; animation: flutua 1.4s ease-in-out infinite;
}
.bolha-semente .ic { width: 56px; height: 56px; }
@keyframes flutua { 50% { transform: translateY(-14px) scale(1.06); } }
.dedo { position: absolute; left: 50%; top: 40%; font-size: 64px; z-index: 6; pointer-events: none; animation: dedo 1.1s ease-in-out infinite; }
@keyframes dedo { 50% { transform: translate(-10px, 18px); } }

.bt-brincar {
  position: absolute; right: 26px; bottom: 26px; width: 132px; height: 132px; border-radius: 50%; z-index: 8;
  background: radial-gradient(circle at 35% 30%, #fff, #e8f6ff 70%); box-shadow: 0 8px 0 #9cc9ea, 0 14px 30px rgba(0,0,0,.18);
  display: grid; place-items: center; animation: respira 2.2s ease-in-out infinite;
}
.bt-brincar svg { width: 96px; height: 96px; }
.bt-brincar:active { transform: translateY(6px); box-shadow: 0 2px 0 #9cc9ea; }
.bt-brincar.chama { animation: chama .5s ease 4, respira 2.2s ease-in-out 2s infinite; box-shadow: 0 8px 0 #9cc9ea, 0 0 0 12px rgba(255, 210, 63, .7), 0 14px 30px rgba(0,0,0,.18); }
@keyframes chama { 50% { transform: scale(1.18) rotate(-8deg); } }

.borboletas { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.borboleta { position: absolute; font-size: 34px; animation: voa 14s ease-in-out infinite; }
.borboleta.b0 { top: 30%; left: 10%; }
.borboleta.b1 { top: 40%; left: 60%; animation-duration: 11s; animation-delay: -4s; font-size: 26px; }
.borboleta.b2 { top: 24%; left: 40%; animation-duration: 17s; animation-delay: -8s; }
@keyframes voa {
  0% { transform: translate(0, 0) rotate(-6deg); } 25% { transform: translate(18vw, -6vh) rotate(8deg); }
  50% { transform: translate(30vw, 6vh) rotate(-4deg); } 75% { transform: translate(10vw, 10vh) rotate(6deg); } 100% { transform: translate(0, 0) rotate(-6deg); }
}
.cintila { transform-box: fill-box; transform-origin: center; animation: cintila 2.4s ease-in-out infinite; }
@keyframes cintila { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1); } }
.pulsa { transform-box: fill-box; transform-origin: center; animation: pulsa 2.4s ease-in-out infinite; }
@keyframes pulsa { 50% { transform: scale(1.18); opacity: .05; } }

/* ---------- trilha ---------- */
#tela-trilha { background: radial-gradient(circle at 50% 30%, #fff 0%, var(--fundo, #e2f3ff) 70%); }
#tela-trilha .barra { justify-content: space-between; }
.mascote { font-size: 32px; }
.mapa { position: absolute; left: 24px; right: 24px; top: 96px; bottom: 104px; }
.mapa-caminho { position: absolute; inset: 0; overflow: visible; }
.no { position: absolute; width: var(--tam); height: calc(var(--tam) + 26px); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.no-bola {
  width: var(--tam); height: var(--tam); border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--cor) 55%, #fff), 0 8px 16px rgba(0,0,0,.08); border: 5px solid color-mix(in srgb, var(--cor) 35%, #fff);
}
.no-bola .mini { width: 72%; height: 72%; }
.no-bola .ic { width: 42%; height: 42%; }
.no.feito .no-bola { border-color: var(--cor); }
.no.trancado .no-bola { background: #eef1f5; box-shadow: 0 6px 0 #cfd6df; border-color: #dde3ea; }
.no:active .no-bola { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--cor) 55%, #fff); }
.no.atual .no-bola { border-color: var(--cor); box-shadow: 0 6px 0 color-mix(in srgb, var(--cor) 55%, #fff), 0 0 0 10px color-mix(in srgb, var(--cor) 25%, transparent); animation: respira 1.2s ease-in-out infinite; }
.no-mascote { position: absolute; top: -34px; right: -18px; font-size: 44px; animation: flutua 1.2s ease-in-out infinite; pointer-events: none; }
.no-estrelas { display: flex; gap: 1px; margin-top: 4px; height: 22px; }
.no-estrelas .ic { width: 22px; height: 22px; }
.no.nega .no-bola { animation: nega .4s ease; }
@keyframes nega { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.mundos { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.chip-mundo { flex: 0 0 auto; width: 84px; height: 80px; border-radius: 22px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 5px 0 #cfdbe8; border: 4px solid transparent; }
.chip-mascote { font-size: 34px; line-height: 1; }
.chip-conta { font-size: 15px; opacity: .75; display: flex; align-items: center; }
.chip-conta .ic { width: 20px; height: 20px; }
.chip-mundo.ativo { border-color: var(--cor); background: color-mix(in srgb, var(--cor) 14%, #fff); transform: translateY(-4px); }
.chip-mundo.trancado .chip-mascote { filter: grayscale(1); opacity: .45; }

/* ---------- traçado ---------- */
#tela-traco { background: radial-gradient(circle at 50% 40%, #fffdf7 0%, var(--fundo, #fff6e6) 85%); }
#tela-traco::before { content: ''; position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(120,140,170,.18) 1.5px, transparent 1.6px); background-size: 28px 28px; pointer-events: none; }
#cv-traco { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.canto-esq { position: absolute; top: 14px; left: 16px; z-index: 3; }
.traco-dir { position: absolute; top: 14px; right: 16px; display: flex; gap: 12px; z-index: 3; }
.traco-pontos { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; pointer-events: none; }
.traco-pontos i { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #d5dde8; }
.traco-pontos i.ok { background: #5cc46a; border-color: #46a955; }
.traco-pontos i.agora { border-color: #ffb020; transform: scale(1.2); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(30, 45, 70, .45); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.modal.aberto { opacity: 1; }
.modal:has(.modal-recompensa) { background: rgba(30, 45, 70, .22); }
.modal-caixa { background: var(--branco); border-radius: 34px; padding: 26px 30px; max-width: min(860px, 96vw); max-height: 94vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); transform: scale(.85); transition: transform .3s cubic-bezier(.3,1.6,.6,1); text-align: center; }
.modal.aberto .modal-caixa { transform: scale(1); }
.modal-titulo { margin: 0 0 18px; font-size: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.modal-titulo .ic { width: 42px; height: 42px; }

.pacotes { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.pacote {
  width: 200px; padding: 0 0 14px; border-radius: 22px; background: #fff7e3; position: relative; overflow: hidden;
  box-shadow: 0 7px 0 color-mix(in srgb, var(--cor) 60%, #b98a4a), 0 12px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .3s, opacity .3s; animation: entraPacote .5s ease backwards;
}
.pacote:nth-child(2) { animation-delay: .1s; } .pacote:nth-child(3) { animation-delay: .2s; }
@keyframes entraPacote { from { transform: translateY(40px) rotate(-6deg); opacity: 0; } }
.pacote-topo { width: 100%; height: 26px; background: var(--cor); -webkit-mask: radial-gradient(circle 8px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100%; mask: radial-gradient(circle 8px at 50% 100%, transparent 98%, #000) 0 0 / 22px 100%; }
.pacote-janela { width: 150px; height: 170px; border-radius: 20px; background: linear-gradient(#cdeeff, #effaff); border: 4px solid color-mix(in srgb, var(--cor) 50%, #fff); overflow: hidden; display: grid; place-items: end center; }
.pacote-janela .planta-svg { width: 130px; margin-bottom: -8px; }
.pacote-nome { font-size: 17px; line-height: 1.15; padding: 0 8px; min-height: 40px; display: flex; align-items: center; }
.pacote-rar { font-size: 15px; color: #fff; background: var(--cor); border-radius: 20px; padding: 2px 12px; }
.pacote:active { transform: scale(.96); }
.pacote.escolhido { transform: scale(1.12) rotate(-3deg); }
.pacote.apagado { opacity: .25; transform: scale(.9); }

.estrelas-grandes { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.estrela-slot { width: 104px; height: 104px; }
.estrela-slot:nth-child(2) { transform: translateY(-16px); }
.estrela-slot .ic { width: 100%; height: 100%; }
.estrela-slot.ganha .ic { animation: estrelaEntra .5s cubic-bezier(.3,1.8,.5,1) var(--d) backwards; }
@keyframes estrelaEntra { from { transform: scale(0) rotate(-90deg); } }
.final { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0 4px; flex-wrap: wrap; }
.final-grande { font-size: 84px; line-height: 1; color: var(--rosa); text-shadow: 0 4px 0 #ffd0e0; }
.final-emoji { font-size: 54px; line-height: 1; max-width: 520px; word-break: break-all; }
.final-legenda { font-size: 30px; }
.ganhos { display: flex; justify-content: center; gap: 18px; margin: 12px 0; }
.ganho { display: flex; align-items: center; gap: 8px; font-size: 40px; background: #f1f8ff; border-radius: 26px; padding: 8px 22px; animation: estrelaEntra .5s ease 1.3s backwards; }
.ganho:nth-child(2) { background: #f8f0e5; animation-delay: 1.5s; }
.ganho .ic { width: 50px; height: 50px; }
.selo { display: inline-block; margin: 4px 6px; background: #fff1c2; border-radius: 20px; padding: 6px 16px; font-size: 18px; }
.selo-mundo { background: #e9ffe3; }
.botoes-fim { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.bt-fim { width: 108px; height: 96px; border-radius: 30px; font-size: 48px; display: grid; place-items: center; color: #fff; }
.bt-fim.jardim { background: #7ed957; box-shadow: 0 7px 0 #4fa83a; }
.bt-fim.repetir { background: #ffc93c; box-shadow: 0 7px 0 #d99b00; }
.bt-fim.proximo { background: #3fa9f5; box-shadow: 0 7px 0 #1f7cc2; width: 132px; }
.bt-fim:active { transform: translateY(5px); box-shadow: none; }
.bt-fim.voltar { background: #c9d3df; box-shadow: 0 7px 0 #9fadbf; }
.nao-valeu-ator { font-size: 80px; line-height: 1; animation: nega .5s ease 2; }
.nao-valeu h2 { margin: 6px 0 0; font-size: 44px; color: #ff8a3d; }
.nao-valeu p { margin: 4px 0 0; font-size: 22px; }
.nao-valeu .bt-fim.repetir { width: 150px; }

.descanso .lua { font-size: 90px; }
.descanso h2 { margin: 0; font-size: 40px; }
.descanso p { font-size: 22px; }
.bt-segurar { position: relative; margin-top: 10px; background: #eef2f7; border-radius: 20px; padding: 14px 22px; font-size: 16px; overflow: hidden; }
.bt-segurar.segurando::after { inset: 0; border: 0; background: rgba(255, 159, 47, .35); animation: enche var(--ms, 2.2s) linear forwards; }

/* ---------- coleção ---------- */
#tela-album { background: linear-gradient(#fff6e3, #ffe9c7); }
.album-grade { position: absolute; left: 0; right: 0; top: 96px; bottom: 0; overflow-y: auto; padding: 8px 22px 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; align-content: start; }
.carta { background: #fff; border-radius: 22px; padding: 10px 8px 12px; box-shadow: 0 5px 0 #ead2ab; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.carta-planta { width: 100%; height: 150px; border-radius: 16px; background: linear-gradient(#d6f1ff, #f2fbff); display: grid; place-items: end center; overflow: hidden; }
.carta-planta .planta-svg { width: 104px; margin-bottom: -6px; }
.carta.sombra .carta-planta .corpo { filter: brightness(0) opacity(.22); }
.carta.sombra .carta-planta { background: #eef1f4; }
.carta-nome { font-size: 16px; line-height: 1.1; min-height: 36px; display: flex; align-items: center; text-align: center; }
.carta-cores { display: flex; gap: 5px; }
.carta-cores i { width: 16px; height: 16px; border-radius: 50%; background: #dfe4ea; border: 2px solid #c9d0d9; }
.carta-cores i.tem { background: var(--c); border-color: rgba(0,0,0,.18); }
.carta-rar { position: absolute; top: 14px; right: 16px; font-size: 13px; color: #ffb400; text-shadow: 0 1px 0 #fff; }

/* ---------- pais ---------- */
#tela-pais { background: #f3f6fa; }
.pais-rolagem { position: absolute; inset: 0; overflow-y: auto; -webkit-user-select: text; user-select: text; }
.pais-caixa { max-width: 760px; margin: 0 auto; padding: 22px 18px 60px; font-weight: 500; }
.pais-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pais-topo h1 { margin: 0; font-size: 30px; }
.pais-sec { background: #fff; border-radius: 18px; padding: 16px 18px; margin: 14px 0; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.pais-sec h2 { margin: 0 0 10px; font-size: 20px; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.campo input { font-size: 20px; padding: 10px 12px; border-radius: 12px; border: 2px solid #d5dee8; font-weight: 600; color: var(--texto); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { background: #eef2f7; border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; text-align: left; }
.seg button.on { background: #3fa9f5; color: #fff; }
.seg-col { flex-direction: column; }
.dica { font-size: 14px; color: #607089; margin: 10px 0 0; line-height: 1.4; }
.link { color: #1f7cc2; text-decoration: underline; font-size: 14px; font-weight: 600; }
.chave { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 8px 0; }
.chave input { width: 22px; height: 22px; }
.bt-primario { background: #3fa9f5; color: #fff; border-radius: 14px; padding: 12px 18px; font-size: 16px; box-shadow: 0 4px 0 #1f7cc2; }
.bt-sec { display: inline-block; background: #eef2f7; border-radius: 12px; padding: 10px 16px; font-size: 15px; margin: 6px 6px 0 0; cursor: pointer; font-weight: 700; }
.bt-perigo { background: #ffe3e3; color: #c0392b; border-radius: 12px; padding: 10px 16px; font-size: 15px; margin: 6px 6px 0 0; }
.grafico { display: flex; gap: 8px; align-items: flex-end; height: 120px; padding-top: 18px; }
.barra-dia { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; font-size: 12px; }
.barra-dia i { width: 100%; max-width: 46px; min-height: 3px; background: linear-gradient(#7ed957, #4cbf5a); border-radius: 8px 8px 3px 3px; }
.barra-dia b { order: -1; font-size: 13px; }
.tabela { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.tabela th, .tabela td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #eef1f5; }

/* ---------- aviso e confete ---------- */
.aviso { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: rgba(40, 52, 75, .92); color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 18px; z-index: 80; pointer-events: none; }
.aviso.mostra { animation: avisoEntra .3s ease; }
@keyframes avisoEntra { from { transform: translate(-50%, 20px); opacity: 0; } }
#confete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- telas menores / em pé ---------- */
@media (max-height: 620px) {
  .bt-redondo { width: 54px; height: 54px; font-size: 26px; }
  .inventario .item { font-size: 26px; min-width: 88px; padding: 4px 14px 4px 8px; }
  .inventario .item .ic { width: 30px; height: 30px; }
  .titulo-mundo { font-size: 26px; }
  .bt-brincar { width: 110px; height: 110px; } .bt-brincar svg { width: 78px; height: 78px; }
  .chip-mundo { width: 70px; height: 66px; } .chip-mascote { font-size: 28px; }
  .mapa { top: 82px; bottom: 88px; }
  .estrela-slot { width: 80px; height: 80px; }
  .final-grande { font-size: 64px; }
}
@media (orientation: portrait) {
  .canteiro { width: clamp(150px, 34vw, 240px); }
  .titulo-mundo { font-size: 24px; padding: 6px 16px; }
  .inicio-planta { width: 24vw; } .inicio-planta.p1, .inicio-planta.p3 { display: none; }
}
