/* Zovy Cidade Dorme — base (botões, cartões, montar a roda, passar o celular, conversa, votação, revelação) igual à do Impostor na Roda;
 * sala online igual à do Zovy Impostor; o que é só da Cidade Dorme vem no fim (céu de noite e de dia, papéis, noite com narrador, dia). */
:root { --ink: #1E1338; --violet: #7C4DFF; --lime: #C6F432; --pink: #FF4FA3; --cyan: #2EE6FF; --gold: #FFB800; --orange: #FF8A3D; --red: #FF3B5C; --teal: #14B8A6; --soft: #d8ccff;
  --night: #170c38; --imp: #FF3B5C; --crew: #2EE6FF;
  --disp: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #120930; }
body { font: 600 16px/1.35 var(--ui); color: #fff; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 12%, #4a2aa6 0%, #2a1468 40%, #170b3d 72%, #0f0628 100%); }
/* fundo: pontos de interrogação subindo */
.bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bg span { position: absolute; bottom: -80px; color: rgb(255 255 255 / .07); font: 800 46px/1 var(--disp); animation: bgUp 19s linear infinite; }
.bg span::after { content: "?"; }
.bg span:nth-child(1) { left: 5%; animation-delay: -3s; } .bg span:nth-child(2) { left: 17%; animation-delay: -11s; font-size: 30px; }
.bg span:nth-child(3) { left: 31%; animation-delay: -6s; font-size: 60px; } .bg span:nth-child(4) { left: 46%; animation-delay: -15s; }
.bg span:nth-child(5) { left: 60%; animation-delay: -1s; font-size: 28px; } .bg span:nth-child(5)::after { content: "!"; }
.bg span:nth-child(6) { left: 72%; animation-delay: -8s; font-size: 54px; } .bg span:nth-child(7) { left: 85%; animation-delay: -13s; font-size: 34px; }
.bg span:nth-child(8) { left: 94%; animation-delay: -17s; } .bg span:nth-child(8)::after { content: "!"; }
@keyframes bgUp { from { transform: translateY(0) rotate(-10deg); } to { transform: translateY(-120vh) rotate(30deg); } }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.screen.on { display: flex; animation: screenIn .32s cubic-bezier(.2, .9, .3, 1.2); }
.screen.panel { background: radial-gradient(circle at 50% 115%, rgb(255 59 92 / .25), transparent 60%), linear-gradient(165deg, #3d2296 0%, #261259 55%, #150a35 100%); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
@keyframes beat { 50% { transform: scale(1.08); } }
@keyframes wobble { 0%, 100% { transform: rotate(var(--rot, -4deg)); } 50% { transform: rotate(calc(var(--rot, -4deg) * -1)) translateY(-4px); } }

/* ---------- peças básicas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); font: 800 16px/1.1 var(--ui); transition: transform .12s, box-shadow .12s; text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn.lime { background: var(--lime); } .btn.pink { background: var(--pink); color: #fff; } .btn.violet { background: var(--violet); color: #fff; } .btn.red { background: var(--red); color: #fff; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.btn .zi { width: 1.1em; height: 1.1em; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn:focus-visible, .icon-btn:focus-visible, .mini-btn:focus-visible, .sus:focus-visible, .mode3:focus-visible, .theme:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn.big { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; text-align: left; padding: 12px 16px; }
.btn.big .ico { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; background: rgb(255 255 255 / .6); border: 3px solid var(--ink); border-radius: 50%; }
.btn.big .ico .zi { width: 20px; height: 20px; }
.btn.big .t { font: 800 21px/1.1 var(--disp); }
.btn.big small { font: 700 13px/1.2 var(--ui); opacity: .8; }
.btn.violet.big .ico, .btn.pink.big .ico { color: var(--ink); }
.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.off { background: #d9d1f2; color: #6b5f8f; }
.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; }
.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.red { background: var(--red); color: #fff; } .pill.cyan { background: var(--cyan); } .pill.gold { background: var(--gold); }
.top { display: flex; align-items: center; gap: 10px; flex: none; }
.top-btns { display: flex; gap: 8px; margin-left: auto; }
.logo { height: 32px; width: auto; }
.chip-orig { padding: 3px 12px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 12px/1.3 var(--ui); letter-spacing: .1em; }
.bar { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; max-width: 1100px; margin: 0 auto 10px; }
.bar-title { display: grid; min-width: 0; } .bar-title small { color: var(--soft); font: 800 11px/1 var(--ui); letter-spacing: .12em; } .bar-title b { font: 800 22px/1.1 var(--disp); }
.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: 8px; }
.card-head small { color: #6b5f8f; font-size: 12px; }
.card-help { margin: 0 0 10px; color: #6b5f8f; font-size: 13px; font-weight: 700; }
.card-help b { color: var(--ink); }
.round-tag { padding: 4px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.2 var(--ui); letter-spacing: .06em; white-space: nowrap; }
.phase-top { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; max-width: 900px; margin: 0 auto 8px; }
.phase-top b { min-width: 0; overflow: hidden; font: 800 20px/1.1 var(--disp); text-overflow: ellipsis; white-space: nowrap; }
.phase-help { flex: none; width: 100%; max-width: 640px; margin: 0 auto 10px; color: #e6dcff; text-align: center; font-weight: 700; }
.phase-bottom { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 640px; margin: 10px auto 0; }
.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; } }
input[type=text], input:not([type]), textarea { width: 100%; min-width: 0; padding: 10px 12px; color: var(--ink); background: #F4F0FF; border: 3px solid var(--ink); border-radius: 14px; font: 700 16px/1.2 var(--ui); outline: none; }
input:focus, textarea:focus { background: #fff; box-shadow: 0 0 0 3px var(--cyan); }
textarea { resize: vertical; min-height: 150px; line-height: 1.4; }
.seg { display: flex; padding: 3px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; }
.seg button { flex: 1; min-width: 0; padding: 7px 4px; color: var(--ink); background: none; border: 0; border-radius: 10px; font: 800 14px/1.1 var(--ui); white-space: nowrap; }
.seg button.on { background: var(--violet); color: #fff; }
.seg button:disabled { opacity: .3; pointer-events: none; }
.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; }
.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; }
@media (max-width: 560px) { .set-row { grid-template-columns: minmax(0, 1fr); } }
.rule-help { margin: 0; color: #6b5f8f; font: 700 12px/1.35 var(--ui); }
.rule-help:empty { display: none; }

/* ---------- efeitos e janelas ---------- */
.fx { position: absolute; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.confetti { position: absolute; inset: 0; z-index: 55; width: 100%; height: 100%; pointer-events: none; }
.toasts { position: absolute; top: max(8px, 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 .t-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; background: var(--c, var(--lime)); border: 2px solid var(--ink); border-radius: 50%; }
.toast .t-ic .zi { width: 16px; height: 16px; } .toast.out { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toastIn { from { transform: translateY(-20px) scale(.9); opacity: 0; } }
.modal { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(18 9 48 / .78); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(100%, 540px); max-height: 88vh; overflow-y: auto; padding: 20px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; box-shadow: 0 3px 0 var(--ink); }
.modal-card h2 { margin: 0 40px 12px 0; font: 800 26px/1.1 var(--disp); } .modal-card h2 .zi { color: var(--pink); }
.modal-card h3 { margin: 14px 0 6px; font: 800 18px/1.1 var(--disp); }
.modal-card ol, .modal-card ul { padding-left: 20px; margin: 6px 0; } .modal-card li { margin-bottom: 6px; }
.modal-card p { margin: 6px 0; }
.modal-card .row-chips, .final-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.soft { color: #6b5f8f; }

/* ---------- menu ---------- */
#menu { overflow-y: auto; }
.menu-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; align-content: safe center; gap: 16px; width: 100%; max-width: 1000px; margin: 0 auto; padding: 8px 0; }
.hero { display: grid; justify-items: center; gap: 10px; text-align: center; }
.hero-art { position: relative; width: clamp(150px, 42vw, 230px); aspect-ratio: 1; }
.hero-art .ring { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgb(255 79 163 / .45), transparent 66%); animation: beat 2.4s infinite; }
.hero-art .mascot { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 0 rgb(0 0 0 / .25)); animation: sway 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes sway { 50% { transform: rotate(4deg) translateY(-6px); } }
.hero-art .phone { position: absolute; right: -2%; bottom: 8%; display: grid; place-items: center; width: 54px; height: 54px; color: var(--ink); background: var(--lime); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); animation: wobble 2s infinite; --rot: -10deg; }
.hero-art .phone .zi { width: 28px; height: 28px; }
.hero-art .q { position: absolute; color: #fff; font: 800 34px/1 var(--disp); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; animation: qFloat 2.8s ease-in-out infinite; }
.hero-art .q1 { left: -4%; top: 10%; color: var(--cyan); } .hero-art .q2 { right: 2%; top: 0; color: var(--pink); animation-delay: -1s; font-size: 44px; } .hero-art .q3 { left: 6%; bottom: 16%; color: var(--gold); animation-delay: -2s; }
@keyframes qFloat { 50% { transform: translateY(-10px) rotate(12deg); } }
.title { display: inline-grid; justify-items: center; gap: 4px; margin: 0; font: 800 clamp(40px, 11vw, 74px)/.92 var(--disp); white-space: nowrap; letter-spacing: -.02em; }
.title span { position: relative; padding: 6px 18px 12px; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); animation: signIn .7s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.title .t1 { color: #fff; background: var(--red); transform: rotate(-3deg); }
.title .t2 { color: var(--ink); background: var(--lime); font-size: .6em; transform: rotate(2deg); animation-delay: .15s; letter-spacing: .06em; }
@keyframes signIn { from { opacity: 0; transform: translateY(-40px) rotate(-10deg) scale(.5); } }
.tag { max-width: 460px; margin: 0; font-size: 15px; text-shadow: 0 2px 0 rgb(30 19 56 / .6); }
.tag b { color: var(--lime); }
.menu-actions { display: grid; gap: 12px; }
.menu-actions > .btn.big { width: 100%; }
.menu-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.menu-feats span { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; color: #fff; background: rgb(255 255 255 / .08); border: 2px solid rgb(255 255 255 / .16); border-radius: 14px; font: 800 12px/1.15 var(--ui); text-align: center; }
.menu-feats .zi { width: 20px; height: 20px; color: var(--lime); }
.menu-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.menu-row .btn { white-space: nowrap; }
@media (min-width: 860px) {
  .menu-body { grid-template-columns: 1.05fr 1fr; align-items: center; column-gap: 40px; }
}

/* ---------- montar a roda ---------- */
#setup { padding-bottom: 0; }
.set-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 calc(-1 * max(12px, env(safe-area-inset-right))) 0 calc(-1 * max(12px, env(safe-area-inset-left))); padding: 0 max(12px, env(safe-area-inset-right)) 14px max(12px, env(safe-area-inset-left)); }
.set-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; max-width: 1100px; margin: 0 auto; }
.set-grid .col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 860px) { .set-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.plist { display: grid; gap: 7px; margin: 0 0 10px; padding: 0; list-style: none; counter-reset: pl; }
.plist li { display: grid; grid-template-columns: 22px 42px minmax(0, 1fr) 36px; align-items: center; gap: 8px; counter-increment: pl; animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.plist li::before { content: counter(pl); color: #6b5f8f; font: 800 14px/1 var(--disp); text-align: right; }
.plist .av-btn { width: 42px; height: 42px; padding: 0; background: none; border: 0; border-radius: 50%; }
.plist .av-btn svg { width: 100%; height: 100%; }
.plist .av-btn:active { transform: rotate(-14deg) scale(.92); }
.plist input { padding: 8px 12px; border-width: 2px; }
.plist input.bad { border-color: var(--red); background: #FFE1EC; }
.plist .rm { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.plist .rm .zi { width: 16px; height: 16px; }
.plist .rm:disabled { opacity: .25; pointer-events: none; }
.add-pl { width: 100%; border-style: dashed; box-shadow: none; }
.modes3 { display: grid; gap: 8px; }
.mode3 { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 12px; text-align: left; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; transition: transform .12s; }
.mode3 .m-ic { display: grid; place-items: center; width: 44px; height: 44px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.mode3 .m-ic .zi { width: 24px; height: 24px; }
.mode3 b { display: block; font: 800 17px/1.15 var(--disp); } .mode3 small { color: #6b5f8f; font: 700 12.5px/1.25 var(--ui); }
.mode3.on { background: var(--gold); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.mode3.on .m-ic { background: var(--lime); }
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 500px) { .themes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.theme { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 4px 7px; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font: 800 12px/1.1 var(--ui); text-align: center; }
.theme .th-ic { display: grid; place-items: center; width: 30px; height: 30px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.theme .th-ic .zi { width: 17px; height: 17px; }
.theme small { color: #6b5f8f; font: 700 10.5px/1 var(--ui); }
.theme.on { background: var(--gold); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.theme.on .th-ic { background: var(--lime); }
.theme.custom { border-style: dashed; } .theme.custom.on { border-style: solid; background: var(--cyan); }
.theme.custom .edit { position: absolute; top: -8px; right: -6px; display: grid; place-items: center; width: 24px; height: 24px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.theme.custom .edit .zi { width: 12px; height: 12px; }
.theme:disabled, .theme.off { opacity: .35; }
#setup .switch[hidden] { display: none !important; }
.set-foot { flex: none; display: grid; gap: 8px; width: calc(100% + 2 * max(12px, env(safe-area-inset-left))); margin: 0 calc(-1 * max(12px, env(safe-area-inset-left))); padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: linear-gradient(to top, #150a35 70%, rgb(21 10 53 / 0)); }
.set-foot .start { width: 100%; max-width: 560px; margin: 0 auto; }
.set-err { margin: 0 auto; max-width: 560px; padding: 7px 12px; color: #fff; background: var(--red); border: 2px solid var(--ink); border-radius: 12px; font-weight: 800; text-align: center; }
.start .ico { animation: pulse 1.2s infinite; } @keyframes pulse { 50% { transform: scale(1.12); } }

/* ---------- bichinho (avatar) ---------- */
.av svg, .pass-av svg, .av-s svg, .rv-av svg { display: block; width: 100%; height: 100%; }

/* ---------- tela de cada jogador (carta e voto): fundo na cor do bichinho ---------- */
.screen.deal { --pc: #7C4DFF; background: #160a36; background: linear-gradient(175deg, color-mix(in srgb, var(--pc) 62%, #1E1338) 0%, color-mix(in srgb, var(--pc) 30%, #150a35) 55%, #120930 100%); transition: background .4s; }
.deal-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 45% at 50% 38%, color-mix(in srgb, var(--pc) 55%, transparent), transparent 70%); opacity: .7; }
.screen.deal > * { position: relative; }
.d-dots { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; max-width: 46%; justify-content: flex-end; }
.d-dots i { width: 9px; height: 9px; background: rgb(255 255 255 / .28); border-radius: 50%; }
.d-dots i.done { background: var(--lime); } .d-dots i.now { width: 22px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
#cBack { margin-left: auto; }

/* bichinho grande com a estrela atrás e brilhinhos */
.d-art { position: relative; display: grid; place-items: center; width: var(--as, min(52vw, 30vh, 220px)); aspect-ratio: 1; }
.d-star { position: absolute; inset: -14%; background: rgb(255 255 255 / .2); clip-path: polygon(50% 0, 61% 33%, 96% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 4% 35%, 39% 33%); border-radius: 30%; animation: dStar 14s linear infinite; }
.d-star::after { content: ""; position: absolute; inset: 22%; background: rgb(255 255 255 / .25); border-radius: 50%; filter: blur(14px); }
@keyframes dStar { to { transform: rotate(360deg); } }
.d-av { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 10px 0 rgb(0 0 0 / .25)); animation: dBob 2.8s ease-in-out infinite, pop .55s cubic-bezier(.2, 1.6, .4, 1); }
.d-av svg { display: block; width: 100%; height: 100%; }
@keyframes dBob { 50% { transform: translateY(-7px) rotate(-2deg); } }
.d-sparks i { position: absolute; width: 16%; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: dSpark 2.2s ease-in-out infinite; }
.d-sparks i:nth-child(1) { left: -6%; top: 6%; } .d-sparks i:nth-child(2) { right: -4%; top: 18%; width: 11%; animation-delay: -.6s; }
.d-sparks i:nth-child(3) { right: 2%; bottom: 4%; width: 13%; animation-delay: -1.2s; background: var(--lime); } .d-sparks i:nth-child(4) { left: 4%; bottom: 14%; width: 9%; animation-delay: -1.7s; }
@keyframes dSpark { 0%, 100% { transform: scale(.35) rotate(0); opacity: .35; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* nome numa pílula */
.d-pill { display: grid; justify-items: center; gap: 3px; max-width: 100%; padding: 8px 22px 10px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); text-align: center; }
.d-pill small { color: #6b5f8f; font: 800 11.5px/1 var(--ui); letter-spacing: .14em; }
.d-pill b { max-width: min(78vw, 360px); overflow: hidden; font: 800 clamp(28px, 8.4vw, 44px)/1.05 var(--disp); text-overflow: ellipsis; white-space: nowrap; }
.d-note, .d-only { margin: 0; padding: 6px 14px; color: #fff; background: rgb(18 9 48 / .45); border-radius: 99px; font: 700 13.5px/1.3 var(--ui); text-align: center; }

/* botão escuro grande (continuar / sou eu) */
.d-go { display: grid; justify-items: center; gap: 2px; width: min(100%, 360px); padding: 14px 18px 12px; color: #fff; background: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 rgb(0 0 0 / .45), inset 0 2px 0 rgb(255 255 255 / .12); font: 800 22px/1 var(--disp); letter-spacing: .02em; transition: transform .12s, box-shadow .12s; }
.d-go small { color: var(--lime); font: 700 12.5px/1.2 var(--ui); letter-spacing: 0; }
.d-go::after { content: ""; width: 14px; height: 14px; margin-top: 4px; border: solid var(--lime); border-width: 3px 3px 0 0; transform: rotate(-45deg) translate(-2px, 2px); animation: dUp 1.2s ease-in-out infinite; order: -1; }
.d-go:active { transform: translateY(3px); box-shadow: 0 3px 0 rgb(0 0 0 / .45); }
.d-go:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
@keyframes dUp { 50% { transform: rotate(-45deg) translate(1px, -1px); } }
/* "Próximo jogador ›": a seta fica do lado do texto e empurra para a direita */
.d-go.fwd::after { display: none; }
.d-go.fwd > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.d-arr { width: 13px; height: 13px; border: solid var(--lime); border-width: 4px 4px 0 0; transform: rotate(45deg); animation: dFwd 1.1s ease-in-out infinite; flex: none; }
@keyframes dFwd { 50% { translate: 5px 0; } }

/* passar o celular para votar */
.pass-body { flex: 1; display: grid; justify-items: center; align-content: center; gap: 14px; text-align: center; }
.pass-art { --as: min(56vw, 34vh, 230px); }
.pass-step { margin-left: auto; color: #fff; font: 800 13px/1 var(--ui); opacity: .85; }

/* carta: capa que sobe com o dedo, ou vira com um toque */
#card { gap: 8px; }
.deal-main { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.deal-zone { flex: 1; min-height: 0; display: flex; justify-content: center; perspective: 1600px; }
.dcard { container-type: size; position: relative; flex: 0 1 430px; max-height: 640px; margin: auto 0; height: 100%; touch-action: none; cursor: grab; outline: none; -webkit-touch-callout: none; }
.dcard:focus-visible .dside { box-shadow: 0 8px 0 var(--ink), 0 0 0 4px var(--lime); }
.dflip { position: absolute; inset: 0; perspective: 1400px; }
/* a carta gira em duas metades (nunca passa de 90°): nenhum navegador mostra a face de trás espelhada */
.dcard.flipped .dfront, .dcard:not(.flipped) .dback { visibility: hidden; }
.dside { position: absolute; inset: 0; border: 4px solid var(--ink); border-radius: 30px; box-shadow: 0 8px 0 var(--ink); overflow: hidden; }
.dsec { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 9px; padding: 22px 18px; text-align: center; color: var(--ink); background: #fff; }
#dUnder { place-content: end center; padding-bottom: 22px; } #dUnder .tip, #dUnder .mascot { display: none; }   /* a palavra fica embaixo: aparece logo que a capa sobe um pouco */
.front .k { color: #6b5f8f; font: 800 12px/1 var(--ui); letter-spacing: .14em; }
.front .w { max-width: 100%; font: 800 clamp(32px, 9.5vw, 48px)/1.05 var(--disp); overflow-wrap: anywhere; }
.front .w.long { font-size: clamp(24px, 7vw, 36px); }
.front .q { font: 800 clamp(20px, 5.6vw, 27px)/1.2 var(--disp); }
.front .th { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; background: var(--gold); border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.3 var(--ui); }
.front .th .zi { width: 15px; height: 15px; }
.front .tip { margin: 6px 0 0; max-width: 300px; color: #6b5f8f; font: 700 13.5px/1.35 var(--ui); }
.front.crew { background: radial-gradient(90% 60% at 50% 0%, #E6FBFF, #fff 70%); }
.front.crew .w { color: var(--ink); text-shadow: 0 4px 0 #bdf3ff; }
.front.ques { background: radial-gradient(90% 60% at 50% 0%, #FFF3C4, #fff 70%); }
.front.imp { color: #fff; background: radial-gradient(circle at 50% 30%, #ff6b85, var(--red) 55%, #b8102e); }
.front.imp .k { color: #ffe1e7; }
.front.imp .mascot { width: 46%; max-width: 160px; filter: drop-shadow(0 6px 0 rgb(0 0 0 / .25)); animation: sway 2.6s ease-in-out infinite; }
.front.imp .w { color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; font-size: clamp(32px, 9.5vw, 46px); }
.front.imp .tip { color: #ffe1e7; }
.front.imp .th { color: var(--ink); }
.front .mates { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.front .mates span { padding: 2px 10px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.4 var(--ui); }
.dcover { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px 14px 14px; border-radius: 26px;
  background: var(--pc); background: radial-gradient(85% 60% at 50% 36%, color-mix(in srgb, var(--pc) 72%, #fff) 0%, var(--pc) 48%, color-mix(in srgb, var(--pc) 72%, #1E1338) 100%);
  transition: transform .5s cubic-bezier(.2, 1.5, .35, 1), box-shadow .3s; will-change: transform; }
.dcover::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .22) 1.5px, transparent 2px) 0 0 / 22px 22px; pointer-events: none; }
.dcover > * { position: relative; }
.dcard.dragging .dcover { transition: none; cursor: grabbing; }
.dcard.lifted .dcover { box-shadow: 0 14px 0 var(--ink), 0 26px 40px rgb(0 0 0 / .45); }
.dcover .d-art { --as: min(56vw, 34vh, 240px); --as: max(84px, min(56vw, 240px, 100cqh - 236px)); margin-top: auto; }   /* o desenho encolhe com a carta: o "Deslize para cima" nunca fica cortado */
.dcover .d-only { background: rgb(18 9 48 / .4); }
.d-hint { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 9px 18px 9px 12px; color: #fff; background: var(--ink); border-radius: 99px; box-shadow: 0 4px 0 rgb(0 0 0 / .35); text-align: left; transition: opacity .2s; opacity: calc(1 - var(--f, 0) * 3); }
.d-hint b { display: block; font: 800 15px/1.1 var(--ui); } .d-hint small { display: block; color: var(--lime); font: 700 12px/1.2 var(--ui); }
.d-chev { position: relative; width: 22px; height: 26px; flex: none; }
.d-chev i { position: absolute; left: 4px; width: 13px; height: 13px; border: solid var(--lime); border-width: 3px 3px 0 0; transform: rotate(-45deg); animation: dChev 1.3s ease-in-out infinite; }
.d-chev i:nth-child(1) { top: 3px; } .d-chev i:nth-child(2) { top: 11px; animation-delay: .15s; opacity: .6; }
@keyframes dChev { 0%, 100% { translate: 0 3px; opacity: .3; } 50% { translate: 0 -3px; opacity: 1; } }
.dcard:not(.flipped):not(.dragging) .dcover { animation: dNudge 3.4s ease-in-out 1.2s infinite; }
@keyframes dNudge { 0%, 70%, 100% { transform: translateY(0); } 78% { transform: translateY(-22px); } 86% { transform: translateY(0); } 92% { transform: translateY(-8px); } }

/* embaixo: aviso antes, "passe para" + continuar depois */
.deal-foot { display: grid; justify-items: center; align-items: end; }
/* as duas coisas ocupam o mesmo lugar: a carta não muda de tamanho ao ver (no iPhone a mudança deixava pedaços da carta velha na tela) */
.deal-foot > * { grid-area: 1 / 1; align-self: end; align-content: end; transition: opacity .25s, visibility 0s; }
#card:not(.seen) .d-post, #card.seen .d-pre { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s, visibility 0s .2s; }
.d-pre { display: grid; justify-items: center; gap: 10px; width: 100%; }
.d-go.see { color: var(--ink); background: var(--lime); }
.d-go.see small { color: var(--ink); opacity: .75; }
.d-go.see::after { display: none; }
.d-wait { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; color: #fff; background: rgb(18 9 48 / .45); border-radius: 99px; font: 700 14px/1.3 var(--ui); }
.d-wait .zi { width: 18px; height: 18px; color: var(--lime); flex: none; }
.d-post { display: grid; justify-items: center; gap: 10px; width: 100%; }
#card.seen .d-post { animation: dPost .45s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes dPost { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.d-next { display: flex; align-items: center; gap: 10px; max-width: min(100%, 360px); padding: 6px 18px 6px 6px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 5px 0 var(--ink); text-align: left; }
.d-next small { display: block; color: #6b5f8f; font: 800 11px/1.1 var(--ui); letter-spacing: .1em; }
.d-next b { display: block; max-width: 240px; overflow: hidden; font: 800 21px/1.15 var(--disp); text-overflow: ellipsis; white-space: nowrap; }
.d-next-av { display: grid; place-items: center; flex: none; width: 50px; height: 50px; background: var(--pc, var(--lime)); background: color-mix(in srgb, var(--pc, #C6F432) 35%, #fff); border: 2px solid var(--ink); border-radius: 50%; }
.d-next-av svg { width: 44px; height: 44px; }
.d-next-ic .zi { width: 26px; height: 26px; }

/* computador: mais espaço */
@media (min-width: 900px) and (min-height: 700px) { .dcover .d-art { --as: min(30vh, 250px); --as: max(90px, min(250px, 100cqh - 250px)); } }
/* ---------- ordem de falar ---------- */
.order-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0; padding: 0; list-style: none; counter-reset: od; }
.order-list li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.2 var(--ui); counter-increment: od; }
.order-list li::after { content: counter(od); display: grid; place-items: center; width: 18px; height: 18px; margin-left: 2px; color: #fff; background: var(--violet); border-radius: 50%; font-size: 11px; }
.order-list li:first-child { background: var(--lime); }
.order-list .av { width: 26px; height: 26px; }
.order-list.mini { justify-content: flex-start; }

/* ---------- pergunta ---------- */
.ask-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; align-content: safe center; justify-items: center; width: 100%; padding: 6px 0; }
.ask-card { display: grid; gap: 10px; width: min(100%, 560px); text-align: center; }
.ask-card h2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ask-card h2 .zi { color: var(--pink); }
.ask-card p { margin: 0; }
.q-card small { color: var(--violet); font: 800 12px/1 var(--ui); letter-spacing: .14em; }
.q-card .q-text { font: 800 clamp(22px, 6vw, 30px)/1.2 var(--disp); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.q-card .q-note { color: #6b5f8f; font-weight: 700; }

/* ---------- conversa ---------- */
.talk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; align-content: safe center; gap: 12px; width: 100%; max-width: 980px; margin: 0 auto; overflow-y: auto; }
@media (min-width: 820px) { .talk-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 28px; } }
.talk-main { display: grid; justify-items: center; gap: 10px; }
.theme-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; color: var(--ink); background: var(--gold); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); font: 800 14px/1.2 var(--ui); }
.theme-chip .zi { width: 16px; height: 16px; }
.clock { position: relative; display: grid; place-content: center; justify-items: center; width: min(62vw, 250px, 34vh); aspect-ratio: 1; padding: 0; color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 8px 0 var(--ink); }
.clock svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); transform: rotate(-90deg); }
.ck-bg { fill: none; stroke: #ece6fb; stroke-width: 10; }
.ck-fg { fill: none; stroke: var(--violet); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.7; transition: stroke-dashoffset .25s linear, stroke .3s; }
.ck-t { position: relative; font: 800 clamp(40px, 13vw, 62px)/1 var(--disp); font-variant-numeric: tabular-nums; }
.clock small { position: relative; color: #6b5f8f; font: 800 11px/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.clock.warn .ck-fg { stroke: var(--orange); }
.clock.danger { background: #FFE1EC; animation: beat .5s infinite; } .clock.danger .ck-fg { stroke: var(--red); }
.clock.paused .ck-t { opacity: .45; }
.clock.free .ck-t { font-size: clamp(30px, 9vw, 44px); }
.clock-btns { display: flex; gap: 8px; }
.talk-side { display: grid; gap: 10px; }
.who-card { display: grid; gap: 6px; }
.who-card > small { color: var(--violet); font: 800 12px/1 var(--ui); letter-spacing: .14em; }
/* quem começa em destaque: faixa lima com coroa e o bichinho pulando */
.starter { position: relative; display: flex; align-items: center; gap: 12px; margin: 2px 0 2px; padding: 8px 14px 8px 8px; background: linear-gradient(100deg, var(--lime), #e6ff8a); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); }
.st-crown { position: absolute; left: 14px; top: -17px; transform: rotate(-14deg); animation: wobble 2.4s ease-in-out infinite; --rot: -14deg; }
.st-crown svg { display: block; }
.av-s { width: 58px; height: 58px; flex: none; padding: 3px; background: #fff; border: 3px solid var(--ink); border-radius: 50%; animation: dBob 2.2s ease-in-out infinite; }
.st-txt { display: grid; gap: 2px; min-width: 0; }
.st-txt small { color: var(--ink); font: 800 11px/1 var(--ui); letter-spacing: .14em; opacity: .75; }
.starter b { min-width: 0; overflow: hidden; font: 800 26px/1.05 var(--disp); text-overflow: ellipsis; white-space: nowrap; }

/* sorteio de quem começa (por cima da conversa) */
.spop { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgb(14 7 38 / .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: spIn .25s ease-out; --pc: #7C4DFF; }
@keyframes spIn { from { opacity: 0; } }
.spop-card { display: grid; justify-items: center; gap: 12px; width: min(100%, 380px); padding: 22px 18px 18px; text-align: center; border: 4px solid var(--ink); border-radius: 30px; box-shadow: 0 10px 0 var(--ink); background: var(--pc); background: radial-gradient(85% 60% at 50% 32%, color-mix(in srgb, var(--pc) 70%, #fff), var(--pc) 50%, color-mix(in srgb, var(--pc) 70%, #1E1338)); transition: background .15s; }
.spop-k { padding: 4px 12px; color: #fff; background: rgb(18 9 48 / .55); border-radius: 99px; font: 800 12px/1.2 var(--ui); letter-spacing: .14em; }
.spop-slot { position: relative; display: grid; place-items: center; width: min(52vw, 30vh, 200px); aspect-ratio: 1; }
.spop-rays { position: absolute; inset: -18%; border-radius: 50%; background: repeating-conic-gradient(rgb(255 255 255 / .28) 0 10deg, transparent 10deg 30deg); opacity: 0; transition: opacity .3s; }
.spop.done .spop-rays { opacity: 1; animation: dStar 9s linear infinite; }
.spop-av { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 8px 0 rgb(0 0 0 / .25)); }
.spop-av svg { display: block; width: 100%; height: 100%; }
.spop.done .spop-av { animation: spLand .6s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes spLand { 0% { transform: scale(.6) rotate(-10deg); } 100% { transform: none; } }
.spop-crown { position: absolute; z-index: 2; top: -10%; opacity: 0; transform: translateY(-30px) rotate(-10deg) scale(.4); transition: opacity .2s, transform .45s cubic-bezier(.2, 1.7, .4, 1); }
.spop-crown svg { display: block; }
.spop.done .spop-crown { opacity: 1; transform: rotate(-10deg); }
.spop-pill b { font-size: clamp(28px, 8vw, 40px); }
.spop-t { min-height: 1.3em; margin: 0; padding: 5px 14px; color: #fff; background: rgb(18 9 48 / .45); border-radius: 99px; font: 700 13.5px/1.3 var(--ui); }
.spop-t:empty { visibility: hidden; }
.spop-go { visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .25s .35s, transform .25s .35s; }
.spop.done .spop-go { visibility: visible; opacity: 1; transform: none; }
.spop-go span { font: inherit; }
.talk-help { margin: 0; color: #6b5f8f; font-size: 14px; font-weight: 700; }
.talk-help b { color: var(--ink); }
.out-note { margin: 0; color: var(--red); font: 800 13px/1.3 var(--ui); }
.forgot { justify-self: center; background: rgb(255 255 255 / .9); }
.talk-side .btn.big { width: 100%; }
/* o botão de votar nunca fica escondido embaixo: gruda no fim da tela quando falta espaço */
#btnVote { position: sticky; bottom: 0; z-index: 2; }
@media (orientation: portrait) and (max-height: 780px) {
  .clock { width: min(58vw, 220px, 25vh); } .ck-t { font-size: clamp(34px, 10vw, 50px); } .clock small { font-size: 10px; }
  .talk-body { gap: 10px; } .talk-help { font-size: 13px; } .starter b { font-size: 22px; }
}
.timeup { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgb(18 9 48 / .78); backdrop-filter: blur(3px); }
.timeup .card { display: grid; justify-items: center; gap: 10px; width: min(100%, 380px); text-align: center; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.timeup .tu-t { color: var(--red); font: 800 34px/1 var(--disp); animation: beat .6s 3; }
.timeup p { margin: 0; font-weight: 700; }
.timeup .btn.big { width: 100%; }

/* ---------- votação ---------- */
.suspects { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); align-content: start; align-content: safe center; gap: 10px; width: 100%; max-width: 760px; margin: 0 auto; padding: 6px 4px 10px; }
.sus { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 10px 6px 9px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); transition: transform .12s, background .15s; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.sus .av { width: 58px; height: 58px; }
.sus b { max-width: 100%; overflow: hidden; font: 800 15px/1.15 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.sus:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.sus.on { background: var(--red); color: #fff; transform: translateY(-3px) rotate(-2deg); }
.sus.on::after { content: ""; position: absolute; top: -10px; right: -8px; 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 20px no-repeat; border: 2px solid var(--ink); border-radius: 50%; animation: pop .3s cubic-bezier(.2, 1.8, .4, 1); }
.sus.dim { opacity: .4; }
#vote, #group { align-items: center; }
#vote .phase-bottom .btn.big, #group .phase-bottom .btn.big { flex: 1; max-width: 330px; }
#group .phase-bottom { flex-wrap: wrap; }
@media (max-width: 560px) { #group .phase-bottom .btn.big { order: -1; flex: 1 1 100%; max-width: none; } }
.g-count { display: grid; justify-items: center; gap: 4px; margin: 4px 0 10px; }
.g-count b { display: grid; place-items: center; width: 110px; height: 110px; color: var(--ink); background: var(--gold); border: 5px solid var(--ink); border-radius: 50%; box-shadow: 0 8px 0 var(--ink); font: 800 58px/1 var(--disp); animation: pop .35s cubic-bezier(.2, 1.8, .4, 1); }
.g-count b.go { background: var(--red); color: #fff; font-size: 42px; }
.g-count small { color: var(--soft); font-weight: 800; }

/* ---------- empate ---------- */
.tie-body { flex: 1; display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; }
.tie-t { color: var(--gold); font: 800 clamp(44px, 13vw, 70px)/1 var(--disp); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.tie-who { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tie-who span { display: grid; justify-items: center; gap: 3px; font: 800 15px/1.1 var(--ui); }
.tie-who .av { width: 64px; height: 64px; }
.tie-body p { margin: 0; max-width: 400px; color: #e6dcff; font-weight: 700; }
.tie-btns { display: grid; gap: 10px; width: min(100%, 340px); }

/* ---------- revelação ---------- */
.rv-body { flex: 1; display: grid; justify-items: center; align-content: start; align-content: safe center; gap: 8px; overflow-y: auto; text-align: center; }
.rv-votes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; }
.rv-votes span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 2px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.2 var(--ui); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.rv-votes span .av { width: 24px; height: 24px; }
.rv-votes span b { display: grid; place-items: center; min-width: 20px; height: 20px; color: #fff; background: var(--red); border-radius: 99px; font-size: 12px; }
.rv-av { width: 130px; height: 130px; filter: drop-shadow(0 8px 0 rgb(0 0 0 / .3)); }
.rv-av.shake { animation: rvShake .5s ease-in-out infinite; }
@keyframes rvShake { 25% { transform: translateX(-6px) rotate(-4deg); } 75% { transform: translateX(6px) rotate(4deg); } }
.rv-name { margin: 0; max-width: 92vw; overflow: hidden; font: 800 clamp(32px, 9vw, 48px)/1.05 var(--disp); text-overflow: ellipsis; white-space: nowrap; }
.rv-drum { margin: 0; color: var(--soft); font: 800 20px/1 var(--disp); letter-spacing: .1em; animation: beat .5s infinite; }
.rv-stamp { padding: 8px 22px 12px; color: #fff; background: var(--red); border: 5px solid var(--ink); border-radius: 18px; box-shadow: 0 8px 0 var(--ink); font: 800 clamp(34px, 10vw, 54px)/1 var(--disp); transform: rotate(-6deg); animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1); }
.rv-stamp.crew { color: var(--ink); background: var(--cyan); }
.rv-stamp.none { color: var(--ink); background: var(--gold); }
@keyframes stamp { from { transform: rotate(-20deg) scale(2.4); opacity: 0; } }
.rv-sub { margin: 16px 0 0; max-width: 440px; color: #e6dcff; font-weight: 700; }
.rv-sub b { color: var(--lime); }
.rv-guess { display: grid; justify-items: center; gap: 10px; width: min(100%, 420px); text-align: center; }
.rv-guess p { margin: 0; font-weight: 700; }
.rv-word { padding: 6px 16px; background: var(--gold); border: 3px solid var(--ink); border-radius: 14px; font: 800 28px/1.1 var(--disp); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.rv-judge { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
#btnRvNext { min-width: min(100%, 320px); margin-top: 6px; }
.rv-body.flash { animation: flash .6s; }
@keyframes flash { 20% { background: rgb(255 59 92 / .35); } }

/* ---------- resultado da rodada ---------- */
#round { padding-bottom: 0; }
.round-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -12px; padding: 0 12px 12px; }
.round-wrap { display: grid; gap: 12px; width: 100%; max-width: 760px; margin: 0 auto; }
.r-banner { display: grid; justify-items: center; gap: 4px; padding: 14px; text-align: center; color: var(--ink); background: var(--cyan); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.r-banner.imp { color: #fff; background: var(--red); } .r-banner.part { background: var(--gold); }
.r-banner b { font: 800 clamp(26px, 7.5vw, 38px)/1.05 var(--disp); }
.r-banner small { font: 700 14px/1.3 var(--ui); opacity: .9; }
.r-secret { display: grid; gap: 6px; text-align: center; }
.r-secret .k { color: #6b5f8f; font: 800 11px/1 var(--ui); letter-spacing: .12em; }
.r-secret .w { font: 800 26px/1.1 var(--disp); }
.r-secret .qq { font: 800 17px/1.25 var(--disp); }
.r-secret .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.r-secret .pair > div { display: grid; gap: 4px; padding: 8px; background: #E6FBFF; border: 2px solid var(--ink); border-radius: 14px; }
.r-secret .pair > div.i { background: #FFE1EC; }
.r-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.r-list li { display: grid; grid-template-columns: 26px 38px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font-weight: 800; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.r-list li.imp { background: #FFE1EC; }
.r-list .pos { color: #6b5f8f; font: 800 15px/1 var(--disp); text-align: center; }
.r-list .av { width: 38px; height: 38px; }
.r-list .nm { display: grid; min-width: 0; }
.r-list .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-list .nm small { color: #6b5f8f; font: 700 11.5px/1.2 var(--ui); }
.r-list .role { padding: 1px 8px; color: var(--ink); background: var(--cyan); border: 2px solid var(--ink); border-radius: 99px; font: 800 11px/1.4 var(--ui); white-space: nowrap; }
.r-list .role.i { color: #fff; background: var(--red); }
.r-list .role.o { background: #ddd; text-decoration: line-through; }
.r-list .gain { min-width: 52px; text-align: right; font: 800 15px/1.1 var(--disp); }
.r-list .gain em { display: block; color: var(--violet); font-style: normal; font-size: 13px; }
.r-list .gain b { font-size: 20px; }
.round-foot { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% + 24px); margin: 0 -12px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: linear-gradient(to top, #150a35 70%, rgb(21 10 53 / 0)); }
.round-foot .btn.big { flex: 1; max-width: 420px; }

/* ---------- final ---------- */
#final { overflow-y: auto; }
.final-wrap { width: 100%; max-width: 980px; margin: 0 auto; display: grid; gap: 12px; }
.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 { color: var(--gold); width: .9em; height: .9em; vertical-align: -.08em; }
.final-sub { margin: -4px 0 0; color: var(--soft); text-align: center; font-weight: 700; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 18px); min-height: 250px; padding-top: 10px; }
.pod { position: relative; display: grid; justify-items: center; gap: 6px; width: clamp(96px, 26vw, 170px); }
.pod .av { width: clamp(64px, 16vw, 96px); height: clamp(64px, 16vw, 96px); animation: popUp .6s cubic-bezier(.2, 1.6, .4, 1) backwards; filter: drop-shadow(0 5px 0 rgb(0 0 0 / .3)); }
.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 .av { 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 .av { animation-delay: 1.1s; }
.pod.p3 .step { height: 72px; background: #f3c49b; animation-delay: .1s; } .pod.p3 .av { animation-delay: .7s; }
.pod .crown { position: absolute; top: -26px; left: 50%; margin-left: -18px; color: var(--gold); 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:first-child { background: #FFF2C2; }
.flist .av { width: 34px; height: 34px; }
.flist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist small { color: #6b5f8f; font-weight: 700; }
.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; }
.reward .zi { width: 18px; height: 18px; vertical-align: -.25em; }
.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; }

/* ---------- como jogar ---------- */
.how-modes { display: grid; gap: 8px; margin: 8px 0; }
.how-modes > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 10px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; }
.how-modes .zi { width: 26px; height: 26px; color: var(--violet); }
.how-modes b { display: block; font: 800 15px/1.2 var(--disp); } .how-modes small { color: #6b5f8f; font-weight: 700; }
.pts-list { display: grid; gap: 4px; margin: 6px 0; padding: 0; list-style: none; }
.pts-list li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; margin: 0; }
.pts-list b { display: grid; place-items: center; height: 26px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1 var(--ui); }
.custom-help { margin: 0 0 8px; color: #6b5f8f; font-weight: 700; font-size: 14px; }
.custom-bad { margin: 6px 0 0; color: var(--red); font-weight: 800; font-size: 13px; }

/* ---------- celular em pé e baixinho (iPhone SE e tela cheia do site no Safari) ---------- */
@media (orientation: portrait) and (max-height: 640px) {
  .hero-art { width: min(34vw, 120px); } .title { font-size: 38px; } .menu-body { gap: 10px; }
  .btn.big { padding: 9px 12px; } .btn.big .ico { width: 38px; height: 38px; } .btn.big .t { font-size: 19px; }
  .pass-art { --as: min(30vh, 160px); } .pass-body { gap: 8px; }
  .deal-main { gap: 8px; } .dcover { gap: 6px; padding: 10px; } .dcover .d-art { --as: min(44vw, 22vh, 150px); --as: max(76px, min(44vw, 170px, 100cqh - 210px)); }
  .d-pill b { font-size: 28px; } .dcover .d-only { font-size: 12px; padding: 3px 10px; } .d-hint { padding: 6px 14px 6px 10px; }
  .d-go { padding: 9px 16px 8px; font-size: 19px; } .d-go::after { display: none; } .d-wait { padding: 5px 12px; font-size: 13px; }
  .d-next { padding: 4px 14px 4px 4px; } .d-next b { font-size: 18px; } .d-next-av { width: 40px; height: 40px; } .d-next-av svg { width: 34px; height: 34px; }
  .dsec { padding: 12px; gap: 6px; } .front .w { font-size: 30px; } .front .tip { font-size: 12.5px; }
  .clock { width: min(46vw, 20vh, 150px); } .ck-t { font-size: 36px; } .clock small { display: none; } .clock-btns .btn { padding: 5px 10px; } .talk-side { gap: 8px; } .starter { padding: 5px 10px 5px 5px; } .av-s { width: 40px; height: 40px; padding: 2px; }
  .talk-help { display: none; } .starter b { font-size: 20px; } .who-card { padding: 10px; gap: 6px; } .order-list { margin: 4px 0; }
  .sus .av { width: 46px; height: 46px; } .sus { padding: 7px 4px; }
  .spop-slot { width: min(30vh, 150px); } .spop-card { gap: 8px; }
  .rv-av { width: 96px; height: 96px; } .rv-name { font-size: 30px; }
}
@media (orientation: portrait) and (max-height: 600px) { .menu-feats { display: none; } .hero-art .q { font-size: 26px; } }

/* ---------- telas baixas (celular deitado) ---------- */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .menu-body { grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 2px 0; gap: 8px; align-items: center; }
  .hero { gap: 6px; } .hero-art { width: 130px; } .title { font-size: 40px; } .title span { padding: 3px 12px 7px; border-width: 3px; box-shadow: 0 5px 0 var(--ink); }
  .tag { display: none; } .menu-feats span { padding: 5px 2px; font-size: 11px; } .menu-feats .zi { width: 16px; height: 16px; }
  .btn.big { padding: 8px 12px; } .btn.big .ico { width: 36px; height: 36px; } .btn.big .t { font-size: 18px; }
  .pass-body { gap: 8px; grid-template-columns: auto auto; align-content: center; justify-content: center; column-gap: 26px; } .pass-art { --as: min(40vh, 150px); grid-row: 1 / 4; }
  .d-pill { padding: 5px 16px 7px; } .d-pill b { font-size: 30px; } .d-go { padding: 9px 16px 8px; font-size: 19px; } .d-go::after { display: none; }
  .deal-main { flex-direction: row; align-items: stretch; gap: 18px; justify-content: center; }
  .deal-zone { flex: 0 1 560px; } .dcard { flex: 1 1 auto; max-height: none; height: auto; margin: 0; align-self: stretch; }   /* no Safari a altura em % some aqui */
  .dcover { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; align-content: center; padding: 10px 14px; }
  .dcover .d-art { --as: min(44vh, 150px); margin: 0; } .dcover .d-pill { align-self: center; }
  .dcover .d-only { display: none; } .d-hint { order: 4; margin: 0; padding: 6px 14px 6px 10px; }
  .dsec { padding: 10px 14px; gap: 4px; } .dsec.front.imp .mascot { width: 24%; }
  .deal-foot { flex: 0 0 min(36vw, 300px); align-content: center; }
  .deal-foot > * { align-self: center; }
  .d-next b { font-size: 18px; } .d-next-av { width: 42px; height: 42px; } .d-next-av svg { width: 36px; height: 36px; }
  .talk-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; column-gap: 16px; }
  .clock { width: min(44vh, 200px); } .clock-btns .btn { padding: 6px 10px; }
  .podium { min-height: 180px; } .pod.p1 .step { height: 100px; } .pod.p2 .step { height: 72px; } .pod.p3 .step { height: 52px; }
  .g-count b { width: 76px; height: 76px; font-size: 40px; }
  .suspects { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; } .sus .av { width: 44px; height: 44px; } .sus { padding: 6px 4px; }
  .rv-av { width: 64px; height: 64px; } .rv-name { font-size: 26px; } .rv-stamp { font-size: 30px; padding: 4px 16px 8px; border-width: 4px; box-shadow: 0 5px 0 var(--ink); }
  .rv-sub { margin-top: 10px; } .rv-body { gap: 4px; } .rv-guess { padding: 10px; gap: 6px; } .rv-word { font-size: 22px; }
  .front .w { font-size: 26px; } .front.imp .w { font-size: 24px; overflow-wrap: normal; white-space: nowrap; } .front .tip { font-size: 12px; margin: 2px 0 0; }
  .clock { width: min(46vh, 170px); } .ck-t { font-size: 42px; } .clock small { display: none; }
  .talk-help, .who-card > small { display: none; } .starter b { font-size: 20px; } .av-s { width: 40px; height: 40px; padding: 2px; }
  .starter { padding: 5px 10px 5px 5px; gap: 8px; } .st-crown { top: -13px; } .st-crown svg { width: 22px; height: 18px; } .st-txt small { font-size: 9.5px; }
  .spop { padding: 8px; } .spop-k { display: none; } .spop-card { gap: 6px; padding: 18px 14px 12px; } .spop-slot { width: min(26vh, 120px); } .spop-crown svg { width: 30px; height: 24px; }
  .spop-pill { padding: 3px 14px 5px; } .spop-pill b { font-size: 24px; } .spop-t { font-size: 12px; padding: 3px 10px; } .spop-go { padding: 7px 14px 6px; font-size: 18px; } .spop-go::after { display: none; }
  .order-list { margin: 4px 0; } .talk-side { gap: 6px; } .who-card { padding: 10px; gap: 4px; } .theme-chip { font-size: 12px; padding: 2px 10px; }
  .r-banner { padding: 8px; } .r-banner b { font-size: 24px; }
  .rv-body:has(#rvGuess:not([hidden])) .rv-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .bg { display: none; } }

/* ================= sala online (base do Zovy Impostor) ================= */
.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; }
/* ---------- 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; }
.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%; }
.reacts { display: flex; gap: 4px; }
.reacts button { width: 44px; height: 44px; padding: 4px; background: rgb(255 255 255 / .1); border: 2px solid rgb(255 255 255 / .2); border-radius: 14px; transition: transform .12s, background .15s; }
.reacts button:hover { background: rgb(255 255 255 / .2); transform: translateY(-2px) rotate(-6deg); }
.reacts button.boing, .sus.boing { animation: boing .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes boing { 30% { transform: scale(1.12) rotate(3deg); } }
.reacts button:active { transform: scale(.85); }
.ready-count { flex: 1; color: var(--soft); font-weight: 700; font-size: 14px; }
.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; } }
.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; }
.phase-top { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; max-width: 860px; margin: 0 auto 10px; }
.phase-top > b { flex: 1; min-width: 0; font: 800 clamp(20px, 5vw, 28px)/1.1 var(--disp); }
.phase-top .round-tag { padding: 4px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 11px/1.2 var(--ui); letter-spacing: .08em; white-space: nowrap; }
.timer-pill { min-width: 52px; padding: 6px 10px; text-align: center; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); font: 800 22px/1 var(--disp); font-variant-numeric: tabular-nums; }
.timer-pill.danger { color: #fff; background: var(--red); animation: beat .5s infinite; }
.phase-help { flex: none; width: 100%; max-width: 860px; margin: 0 auto 10px; color: #e6dcff; font-size: 14px; text-align: center; }
.phase-help b { color: #fff; }
.phase-bottom { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; max-width: 860px; margin: auto auto 0; padding-top: 10px; }

/* ================= só da Cidade Dorme ================= */
:root { --nightA: #0E1030; --nightB: #23175a; --dayA: #5EC8FF; --dayB: #FFE7A8; --ra: #FF3B5C; --rm: #2FD36B; --rd: #2EA8FF; --rc: #FFB800; }
#app { background: linear-gradient(180deg, var(--nightA) 0%, var(--nightB) 62%, #2d1a68 100%); transition: background 1.2s; }
body.day #app { background: linear-gradient(180deg, #3FA9F5 0%, #8ED7FF 46%, #FFE3A3 100%); }
/* céu */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.stars i { position: absolute; width: var(--s, 2px); height: var(--s, 2px); background: #fff; border-radius: 50%; box-shadow: 0 0 6px #fff; animation: twinkle var(--d, 3s) ease-in-out infinite; animation-delay: var(--w, 0s); transition: opacity 1s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }
.moon { position: absolute; top: 6%; right: 8%; width: clamp(70px, 14vmin, 130px); aspect-ratio: 1; background: radial-gradient(circle at 38% 36%, #FFFBE6 0%, #FFF1B8 55%, #F2D980 100%); border-radius: 50%; box-shadow: 0 0 40px rgb(255 241 184 / .55), 0 0 120px rgb(255 241 184 / .25); transition: transform 1.2s cubic-bezier(.4, 0, .2, 1), opacity 1s; }
.moon i { position: absolute; background: rgb(214 186 96 / .45); border-radius: 50%; }
.moon i:nth-child(1) { width: 22%; height: 22%; left: 22%; top: 30%; } .moon i:nth-child(2) { width: 14%; height: 14%; left: 58%; top: 56%; } .moon i:nth-child(3) { width: 10%; height: 10%; left: 46%; top: 22%; }
.sun { position: absolute; top: 7%; left: 9%; width: clamp(70px, 14vmin, 130px); aspect-ratio: 1; background: radial-gradient(circle, #FFF6B0 0%, #FFD23F 55%, #FFB800 100%); border-radius: 50%; box-shadow: 0 0 60px rgb(255 210 63 / .8); transform: translateY(70vh); opacity: 0; transition: transform 1.4s cubic-bezier(.2, .9, .3, 1), opacity 1s; }
body.day .sun { transform: none; opacity: 1; }
body.day .moon { transform: translateY(-60vh); opacity: 0; }
body.day .stars i { opacity: 0; }
.clouds span { position: absolute; height: 34px; background: #fff; border-radius: 99px; opacity: 0; transition: opacity 1.2s; animation: cloud 60s linear infinite; }
.clouds span::before, .clouds span::after { content: ""; position: absolute; bottom: 10px; background: #fff; border-radius: 50%; }
.clouds span::before { left: 18%; width: 44px; height: 44px; } .clouds span::after { left: 46%; width: 34px; height: 34px; }
.clouds span:nth-child(1) { top: 16%; width: 120px; left: -20%; } .clouds span:nth-child(2) { top: 28%; width: 90px; left: -40%; animation-delay: -24s; } .clouds span:nth-child(3) { top: 10%; width: 140px; left: -60%; animation-delay: -44s; }
body.day .clouds span { opacity: .85; }
@keyframes cloud { to { transform: translateX(170vw); } }
.city { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(90px, 22vh, 200px); }
.city .far path { fill: #1b1446; transition: fill 1.2s; } .city .near path { fill: #120c33; transition: fill 1.2s; }
.city .win rect { fill: #2a2160; transition: fill .6s; } .city .win rect.lit { fill: #FFD76A; filter: drop-shadow(0 0 4px #FFD76A); }
body.day .city .far path { fill: #8FB7E8; } body.day .city .near path { fill: #6D92C9; } body.day .city .win rect { fill: #CFE5FF; filter: none; }
.screen { z-index: 1; }
.screen.deal { z-index: 2; }

/* menu */
.hero-art { width: clamp(150px, 38vw, 220px); }
.hero-art .h-moon { position: absolute; inset: 4% 10% 26% 10%; background: radial-gradient(circle at 40% 38%, #FFFBE6, #FFE58A 60%, #F2C94C); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 0 46px rgb(255 229 138 / .55), 0 7px 0 var(--ink); animation: beat 4s ease-in-out infinite; }
.hero-art .h-house { position: absolute; left: 18%; right: 18%; bottom: 4%; height: 42%; background: var(--violet); border: 4px solid var(--ink); border-radius: 10px 10px 14px 14px; box-shadow: 0 6px 0 var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 10%; padding: 12% 16% 10%; }
.hero-art .h-house::before { content: ""; position: absolute; left: -12%; right: -12%; top: -46%; height: 52%; background: var(--red); border: 4px solid var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero-art .h-house i { background: #2a2160; border: 3px solid var(--ink); border-radius: 6px; } .hero-art .h-house i:nth-child(2) { background: #FFD76A; box-shadow: 0 0 14px #FFD76A; animation: blink 3.4s infinite; }
@keyframes blink { 46%, 54% { background: #2a2160; box-shadow: none; } }
.hero-art .h-eyes { position: absolute; left: 4%; bottom: 10%; display: flex; gap: 6px; }
.hero-art .h-eyes i { width: 16px; height: 9px; background: #FF3B5C; border-radius: 50% 50% 40% 40%; box-shadow: 0 0 10px #FF3B5C; animation: peek 4.5s infinite; }
@keyframes peek { 0%, 40%, 100% { transform: scaleY(1); } 44%, 48% { transform: scaleY(.1); } }
.hero-art .h-z { position: absolute; color: #fff; font: 800 26px/1 var(--disp); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; animation: zz 3s ease-in-out infinite; }
.hero-art .z1 { right: 8%; top: 36%; } .hero-art .z2 { right: 0; top: 22%; font-size: 32px; animation-delay: -1s; } .hero-art .z3 { right: -8%; top: 4%; font-size: 40px; animation-delay: -2s; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 10px) scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(12px, -18px) scale(1.1); } }
.hero-art.img { width: clamp(200px, 46vw, 300px); }
.hero-art.img > span { display: none; }
.hero-art.img img { width: 100%; height: 100%; object-fit: contain; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink), 0 0 50px rgb(255 229 138 / .3); }
.title .t1 { background: var(--violet); }
.title .t2 { background: var(--gold); }
.tag b.red { color: #FF7A90; }
.btn.pink.big .ico { background: rgb(255 255 255 / .75); }

/* emblema e carta do papel */
.rbadge { display: inline-grid; place-items: center; flex: none; width: var(--rs, 92px); height: var(--rs, 92px); color: #fff; background: var(--rc); border: max(2px, calc(var(--rs, 92px) * .045)) solid var(--ink); border-radius: 50%; box-shadow: 0 calc(var(--rs, 92px) * .06) 0 var(--ink); vertical-align: middle; }
.rbadge .zi, .rbadge svg { width: 56%; height: 56%; }
.rbadge.r-c { color: var(--ink); }
.rbadge.art { background: color-mix(in srgb, var(--rc) 30%, #fff); overflow: hidden; }
.rbadge.art img { width: 112%; height: 112%; object-fit: contain; margin-top: 10%; }
.role-wrap { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 860px; margin: 0 auto; align-content: start; padding: 4px 2px 10px; }
@media (min-width: 820px) { .role-wrap { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; } }
.rcard .rc-in { display: grid; justify-items: center; gap: 8px; padding: 16px; color: var(--ink); text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 26%, #fff), #fff 70%); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.rcard .rc-in > small { color: #6b5f8f; font: 800 12px/1 var(--ui); letter-spacing: .16em; }
.rcard .rc-name { font: 800 clamp(30px, 9vw, 44px)/1 var(--disp); color: var(--ink); }
.rcard .r-a .rc-name { color: var(--ra); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.rcard .rc-goal { margin: 0; max-width: 330px; font: 700 14px/1.35 var(--ui); color: #4b3f70; }
.rcard .rc-team { padding: 3px 12px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.3 var(--ui); }
.rcard .rc-team.bad { color: #fff; background: var(--red); }
.rcard:not(.big) .rbadge { --rs: 64px; } .rcard:not(.big) .rc-goal { display: none; } .rcard:not(.big) .rc-in { gap: 4px; padding: 10px; }
.rcard.big .rbadge { --rs: min(38vw, 150px); }
.rc-mates { display: grid; gap: 4px; justify-items: center; }
.rc-mates small { color: #b3102f; font: 800 11px/1 var(--ui); letter-spacing: .12em; }
.rc-mates span { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rc-mates em { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 2px; font: 800 14px/1.2 var(--ui); font-style: normal; background: #FFE1EC; border: 2px solid var(--ink); border-radius: 99px; }
.rc-mates em .av { width: 26px; height: 26px; } .rc-mates em.out { opacity: .55; text-decoration: line-through; }
.ract { display: grid; gap: 10px; padding: 14px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); }
.ract:empty { display: none; }
.ract h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 20px/1.15 var(--disp); }
.ract h3 .zi { width: 22px; height: 22px; color: var(--violet); }
.ract-help, .ract-mate { margin: 0; color: #6b5f8f; font: 700 13px/1.35 var(--ui); } .ract-help b, .ract-mate b { color: var(--ink); }
.ract-mate { padding: 6px 10px; background: #FFE1EC; border: 2px dashed var(--red); border-radius: 12px; color: #8a1630; }
.tag-a { padding: 0 6px; color: #fff; background: var(--red); border-radius: 99px; font-size: 11px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pk { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 0; padding: 8px 4px 7px; color: var(--ink); background: #F4F0FF; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); transition: transform .12s; }
.pk .av { width: 50px; height: 50px; }
.pk b { max-width: 100%; overflow: hidden; font: 800 14px/1.1 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.pk.on { background: var(--lime); transform: translateY(-3px) rotate(-2deg); box-shadow: 0 7px 0 var(--ink); }
.pk:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.role-foot { flex: none; display: flex; justify-content: center; width: 100%; max-width: 860px; margin: 0 auto; padding-top: 8px; }
.role-foot .btn.big { width: min(100%, 420px); }
.look-card { display: grid; justify-items: center; gap: 6px; padding: 14px; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); color: var(--ink); }
.look-card.ok { background: #E3FFD9; } .look-card.bad { background: #FFE1EC; }
.look-card .av { width: 90px; height: 90px; }
.look-card b { font: 800 26px/1.1 var(--disp); }
.look-card .stamp { padding: 6px 16px; color: #fff; background: var(--rm); border: 3px solid var(--ink); border-radius: 14px; font: 800 20px/1.1 var(--disp); transform: rotate(-3deg); animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1); }
.look-card.bad .stamp { background: var(--red); }

/* noite com narrador */
#night { align-items: center; }
.narr { flex: 1; min-height: 0; overflow-y: auto; display: grid; justify-items: center; align-content: start; align-content: safe center; gap: 12px; width: 100%; max-width: 760px; text-align: center; }
.n-moon { width: clamp(80px, 20vmin, 140px); aspect-ratio: 1; background: radial-gradient(circle at 38% 36%, #FFFBE6, #FFE58A 60%, #F2C94C); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 0 60px rgb(255 229 138 / .5), 0 7px 0 var(--ink); animation: beat 4s ease-in-out infinite; }
.narr > small { display: inline-flex; align-items: center; gap: 8px; color: var(--soft, #cdbfff); font: 800 13px/1 var(--ui); letter-spacing: .16em; }
.narr > small .rbadge { --rs: 26px; box-shadow: none; }
.narr h2 { margin: 0; font: 800 clamp(26px, 7vw, 42px)/1.1 var(--disp); text-shadow: 0 4px 0 rgb(0 0 0 / .35); }
.narr h2.say { animation: say .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes say { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(4px); } }
.n-sub { margin: 0; max-width: 520px; color: #e6dcff; font-weight: 700; } .n-sub:empty { display: none; } .n-sub b { color: var(--lime); }
.n-pick, .n-result { width: 100%; }
.n-pick .picks { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
#nGo { width: min(100%, 380px); }

/* dia */
#day .phase-top > b { color: var(--ink); text-shadow: 0 2px 0 #fff; }
body.day .phase-top .round-tag { background: #fff; }
.day-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 980px; margin: 0 auto; align-content: start; padding: 2px 2px 8px; }
@media (min-width: 860px) { .day-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.news { display: grid; gap: 10px; }
.news-card { display: grid; justify-items: center; gap: 6px; padding: 16px; color: var(--ink); text-align: center; background: #fff; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 7px 0 var(--ink); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.news-card small { color: #6b5f8f; font: 800 12px/1 var(--ui); letter-spacing: .16em; }
.news-card b { font: 800 clamp(22px, 6vw, 30px)/1.1 var(--disp); }
.news-card p { margin: 0; font-weight: 700; color: #4b3f70; } .news-card p .rbadge { --rs: 28px; box-shadow: none; }
.news-card .av { width: 96px; height: 96px; }
.news-card.bad { background: linear-gradient(180deg, #FFE1EC, #fff 70%); } .news-card.ok { background: linear-gradient(180deg, #E3FFD9, #fff 70%); }
.news-ic { display: grid; place-items: center; width: 86px; height: 86px; color: #fff; background: var(--rm); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); }
.news-ic .zi, .news-ic svg { width: 46px; height: 46px; }
.hunch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; color: var(--ink); background: rgb(255 255 255 / .85); border: 3px dashed var(--ink); border-radius: 18px; }
.hunch small { width: 100%; color: #6b5f8f; font: 800 11px/1 var(--ui); letter-spacing: .12em; }
.hunch span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 2px; background: #fff; border: 2px solid var(--ink); border-radius: 99px; font-weight: 800; }
.hunch .av { width: 26px; height: 26px; } .hunch span b { color: var(--violet); }
.talk { display: grid; justify-items: center; gap: 10px; padding: 14px; color: var(--ink); background: rgb(255 255 255 / .92); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); }
.ck-in { position: relative; display: grid; justify-items: center; }
.ck-in b { font: 800 clamp(40px, 13vw, 58px)/1 var(--disp); font-variant-numeric: tabular-nums; }
.ck-in small { color: #6b5f8f; font: 800 11px/1.2 var(--ui); text-transform: uppercase; letter-spacing: .06em; }
.clock.paused .ck-in b { opacity: .45; }
.clock { width: min(52vw, 200px, 28vh); }
.talk-help { text-align: center; }
.town { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tw { position: relative; display: grid; justify-items: center; gap: 2px; width: 64px; font: 800 12px/1.1 var(--ui); }
.tw .av { width: 46px; height: 46px; } .tw b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw.out { opacity: .6; } .tw.out b { text-decoration: line-through; }
.tw .rbadge { position: absolute; top: -4px; right: 2px; --rs: 20px; box-shadow: none; }
.av.ghost { animation: ghostF 3s ease-in-out infinite; } @keyframes ghostF { 50% { transform: translateY(-5px); } }
.timeup .tu-card { display: grid; justify-items: center; gap: 10px; width: min(100%, 380px); padding: 20px; color: var(--ink); text-align: center; background: #fff; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.timeup .tu-card > b { color: var(--red); font: 800 32px/1 var(--disp); }
.timeup .row-chips { display: flex; gap: 8px; }
#day .phase-bottom { justify-content: center; } #btnVote { width: min(100%, 420px); }
.gcount { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgb(14 7 38 / .55); pointer-events: none; }
.gcount b { display: grid; place-items: center; width: 140px; height: 140px; color: var(--ink); background: var(--gold); border: 6px solid var(--ink); border-radius: 50%; box-shadow: 0 10px 0 var(--ink); font: 800 64px/1 var(--disp); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.gcount b.go { color: #fff; background: var(--red); font-size: 50px; }
.tie-body h2 { margin: 0; color: var(--gold); font: 800 clamp(44px, 13vw, 70px)/1 var(--disp); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.rv-kick { color: var(--ink); font: 800 13px/1 var(--ui); letter-spacing: .16em; }
body.day .rv-name, body.day .rv-sub, body.day .tie-body p { color: var(--ink); text-shadow: 0 2px 0 rgb(255 255 255 / .7); }
body.day .rv-sub b { color: var(--violet); }
.rv-moon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold); }

/* fim */
#end, #lend { overflow-y: auto; }
.win-banner { display: grid; gap: 8px; }
.wb { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 16px; overflow: hidden; color: #fff; text-align: center; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.wb.city { color: var(--ink); background: linear-gradient(160deg, #FFE58A, #C6F432); } .wb.killers { background: linear-gradient(160deg, #FF3B5C, #6B1D7A); }
.wb small { font: 800 12px/1 var(--ui); letter-spacing: .18em; opacity: .8; }
.wb b { font: 800 clamp(28px, 8vw, 46px)/1.02 var(--disp); }
.wb p { margin: 0; font-weight: 700; opacity: .9; }
.wb-ic { display: grid; place-items: center; width: 74px; height: 74px; }
.wb-ic .zi, .wb-ic svg { width: 64px; height: 64px; }
.wb.art { padding: 0; } .wb.art img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wb.art .wb-txt { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 2px; padding: 40px 12px 12px; background: linear-gradient(to top, rgb(14 7 38 / .85), transparent); color: #fff; }
.wb.art.city .wb-txt { background: linear-gradient(to top, rgb(255 229 138 / .92), transparent); color: var(--ink); }
.wb-who { margin: 0; color: #fff; text-align: center; font-weight: 700; text-shadow: 0 2px 0 rgb(0 0 0 / .4); } .wb-who b { color: #FF8DA8; }
body.day .wb-who { color: var(--ink); text-shadow: none; } body.day .wb-who b { color: var(--red); }
.elist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.elist li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 10px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; animation: slideIn .4s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } }
.elist li.bad { background: #FFE1EC; } .elist li.me { outline: 3px solid var(--violet); outline-offset: 2px; } .elist li.out { opacity: .78; }
.elist .av, .elist img.avi { width: 40px; height: 40px; }
.elist .nm { display: grid; min-width: 0; } .elist .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .elist .nm small { color: #6b5f8f; font: 700 11.5px/1.2 var(--ui); }
.elist .gain { min-width: 40px; text-align: right; } .elist .gain b { display: block; font: 800 20px/1 var(--disp); } .elist .gain small { color: #6b5f8f; font-size: 11px; }
.legend { margin: 8px 0 0; font-size: 12px; font-weight: 700; }
.roles-list { display: grid; gap: 8px; margin: 8px 0; }
.role-li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; } .role-li .rbadge { box-shadow: 0 3px 0 var(--ink); }
.role-li b { display: block; font: 800 16px/1.2 var(--disp); } .role-li small { color: #6b5f8f; font-weight: 700; font-size: 13px; }

/* sala online */
.lj-body { max-width: 860px; align-content: start; }
@media (min-width: 700px) { .lj-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: start; } }
#lplay { gap: 0; }
.lp-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 1100px; margin: 0 auto; overflow-y: auto; align-content: start; padding: 2px 2px 8px; }
@media (min-width: 900px) { .lp-grid { grid-template-columns: minmax(0, 1fr) 320px; overflow: hidden; } .lp-main { overflow-y: auto; max-height: 100%; } .lp-side { overflow-y: auto; max-height: 100%; } }
.lp-main { display: grid; gap: 12px; align-content: start; min-width: 0; }
.lp-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.town.small { padding: 10px; background: rgb(255 255 255 / .9); border: 3px solid var(--ink); border-radius: 20px; color: var(--ink); }
.town.small .tw { width: 58px; } .town.small .tw img { width: 42px; height: 42px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.town.small .tw.out img { filter: grayscale(1); }
.tw .tw-tag { position: absolute; top: -6px; left: -2px; display: grid; place-items: center; width: 20px; height: 20px; color: #fff; background: var(--violet); border: 2px solid var(--ink); border-radius: 50%; font-size: 10px; }
.tw .tw-tag .zi { width: 11px; height: 11px; }
.tw.voted::after { content: ""; position: absolute; right: 4px; top: 30px; width: 14px; height: 14px; background: var(--lime); border: 2px solid var(--ink); border-radius: 50%; }
.tw.pickable { cursor: pointer; } .tw.pickable:hover img { transform: scale(1.08); } .tw.on img { outline: 4px solid var(--red); outline-offset: 1px; }
.feed { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; padding: 4px 2px; }
.feed:empty { display: none; }
.fd { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 14px; font: 700 14px/1.3 var(--ui); animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.fd img { width: 30px; height: 30px; flex: none; border: 2px solid var(--ink); border-radius: 50%; }
.fd b { color: var(--violet); }
.fd.sys { background: var(--gold); justify-content: center; text-align: center; padding: 6px 10px; }
.lp-act { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.lp-act .btn.big { flex: 1 1 260px; max-width: 420px; }
.lp-bottom { flex-wrap: wrap; }
.phrases { display: flex; flex-wrap: wrap; gap: 6px; }
.phrases button { padding: 7px 12px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 13px/1.2 var(--ui); }
.phrases button.on { background: var(--lime); }
.phrases button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.ph-box { display: grid; gap: 8px; padding: 12px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); }
.ph-box > small { color: #6b5f8f; font: 800 11px/1 var(--ui); letter-spacing: .12em; }
.ph-who { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-who button { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 2px; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.2 var(--ui); }
.ph-who img { width: 26px; height: 26px; border-radius: 50%; }
.l-card { display: grid; justify-items: center; gap: 8px; padding: 16px; color: var(--ink); text-align: center; background: #fff; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 7px 0 var(--ink); }
.l-card h2 { margin: 0; font: 800 clamp(22px, 6vw, 30px)/1.1 var(--disp); }
.l-card p { margin: 0; font-weight: 700; color: #4b3f70; }
.l-card .big-av { width: 96px; height: 96px; border: 4px solid var(--ink); border-radius: 50%; background: #fff; }
.l-card.sleep { background: linear-gradient(180deg, #2a1d6a, #1a1248); color: #fff; } .l-card.sleep p { color: #d9ceff; }
.l-card.sleep .zzz { font: 800 40px/1 var(--disp); letter-spacing: .1em; animation: zz2 2.2s ease-in-out infinite; color: #fff; }
@keyframes zz2 { 50% { transform: translateY(-6px); opacity: .6; } }
.l-wait { font-size: 13px; color: #6b5f8f; font-weight: 700; }
#lplay .phase-top .timer-pill:empty { display: none; }
body.day #lplay .phase-top > b { color: var(--ink); }

/* telas baixas (celular deitado) */
@media (max-height: 520px) {
  .city { height: 70px; }
  .rcard.big .rbadge { --rs: 84px; } .rcard .rc-goal { font-size: 13px; }
  .role-wrap { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .news-card .av { width: 60px; height: 60px; } .news-card { padding: 10px; }
  .clock { width: 140px; } .ck-in b { font-size: 34px; }
  .day-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .n-moon { width: 60px; } .narr { gap: 6px; } .narr h2 { font-size: 24px; }
  .hero-art.img { width: 150px; }
  .lp-grid { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (prefers-reduced-motion: reduce) { .stars i, .clouds span { animation: none; } }
.rc-art { display: block; width: min(46vw, 180px); max-height: 26vh; object-fit: contain; filter: drop-shadow(0 8px 0 rgb(30 19 56 / .25)); animation: dBob 2.8s ease-in-out infinite; }
.rcard:not(.big) .rc-art { width: 92px; max-height: 92px; }
@media (max-height: 520px) { .rc-art { width: 110px; max-height: 110px; } }
.wb.art { background: #fff; }
.wb.art img { aspect-ratio: 16 / 8; }
.wb.art .wb-txt { position: static; padding: 12px 12px 14px; background: var(--ink); color: #fff; }
.wb.art.city .wb-txt { background: linear-gradient(160deg, #FFE58A, #C6F432); color: var(--ink); }
.wb.art.killers .wb-txt { background: linear-gradient(160deg, #FF3B5C, #6B1D7A); }
.rv-kick { color: var(--soft, #cdbfff); } body.day .rv-kick { color: var(--ink); }
.zi { width: 1.1em; height: 1.1em; }
.news-ic .zi, .rv-moon .zi, .wb-ic .zi, .l-card .zzz .zi { width: 1em; height: 1em; }
.rv-moon { font-size: 80px; } .l-card .zzz { font-size: 60px; }
@media (max-height: 520px) {
  .role-wrap { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .rcard .rc-in { padding: 10px; gap: 4px; } .rcard .rc-name { font-size: 28px; } .rc-art { width: 96px; max-height: 96px; }
  .rcard .rc-goal { font-size: 12px; }
}

/* texto que muda no Vyxel (vx.css mostra o .vxs) */
.vxs { display: none; }

/* v1.202.2: papel na hora de distribuir = uma carta só, no meio (a dica vai dentro dela) */
.rcard .rc-tip { margin: 2px 0 0; padding: 6px 12px; color: #4b3f70; background: rgb(30 19 56 / .06); border-radius: 12px; font: 700 13px/1.35 var(--ui); }
.role-wrap.solo { grid-template-columns: minmax(0, 1fr) !important; max-width: 420px; align-content: safe center; }
@media (max-height: 520px) { .role-wrap.solo { max-width: 360px; align-content: start; } }
/* relógio da conversa: o número e a frase cabem dentro do anel em qualquer tamanho */
.clock { container-type: inline-size; }
.ck-in b { font-size: min(58px, 25cqw); }
.ck-in small { max-width: 64cqw; font-size: min(11px, 6cqw); text-align: center; text-wrap: balance; }
.day-grid { max-width: 860px; }
