:root {
  --madeira: #6b3a17; --madeira2: #9a5a26; --madeira3: #c98a4b; --creme: #fff8e8; --creme2: #f4e2bd;
  --verde: #4caf2f; --verde2: #2f8a1d; --azul: #2f8fe0; --texto: #3b230f; --ouro: #ffc21a; --erro: #d6402f;
  --sombra: 0 6px 0 rgba(70, 35, 10, .55), 0 12px 28px rgba(0, 0, 0, .28);
  font-family: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
/* --alt = altura visível de verdade (o JS mede; no iPhone o 100vh inclui a barra do Safari) */
html, body { margin: 0; height: var(--alt, 100%); overflow: hidden; background: #5fa833; color: var(--texto); user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
body { position: fixed; inset: 0; }
canvas { display: block; width: 100vw; height: var(--alt, 100vh); touch-action: none; cursor: grab; }
button { touch-action: manipulation; }
input { -webkit-user-select: text; user-select: text; }
/* área segura: entalhe do iPhone, barra de gestos do Android, app instalado na tela inicial */
:root { --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); }

/* ========== ABERTURA "hora dourada na terra roxa" ==========
   Céu de fim de tarde (lilás -> rosa -> damasco), sol baixo atrás do nome, morros, vaga-lumes; o nome está
   PLANTADO numa leira de terra roxa e brota letra a letra; os dois "tt" são mudas que abrem folhas.
   Por baixo já é a fazenda de verdade (canvas): no "Jogar" o céu sobe feito cortina e a câmera desce na roça. */
:root {
  --c-noite: #4B2F6B; --c-rosa: #C8578A; --c-damasco: #FF9F5A; --c-mel: #FFC23D; --c-milho: #FFF3D1;
  --c-roxa: #7A2914; --c-roxa2: #4E1A0D; --c-folha: #4FB33B; --c-folha2: #2E7D2A;
  --f-marca: "Bagel Fat One", "Baloo 2", system-ui, sans-serif;
}
#abertura { --horizonte: 71%; position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  color: var(--c-milho); text-align: center; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#abertura::-webkit-scrollbar { display: none; }
/* primeira tela: o pôr do sol (por baixo dela aparece a fazenda) */
#abertura .heroi { position: relative; height: var(--alt, 100vh); overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
#abertura .ceu { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--horizonte) + 8vh);
  -webkit-mask: linear-gradient(#000 82%, transparent); mask: linear-gradient(#000 82%, transparent);
  background: linear-gradient(180deg, var(--c-noite) 0%, #7B3F7E 30%, var(--c-rosa) 55%, var(--c-damasco) 82%, #FFC98A 100%); }
/* a parte de baixo deixa a fazenda aparecer, tingida de fim de tarde */
#abertura .heroi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: var(--horizonte); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,150,90,.35), rgba(120,40,60,.35) 45%, rgba(50,16,42,.72)); }
#abertura .sol { position: absolute; left: 50%; top: var(--horizonte); width: min(96vmin, 760px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(circle, #FFF6CF 0 13%, #FFD970 16%, rgba(255,186,90,.6) 30%, rgba(255,140,100,.18) 50%, rgba(255,140,90,0) 70%); }
#abertura .sol-raios { position: absolute; inset: -45%; border-radius: 50%; animation: gira 80s linear infinite;
  background: repeating-conic-gradient(rgba(255,236,170,.2) 0 6deg, transparent 6deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 58%); mask: radial-gradient(circle, #000 8%, transparent 58%); }
#abertura .morros { position: absolute; left: 0; right: 0; top: calc(var(--horizonte) - 9vh); width: 100%; height: 20vh;
  -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
#abertura .morros .longe { fill: #8E4E7E; }
#abertura .morros .perto { fill: #3F6E37; }
#abertura .vagalumes { position: absolute; inset: 0; pointer-events: none; }
#abertura .vagalumes i { position: absolute; left: var(--x); bottom: -2%; width: 6px; height: 6px; border-radius: 50%; background: #FFF6B0;
  box-shadow: 0 0 10px 3px rgba(255,236,120,.75); opacity: 0; animation: vagalume var(--t) ease-in-out var(--d) infinite; }
@keyframes vagalume { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 50% { transform: translate(18px, -38vh); opacity: .35; }
  70% { opacity: .9; } 100% { transform: translate(-10px, -70vh); opacity: 0; } }

/* o miolo ocupa o céu (do topo até um pouco acima do sol) e fica no meio dele */
#abertura .miolo { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--horizonte) - 7vh); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: var(--st) 20px 0; }

/* --- o letreiro --- */
.marca { position: relative; margin: 0 0 .2em; font: 400 clamp(52px, min(19vw, 19vh), 168px)/1 var(--f-marca); letter-spacing: -.01em; padding: 0 .12em .06em; }
.marca .letras { display: inline-flex; position: relative; z-index: 1; }
/* a letra é de barro (contorno grosso + espessura em terra roxa) e a cara dela é dourada, por cima */
.marca .l { position: relative; display: inline-block; color: var(--c-roxa); transform-origin: 50% 100%;
  -webkit-text-stroke: .1em var(--c-roxa2); paint-order: stroke fill;
  text-shadow: 0 .03em 0 var(--c-roxa2), 0 .06em 0 var(--c-roxa2), 0 .09em 0 var(--c-roxa2), 0 .13em .08em rgba(40,8,20,.55);
  animation: brota .75s cubic-bezier(.2,1.6,.4,1) calc(.25s + var(--i) * .085s) both; }
.marca .l::after { content: attr(data-l); position: absolute; left: 0; top: 0; z-index: 1; color: transparent;
  -webkit-text-stroke: 0; text-shadow: none;
  background: linear-gradient(180deg, #FFFBEA 10%, var(--c-mel) 50%, #FF9A2E 90%); -webkit-background-clip: text; background-clip: text; }
.marca .l:nth-child(odd) { rotate: -2deg; }
.marca .l:nth-child(even) { rotate: 2.5deg; }
@keyframes brota { from { transform: translateY(58%) scaleY(.6); } 60% { transform: translateY(-9%) scaleY(1.08); } to { transform: none; } }
/* mudas: folhas saem do topo dos "t" depois que as letras brotam */
.marca .folha { position: absolute; top: -.06em; left: 46%; width: .4em; height: .22em; z-index: 2;
  background: linear-gradient(160deg, #A8F07A, var(--c-folha) 55%, var(--c-folha2)); border: .022em solid #1F5A1C;
  border-radius: 0 100% 0 100%; transform-origin: 0 100%;
  animation: abre .6s cubic-bezier(.2,1.5,.4,1) calc(1.15s + var(--i) * .08s) both, balanca-folha 3.4s ease-in-out calc(2s + var(--i) * .3s) infinite; }
.marca .folha.e { transform: scaleX(-1); }
@keyframes abre { from { scale: 0; } }
@keyframes balanca-folha { 50% { rotate: -9deg; } }
/* a leira: faixa de terra roxa NA FRENTE do pé das letras (elas estão plantadas) */
.marca .leira { position: absolute; z-index: 3; left: -.02em; right: -.02em; bottom: -.16em; height: .32em;
  border-radius: 40% 40% 16px 16px / 60% 60% 16px 16px;
  background: repeating-linear-gradient(90deg, transparent 0 .32em, rgba(30,6,10,.28) .32em .36em),
              radial-gradient(ellipse at 50% 0, #A8432A, var(--c-roxa) 55%, var(--c-roxa2));
  box-shadow: inset 0 .035em 0 rgba(255,180,140,.35), 0 .08em .12em rgba(30,6,20,.45);
  animation: aterra .5s ease-out .05s both; }
.marca .leira::before { content: ""; position: absolute; left: 4%; right: 4%; top: -.05em; height: .12em;
  background: radial-gradient(circle at 30% 70%, #8E3620 0 .05em, transparent .055em) 0 0 / .42em .12em repeat-x,
              radial-gradient(circle at 60% 60%, #9B3D24 0 .04em, transparent .045em) .2em 0 / .38em .12em repeat-x; }
@keyframes aterra { from { transform: scaleX(.4); opacity: 0; } }

.mote { margin: clamp(22px, 4.5vh, 38px) 0 clamp(18px, 3.6vh, 32px); font: 800 clamp(19px, 4.8vw, 27px)/1.2 "Baloo 2", system-ui, sans-serif;
  color: var(--c-milho); text-shadow: 0 2px 0 rgba(78,26,13,.55); animation: surge .6s ease-out 1.5s both; }
@keyframes surge { from { opacity: 0; transform: translateY(10px); } }

/* --- botão: um grão de milho que brota quando a roça fica pronta --- */
.bt-jogar { position: relative; display: flex; align-items: center; gap: 12px; min-width: min(320px, 82vw); justify-content: center;
  padding: 16px 30px 18px 24px; border-radius: 999px; font: 800 clamp(22px, 5.6vw, 28px)/1 "Baloo 2", system-ui, sans-serif; color: var(--c-roxa2);
  background: linear-gradient(180deg, #FFE48A, var(--c-mel) 48%, #FF9F2E); text-shadow: 0 1px 0 rgba(255,255,255,.5);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.65), inset 0 -4px 0 rgba(180,80,10,.35), 0 6px 0 var(--c-roxa), 0 14px 26px rgba(40,8,30,.45);
  animation: surge .6s ease-out 1.7s both; transition: transform .1s, filter .2s; }
.bt-jogar:not(:disabled) { animation: surge .6s ease-out 1.7s both, chama 2.2s ease-in-out 2.6s infinite; }
.bt-jogar:active:not(:disabled) { transform: translateY(5px);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.65), 0 1px 0 var(--c-roxa), 0 6px 14px rgba(40,8,30,.4); }
.bt-jogar:disabled { filter: saturate(.55) brightness(.92); cursor: progress; font-size: clamp(17px, 4.4vw, 21px); }
.bt-jogar:focus-visible, .bt-ja:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes chama { 0%, 100% { scale: 1; } 50% { scale: 1.045; } }
.bt-jogar .grao { position: relative; width: 24px; height: 30px; flex: none; border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #FFF6C8, #F2A93B 60%, #C9711E); box-shadow: inset 0 -3px 0 rgba(120,50,0,.35); }
.bt-jogar .grao::after { content: ""; position: absolute; left: 50%; bottom: 72%; width: 4px; height: 0; margin-left: -2px; border-radius: 2px;
  background: var(--c-folha2); transition: height .4s cubic-bezier(.2,1.5,.4,1); }
.bt-jogar:not(:disabled) .grao::after { height: 13px; box-shadow: 5px -3px 0 1px var(--c-folha), -5px -1px 0 1px #6FD13F; }
.bt-jogar:disabled .grao { animation: rola 1s ease-in-out infinite; }
@keyframes rola { 50% { rotate: 18deg; translate: 0 -3px; } }
.jogar-sub { min-height: 1.3em; margin-top: 14px; font-weight: 700; font-size: 15px; color: rgba(255,243,209,.95); text-shadow: 0 1px 0 rgba(78,26,13,.7); }
.bt-ja { margin-top: 6px; padding: 8px 20px; border-radius: 999px; font-weight: 800; font-size: 16px; color: var(--c-milho);
  background: rgba(78,26,13,.38); box-shadow: inset 0 0 0 2px rgba(255,243,209,.5); }
.bt-ja:active { background: rgba(78,26,13,.55); }
#abertura .rodape { position: relative; grid-row: 2; margin: 0; padding: 0 16px calc(14px + var(--sb)); font-weight: 800; font-size: 14px;
  color: var(--c-milho); text-shadow: 0 1px 2px rgba(30,6,20,.9), 0 0 10px rgba(30,6,20,.6); }

/* saída: o céu sobe como cortina, o nome vai junto, a fazenda fica */
#abertura.saindo { pointer-events: none; }
#abertura.saindo .ceu, #abertura.saindo .sol, #abertura.saindo .morros, #abertura.saindo .miolo {
  transition: transform .95s cubic-bezier(.6,0,.3,1), translate .95s cubic-bezier(.6,0,.3,1); transform: translateY(-115vh); }
#abertura.saindo .sol { transition-delay: .05s; }
#abertura.saindo .morros { transition-delay: .12s; }
#abertura.saindo .heroi::after, #abertura.saindo .rodape, #abertura.saindo .vagalumes, #abertura.saindo .ganhos { transition: opacity .6s; opacity: 0; }

@media (max-height: 500px) {
  #abertura { --horizonte: 80%; }
  .marca { font-size: clamp(44px, 17vh, 110px); }
  #abertura .miolo { padding-top: calc(10px + var(--st)); }
  .mote { margin: 8px 0 10px; font-size: 17px; }
  .bt-jogar { padding: 10px 24px 12px 18px; }
  .jogar-sub { margin-top: 8px; }
}


/* enquanto a abertura está na tela, a interface do jogo espera escondida (a parte de baixo da abertura é transparente);
   no "Jogar" ela surge junto com a descida da câmera */
body.na-abertura :is(#topo, #lateral, #ferramentas, #rapidos, #bandeja, #guia, #salvo, #painel, #dica, #aviso, #faixaVisita) { visibility: hidden; opacity: 0; }
body.chegando :is(#topo, #lateral, #ferramentas, #rapidos) { animation: chega .6s ease-out .55s both; }
@keyframes chega { from { opacity: 0; transform: translateY(12px); } }
body.chegando #ferramentas { animation-name: chega-centro; }
@keyframes chega-centro { from { opacity: 0; transform: translate(-50%, 12px); } to { transform: translateX(-50%); } }

/* logo pequeno (cartão de conta) no mesmo barro */
.logo { font: 400 46px/1 var(--f-marca); color: var(--c-mel); -webkit-text-stroke: 4px var(--c-roxa2); paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--c-roxa2), 0 5px 0 var(--c-roxa2), 0 9px 14px rgba(40,8,20,.3); transform: rotate(-2deg); letter-spacing: 0; }
#entrada { z-index: 40; }

/* ---------- salvo ---------- */
#salvo { position: fixed; top: calc(70px + var(--st)); right: calc(14px + var(--sr)); z-index: 6; pointer-events: none; background: rgba(35,102,26,.85);
  color: #fff; font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 10px; }
#salvo.some { animation: salvo 1.6s forwards; }
@keyframes salvo { 0% { opacity: 0; transform: translateY(-4px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
canvas.arrastando { cursor: grabbing; }
.emo { display: grid; place-items: center; height: 100%; font-size: 30px; line-height: 1; }
.saldo .emo { font-size: 22px; width: 32px; }
.estrela .emo { font-size: 46px; }
img[data-ic] { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

/* ---------- botões ---------- */
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none; }
.bt { border-radius: 14px; padding: 8px 18px; font-weight: 800; font-size: 17px; color: #fff; letter-spacing: .2px;
  text-shadow: 0 2px 0 rgba(0,0,0,.25); transition: transform .08s, filter .15s; }
.bt:active { transform: translateY(3px); }
.bt:disabled { filter: grayscale(1) brightness(.9); opacity: .6; cursor: default; transform: none; }
.bt.verde { background: linear-gradient(#8be05a, #4caf2f 55%, #3a9221); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 #23661a; }
.bt.azul { background: linear-gradient(#7cc4ff, #2f8fe0 55%, #2270b8); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 #18508a; }
.bt.ouro { background: linear-gradient(#ffe27a, #ffb300 55%, #e09000); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 4px 0 #9a5f00; color: #5a3000; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.bt.creme { background: linear-gradient(#fffaf0, #f4e2bd); box-shadow: inset 0 2px 0 #fff, 0 4px 0 #c49a5a; color: var(--texto); text-shadow: none; }
.bt.vermelho { background: linear-gradient(#ff8a7a, #d6402f); box-shadow: 0 4px 0 #8a2418; }
.bt.peq { padding: 4px 12px; font-size: 14px; border-radius: 11px; }
.bt.brilha { animation: brilha 1.4s ease-in-out infinite; }
@keyframes brilha { 50% { transform: scale(1.07); } }
.bt-ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.55); font-size: 17px; display: grid; place-items: center; }

/* ---------- madeira / cartões ---------- */
.placa { background: linear-gradient(#b9763a, #8e5223); border: 3px solid #5d3212; border-radius: 18px; color: #fff;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 4px 0 #4a280e, 0 8px 18px rgba(0,0,0,.25); }
.cartao { background: var(--creme); border-radius: 22px; border: 4px solid #fff; box-shadow: var(--sombra), 0 0 0 4px var(--madeira2); }

/* ---------- entrada ---------- */
#entrada { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)); padding: 16px; }
.entrada { width: min(400px, 100%); padding: 26px 24px 20px; text-align: center; }
.sub { margin: 10px 0 14px; font-size: 16px; }
input { font: inherit; font-size: 17px; width: 100%; padding: 11px 14px; border-radius: 14px; border: 3px solid var(--creme2); margin: 5px 0; background: #fff; outline: none; }
input:focus { border-color: var(--verde); }
.linha { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.erro { color: var(--erro); min-height: 1.3em; margin: 10px 0 0; font-weight: 700; }
.entrada h3 { margin: 12px 0 0; font-size: 22px; color: var(--madeira); }
.bt.largo { display: block; width: 100%; margin-top: 8px; padding: 12px; font-size: 19px; }
.convite { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #fff6d6, #ffe6a0); border-radius: 16px; padding: 10px 12px;
  margin-bottom: 10px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ouro); }
.convite > div { flex: 1; } .convite small { display: block; color: #7a5532; line-height: 1.25; }
.protege { background: #f1ffe6; border-radius: 12px; padding: 8px 10px; box-shadow: 0 0 0 2px #9be06a; }

/* ---------- topo ---------- */
#topo { position: fixed; top: calc(10px + var(--st)); left: calc(10px + var(--sl)); right: calc(10px + var(--sr)); display: flex; gap: 10px; align-items: flex-start; pointer-events: none; }
#topo > * { pointer-events: auto; }
.perfil { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; }
.estrela { position: relative; width: 54px; height: 54px; margin: -4px 0; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.estrela b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; color: #fff; -webkit-text-stroke: 3px #9a5f00; paint-order: stroke fill; padding-top: 3px; }
#nome { font-size: 17px; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.barra { position: relative; width: 180px; height: 18px; background: rgba(0,0,0,.35); border-radius: 10px; overflow: hidden; box-shadow: inset 0 2px 3px rgba(0,0,0,.4); }
.barra i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(#a8f07a, #4caf2f); border-radius: 10px; transition: width .6s cubic-bezier(.2,.9,.3,1.2); }
.barra span { position: absolute; inset: 0; font-size: 12px; text-align: center; line-height: 18px; font-weight: 700; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
.saldo { display: flex; gap: 6px; padding: 5px 8px; margin-left: auto; }
.saldo span { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,.28); border-radius: 12px; padding: 2px 12px 2px 4px; min-width: 104px; }
.saldo img { width: 32px; height: 32px; }
.saldo b { font-size: 19px; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.pulo { animation: pulo .35s; }
@keyframes pulo { 40% { transform: scale(1.25); } }
.opcoes { display: flex; gap: 6px; padding: 6px; }

/* ---------- lateral ---------- */
#lateral { position: fixed; left: 10px; top: 88px; bottom: 10px; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 7px; }
#lateral button { width: 62px !important; height: 62px !important; }
#lateral button, #ferramentas button { position: relative; width: 70px; height: 70px; border-radius: 18px; padding: 6px 6px 16px;
  background: radial-gradient(circle at 50% 35%, #fffdf5, #f4e2bd); border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--madeira2), 0 5px 0 3px #5d3212, 0 8px 14px rgba(0,0,0,.25); transition: transform .1s; }
#lateral button:hover, #ferramentas button:hover { transform: translateY(-3px) scale(1.04); }
#lateral button span, #ferramentas button span { position: absolute; left: 0; right: 0; bottom: 1px; font-size: 12px; font-weight: 800; line-height: 1.1; }
.selo { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--erro);
  color: #fff; font-style: normal; font-weight: 800; font-size: 14px; line-height: 21px; border: 2px solid #fff; animation: brilha 1.2s infinite; }
#btDiaria.tem { animation: balanca 1.6s ease-in-out infinite; }
@keyframes balanca { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-8deg); } 20% { transform: rotate(8deg); } 30% { transform: rotate(0); } }

/* ---------- ferramentas ---------- */
#ferramentas { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; padding: 10px 14px 14px;
  background: linear-gradient(#b9763a, #8e5223); border: 3px solid #5d3212; border-radius: 24px; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 6px 0 #4a280e, 0 10px 24px rgba(0,0,0,.3);
  max-width: calc(100vw - 16px); overflow-x: auto; }
#ferramentas button.ativa { background: radial-gradient(circle at 50% 35%, #eaffd9, #9be06a); box-shadow: 0 0 0 3px #2f8a1d, 0 5px 0 3px #23661a, 0 0 22px #b9ff7a; transform: translateY(-6px); }
.qtd { position: absolute; top: -6px; right: -6px; background: var(--azul); color: #fff; font-style: normal; font-weight: 800; font-size: 12px; border-radius: 10px; padding: 0 6px; border: 2px solid #fff; }
.qtd:empty { display: none; }

#bandeja { position: fixed; bottom: 112px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px 10px; max-width: calc(100vw - 20px); overflow-x: auto;
  background: rgba(255,248,232,.96); border: 3px solid #fff; border-radius: 20px; box-shadow: 0 0 0 3px var(--madeira2), var(--sombra); }
#bandeja button { position: relative; width: 66px; height: 74px; border-radius: 14px; padding: 4px 4px 18px; background: #fff; box-shadow: 0 0 0 2px var(--creme2); flex: none; }
#bandeja button.sel { box-shadow: 0 0 0 3px var(--verde), 0 0 14px #9be06a; background: #f1ffe6; }
#bandeja button span { position: absolute; left: 0; right: 0; bottom: 1px; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
#bandeja .mais { font-size: 30px; color: var(--verde2); padding: 4px; }

#rapidos { position: fixed; right: 14px; bottom: 120px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

/* ---------- painel ---------- */
#painel { position: fixed; right: 14px; top: 86px; bottom: 120px; width: min(440px, calc(100vw - 28px)); display: flex; flex-direction: column; overflow: hidden; animation: entra .22s cubic-bezier(.2,.9,.3,1.3); }
@keyframes entra { from { transform: translateX(30px) scale(.96); opacity: 0; } }
#painel .cab { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 18px; background: linear-gradient(#b9763a, #8e5223); color: #fff; }
#painel h2 { margin: 0; font-size: 24px; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
#painelCorpo { overflow-y: auto; flex: 1; padding: 12px; }
.abas { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.card { position: relative; background: #fff; border-radius: 16px; padding: 8px; text-align: center; box-shadow: 0 0 0 2px var(--creme2), 0 3px 0 2px #e2c995; }
.card .fig { height: 76px; display: grid; place-items: center; }
.card .fig img { max-width: 100%; max-height: 76px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.2)); }
.card b { display: block; font-size: 15px; line-height: 1.15; }
.card small { display: block; font-size: 12px; color: #7a5532; line-height: 1.3; }
.card .bts { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.card.bloq .fig { filter: grayscale(1) brightness(.6); opacity: .45; }
.card .cad { position: absolute; top: 6px; left: 6px; font-size: 12px; background: #5d3212; color: #fff; border-radius: 8px; padding: 0 6px; }
.bola { display: inline-block; width: 56px; height: 56px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--creme2), inset 0 -6px 0 rgba(0,0,0,.15); }
.icm { width: 18px; height: 18px; vertical-align: -3px; }

.pedido { background: #fff; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 0 0 2px var(--creme2), 0 3px 0 2px #e2c995; }
.pedido.pronto { box-shadow: 0 0 0 3px var(--verde), 0 3px 0 3px #2f8a1d, 0 0 18px rgba(130,220,80,.6); }
.pedido .quem { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 19px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--creme2); flex: none; }
.pedido .itens { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.pedido .it { display: flex; align-items: center; gap: 4px; background: #fbf3e2; border-radius: 12px; padding: 3px 10px 3px 4px; font-weight: 700; }
.pedido .it img, .pedido .it .bola { width: 34px; height: 34px; border-width: 2px; }
.pedido .it.ok { background: #e5f9d8; color: #2f8a1d; }
.pedido .pe { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.premio { font-weight: 800; display: flex; gap: 10px; align-items: center; }
.espera { text-align: center; color: #8a6a48; padding: 16px; font-weight: 700; }

.dias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dia { background: #fff; border-radius: 14px; padding: 8px 4px; text-align: center; box-shadow: 0 0 0 2px var(--creme2); font-weight: 700; font-size: 13px; }
.dia.feito { opacity: .5; }
.dia.hoje { box-shadow: 0 0 0 3px var(--ouro), 0 0 16px rgba(255,190,0,.7); animation: brilha 1.4s infinite; }
.dia.d7 { grid-column: span 2; background: linear-gradient(#fff6d6, #ffe6a0); }
.dia img { width: 40px; height: 40px; }

.conq { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 8px 10px; margin-bottom: 8px; box-shadow: 0 0 0 2px var(--creme2); }
.conq img { width: 48px; }
.prog { height: 12px; background: #eadbbd; border-radius: 8px; overflow: hidden; margin-top: 4px; }
.prog i { display: block; height: 100%; background: linear-gradient(#ffe27a, #ffb300); border-radius: 8px; }
.medalhas { font-size: 13px; letter-spacing: 2px; }

/* ---------- missões e evento ---------- */
.missao { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; background: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 8px; box-shadow: 0 0 0 2px var(--creme2); }
.missao.feita { opacity: .55; }
.missao.pronta { box-shadow: 0 0 0 3px var(--ouro), 0 0 14px rgba(255,190,0,.5); }
.missao small { color: #7a5532; }
.evento { background: linear-gradient(135deg, #fff1c9, #ffd9ec); border-radius: 18px; padding: 12px; margin-bottom: 12px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--madeira3); }
.evento h3 { margin: 0 0 4px; font-size: 19px; color: #a0306e; }
.evento .prog { height: 18px; } .evento .prog i { background: linear-gradient(90deg, #ff7eb6, #ffb300); }

/* ---------- social ---------- */
#faixaVisita { position: fixed; top: 82px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; z-index: 3; flex-wrap: wrap; justify-content: center; }
#faixaVisita .placa { padding: 6px 16px; text-align: center; }
#faixaVisita .placa b { display: block; font-size: 20px; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
#faixaVisita .placa small { font-size: 13px; }
body.visita #lateral button:not([data-p=amigos]), body.visita #rapidos, body.visita #ferramentas [data-f=semente],
body.visita #ferramentas [data-f=fertilizar], body.visita #ferramentas [data-f=arrancar] { display: none !important; }
body.visita #aviso { top: 150px; }
#conexao { position: fixed; bottom: 120px; left: 50%; transform: translateX(-50%); background: var(--erro); color: #fff; font-weight: 800; padding: 6px 16px; border-radius: 12px; z-index: 6; }
.amigo { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 8px 10px; margin-bottom: 8px; box-shadow: 0 0 0 2px var(--creme2); }
.amigo .av { position: relative; }
.amigo .av.on::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: #3ad14a; border: 2px solid #fff; }
.amigo small { display: block; color: #7a5532; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 0 7px; margin-right: 4px; }
.tag.roubar { background: #ffe4f1; color: #c2185b; } .tag.ajudar { background: #e3f4ff; color: #1769aa; }
.secao { font-weight: 800; color: var(--madeira); margin: 12px 0 6px; font-size: 15px; }
.addAmigo { display: flex; gap: 6px; margin-bottom: 8px; } .addAmigo input { margin: 0; }
.nota { background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; box-shadow: 0 0 0 2px var(--creme2); font-size: 14px; }
.nota small { color: #8a6a48; display: block; font-size: 12px; }
.nota.nova { box-shadow: 0 0 0 2px var(--ouro); }

/* ---------- guia dos primeiros minutos ---------- */
#guia { position: fixed; z-index: 4; max-width: 280px; background: #fffbe8; color: var(--texto); border-radius: 16px; padding: 10px 14px;
  font-weight: 700; font-size: 16px; line-height: 1.3; box-shadow: 0 0 0 3px var(--ouro), 0 8px 20px rgba(0,0,0,.3); pointer-events: none;
  animation: flutua 1.6s ease-in-out infinite; transition: left .3s, top .3s; }
#guia .seta { position: absolute; width: 18px; height: 18px; background: #fffbe8; box-shadow: 3px 3px 0 0 var(--ouro); transform: rotate(45deg); }
#guia.baixo .seta { bottom: -9px; left: calc(50% - 9px); }
#guia.esq .seta { left: -9px; top: calc(50% - 9px); transform: rotate(135deg); }
#guia.dir .seta { right: -9px; top: calc(50% - 9px); transform: rotate(-45deg); }
@keyframes flutua { 50% { transform: translateY(-6px); } }
.alvo-guia { animation: brilha 1s ease-in-out infinite !important; box-shadow: 0 0 0 4px var(--ouro), 0 0 26px var(--ouro) !important; }

/* ---------- dica, aviso, modal ---------- */
#dica { position: fixed; pointer-events: none; background: rgba(255,248,232,.97); color: var(--texto); padding: 8px 12px; border-radius: 14px; font-size: 14px; max-width: 250px;
  box-shadow: 0 0 0 2px var(--madeira2), 0 6px 14px rgba(0,0,0,.25); line-height: 1.3; }
#dica b { font-size: 16px; }
#dica .prog { width: 180px; }
#aviso { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); background: rgba(59,35,15,.92); color: #fff; border-radius: 16px; padding: 8px 20px; font-weight: 700; font-size: 16px; text-align: center; max-width: calc(100vw - 40px); animation: entra .2s; }
#modal { position: fixed; inset: 0; background: rgba(20,10,0,.45); display: grid; place-items: center; padding: 16px; z-index: 10; }
#modalCorpo { width: min(460px, 100%); padding: 22px; text-align: center; animation: salta .45s cubic-bezier(.2,1.4,.4,1); max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes salta { from { transform: scale(.5); opacity: 0; } }
#modalCorpo h1 { margin: 0; font-size: 44px; line-height: 1; color: #fff; -webkit-text-stroke: 3px #e09000; paint-order: stroke fill; text-shadow: 0 4px 0 #9a5f00; }
#modalCorpo .grade { margin: 14px 0; }
.raios { width: 140px; height: 140px; margin: 0 auto -10px; position: relative; }
.raios::before { content: ""; position: absolute; inset: -30px; background: repeating-conic-gradient(rgba(255,210,60,.55) 0 12deg, transparent 12deg 30deg); border-radius: 50%; animation: gira 8s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.raios img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.3)); }
@keyframes gira { to { transform: rotate(360deg); } }

#voos { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#voos img { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; }

/* ---------- área segura (entalhe, barra de gestos) em todas as telas ---------- */
#lateral { left: calc(10px + var(--sl)); top: calc(88px + var(--st)); bottom: calc(10px + var(--sb)); }
#ferramentas { bottom: calc(12px + var(--sb)); }
#rapidos { right: calc(14px + var(--sr)); bottom: calc(120px + var(--sb)); }
#bandeja { bottom: calc(112px + var(--sb)); }
#painel { right: calc(14px + var(--sr)); top: calc(86px + var(--st)); bottom: calc(120px + var(--sb)); }

/* ---------- celular em pé: menu numa coluna à esquerda, ferramentas cabem sem rolar ---------- */
@media (max-width: 600px) and (orientation: portrait) {
  :root { --bt: min(48px, calc((100vw - 52px - var(--sl) - var(--sr)) / 7)); }
  #topo { top: calc(6px + var(--st)); left: calc(6px + var(--sl)); right: calc(6px + var(--sr)); gap: 6px; }
  .perfil { gap: 6px; padding: 4px 10px 4px 4px; min-width: 0; flex: 0 1 auto; border-radius: 14px; }
  .perfil > div { min-width: 0; }
  #nome { display: block; font-size: 13px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #btEditar span { display: none; }
  .estrela { width: 40px; height: 40px; } .estrela b { font-size: 15px; } .estrela .emo { font-size: 34px; }
  .barra { width: 92px; height: 14px; } .barra span { font-size: 10px; line-height: 14px; }
  .saldo { gap: 4px; padding: 3px 5px; border-radius: 14px; flex-direction: column; align-items: stretch; }
  .saldo span { min-width: 0; padding: 0 8px 0 2px; } .saldo img, .saldo .emo { width: 22px; height: 22px; font-size: 16px; }
  .saldo b { font-size: 14px; }
  .opcoes { flex-direction: column; padding: 4px; gap: 4px; border-radius: 14px; }
  .bt-ic { width: 30px; height: 30px; font-size: 15px; }
  #btProteger { width: 30px; height: 30px; padding: 0; border-radius: 10px; font-size: 15px; } #btProteger span { display: none; }

  #lateral { top: calc(64px + var(--st)); left: calc(6px + var(--sl)); bottom: calc(84px + var(--sb)); gap: 6px; flex-wrap: nowrap;
    overflow-y: auto; scrollbar-width: none; padding: 4px 4px 8px; margin: -4px; }
  #lateral::-webkit-scrollbar { display: none; }
  #lateral button { width: 50px !important; height: 50px !important; flex: none; border-radius: 14px; padding: 4px 4px 13px; }
  #lateral button span { font-size: 9.5px; }
  .selo { top: -6px; right: -6px; min-width: 20px; height: 20px; font-size: 12px; line-height: 17px; padding: 0 4px; }

  #ferramentas { gap: 5px; padding: 6px 6px 8px; border-radius: 18px; bottom: calc(6px + var(--sb)); max-width: calc(100vw - 8px); }
  #ferramentas button { width: var(--bt); height: var(--bt); flex: none; border-radius: 13px; padding: 3px 3px 12px; }
  #ferramentas button span { font-size: 9.5px; }
  #ferramentas button.ativa { transform: translateY(-4px); }
  #bandeja { bottom: calc(84px + var(--sb)); left: calc(62px + var(--sl)); transform: none; max-width: calc(100vw - 70px - var(--sl)); }
  #bandeja button { width: 56px; height: 64px; }
  #rapidos { right: calc(8px + var(--sr)); bottom: calc(90px + var(--sb)); gap: 8px; }
  #rapidos .bt { font-size: 15px; padding: 6px 12px; }
  #painel { top: calc(60px + var(--st)); bottom: calc(80px + var(--sb)); left: calc(6px + var(--sl)); right: calc(6px + var(--sr)); width: auto; }
  #painel h2 { font-size: 20px; }
  .grade { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  #guia { max-width: min(280px, calc(100vw - 24px)); font-size: 15px; }
  #aviso { top: calc(70px + var(--st)); font-size: 15px; }
  #faixaVisita { top: calc(64px + var(--st)); }
  #salvo { top: calc(64px + var(--st)); right: calc(50px + var(--sr)); }
  .logo { font-size: 44px; }
  #modalCorpo h1 { font-size: 36px; }
}

/* ---------- celular deitado: pouca altura, menu em 2 colunas ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  #topo { top: calc(4px + var(--st)); }
  .perfil { padding: 3px 12px 3px 3px; } .estrela { width: 38px; height: 38px; } .estrela b { font-size: 14px; }
  #nome { font-size: 13px; } .barra { height: 14px; } .barra span { font-size: 10px; line-height: 14px; }
  .saldo span { min-width: 0; } .saldo img { width: 24px; height: 24px; } .saldo b { font-size: 15px; }
  #lateral { top: calc(56px + var(--st)); bottom: calc(6px + var(--sb)); gap: 5px; }
  #lateral button { width: 46px !important; height: 46px !important; border-radius: 13px; padding: 3px 3px 12px; }
  #lateral button span { font-size: 9px; }
  #ferramentas { gap: 6px; padding: 6px 8px 8px; bottom: calc(4px + var(--sb)); }
  #ferramentas button { width: 50px; height: 50px; border-radius: 13px; padding: 3px 3px 12px; }
  #ferramentas button span { font-size: 9.5px; }
  #bandeja { bottom: calc(74px + var(--sb)); }
  #rapidos { bottom: calc(76px + var(--sb)); }
  #painel { top: calc(52px + var(--st)); bottom: calc(6px + var(--sb)); }
  #aviso { top: calc(58px + var(--st)); }
}

/* ========== COLHIX: moeda, carteira e mercado ========== */
.chx-topo { width: 34px; height: 34px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.35)); }
#btSaldo { cursor: pointer; font: inherit; color: #fff; }
#btSaldo:active { transform: translateY(2px); }
.chx-ic.icm { width: 18px; height: 18px; vertical-align: -3px; }
.chx-ic.icg { width: 40px; height: 40px; }
.chx-val { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; white-space: nowrap; }
.chx-val .chx-ic { width: 17px; height: 17px; }
.chx-val small { font-size: .78em; opacity: .8; }
#lateral button.destaque { background: radial-gradient(circle at 50% 35%, #FFF8D6, #FFD45E); box-shadow: 0 0 0 3px #C98A1E, 0 5px 0 3px #75430A, 0 0 16px rgba(255,200,60,.7); }

.m-saldo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: linear-gradient(135deg, #FFF6D6, #FFE7A3); border-radius: 14px;
  padding: 8px 12px; margin-bottom: 10px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #F5C542; }
.m-saldo .chx-val { font-size: 20px; } .m-saldo .chx-val .chx-ic { width: 26px; height: 26px; }
.m-saldo small { color: #7a5532; font-weight: 700; } .m-saldo button { margin-left: auto; }
.m-filtros { display: flex; gap: 6px; margin-bottom: 8px; } .m-filtros input { margin: 0; flex: 1; min-width: 0; }
.m-filtros select, .m-form select { font: inherit; font-size: 16px; border-radius: 12px; border: 3px solid var(--creme2); padding: 8px; background: #fff; }
.m-card { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 8px 10px;
  margin-bottom: 8px; box-shadow: 0 0 0 2px var(--creme2), 0 3px 0 2px #e2c995; }
.m-card.meu { box-shadow: 0 0 0 2px #F5C542, 0 3px 0 2px #C98A1E; }
.m-card.fechado { opacity: .6; }
.m-card .fig { display: grid; place-items: center; height: 54px; }
.m-info { min-width: 0; } .m-info b { font-size: 16px; } .m-info small { display: block; color: #7a5532; line-height: 1.35; }
.m-quem { display: flex !important; align-items: center; gap: 6px; } .m-quem .av { width: 22px; height: 22px; font-size: 11px; border-width: 2px; }
.m-tag { font-size: 12px; font-weight: 800; background: #FFE79A; color: #75430A; border-radius: 8px; padding: 2px 8px; }
.m-destaques { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; }
.m-dest { flex: none; width: 118px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 0 0 2px var(--creme2); text-align: center; }
.m-dest b { display: block; font-size: 13px; } .m-dest small { display: block; font-size: 11px; color: #7a5532; }
.m-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.m-esc { background: #fff; border-radius: 12px; padding: 6px 4px; box-shadow: 0 0 0 2px var(--creme2); text-align: center; }
.m-esc.sel { box-shadow: 0 0 0 3px var(--verde), 0 0 12px #9be06a; background: #f1ffe6; }
.m-esc b { display: block; font-size: 12px; line-height: 1.1; } .m-esc small { font-size: 11px; color: #7a5532; }
.m-form { display: grid; gap: 8px; margin: 6px 0 10px; }
.m-form label { display: grid; gap: 2px; font-weight: 800; font-size: 14px; color: var(--madeira); }
.m-form label small { font-weight: 600; color: #8a6a48; } .m-form input { margin: 0; }
.m-conta { display: grid; gap: 2px; background: #FFFBEA; border-radius: 12px; padding: 8px 12px; box-shadow: inset 0 0 0 2px #FFE79A; text-align: left; }
.m-conta span { color: #7a5532; font-weight: 700; font-size: 14px; } .m-conta b { font-size: 16px; color: #2f6b1d; }
.m-nota { color: #8a6a48; line-height: 1.3; }
.m-hist { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 6px;
  box-shadow: 0 0 0 2px var(--creme2); }
.m-hist small { display: block; color: #7a5532; font-size: 12px; } .m-hist .fig { display: grid; place-items: center; }
.m-valor { font-size: 17px; } .m-hist.venda .m-valor { color: #2f8a1d; } .m-hist.compra .m-valor { color: #b5452a; }

.carteira-moeda { display: flex; align-items: center; gap: 14px; background: radial-gradient(circle at 20% 30%, #FFF4C2, #F5C542 60%, #C98A1E);
  border-radius: 20px; padding: 14px 16px; margin-bottom: 12px; color: #4E2A06; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 0 0 3px #75430A; }
.carteira-moeda img { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 4px 3px rgba(80,40,0,.4)); }
.carteira-moeda img.gira { animation: moeda-gira 4.5s ease-in-out infinite; }
@keyframes moeda-gira { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
.carteira-moeda small { display: block; font-weight: 800; } .carteira-moeda b { font-size: 34px; line-height: 1.05; } .carteira-moeda b span { font-size: 16px; }
.c-cartao { background: linear-gradient(160deg, #EFFFE4, #D3F5BE); border-radius: 18px; padding: 12px; margin-bottom: 10px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4FB33B; }
.c-cartao h3 { margin: 0 0 8px; color: #23661a; font-size: 19px; }
.c-sacavel { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .c-sacavel span { font-weight: 700; color: #2f6b1d; }
.c-sacavel b { font-size: 28px; color: #1d5a12; } .c-sacavel small { color: #3c7a2a; font-weight: 700; }
.c-falta { margin: 8px 0; font-weight: 700; color: #4b5a2f; }
.c-regras { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: #3e5a2c; line-height: 1.35; }
.c-saque { background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; box-shadow: 0 0 0 2px var(--creme2); }
.c-saque b { font-size: 18px; } .c-saque small { display: block; color: #7a5532; }
.c-saque.pago { box-shadow: 0 0 0 2px #4FB33B; } .c-saque.pendente { box-shadow: 0 0 0 2px #F5C542; } .c-saque.recusado { opacity: .7; }
.c-mov { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 4px; border-bottom: 1px dashed #e8d6b4; }
.c-mov img { width: 22px; } .c-mov small { display: block; color: #8a6a48; font-size: 12px; }
.c-mov.entra > b { color: #2f8a1d; } .c-mov.sai > b { color: #b5452a; }

/* ========== ABERTURA, 2ª dobra: "sua colheita vale dinheiro de verdade" ==========
   Noite de colheita em ouro: COLHIX gigante girando com raios, chuva de moedas, passo a passo e as regras sem letra miúda.
   Os números (cotação, mínimo, taxa, prazo) vêm do servidor: a tela promete exatamente o que o sistema faz. */
.bt-ganhos { margin-top: 14px; padding: 9px 18px; border-radius: 999px; font: 700 15px/1.2 "Baloo 2", system-ui, sans-serif; color: #FFF3D1;
  background: linear-gradient(90deg, rgba(78,26,13,.55), rgba(166,107,18,.55)); box-shadow: inset 0 0 0 2px #F5C542, 0 0 18px rgba(245,197,66,.45);
  animation: surge .6s ease-out 2s both, chama 2.6s ease-in-out 3s infinite; }
.bt-ganhos b { color: #FFE79A; }
.bt-ganhos i { font-style: normal; display: inline-block; animation: desce 1.2s ease-in-out infinite; }
@keyframes desce { 50% { transform: translateY(4px); } }
.ganhos { position: relative; overflow: hidden; padding: 56px 18px calc(48px + var(--sb)); color: var(--c-milho);
  background: radial-gradient(ellipse 90% 50% at 50% 0%, #6B3A8C 0%, transparent 70%),
              linear-gradient(180deg, #3A2252 0%, #241433 55%, #2B1A12 100%); }
.ganhos::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: repeating-linear-gradient(100deg, transparent 0 9px, rgba(245,197,66,.16) 9px 11px), linear-gradient(transparent, rgba(166,107,18,.35)); }
.g-chuva { position: absolute; inset: 0; pointer-events: none; }
.g-chuva i { position: absolute; top: -60px; left: var(--x); width: calc(34px * var(--s)); aspect-ratio: 1; background: url(colhix-p.svg) center/contain no-repeat;
  opacity: .85; animation: chove var(--t) linear var(--d) infinite; filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); }
@keyframes chove { to { transform: translateY(1400px) rotate(540deg); } }
.g-palco { position: relative; width: min(62vw, 300px); aspect-ratio: 1; margin: 0 auto 6px; perspective: 700px; }
.g-raios { position: absolute; inset: -45%; border-radius: 50%; animation: gira 24s linear infinite;
  background: repeating-conic-gradient(rgba(255,220,120,.32) 0 5deg, transparent 5deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 64%); mask: radial-gradient(circle, #000 20%, transparent 64%); }
.g-palco::after { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255,215,110,.55), transparent 65%); filter: blur(8px); }
.g-moeda { position: relative; z-index: 1; width: 100%; height: 100%; animation: moeda3d 5s cubic-bezier(.45,.05,.55,.95) infinite;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,.5)) drop-shadow(0 0 24px rgba(255,200,80,.45)); }
@keyframes moeda3d { 0% { transform: rotateY(0) translateY(0); } 25% { transform: rotateY(25deg) translateY(-10px); }
  50% { transform: rotateY(360deg) translateY(0); } 75% { transform: rotateY(335deg) translateY(-8px); } 100% { transform: rotateY(360deg); } }
.g-titulo { position: relative; margin: 0 auto 10px; max-width: 14ch; font: 400 clamp(36px, 9.5vw, 72px)/1.02 var(--f-marca); color: var(--c-mel);
  -webkit-text-stroke: .07em var(--c-roxa2); paint-order: stroke fill; text-shadow: 0 .05em 0 var(--c-roxa2), 0 .09em 0 var(--c-roxa2), 0 .14em .1em rgba(0,0,0,.45); }
.g-titulo em { font-style: normal; display: block; color: #FFE79A; }
.g-sub { position: relative; max-width: 30ch; margin: 0 auto 26px; font: 700 clamp(17px, 4.4vw, 22px)/1.3 "Baloo 2", system-ui, sans-serif; }
.g-sub b { color: #FFE79A; }
.g-passos { position: relative; list-style: none; margin: 0 auto 26px; padding: 0; max-width: 980px; display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr); counter-reset: passo; }
.g-passos::before { content: ""; position: absolute; left: 12%; right: 12%; top: 46px; border-top: 4px dotted rgba(245,197,66,.6); }
.g-passos li { position: relative; counter-increment: passo; display: grid; justify-items: center; gap: 4px; padding: 0 6px; }
.g-passos li > b { font: 400 21px/1.1 var(--f-marca); color: #FFE79A; text-shadow: 0 2px 0 var(--c-roxa2); }
.g-passos li > span:last-child { font-size: 14px; line-height: 1.3; color: rgba(255,243,209,.9); max-width: 22ch; }
.g-ic { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #FFF6D6, #F5C542 55%, #A66B12); box-shadow: 0 0 0 4px var(--c-roxa2), 0 8px 0 4px #2B1A12, 0 0 26px rgba(245,197,66,.5); }
.g-ic::after { content: counter(passo); position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 400 17px/1 var(--f-marca); background: #4FB33B; color: #fff; box-shadow: 0 0 0 3px var(--c-roxa2); }
.g-ic img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
/* barraca do mercado e celular de pagamento desenhados em CSS (nada de logotipo de terceiros) */
.g-banca i { position: relative; width: 52px; height: 40px; margin-top: 10px; background: #8E5223; border-radius: 4px; box-shadow: inset 0 -8px 0 #6b3a17; }
.g-banca i::before { content: ""; position: absolute; left: -8px; right: -8px; top: -16px; height: 18px; border-radius: 6px 6px 10px 10px;
  background: repeating-linear-gradient(90deg, #E4572E 0 11px, #FFF3D1 11px 22px); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.g-banca i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 25% 50%, #E8432F 0 5px, transparent 6px), radial-gradient(circle at 55% 50%, #FFB52E 0 5px, transparent 6px),
              radial-gradient(circle at 82% 50%, #6FD13F 0 5px, transparent 6px); }
.g-pix i { position: relative; width: 36px; height: 58px; border-radius: 8px; background: #2B1A12; box-shadow: inset 0 0 0 3px #4E1A0D; }
.g-pix i::before { content: "R$"; position: absolute; inset: 7px 4px 10px; border-radius: 4px; display: grid; place-items: center;
  font: 800 14px/1 "Baloo 2", system-ui; color: #1d5a12; background: linear-gradient(160deg, #DFFFC0, #6FD13F); }
.g-pix i::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 8px; height: 3px; margin-left: -4px; border-radius: 2px; background: #6b4a3a; }
.g-regras { position: relative; max-width: 620px; margin: 0 auto 28px; text-align: left; padding: 16px 18px 12px; border-radius: 20px;
  background: rgba(255,243,209,.08); box-shadow: inset 0 0 0 2px rgba(245,197,66,.55); }
.g-regras h3 { margin: 0 0 8px; font: 400 20px/1.1 var(--f-marca); color: #FFE79A; }
.g-regras ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.35; }
.g-regras b { color: #FFE79A; }
.g-cta { margin: 0 auto; animation: chama 2.2s ease-in-out infinite; }
@media (max-width: 760px) {
  .g-passos { grid-template-columns: 1fr; gap: 12px; max-width: 420px; }
  .g-passos::before { left: 46px; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 4px dotted rgba(245,197,66,.6); }
  .g-passos li { grid-template-columns: 92px 1fr; justify-items: start; text-align: left; column-gap: 14px; }
  .g-passos li .g-ic { grid-row: span 2; }
  .g-passos li > b { align-self: end; }
}

/* faixa dos ganhos NA PRIMEIRA TELA: é o diferencial da Colhetta (pedido do dono: "bem destacado") */
.faixa-ganhos { position: relative; display: grid; justify-items: center; margin: clamp(14px, 3vh, 26px) 0 clamp(16px, 3vh, 26px);
  padding: 12px clamp(46px, 13vw, 84px) 14px; border-radius: 22px; color: var(--c-roxa2); cursor: pointer;
  background: linear-gradient(180deg, #FFF6CF 0%, #FFE07A 38%, #F5B83A 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.8), inset 0 -5px 0 rgba(166,107,18,.45), 0 0 0 4px var(--c-roxa2), 0 9px 0 4px #2B1A12,
              0 0 34px 6px rgba(255,205,90,.75);
  animation: surge .6s ease-out 1.4s both; }
.faixa-ganhos::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 54px 14px rgba(255,215,100,.95); will-change: opacity; animation: brilho-faixa 2.4s ease-in-out 2.2s infinite; }
.faixa-ganhos::before { will-change: transform; content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 45%, transparent 60%) -200% 0 / 200% 100% no-repeat;
  animation: reflexo 3.2s ease-in-out 2.4s infinite; }
@keyframes reflexo { 60%, 100% { background-position: 200% 0; } }
@keyframes brilho-faixa { 50% { opacity: 1; } }
.fg-topo { font: 800 clamp(15px, 4vw, 20px)/1 "Baloo 2", system-ui, sans-serif; letter-spacing: .02em; }
.fg-grande { font: 400 clamp(34px, 10.5vw, 64px)/.95 var(--f-marca); color: #2E7D2A; -webkit-text-stroke: .06em var(--c-roxa2); paint-order: stroke fill;
  text-shadow: 0 .05em 0 var(--c-roxa2), 0 .09em 0 rgba(78,26,13,.6); margin: 4px 0 6px; }
.fg-como { font: 800 clamp(13px, 3.5vw, 17px)/1.2 "Baloo 2", system-ui, sans-serif; color: #5a2a0c; max-width: 26ch; }
.fg-moeda { position: absolute; top: 50%; width: clamp(48px, 14vw, 86px); filter: drop-shadow(0 6px 6px rgba(40,10,0,.45)); }
.fg-moeda.e { left: 0; translate: -42% -50%; rotate: -14deg; animation: pula-moeda 1.8s ease-in-out infinite; }
.fg-moeda.d { right: 0; translate: 42% -50%; rotate: 12deg; animation: pula-moeda 1.8s ease-in-out .9s infinite; }
@keyframes pula-moeda { 50% { transform: translateY(-9px) rotateY(180deg); } }
.faixa-ganhos:active { transform: translateY(3px); }
.faixa-ganhos:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.bt-ganhos { margin-top: 10px; }
@media (max-height: 500px) {
  .faixa-ganhos { margin: 6px 0 10px; padding: 6px 60px 8px; }
  .fg-grande { font-size: clamp(24px, 9vh, 40px); }
  .fg-grande br { display: none; }
}

/* "DINHEIRO DE VERDADE" do tamanho da tela, vivo: dourado correndo por dentro, letras pulando, faíscas */
.faixa-ganhos { padding: 14px clamp(30px, 9vw, 70px) 16px; width: min(94vw, 760px); }
.fg-topo { font-size: clamp(19px, 5.4vw, 30px); }
.fg-grande { display: grid; justify-items: center; margin: 4px 0 8px; font-size: clamp(50px, 15.5vw, 118px); line-height: .9; color: transparent;
  -webkit-text-stroke: 0; text-shadow: none; }
.fg-grande span { display: block; white-space: nowrap; }
.fg-grande .fg-l2 { font-size: .74em; }
.fg-grande i { position: relative; display: inline-block; font-style: normal; color: #1F6A1C;
  -webkit-text-stroke: .085em var(--c-roxa2); paint-order: stroke fill;
  text-shadow: 0 .04em 0 var(--c-roxa2), 0 .08em 0 var(--c-roxa2), 0 .12em .06em rgba(40,10,0,.45);
  animation: letra-pula 2.6s cubic-bezier(.3,1.6,.5,1) calc(2s + var(--k) * .07s) infinite; }
/* o brilho verde-dinheiro corre por dentro de cada letra */
.fg-grande i::after { content: attr(data-c); }
.fg-grande i { background: linear-gradient(100deg, #2E9A2A 0%, #5BD14A 30%, #E9FFB0 45%, #5BD14A 60%, #2E9A2A 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-position: calc(var(--k) * -17%) 0;
  animation: letra-pula 2.6s cubic-bezier(.3,1.6,.5,1) calc(2s + var(--k) * .07s) infinite; }
@keyframes letra-pula { 0%, 22%, 100% { transform: translateY(0) scale(1); } 8% { transform: translateY(-14%) scale(1.08); } }
@keyframes corre-ouro { to { background-position: -300% 0; } }
.fg-como { font-size: clamp(15px, 4.2vw, 21px); max-width: 30ch; }
.fg-faisca { position: absolute; inset: -18px; pointer-events: none; }
.fg-faisca i { position: absolute; width: 18px; height: 18px; background: radial-gradient(circle, #fff 0 18%, transparent 20%),
  conic-gradient(from 45deg, transparent 0 10%, #FFF6B0 12% 13%, transparent 15% 35%, #FFF6B0 37% 38%, transparent 40% 60%, #FFF6B0 62% 63%, transparent 65% 85%, #FFF6B0 87% 88%, transparent 90%);
  border-radius: 50%; animation: faisca 1.9s ease-in-out infinite; opacity: 0; }
.fg-faisca i:nth-child(1) { left: 6%; top: 8%; animation-delay: .1s; } .fg-faisca i:nth-child(2) { right: 9%; top: 4%; animation-delay: .7s; }
.fg-faisca i:nth-child(3) { left: 14%; bottom: 10%; animation-delay: 1.2s; } .fg-faisca i:nth-child(4) { right: 4%; bottom: 22%; animation-delay: .4s; }
.fg-faisca i:nth-child(5) { left: 48%; top: -2%; animation-delay: 1.5s; } .fg-faisca i:nth-child(6) { left: 2%; top: 48%; animation-delay: .9s; }
@keyframes faisca { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 40% { opacity: 1; transform: scale(1.5) rotate(45deg); } }
@media (max-height: 500px) {
  .fg-grande { font-size: clamp(30px, 11vh, 56px); }
  .fg-grande span { display: inline; } .fg-grande .fg-l2 { font-size: 1em; margin-left: .25em; }
}
/* correção: com a letra transparente (brilho por dentro) a sombra de texto vazava e deixava tudo marrom; profundidade via filter */
.fg-grande i { text-shadow: none; -webkit-text-stroke: .07em var(--c-roxa2);
  filter: drop-shadow(0 .06em 0 #4E1A0D) drop-shadow(0 .08em .05em rgba(40,10,0,.35)); }
/* com a faixa grande, o nome encolhe um pouco para tudo caber na primeira tela */
.marca { font-size: clamp(44px, min(15vw, 11vh), 140px); }
/* tela larga e baixa (PC): a faixa também respeita a altura, para o nome não sair por cima */
.fg-grande { font-size: clamp(46px, min(15.5vw, 10.5vh), 118px); }
.faixa-ganhos { width: min(94vw, 760px, 96vh); }
.marca { font-size: clamp(44px, min(15vw, 10.5vh), 140px); }

/* dono: a explicação NÃO fica embaixo; abre só quando toca na faixa, como tela animada por cima */
#abertura { overflow: hidden; }
.ganhos { position: fixed; inset: 0; z-index: 36; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding-top: calc(40px + var(--st)); scrollbar-width: none; }
.ganhos::-webkit-scrollbar { display: none; }
.ganhos.abrindo { animation: ganhos-entra .55s cubic-bezier(.2,1.2,.3,1) both; }
@keyframes ganhos-entra { from { opacity: 0; transform: scale(.9) translateY(30px); } }
.ganhos.abrindo .g-palco { animation: moeda-cai .9s cubic-bezier(.3,1.5,.5,1) .15s both; }
@keyframes moeda-cai { from { transform: translateY(-60vh) scale(.4); opacity: 0; } }
.ganhos.abrindo .g-titulo { animation: surge .6s ease-out .55s both; }
.ganhos.abrindo .g-sub { animation: surge .6s ease-out .7s both; }
.ganhos.abrindo .g-passos li { animation: passo-entra .55s cubic-bezier(.2,1.4,.4,1) both; }
.ganhos.abrindo .g-passos li:nth-child(1) { animation-delay: .9s; } .ganhos.abrindo .g-passos li:nth-child(2) { animation-delay: 1.1s; }
.ganhos.abrindo .g-passos li:nth-child(3) { animation-delay: 1.3s; } .ganhos.abrindo .g-passos li:nth-child(4) { animation-delay: 1.5s; }
@keyframes passo-entra { from { opacity: 0; transform: translateY(24px) scale(.8); } }
.ganhos.abrindo .g-regras { animation: surge .6s ease-out 1.8s both; }
.ganhos.abrindo .g-cta { animation: surge .6s ease-out 2s both, chama 2.2s ease-in-out 2.6s infinite; }
.g-fechar { position: fixed; z-index: 2; top: calc(12px + var(--st)); right: calc(12px + var(--sr)); width: 44px; height: 44px; border-radius: 50%;
  font: 800 20px/1 "Baloo 2", system-ui; color: var(--c-roxa2); background: linear-gradient(#FFF6CF, #F5C542);
  box-shadow: 0 0 0 3px var(--c-roxa2), 0 4px 0 3px #2B1A12; }
.g-fechar:active { transform: translateY(2px); }
.g-fechar:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* telas deitadas (PC, tablet e celular na horizontal): tudo medido pela altura */
@media (min-aspect-ratio: 1/1) {
  .marca { font-size: clamp(36px, 9vh, 120px); }
  .fg-grande { font-size: clamp(30px, 8.4vh, 100px); }
  .fg-topo { font-size: clamp(14px, 3.2vh, 28px); } .fg-como { font-size: clamp(12px, 2.6vh, 20px); }
  .faixa-ganhos { padding-top: 1.2vh; padding-bottom: 1.6vh; margin: 1.6vh 0 2vh; }
  #abertura .miolo { height: calc(var(--horizonte) - 1vh); }
  .bt-jogar { padding-top: 1.6vh; padding-bottom: 1.9vh; }
}

/* ========== atualização disponível + novidades ========== */
#atualizacao { position: fixed; z-index: 45; left: 50%; top: calc(10px + var(--st)); transform: translateX(-50%); width: min(560px, calc(100vw - 16px));
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; color: #FFF3D1;
  background: linear-gradient(135deg, #4B2F6B, #7B3F7E); box-shadow: 0 0 0 3px #F5C542, 0 10px 26px rgba(0,0,0,.45);
  animation: at-desce .5s cubic-bezier(.2,1.4,.4,1); }
#atualizacao > div { flex: 1; min-width: 0; } #atualizacao b { display: block; font-size: 16px; }
#atualizacao small { display: block; font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#atualizacao .bt.ouro { animation: chama 1.6s ease-in-out infinite; }
.at-brilho { font-size: 24px; animation: gira 6s linear infinite; }
@keyframes at-desce { from { transform: translate(-50%, -140%); } }
@media (max-width: 600px) and (orientation: portrait) { #atualizacao { flex-wrap: wrap; } #atualizacao > div { flex-basis: calc(100% - 40px); } #atualizacao .bt { flex: 1; } }
.novidade { background: #fff; border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; box-shadow: 0 0 0 2px var(--creme2); }
.novidade.ultima { box-shadow: 0 0 0 3px #F5C542, 0 0 16px rgba(245,197,66,.5); }
.nv-cab { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; } .nv-cab b { font-size: 17px; color: var(--madeira); }
.nv-cab small { color: #8a6a48; font-weight: 700; }
.novidade ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.35; }

/* ========== Indique e Ganhe: banner da primeira entrada do dia + painel ========== */
#bannerIndica { position: fixed; inset: 0; z-index: 38; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 40%, rgba(75,47,107,.55), rgba(20,8,30,.82)); }
.bi-cartao { position: relative; width: min(440px, 100%); max-height: calc(var(--alt, 100vh) - 32px); overflow-y: auto; scrollbar-width: none;
  padding: 26px 20px 22px; border-radius: 28px; text-align: center; color: var(--c-milho);
  background: radial-gradient(ellipse 120% 70% at 50% 0%, #7B3F7E 0%, transparent 60%), linear-gradient(170deg, #4B2F6B, #2B1A3A 70%, #3A2216);
  box-shadow: 0 0 0 4px var(--c-roxa2), 0 0 0 7px #F5C542, 0 20px 60px rgba(0,0,0,.6), 0 0 80px rgba(245,197,66,.35); }
.bi-cartao::-webkit-scrollbar { display: none; }
#bannerIndica.abrindo .bi-cartao { animation: bi-entra .6s cubic-bezier(.2,1.4,.35,1); }
@keyframes bi-entra { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
.bi-fechar { position: absolute; top: 12px; right: 12px; }
.bi-palco { position: relative; height: 150px; margin: 6px auto 4px; display: flex; align-items: center; justify-content: center; gap: 0; }
.bi-raios { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; animation: gira 20s linear infinite;
  background: repeating-conic-gradient(rgba(255,220,120,.28) 0 6deg, transparent 6deg 16deg);
  -webkit-mask: radial-gradient(circle, #000 15%, transparent 62%); mask: radial-gradient(circle, #000 15%, transparent 62%); }
.bi-moeda { position: relative; z-index: 2; width: 116px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)) drop-shadow(0 0 22px rgba(255,200,80,.5)); }
#bannerIndica.abrindo .bi-moeda { animation: moeda-cai .8s cubic-bezier(.3,1.5,.5,1) .1s both, moeda3d 5s ease-in-out 1s infinite; }
/* dois fazendeiros desenhados (rosto + chapéu de palha), ligados por um cipó que brota */
.bi-amigo { position: relative; z-index: 2; width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 52%, #3b230f 0 3px, transparent 4px), radial-gradient(circle at 64% 52%, #3b230f 0 3px, transparent 4px),
              radial-gradient(ellipse 14px 7px at 50% 70%, #c0392b 0 40%, transparent 45%), radial-gradient(circle at 50% 45%, #F7D2AC, #E8A97A);
  box-shadow: 0 0 0 3px var(--c-roxa2), 0 6px 10px rgba(0,0,0,.4); }
.bi-amigo.d { background: radial-gradient(circle at 36% 52%, #3b230f 0 3px, transparent 4px), radial-gradient(circle at 64% 52%, #3b230f 0 3px, transparent 4px),
  radial-gradient(ellipse 14px 7px at 50% 70%, #c0392b 0 40%, transparent 45%), radial-gradient(circle at 50% 45%, #E3B48A, #B9774A); }
.bi-amigo i { position: absolute; left: -10px; right: -10px; top: -14px; height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, #FFE27A, #E0A82E); box-shadow: 0 3px 0 #A66B12; }
.bi-amigo i::before { content: ""; position: absolute; left: 22px; right: 22px; top: -14px; height: 22px; border-radius: 12px 12px 4px 4px;
  background: linear-gradient(#FFE27A, #E0A82E); box-shadow: inset 0 -5px 0 #C0392B; }
#bannerIndica.abrindo .bi-amigo.e { animation: amigo-entra .6s cubic-bezier(.3,1.5,.5,1) .35s both; }
#bannerIndica.abrindo .bi-amigo.d { animation: amigo-entra .6s cubic-bezier(.3,1.5,.5,1) .5s both; }
@keyframes amigo-entra { from { transform: translateY(40px) scale(.3); opacity: 0; } }
.bi-cipo { position: absolute; z-index: 1; left: 50%; top: 50%; width: 260px; height: 70px; margin: -35px 0 0 -130px; overflow: visible; }
.bi-cipo path { fill: none; stroke: #6FD13F; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0;
  filter: drop-shadow(0 2px 0 #1F5A1C); }
#bannerIndica.abrindo .bi-cipo path { animation: cipo .9s ease-out .6s both; }
@keyframes cipo { from { stroke-dashoffset: 260; } }
.bi-explosao { position: absolute; left: 50%; top: 50%; z-index: 1; }
.bi-explosao i { position: absolute; width: 26px; height: 26px; margin: -13px; background: url(colhix-p.svg) center/contain no-repeat; opacity: 0; }
#bannerIndica.abrindo .bi-explosao i { animation: estoura 1.3s cubic-bezier(.2,.8,.3,1) calc(.5s + var(--d)) both; }
@keyframes estoura { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(.4); }
  70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(150px) scale(1) rotate(200deg); } }
.bi-titulo { margin: 4px 0 6px; font: 400 clamp(40px, 12vw, 58px)/.95 var(--f-marca); color: #FFE79A; -webkit-text-stroke: .07em var(--c-roxa2); paint-order: stroke fill;
  text-shadow: 0 .05em 0 var(--c-roxa2), 0 .1em 0 var(--c-roxa2), 0 .15em .1em rgba(0,0,0,.5); }
#bannerIndica.abrindo .bi-titulo { animation: surge .5s ease-out .7s both; }
.bi-valor { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 2px; padding: 6px 18px 8px; border-radius: 999px;
  background: linear-gradient(180deg, #FFF6CF, #F5B83A); color: var(--c-roxa2); box-shadow: 0 0 0 3px var(--c-roxa2), 0 6px 0 3px #2B1A12, 0 0 30px rgba(255,205,90,.6); }
.bi-valor img { width: 38px; } .bi-valor b { font: 400 clamp(38px, 11vw, 54px)/1 var(--f-marca); color: #2E7D2A; -webkit-text-stroke: .05em var(--c-roxa2); paint-order: stroke fill; }
.bi-valor span { font: 800 16px/1 "Baloo 2", system-ui; }
#bannerIndica.abrindo .bi-valor { animation: surge .5s ease-out .8s both, chama 2s ease-in-out 2.4s infinite; }
.bi-regra { margin: 12px auto 4px; max-width: 30ch; font: 700 16px/1.3 "Baloo 2", system-ui; }
.bi-saque { margin: 2px 0 14px; font: 800 17px/1.2 "Baloo 2", system-ui; color: #9BF27A; }
.bi-cta { margin: 0 auto; } .bi-ver { display: block; margin: 10px auto 0; }

.sel-seq { display: inline-block; margin-top: 3px; padding: 0 8px; border-radius: 8px; font-size: 12px; font-weight: 800; line-height: 18px;
  background: linear-gradient(90deg, #FF7A2E, #FFB52E); color: #4E1A0D; box-shadow: 0 0 10px rgba(255,140,40,.6); }
@media (max-width: 600px) and (orientation: portrait) { .sel-seq { font-size: 10px; line-height: 15px; padding: 0 5px; } }
#lateral button.indica { background: radial-gradient(circle at 50% 35%, #EFFFE0, #9BE06A); box-shadow: 0 0 0 3px #2E7D2A, 0 5px 0 3px #1F5A1C, 0 0 16px rgba(120,230,80,.7);
  animation: balanca 2.4s ease-in-out infinite; }

.ind-topo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 18px; color: #FFF3D1;
  background: linear-gradient(135deg, #4B2F6B, #7B3F7E); box-shadow: 0 0 0 3px #F5C542; }
.ind-topo img { width: 64px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); }
.ind-topo small { display: block; font-weight: 700; opacity: .9; } .ind-topo b { font: 400 34px/1 var(--f-marca); color: #FFE79A; } .ind-topo b span { font: 800 15px "Baloo 2"; }
.ind-link { display: flex; gap: 6px; margin-bottom: 10px; } .ind-link input { margin: 0; font-size: 14px; }
.ind-total { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #FFFBEA; border-radius: 14px; padding: 8px 12px; box-shadow: inset 0 0 0 2px #FFE79A; }
.ind-total span { color: #7a5532; font-weight: 700; } .ind-total .chx-val { font-size: 20px; }
.ind-amigo { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; background: #fff; border-radius: 14px; padding: 8px 10px; margin-bottom: 8px;
  box-shadow: 0 0 0 2px var(--creme2); }
.ind-amigo.pago { box-shadow: 0 0 0 2px #4FB33B; } .ind-amigo.rev { box-shadow: 0 0 0 2px #F5C542; } .ind-amigo.neg { opacity: .75; }
.ind-info small { display: block; color: #7a5532; font-size: 12px; margin-top: 2px; } .ind-info .prog { height: 9px; }
.ind-est { font-size: 12px; font-weight: 800; border-radius: 8px; padding: 0 7px; background: #eee; }
.pago .ind-est { background: #DFF7CF; color: #23661a; } .rev .ind-est { background: #FFF1C4; color: #8a5a00; } .neg .ind-est { background: #FFE0DA; color: #b5452a; }
.and .ind-est { background: #E3F0FF; color: #1769aa; }
.ind-falta { color: #8a5a00 !important; font-weight: 700; }
.ind-regras { color: #5a4a2c; }

/* ========== caixa exclusiva do Indique e Ganhe, ao lado da placa de nível ==========
   verde de roça com borda dourada, presentinho com a tampa pulando, brilho passando e o prêmio em COLHIX. */
.indica-topo { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 18px; cursor: pointer;
  font: inherit; color: #fff; overflow: hidden; flex: none;
  background: linear-gradient(165deg, #6FD13F 0%, #3E9A2C 55%, #2A7A20 100%); border: 3px solid #1F5A1C;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 0 0 2px #F5C542, 0 4px 0 2px #154512, 0 8px 18px rgba(0,0,0,.28);
  transition: transform .12s; }
.indica-topo:hover { transform: translateY(-2px); }
.indica-topo:active { transform: translateY(2px); }
.indica-topo:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.indica-topo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-110%);
  will-change: transform; animation: reflexo-anda 3.6s ease-in-out 1s infinite; }
@keyframes reflexo-anda { 60%, 100% { transform: translateX(110%); } }
.it-presente { position: relative; width: 40px; height: 40px; flex: none; }
.it-caixa { position: absolute; left: 5px; right: 5px; bottom: 2px; height: 22px; border-radius: 4px;
  background: linear-gradient(90deg, transparent 42%, #FFE27A 42% 58%, transparent 58%), linear-gradient(#FF7A5A, #D8402A);
  box-shadow: 0 0 0 2px #7A1E10, inset 0 -4px 0 rgba(0,0,0,.18); }
.it-tampa { position: absolute; left: 2px; right: 2px; top: 9px; height: 10px; border-radius: 3px; z-index: 1;
  background: linear-gradient(90deg, transparent 42%, #FFE27A 42% 58%, transparent 58%), linear-gradient(#FF8E70, #E4502E);
  box-shadow: 0 0 0 2px #7A1E10; animation: tampa 2.4s ease-in-out infinite; }
.it-tampa::before, .it-tampa::after { content: ""; position: absolute; top: -9px; width: 12px; height: 10px; border-radius: 50% 50% 0 50%;
  background: #FFD34D; box-shadow: 0 0 0 2px #9A5F00; }
.it-tampa::before { left: calc(50% - 13px); transform: rotate(-20deg); } .it-tampa::after { left: calc(50% + 1px); transform: scaleX(-1) rotate(-20deg); }
@keyframes tampa { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 78% { transform: translateY(-6px) rotate(-6deg); } 86% { transform: translateY(-3px) rotate(4deg); } }
.it-txt { display: grid; line-height: 1; text-align: left; }
.it-txt small { font-size: 12px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.it-txt b { display: flex; align-items: center; gap: 4px; margin-top: 3px; font: 400 21px/1 var(--f-marca); color: #FFE79A;
  -webkit-text-stroke: 4px #1F5A1C; paint-order: stroke fill; }
.it-txt b img { width: 20px; height: 20px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.it-curto { display: none; }
/* 🔥 vira emblema na estrela de nível (não aumenta a placa) */
.estrela .sel-seq { position: absolute; right: -10px; bottom: -6px; z-index: 2; margin: 0; padding: 0 5px; font-size: 11px; line-height: 17px; border-radius: 9px;
  box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(255,140,40,.7); }

@media (max-height: 500px) and (orientation: landscape) {
  .indica-topo { padding: 3px 10px 3px 5px; gap: 6px; border-radius: 14px; }
  .it-presente { width: 32px; height: 32px; } .it-caixa { height: 17px; } .it-tampa { top: 7px; height: 8px; }
  .it-txt small { font-size: 11px; } .it-txt b { font-size: 17px; }
}
/* celular em pé: caixa compacta (presente + "10 mil"), sem empurrar saldo e botões */
@media (max-width: 600px) and (orientation: portrait) {
  .indica-topo { padding: 3px 7px 3px 3px; gap: 3px; border-radius: 14px; border-width: 2px;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 0 0 2px #F5C542, 0 3px 0 2px #154512; }
  .it-presente { width: 30px; height: 30px; } .it-caixa { left: 3px; right: 3px; height: 16px; } .it-tampa { left: 1px; right: 1px; top: 7px; height: 8px; }
  .it-tampa::before, .it-tampa::after { width: 9px; height: 8px; top: -7px; }
  .it-txt small { font-size: 9.5px; } .it-txt b { font-size: 15px; gap: 2px; -webkit-text-stroke-width: 3px; } .it-txt b img { width: 14px; height: 14px; }
  .it-cheio { display: none; } .it-curto { display: inline; }
  .estrela .sel-seq { right: -8px; bottom: -5px; font-size: 9.5px; line-height: 14px; padding: 0 4px; }
}
@media (max-width: 390px) and (orientation: portrait) {
  #nome { max-width: 74px; } .barra { width: 76px; }
  .it-txt small { display: none; }
}
/* telas de 360-390 px: placa de nível, caixa da indicação, saldo e botões cabem lado a lado sem se espremer */
@media (max-width: 390px) and (orientation: portrait) {
  .perfil { flex: none; gap: 4px; padding-right: 8px; }
  #nome { max-width: 60px; font-size: 12px; } .barra { width: 62px; } .barra span { font-size: 9px; }
  .indica-topo { padding: 2px 6px 2px 2px; } .it-presente { width: 26px; height: 26px; }
  .it-caixa { height: 14px; } .it-tampa { top: 6px; height: 7px; } .it-txt b { font-size: 13px; }
  .saldo b { font-size: 13px; } .saldo img { width: 20px; height: 20px; }
}
@media (max-width: 600px) and (orientation: portrait) { .perfil { flex: none; } }
@media (max-width: 370px) and (orientation: portrait) {
  #topo { gap: 4px; }
  .bt-ic { width: 28px; height: 28px; font-size: 14px; } .opcoes { padding: 3px; }
  .saldo span { padding: 0 5px 0 1px; } .it-txt b { font-size: 12px; }
}
@media (max-width: 440px) and (min-width: 391px) and (orientation: portrait) {
  .it-txt small { display: none; } #nome { max-width: 76px; } .barra { width: 80px; }
}

/* ---------- faixa de META (08/10): próximo objetivo sempre à vista ---------- */
#meta { position: fixed; z-index: 3; top: 12px; left: 50%;
  display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 5px; border-radius: 16px; text-align: left; color: var(--texto);
  background: linear-gradient(#FFFBEA, #F6E3B8); border: 2px solid #fff; box-shadow: 0 0 0 2.5px var(--madeira2), 0 4px 0 2.5px #5d3212, 0 8px 14px rgba(0,0,0,.22);
  cursor: pointer; font: inherit; }
#meta:hover { filter: brightness(1.04); }
#meta:active { transform: translateY(2px); }
.meta-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; font-size: 24px;
  background: radial-gradient(circle at 50% 35%, #fff, #FFE7A6); box-shadow: inset 0 0 0 2px rgba(150,95,20,.25); }
.meta-ic img { width: 34px; height: 34px; object-fit: contain; }
.meta-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.meta-txt { font-size: 14px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-txt small { font-weight: 800; color: #8a5a1a; margin-left: 4px; }
.meta-trilho { position: relative; display: block; height: 9px; border-radius: 6px; background: rgba(90,50,10,.18); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.meta-trilho i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(#B4F27E, #4CAF2F); transition: width .7s cubic-bezier(.2,.9,.3,1.2); }
.meta-cta { flex: none; font-style: normal; font-weight: 800; font-size: 14px; color: #fff; padding: 8px 12px; border-radius: 12px;
  background: linear-gradient(#7FDB4A, #3E9E22); box-shadow: 0 3px 0 #2A6E16; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
#meta.brilha::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; opacity: 0; will-change: opacity;
  box-shadow: 0 0 0 2.5px #E89A10, 0 0 22px 4px rgba(255,200,60,.85); animation: metaBrilha 1.6s ease-in-out infinite; }
#meta.brilha .meta-cta { background: linear-gradient(#FFE07A, #F2A818); box-shadow: 0 3px 0 #B06A08; color: #5A2A00; text-shadow: none; }
@keyframes metaBrilha { 50% { opacity: 1; } }
#meta.quase .meta-trilho i { background: linear-gradient(90deg, #4CAF2F, #B4F27E, #4CAF2F); background-size: 200% 100%; animation: metaQuase 1.1s linear infinite; }
@keyframes metaQuase { to { background-position: -200% 0; } }
#meta.troca { animation: metaEntra .45s cubic-bezier(.2,1.4,.4,1); }
#meta.troca.brilha { animation: metaEntra .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes metaEntra { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-width: 600px) and (orientation: portrait) {
  #meta { gap: 6px; padding: 4px; border-radius: 13px; }
  .meta-ic { width: 32px; height: 32px; font-size: 19px; border-radius: 10px; } .meta-ic img { width: 27px; height: 27px; }
  .meta-txt { font-size: 12px; } .meta-trilho { height: 7px; } .meta-cta { font-size: 12px; padding: 6px 9px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { #meta, #meta * { animation: none !important; } }

/* ---------- Cozinha da Roça (09/10): fogão a lenha com as panelas + receitas ---------- */
.cz-fogao { background: radial-gradient(120% 90% at 50% 120%, #7a3a12 0%, #4a2a16 55%, #36200f 100%); border-radius: 18px; padding: 10px 10px 12px;
  margin-bottom: 10px; box-shadow: inset 0 2px 0 rgba(255,255,255,.14), 0 0 0 2px #2a180a, 0 4px 0 2px #1e1006; }
.cz-titulo { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #ffe2b0; font-size: 17px; margin: 0 4px 8px; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.cz-panelas { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.cz-panela { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; min-height: 140px; padding: 8px 8px 10px; border-radius: 14px;
  background: radial-gradient(90% 60% at 50% 110%, rgba(255,140,40,.55), transparent 70%), #2a1a0e; color: #fff; text-align: center; box-shadow: inset 0 0 0 2px rgba(255,200,120,.18); }
.cz-panela img { width: 70px; height: 70px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.45)); }
.cz-panela b { font-size: 14px; line-height: 1.1; }
.cz-panela small { font-size: 12px; color: #ffd9a0; font-weight: 700; }
.cz-panela .prog { width: 100%; background: rgba(255,255,255,.15); }
.cz-panela.fogo img { animation: czBorbulha 1.6s ease-in-out infinite; }
.cz-panela.fogo::before, .cz-panela.fogo::after { content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.5); filter: blur(2px); animation: czVapor 2.4s ease-out infinite; pointer-events: none; }
.cz-panela.fogo::after { margin-left: 12px; animation-delay: 1.2s; }
.cz-chama { position: absolute; left: 8px; bottom: 6px; font-style: normal; font-size: 18px; animation: czChama .5s ease-in-out infinite alternate; }
.cz-panela.pronto { background: radial-gradient(90% 70% at 50% 100%, rgba(255,214,90,.5), transparent 70%), #3a2410; box-shadow: 0 0 0 3px #ffd34a, 0 0 22px rgba(255,210,80,.65); }
.cz-panela.pronto img { animation: czPula 1s ease-in-out infinite; }
.cz-panela.livre, .cz-panela.tranca { align-content: center; background: transparent; box-shadow: inset 0 0 0 2px rgba(255,220,170,.28); border: 0; }
.cz-panela.livre { box-shadow: inset 0 0 0 2px rgba(255,220,170,.35); outline: 2px dashed rgba(255,220,170,.35); outline-offset: -7px; }
.cz-panela.livre span, .cz-panela.tranca span { font-size: 30px; opacity: .85; }
.cz-panela.tranca { opacity: .6; }
.cz-dica { margin: 0 0 10px; font-size: 14px; color: #6a4a2a; }
.cz-grade { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cz-receita .fig { height: 82px; }
.cz-receita .fig img { max-height: 82px; }
.cz-receita.pode { box-shadow: 0 0 0 2px #7cd04a, 0 3px 0 2px #4caf2f; }
.cz-lucro { color: #2f8a1a !important; font-weight: 800; }
.cz-ings { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 6px; }
.cz-ing { display: inline-flex; align-items: center; gap: 2px; background: #fbeee0; border-radius: 10px; padding: 1px 6px 1px 2px; font-size: 12px; color: #b0402a; }
.cz-ing.ok { background: #e4f7d6; color: #2f7a1a; }
.cz-ing img { width: 24px; height: 24px; }
.cz-ing span { font-size: 18px !important; }
.cz-capa { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.cz-capa img { width: 84px; height: 84px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.2)); }
@keyframes czBorbulha { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
@keyframes czVapor { 0% { transform: translate(-50%, 30px) scale(.6); opacity: 0; } 30% { opacity: .8; } 100% { transform: translate(-50%, -16px) scale(1.8); opacity: 0; } }
@keyframes czChama { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.18) rotate(4deg); } }
@keyframes czPula { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .cz-panela img, .cz-chama, .cz-panela.fogo::before, .cz-panela.fogo::after { animation: none; } }
#icCozinha { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }   /* prato desenhado no botão Cozinha */

/* ========== ÍCONES EM VETOR (09/10): ui/*.svg, mesmo traço em tudo ========== */
.bt-ic img { width: 78%; height: 78%; object-fit: contain; pointer-events: none; }
#btProteger img, #btEditar img, #btPresenteVisita img, #btVoltar img { width: 1.35em; height: 1.35em; vertical-align: -.32em; pointer-events: none; }
#lateral button img, #ferramentas button img { display: block; margin: 0 auto; }
img.icm[src^="ui/"] { width: 1.25em; height: 1.25em; vertical-align: -.28em; }
.estrela img { filter: none; }
.meta-ic img[src^="ui/"] { width: 30px; height: 30px; }

/* ========== CELULAR DEITADO (09/10): Android/iPhone sempre na horizontal (moldura celular.html) ==========
   Menu dividido nas duas bordas (6 à esquerda, 6 à direita), ferramentas no meio embaixo, topo fino:
   o centro da tela fica livre para a roça. Tamanho dos botões medido pela altura real (--alt). */
html.celular { --lb: clamp(36px, calc((var(--alt, 390px) - 60px - var(--st) - var(--sb)) / 6 - 6px), 50px);
  --fb: clamp(40px, calc(var(--alt, 390px) * .125), 52px); }
html.celular #topo { top: calc(5px + var(--st)); left: calc(6px + var(--sl)); right: calc(6px + var(--sr)); gap: 6px; align-items: center; }
html.celular .perfil { gap: 6px; padding: 2px 10px 2px 2px; border-radius: 14px; flex: none; }
html.celular .estrela { width: 36px; height: 36px; margin: -2px 0; } html.celular .estrela b { font-size: 14px; }
html.celular #nome { display: block; font-size: 12.5px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
html.celular .barra { width: 104px; height: 13px; } html.celular .barra span { font-size: 9.5px; line-height: 13px; }
html.celular .saldo { padding: 3px 5px; border-radius: 14px; } html.celular .saldo span { min-width: 0; padding: 1px 10px 1px 2px; }
html.celular .saldo img, html.celular .chx-topo { width: 24px; height: 24px; } html.celular .saldo b { font-size: 15px; }
html.celular .opcoes { padding: 3px; gap: 4px; border-radius: 14px; }
html.celular .bt-ic { width: 32px; height: 32px; border-radius: 9px; }
html.celular #btProteger { height: 32px; padding: 0 9px; font-size: 13px; border-radius: 9px; }
html.celular .indica-topo { padding: 2px 9px 2px 4px; gap: 5px; border-radius: 14px; border-width: 2px; }
html.celular .it-presente { width: 30px; height: 30px; } html.celular .it-caixa { left: 3px; right: 3px; height: 16px; }
html.celular .it-tampa { left: 1px; right: 1px; top: 7px; height: 8px; }
html.celular .it-tampa::before, html.celular .it-tampa::after { width: 9px; height: 8px; top: -7px; }
html.celular .it-txt small { font-size: 10px; } html.celular .it-txt b { font-size: 16px; -webkit-text-stroke-width: 3px; }
html.celular .it-txt b img { width: 15px; height: 15px; }

html.celular #lateral { top: calc(52px + var(--st)); left: calc(6px + var(--sl)); right: calc(6px + var(--sr)); bottom: auto;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, var(--lb)); grid-template-columns: var(--lb) var(--lb);
  justify-content: space-between; gap: 6px; overflow: visible; padding: 0; margin: 0; pointer-events: none; }
html.celular #lateral button { pointer-events: auto; width: var(--lb) !important; height: var(--lb) !important; border-radius: 12px; padding: 2px 2px 11px;
  box-shadow: 0 0 0 2.5px var(--madeira2), 0 3px 0 2.5px #5d3212, 0 5px 8px rgba(0,0,0,.22); }
html.celular #lateral button span { font-size: 8.5px; bottom: 0; }
html.celular .selo { top: -6px; right: -6px; min-width: 18px; height: 18px; font-size: 11px; line-height: 15px; padding: 0 4px; }

html.celular #ferramentas { gap: 5px; padding: 5px 7px 7px; border-radius: 18px; bottom: calc(5px + var(--sb));
  max-width: calc(100% - 2 * var(--lb) - 40px - var(--sl) - var(--sr)); }
html.celular #ferramentas button { width: var(--fb); height: var(--fb); flex: none; border-radius: 12px; padding: 2px 2px 11px;
  box-shadow: 0 0 0 2.5px var(--madeira2), 0 3px 0 2.5px #5d3212, 0 5px 8px rgba(0,0,0,.22); }
html.celular #ferramentas button span { font-size: 9px; bottom: 0; }
html.celular #ferramentas button.ativa { transform: translateY(-4px); box-shadow: 0 0 0 2.5px #2f8a1d, 0 3px 0 2.5px #23661a, 0 0 14px #b9ff7a; }
html.celular #bandeja { bottom: calc(var(--fb) + 24px + var(--sb)); left: 50%; transform: translateX(-50%);
  max-width: calc(100% - 2 * var(--lb) - 40px - var(--sl) - var(--sr)); padding: 5px 7px; gap: 6px; border-radius: 16px; }
html.celular #bandeja button { width: 54px; height: 60px; }
html.celular #rapidos { right: calc(var(--lb) + 18px + var(--sr)); bottom: calc(var(--fb) + 26px + var(--sb)); gap: 7px; }
html.celular #rapidos .bt { font-size: 14px; padding: 5px 12px; }
html.celular #painel { top: calc(50px + var(--st)); bottom: calc(6px + var(--sb)); right: calc(6px + var(--sr)); left: auto;
  width: min(440px, 62%); border-radius: 18px; }
html.celular #painel .cab { padding: 6px 10px 6px 14px; } html.celular #painel h2 { font-size: 19px; }
html.celular #painelCorpo { padding: 9px; }
html.celular .grade { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
html.celular #aviso { top: calc(54px + var(--st)); font-size: 14px; padding: 6px 16px; }
html.celular #salvo { top: calc(54px + var(--st)); right: calc(var(--lb) + 18px + var(--sr)); }
html.celular #faixaVisita { top: calc(54px + var(--st)); }
html.celular #guia { max-width: min(300px, 50%); font-size: 14px; }
html.celular #modal .cartao { max-height: calc(var(--alt, 100vh) - 20px); overflow-y: auto; }
html.celular #modalCorpo { padding: 14px 18px; }
html.celular #modalCorpo h1 { font-size: 30px; margin: 4px 0; }
html.celular .entrada { max-height: calc(var(--alt, 100vh) - 16px); overflow-y: auto; padding: 12px 18px 10px; }
html.celular .entrada .logo { font-size: 34px; } html.celular .entrada h3 { margin-top: 4px; font-size: 18px; } html.celular .sub { margin: 4px 0 8px; font-size: 14px; }
html.celular #entrada input { padding: 8px 12px; font-size: 16px; }
html.celular #atualizacao { top: calc(6px + var(--st)); padding: 6px 10px; }
html.celular #meta { padding: 3px 4px 3px 3px; gap: 6px; border-radius: 13px; }
html.celular .meta-ic { width: 30px; height: 30px; font-size: 18px; border-radius: 9px; } html.celular .meta-ic img { width: 25px; height: 25px; }
html.celular .meta-txt { font-size: 12px; } html.celular .meta-trilho { height: 7px; }
html.celular .meta-cta { font-size: 12px; padding: 5px 9px; border-radius: 10px; }
/* abertura no celular: metade dos vaga-lumes, das faíscas e da chuva de moedas (cada um é uma camada animada) */
html.celular .vagalumes i:nth-child(2n), html.celular .g-chuva i:nth-child(2n), html.celular .fg-faisca i:nth-child(n+4) { display: none; }
/* ordem do menu no celular deitado: o que o iniciante mais usa na borda esquerda (Loja, Celeiro, Mercado...) */
html.celular #lateral [data-p=loja] { grid-area: 1 / 1; } html.celular #lateral [data-p=celeiro] { grid-area: 2 / 1; }
html.celular #lateral [data-p=mercado] { grid-area: 3 / 1; } html.celular #lateral [data-p=pedidos] { grid-area: 4 / 1; }
html.celular #lateral [data-p=missoes] { grid-area: 5 / 1; } html.celular #lateral [data-p=cozinha] { grid-area: 6 / 1; }
html.celular #lateral [data-p=amigos] { grid-area: 1 / 2; } html.celular #lateral [data-p=diaria] { grid-area: 2 / 2; }
html.celular #lateral [data-p=conquistas] { grid-area: 3 / 2; } html.celular #lateral [data-p=album] { grid-area: 4 / 2; }
html.celular #lateral [data-p=terreno] { grid-area: 5 / 2; } html.celular #lateral [data-p=novidades] { grid-area: 6 / 2; }
/* celular deitado estreito (iPhone SE, Safari com barra): botões do topo só com ícone, Indique curto */
@media (max-width: 720px) {
  html.celular #btProteger { width: 32px; padding: 0; } html.celular #btProteger span { display: none; }
  html.celular .it-cheio { display: none; } html.celular .it-curto { display: inline; } html.celular .it-txt small { display: none; }
  html.celular #nome { max-width: 84px; } html.celular .barra { width: 84px; }
}
/* abertura em tela deitada e baixa: "DINHEIRO DE VERDADE" numa linha só, tudo cabe sem cortar o nome */
@media (max-height: 500px) and (orientation: landscape) {
  .fg-grande { display: block; white-space: nowrap; font-size: clamp(26px, 9.5vh, 46px); }
  .faixa-ganhos { width: auto; max-width: 94vw; padding-left: clamp(48px, 9vh, 70px); padding-right: clamp(48px, 9vh, 70px); }
  .fg-grande, .fg-como { text-align: center; } .fg-como { max-width: none; }
  .fg-grande span { display: inline; } .fg-grande .fg-l2 { font-size: 1em; margin-left: .25em; }
  .marca { font-size: clamp(32px, 11vh, 70px); margin-bottom: 0; }
  .faixa-ganhos { margin: 1vh 0 2.4vh; padding-top: 6px; padding-bottom: 8px; }
  .fg-como { font-size: clamp(11px, 3.4vh, 16px); }
  .bt-jogar { font-size: clamp(18px, 6.5vh, 26px); padding-top: 9px; padding-bottom: 11px; }
}
