/* Zovy Caça ao Tesouro — menu, enterrar o baú, partida (mapa 8 × 8 + dicas de calor), fim e sala ao vivo.
   Base comum igual à do Zovy Palavra Secreta (cartões, botões, sala de espera); o que é só do Caça ao Tesouro fica no fim. */
:root { --ink: #1E1338; --violet: #7C4DFF; --lime: #C6F432; --pink: #FF4FA3; --cyan: #2EE6FF; --gold: #FFB800; --orange: #FF8A3D; --red: #FF3B5C; --teal: #14B8A6; --soft: #bfe9f2;
  --h0: #FFB800; --h1: #FF3B5C; --h2: #FF8A3D; --h3: #FFD23F; --h4: #5EC8FF; --h5: #3B6CFF;
  --paper: #F6E3B4; --paper2: #EBCF8F; --grass: #8FD36A; --grass2: #7FC85C; --gline: #4E8B34; --dirt: #6B4423;
  --disp: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #140b2c; }
body { font: 600 16px/1.35 var(--ui); color: #fff; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.mono { font-family: var(--disp); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
#app { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 20%, #2f1d6b, #160c35 62%, #0f0824); }
/* fundo: números flutuando */
.bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bg span { position: absolute; bottom: -60px; width: 46px; height: 46px; border: 2px solid rgb(255 255 255 / .09); border-radius: 12px; animation: bgUp 18s linear infinite; }
.bg span::after { content: "7"; position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / .1); font: 800 24px/1 var(--disp); }
.bg span:nth-child(1) { left: 6%; animation-delay: -2s; } .bg span:nth-child(2) { left: 18%; animation-delay: -9s; width: 34px; height: 34px; } .bg span:nth-child(2)::after { content: "3"; font-size: 18px; }
.bg span:nth-child(3) { left: 33%; animation-delay: -5s; } .bg span:nth-child(3)::after { content: "0"; }
.bg span:nth-child(4) { left: 49%; animation-delay: -13s; width: 56px; height: 56px; } .bg span:nth-child(4)::after { content: "9"; font-size: 30px; }
.bg span:nth-child(5) { left: 63%; animation-delay: -1s; width: 30px; height: 30px; } .bg span:nth-child(5)::after { content: "1"; font-size: 16px; }
.bg span:nth-child(6) { left: 75%; animation-delay: -7s; } .bg span:nth-child(6)::after { content: "5"; }
.bg span:nth-child(7) { left: 87%; animation-delay: -15s; width: 38px; height: 38px; } .bg span:nth-child(7)::after { content: "2"; font-size: 20px; }
.bg span:nth-child(8) { left: 95%; animation-delay: -11s; } .bg span:nth-child(8)::after { content: "8"; }
@keyframes bgUp { from { transform: translateY(0) rotate(0); } to { transform: translateY(-115vh) rotate(160deg); } }
.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); }
.screen.panel { background: radial-gradient(circle at 50% 110%, rgb(20 184 166 / .3), transparent 60%), linear-gradient(165deg, #3a2290 0%, #241257 55%, #150b33 100%); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.icon-btn.off { background: #d9d1f2; color: #6b5f8f; }
.top-btns { display: flex; gap: 8px; margin-left: auto; }
/* ---------- menu ---------- */
#menu { overflow-y: auto; }
.menu-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 16px; width: 100%; max-width: 1000px; margin: 0 auto; padding: 10px 0; }
.hero { display: grid; justify-items: center; gap: 10px; text-align: center; }
.title { display: inline-grid; justify-items: center; gap: 4px; margin: 0; font: 800 clamp(42px, 12vw, 80px)/.92 var(--disp); white-space: nowrap; letter-spacing: -.02em; }
.title span { position: relative; padding: 6px 18px 12px; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); animation: signIn .7s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.title .t1 { color: #fff; background: var(--violet); font-size: .5em; transform: rotate(-4deg); }
.title .t2 { color: var(--ink); background: var(--lime); transform: rotate(-2deg); animation-delay: .15s; letter-spacing: .06em; }
@keyframes signIn { from { opacity: 0; transform: translateY(-40px) rotate(-10deg) scale(.5); } }
.tag { max-width: 460px; margin: 0; font-size: 15px; text-shadow: 0 2px 0 rgb(30 19 56 / .6); }
.tag b { color: var(--lime); }
.modes { display: grid; gap: 10px; }
.mode { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; text-align: left; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); transition: transform .12s, box-shadow .12s; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.mode:nth-child(2) { animation-delay: .07s; } .mode:nth-child(3) { animation-delay: .14s; } .mode:nth-child(4) { animation-delay: .21s; }
.mode:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 9px 0 var(--ink); }
.mode:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.m-ic { display: grid; place-items: center; width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 16px; }
.m-ic .zi { width: 25px; height: 25px; }
.m-bots .m-ic { background: var(--lime); } .m-local .m-ic { background: var(--gold); } .m-galera .m-ic { background: var(--pink); color: #fff; } .m-daily .m-ic { background: var(--cyan); }
.m-txt { display: grid; min-width: 0; }
.m-txt b { font: 800 21px/1.1 var(--disp); }
.m-txt small { color: #5d5182; font-size: 13px; font-weight: 700; }
.m-rec { display: grid; justify-items: end; font: 800 12px/1.2 var(--ui); color: #6b5f8f; text-align: right; }
.m-rec b { font: 800 22px/1 var(--disp); color: var(--ink); font-variant-numeric: tabular-nums; }
.m-rec .new { padding: 2px 8px; color: #fff; background: var(--pink); border: 2px solid var(--ink); border-radius: 99px; font-size: 11px; animation: beat 1.2s infinite; }
.m-rec .new.cy { color: var(--ink); background: var(--cyan); animation: none; }
.menu-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.menu-row .btn { padding: 9px 6px; white-space: nowrap; font-size: 13px; }
@media (max-width: 520px) { .menu-body { gap: 12px; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes beat { 50% { transform: scale(1.08); } }
@media (min-width: 860px) {
  .menu-body { grid-template-columns: 1.05fr 1fr; align-items: center; column-gap: 40px; }
  .hero { grid-row: 1 / 3; }
}
.lvl-pick { display: grid; gap: 8px; }
.btn.lvl { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; justify-items: start; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; }
.btn.lvl img { width: 46px; height: 46px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.btn.lvl b { font: 800 19px/1.1 var(--disp); } .btn.lvl small { display: block; color: #6b5f8f; font-weight: 700; } .btn.lvl em { font-style: normal; color: #6b5f8f; font-size: 12px; }
.btn.lvl:nth-child(1) { background: #E6FFB8; } .btn.lvl:nth-child(2) { background: #FFF0C2; } .btn.lvl:nth-child(3) { background: #FFD3E8; }
.two-names { display: grid; gap: 10px; } .two-names label { display: grid; gap: 4px; font: 800 13px/1 var(--ui); color: #6b5f8f; text-transform: uppercase; }
.soft { color: #6b5f8f; } .small { font-size: 13px; }
.linkish { padding: 0; color: var(--violet); background: none; border: 0; font-weight: 800; text-decoration: underline; }
.modal-card .set-block > small { color: #6b5f8f; font: 800 12px/1 var(--ui); letter-spacing: .08em; }
.modal-card .row-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- passar o aparelho ---------- */
.pass-body { flex: 1; display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center; }
.pass-av { width: 110px; height: 110px; background: #fff; border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 8px 0 var(--ink); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.pass-body small { color: var(--lime); font: 800 13px/1 var(--ui); letter-spacing: .14em; }
.pass-body h2 { margin: 0; font: 800 clamp(30px, 8vw, 46px)/1.05 var(--disp); }
.pass-body p { margin: 0 0 8px; max-width: 360px; color: #e6dcff; }
/* ---------- partida ---------- */
#play { padding-bottom: max(10px, env(safe-area-inset-bottom)); gap: 10px; }
.hud { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; max-width: 1100px; margin: 0 auto; flex: none; }
.pcard { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 4px 10px 4px 4px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); transition: transform .2s, background .2s; }
.pcard.right { grid-template-columns: minmax(0, 1fr) 40px; padding: 4px 4px 4px 10px; text-align: right; }
.pcard.right img { order: 2; }
.pcard.on { background: var(--lime); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.pcard img { width: 40px; height: 40px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 50%; }
.pc-t { display: grid; min-width: 0; } .pc-t b { overflow: hidden; font: 800 15px/1.15 var(--ui); text-overflow: ellipsis; white-space: nowrap; } .pc-t small { overflow: hidden; color: #6b5f8f; font: 700 11px/1.2 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.h-mid { display: grid; justify-items: center; gap: 3px; }
.h-turn { padding: 3px 10px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 12px/1.2 var(--ui); letter-spacing: .06em; white-space: nowrap; }
.h-clock { min-width: 38px; padding: 1px 8px; text-align: center; color: #fff; background: var(--violet); border: 2px solid var(--ink); border-radius: 99px; font: 800 14px/1.3 var(--disp); font-variant-numeric: tabular-nums; }
.h-clock.danger { background: var(--red); animation: beat .5s infinite; }
body[data-mode="daily"] #pc1 { visibility: visible; }
.msg { position: absolute; left: 50%; top: calc(max(8px, env(safe-area-inset-top)) + 60px); z-index: 30; width: min(92vw, 460px); padding: 9px 14px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); text-align: center; font-weight: 700; transform: translateX(-50%); pointer-events: none; animation: msgIn .35s cubic-bezier(.2, 1.6, .4, 1); }
.msg.turn { background: var(--lime); } .msg.alert { color: #fff; background: var(--red); } .msg.gold { background: var(--gold); }
@keyframes msgIn { from { transform: translate(-50%, -12px) scale(.9); opacity: 0; } }
.pause { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; background: rgb(30 19 56 / .72); backdrop-filter: blur(3px); }
.pause .card { display: grid; gap: 12px; width: min(92vw, 360px); text-align: center; }
.pause h2 { margin: 0; font: 800 28px/1 var(--disp); } .pause h2 .zi { width: 24px; height: 24px; }
.pause .row-chips { display: flex; justify-content: center; gap: 8px; }
.board { position: relative; }
body[data-mode="live"] .board { padding-bottom: 50px; }
.board .reacts-mini { position: absolute; right: 8px; bottom: 7px; z-index: 3; display: flex; gap: 4px; }
.board .reacts-mini button { width: 36px; height: 36px; padding: 3px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 12px; }
.board .reacts-mini button:active { transform: scale(.88); }
/* ---------- fim ---------- */
#over { overflow-y: auto; background: rgb(20 11 44 / .7); }
.over-wrap { display: grid; width: 100%; max-width: 540px; margin: auto; }
.over-card { display: grid; gap: 10px; padding: 18px; text-align: center; border-width: 4px; border-radius: 26px; box-shadow: 0 9px 0 var(--ink); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.over-card .kicker { color: var(--violet); font: 800 12px/1 var(--ui); letter-spacing: .12em; }
.over-card h2 { margin: 0; font: 800 30px/1.05 var(--disp); }
.over-card .muted { margin: 0; color: #6b5f8f; font-weight: 700; }
.over-card .muted b { color: var(--ink); }
.ov-code { display: grid; justify-items: center; gap: 4px; }
.ov-code small { color: #6b5f8f; font: 800 11px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.over-card .ov-code + .ov-code { margin-top: -2px; }
.over-card .ov-codes { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ov-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ov-stats > div { display: grid; justify-items: center; gap: 2px; padding: 8px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; }
.ov-stats > div.w { background: #F2FCCF; }
.ov-stats img { width: 44px; height: 44px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.ov-stats small { color: #6b5f8f; font-size: 12px; font-weight: 700; }
.over-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.over-actions .btn.wide { grid-column: 1 / -1; font-size: 19px; padding: 13px; }
.over-card .next { margin: 0; font-size: 14px; }
.over-card .next .zi { width: 16px; height: 16px; vertical-align: -.2em; }
.reward .zi { width: 18px; height: 18px; vertical-align: -.25em; }
@media (max-height: 560px) {
  .menu-body { grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 2px 0; gap: 8px; }
  .hero { grid-row: 1 / 3; gap: 6px; } .title { font-size: 40px; } .title span { padding: 3px 12px 7px; border-width: 3px; box-shadow: 0 5px 0 var(--ink); }
  .tag { display: none; }
  .mode { padding: 6px 10px; } .m-ic { width: 36px; height: 36px; } .m-ic .zi { width: 20px; height: 20px; } .m-txt b { font-size: 16px; } .m-txt small { display: none; } .modes { gap: 7px; } .mode { box-shadow: 0 4px 0 var(--ink); }
  .over-card { padding: 12px; gap: 6px; } .over-card h2 { font-size: 22px; }
  .ov-stats > div { padding: 4px 8px; } .ov-stats img { width: 32px; height: 32px; } .over-card .reward p { margin: 0; }
  .over-actions { grid-template-columns: 2fr 1fr 1fr; gap: 8px; } .over-actions .btn.wide { grid-column: auto; font-size: 17px; padding: 10px; } .over-actions .btn { padding: 9px 10px; }
  .over-wrap { max-width: 760px; }
  .pass-av { width: 70px; height: 70px; } .pass-body h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .bg { display: none; } }
/* ================= base comum (botões, janelas, sala ao vivo) ================= */
/* ---------- 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; text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.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 .zi { width: 1.1em; height: 1.1em; }
.btn:focus-visible, .icon-btn:focus-visible, .mode:focus-visible, .ans:focus-visible, .tab:focus-visible, .stk:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.icon-btn .zi { width: 22px; height: 22px; }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.pill { display: inline-block; padding: 1px 9px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.4 var(--ui); }
.top { display: flex; align-items: center; gap: 10px; flex: none; }
.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; }


.bar { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; max-width: 1100px; margin: 0 auto 10px; }
.bar-title { display: grid; } .bar-title small { color: var(--soft); font: 800 11px/1 var(--ui); letter-spacing: .12em; } .bar-title b { font: 800 22px/1.1 var(--disp); }

/* ---------- efeitos e janelas ---------- */
.confetti { position: absolute; inset: 0; z-index: 55; width: 100%; height: 100%; pointer-events: none; }
.toasts { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 58px); 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 .t-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; background: var(--c, var(--lime)); border: 2px solid var(--ink); border-radius: 50%; }
.toast .t-ic .zi { width: 16px; height: 16px; } .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 h2 .zi { color: var(--gold); }
.modal-card ol { padding-left: 20px; } .modal-card li { margin-bottom: 8px; } .modal-card .fact small { color: #6b5f8f; }
.top-list { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.top-list li { display: flex; align-items: center; gap: 8px; 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; }
.plus { position: absolute; z-index: 60; width: 80px; text-align: center; color: var(--lime); font: 800 34px/1 var(--disp); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; pointer-events: none; animation: plusUp 1.1s ease-out forwards; }
@keyframes plusUp { to { transform: translateY(-70px); opacity: 0; } }

/* ================= Com a galera (sala ao vivo): base da sala de espera, reações e pódio, igual ao Stop/Impostor/Mentira ================= */
.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; }
.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; }
/* ---------- 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); } }

.reacts { display: flex; gap: 4px; }
.reacts button { width: 44px; height: 44px; padding: 4px; background: rgb(255 255 255 / .1); border: 2px solid rgb(255 255 255 / .2); border-radius: 14px; transition: transform .12s, background .15s; }
.reacts button:hover { background: rgb(255 255 255 / .2); transform: translateY(-2px) rotate(-6deg); }
.reacts button.boing, .sus.boing { animation: boing .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes boing { 30% { transform: scale(1.12) rotate(3deg); } }
.reacts button:active { transform: scale(.85); }
/* ---------- 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; }
@keyframes wobble { 0%, 100% { transform: rotate(var(--rot)); } 50% { transform: rotate(calc(var(--rot) * -1)) translateY(-4px); } }

/* ---------- Com a galera: peças próprias ---------- */
.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%; }
.btn.big .ico .zi { width: 20px; height: 20px; }
.btn.big .t { font: 800 21px/1.1 var(--disp); }
.btn.big small { font: 700 13px/1.2 var(--ui); opacity: .8; }
.btn:disabled { opacity: .45; pointer-events: none; }
.m-galera .m-ic { background: var(--pink); color: #fff; }
.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; }
#gjoin { overflow-y: auto; }
.gj-body { flex: 1; display: grid; align-content: center; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 0; }
.gj-hero { text-align: center; }
.gj-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; color: #fff; background: var(--pink); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); font: 800 13px/1.2 var(--ui); letter-spacing: .08em; animation: beat 1.4s infinite; }
.gj-hero h2 { margin: 12px 0 6px; font: 800 clamp(22px, 5.5vw, 30px)/1.15 var(--disp); }
.gj-hero h2 em { font-style: normal; color: var(--lime); }
.gj-hero p { margin: 0; color: #e6dcff; }
#globby, #gfinal { overflow-y: auto; }
.wait.dark { color: #6b5f8f; }
.round-tag { padding: 4px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.2 var(--ui); letter-spacing: .06em; white-space: nowrap; }
.gclock { position: relative; width: 50px; height: 50px; flex: none; background: #fff; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.gclock svg { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); transform: rotate(-90deg); }
.gclock .tc-bg { fill: none; stroke: #e5def7; stroke-width: 6; } .gclock .tc-fg { fill: none; stroke: var(--violet); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 125.7; transition: stroke-dashoffset .15s linear; }
.gclock span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font: 800 18px/1 var(--disp); }
.gclock.danger { background: var(--red); animation: beat .5s infinite; } .gclock.danger span { color: #fff; } .gclock.danger .tc-fg { stroke: #fff; }
#glive { align-items: center; }
.glive-main { flex: 1; min-height: 0; width: 100%; max-width: 1200px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 12px; }
.gcount { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 4px; pointer-events: none; }
.gcount b { display: grid; place-items: center; width: 110px; height: 110px; color: var(--ink); background: var(--gold); border: 5px solid var(--ink); border-radius: 50%; box-shadow: 0 8px 0 var(--ink); font: 800 64px/1 var(--disp); animation: pop .35s cubic-bezier(.2, 1.8, .4, 1); }
.gcount small { padding: 3px 12px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; font: 800 14px/1.2 var(--ui); }
.gboard { align-self: center; padding: 10px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); max-height: 100%; overflow-y: auto; }
.gboard h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 800 17px/1 var(--disp); }
.gboard h3 .zi { color: var(--gold); }
.gboard ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.gboard li { display: grid; grid-template-columns: 26px 28px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 4px 6px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 12px; font: 800 13px/1.2 var(--ui); }
.gboard li.me { background: #F2FCCF; } .gboard li.out { opacity: .45; text-decoration: line-through; }
.boot { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgb(30 19 56 / .85); color: var(--soft); font-weight: 700; }
.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; }
.final-title .zi { color: var(--gold); width: .9em; height: .9em; vertical-align: -.08em; }
.rule-help { margin: 2px 0 0; color: #6b5f8f; font: 700 12px/1.35 var(--ui); }
.seg button .zi { width: 15px; height: 15px; vertical-align: -.2em; }
/* placar de cima: até 4 jogadores */
.hud { grid-template-columns: auto minmax(0, 1fr) auto; }
.chips { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.chips::-webkit-scrollbar { display: none; }
.pchip { position: relative; flex: 1 1 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; padding: 3px 8px 3px 3px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); transition: transform .2s, background .2s; }
.pchip img { width: 34px; height: 34px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 50%; }
.pchip.on { background: var(--lime); transform: translateY(-2px); }
.pchip.me { outline: 3px solid var(--cyan); outline-offset: 1px; }
.pchip.done { background: #DDF8C4; }
.pchip.out { opacity: .45; }
.pchip .ok { position: absolute; left: 22px; top: -6px; display: grid; place-items: center; width: 20px; height: 20px; color: var(--ink); background: var(--pg); border: 2px solid var(--ink); border-radius: 50%; }
.pchip .ok .zi { width: 12px; height: 12px; }
.chips[data-n="4"] .pchip, .chips[data-n="3"] .pchip { grid-template-columns: 30px minmax(0, 1fr); } .chips[data-n="4"] .pchip img, .chips[data-n="3"] .pchip img { width: 30px; height: 30px; }
@media (max-width: 520px) { .chips[data-n="4"] .pc-t b, .chips[data-n="3"] .pc-t b { font-size: 11px; } .chips[data-n="4"] .pchip { grid-template-columns: 28px; justify-items: center; padding: 3px; } .chips[data-n="4"] .pchip .pc-t b { display: none; } .chips[data-n="4"] .pchip .pc-t small { font-size: 10px; } .chips[data-n="4"] .pchip img { width: 28px; height: 28px; } }
/* sala de espera: a roda */
.ring-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: rg; }
@media (min-width: 560px) { .ring-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ring-list li { position: relative; display: grid; justify-items: center; gap: 3px; padding: 10px 6px 8px; text-align: center; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; min-width: 0; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.ring-list li.me { background: #F2FCCF; } .ring-list li.off { opacity: .45; } .ring-list li.empty { color: #6b5f8f; border-style: dashed; animation: none; }
.ring-list img { width: 52px; height: 52px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.ring-list b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ring-list small { color: #6b5f8f; font-size: 11px; }
.ring-list .crown { position: absolute; top: -13px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.ring-list .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%; }
.ring-list .ghost { display: grid; place-items: center; width: 52px; height: 52px; border: 2px dashed #b9add9; border-radius: 50%; }
.ov-stats[data-n="3"], .ov-stats[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ov-stats > div.liar { background: #FFE1EC; }

/* ================= Caça ao Tesouro ================= */
html, body { background: #0a2340; }
#app { background: radial-gradient(circle at 50% 16%, #1f8aa0, #11506e 46%, #0b2b4a 78%, #081d36); }
.screen.panel { background: radial-gradient(circle at 50% 110%, rgb(255 184 0 / .22), transparent 60%), linear-gradient(165deg, #187a90 0%, #10466a 55%, #0a2742 100%); }
#over { background: rgb(8 29 54 / .74); }
/* fundo: moedas subindo */
.bg span { position: absolute; bottom: -60px; width: 34px; height: 34px; background: radial-gradient(circle at 35% 30%, #ffe27a, #f2a900 70%); border: 3px solid rgb(30 19 56 / .35); border-radius: 50%; opacity: .16; animation: bgUp 20s linear infinite; }
.bg span::after { content: ""; position: absolute; inset: 6px; border: 2px solid rgb(30 19 56 / .35); border-radius: 50%; }
.bg span:nth-child(1) { left: 6%; animation-delay: -2s; } .bg span:nth-child(2) { left: 18%; animation-delay: -9s; width: 24px; height: 24px; }
.bg span:nth-child(3) { left: 33%; animation-delay: -5s; } .bg span:nth-child(4) { left: 49%; animation-delay: -13s; width: 44px; height: 44px; }
.bg span:nth-child(5) { left: 63%; animation-delay: -1s; width: 22px; height: 22px; } .bg span:nth-child(6) { left: 75%; animation-delay: -7s; }
.bg span:nth-child(7) { left: 87%; animation-delay: -15s; width: 28px; height: 28px; } .bg span:nth-child(8) { left: 95%; animation-delay: -11s; }
@keyframes bgUp { from { transform: translateY(0) rotateY(0); } to { transform: translateY(-115vh) rotateY(720deg); } }
.title .t2 { color: var(--ink); background: var(--gold); font-size: .62em; transform: rotate(-2deg); animation-delay: .3s; letter-spacing: .04em; }
.title .t3 { color: #fff; background: var(--pink); font-size: .34em; letter-spacing: .14em; transform: rotate(2deg); animation-delay: .15s; }
.m-daily .m-ic { background: var(--h4); }
.tag b { color: var(--gold); }
.mono { font-family: var(--disp); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* ---------- o mapa ---------- */
.map { --c: 36px; display: grid; grid-template-columns: repeat(8, var(--c)); grid-auto-rows: var(--c); gap: 3px; justify-content: center; padding: 8px; background: linear-gradient(160deg, var(--paper), var(--paper2)); border: 3px solid var(--ink); border-radius: 18px; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .35), 0 5px 0 var(--ink); touch-action: manipulation; }
.map:has(.ml) { grid-template-columns: 16px repeat(8, var(--c)); grid-auto-rows: auto; grid-template-rows: 16px; padding: 6px 10px 10px 4px; }
.map:has(.ml) .cell { height: var(--c); }
.ml { display: grid; place-items: center; color: #8a5a1c; font: 800 11px/1 var(--ui); }
.cell { position: relative; display: grid; place-items: center; width: var(--c); height: var(--c); padding: 0; background: var(--grass); border: 2px solid var(--gline); border-radius: 9px; box-shadow: inset 0 -3px 0 rgb(0 0 0 / .14), inset 0 2px 0 rgb(255 255 255 / .3); transition: transform .12s, background .15s; }
.cell.alt { background: var(--grass2); }
button.cell { cursor: pointer; }
.map.on button.cell:not(.dug):hover { background: #b6ea8c; transform: translateY(-2px); }
.map.on button.cell:not(.dug):active { transform: translateY(1px) scale(.94); }
.cell .zi { width: 70%; height: 70%; }
.cell.sel { z-index: 2; background: var(--lime); border-color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); animation: selPulse 1.1s ease-in-out infinite; }
.cell.sel .tgt { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink); }
.cell.sel .tgt .zi { width: 62%; height: 62%; animation: shovel .9s ease-in-out infinite; }
@keyframes selPulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--gold); } }
@keyframes shovel { 50% { transform: rotate(-18deg) translateY(-2px); } }
.cell.note { background: #c9d9a8; border-style: dashed; } .cell.note .xm { width: 60%; height: 60%; color: #8a3b1c; stroke-width: 3; }
.map.noting button.cell:not(.dug):not(.note) { border-style: dashed; }
.cell.dug { background: var(--dirt); border-color: #3d2412; box-shadow: inset 0 3px 6px rgb(0 0 0 / .4); }
.cell .hole { display: grid; place-items: center; width: 80%; height: 80%; color: var(--ink); background: var(--hc); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 2px 0 rgb(0 0 0 / .35), inset 0 -3px 0 rgb(0 0 0 / .14); }
.cell .hole .zi { width: 66%; height: 66%; }
.h0 { --hc: var(--h0); } .h1 { --hc: var(--h1); } .h2 { --hc: var(--h2); } .h3 { --hc: var(--h3); } .h4 { --hc: var(--h4); } .h5 { --hc: var(--h5); }
.cell.h1 .hole, .cell.h5 .hole { color: #fff; }
.cell.h2 .hole .zi { width: 52%; height: 52%; }
.cell.h0 { background: #ffe79a; border-color: var(--ink); }
.cell.h0 .hole { width: 96%; height: 96%; background: transparent; border: 0; box-shadow: none; }
.cell.h0 .hole .zi, .cell .cx .zi { width: 88%; height: 88%; }
.cell.chest { background: #ffe79a; border-color: var(--ink); }
.cell .cx { display: grid; place-items: center; width: 100%; height: 100%; }
.cell.chest.drop .cx { animation: chestDrop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes chestDrop { from { transform: translateY(-26px) scale(.6); opacity: 0; } }
.cell.new .hole { animation: holePop .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes holePop { from { transform: scale(0); } 60% { transform: scale(1.25); } }
.cell.boom { z-index: 3; animation: boomC .8s cubic-bezier(.2, 1.8, .4, 1); box-shadow: 0 0 0 4px #fff, 0 0 18px 6px rgb(255 184 0 / .9); }
@keyframes boomC { 30% { transform: scale(1.35) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }
.cell.digging { animation: digShake .45s; }
@keyframes digShake { 20%, 60% { transform: translateX(-3px) rotate(-3deg); } 40%, 80% { transform: translateX(3px) rotate(3deg); } }
.dirt { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: #8a5a2b; border: 1.5px solid #3d2412; border-radius: 50%; pointer-events: none; animation: dirtFly .55s ease-out forwards; }
@keyframes dirtFly { to { transform: translate(var(--x), var(--y)) scale(.4); opacity: 0; } }
.map.locked .cell.chest { background: #c9a36a; }
.map.bury .cell.chest .cx { animation: buryIt .7s ease-in forwards; }
@keyframes buryIt { 40% { transform: translateY(-6px); } 100% { transform: translateY(10px) scale(.5); opacity: 0; } }
.map.mini { --c: 11px; gap: 1.5px; padding: 4px; border-width: 2px; border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }
.map.mini .cell { border-width: 1px; border-radius: 3px; box-shadow: none; }
.map.mini .hole { width: 100%; height: 100%; border: 0; border-radius: 2px; box-shadow: none; }
.map.mini .hole .zi { display: none; }
.map.mini .cell.h0 .hole .zi, .map.mini .cell .cx .zi { display: block; width: 100%; height: 100%; }
.map.mini .cell.new { animation: holePop .45s cubic-bezier(.2, 1.8, .4, 1); }
/* termômetro (legenda) */
.thermo { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 8px; }
.th { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 11px/1.2 var(--ui); }
.th i { display: grid; place-items: center; width: 18px; height: 18px; background: var(--hc); border: 1.5px solid var(--ink); border-radius: 50%; }
.th i .zi { width: 12px; height: 12px; } .th.h1 i, .th.h5 i { color: #fff; }
.th.h0 i { background: #ffe79a; } .th.h0 i .zi { width: 15px; height: 15px; }
.hb { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; color: var(--ink); background: var(--hc); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.2 var(--ui); vertical-align: middle; white-space: nowrap; }
.hb .zi { width: 16px; height: 16px; padding: 2px; background: rgb(255 255 255 / .6); border-radius: 50%; color: var(--ink); }
.hb.h1, .hb.h5 { color: #fff; } .hb small { opacity: .8; font-size: 11px; }
.hb.h0 { background: var(--gold); }
.last-heat { display: inline-flex; align-items: center; gap: 6px; color: #6b5f8f; font: 700 12px/1.2 var(--ui); }
.msg.heat { color: var(--ink); background: var(--hc); } .msg.heat.h1, .msg.heat.h5 { color: #fff; }

/* ---------- menu: mapinha que cava sozinho ---------- */
.hero-map { --c: clamp(24px, 7vw, 38px); display: grid; grid-template-columns: repeat(6, var(--c)); grid-auto-rows: var(--c); gap: 3px; padding: 8px; background: linear-gradient(160deg, var(--paper), var(--paper2)); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 7px 0 var(--ink); transform: rotate(-3deg); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.hero-map .cell { border-radius: 7px; }
.hero-map .cell.pop .hole { animation: holePop .45s cubic-bezier(.2, 1.8, .4, 1); }
@media (max-height: 560px) { .hero-map { --c: 22px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); } }

/* ---------- enterrar o baú ---------- */
#setup { overflow-y: auto; }
.set-body { flex: 1; display: grid; align-content: center; justify-items: center; gap: 14px; width: 100%; max-width: 860px; margin: 0 auto; }
.map-wrap { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.mh-t { display: inline-flex; align-items: center; gap: 6px; color: #fff; font: 800 15px/1.2 var(--ui); }
.mh-t .zi { width: 22px; height: 22px; } .mh-t b { color: var(--gold); font-size: 18px; }
.set-map .map { --c: clamp(26px, min(calc((100vw - 90px) / 8), calc((100dvh - 360px) / 8)), 54px); }
.pad-wrap { display: grid; gap: 12px; width: 100%; max-width: 380px; }
.set-help { margin: 0; text-align: center; color: #e2f6fb; } .set-help b { color: var(--gold); }
.set-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.set-actions .btn.lime { font-size: 18px; }
.set-wait { margin: 0; padding: 12px; text-align: center; color: var(--ink); background: var(--lime); border: 3px solid var(--ink); border-radius: 16px; font-weight: 800; }
.set-err { margin: 0; padding: 8px 12px; text-align: center; color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 14px; font-weight: 800; }
.mini-btn.eye { display: inline-flex; align-items: center; gap: 5px; } .mini-btn .zi { width: 15px; height: 15px; }
.timer { margin-left: auto; padding: 4px 12px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; font: 800 16px/1.2 var(--disp); font-variant-numeric: tabular-nums; }
.timer.low { color: #fff; background: var(--red); animation: beat .5s infinite; }
@media (orientation: landscape) and (min-width: 700px) {
  .set-body { grid-template-columns: auto minmax(260px, 380px); align-items: center; column-gap: 30px; }
  .set-map .map { --c: clamp(24px, calc((100dvh - 170px) / 8), 58px); }
}

/* ---------- partida ---------- */
#play { gap: 10px; }
.hud { grid-template-columns: auto minmax(0, 1fr) auto; }
.arena { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 560px; margin: 0 auto; }
.board { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 0; padding: 10px; }
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; width: 100%; margin-bottom: 8px; }
.board-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; font: 800 18px/1.1 var(--disp); }
.board-head h2 .zi { width: 26px; height: 22px; color: var(--violet); }
.board .map { --c: clamp(24px, min(calc((100vw - 104px) / 8), calc((100dvh - 470px) / 8)), 58px); }
body[data-mode="live"] .board { padding-bottom: 52px; }
.board .reacts-mini { position: absolute; right: 8px; bottom: 7px; z-index: 3; display: flex; gap: 4px; }
.board .reacts-mini button { width: 36px; height: 36px; padding: 3px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 12px; }
.mine { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "h h" "m t"; align-items: center; gap: 6px 12px; padding: 8px 12px; }
.mine-head { grid-area: h; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mine-head h3 { display: flex; align-items: center; gap: 6px; margin: 0; font: 800 15px/1.1 var(--disp); }
.mine-head h3 .zi { width: 22px; height: 19px; }
.mine .map { grid-area: m; }
.mine-sub { grid-area: t; margin: 0; color: #4b3f74; font: 700 13px/1.5 var(--ui); }
.mine-sub b { color: var(--ink); }
.dock { position: relative; flex: none; display: grid; gap: 8px; width: 100%; max-width: 560px; margin: 0 auto; }
.dig-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.btn.note { flex-direction: column; gap: 2px; padding: 6px 12px; font-size: 12px; }
.btn.note .zi { width: 20px; height: 20px; }
.btn.note[aria-pressed="true"] { background: var(--gold); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.dig { justify-content: center; min-height: 58px; padding: 10px 14px; font: 800 18px/1.1 var(--disp); }
.btn.dig .sh { display: grid; place-items: center; width: 34px; height: 34px; background: rgb(255 255 255 / .55); border: 2px solid var(--ink); border-radius: 50%; }
.btn.dig .sh .zi { width: 20px; height: 20px; }
.btn.dig:not(:disabled) { animation: okPulse 1.3s ease-in-out infinite; }
.btn.dig:disabled { opacity: .6; }
.btn.dig b { color: var(--violet); }
@keyframes okPulse { 50% { box-shadow: 0 5px 0 var(--ink), 0 0 0 6px rgb(198 244 50 / .35); } }
.dock-cover { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 10px; text-align: center; color: #fff; background: rgb(8 29 54 / .78); border-radius: 18px; font: 800 16px/1.3 var(--ui); backdrop-filter: blur(2px); }
.dock-cover .dots { color: var(--lime); }
.done-note { margin: 0; padding: 10px 14px; text-align: center; color: var(--ink); background: var(--lime); border: 3px solid var(--ink); border-radius: 16px; font-weight: 800; }
.done-note .zi { width: 18px; height: 18px; vertical-align: -.2em; }
.done-note:not([hidden]) ~ .dig-line, .dock:has(.done-note:not([hidden])) .dig-line { display: none; }
@media (orientation: portrait) and (max-height: 720px) { .board-head { margin-bottom: 4px; } .thermo { margin-top: 5px; } .th { font-size: 10px; } .btn.dig { min-height: 50px; } }
/* deitado e computador: o mapa à esquerda; seu baú e o botão de cavar à direita */
@media (orientation: landscape) and (min-width: 700px) {
  #play.on { display: grid; grid-template-columns: auto minmax(270px, 340px); grid-template-rows: auto minmax(0, 1fr) auto; justify-content: center; column-gap: 16px; row-gap: 10px; }
  #play .hud { grid-column: 1 / -1; max-width: none; width: 100%; }
  #play .arena { display: contents; }
  #play .board { grid-column: 1; grid-row: 2 / 4; align-self: center; min-height: 0; justify-content: center; }
  #play .board .map { --c: clamp(22px, calc((100dvh - 190px) / 8), 62px); }
  #play .mine { grid-column: 2; grid-row: 2; align-self: end; grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "m" "t"; justify-items: center; text-align: center; }
  #play .mine .map { --c: clamp(14px, calc((100dvh - 420px) / 8), 24px); }
  #play .dock { grid-column: 2; grid-row: 3; max-width: none; }
}
@media (max-height: 560px) and (orientation: landscape) {
  #play { gap: 6px; padding-top: max(6px, env(safe-area-inset-top)); }
  #play.on { row-gap: 6px; }
  .board { padding: 6px 8px; } .board-head { margin-bottom: 4px; } .board-head h2 { font-size: 15px; }
  #play .board .map { --c: clamp(20px, calc((100dvh - 120px) / 8), 40px); gap: 2px; }
  .thermo { display: none; }
  #play .mine { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "h h" "m t"; text-align: left; padding: 6px 10px; }
  #play .mine .map { --c: 10px; }
  .mine-head h3 { font-size: 13px; } .mine-sub { font-size: 12px; }
  .btn.dig { min-height: 46px; font-size: 16px; }
  .pchip img { width: 26px; height: 26px; } .pchip { grid-template-columns: 26px minmax(0, 1fr); border-width: 2px; }
  .msg { top: 50px; font-size: 14px; padding: 6px 10px; }
  body[data-mode="live"] .board { padding-bottom: 6px; }
  .board .reacts-mini { right: auto; left: calc(100% + 16px); bottom: auto; top: 0; display: none; }
}
@media (min-width: 1000px) and (min-height: 600px) {
  #play.on { grid-template-columns: auto 340px; }
  #play .mine .map { --c: 22px; }
}
body[data-mode="daily"] #play .mine { display: none; }

/* ---------- fim ---------- */
.ov-chestbig { position: relative; justify-self: center; width: 96px; height: 76px; margin-top: 4px; }
.ov-chestbig .box { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(#C97A2B, #a8611f); border: 3px solid var(--ink); border-radius: 6px 6px 12px 12px; box-shadow: 0 5px 0 var(--ink); }
.ov-chestbig .box::before, .ov-chestbig .box::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 8px; background: var(--gold); border: 2px solid var(--ink); }
.ov-chestbig .box::before { left: 18px; } .ov-chestbig .box::after { right: 18px; }
.ov-chestbig .lid { position: absolute; left: 0; right: 0; top: 4px; z-index: 2; height: 30px; background: linear-gradient(#E59A3A, #C97A2B); border: 3px solid var(--ink); border-radius: 40px 40px 6px 6px; transform-origin: 6px 100%; }
.ov-chestbig .glow { position: absolute; left: 50%; top: 22px; z-index: 1; width: 80px; height: 30px; background: radial-gradient(ellipse, #fff7c2, rgb(255 184 0 / .8) 45%, transparent 70%); border-radius: 50%; transform: translateX(-50%) scale(0); }
.ov-chestbig.open .lid { transform: rotate(-38deg) translate(-4px, -6px); animation: lidOpen .7s .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.ov-chestbig.open .glow { transform: translateX(-50%) scale(1); animation: glowIn .7s .7s ease-out backwards; }
@keyframes lidOpen { from { transform: none; } }
@keyframes glowIn { from { transform: translateX(-50%) scale(0); } }
.ov-chest { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 3px; background: #fff; border: 2px solid var(--ink); border-radius: 99px; font-size: 13px; }
.ov-chest .zi { width: 20px; height: 18px; }
.ov-stats[data-n="3"], .ov-stats[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ov-stats > div.liar { background: #FFE1EC; }
.map.share { --c: 18px; gap: 2px; justify-self: center; padding: 5px; box-shadow: 0 3px 0 var(--ink); }
.map.share .cell { border-width: 1px; border-radius: 4px; box-shadow: none; }
.map.share .hole { width: 100%; height: 100%; border: 0; border-radius: 3px; } .map.share .hole .zi { width: 70%; height: 70%; }
.share-row { display: flex; justify-content: center; gap: 4px; margin: 0; }
.sq { width: 18px; height: 18px; background: var(--hc); border: 2px solid var(--ink); border-radius: 5px; } .sq.h0 { background: var(--gold); }
@media (max-height: 560px) { .ov-chestbig { display: none; } .map.share { --c: 12px; } }
/* como jogar: o mapa das dicas */
.how-grid { display: grid; justify-items: center; gap: 8px; margin: 4px 0 10px; }
.map.how { --c: clamp(18px, 6vw, 30px); gap: 2px; box-shadow: 0 3px 0 var(--ink); }
.map.how .hole { width: 100%; height: 100%; border-width: 1.5px; } .map.how .hole .zi { width: 60%; height: 60%; }
.map.how .cell { border-width: 1px; box-shadow: none; }
.thermo.in-modal { margin: 0; }
.modal-card ol[start] { margin-top: 0; }

/* celular em pé (v1.276.6): o mapa cabe no espaço de verdade (fitMap no game.js) e nada fica por cima de nada */
.arena > .board, .arena > .mine { flex: none; }
.arena.tight { overflow-y: auto; }
body[data-mode="live"] .board { padding-bottom: 10px; }
.mine > .reacts-mini { grid-area: r; position: static; display: flex; flex-wrap: wrap; gap: 4px; }
.mine > .reacts-mini[hidden] { display: none; }
.mine > .reacts-mini button { width: 32px; height: 32px; padding: 3px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 11px; }
.mine > .reacts-mini button:active { transform: scale(.88); }
.mine:has(> .reacts-mini:not([hidden])) { grid-template-areas: "h h" "m t" "m r"; }
@media (orientation: landscape) and (min-width: 700px) { #play .mine:has(> .reacts-mini:not([hidden])) { grid-template-areas: "h" "m" "t" "r"; } #play .mine > .reacts-mini { justify-content: center; } }
@media (max-height: 560px) and (orientation: landscape) { body[data-mode="live"] .board { padding-bottom: 6px; } #play .mine:has(> .reacts-mini:not([hidden])) { grid-template-areas: "h h" "m t" "m r"; } #play .mine > .reacts-mini { justify-content: flex-start; } .mine > .reacts-mini button { width: 28px; height: 28px; } }
@media (orientation: portrait) {
  #play .thermo { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; width: 100%; }
  #play .th { flex-direction: column; justify-content: center; gap: 1px; padding: 3px 1px 2px; border-radius: 10px; font-size: 10px; }
  #play .th i { width: 18px; height: 18px; }
  .arena.snug .mine { padding: 6px 10px; gap: 4px 10px; }
  .arena.snug .mine .map { --c: 8px; gap: 1px; padding: 3px; }
  .arena.snug .mine-sub { font-size: 12px; line-height: 1.4; }
}
