/* Zovy Infiltrado — visual "figurinha" do Zovy. A base (botões, cartões, sala de espera, modal, avisos) é a mesma dos outros
   jogos ao vivo (copiada do Esconde-esconde); o que é só do Infiltrado (nave, HUD, tarefas, reunião, ejeção) vem depois. */
:root { --ink: #1E1338; --violet: #7C4DFF; --lime: #C6F432; --pink: #FF4FA3; --cyan: #2EE6FF; --gold: #FFB800; --orange: #FF8A3D; --red: #FF3B5C; --soft: #cdbfff;
  --paper: #FFFBF0; --line: #BFD7FF; --margin: #FF8DA8;
  --disp: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; --hand: "Patrick Hand", "Comic Sans MS", cursive; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); }
body { font: 600 16px/1.35 var(--ui); color: #fff; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#app { position: fixed; inset: 0; overflow: hidden;
  background: radial-gradient(circle at 88% 0, rgb(255 184 0 / .16), transparent 42%), radial-gradient(circle at 0 100%, rgb(255 79 163 / .22), transparent 48%), linear-gradient(170deg, #3a1f86 0%, #24125a 55%, #160b38 100%); }
#app::before { content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none; background: radial-gradient(rgb(255 255 255 / .2) 1.3px, transparent 1.5px) 0 0 / 22px 22px; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.screen.on { display: flex; animation: screenIn .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* letras flutuando no fundo */
.bg-suits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bg-suits span { position: absolute; bottom: -80px; font: 800 var(--s, 48px)/1 var(--disp); color: rgb(255 255 255 / .07); animation: floatUp var(--d, 18s) linear infinite; animation-delay: var(--w, 0s); }
@keyframes floatUp { to { transform: translateY(-120vh) rotate(var(--r, 40deg)); } }

/* ---------- botões e peças básicas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); font: 800 16px/1.1 var(--ui); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn:focus-visible, .icon-btn:focus-visible, .mini-btn:focus-visible, .stop-btn:focus-visible, .chip:focus-visible, .vote-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn.lime { background: var(--lime); } .btn.pink { background: var(--pink); color: #fff; } .btn.violet { background: var(--violet); color: #fff; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.big { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; text-align: left; padding: 12px 16px; }
.btn.big .ico { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; background: rgb(255 255 255 / .6); border: 3px solid var(--ink); border-radius: 50%; font-size: 18px; }
.btn.big .t { font: 800 21px/1.1 var(--disp); }
.btn.big small { font: 700 13px/1.2 var(--ui); opacity: .8; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); font: 800 18px/1 var(--ui); }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.mini-btn { padding: 4px 10px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.3 var(--ui); }
.mini-btn[aria-pressed="true"] { background: var(--pink); color: #fff; }
.card { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 14px; }
.card h2, .card h3 { margin: 0; font: 800 20px/1.1 var(--disp); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head small { color: #6b5f8f; font-size: 12px; }
.pill { display: inline-block; padding: 2px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.4 var(--ui); white-space: nowrap; vertical-align: middle; }
.pill.violet { background: var(--violet); color: #fff; } .pill.pink { background: var(--pink); color: #fff; } .pill.gold { background: var(--gold); }
input[type=text], input:not([type]) { width: 100%; min-width: 0; padding: 11px 14px; color: var(--ink); background: #F4F0FF; border: 3px solid var(--ink); border-radius: 14px; font: 700 16px/1.2 var(--ui); outline: none; }
input:focus { background: #fff; box-shadow: 0 0 0 3px var(--cyan); }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot 1s infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-5px); opacity: .5; } }
.wait { padding: 12px; text-align: center; color: #e6dcff; font-weight: 700; }

/* ---------- menu ---------- */
.top { display: flex; align-items: center; gap: 10px; flex: none; position: relative; z-index: 1; }
.logo { height: 32px; width: auto; }
.chip-orig { padding: 3px 12px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 12px/1.3 var(--ui); letter-spacing: .1em; }
.top .icon-btn { margin-left: auto; }
#menu { overflow-y: auto; }
.menu-body { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 14px; width: 100%; max-width: 980px; margin: 0 auto; padding: 10px 0; }
.hero { text-align: center; }
.hero-sign { display: inline-flex; align-items: flex-end; gap: clamp(4px, 1.2vw, 10px); }
.hero-sign span, .hero-sign b { display: grid; place-items: center; width: clamp(54px, 15vw, 96px); height: clamp(62px, 17vw, 110px); color: var(--ink); background: var(--lime); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 7px 0 var(--ink); font: 800 clamp(40px, 11vw, 74px)/1 var(--disp);
  animation: signIn .7s cubic-bezier(.2, 1.6, .4, 1) backwards, wobble 4s ease-in-out infinite; }
.hero-sign span:nth-child(1) { --rot: -6deg; background: var(--lime); animation-delay: 0s, .2s; }
.hero-sign span:nth-child(2) { --rot: 4deg; background: var(--cyan); animation-delay: .08s, .6s; }
.hero-sign span:nth-child(3) { --rot: -3deg; background: var(--gold); animation-delay: .16s, 1s; }
.hero-sign span:nth-child(4) { --rot: 6deg; background: #fff; animation-delay: .24s, 1.4s; }
.hero-sign b { --rot: -8deg; width: auto; padding: 0 10px; background: var(--red); color: #fff; animation-delay: .4s, 1.8s; }
@keyframes signIn { from { opacity: 0; transform: translateY(-60px) rotate(30deg) scale(.4); } }
@keyframes wobble { 0%, 100% { transform: rotate(var(--rot)); } 50% { transform: rotate(calc(var(--rot) * -1)) translateY(-4px); } }
.tag { max-width: 520px; margin: 16px auto 0; color: #e6dcff; font-size: clamp(15px, 3.8vw, 18px); }
.tag b { color: var(--lime); }
.me-card { display: flex; align-items: center; gap: 14px; }
.av-big { position: relative; flex: none; width: 76px; height: 76px; padding: 0; background: #F4F0FF; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.av-big img { width: 100%; height: 100%; border-radius: 50%; }
.av-big .dice { position: absolute; right: -6px; bottom: -4px; display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; font-size: 16px; }
.av-big:active { transform: rotate(-12deg) scale(.95); }
.av-big.roll img { animation: roll .45s; } @keyframes roll { 40% { transform: scale(.6) rotate(-40deg); } }
.av-big[disabled] .dice { display: none; }
.me-fields { flex: 1; min-width: 0; display: grid; gap: 4px; }
.me-fields label, .join label { font: 800 13px/1 var(--ui); color: #6b5f8f; letter-spacing: .04em; text-transform: uppercase; }
.me-fields small { color: #6b5f8f; font-size: 12px; }
.me-fields .lvl { display: flex; align-items: center; gap: 8px; }
.menu-actions { display: grid; gap: 12px; }
.join-row { display: flex; gap: 8px; margin-top: 6px; }
#inpCode { text-transform: uppercase; letter-spacing: .35em; font: 800 22px/1 var(--disp); text-align: center; }
.menu-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.menu-row .btn { padding: 9px 6px; }
@media (min-width: 860px) {
  .menu-body { grid-template-columns: 1.1fr 1fr; align-items: center; column-gap: 34px; }
  .hero { grid-row: 1 / 3; }
}

/* ---------- barra de cima ---------- */
.bar { display: flex; align-items: center; gap: 10px; flex: none; margin-bottom: 10px; }
.bar-title { flex: 1; min-width: 0; display: grid; }
.bar-title small { color: var(--soft); font: 800 11px/1 var(--ui); letter-spacing: .12em; }
.bar-title b { font: 800 20px/1.1 var(--disp); }

/* ---------- sala de espera ---------- */
#lobby { overflow-y: auto; }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; max-width: 1100px; margin: 0 auto; }
.lobby-grid .col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 860px) { .lobby-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.code-card { text-align: center; background: var(--violet); color: #fff; }
.code-head { display: flex; align-items: center; justify-content: space-between; }
.code-head small { font: 800 12px/1 var(--ui); letter-spacing: .12em; opacity: .85; }
.code-tiles { display: flex; justify-content: center; gap: 10px; margin: 12px 0 14px; }
.code-tiles span { display: grid; place-items: center; width: clamp(54px, 16vw, 74px); height: clamp(62px, 18vw, 84px); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); font: 800 clamp(36px, 10vw, 52px)/1 var(--disp); animation: tileIn .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.code-tiles span:nth-child(2) { animation-delay: .07s; } .code-tiles span:nth-child(3) { animation-delay: .14s; } .code-tiles span:nth-child(4) { animation-delay: .21s; }
@keyframes tileIn { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
.code-tiles.hide span { color: transparent; text-shadow: 0 0 14px rgb(30 19 56 / .7); }
.code-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.invite { margin: 10px 0 0; font-size: 13px; opacity: .85; word-break: break-all; }
.invite.hide { filter: blur(6px); user-select: none; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.players li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; text-align: center; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.players li.off { opacity: .45; }
.players li.me { background: #F2FCCF; }
.players img { width: 54px; height: 54px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.players b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.players .crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.players .kick { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 50%; font-size: 12px; }
.players .kick:hover { color: #fff; background: var(--red); }
.players .tagme { font-size: 11px; color: #6b5f8f; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.settings { display: grid; gap: 12px; }
.set-block { display: grid; gap: 6px; min-width: 0; }
.set-block > small { color: #6b5f8f; font: 800 12px/1 var(--ui); letter-spacing: .08em; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.packs button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font: 800 12px/1.1 var(--ui); }
.packs .pk-ic { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; font-size: 17px; }
.packs button.on .pk-ic { background: var(--lime); }
.packs button.on { background: var(--gold); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: #6b5f8f; background: #fff; border: 2px dashed #b9add9; border-radius: 99px; font: 700 14px/1.2 var(--ui); }
.chip.on { color: var(--ink); background: var(--lime); border: 2px solid var(--ink); }
.chip.custom.on { background: var(--cyan); }
.chip .x { font-size: 12px; opacity: .7; }
.cat-add { display: flex; gap: 6px; margin-top: 4px; }
.cat-add input { padding: 8px 12px; }
.seg { display: flex; padding: 3px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; }
.seg button { flex: 1; padding: 7px 4px; color: var(--ink); background: none; border: 0; border-radius: 10px; font: 800 14px/1 var(--ui); }
.seg button.on { background: var(--violet); color: #fff; }
.switch { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { grid-row: 1 / 3; position: relative; width: 50px; height: 28px; background: #d9d1f2; border: 2px solid var(--ink); border-radius: 99px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; transition: transform .2s; }
.switch input:checked + span { background: var(--pink); } .switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.switch b { font-size: 14px; } .switch small { color: #6b5f8f; font-size: 12px; }
.rules-view { display: grid; gap: 8px; }
.rules-view .cats .chip { pointer-events: none; }
.rv-row { display: flex; flex-wrap: wrap; gap: 6px; }
.start { width: 100%; }
.start .ico { animation: pulse 1.2s infinite; } @keyframes pulse { 50% { transform: scale(1.12); } }
/* ---------- final ---------- */
#final { overflow-y: auto; }
.final-wrap { width: 100%; max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.final-title { margin: 6px 0 0; text-align: center; font: 800 clamp(32px, 8vw, 48px)/1 var(--disp); text-shadow: 0 4px 0 rgb(0 0 0 / .3); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 18px); min-height: 260px; padding-top: 10px; }
.pod { display: grid; justify-items: center; gap: 6px; width: clamp(96px, 26vw, 170px); }
.pod img { width: clamp(64px, 16vw, 96px); height: clamp(64px, 16vw, 96px); background: #fff; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); animation: popUp .6s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.pod b { max-width: 100%; overflow: hidden; font: 800 16px/1.1 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.pod .step { display: grid; place-items: start center; width: 100%; padding-top: 10px; color: var(--ink); border: 3px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; font: 800 34px/1 var(--disp); transform-origin: bottom; animation: rise .8s cubic-bezier(.2, 1.2, .4, 1) backwards; }
.pod .step small { display: block; font: 800 14px/1.4 var(--ui); }
.pod.p1 .step { height: 150px; background: var(--gold); animation-delay: .9s; } .pod.p1 img { animation-delay: 1.5s; width: clamp(76px, 19vw, 116px); height: clamp(76px, 19vw, 116px); }
.pod.p2 .step { height: 110px; background: #e3e8f5; animation-delay: .5s; } .pod.p2 img { animation-delay: 1.1s; }
.pod.p3 .step { height: 80px; background: #f3c49b; animation-delay: .1s; } .pod.p3 img { animation-delay: .7s; }
.pod.p1 .crown { animation: popUp .6s 1.8s cubic-bezier(.2, 1.6, .4, 1) backwards, wobble 3s 2.4s infinite; --rot: -6deg; }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes popUp { from { transform: translateY(40px) scale(.3); opacity: 0; } }
.final-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .final-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.final-cols h3 { margin-bottom: 10px; }
.flist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.flist li { display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font-weight: 800; }
.flist li.me { background: #F2FCCF; }
.flist img { width: 34px; height: 34px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.flist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reward { display: grid; gap: 8px; min-height: 40px; }
.reward .xp-big { font: 800 40px/1 var(--disp); color: var(--violet); } .reward .xp-big small { font-size: 18px; }
.reward p { margin: 0; } .reward .soft { color: #6b5f8f; } .reward .gold { color: #b47a00; font-weight: 800; }
.reward .row-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-mini { display: inline-block; padding: 6px 12px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.2 var(--ui); text-decoration: none; }
.btn-mini.ghost { background: #fff; }
.final-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- efeitos ---------- */
.fx { position: absolute; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.float { position: absolute; bottom: 70px; display: grid; justify-items: center; animation: floatR 2.6s ease-out forwards; }
.float .fr { display: block; width: 58px; height: 58px; filter: drop-shadow(0 4px 0 rgb(0 0 0 / .3)); }
.float img { width: 26px; height: 26px; margin-top: -6px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
@keyframes floatR { 0% { transform: translateY(20px) scale(.3); opacity: 0; } 12% { transform: translateY(0) scale(1.15); opacity: 1; } 100% { transform: translate(var(--dx, 0), -60vh) scale(.9); opacity: 0; } }
.confetti { position: absolute; inset: 0; z-index: 55; width: 100%; height: 100%; pointer-events: none; }
.toasts { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 50%; z-index: 85; display: grid; gap: 6px; width: min(92vw, 420px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 9px 14px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); font-weight: 800; animation: toastIn .35s cubic-bezier(.2, 1.6, .4, 1); }
.toast img { width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 50%; }
.toast .t-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 50%; }
.toast.ic-alert .t-ic, .toast.ic-lock .t-ic, .toast.ic-exit .t-ic { color: #fff; background: var(--red); }
.toast.ic-crown .t-ic, .toast.ic-party .t-ic { background: var(--gold); }
.toast.out { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toastIn { from { transform: translateY(-20px) scale(.9); opacity: 0; } }
.modal { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(30 19 56 / .75); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(100%, 520px); max-height: 88vh; overflow-y: auto; padding: 20px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; box-shadow: 0 3px 0 var(--ink); }
.modal-card h2 { margin: 0 40px 12px 0; font: 800 26px/1.1 var(--disp); }
.modal-card ol { padding-left: 20px; } .modal-card li { margin-bottom: 8px; }
.qr { display: grid; place-items: center; padding: 14px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; }
.qr svg { width: min(70vw, 280px); height: auto; }
.top-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.top-list li { display: flex; align-items: center; gap: 8px; color: var(--ink); padding: 6px 10px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font-weight: 800; }
.top-list img { width: 30px; height: 30px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.top-list b { margin-left: auto; }
.boot { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 10px; background: var(--ink); color: var(--soft); font-weight: 700; transition: opacity .3s; }
.boot.gone { opacity: 0; pointer-events: none; }
.boot .err { max-width: 420px; padding: 0 16px; text-align: center; color: #fff; }

/* ---------- ícones SVG (v1.76) ---------- */
.icon-btn .zi { width: 22px; height: 22px; }
.btn .zi { width: 1.1em; height: 1.1em; }
.btn.big .ico .zi { width: 20px; height: 20px; }
.mini-btn { display: inline-flex; align-items: center; gap: 5px; }
.modal-card h2 .zi, .final-title .zi { color: var(--gold); }
.final-title .zi { width: .9em; height: .9em; vertical-align: -.08em; }
.reward p .zi { width: 18px; height: 18px; vertical-align: -.25em; }
.boot .err .zi { color: var(--red); }
.pill .zi, .seg .zi { width: 14px; height: 14px; vertical-align: -.18em; }



/* =====================================================================
   Só do Infiltrado
   ===================================================================== */
#app { background: radial-gradient(circle at 85% 8%, rgb(124 77 255 / .35), transparent 45%), radial-gradient(circle at 5% 95%, rgb(46 230 255 / .16), transparent 48%), linear-gradient(170deg, #1d1060 0%, #120a34 55%, #080318 100%); }
#app::before { opacity: .55; background: radial-gradient(rgb(255 255 255 / .55) 1px, transparent 1.4px) 0 0 / 46px 46px, radial-gradient(rgb(198 244 50 / .4) 1px, transparent 1.3px) 23px 17px / 71px 71px; }
.btn.cyan { background: var(--cyan); } .btn.red { background: var(--red); color: #fff; }
.banner { position: absolute; left: 50%; top: 42%; z-index: 30; display: grid; justify-items: center; max-width: 92vw; padding: 12px 24px; color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); text-align: center; transform: translate(-50%, -50%); pointer-events: none; animation: bannerIn .5s cubic-bezier(.2, 1.6, .4, 1); }
.banner b { font: 800 clamp(26px, 7vw, 44px)/1.05 var(--disp); }
.banner small { max-width: 380px; font: 700 14px/1.3 var(--ui); color: #50608f; }
.banner .zi { width: .85em; height: .85em; vertical-align: -.08em; }
.banner.b-ice { background: var(--cyan); } .banner.b-alarm { background: var(--red); color: #fff; } .banner.b-alarm small, .banner.b-dark small { color: #fff; } .banner.b-dark { background: #2a2556; color: #fff; }
.banner.out { animation: bannerOut .3s forwards; }
@keyframes bannerIn { from { transform: translate(-50%, -50%) scale(.3) rotate(-8deg); opacity: 0; } }
@keyframes bannerOut { to { transform: translate(-50%, -50%) scale(.8); opacity: 0; } }
.shout { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; pointer-events: none; }
.shout span { font: 800 clamp(44px, 13vw, 110px)/1 var(--disp); color: var(--gold); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); animation: shout 1.3s forwards; }
@keyframes shout { 0% { transform: scale(2.6) rotate(-10deg); opacity: 0; } 18% { transform: scale(1) rotate(-4deg); opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(.9) rotate(-4deg); opacity: 0; } }

/* ---------- menu ---------- */
.hero-cv { display: block; width: min(100%, 470px); height: clamp(130px, 30vw, 190px); margin: 0 auto; }
.hero-title { display: grid; justify-items: center; margin: 8px 0 0; line-height: 1; }
.hero-title span { display: inline-block; padding: 2px 16px 4px; color: var(--ink); background: var(--cyan); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); font: 800 clamp(22px, 6vw, 36px)/1 var(--disp); letter-spacing: .12em; transform: rotate(-3deg); }
.hero-title b { display: inline-block; margin-top: -4px; padding: 4px 18px 8px; color: #fff; background: var(--red); border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 8px 0 var(--ink);
  font: 800 clamp(40px, 11.5vw, 76px)/1 var(--disp); letter-spacing: -.01em; --rot: 2deg; transform: rotate(2deg); animation: stampIn .6s .3s cubic-bezier(.2, 1.8, .4, 1) backwards, wobble 4s 1.2s ease-in-out infinite; }
@keyframes stampIn { from { transform: scale(2.4) rotate(12deg); opacity: 0; } }
.colors { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 2px; }
.cor { width: 24px; height: 24px; padding: 0; background: var(--c); border: 2px solid var(--ink); border-radius: 50%; box-shadow: inset 0 -4px 0 rgb(0 0 0 / .18); }
.cor.on { outline: 3px solid var(--ink); outline-offset: 2px; transform: scale(1.12); }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.roles button { display: grid; justify-items: center; gap: 2px; padding: 9px 4px; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font: 800 13px/1.1 var(--ui); text-align: center; }
.roles button small { font: 700 11px/1.15 var(--ui); color: #6b5f8f; }
.roles .mi { display: grid; place-items: center; width: 34px; height: 34px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.roles button.on { background: var(--lime); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.roles button.r-i.on { background: #ffc2cf; }
.setup { display: grid; gap: 12px; }
.mdesc { margin: 0; color: #50608f; font-size: 15px; } .mdesc b { color: var(--ink); }
.astro-cv { display: block; }
.players li .astro-cv { margin-top: -6px; }
.players li.me { cursor: pointer; }

/* ---------- o jogo ---------- */
#play { padding: 0; }
.world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.hud { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: flex-start; gap: 8px; padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-mid { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.taskbar { width: min(100%, 360px); padding: 5px 10px 7px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.taskbar:empty { display: none; }
.taskbar small { display: block; font: 800 10px/1.2 var(--ui); letter-spacing: .1em; color: #6b5f8f; }
.tb-bar { position: relative; height: 16px; margin-top: 3px; background: #e7e1fb; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.tb-bar i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(-45deg, var(--lime) 0 10px, #a8d81e 10px 20px); transition: width .5s cubic-bezier(.2, 1.4, .4, 1); }
.tb-bar b { position: relative; display: block; text-align: center; font: 800 11px/12px var(--ui); }
.hud-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.hud-info > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; color: #fff; background: rgb(30 19 56 / .8); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.2 var(--ui); }
.hud-info .zi { width: 14px; height: 14px; }
.hud-info .role.t { background: var(--violet); } .hud-info .role.i { background: var(--red); } .hud-info .role.g { background: #1f8c93; }
.sab-alert { background: var(--red) !important; animation: pulse .6s infinite; } .sab-alert.dark { background: #2a2556 !important; } .sab-alert b { font: 800 14px/1 var(--disp); }
.hud-right { display: grid; justify-items: end; gap: 6px; }
.mini { display: block; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); background: rgb(14 8 40 / .85); cursor: zoom-in; }
.big-map { display: block; width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 14px; }
.tasks { position: absolute; left: max(10px, env(safe-area-inset-left)); top: calc(max(8px, env(safe-area-inset-top)) + 54px); z-index: 5; width: min(260px, 46vw); color: var(--ink); background: rgb(255 255 255 / .94); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.tasks-head { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 10px; color: var(--ink); background: var(--gold); border: 0; border-bottom: 2px solid var(--ink); font: 800 13px/1.1 var(--ui); text-align: left; }
.tasks-head .zi { width: 15px; height: 15px; }
.tasks.closed .tasks-list { display: none; } .tasks.closed .tasks-head { border-bottom: 0; }
.tasks-list { max-height: 40vh; overflow-y: auto; padding: 6px 8px; }
.tasks-list ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.tasks-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 5px; align-items: start; font: 700 12px/1.25 var(--ui); }
.tasks-list li i { display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border: 2px solid var(--ink); border-radius: 5px; background: #fff; }
.tasks-list li i .zi { width: 11px; height: 11px; }
.tasks-list li.done { color: #3a9a2e; text-decoration: line-through; } .tasks-list li.done i { background: var(--lime); }
.ti-note { margin: 0 0 6px; padding: 6px 8px; background: #ffe0e6; border: 2px solid var(--ink); border-radius: 10px; font: 700 12px/1.3 var(--ui); }
.ti-note .zi { width: 13px; height: 13px; vertical-align: -.15em; }
.hint { position: absolute; left: 50%; bottom: max(110px, calc(env(safe-area-inset-bottom) + 100px)); z-index: 6; max-width: min(92vw, 460px); padding: 9px 16px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); transform: translateX(-50%); text-align: center; font: 700 15px/1.3 var(--ui); pointer-events: none; animation: toastIn .35s cubic-bezier(.2, 1.6, .4, 1); }
.stick { position: absolute; z-index: 6; left: calc(22px + env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); width: 128px; height: 128px; border: 3px solid rgb(255 255 255 / .55); border-radius: 50%; background: rgb(30 19 56 / .35); touch-action: none; opacity: .8; transition: opacity .15s; }
.stick.on { opacity: 1; border-color: rgb(198 244 50 / .8); }
.stick::before { content: ""; position: absolute; inset: 22px; border: 2px dashed rgb(255 255 255 / .25); border-radius: 50%; }
.stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; background: var(--lime); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); transform: translate(-50%, -50%); }
.actions { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 6; display: grid; grid-template-columns: auto auto; grid-auto-flow: dense; gap: 9px; justify-items: center; align-items: end; }
.act { display: grid; justify-items: center; align-content: center; gap: 1px; width: 78px; height: 78px; padding: 0; color: var(--ink); background: #d9d3ec; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); opacity: .55; transition: opacity .15s, transform .15s, background .15s; }
.act.on { opacity: 1; }
.act.on:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.act .ai .zi { width: 26px; height: 26px; }
.act b { font: 800 11px/1 var(--ui); } .act small { font: 800 11px/1 var(--ui); color: var(--violet); min-height: 11px; }
.act.use.on { background: var(--lime); } .act.report.on { background: var(--gold); animation: pulse .9s infinite; }
.act.freeze { width: 92px; height: 92px; } .act.freeze.on { background: var(--cyan); animation: pulse 1.1s infinite; }
.act.sab.on { background: #ffc2cf; } .act.tube.on { background: #b7a8ff; }
.act.use { grid-column: 2; } .act.freeze { grid-column: 1; }
.frost { position: absolute; inset: 0; z-index: 8; pointer-events: none; background: radial-gradient(circle, transparent 35%, rgb(160 230 255 / .55) 70%, rgb(220 248 255 / .9)); }
.frost.go { animation: frost 2.4s forwards; }
@keyframes frost { 0% { opacity: 0; } 12% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: 0; } }

/* ---------- tarefa ---------- */
.task { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; padding: 12px; background: rgb(8 3 24 / .55); }
.task-card { width: min(100%, 560px); max-height: 100%; overflow: auto; color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.task-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--gold); border-bottom: 3px solid var(--ink); border-radius: 20px 20px 0 0; }
.task-head > div { flex: 1; min-width: 0; display: grid; }
.task-head b { font: 800 20px/1.1 var(--disp); } .task-head small { font: 700 13px/1.3 var(--ui); color: #50408f; } .task-head .fake { color: var(--red); font-style: normal; }
.task-head .icon-btn { width: 38px; height: 38px; }
.task-body { position: relative; display: grid; justify-items: center; gap: 12px; padding: 16px; touch-action: none; }
.task-body.win::after { content: "FEITO!"; position: absolute; inset: 0; display: grid; place-items: center; background: rgb(198 244 50 / .85); font: 800 52px/1 var(--disp); color: var(--ink); -webkit-text-stroke: 2px #fff; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); border-radius: 0 0 20px 20px; }
.tg-help { margin: 0; text-align: center; font: 700 14px/1.3 var(--ui); color: #50608f; } .tg-help b { color: var(--ink); }
.shake { animation: shake .4s; } @keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
/* rota */
.nav-screen { position: relative; width: 100%; aspect-ratio: 5 / 3; background: radial-gradient(rgb(255 255 255 / .5) 1px, transparent 1.5px) 0 0 / 26px 26px, #0b0626; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; }
.nav-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.nav-pt { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px dashed var(--cyan); border-radius: 50%; }
.nav-pt.ok { background: var(--lime); border-style: solid; border-color: var(--ink); }
.nav-planet { position: absolute; right: 5%; width: 58px; height: 58px; margin-top: -29px; background: radial-gradient(circle at 35% 30%, #ffb3d6, var(--pink)); border: 3px solid var(--ink); border-radius: 50%; }
.nav-ship { position: absolute; left: 8%; top: 50%; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; color: var(--ink); background: var(--lime); border: 3px solid var(--ink); border-radius: 50%; transform: translate(-50%, -50%); touch-action: none; cursor: grab; }
.nav-ship .zi { width: 28px; height: 28px; }
/* estrelas */
.sky { position: relative; width: 100%; aspect-ratio: 5 / 3; background: linear-gradient(#1d1060, #0b0626); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; }
.sky-n { position: absolute; top: 8px; left: 10px; padding: 2px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 14px/1.3 var(--ui); }
.shoot { position: absolute; left: 105%; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; color: var(--gold); background: none; border: 0; animation: shoot 2s linear forwards; }
.shoot .zi { width: 40px; height: 40px; fill: var(--gold); stroke: var(--ink); filter: drop-shadow(14px 0 0 rgb(255 255 255 / .2)); }
.shoot.got { animation: none; transform: scale(1.4); opacity: 0; transition: .25s; }
@keyframes shoot { to { left: -15%; transform: translateY(40px) rotate(-30deg); } }
/* antena */
.wave-cv { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 16px; }
.wave-in { width: 100%; accent-color: var(--violet); height: 34px; }
/* encher */
.tank { position: relative; width: 110px; height: 200px; background: #e7e1fb; border: 4px solid var(--ink); border-radius: 18px 18px 26px 26px; overflow: hidden; }
.tk-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(var(--cyan), #1f8c93); }
.tk-band { position: absolute; left: 0; right: 0; z-index: 1; background: rgb(198 244 50 / .45); border-top: 3px dashed var(--ink); border-bottom: 3px dashed var(--ink); }
.tk-btn.down, .plant.down, .valve.down { transform: translateY(3px) scale(.97); }
/* regar */
.plants { display: flex; gap: 14px; }
.plant { --g: 0; position: relative; display: grid; justify-items: center; width: 92px; height: 140px; padding: 0; background: #F4F0FF; border: 3px solid var(--ink); border-radius: 16px; touch-action: none; }
.pl-leaf { position: absolute; bottom: 52px; width: 18px; height: calc(18px + var(--g) * 50px); background: #3DBE5A; border: 3px solid var(--ink); border-radius: 50% 50% 4px 4px; transition: height .2s; }
.pl-leaf::before, .pl-leaf::after { content: ""; position: absolute; top: 4px; width: 26px; height: 14px; background: #5FD068; border: 3px solid var(--ink); border-radius: 50%; }
.pl-leaf::before { right: 12px; } .pl-leaf::after { left: 12px; }
.pl-pot { position: absolute; bottom: 18px; width: 54px; height: 38px; background: #E07A3C; border: 3px solid var(--ink); border-radius: 6px 6px 14px 14px; }
.pl-bar { position: absolute; bottom: 4px; left: 8px; right: 8px; height: 9px; background: #fff; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; } .pl-bar b { display: block; width: 0; height: 100%; background: var(--cyan); }
.plant.ok { background: #F2FCCF; }
/* lanche */
.ticket { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fffbe8; border: 3px dashed var(--ink); border-radius: 14px; }
.ticket small { font: 800 11px/1 var(--ui); letter-spacing: .1em; color: #6b5f8f; writing-mode: vertical-rl; transform: rotate(180deg); }
.tk-i { position: relative; display: grid; place-items: center; width: 62px; height: 62px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.tk-i svg, .ing svg { width: 48px; height: 48px; } .tk-i b { position: absolute; top: -8px; left: -8px; display: grid; place-items: center; width: 22px; height: 22px; background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; font-size: 12px; }
.tk-i.ok { background: var(--lime); }
.ings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.ing { display: grid; justify-items: center; padding: 6px; color: var(--ink); background: #F4F0FF; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); font: 800 12px/1.1 var(--ui); }
.ing:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
/* chaves */
.lights { display: flex; gap: 14px; } .lights i { width: 30px; height: 30px; background: #3b3560; border: 3px solid var(--ink); border-radius: 50%; } .lights i.on { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.switches { display: flex; gap: 10px; }
.sw { position: relative; width: 50px; height: 92px; padding: 0; background: #2a2556; border: 3px solid var(--ink); border-radius: 12px; }
.sw span { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 38px; background: #ff8da8; border: 3px solid var(--ink); border-radius: 8px; transition: transform .15s, background .15s; }
.sw.on span { transform: translateY(-36px); background: var(--lime); }
/* bichinho */
.pet-wrap { position: relative; width: 200px; } .pet { width: 100%; }
.pet .mouth-o { opacity: 0; } .pet-wrap.open .mouth-o { opacity: 1; } .pet-wrap.open .mouth-c { opacity: 0; }
.pet-wrap.yum .pet { transform: scale(1.08); } .pet-wrap.nope { animation: shake .4s; }
.pet-n { position: absolute; top: 0; right: -6px; padding: 2px 9px; background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 14px/1.3 var(--ui); }
/* encaixar */
.slot-area, .bed-area { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 170px; gap: 14px; }
.slot { display: grid; place-items: center; width: 110px; height: 130px; color: var(--violet); background: #2a2556; border: 4px dashed var(--cyan); border-radius: 18px; font: 800 12px/1 var(--ui); }
.slot .zi { width: 40px; height: 40px; } .slot.hot, .bed.hot { background: #3d3480; } .slot.ok { background: var(--lime); border-style: solid; border-color: var(--ink); color: var(--ink); }
.battery { position: relative; width: 70px; height: 112px; padding: 0; background: linear-gradient(var(--lime) 0 60%, #a8d81e 60%); border: 4px solid var(--ink); border-radius: 14px; touch-action: none; cursor: grab; z-index: 2; }
.battery::before { content: ""; position: absolute; top: -12px; left: 22px; width: 18px; height: 10px; background: var(--ink); border-radius: 4px 4px 0 0; }
.battery i { position: absolute; inset: 30px 18px; background: linear-gradient(135deg, transparent 40%, var(--ink) 40% 60%, transparent 60%); }
.grab { z-index: 5; box-shadow: 0 12px 0 rgb(0 0 0 / .25); }
.bed { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; width: 190px; height: 130px; background: #8a5530; border: 4px solid var(--ink); border-radius: 18px; }
.bed i { background: #fff8ea; border: 3px dashed #c9a06a; border-radius: 12px; } .bed i.on { background: #ff9ccb; border: 3px solid var(--ink); }
.pillows { display: grid; gap: 10px; }
.pillow { width: 78px; height: 50px; padding: 0; background: #ff9ccb; border: 3px solid var(--ink); border-radius: 18px; touch-action: none; cursor: grab; } .pillow.b { background: #9fe7ff; }
/* reciclar */
.trash-now { display: grid; justify-items: center; gap: 2px; padding: 8px 18px; background: #F4F0FF; border: 3px solid var(--ink); border-radius: 16px; }
.tn-i svg { width: 74px; height: 74px; } .trash-now b { font: 800 16px/1.1 var(--ui); } .trash-now small { color: #6b5f8f; font-size: 12px; }
.bins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.bin { display: grid; justify-items: center; gap: 4px; padding: 8px 2px 10px; color: #fff; background: var(--bc); border: 3px solid var(--ink); border-radius: 10px 10px 18px 18px; box-shadow: 0 4px 0 var(--ink); font: 800 12px/1 var(--ui); text-shadow: 0 1px 0 var(--ink); }
.bin-lid { width: 80%; height: 10px; background: rgb(0 0 0 / .25); border: 2px solid var(--ink); border-radius: 6px; }
.bin.gulp { animation: gulp .35s; } @keyframes gulp { 40% { transform: scale(1.12, .9); } }
/* válvula */
.valve { width: 170px; height: 170px; padding: 0; background: none; border: 0; touch-action: none; transition: transform .05s linear; } .valve svg { width: 100%; height: 100%; }
.vbar { width: 80%; height: 16px; background: #e7e1fb; border: 3px solid var(--ink); border-radius: 99px; overflow: hidden; } .vbar i { display: block; width: 0; height: 100%; background: var(--cyan); }

/* ---------- telas por cima: papel, reunião, ejeção ---------- */
.overlay { position: absolute; inset: 0; z-index: 14; }
.reveal { display: grid; place-items: center; padding: 16px; text-align: center; color: #fff; }
.reveal.is-crew { background: radial-gradient(circle at 50% 35%, #3a2a9a, #120a34 70%); } .reveal.is-inf { background: radial-gradient(circle at 50% 35%, #8a1d3a, #1d0618 70%); }
.rv-in { display: grid; justify-items: center; gap: 8px; max-width: 640px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.rv-in small { font: 800 14px/1 var(--ui); letter-spacing: .2em; opacity: .8; }
.rv-in h2 { margin: 0; font: 800 clamp(48px, 13vw, 96px)/1 var(--disp); color: var(--lime); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); animation: stampIn .6s .2s cubic-bezier(.2, 1.8, .4, 1) backwards; }
.is-inf .rv-in h2 { color: var(--red); }
.rv-in p { margin: 0; max-width: 460px; font: 700 16px/1.35 var(--ui); color: #e6dcff; } .rv-in p b { color: var(--lime); } .is-inf .rv-in p b { color: #ffc2cf; }
.rv-team { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-top: 10px; }
.rv-p { display: grid; justify-items: center; animation: popUp .5s cubic-bezier(.2, 1.6, .4, 1) backwards; } .rv-p:nth-child(2) { animation-delay: .1s; } .rv-p:nth-child(3) { animation-delay: .2s; } .rv-p:nth-child(4) { animation-delay: .3s; } .rv-p:nth-child(5) { animation-delay: .4s; } .rv-p:nth-child(6) { animation-delay: .5s; }
.rv-p b { font: 800 13px/1.1 var(--ui); } .rv-p.me b { color: var(--lime); }
.meet { display: grid; place-items: center; padding: 10px; background: rgb(8 3 24 / .75); backdrop-filter: blur(3px); }
.meet.pop .meet-card { animation: meetIn .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes meetIn { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.meet-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(100%, 980px); height: min(100%, 680px); color: var(--ink); background: #F4F0FF; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); overflow: hidden; }
.meet-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--red); color: #fff; border-bottom: 3px solid var(--ink); }
.meet.voting .meet-head { background: var(--violet); }
.mh-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; color: var(--ink); background: var(--gold); border: 3px solid var(--ink); border-radius: 50%; animation: wobble 1.2s infinite; --rot: -8deg; } .mh-ic.ice { background: var(--cyan); } .mh-ic .zi { width: 26px; height: 26px; }
.mh-t { flex: 1; min-width: 0; display: grid; } .mh-t small { font: 800 12px/1.1 var(--ui); letter-spacing: .1em; opacity: .9; } .mh-t b { font: 800 18px/1.15 var(--disp); }
.mh-time { display: grid; justify-items: center; padding: 4px 12px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; } .mh-time b { font: 800 26px/1 var(--disp); font-variant-numeric: tabular-nums; } .mh-time small { font: 800 10px/1.1 var(--ui); color: #6b5f8f; }
.meet-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; padding: 10px; min-height: 0; }
.mp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-content: start; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.mp { display: grid; gap: 4px; }
.mp-b { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 8px 4px 4px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); text-align: left; }
.mp-b:disabled { cursor: default; }
.meet.voting .mp-b:not(:disabled):hover { background: #fff6cf; }
.mp.sel .mp-b { background: var(--gold); transform: translateY(-2px); }
.mp.dead .mp-b { background: #dcd6ee; box-shadow: none; opacity: .7; }
.mp.me .mp-b { outline: 3px solid var(--lime); outline-offset: -6px; }
.mp.red .mp-n b { color: var(--red); }
.mp-n { min-width: 0; display: grid; } .mp-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 14px/1.1 var(--ui); } .mp-n small { font: 700 11px/1.1 var(--ui); color: #6b5f8f; }
.mp-v { position: absolute; top: -9px; right: -6px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 10px/1.4 var(--ui); font-style: normal; animation: pop .3s; } .mp-v .zi { width: 11px; height: 11px; }
.mp-ok { justify-self: stretch; animation: pop .25s; }
.meet-chat { display: grid; grid-template-rows: minmax(120px, 1fr) auto; gap: 8px; min-height: 0; }
.meet-chat:has(.say.off) { grid-template-rows: minmax(0, 1fr); }
.feed { display: grid; align-content: start; gap: 6px; padding: 8px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow-y: auto; }
.feed:empty::before { content: "Ninguém falou nada ainda…"; color: #8a7fb0; font: 700 13px/1.3 var(--ui); }
.fala { display: flex; align-items: flex-end; gap: 6px; animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.fala .astro-cv { flex: none; } .fl-b { display: grid; padding: 5px 10px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 12px 12px 12px 4px; font: 700 13px/1.3 var(--ui); }
.fala.me { flex-direction: row-reverse; } .fala.me .fl-b { background: #F2FCCF; border-radius: 12px 12px 4px 12px; }
.fl-b b { font: 800 11px/1.2 var(--ui); color: #6b5f8f; } .fl-b b.red { color: var(--red); }
.fl-r svg { width: 38px; height: 38px; }
.say { display: grid; gap: 6px; padding: 8px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; }
.say.off { display: none; }
.say > small { font: 800 12px/1.2 var(--ui); color: #6b5f8f; }
.say { gap: 5px; padding: 6px 8px; }
.say-chips { display: flex; flex-wrap: nowrap; gap: 5px; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.say-chips::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) and (min-height: 600px) { .say-chips { flex-wrap: wrap; overflow: auto; max-height: 92px; } }
.say-chips button { flex: none; white-space: nowrap; }
.say-chips button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 99px; font: 700 12px/1.2 var(--ui); }
.say-chips button:hover { background: var(--lime); }
.say-react { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; } .say-react::-webkit-scrollbar { display: none; } .say-react button { flex: none; } .say-react button { width: 36px; height: 36px; padding: 2px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; } .say-react svg { width: 100%; height: 100%; }
.say-acts { display: flex; justify-content: flex-end; }
.meet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: #fff; border-top: 3px solid var(--ink); font: 700 13px/1.3 var(--ui); }
.meet-foot .zi { width: 14px; height: 14px; vertical-align: -.15em; }
.eject { background: #05020f; }
.ej-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.ej-txt { position: absolute; left: 0; right: 0; bottom: 8%; display: grid; justify-items: center; gap: 8px; padding: 0 16px; text-align: center; color: #fff; }
.ej-msg { min-height: 1.2em; margin: 0; font: 800 clamp(24px, 6vw, 44px)/1.1 var(--disp); text-shadow: 0 4px 0 var(--ink); }
.ej-sub { min-height: 1.3em; margin: 0; font: 800 18px/1.3 var(--ui); color: var(--lime); }
.ej-votes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.ej-votes li { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: rgb(255 255 255 / .1); border: 2px solid rgb(255 255 255 / .25); border-radius: 12px; font: 800 13px/1 var(--ui); }
.ej-votes .zi { width: 13px; height: 13px; }
.ej-us { display: flex; } .ej-us img { width: 24px; height: 24px; margin-left: -6px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.sab-pick { display: grid; gap: 8px; }
.sab-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 10px 12px; color: var(--ink); background: #F4F0FF; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); text-align: left; }
.sab-opt .so-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; background: var(--gold); border: 3px solid var(--ink); border-radius: 50%; }
.sab-opt.hot .so-ic { background: var(--red); color: #fff; } .sab-opt b { font: 800 17px/1.1 var(--disp); } .sab-opt small { color: #50608f; font-size: 13px; }

/* ---------- fim ---------- */
.final-head { display: grid; justify-items: center; gap: 6px; text-align: center; padding-top: 6px; }
.final-head .big { font: 800 clamp(30px, 8vw, 56px)/1 var(--disp); text-shadow: 0 5px 0 rgb(0 0 0 / .3); }
.final-head .big.win { color: var(--lime); } .final-head .big.lose { color: #ffd0e6; }
.fh-team { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.flist li { grid-template-columns: 30px 34px minmax(0, 1fr) auto; }
.rl { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 1px 7px; border: 2px solid var(--ink); border-radius: 99px; font: 800 11px/1.3 var(--ui); font-style: normal; vertical-align: 1px; }
.rl .zi { width: 12px; height: 12px; } .rl.inf { background: #ffc2cf; } .rl.crew { background: #d9ccff; } .rl.c { background: #eee; }
.flist span { white-space: normal; }

@media (hover: hover) and (pointer: fine) { .act { width: 70px; height: 70px; } .act.freeze { width: 82px; height: 82px; } }
/* celular em pé */
@media (max-width: 640px) {
  .meet-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .mp-list { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); max-height: 34vh; }
  .mp-b .astro-cv { width: 34px !important; height: 54px !important; }
  .mh-t b { font-size: 15px; } .mh-time b { font-size: 22px; }
  .tasks { width: min(220px, 52vw); }
  .taskbar { width: min(100%, 230px); }
  .ej-votes li { font-size: 11px; }
}
/* celular deitado e telas baixas */
@media (max-height: 520px) {
  .menu-body { align-content: start; }
  .hero-cv { height: 92px; }
  .hero-title b { font-size: 38px; } .hero-title span { font-size: 18px; }
  .tag { margin-top: 6px; font-size: 14px; }
  .stick { width: 112px; height: 112px; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } .stick i { width: 46px; height: 46px; }
  .act { width: 62px; height: 62px; } .act.freeze { width: 72px; height: 72px; } .act .ai .zi { width: 20px; height: 20px; } .act b { font-size: 10px; }
  .hint { bottom: 12px; left: auto; right: 160px; transform: none; max-width: 46vw; }
  .tasks { top: 58px; } .tasks-list { max-height: 30vh; }
  .meet-card { height: 100%; border-radius: 18px; } .meet-head { padding: 5px 10px; } .mh-ic { width: 34px; height: 34px; } .mh-t b { font-size: 14px; }
  .meet-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: none; padding: 6px; }
  .mp-list { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); max-height: none; gap: 5px; }
  .mp-b { padding: 2px 6px 2px 2px; } .mp-b .astro-cv { width: 28px !important; height: 45px !important; }
  .say-react button { width: 30px; height: 30px; } .meet-foot { padding: 4px 10px; }
  .meet-chat { grid-template-rows: minmax(70px, 1fr) auto; gap: 5px; } .feed { padding: 5px; gap: 4px; } .fl-b { font-size: 12px; padding: 3px 8px; }
  .task-card { max-height: 100%; } .task-body { padding: 8px; gap: 6px; } .nav-screen, .sky { aspect-ratio: 5 / 2; } .tank { height: 130px; } .plant { height: 110px; } .pet-wrap { width: 140px; } .valve { width: 120px; height: 120px; }
  .rv-in h2 { font-size: 48px; } .rv-team .astro-cv { width: 50px !important; height: 80px !important; }
  @media (min-width: 700px) { .menu-body { grid-template-columns: 1fr 1fr; column-gap: 20px; } .hero { grid-row: 1 / 3; } }
}
.tasks-head em { margin-left: auto; padding: 0 7px; background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 11px/1.4 var(--ui); font-style: normal; }
@media (max-width: 640px) { .hint { top: calc(max(8px, env(safe-area-inset-top)) + 104px); bottom: auto; } }

/* arte pintada (VerseIn) no menu e no fim */
.hero-art { display: block; width: min(100%, 470px); aspect-ratio: 900 / 502; height: auto; margin: 0 auto; object-fit: cover; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); background: #2a1d63; }
.hero.has-art .hero-cv { display: none; }
.fh-art { position: relative; width: min(100%, 500px); margin: 0 auto 4px; }
.fh-art > img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); background: #2a1d63; }
.fh-art .fh-team { position: absolute; left: 0; right: 0; bottom: -18px; }
.fh-art .fh-team { flex-wrap: nowrap; gap: 0; }
@media (max-height: 520px) { .hero-art { width: min(100%, 300px); } .fh-art { width: min(100%, 260px); } }
@media (max-width: 640px) { .hero-art { width: min(100%, 270px); border-radius: 18px; } .fh-art .fh-team { bottom: -10px; } }
.rv-art { display: block; width: clamp(130px, 26vh, 230px); height: auto; aspect-ratio: 1; margin: 0 auto 10px; object-fit: cover; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); background: #2a1d63; animation: rvArt .6s cubic-bezier(.2, 1.5, .4, 1) backwards; }
@keyframes rvArt { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rv-art { animation: none; } }
@media (max-height: 520px) { .rv-art { width: 110px; margin-bottom: 4px; border-radius: 18px; } }
.hero-vid { object-fit: cover; }
.hero-vid[hidden] { display: none; }
