/* Zovy Desenha e Adivinha — "ateliê neon": fundo escuro do Zovy com rabiscos que se desenham sozinhos, quadro de papel com fita adesiva,
   tampinhas de canetinha, lápis que encolhe com o tempo, post-its para escolher a palavra e o varal de desenhos no fim.
   Funciona no celular em pé, deitado (tela baixa) e no computador. */
:root { --ink: #1E1338; --violet: #7C4DFF; --lime: #C6F432; --pink: #FF4FA3; --cyan: #2EE6FF; --gold: #FFB800; --sun: #FFD23F; --orange: #FF8A3D; --red: #FF3B5C; --soft: #cdbfff;
  --paper: #FFFDF6; --wood: #F3C99B; --lilac: #F4F0FF; --muted: #6b5f8f;
  --disp: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; --hand: "Caveat", "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, textarea { font: inherit; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; overflow: hidden;
  background: radial-gradient(circle at 92% 4%, rgb(46 230 255 / .18), transparent 38%), radial-gradient(circle at 4% 96%, rgb(255 79 163 / .26), transparent 44%), radial-gradient(circle at 50% 50%, rgb(124 77 255 / .22), transparent 60%), linear-gradient(160deg, #2b1670 0%, #1c0f48 55%, #110a2a 100%); }
#app::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 28px 28px; }
.screen { position: absolute; inset: 0; z-index: 1; 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); } }

/* rabiscos que se desenham sozinhos */
.doodles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.doodles svg { position: absolute; width: var(--s); height: var(--s); opacity: .32; transform: rotate(var(--r)); animation: drift calc(var(--d) * 3) ease-in-out infinite alternate; animation-delay: var(--w); }
.doodles path { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: scribble var(--d) ease-in-out infinite; animation-delay: var(--w); }
@keyframes scribble { 0% { stroke-dashoffset: 100; } 40%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes drift { to { translate: 18px -26px; rotate: 14deg; } }
#play ~ .doodles, body.in-game .doodles { opacity: .5; }

/* ---------- 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, .tool:focus-visible, .cap:focus-visible, .size:focus-visible, .note:focus-visible, .pl: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.cyan { background: var(--cyan); }
.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%; }
.btn.big .t { font: 800 21px/1.1 var(--disp); }
.btn.big small { font: 700 13px/1.2 var(--ui); opacity: .8; }
.btn .zi { width: 1.1em; height: 1.1em; } .btn.big .ico .zi { width: 20px; height: 20px; }
.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); }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 12px; } .icon-btn.sm .zi { width: 19px; height: 19px; }
.mini-btn { display: inline-flex; align-items: center; gap: 5px; 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 .zi { width: 14px; height: 14px; }
.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: var(--muted); 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); }
.pill .zi { width: 14px; height: 14px; vertical-align: -.18em; }
input[type=text], input:not([type]), textarea { width: 100%; min-width: 0; padding: 11px 14px; color: var(--ink); background: var(--lilac); border: 3px solid var(--ink); border-radius: 14px; font: 700 16px/1.25 var(--ui); outline: none; }
input:focus, textarea:focus { background: #fff; box-shadow: 0 0 0 3px var(--cyan); }
input:disabled { opacity: .6; }
textarea { resize: vertical; min-height: 64px; }
.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; }
.hand { font-family: var(--hand); font-weight: 700; }
.soft { color: var(--soft); font-weight: 700; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
@keyframes slam { from { transform: scale(2.4) rotate(14deg); opacity: 0; } }

/* fita adesiva (washi) */
.tape { position: absolute; z-index: 5; width: 92px; height: 26px; pointer-events: none; background: repeating-linear-gradient(90deg, rgb(198 244 50 / .78) 0 8px, rgb(178 226 30 / .78) 8px 16px); box-shadow: 0 2px 4px rgb(0 0 0 / .18); clip-path: polygon(3% 0, 97% 8%, 100% 92%, 2% 100%, 0 48%); }
.tape.t1 { top: -12px; left: -22px; transform: rotate(-32deg); }
.tape.t2 { top: -12px; right: -22px; transform: rotate(30deg); background: repeating-linear-gradient(90deg, rgb(255 79 163 / .75) 0 8px, rgb(255 130 190 / .75) 8px 16px); }

/* ---------- menu ---------- */
.top { display: flex; align-items: center; gap: 10px; flex: none; position: relative; z-index: 2; }
.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: 18px; width: 100%; max-width: 1060px; margin: 0 auto; padding: 10px 0; }
.hero { display: grid; justify-items: center; gap: 14px; text-align: center; }
.title { display: grid; justify-items: center; margin: 4px 0 0; line-height: 1; }
.title .t1 { display: flex; gap: clamp(1px, .6vw, 6px); }
.title .t1 span { display: inline-block; font: 800 clamp(46px, 12.5vw, 96px)/.95 var(--disp); color: var(--c, var(--lime)); -webkit-text-stroke: clamp(2px, .5vw, 4px) var(--ink); paint-order: stroke fill; text-shadow: 0 clamp(4px, 1vw, 7px) 0 var(--ink);
  transform: rotate(var(--rot)); animation: letterIn .7s cubic-bezier(.2, 1.6, .4, 1) backwards, bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .07s), calc(var(--i) * .18s + .8s); }
