/* Zovy Stop — visual "sticker" do Zovy (contorno grosso, sombra deslocada, roxo/lima/rosa) com a folha de caderno da Adedonha.
   Funciona no celular em pé, deitado (tela baixa) e no computador. */
:root { --ink: #1E1338; --violet: #7C4DFF; --lime: #C6F432; --pink: #FF4FA3; --cyan: #2EE6FF; --gold: #FFB800; --orange: #FF8A3D; --red: #FF3B5C; --soft: #cdbfff;
  --paper: #FFFBF0; --line: #BFD7FF; --margin: #FF8DA8;
  --disp: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; --hand: "Patrick Hand", "Comic Sans MS", cursive; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); }
body { font: 600 16px/1.35 var(--ui); color: #fff; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#app { position: fixed; inset: 0; overflow: hidden;
  background: radial-gradient(circle at 88% 0, rgb(198 244 50 / .16), transparent 42%), radial-gradient(circle at 0 100%, rgb(255 79 163 / .28), transparent 46%), linear-gradient(165deg, #3a2290 0%, #241257 55%, var(--ink) 100%); }
#app::before { content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none; background: radial-gradient(rgb(255 255 255 / .2) 1.3px, transparent 1.5px) 0 0 / 22px 22px; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.screen.on { display: flex; animation: screenIn .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }

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

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

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

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

/* ---------- sala de espera ---------- */
#lobby { overflow-y: auto; }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; max-width: 1100px; margin: 0 auto; }
.lobby-grid .col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 860px) { .lobby-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.code-card { text-align: center; background: var(--violet); color: #fff; }
.code-head { display: flex; align-items: center; justify-content: space-between; }
.code-head small { font: 800 12px/1 var(--ui); letter-spacing: .12em; opacity: .85; }
.code-tiles { display: flex; justify-content: center; gap: 10px; margin: 12px 0 14px; }
.code-tiles span { display: grid; place-items: center; width: clamp(54px, 16vw, 74px); height: clamp(62px, 18vw, 84px); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); font: 800 clamp(36px, 10vw, 52px)/1 var(--disp); animation: tileIn .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.code-tiles span:nth-child(2) { animation-delay: .07s; } .code-tiles span:nth-child(3) { animation-delay: .14s; } .code-tiles span:nth-child(4) { animation-delay: .21s; }
@keyframes tileIn { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
.code-tiles.hide span { color: transparent; text-shadow: 0 0 14px rgb(30 19 56 / .7); }
.code-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.invite { margin: 10px 0 0; font-size: 13px; opacity: .85; word-break: break-all; }
.invite.hide { filter: blur(6px); user-select: none; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.players li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; text-align: center; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.players li.off { opacity: .45; }
.players li.me { background: #F2FCCF; }
.players img { width: 54px; height: 54px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.players b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.players .crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.players .kick { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 50%; font-size: 12px; }
.players .kick:hover { color: #fff; background: var(--red); }
.players .tagme { font-size: 11px; color: #6b5f8f; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.settings { display: grid; gap: 12px; }
.set-block { display: grid; gap: 6px; min-width: 0; }
.set-block > small { color: #6b5f8f; font: 800 12px/1 var(--ui); letter-spacing: .08em; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.packs button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font: 800 12px/1.1 var(--ui); }
.packs .pk-ic { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; font-size: 17px; }
.packs button.on .pk-ic { background: var(--lime); }
.packs button.on { background: var(--gold); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: #6b5f8f; background: #fff; border: 2px dashed #b9add9; border-radius: 99px; font: 700 14px/1.2 var(--ui); }
.chip.on { color: var(--ink); background: var(--lime); border: 2px solid var(--ink); }
.chip.custom.on { background: var(--cyan); }
.chip .zi { width: 14px; height: 14px; }
.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); } }

/* ---------- rodada ---------- */
#play { gap: 10px; }
.play-top { display: flex; align-items: center; gap: 14px; flex: none; width: 100%; max-width: 860px; margin: 0 auto; }
.letter-box { position: relative; flex: none; width: 104px; height: 104px; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgb(255 255 255 / .15); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--lime); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 0; transition: stroke .3s; }
.ring-fg.warn { stroke: var(--gold); } .ring-fg.danger { stroke: var(--red); }
.letter { position: absolute; inset: 14px; display: grid; place-items: center; color: var(--ink); background: var(--gold); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); font: 800 50px/1 var(--disp); }
.letter.sm { position: static; flex: none; width: 52px; height: 52px; font-size: 28px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); }
.letter.bump { animation: bump .5s cubic-bezier(.2, 1.8, .4, 1); } @keyframes bump { from { transform: scale(1.6) rotate(-20deg); } }
.play-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.round-tag { color: var(--soft); font: 800 12px/1 var(--ui); letter-spacing: .12em; }
.clock { font: 800 40px/1 var(--disp); font-variant-numeric: tabular-nums; }
.clock.danger { color: var(--red); animation: beat .5s infinite; } @keyframes beat { 50% { transform: scale(1.08); } }
.others { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.others::-webkit-scrollbar { display: none; }
.oth { position: relative; flex: none; width: 40px; height: 40px; }
.oth img { width: 40px; height: 40px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.oth svg { position: absolute; inset: -4px; width: 48px; height: 48px; transform: rotate(-90deg); }
.oth circle { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .4s; }
.oth.full circle { stroke: var(--pink); }
.oth.full::after { content: "✓"; position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; color: #fff; background: var(--pink); border: 2px solid var(--ink); border-radius: 50%; font: 900 10px/1 var(--ui); }
.sheet { flex: 1; min-height: 0; overflow-y: auto; width: 100%; max-width: 860px; margin: 0 auto; padding: 8px 14px 14px 58px; color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink);
  background: linear-gradient(90deg, transparent 44px, var(--margin) 44px, var(--margin) 46px, transparent 46px), repeating-linear-gradient(transparent 0 55px, var(--line) 55px 57px), var(--paper); background-attachment: local; }
.row { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr) 30px; align-items: center; gap: 8px; height: 57px; }
.row label { overflow: hidden; color: #6b5f8f; font: 800 14px/1.1 var(--ui); text-overflow: ellipsis; }
.row input { height: 44px; padding: 0 6px; color: #1d3fa8; background: transparent; border: 0; border-bottom: 2px dashed transparent; border-radius: 0; font: 400 26px/1 var(--hand); }
.row input:focus { background: rgb(46 230 255 / .12); box-shadow: none; border-bottom-color: var(--cyan); border-radius: 8px 8px 0 0; }
.row input::placeholder { color: rgb(29 63 168 / .22); }
.row .mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 900 15px/1 var(--ui); transform: scale(0); transition: transform .25s cubic-bezier(.2, 1.8, .4, 1); }
.row.ok .mark { transform: scale(1); color: var(--ink); background: var(--lime); border: 2px solid var(--ink); }
.row.bad .mark { transform: scale(1); color: #fff; background: var(--red); border: 2px solid var(--ink); }
.row.bad input { color: var(--red); text-decoration: line-through wavy rgb(255 59 92 / .5); }
.sheet.locked input { pointer-events: none; color: #6377b8; }
.play-bottom, .vote-bottom, .score-bottom { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; max-width: 860px; margin: 0 auto; }
.stop-btn { position: relative; flex: 1; display: grid; place-items: center; height: 74px; color: #fff; background: var(--red); border: 4px solid var(--ink); box-shadow: 0 7px 0 var(--ink);
  clip-path: polygon(8% 0, 92% 0, 100% 22%, 100% 78%, 92% 100%, 8% 100%, 0 78%, 0 22%); border-radius: 6px; transition: transform .1s; }
.stop-btn span { font: 800 34px/1 var(--disp); letter-spacing: .04em; text-shadow: 0 3px 0 rgb(0 0 0 / .25); }
.stop-btn small { margin-top: -6px; font: 800 12px/1 var(--ui); opacity: .9; }
.stop-btn:disabled { background: #8c7fb3; cursor: not-allowed; }
.stop-btn:not(:disabled) { animation: stopReady 1s infinite; }
@keyframes stopReady { 50% { transform: scale(1.03); filter: brightness(1.1); } }
.stop-btn:not(:disabled):active { transform: translateY(4px); }
.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 { animation: boing .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes boing { 30% { transform: scale(1.35) rotate(10deg); } }
.reacts button:active { transform: scale(.85); }

/* sorteio da letra */
.spin { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgb(30 19 56 / .82); backdrop-filter: blur(4px); }
.spin-box { display: grid; justify-items: center; gap: 14px; }
.spin-box small { color: var(--soft); font: 800 14px/1 var(--ui); letter-spacing: .18em; }
.reel { display: grid; place-items: center; width: 190px; height: 190px; overflow: hidden; color: var(--ink); background: var(--gold); border: 6px solid var(--ink); border-radius: 50%; box-shadow: 0 10px 0 var(--ink), 0 0 0 14px rgb(255 184 0 / .2); }
.reel-l { font: 800 120px/1 var(--disp); }
.reel-l.tick { animation: tick .09s; } @keyframes tick { from { transform: translateY(-40%); opacity: .3; } }
.reel.land { animation: land .6s cubic-bezier(.2, 1.8, .4, 1); background: var(--lime); } @keyframes land { from { transform: scale(1.35); } }
.spin-go { visibility: hidden; font: 800 44px/1 var(--disp); color: var(--lime); text-shadow: 0 4px 0 var(--ink); }
.spin-go.on { visibility: visible; animation: go .5s cubic-bezier(.2, 1.8, .4, 1); } @keyframes go { from { transform: scale(.2) rotate(-15deg); } }

/* STOP! */
.stopfx { position: absolute; inset: 0; z-index: 45; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgb(255 59 92 / .25); pointer-events: none; }
.stop-sign { display: grid; place-items: center; width: min(70vw, 300px); aspect-ratio: 1; background: var(--red); border: 8px solid #fff; outline: 6px solid var(--ink); clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%); animation: slam .5s cubic-bezier(.2, 1.6, .4, 1); }
.stop-sign span { font: 800 clamp(50px, 16vw, 86px)/1 var(--disp); color: #fff; }
@keyframes slam { from { transform: scale(3) rotate(25deg); opacity: 0; } }
.stopfx p { margin: 0; padding: 6px 16px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; font: 800 18px/1.2 var(--ui); }
.stopfx > b { font: 800 64px/1 var(--disp); color: #fff; text-shadow: 0 5px 0 var(--ink); }
.shake { animation: shake .45s; } @keyframes shake { 20% { transform: translate(-8px, 4px); } 40% { transform: translate(7px, -5px); } 60% { transform: translate(-5px, 3px); } 80% { transform: translate(4px, -2px); } }

/* ---------- correção (v1.76: jogadores | respostas agrupadas | atividade) ---------- */
#vote { overflow: hidden; gap: 10px; }
.vshell { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr) 250px; gap: 14px; width: 100%; max-width: 1320px; margin: 0 auto; }
.vside { display: flex; flex-direction: column; min-height: 0; padding: 12px; background: rgb(18 10 44 / .55); border: 2px solid rgb(255 255 255 / .12); border-radius: 22px; }
.vside-t { display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; color: var(--soft); font: 800 12px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.vplayers { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vplayers li { display: grid; grid-template-columns: 42px minmax(0, 1fr) 30px; align-items: center; gap: 10px; padding: 7px 8px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); transition: background .2s; }
.vplayers li.me { background: #F2FCCF; } .vplayers li.off { opacity: .45; }
.vp-av { position: relative; width: 42px; height: 42px; }
.vp-av img { width: 42px; height: 42px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 50%; }
.vp-crown { position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.vp-txt { display: grid; min-width: 0; gap: 2px; }
.vp-txt b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.vp-pts { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 5px; color: #fff; background: var(--ink); border-radius: 99px; font: 800 12px/1.4 var(--ui); }
.vp-pts .zi { color: var(--gold); width: 13px; height: 13px; }
.vp-ok { display: grid; place-items: center; width: 30px; height: 30px; color: #8a7fb3; background: #F4F0FF; border: 2px solid #d5cdee; border-radius: 10px; }
.vp-ok .dots i { width: 4px; height: 4px; }
.vplayers li.done .vp-ok { color: var(--ink); background: var(--lime); border-color: var(--ink); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.vmain { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 16px 18px 14px; background: linear-gradient(180deg, #33208a 0%, #261563 100%); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 7px 0 var(--ink), inset 0 0 0 2px rgb(255 255 255 / .06); }
.vhead { display: flex; align-items: center; gap: 14px; }
.vhead .letter.sm { width: 60px; height: 60px; font-size: 32px; }
.vhead-txt { flex: 1; min-width: 0; }
.vhead-txt small { color: var(--soft); font: 800 12px/1 var(--ui); letter-spacing: .14em; }
.vhead-txt h2 { margin: 4px 0 0; overflow: hidden; font: 800 clamp(26px, 4.4vw, 40px)/1.02 var(--disp); color: var(--lime); text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 4px 0 var(--ink); }
.vhead-txt h2.swap { animation: catIn .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes catIn { from { opacity: 0; transform: translateX(30px) scale(.96); } }
.vdots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 160px; }
.vdots i { width: 10px; height: 10px; background: rgb(255 255 255 / .18); border-radius: 50%; }
.vdots i.done { background: var(--lime); } .vdots i.now { width: 22px; background: #fff; border-radius: 99px; }
.vhint { margin: 12px 0 14px; color: #e6dcff; font-size: 14px; line-height: 1.35; }
.vhint .zi { margin-right: 4px; vertical-align: -.22em; }
.vhint b { color: #fff; } .vhint .zi { color: var(--pink); }
.vgrid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-content: start; gap: 16px; margin: 0 -6px; padding: 14px 6px 12px; }
.vgroup { position: relative; display: grid; justify-items: center; gap: 9px; padding: 16px 12px 12px; color: var(--ink); text-align: center; background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); cursor: pointer; transition: transform .14s cubic-bezier(.2, 1.6, .4, 1), box-shadow .14s, background .2s; animation: cardIn .45s cubic-bezier(.2, 1.5, .4, 1) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.vgroup:hover:not(.mine) { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 9px 0 var(--ink); }
.vgroup:active:not(.mine), .vgroup.press { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.vgroup:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.vg-ans { max-width: 100%; overflow: hidden; font: 400 clamp(26px, 3vw, 32px)/1.05 var(--hand); color: #1d3fa8; text-overflow: ellipsis; white-space: nowrap; }
.vg-who { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.vg-avs { display: flex; flex: none; }
.vg-avs img { width: 26px; height: 26px; margin-left: -8px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 50%; }
.vg-avs img:first-child { margin-left: 0; }
.vg-avs em { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; color: #fff; background: var(--violet); border: 2px solid var(--ink); border-radius: 50%; font: 800 10px/1 var(--ui); font-style: normal; }
.vg-who small { overflow: hidden; color: #6b5f8f; font: 800 12px/1.2 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.vg-state { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 11px/1.3 var(--ui); letter-spacing: .04em; }
.vg-state .zi { width: 13px; height: 13px; }
.vg-thumb { position: absolute; top: -13px; right: -10px; display: none; align-items: center; gap: 3px; padding: 4px 9px 4px 7px; color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 14px/1 var(--ui); animation: pop .35s cubic-bezier(.2, 1.8, .4, 1); }
.vg-thumb.has { display: inline-flex; }
.vg-thumb .zi { width: 16px; height: 16px; }
.vg-mine { display: inline-flex; align-items: center; gap: 4px; color: var(--violet); font: 800 11px/1 var(--ui); text-transform: uppercase; letter-spacing: .06em; }
.vg-mine .zi { width: 12px; height: 12px; }
.vgroup.dup { background: #FFF4D6; } .vgroup.dup .vg-state { background: var(--gold); }
.vgroup.voted { background: #FFE6EB; border-color: var(--red); box-shadow: 0 6px 0 var(--red), 0 0 0 4px rgb(255 59 92 / .25); }
.vgroup.voted .vg-thumb { background: var(--ink); }
.vgroup.killed { background: #FFD9E0; }
.vgroup.killed .vg-ans { color: var(--red); text-decoration: line-through; text-decoration-thickness: 3px; }
.vgroup.killed .vg-state { color: #fff; background: var(--red); }
.vgroup.mine { cursor: default; background: #F2EEFF; border-style: dashed; box-shadow: 0 4px 0 rgb(30 19 56 / .5); }
.vgroup.shake { animation: shake .45s; }
.vnone { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 30px 10px; color: var(--soft); text-align: center; }
.vzero { margin-top: 8px; }
.vzero:empty { display: none; }
.vzero > small { display: block; margin-bottom: 6px; color: var(--soft); font: 800 11px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.vzero > div { display: flex; flex-wrap: wrap; gap: 6px; }
.vz { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; color: #d8cff5; background: rgb(255 255 255 / .08); border: 2px dashed rgb(255 255 255 / .2); border-radius: 99px; font-size: 12px; }
.vz img { width: 24px; height: 24px; background: #fff; border-radius: 50%; }
.vz b { color: #fff; } .vz em { font-style: normal; opacity: .85; }
.vtimer { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.vt-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 50%; font-size: 20px; }
.vbar { flex: 1; height: 18px; overflow: hidden; background: rgb(0 0 0 / .35); border: 3px solid var(--ink); border-radius: 99px; }
.vbar i { display: block; height: 100%; border-radius: 99px; transition: width .25s linear; background: repeating-linear-gradient(-45deg, var(--lime) 0 12px, #a6d81f 12px 24px); background-size: 34px 34px; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 34px 0; } }
.vtimer > b { min-width: 34px; font: 800 26px/1 var(--disp); text-align: right; font-variant-numeric: tabular-nums; }
.vtimer.danger .vbar i { background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #d61f43 12px 24px); background-size: 34px 34px; }
.vtimer.danger > b { color: var(--red); animation: beat .5s infinite; }
.feed { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.feed li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; color: #e6dcff; background: rgb(255 255 255 / .07); border-radius: 12px; font-size: 12.5px; line-height: 1.3; }
.feed li.new { animation: feedIn .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes feedIn { from { opacity: 0; transform: translateX(16px); } }
.feed li b { color: #fff; }
.feed img { width: 30px; height: 30px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.f-ic { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 50%; }
.f-tag { color: var(--soft); opacity: .7; } .f-tag .zi { width: 15px; height: 15px; }
.reacts.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 10px; border-top: 2px solid rgb(255 255 255 / .1); }
.reacts.grid button { width: auto; height: 46px; border-radius: 14px; }
.only-mobile { display: none !important; }
.vote-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: none; width: 100%; max-width: 1320px; margin: 0 auto; }
.vote-bottom .ready-count { display: inline-flex; align-items: center; gap: 6px; flex: 1; }
.vote-bottom .ready-count .zi { color: var(--lime); }
.btn.vready { min-width: 290px; }
.btn.vready.violet .ico { background: rgb(255 255 255 / .25); color: #fff; }
@media (max-width: 1100px) { .vshell { grid-template-columns: 200px minmax(0, 1fr); } .vfeed-side { display: none; } .only-mobile { display: flex !important; } }
@media (max-width: 760px) {
  .vshell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  .vplayers-side { padding: 6px; border-radius: 18px; } .vplayers-side .vside-t { display: none; }
  .vplayers { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .vplayers::-webkit-scrollbar { display: none; }
  .vplayers li { position: relative; flex: none; grid-template-columns: 1fr; justify-items: center; gap: 2px; width: 64px; padding: 6px 4px 4px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); }
  .vp-av, .vp-av img { width: 34px; height: 34px; }
  .vp-txt b { max-width: 56px; font-size: 11px; text-align: center; }
  .vp-pts { justify-self: center; font-size: 10px; padding: 0 6px 0 4px; }
  .vp-ok { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; }
  .vp-ok .dots { display: none; } .vplayers li:not(.done) .vp-ok { display: none; }
  .vmain { padding: 12px; border-radius: 22px; }
  .vhead .letter.sm { width: 46px; height: 46px; font-size: 24px; }
  .vdots { display: none; }
  .vhint { margin: 8px 0 6px; font-size: 12.5px; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vg-ans { font-size: 25px; }
  .btn.vready { min-width: 0; flex: 1; }
  .vote-bottom .ready-count { flex: none; font-size: 12px; }
}
@media (max-height: 520px) { .vhint, .vzero { display: none; } .vhead .letter.sm { width: 42px; height: 42px; } .vgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .vgroup { padding: 10px 8px 8px; gap: 5px; } .vg-ans { font-size: 22px; } }

/* ---------- placar ---------- */
.legend { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lg { padding: 2px 8px; border: 2px solid var(--ink); border-radius: 99px; font: 800 11px/1.3 var(--ui); font-style: normal; color: var(--ink); }
.lg.unica, .st-unica { background: var(--lime); } .lg.repetida, .st-repetida { background: var(--gold); } .lg.zero { background: #e5def7; }
.mvp { flex: none; width: 100%; max-width: 860px; margin: 0 auto 10px; }
.mvp-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); background: linear-gradient(100deg, var(--gold), #ffd76a); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); animation: pop .5s .2s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.mvp-card img { width: 46px; height: 46px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.mvp-card small { display: block; font: 800 11px/1 var(--ui); letter-spacing: .1em; }
.mvp-card b { font: 800 20px/1.1 var(--disp); }
.mvp-card .fun { margin-left: auto; text-align: right; font-size: 13px; }
.mvp-card .fun q { font: 400 20px/1 var(--hand); }
.slist { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 10px; width: 100%; max-width: 860px; margin: 0 auto 10px; padding: 2px 2px 8px; }
.srow { display: grid; grid-template-columns: 34px 44px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 12px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); animation: slideIn .45s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@keyframes slideIn { from { transform: translateX(-30px); opacity: 0; } }
.srow .pos { display: grid; place-items: center; }
.srow img { width: 44px; height: 44px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 50%; }
.srow .nm { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.srow .nm .mv { display: inline-flex; align-items: center; margin-left: 6px; font-size: 12px; } .mv .zi { width: 12px; height: 12px; } .mv.up { color: #16a34a; } .mv.up .zi { transform: rotate(-90deg); } .mv.down { color: var(--red); } .mv.down .zi { transform: rotate(90deg); }
.srow .tot { text-align: right; } .srow .tot b { display: block; font: 800 24px/1 var(--disp); font-variant-numeric: tabular-nums; }
.srow .tot small { color: #16a34a; font-weight: 800; }
.srow .chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.srow .chips span { max-width: 100%; overflow: hidden; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 10px; font: 400 17px/1.15 var(--hand); text-overflow: ellipsis; white-space: nowrap; }
.srow .chips span i { margin-right: 4px; font: 800 11px/1 var(--ui); font-style: normal; opacity: .7; }
.srow .chips .st-zero { background: #efeaf9; color: #9a8fbf; text-decoration: line-through; }
.srow.me { background: #F2FCCF; }
.srow.first { background: #FFF6D6; }
.score-bottom .btn.big { flex: none; }

/* ---------- final ---------- */
#final { overflow-y: auto; }
.final-wrap { width: 100%; max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.final-title { margin: 6px 0 0; text-align: center; font: 800 clamp(32px, 8vw, 48px)/1 var(--disp); text-shadow: 0 4px 0 rgb(0 0 0 / .3); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 18px); min-height: 260px; padding-top: 10px; }
.pod { display: grid; justify-items: center; gap: 6px; width: clamp(96px, 26vw, 170px); }
.pod img { width: clamp(64px, 16vw, 96px); height: clamp(64px, 16vw, 96px); background: #fff; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); animation: popUp .6s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.pod b { max-width: 100%; overflow: hidden; font: 800 16px/1.1 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.pod .step { display: grid; place-items: start center; width: 100%; padding-top: 10px; color: var(--ink); border: 3px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; font: 800 34px/1 var(--disp); transform-origin: bottom; animation: rise .8s cubic-bezier(.2, 1.2, .4, 1) backwards; }
.pod .step small { display: block; font: 800 14px/1.4 var(--ui); }
.pod.p1 .step { height: 150px; background: var(--gold); animation-delay: .9s; } .pod.p1 img { animation-delay: 1.5s; width: clamp(76px, 19vw, 116px); height: clamp(76px, 19vw, 116px); }
.pod.p2 .step { height: 110px; background: #e3e8f5; animation-delay: .5s; } .pod.p2 img { animation-delay: 1.1s; }
.pod.p3 .step { height: 80px; background: #f3c49b; animation-delay: .1s; } .pod.p3 img { animation-delay: .7s; }
.pod.p1 .crown { animation: popUp .6s 1.8s cubic-bezier(.2, 1.6, .4, 1) backwards, wobble 3s 2.4s infinite; --rot: -6deg; }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes popUp { from { transform: translateY(40px) scale(.3); opacity: 0; } }
.final-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .final-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.final-cols h3 { margin-bottom: 10px; }
.flist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.flist li { display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font-weight: 800; }
.flist li.me { background: #F2FCCF; }
.flist img { width: 34px; height: 34px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.flist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reward { display: grid; gap: 8px; min-height: 40px; }
.reward .xp-big { font: 800 40px/1 var(--disp); color: var(--violet); } .reward .xp-big small { font-size: 18px; }
.reward p { margin: 0; } .reward .soft { color: #6b5f8f; } .reward .gold { color: #b47a00; font-weight: 800; }
.reward .row-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-mini { display: inline-block; padding: 6px 12px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.2 var(--ui); text-decoration: none; }
.btn-mini.ghost { background: #fff; }
.final-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

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

/* ---------- telas baixas (celular deitado) ---------- */
@media (max-height: 520px) {
  .menu-body { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 16px; padding: 2px 0; }
  .hero { grid-row: 1 / 3; } .hero-sign span, .hero-sign b { width: 52px; height: 60px; font-size: 38px; border-radius: 14px; } .tag { margin-top: 8px; font-size: 14px; }
  .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 { gap: 8px; }
  .play-top { gap: 10px; } .letter-box { width: 72px; height: 72px; } .letter { inset: 9px; font-size: 32px; border-width: 3px; } .clock { font-size: 28px; }
  #play { gap: 6px; flex-direction: row; flex-wrap: wrap; }
  #play .play-top { flex-direction: column; justify-content: center; gap: 2px; width: 130px; margin: 0; align-items: stretch; } #play .play-info { flex: none; gap: 0; text-align: center; } #play .others { display: none; }
  #play .sheet { flex: 1 1 0; min-width: 0; height: calc(100% - 84px); margin: 0; }
  #play .play-bottom { order: 3; width: 100%; margin: 0; } .stop-btn { height: 62px; }
  #play .letter-box { align-self: center; }
  .podium { min-height: 200px; } .pod.p1 .step { height: 110px; } .pod.p2 .step { height: 80px; } .pod.p3 .step { height: 56px; }
  .vote-help { display: none; } .mvp { display: none; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: minmax(80px, 34%) minmax(0, 1fr) 28px; }
  .row label { font-size: 13px; } .row input { font-size: 23px; }
  .sheet { padding-left: 50px; background: linear-gradient(90deg, transparent 38px, var(--margin) 38px, var(--margin) 40px, transparent 40px), repeating-linear-gradient(transparent 0 55px, var(--line) 55px 57px), var(--paper); background-attachment: local; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-row { grid-template-columns: minmax(0, 1fr); }
  .play-bottom .reacts, .vote-bottom .reacts, .score-bottom .reacts { display: none; }
  .legend { display: none; }
  .score-bottom .btn.big { flex: 1; } .score-bottom .ready-count { display: none; }
  .score-bottom .btn.big small { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .bg-letters { display: none; } }

/* ---------- ícones SVG (v1.76) ---------- */
.icon-btn .zi { width: 22px; height: 22px; }
.btn .zi { width: 1.1em; height: 1.1em; }
.btn.big .ico .zi { width: 20px; height: 20px; }
.mini-btn { display: inline-flex; align-items: center; gap: 5px; }
.row .mark .zi { width: 15px; height: 15px; }
.modal-card h2 .zi, .final-title .zi { color: var(--gold); }
.final-title .zi { width: .9em; height: .9em; vertical-align: -.08em; }
.reward p .zi { width: 18px; height: 18px; vertical-align: -.25em; }
.stopfx > b .zi { width: 64px; height: 64px; }
.boot .err .zi { color: var(--red); }
.pill .zi { width: 13px; height: 13px; vertical-align: -.15em; }
.mvp-card small .zi { width: 13px; height: 13px; vertical-align: -.15em; }
.top-list img { width: 30px; height: 30px; }
@media (max-width: 520px) { .vote-bottom .reacts.only-mobile { display: none !important; } .vote-bottom { gap: 8px; } }

/* ---------- salas abertas (v1.81.0) ---------- */
.btn.cyan { background: var(--cyan); }
.pub.card { display: grid; gap: 8px; padding: 12px 14px; }
.pub-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pub-head label { font: 800 13px/1 var(--ui); color: #6b5f8f; letter-spacing: .04em; text-transform: uppercase; }
.pub-live { display: inline-flex; align-items: center; gap: 6px; color: #4b3f74; font: 800 12px/1.2 var(--ui); }
.pub-live i { width: 10px; height: 10px; background: #c9c0e6; border: 2px solid var(--ink); border-radius: 50%; }
.pub-live i.on { background: var(--lime); animation: pubPulse 1.4s ease-in-out infinite; }
@keyframes pubPulse { 50% { box-shadow: 0 0 0 5px rgb(198 244 50 / .45); } }
.pub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pub-row .btn.cyan { font: 800 17px/1.1 var(--disp); }
.pub-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; margin-right: auto; padding: 2px 8px; color: var(--ink); background: var(--cyan); border: 2px solid var(--ink); border-radius: 99px; font: 800 11px/1.2 var(--ui); letter-spacing: .06em; }
.pub-badge .zi { width: 13px; height: 13px; }
.pub-switch { margin-top: 4px; padding: 10px 12px; background: #E6FBFF; border: 2px dashed var(--ink); border-radius: 14px; }
.pub-switch input:checked + span { background: var(--cyan); }
.card-head .rep { margin-left: auto; }
.mini-btn.rep, .btn.rep { color: #b4123a; }
.icon-btn.rep { color: #b4123a; }
.pill.cyan { background: var(--cyan); color: var(--ink); }
.rooms-tip { margin: 0 0 12px; color: #4b3f74; font-size: 14px; }
.rooms { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rooms li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; }
.rooms img { width: 40px; height: 40px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.rooms b { display: block; overflow: hidden; font: 800 15px/1.2 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.rooms small { display: block; color: #6b5f8f; font-size: 12px; font-weight: 700; } .rooms small .zi { width: 14px; height: 14px; vertical-align: -.2em; }
.rep-l { display: block; margin: 0 0 6px; color: #6b5f8f; font: 800 11px/1 var(--ui); letter-spacing: .1em; }
.rooms .rn { display: inline-flex; align-items: center; gap: 4px; font: 800 13px/1 var(--ui); white-space: nowrap; }
.rooms .rn .zi { width: 15px; height: 15px; }
.rooms-empty { display: grid; justify-items: center; gap: 6px; padding: 18px 10px; color: #6b5f8f; text-align: center; background: #F4F0FF; border: 2px dashed #b9add9; border-radius: 16px; }
.rooms-empty p { margin: 0; font-weight: 700; }
.rooms-actions { display: flex; justify-content: center; margin-top: 14px; }
.rep-who, .rep-why { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rep-who button, .rep-why button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 99px; font: 800 14px/1.2 var(--ui); }
.rep-why button { padding: 8px 12px; }
.rep-who img { width: 28px; height: 28px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.rep-who button.on, .rep-why button.on { background: var(--pink); color: #fff; box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
@media (max-height: 520px) { .pub.card { padding: 8px 12px; gap: 6px; } .pub-head label { display: none; } .pub-row .btn { padding: 7px 10px; } }
@media (max-height: 520px) and (min-width: 600px) {
  .menu-actions { display: contents; }
  .menu-body { grid-auto-rows: auto; row-gap: 8px; }
  .menu-body > .hero { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .menu-body > .me-card { grid-column: 2; grid-row: 1; }
  #btnCreate { grid-column: 2; grid-row: 2; }
  .menu-actions > .join { grid-column: 2; grid-row: 3; }
  .menu-actions > .menu-row { grid-column: 2; grid-row: 4; align-self: start; }
  .menu-actions > .pub { grid-column: 1; grid-row: 3 / 5; align-self: start; }
}
.pub-row .btn { white-space: nowrap; } @media (max-width: 700px) and (max-height: 520px) { .pub-row .btn.cyan { font-size: 15px; } .pub-row .btn.small { padding-inline: 10px; } }

/* ---------- celular em pé com o teclado aberto (v1.186.1) ----------
   O teclado deixa a tela baixa e estreita: o layout de celular deitado (letra numa coluna à esquerda) espremia a folha.
   Aqui a letra, a rodada e o tempo viram uma faixa fina no topo, a folha ocupa a largura toda e o STOP fica mais baixo. */
@media (max-height: 520px) and (max-width: 700px) {
  #play.screen { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  #play { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
  #play .play-top { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; }
  #play .letter-box { width: 44px; height: 44px; align-self: center; }
  #play .ring-bg, #play .ring-fg { stroke-width: 14; }
  #play .letter { inset: 6px; font-size: 20px; border-width: 2px; box-shadow: 0 2px 0 var(--ink); }
  #play .play-info { flex: 1; display: flex; align-items: baseline; gap: 10px; text-align: left; }
  #play .clock { font-size: 24px; }
  #play .sheet { flex: 1 1 0; width: 100%; height: auto; min-height: 0; padding: 0 10px 4px 50px; border-width: 3px; border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
    background: linear-gradient(90deg, transparent 38px, var(--margin) 38px, var(--margin) 40px, transparent 40px), repeating-linear-gradient(transparent 0 44px, var(--line) 44px 46px), var(--paper); background-attachment: local; }
  #play .row { height: 46px; scroll-margin: 4px 0; }
  #play .row input { height: 38px; font-size: 22px; }
  #play .play-bottom { width: 100%; }
  #play .stop-btn { height: 46px; flex-direction: row; justify-content: center; gap: 12px; border-width: 3px; box-shadow: 0 4px 0 var(--ink); }
  #play .stop-btn span { font-size: 24px; }
  #play .stop-btn small { margin: 0; }
}

/* ---------- botão STOP e placa de STOP novos (v1.186.2) ----------
   Antes o botão era um octógono recortado (o recorte cortava a borda e a sombra nas pontas) e a placa
   tinha a borda branca cortada nas diagonais. Agora: botão "adesivo" igual ao resto do site, com a barra
   que enche conforme a folha é preenchida, e a placa feita em 3 camadas (contorno, borda branca, vermelho). */
.stop-btn { --p: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; clip-path: none; border-radius: 20px; background: var(--red); box-shadow: 0 6px 0 var(--ink); isolation: isolate; }
.stop-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, #a99bd6, #c3b8ea); transition: transform .35s cubic-bezier(.2, .9, .3, 1); }
.stop-btn:disabled { background: #6f6396; color: #fff; }
.stop-btn:not(:disabled)::before { display: none; }
.stop-btn:not(:disabled) { background: linear-gradient(180deg, #ff5b77, var(--red) 60%, #e22a4b); }
.stop-btn:not(:disabled)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .35), transparent); transform: skewX(-20deg); animation: stopShine 1.6s infinite; }
@keyframes stopShine { 60%, 100% { left: 120%; } }
.stop-btn:not(:disabled):active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.stop-btn span { display: inline-flex; align-items: center; gap: 10px; font-size: 32px; }
.stop-btn small { margin: 0; padding: 2px 10px; background: rgb(0 0 0 / .18); border-radius: 99px; font-size: 12px; opacity: 1; }
.stop-btn:not(:disabled) small { background: #fff; color: var(--red); }
.stop-oct { position: absolute; left: 16px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); background: #fff; clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%); }
.stop-oct::after { content: ""; position: absolute; inset: 3px; background: var(--red); clip-path: inherit; }
.stop-btn:disabled .stop-oct { opacity: .35; } .stop-btn:disabled .stop-oct::after { background: #6f6396; }
@media (max-height: 520px) { .stop-btn span { font-size: 26px; } .stop-oct { width: 24px; height: 24px; left: 12px; } }

.stopfx { background: radial-gradient(circle at 50% 45%, rgb(255 59 92 / .45), rgb(26 15 58 / .82) 70%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); gap: 14px; overflow: hidden; animation: fxIn .25s ease-out; }
@keyframes fxIn { from { opacity: 0; } }
.stopfx > * { position: relative; z-index: 1; }
.stop-burst { position: absolute !important; z-index: 0 !important; top: 45%; left: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: repeating-conic-gradient(rgb(255 255 255 / .09) 0 9deg, transparent 9deg 18deg); animation: burst 9s linear infinite; }
@keyframes burst { to { transform: rotate(360deg); } }
.stop-sign { position: relative; width: min(64vw, 42vh, 280px); aspect-ratio: 1; background: var(--ink); border: 0; outline: 0; animation: slam .55s cubic-bezier(.2, 1.6, .4, 1); }
.stop-sign::before, .stop-sign::after { content: ""; position: absolute; clip-path: inherit; }
.stop-sign::before { inset: 4.5%; background: #fff; }
.stop-sign::after { inset: 10%; background: radial-gradient(circle at 35% 25%, #ff6d86, var(--red) 55%, #d81f42); }
.stop-sign span { position: relative; z-index: 1; font-size: min(14vw, 9.5vh, 62px); letter-spacing: .02em; text-shadow: 0 4px 0 rgb(0 0 0 / .28); }
@keyframes slam { 0% { transform: scale(3) rotate(25deg); opacity: 0; } 60% { transform: scale(.92) rotate(-4deg); opacity: 1; } 100% { transform: none; } }
.stopfx p { padding: 8px 18px; box-shadow: 0 4px 0 var(--ink); font-size: 17px; animation: pop .4s .2s both cubic-bezier(.2, 1.6, .4, 1); }
.stopfx p b { color: var(--red); }
.stopfx > b { display: grid; place-items: center; width: 68px; height: 68px; color: var(--ink); background: var(--lime); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); font-size: 38px; text-shadow: none; animation: pop .4s .3s both cubic-bezier(.2, 1.6, .4, 1); }
.stopfx > b .zi, .stopfx > b svg { width: 30px; height: 30px; }
@media (max-height: 520px) { .stopfx { gap: 8px; } .stopfx p { font-size: 14px; padding: 5px 12px; } .stopfx > b { width: 48px; height: 48px; font-size: 26px; border-width: 3px; } }
@media (prefers-reduced-motion: reduce) { .stop-burst { animation: none; } }