.title .c-lime { --c: var(--lime); } .title .c-pink { --c: var(--pink); } .title .c-cyan { --c: var(--cyan); } .title .c-gold { --c: var(--sun); } .title .c-violet { --c: #a98bff; } .title .c-orange { --c: var(--orange); }
@keyframes letterIn { from { opacity: 0; transform: translateY(-70px) rotate(40deg) scale(.3); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.title .t2 { position: relative; margin-top: -2px; padding: 0 10px 8px; font: 700 clamp(34px, 8.5vw, 62px)/1 var(--hand); color: #fff; transform: rotate(-3deg); text-shadow: 0 4px 0 var(--ink); }
.title .t2 svg { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 16px; overflow: visible; }
.title .t2 path { fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: underline 1s .9s ease-out forwards; }
@keyframes underline { to { stroke-dashoffset: 0; } }
.easel { position: relative; width: min(100%, 440px); margin: 6px auto 0; }
.easel-paper { position: relative; aspect-ratio: 4 / 3; background: #fff; border: 4px solid var(--ink); border-radius: 12px; box-shadow: 0 9px 0 var(--ink), 0 0 60px rgb(198 244 50 / .18); transform: rotate(-2deg); container-type: size; }
.easel-paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; }
.demo-pencil { position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; pointer-events: none; transition: transform .05s linear; }
.demo-pencil svg { position: absolute; left: -4px; bottom: -4px; width: 64px; height: 64px; filter: drop-shadow(3px 4px 0 rgb(30 19 56 / .25)); }
.demo-chat { position: absolute; right: -8px; bottom: -18px; z-index: 4; display: grid; justify-items: end; gap: 6px; width: min(72%, 260px); transform: rotate(2deg); }
.dc { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 12px 4px 4px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); font: 700 14px/1.2 var(--ui); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.dc img { width: 26px; height: 26px; flex: none; background: var(--lilac); border: 2px solid var(--ink); border-radius: 50%; }
.dc b { margin-right: 2px; }
.dc.win { background: var(--lime); font-weight: 800; }
.dc.win .zi { width: 18px; height: 18px; }
.tag { max-width: 480px; margin: 18px auto 0; color: #e6dcff; font-size: clamp(15px, 3.8vw, 18px); }
.tag b { color: var(--lime); }
.menu-side { display: grid; gap: 12px; align-content: center; }
.me-card { display: flex; align-items: center; gap: 14px; }
.av-big { position: relative; flex: none; width: 76px; height: 76px; padding: 0; background: var(--lilac); 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%; }
.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: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.me-fields small { color: var(--muted); font-size: 12px; }
.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(3, 1fr); gap: 8px; }
.menu-row .btn { padding: 9px 6px; }
@media (min-width: 900px) {
  .menu-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; column-gap: 40px; }
}

/* ---------- 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; color: #fff; background: repeating-linear-gradient(-45deg, rgb(255 255 255 / .06) 0 12px, transparent 12px 24px), var(--violet); }
.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: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 6px 0 var(--ink); font: 700 clamp(44px, 12vw, 64px)/1 var(--hand); animation: tileIn .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.code-tiles span:nth-child(odd) { transform: rotate(-4deg); } .code-tiles span:nth-child(even) { transform: rotate(3deg); }
.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 { 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: var(--lilac); 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%; }
.players .kick .zi { width: 12px; height: 12px; }
.players .kick:hover { color: #fff; background: var(--red); }
.players .tagme { font-size: 11px; color: var(--muted); }
.settings { display: grid; gap: 12px; }
.set-block { display: grid; gap: 6px; min-width: 0; }
.set-block > small { color: var(--muted); font: 800 12px/1 var(--ui); letter-spacing: .08em; }
.set-block > small .opt { font-weight: 700; letter-spacing: 0; text-transform: none; opacity: .8; }
.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(3, minmax(0, 1fr)); gap: 6px; }
.packs button { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; color: var(--ink); background: var(--lilac); border: 2px solid var(--ink); border-radius: 14px; font: 800 13px/1.1 var(--ui); text-align: left; }
.packs .pk-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 9px; }
.packs .pk-ic .zi { width: 16px; height: 16px; }
.packs button.on .pk-ic { background: var(--lime); }
.packs button.on { background: var(--gold); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.seg { display: flex; padding: 3px; background: var(--lilac); 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); white-space: nowrap; }
.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 input:disabled + span { opacity: .45; }
.switch b { font-size: 14px; } .switch small { color: var(--muted); font-size: 12px; }
.extras { padding: 10px; background: #FFF8DD; border: 2px dashed #d9b14a; border-radius: 16px; }
.extras textarea { min-height: 60px; font-size: 16px; }
.extras-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.extras-info { color: var(--muted); font-size: 12px; font-weight: 800; }
.switch.mini span { width: 44px; height: 24px; } .switch.mini span::after { width: 16px; height: 16px; } .switch.mini input:checked + span::after { transform: translateX(20px); }
.rules-view { display: grid; gap: 8px; }
.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); } }

/* ================= partida ================= */
#play { padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.play-grid { --rsv: 350px; flex: 1; min-height: 0; display: grid; gap: 8px; width: 100%; max-width: 1480px; margin: 0 auto;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto minmax(96px, 1fr);
  grid-template-areas: "top" "word" "plist" "stage" "tools" "chat"; }
body.drawing .play-grid { --rsv: 392px; grid-template-rows: auto auto auto auto auto minmax(70px, 1fr); }
.play-top { grid-area: top; display: flex; align-items: center; gap: 8px; min-width: 0; }
.round-tag { flex: none; padding: 5px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 11px/1.2 var(--ui); letter-spacing: .08em; white-space: nowrap; }

/* lápis que encolhe = tempo */
.pencil { --f: 1; flex: 1; min-width: 0; display: flex; align-items: center; height: 32px; filter: drop-shadow(0 3px 0 var(--ink)); }
.p-eraser { flex: none; width: 20px; height: 28px; background: var(--pink); border: 3px solid var(--ink); border-right: 0; border-radius: 9px 0 0 9px; }
.p-band { flex: none; width: 14px; height: 28px; background: repeating-linear-gradient(90deg, #dfe4f0 0 3px, #9aa3b8 3px 5px); border-block: 3px solid var(--ink); }
.p-body { position: relative; flex: none; width: calc(30px + (100% - 98px) * var(--f)); height: 28px; background: linear-gradient(#ffe066 0 34%, #ffcf2e 34% 67%, #f2b705 67%); border-block: 3px solid var(--ink); transition: width .25s linear; }
.p-body b { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); color: var(--ink); font: 800 15px/1 var(--disp); font-variant-numeric: tabular-nums; }
.p-tip { position: relative; flex: none; width: 34px; height: 28px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.p-tip i { position: absolute; inset: 3px 4px 3px 0; background: var(--wood); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.p-tip::after { content: ""; position: absolute; right: 0; top: 50%; width: 11px; height: 9px; background: #3a3550; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateY(-50%); }
.pencil.danger .p-body { background: linear-gradient(#ff8fa3 0 34%, #ff5c7a 34% 67%, #e8344f 67%); }
.pencil.danger { animation: wiggle .5s infinite; }
@keyframes wiggle { 25% { transform: rotate(-1.2deg); } 75% { transform: rotate(1.2deg); } }

/* palavra (ou a máscara de letras) */
.wordbar { grid-area: word; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; min-height: 48px; padding: 6px 12px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); text-align: center; }
.wb-l { display: inline-flex; align-items: center; gap: 6px; font: 800 13px/1.1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wb-l .zi { width: 17px; height: 17px; }
.wb-w { font: 700 clamp(30px, 6vw, 40px)/1 var(--hand); letter-spacing: .02em; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.wb-s { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font: 800 11px/1.2 var(--ui); background: rgb(255 255 255 / .55); border: 2px solid var(--ink); border-radius: 99px; }
.wb-s .zi { width: 13px; height: 13px; }
.wordbar.me { background: var(--sun); } .wordbar.me .wb-l { color: var(--ink); }
.wordbar.got { background: var(--lime); } .wordbar.got .wb-l { color: var(--ink); }
.wordbar.rev { background: var(--cyan); } .wordbar.rev .wb-l { color: var(--ink); }
.wordbar.imp { color: #fff; background: var(--pink); } .wordbar.imp .wb-l { color: #fff; } .wordbar.imp .wb-s { color: var(--ink); background: #fff; }
.rv-why .imp-av { width: 20px; height: 20px; margin-right: 2px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; vertical-align: -5px; }
.tiles { --tw: clamp(15px, 4.4vw, 24px); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.tw { display: flex; gap: 3px; }
.tw i { display: block; width: var(--tw); height: calc(var(--tw) * 1.3); border-bottom: 4px solid var(--ink); border-radius: 2px; font: 800 calc(var(--tw) * 1.05)/calc(var(--tw) * 1.3) var(--disp); font-style: normal; text-align: center; }
.tw i.on { color: var(--violet); border-bottom-color: var(--violet); animation: letterFlip .5s cubic-bezier(.2, 1.6, .4, 1); }
.tw i.dash { border: 0; color: var(--muted); }
@keyframes letterFlip { from { transform: rotateX(90deg) scale(1.4); } }
.wb-n { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; color: #fff; background: var(--violet); border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1 var(--ui); }

/* jogadores */
.plist { grid-area: plist; display: flex; gap: 6px; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 7px; scrollbar-width: none; }
.plist::-webkit-scrollbar { display: none; }
.pl { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); text-align: left; transition: background .2s, transform .12s; }
.pl .pos { display: none; }
.pl .av { position: relative; flex: none; }
.pl img { display: block; width: 30px; height: 30px; background: var(--lilac); border: 2px solid var(--ink); border-radius: 50%; }
.pl .st { position: absolute; right: -6px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 50%; }
.pl .st .zi { width: 11px; height: 11px; }
.pl.dr .st { background: var(--sun); }
.pl .nm { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 13px/1.1 var(--ui); }
.pl .nm small { color: var(--muted); font-weight: 700; } .pl .nm .zi { width: 12px; height: 12px; color: var(--muted); }
.pl .pt { font: 800 15px/1 var(--disp); color: var(--violet); font-variant-numeric: tabular-nums; }
.pl.got { background: var(--lime); } .pl.got .pt { color: var(--ink); }
.pl.dr { background: #FFF0B8; }
.pl.off { opacity: .45; }
.pl.me { outline: 2px dashed #fff; outline-offset: 2px; }
.pl.flash { animation: plFlash .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes plFlash { 30% { transform: scale(1.12) rotate(-3deg); background: var(--lime); } }
.plus { position: absolute; top: -12px; right: 4px; z-index: 2; color: var(--lime); font: 800 18px/1 var(--disp); text-shadow: 0 2px 0 var(--ink), 0 0 6px var(--ink); pointer-events: none; animation: plusUp 1.4s ease-out forwards; }
@keyframes plusUp { from { transform: translateY(8px) scale(.6); opacity: 0; } 20% { transform: none; opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }

/* o quadro */
.stage { grid-area: stage; position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; }
.paper { position: relative; width: min(100%, calc((100dvh - var(--rsv)) * 4 / 3)); min-width: 180px; aspect-ratio: 4 / 3; background: #fff; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 7px 0 var(--ink), 0 0 0 7px rgb(255 255 255 / .07); container-type: inline-size; }
.paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; touch-action: none; }
#ink { pointer-events: none; }
#board.can { cursor: crosshair; }
@media (hover: hover) and (pointer: fine) { #board.can[data-tool="pen"], #board.can[data-tool="eraser"] { cursor: none; } }
#board.can[data-tool="fill"] { cursor: cell; }
.brush-dot { position: absolute; left: 0; top: 0; z-index: 3; translate: -50% -50%; pointer-events: none; opacity: 0; background: var(--bc); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; }
.brush-dot.on { opacity: 1; }
.brush-dot.fill { width: 22px !important; height: 22px !important; background: transparent; border-style: dashed; }
.paper-actions { position: absolute; top: 8px; right: 8px; z-index: 5; display: flex; gap: 6px; }
.paper-actions .mini-btn { box-shadow: 0 3px 0 var(--ink); padding: 5px 10px; }
.mini-btn.heart.on { background: var(--pink); color: #fff; }
.mini-btn.flag { color: #b4123a; } .mini-btn.flag.on { background: var(--red); color: #fff; }
.heartfx { position: absolute; bottom: 14%; z-index: 6; width: 42px; height: 42px; color: var(--pink); pointer-events: none; filter: drop-shadow(0 3px 0 var(--ink)); animation: heartUp 1.3s ease-out forwards; }
.heartfx .zi { width: 100%; height: 100%; }
@keyframes heartUp { from { transform: scale(.3); opacity: 0; } 20% { transform: scale(1.2); opacity: 1; } to { transform: translateY(-140px) scale(.8) rotate(-12deg); opacity: 0; } }

/* camadas sobre o quadro: escolher a palavra, esperar e a revelação */
.ov { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; overflow: hidden; border-radius: 10px; }
.ov.choose { background: radial-gradient(circle at 50% 40%, rgb(255 255 255 / .94), rgb(240 234 255 / .97)); }
.ov-box { display: grid; justify-items: center; gap: clamp(6px, 2cqw, 14px); padding: 12px; color: var(--ink); text-align: center; }
.ov-box > small { color: var(--violet); font: 800 12px/1 var(--ui); letter-spacing: .16em; }
.ov-box h3 { margin: 0; font: 800 clamp(18px, 4.4cqw, 32px)/1.1 var(--disp); }
.ov-box h3.hand { font: 700 clamp(36px, 9cqw, 72px)/1 var(--hand); }
.ov-tip { margin: 0; color: var(--muted); font: 700 clamp(12px, 2.4cqw, 15px)/1.3 var(--ui); }
.notes { display: flex; justify-content: center; gap: clamp(8px, 3cqw, 22px); flex-wrap: wrap; padding-top: 8px; }
.note { position: relative; display: grid; place-content: center; gap: 4px; width: clamp(90px, 26cqw, 200px); min-height: clamp(76px, 20cqw, 150px); padding: 18px 10px 12px; color: var(--ink); border: 0; border-radius: 3px 3px 18px 3px; box-shadow: 0 12px 14px -8px rgb(0 0 0 / .4), inset 0 -10px 18px -12px rgb(0 0 0 / .25);
  transform: rotate(var(--r)); animation: noteIn .55s cubic-bezier(.2, 1.5, .4, 1) backwards; transition: transform .18s cubic-bezier(.2, 1.6, .4, 1); }
.note.n0 { --r: -5deg; background: #FFEA70; } .note.n1 { --r: 3deg; background: #A6F6FF; animation-delay: .08s; } .note.n2 { --r: -2deg; background: #FFBFE0; animation-delay: .16s; }
.note b { font: 700 clamp(22px, 5.4cqw, 38px)/1 var(--hand); word-break: break-word; }
.note small { font: 800 11px/1 var(--ui); opacity: .6; }
.note .pin { position: absolute; top: -9px; left: 50%; width: 20px; height: 20px; background: radial-gradient(circle at 35% 35%, #ff8aa0, var(--red)); border: 2px solid var(--ink); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 3px 0 rgb(0 0 0 / .3); }
.note:hover { transform: rotate(0) translateY(-6px) scale(1.05); }
.note:active { transform: scale(.96); }
.note.picked { animation: notePick .5s forwards; }
@keyframes noteIn { from { transform: translateY(-60px) rotate(25deg); opacity: 0; } }
@keyframes notePick { 40% { transform: scale(1.15) rotate(0); } to { transform: scale(1.1) rotate(0); box-shadow: 0 0 0 5px var(--lime), 0 12px 14px -8px rgb(0 0 0 / .4); } }
.chooser { position: relative; width: clamp(64px, 18cqw, 110px); }
.chooser img { width: 100%; aspect-ratio: 1; background: var(--lilac); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 6px 0 var(--ink); }
.pen-bob { position: absolute; right: -18%; top: -14%; display: grid; place-items: center; width: 46%; aspect-ratio: 1; color: var(--ink); background: var(--sun); border: 3px solid var(--ink); border-radius: 50%; animation: penBob .8s ease-in-out infinite alternate; }
.pen-bob .zi { width: 60%; height: 60%; }
@keyframes penBob { from { transform: rotate(-18deg) translateY(2px); } to { transform: rotate(14deg) translateY(-4px); } }
.ov.reveal { place-items: start center; pointer-events: none; }
.rv-ribbon { position: relative; z-index: 2; display: grid; justify-items: center; margin-top: 4%; padding: 8px clamp(16px, 5cqw, 34px) 10px; color: var(--ink); background: var(--sun); border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 7px 0 var(--ink); transform: rotate(-2deg); animation: slam .5s cubic-bezier(.2, 1.6, .4, 1); }
.rv-ribbon small { font: 800 11px/1 var(--ui); letter-spacing: .16em; }
.rv-ribbon b { font: 700 clamp(34px, 9cqw, 72px)/1 var(--hand); }
.rv-why { font: 800 12px/1.2 var(--ui); opacity: .75; }
.rv-chips { position: absolute; left: 6px; right: 6px; bottom: 8px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rc { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 3px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 15px/1 var(--disp); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.rc img { width: 26px; height: 26px; background: var(--lilac); border: 2px solid var(--ink); border-radius: 50%; }
.rc .zi { width: 14px; height: 14px; }
.rc.dr { background: var(--sun); }
.rc .first { padding: 1px 5px; color: #fff; background: var(--violet); border-radius: 99px; font: 800 10px/1.3 var(--ui); font-style: normal; }
.curtain { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff; text-align: center; background: repeating-linear-gradient(45deg, #2c1b62 0 18px, #23154f 18px 36px); }
.curtain b { font: 800 22px/1.1 var(--disp); } .curtain small { color: var(--soft); font-weight: 700; }
.stamp { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 6px; pointer-events: none; opacity: 0; }
.stamp b { padding: 8px 22px; color: var(--ink); background: var(--lime); border: 5px solid var(--ink); border-radius: 16px; box-shadow: 0 8px 0 var(--ink); font: 800 clamp(26px, 8cqw, 64px)/1 var(--disp); white-space: nowrap; transform: rotate(-8deg); }
.stamp small { padding: 2px 14px; color: #fff; background: var(--violet); border: 3px solid var(--ink); border-radius: 99px; font: 800 clamp(18px, 4cqw, 28px)/1.2 var(--disp); }
.stamp.on { animation: stampIn 1.8s forwards; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2.6) rotate(10deg); } 14% { opacity: 1; transform: scale(.94); } 22% { transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.9); } }

/* ferramentas */
.tools { grid-area: tools; display: grid; gap: 6px; padding: 7px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); animation: screenIn .3s; }
.colors { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px 5px; }
.cap { position: relative; width: 100%; max-width: 34px; aspect-ratio: 1; justify-self: center; padding: 0; background: var(--cc); border: 2.5px solid var(--ink); border-radius: 50%; box-shadow: 0 2px 0 var(--ink); transition: transform .15s cubic-bezier(.2, 1.6, .4, 1), box-shadow .15s; }
.cap i { position: absolute; top: 16%; left: 20%; width: 30%; height: 22%; background: rgb(255 255 255 / .55); border-radius: 50%; transform: rotate(-30deg); }
.cap:hover { transform: translateY(-2px); }
.cap.on { z-index: 1; transform: translateY(-3px) scale(1.14); box-shadow: 0 3px 0 var(--ink), 0 0 0 3px #fff, 0 0 0 5.5px var(--ink); }
.tool-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.seg-tools, .tool-acts { display: flex; gap: 4px; }
.tool { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--ink); background: var(--lilac); border: 2px solid var(--ink); border-radius: 12px; transition: transform .12s, background .15s; }
.tool .zi { width: 20px; height: 20px; }
.tool.on { background: var(--lime); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.tool:active { transform: translateY(1px); }
.tool.danger:hover { color: #fff; background: var(--red); }
.sizes { display: flex; align-items: center; gap: 2px; height: 38px; padding: 0 4px; background: var(--lilac); border: 2px solid var(--ink); border-radius: 12px; }
.size { display: grid; place-items: center; width: 28px; height: 30px; padding: 0; background: none; border: 0; border-radius: 9px; }
.size i { display: block; width: var(--d); height: var(--d); max-width: 22px; max-height: 22px; background: var(--ink); border-radius: 50%; }
.size.on { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }

/* palpites (chat) */
.chat { grid-area: chat; display: flex; flex-direction: column; min-height: 0; overflow: hidden; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex: none; padding: 5px 6px 5px 12px; background: var(--lilac); border-bottom: 2px solid var(--ink); }
.chat-head b { display: inline-flex; align-items: center; gap: 6px; font: 800 15px/1 var(--disp); }
.chat-head .reacts { display: flex; gap: 2px; }
.chat-head .reacts button { width: 30px; height: 30px; padding: 2px; background: none; border: 0; border-radius: 9px; transition: transform .12s; }
.chat-head .reacts button:hover { background: #fff; transform: translateY(-2px) rotate(-6deg); }
.reacts button.boing { animation: boing .45s cubic-bezier(.2, 1.8, .4, 1); } @keyframes boing { 30% { transform: scale(1.2) rotate(4deg); } }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 6px; overscroll-behavior: contain; }
.chat-list > :first-child { margin-top: auto; }
.ln { display: flex; align-items: center; gap: 6px; flex: none; padding: 3px 8px 3px 3px; border-radius: 12px; font: 600 14px/1.25 var(--ui); animation: lnIn .22s ease-out; }
@keyframes lnIn { from { transform: translateY(6px); opacity: 0; } }
.ln img { flex: none; width: 24px; height: 24px; background: var(--lilac); border: 2px solid var(--ink); border-radius: 50%; }
.ln span { min-width: 0; overflow-wrap: anywhere; } .ln b { font-weight: 800; }
.ln.me { background: var(--lilac); }
.ln.g { background: #ECFBCB; } .ln .gtag { margin-left: auto; color: #3a7d00; } .ln .gtag .zi { width: 14px; height: 14px; }
.ln.ok { padding: 4px 8px 4px 4px; background: var(--lime); border: 2px solid var(--ink); font-weight: 800; animation: okIn .45s cubic-bezier(.2, 1.6, .4, 1); }
.ln.ok > .zi { margin-left: auto; width: 18px; height: 18px; }
@keyframes okIn { from { transform: scale(.7); opacity: 0; } }
.ln.sys { justify-content: center; padding: 3px 4px; color: var(--muted); font: 800 12px/1.2 var(--ui); background: none; }
.ln.sys .zi { width: 14px; height: 14px; } .ln.sys b { color: var(--ink); }
.ln.almost { color: #7a4c00; background: #FFF1C2; border: 2px dashed #c48a00; animation: okIn .4s cubic-bezier(.2, 1.6, .4, 1); }
.ln.almost > .zi { flex: none; width: 18px; height: 18px; color: var(--orange); }
.ln.ghost { color: var(--muted); font-style: italic; opacity: .75; }
.ln.ghost .dots i { width: 5px; height: 5px; }
.guess-form { display: flex; gap: 6px; flex: none; padding: 7px; background: #fff; border-top: 2px solid var(--ink); }
.guess-form input { padding: 9px 12px; font: 700 16px/1.2 var(--ui); border-width: 2.5px; }
.guess-form .btn { flex: none; padding: 8px 14px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }

/* computador: jogadores à esquerda, quadro no meio, palpites à direita */
@media (min-width: 900px) and (min-height: 521px) {
  .play-grid, body.drawing .play-grid { grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) minmax(250px, 310px); grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 14px;
    grid-template-areas: "plist top chat" "plist word chat" "plist stage chat" "plist tools chat"; }
  .stage { container-type: size; }
  .paper { width: min(100cqw, calc(100cqh * 4 / 3)); min-width: 0; }
  .plist { flex-direction: column; overflow-x: hidden; overflow-y: auto; padding: 4px 4px 8px; scrollbar-width: thin; }
  .pl { width: 100%; padding: 6px 10px 6px 6px; border-radius: 16px; }
  .pl .pos { display: grid; place-items: center; flex: none; width: 22px; color: var(--muted); font: 800 14px/1 var(--disp); }
  .pl img { width: 36px; height: 36px; }
  .pl .nm { flex: 1; max-width: none; }
  .tools { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .colors { max-width: 380px; }
  .tool-row { justify-content: flex-end; flex-wrap: wrap; }
  .tool { width: 42px; height: 42px; } .sizes { height: 42px; } .size { width: 32px; }
}
@media (min-width: 1200px) and (min-height: 521px) { .tools { grid-template-columns: 1fr; justify-items: center; } .colors { grid-template-columns: repeat(20, 30px); max-width: none; } }

/* celular deitado e telas baixas: quadro à esquerda, o resto à direita */
@media (max-height: 520px) and (min-width: 560px) {
  #play { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .play-grid, body.drawing .play-grid { gap: 6px 10px; grid-template-columns: auto minmax(220px, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    grid-template-areas: "stage top" "stage word" "stage plist" "stage chat" "stage tools"; }
  .stage { width: min(60vw, calc((100dvh - 26px) * 4 / 3)); height: 100%; }
  .paper { width: 100%; min-width: 0; border-width: 3px; }
  .pencil { height: 26px; } .p-eraser, .p-band, .p-body, .p-tip { height: 22px; } .p-body b { font-size: 13px; }
  .wordbar { min-height: 38px; padding: 3px 10px; border-radius: 14px; } .wb-w { font-size: 28px; } .tiles { --tw: clamp(12px, 2.2vw, 19px); }
  .pl { padding: 2px 8px 2px 2px; } .pl img { width: 24px; height: 24px; } .pl .nm { max-width: 56px; font-size: 12px; }
  body.drawing .plist { display: none; }
  .tools { padding: 5px; gap: 4px; border-radius: 14px; }
  .cap { max-width: 26px; } .colors { gap: 3px; }
  .tool { width: 32px; height: 32px; border-radius: 10px; } .tool .zi { width: 17px; height: 17px; } .sizes { height: 32px; } .size { width: 24px; height: 26px; }
  .chat-head { padding: 3px 4px 3px 10px; } .chat-head .reacts button { width: 26px; height: 26px; }
  .guess-form { padding: 5px; } .guess-form input { padding: 7px 10px; }
  .ln { font-size: 13px; }
  .round-tag { display: none; }
  .note { min-height: 64px; padding: 14px 8px 8px; }
}
/* celular em pé bem pequeno */
@media (max-width: 400px) {
  .tool { width: 34px; height: 34px; } .size { width: 24px; } .sizes { height: 34px; padding: 0 2px; }
  .tool-row { gap: 4px; }
  .pencil .p-band { width: 10px; }
}

/* ---------- final ---------- */
#final { overflow-y: auto; }
.final-wrap { width: 100%; max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 10px; }
.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); }
.final-title .zi { width: .9em; height: .9em; vertical-align: -.08em; color: var(--gold); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 18px); min-height: 240px; 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: 140px; 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: 100px; background: #e3e8f5; animation-delay: .5s; } .pod.p2 img { animation-delay: 1.1s; }
.pod.p3 .step { height: 72px; 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; }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes popUp { from { transform: translateY(40px) scale(.3); opacity: 0; } }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.awards:empty { display: none; }
.aw { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.aw.a1 { background: linear-gradient(110deg, var(--sun), #ffeaa0); } .aw.a2 { background: #A6F6FF; animation-delay: .1s; } .aw.a3 { background: var(--lime); animation-delay: .2s; }
.aw-art { flex: none; width: 92px; aspect-ratio: 4 / 3; background: #fff; border: 3px solid var(--ink); border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 4px 0 rgb(0 0 0 / .25); }
.aw-av { flex: none; width: 52px; height: 52px; background: #fff; border: 3px solid var(--ink); border-radius: 50%; }
.aw div { min-width: 0; }
.aw small { display: flex; align-items: center; gap: 4px; font: 800 11px/1.2 var(--ui); letter-spacing: .08em; } .aw small .zi { width: 14px; height: 14px; }
.aw b { display: block; overflow: hidden; font: 800 20px/1.15 var(--disp); text-overflow: ellipsis; white-space: nowrap; }
.aw span { font-size: 13px; font-weight: 700; }
.gallery-card { padding: 14px 14px 6px; background: radial-gradient(circle at 50% 0, rgb(198 244 50 / .12), transparent 60%), #241554; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); }
.gal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gal-head h3 { margin: 0; font: 800 22px/1.1 var(--disp); } .gal-head h3 .zi { color: var(--lime); }
.gal-head small { color: var(--soft); font-size: 12px; font-weight: 700; }
.varal { display: flex; gap: 22px; overflow-x: auto; padding: 40px 12px 22px; scroll-snap-type: x proximity;
  background: linear-gradient(#d8b878, #a8874c) 0 24px / 100% 5px no-repeat local; }
.varal > p { margin: 0 auto; }
.rope { display: none; }
.pola { position: relative; flex: none; width: 214px; margin: 0; padding: 10px 10px 8px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 9px 0 rgb(0 0 0 / .35); scroll-snap-align: center;
  transform-origin: 50% -18px; rotate: var(--r); animation: hangIn .7s cubic-bezier(.2, 1.4, .4, 1) backwards, swing 3.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * .12s), calc(var(--i) * -.8s); }
@keyframes hangIn { from { transform: translateY(-60px) rotate(20deg); opacity: 0; } }
@keyframes swing { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
.peg { position: absolute; top: -26px; left: 50%; width: 14px; height: 34px; background: linear-gradient(90deg, #e9c58f, #c99a5b); border: 2px solid var(--ink); border-radius: 4px; transform: translateX(-50%); }
.pola img { display: block; width: 100%; aspect-ratio: 4 / 3; background: #fff; border: 2px solid var(--ink); }
.pola figcaption { display: grid; justify-items: center; margin-top: 6px; text-align: center; }
.pola figcaption b { max-width: 100%; overflow: hidden; font: 700 30px/1 var(--hand); text-overflow: ellipsis; white-space: nowrap; }
.pola figcaption small { color: var(--muted); font: 700 12px/1.3 var(--ui); }
.pola-acts { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.pola-acts .likes { display: inline-flex; align-items: center; gap: 4px; color: var(--pink); font: 800 13px/1 var(--ui); } .pola-acts .likes .zi { width: 15px; height: 15px; }
.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: var(--lilac); 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: var(--muted); } .reward .gold { color: #b47a00; font-weight: 800; }
.reward p .zi { width: 18px; height: 18px; vertical-align: -.25em; }
.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 e janelas ---------- */
.fx { position: absolute; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.float { position: absolute; bottom: 90px; 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 .t-ic .zi { width: 16px; height: 16px; }
.toast.ic-alert .t-ic, .toast.ic-lock .t-ic, .toast.ic-exit .t-ic, .toast.ic-flag .t-ic { color: #fff; background: var(--red); }
.toast.ic-crown .t-ic, .toast.ic-party .t-ic, .toast.ic-clock .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 { display: flex; align-items: center; gap: 8px; margin: 0 40px 12px 0; font: 800 26px/1.1 var(--disp); }
.modal-card h2 > .zi { color: var(--gold); }
.modal-card .mh-av { width: 40px; height: 40px; background: var(--lilac); border: 2px solid var(--ink); border-radius: 50%; }
.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; padding: 6px 10px; color: var(--ink); background: var(--lilac); 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: 12px; background: var(--ink); color: var(--soft); font-weight: 700; transition: opacity .3s; }
.boot.gone { opacity: 0; pointer-events: none; }
.boot-pencil { display: grid; place-items: center; width: 76px; height: 76px; color: var(--ink); background: var(--sun); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 6px 0 #000; animation: penBob .6s ease-in-out infinite alternate; }
.boot .err { max-width: 420px; padding: 0 16px; text-align: center; color: #fff; } .boot .err .zi { color: var(--red); }

/* ---------- telas baixas (celular deitado): menu e sala ---------- */
@media (max-height: 520px) {
  .menu-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 18px; padding: 2px 0; }
  .hero { gap: 4px; align-self: start; } .title .t1 span { font-size: 40px; -webkit-text-stroke-width: 2px; text-shadow: 0 4px 0 var(--ink); } .title .t2 { font-size: 28px; padding-bottom: 4px; }
  .easel { width: min(100%, calc((100dvh - 190px) * 4 / 3), 240px); margin-top: 8px; } .easel .tape { width: 60px; height: 18px; } .demo-chat { display: none; } .tag { display: none; }
  .me-card { padding: 8px 12px; } .av-big { width: 54px; height: 54px; } .me-fields small { display: none; }
  .btn.big { padding: 8px 12px; } .btn.big .ico { width: 36px; height: 36px; } .btn.big .t { font-size: 18px; }
  .join.card { padding: 8px 12px; } .menu-actions, .menu-side { gap: 8px; }
  .podium { min-height: 190px; } .pod.p1 .step { height: 100px; } .pod.p2 .step { height: 74px; } .pod.p3 .step { height: 52px; }
}
@media (max-width: 620px), (max-height: 520px) {
  .paper .tape { width: 64px; height: 20px; } .paper .tape.t1 { top: -9px; left: -14px; } .paper .tape.t2 { top: -9px; right: -14px; }
}
@media (max-width: 520px) {
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-row { grid-template-columns: minmax(0, 1fr); }
  .chat-head .reacts button:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .doodles { display: none; } .title .t2 path { stroke-dashoffset: 0; } }

/* ================= modos (v1.90.0): Artista Impostor e Monstro Montado ================= */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.modes button { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 10px 6px 9px; color: var(--ink); background: var(--lilac); border: 2px solid var(--ink); border-radius: 16px; text-align: center; transition: transform .15s cubic-bezier(.2, 1.6, .4, 1), background .15s; }
.modes .md-ic { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.modes .md-ic .zi { width: 23px; height: 23px; }
.modes b { font: 800 14px/1.1 var(--disp); }
.modes small { color: var(--muted); font: 700 11px/1.25 var(--ui); }
.modes button:hover { transform: translateY(-2px); }
.modes button.on { box-shadow: 0 4px 0 var(--ink); transform: translateY(-3px); }
.modes button.on .md-ic { background: var(--lime); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.modes .m-classico.on { background: var(--sun); } .modes .m-artista.on { background: #FFBFE0; } .modes .m-monstro.on { background: #A6F6FF; }
.modes .new { position: absolute; top: -9px; right: -6px; padding: 1px 6px; color: #fff; background: var(--pink); border: 2px solid var(--ink); border-radius: 99px; font: 800 9px/1.3 var(--ui); letter-spacing: .06em; transform: rotate(8deg); }
.rv-mode { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 14px/1.1 var(--disp); }
.rv-mode .zi { width: 18px; height: 18px; }
@media (max-width: 420px) { .modes small { display: none; } .modes .md-ic { width: 34px; height: 34px; } .modes b { font-size: 12.5px; } }

/* título e cores por modo */
body.m-artista .title .t2 path { stroke: var(--pink); }
body.m-monstro .title .t2 path { stroke: var(--cyan); }

/* camada-guia (monstro: a faixa da parte de cima) e o chip de quem está na vez */
#guide { pointer-events: none; }
.turn-chip { position: absolute; left: 8px; top: 8px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 150px); padding: 3px 10px 3px 3px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 13px/1.15 var(--ui); white-space: nowrap; pointer-events: none; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.turn-chip img { flex: none; width: 26px; height: 26px; background: var(--lilac); border: 3px solid var(--pc, var(--ink)); border-radius: 50%; }
.turn-chip span { overflow: hidden; text-overflow: ellipsis; }
.turn-chip .dot { flex: none; width: 14px; height: 14px; background: var(--pc, var(--ink)); border: 2px solid var(--ink); border-radius: 50%; }
.turn-chip.mine { background: var(--lime); }
.turn-chip .cnt { flex: none; padding: 1px 6px; color: #fff; background: var(--violet); border-radius: 99px; font-size: 11px; }
.pl.colored img { border: 3px solid var(--pc); box-shadow: 0 0 0 1.5px var(--ink); }
.pl.vez { background: #FFF0B8; animation: plFlash .7s cubic-bezier(.2, 1.6, .4, 1); }
.pl.voted .st { background: var(--cyan); }
.pl.ready .st { background: var(--lime); }
.ready-btn { grid-column: 1 / -1; width: 100%; padding: 9px 14px; font: 800 17px/1.1 var(--disp); }
.ready-btn.done { background: #fff; }
.ready-btn .zi { width: 20px; height: 20px; }

/* Artista Impostor: a carta secreta */
.ov.cardov { background: radial-gradient(circle at 50% 40%, rgb(124 77 255 / .55), rgb(30 19 56 / .92)); }
.scard { width: clamp(130px, 36cqw, 270px); aspect-ratio: 3 / 4; perspective: 1000px; animation: noteIn .6s cubic-bezier(.2, 1.4, .4, 1); }
.scard-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2, 1.3, .4, 1); }
.scard.flip .scard-in { transform: rotateY(180deg); }
.scard-b, .scard-f { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: clamp(4px, 1.6cqw, 10px); padding: 10px; color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 8px 0 var(--ink); text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.scard-b { cursor: pointer; color: #fff; background: repeating-linear-gradient(-45deg, rgb(255 255 255 / .08) 0 10px, transparent 10px 20px), var(--violet); }
.scard-b .zi { width: clamp(40px, 13cqw, 76px); height: clamp(40px, 13cqw, 76px); color: var(--lime); animation: penBob .9s ease-in-out infinite alternate; }
.scard-b b { font: 800 clamp(14px, 3.4cqw, 22px)/1.1 var(--disp); }
.scard-b small { font: 700 clamp(11px, 2.2cqw, 14px)/1.2 var(--ui); opacity: .8; }
.scard-f { background: var(--paper); transform: rotateY(180deg); }
.scard-f > small { color: var(--violet); font: 800 clamp(10px, 2cqw, 12px)/1 var(--ui); letter-spacing: .14em; }
.scard-f .word { font: 700 clamp(30px, 8.5cqw, 60px)/1 var(--hand); word-break: break-word; }
.scard-f .theme { padding: 2px 10px; background: var(--sun); border: 2px solid var(--ink); border-radius: 99px; font: 800 clamp(11px, 2.2cqw, 14px)/1.3 var(--ui); }
.scard-f .tip { color: var(--muted); font: 700 clamp(11px, 2.1cqw, 13px)/1.25 var(--ui); }
.scard-f.imp { color: #fff; background: radial-gradient(circle at 50% 30%, #ff7dbd, var(--pink) 60%, #d6237a); }
.scard-f.imp > small, .scard-f.imp .tip { color: #fff; }
.scard-f.imp .zi.big { width: clamp(42px, 13cqw, 80px); height: clamp(42px, 13cqw, 80px); filter: drop-shadow(0 3px 0 var(--ink)); }
.scard-f.imp .word { font: 800 clamp(20px, 5.4cqw, 36px)/1 var(--disp); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.scard-f .btn { padding: 6px 14px; font-size: clamp(13px, 2.6cqw, 16px); }
.card-stack { display: grid; justify-items: center; gap: clamp(6px, 2cqw, 12px); }
.card-wait { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: #fff; font: 700 13px/1.2 var(--ui); }
.card-wait .btn { padding: 7px 18px; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.scard-f { cursor: pointer; }
@container (max-width: 520px) {
  .scard { width: 38cqw; } .scard-b small, .scard-f .tip { display: none; }
  .scard-f { gap: 4px; padding: 6px; } .scard-f .word { font-size: 9cqw; } .scard-f.imp .word { font-size: 5.6cqw; -webkit-text-stroke-width: 1px; } .scard-f.imp .zi.big { width: 11cqw; height: 11cqw; }
  .card-wait { min-height: 34px; font-size: 12px; } .card-wait .btn { padding: 5px 14px; font-size: 14px; }
}

/* Artista Impostor: revelação, chute e placar da rodada */
.ov.areveal { place-items: center; pointer-events: auto; background: rgb(30 19 56 / .55); }
.ar-box { display: grid; justify-items: center; gap: clamp(6px, 2cqw, 14px); padding: 10px; text-align: center; }
.ar-box > small { padding: 3px 12px; color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 99px; font: 800 clamp(10px, 2cqw, 13px)/1.2 var(--ui); letter-spacing: .1em; }
.ar-av { position: relative; width: clamp(70px, 20cqw, 130px); animation: slam .5s cubic-bezier(.2, 1.6, .4, 1); }
.ar-av img { display: block; width: 100%; aspect-ratio: 1; background: #fff; border: 5px solid var(--pc, var(--ink)); border-radius: 50%; box-shadow: 0 0 0 3px var(--ink), 0 8px 0 3px var(--ink); }
.ar-name { color: #fff; font: 800 clamp(20px, 5cqw, 34px)/1.05 var(--disp); text-shadow: 0 3px 0 var(--ink); }
.ar-verdict { padding: 6px 18px; color: var(--ink); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 var(--ink); font: 800 clamp(18px, 5cqw, 36px)/1 var(--disp); transform: rotate(-4deg); animation: slam .5s cubic-bezier(.2, 1.6, .4, 1) backwards; animation-delay: 1.6s; }
.ar-verdict.yes { background: var(--lime); } .ar-verdict.no { color: #fff; background: var(--red); }
.ar-sub { color: #e6dcff; font: 700 clamp(12px, 2.4cqw, 15px)/1.3 var(--ui); animation: pop .4s backwards; animation-delay: 2s; }
.ar-suspense { display: flex; gap: clamp(4px, 1.4cqw, 10px); justify-content: center; flex-wrap: wrap; max-width: 92%; }
.ar-suspense img { width: clamp(34px, 9cqw, 56px); aspect-ratio: 1; background: #fff; border: 3px solid var(--ink); border-radius: 50%; animation: shuffleAv .5s ease-in-out infinite alternate; }
.ar-suspense img:nth-child(2n) { animation-delay: -.25s; }
@keyframes shuffleAv { from { transform: translateY(4px) scale(.94); opacity: .55; } to { transform: translateY(-6px) scale(1.06); opacity: 1; } }
.chute-box { display: flex; gap: 8px; width: min(92%, 380px); }
.chute-box input { flex: 1; font-size: 16px; }
.ar-votes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 96%; }
.ar-votes .vv { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 2px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1 var(--ui); }
.ar-votes .vv img { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; }
.ar-votes .vv .zi { width: 12px; height: 12px; }

/* painel de votação (no lugar das ferramentas) */
.vpanel { grid-area: tools; display: grid; gap: 6px; padding: 8px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); animation: screenIn .3s; }
.vp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vp-head b { display: inline-flex; align-items: center; gap: 6px; font: 800 16px/1.1 var(--disp); } .vp-head b .zi { width: 18px; height: 18px; color: var(--pink); }
.vp-head small { color: var(--muted); font: 800 12px/1.2 var(--ui); }
.vp-list { display: flex; flex-wrap: wrap; gap: 6px; }
.vp-list button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; color: var(--ink); background: var(--lilac); border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.1 var(--ui); transition: transform .12s; }
.vp-list button img { width: 30px; height: 30px; background: #fff; border: 3px solid var(--pc, var(--ink)); border-radius: 50%; }
.vp-list button.on { color: #fff; background: var(--pink); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.vp-list button:disabled { opacity: .5; }
.vp-list button .zi { width: 14px; height: 14px; }
@media (max-height: 520px) and (min-width: 560px) { .vpanel { padding: 5px; gap: 4px; } .vp-list button img { width: 24px; height: 24px; } .vp-head small { display: none; } }

/* Monstro Montado: a mostra dos monstros e a votação (camada sobre a partida inteira) */
.show { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)); overflow: hidden;
  background: radial-gradient(ellipse at 50% 18%, rgb(255 255 255 / .16), transparent 55%), radial-gradient(circle at 50% 100%, rgb(46 230 255 / .2), transparent 50%), #1a0f40; animation: screenIn .35s; }
.show::before { content: ""; position: absolute; left: 50%; top: -10%; width: 70vmin; height: 130%; background: conic-gradient(from 160deg at 50% 0, transparent 0 8deg, rgb(255 255 255 / .07) 8deg 32deg, transparent 32deg); transform: translateX(-50%); pointer-events: none; }
.sh-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; width: 100%; max-width: 900px; text-align: center; }
.sh-head small { padding: 3px 12px; color: var(--ink); background: var(--cyan); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.2 var(--ui); letter-spacing: .1em; }
.sh-head h3 { margin: 0; font: 800 clamp(20px, 4.4vw, 32px)/1.05 var(--disp); text-shadow: 0 3px 0 var(--ink); }
.sh-t { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 16px/1 var(--disp); font-variant-numeric: tabular-nums; }
.sh-body { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.mon { --mh: 2110; position: relative; flex: none; height: 100%; aspect-ratio: 1000 / var(--mh); background: #fff; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 8px 0 var(--ink), 0 0 50px rgb(46 230 255 / .25); overflow: hidden; }
.mon img { position: absolute; left: 0; width: 100%; height: calc(750 / var(--mh) * 100%); mix-blend-mode: multiply; }
.mon img:nth-child(1) { top: 0; } .mon img:nth-child(2) { top: calc(680 / var(--mh) * 100%); } .mon img:nth-child(3) { top: calc(1360 / var(--mh) * 100%); }
.show.reveal .mon img { animation: partIn .7s cubic-bezier(.2, 1.3, .4, 1) backwards; }
.show.reveal .mon img:nth-child(2) { animation-delay: 1.1s; } .show.reveal .mon img:nth-child(3) { animation-delay: 2.2s; }
@keyframes partIn { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); } }
.mon-side { display: grid; gap: 8px; align-content: center; min-width: 0; max-width: 260px; }
.mon-part { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); font: 800 14px/1.1 var(--ui); animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.mon-part img { width: 34px; height: 34px; flex: none; background: var(--lilac); border: 2px solid var(--ink); border-radius: 50%; }
.mon-part small { display: block; color: var(--muted); font: 800 10px/1 var(--ui); letter-spacing: .12em; }
.mon-part span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show.reveal .mon-part:nth-child(1) { animation-delay: .3s; } .show.reveal .mon-part:nth-child(2) { animation-delay: 1.4s; } .show.reveal .mon-part:nth-child(3) { animation-delay: 2.5s; }
.mon-grid { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px; width: 100%; height: 100%; overflow-y: auto; padding: 8px 4px 14px; }
.mon-pick { --h: clamp(170px, calc(100dvh - 200px), 460px); position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; height: var(--h); width: calc((var(--h) - 26px) * .474 + 8px); padding: 0; color: #fff; background: none; border: 0; transition: transform .15s cubic-bezier(.2, 1.6, .4, 1); }
.mon-pick .mon { flex: none; width: calc(100% - 8px); height: auto; border-width: 3px; box-shadow: 0 5px 0 var(--ink); }
.mon-pick b { font: 800 13px/1.2 var(--ui); white-space: nowrap; }
.mon-pick:hover:not(:disabled) { transform: translateY(-4px) rotate(-1deg); }
.mon-pick.on .mon { box-shadow: 0 0 0 4px var(--lime), 0 5px 0 4px var(--ink); }
.mon-pick.on::after { content: ""; position: absolute; top: -10px; right: -10px; width: 34px; height: 34px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1338' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; border: 3px solid var(--ink); border-radius: 50%; }
.mon-pick:disabled { opacity: .55; cursor: default; }
.mon-pick .num, .mon-pick .votes { position: absolute; top: 6px; left: 6px; z-index: 2; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; color: var(--ink); background: var(--sun); border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1 var(--disp); }
.mon-pick .votes { left: auto; right: 6px; background: var(--pink); color: #fff; }
.mon-win { position: relative; height: 100%; }
.mon-win .crown { position: absolute; top: -8px; left: 50%; z-index: 3; transform: translateX(-50%) rotate(-8deg); filter: drop-shadow(0 3px 0 var(--ink)); }
.sh-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
@media (max-width: 640px) { .sh-body { flex-direction: column; gap: 8px; } .sh-body > .mon { height: auto; max-height: 100%; width: auto; flex: 1 1 0; min-height: 0; } .mon-side { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; } .mon-part { padding: 2px 10px 2px 2px; font-size: 12px; } .mon-part img { width: 26px; height: 26px; } .mon-pick { --h: clamp(150px, 36dvh, 320px); } }
@media (max-height: 520px) { .show { gap: 4px; padding-top: max(6px, env(safe-area-inset-top)); } .sh-head h3 { font-size: 20px; } .mon-pick { --h: calc(100dvh - 104px); } .mon-grid { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; } .mon-grid > :first-child { margin-left: auto; } .mon-grid > :last-child { margin-right: auto; } }

/* exposição: polaroides compridas para os monstros */
.pola.tall { width: 150px; }
.pola.tall img { aspect-ratio: 1000 / 2110; }
.pola .imp-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 1px 8px; color: #fff; background: var(--pink); border: 2px solid var(--ink); border-radius: 99px; font: 800 11px/1.3 var(--ui); }
.pola .imp-tag .zi { width: 12px; height: 12px; }
.aw .aw-art.tall { width: 54px; aspect-ratio: 1000 / 2110; }
.mon-reacts { display: flex; gap: 4px; padding: 4px 8px; background: rgb(255 255 255 / .1); border: 2px solid rgb(255 255 255 / .18); border-radius: 99px; }
.mon-reacts button { width: 38px; height: 38px; padding: 3px; background: none; border: 0; border-radius: 10px; transition: transform .12s; }
.mon-reacts button:hover { transform: translateY(-3px) rotate(-6deg); }
.sh-foot { align-items: center; }
.sh-foot .mini-btn { padding: 6px 12px; box-shadow: 0 3px 0 var(--ink); }
@media (max-width: 640px), (max-height: 520px) { .mon-reacts button { width: 32px; height: 32px; } }

/* computador com quadro baixo (notebook, 521–760 px): título e quadro de demonstração encolhem pela altura, para o menu caber sem rolar */
@media (min-width: 700px) and (min-height: 521px) and (max-height: 760px) {
  .hero { gap: 8px; }
  .title .t1 span { font-size: clamp(40px, 11vh, 80px); }
  .title .t2 { font-size: clamp(28px, 7vh, 52px); }
  .easel { width: min(100%, calc((100vh - 290px) * 4 / 3), 440px); }
  .tag { font-size: 14px; margin-top: 4px; }
}
