/* Cuca Fresca - visual proprio: noite azul com formas suaves, cartoes claros e quatro cores fortes.
   Celular em pe primeiro; depois celular deitado (baixo), notebook e TV (textos crescem com clamp/vw/vh). */
:root {
  --bg: #0d1535; --bg2: #16235c; --ink: #1b2152; --ink2: #4a5287; --paper: #fffaf0; --paper2: #f1e9d8; --line: #e3d8c0;
  --coral: #ff6f61; --mango: #ffc23d; --mint: #36d399; --sky: #4cb2ff; --lilac: #a98bff; --pink: #ff8cc6;
  --ok: #17a862; --bad: #e0464b; --soft: #cfd6ff;
  --r: 22px;
  --shadow: 0 5px 0 rgba(6, 10, 36, .4), 0 14px 30px rgba(3, 6, 26, .35);
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --text: 'Nunito', system-ui, sans-serif;
  --gut: clamp(12px, 2.2vw, 32px);
  --outline: .035em .035em 0 var(--ink), -.035em .035em 0 var(--ink), .035em -.035em 0 var(--ink), -.035em -.035em 0 var(--ink), 0 .05em 0 var(--ink), .05em 0 0 var(--ink), -.05em 0 0 var(--ink), 0 -.04em 0 var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--paper); font-family: var(--text); font-weight: 700; font-size: 16px; line-height: 1.25; overflow-x: hidden; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
body[data-screen="game"] { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; text-align: inherit; }
button:disabled { cursor: default; }
input, textarea { font: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; }

/* ---------- fundo ---------- */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(130% 90% at 50% -10%, #20307a 0%, var(--bg2) 35%, var(--bg) 75%); }
#bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1.6px, transparent 1.8px); background-size: 30px 30px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
#bg i { position: absolute; border-radius: 50%; }
#bg i:nth-child(1) { width: 60vmax; height: 60vmax; left: -22vmax; top: -24vmax; background: radial-gradient(circle, rgba(76, 178, 255, .30), transparent 62%); }
#bg i:nth-child(2) { width: 64vmax; height: 64vmax; right: -26vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(54, 211, 153, .22), transparent 62%); }
#bg i:nth-child(3) { width: 34vmax; height: 34vmax; right: 4vmax; top: 6vmax; background: radial-gradient(circle, rgba(255, 140, 198, .18), transparent 64%); }
#bg i:nth-child(4) { width: 22vmax; height: 22vmax; left: 8vmax; bottom: 10vmax; background: radial-gradient(circle, rgba(255, 194, 61, .14), transparent 64%); }
#bg i:nth-child(5) { width: 40vmax; height: 40vmax; left: 30vmax; top: 30vmax; background: radial-gradient(circle, rgba(169, 139, 255, .14), transparent 64%); }

#app { position: relative; z-index: 1; overflow-x: clip; }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }

/* ---------- pecas comuns ---------- */
.card { background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(14px, 1.8vw, 28px); }
.lbl { font-family: var(--display); font-weight: 800; font-size: clamp(15px, .5vw + 10px, 22px); color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; line-height: 1.1; }
.lbl small { text-transform: none; letter-spacing: 0; font-size: .82em; color: #8a90b8; }
.hint { color: var(--ink2); font-size: clamp(14px, .3vw + 11px, 19px); line-height: 1.3; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px 18px; border-radius: 16px; background: #fff; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: clamp(17px, .5vw + 13px, 24px); line-height: 1.05; text-align: center; box-shadow: 0 4px 0 var(--line), inset 0 0 0 2.5px var(--ink); transition: transform .08s, box-shadow .08s, opacity .2s; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line), inset 0 0 0 2.5px var(--ink); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn.primary { background: var(--mango); box-shadow: 0 5px 0 #c98a12, inset 0 0 0 2.5px var(--ink); }
.btn.primary:active:not(:disabled) { box-shadow: 0 2px 0 #c98a12, inset 0 0 0 2.5px var(--ink); }
.btn.big { min-height: 62px; font-size: clamp(21px, .7vw + 15px, 32px); border-radius: 18px; padding: 10px 22px; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2.5px var(--ink2); color: var(--ink2); }
.btn.offst { background: var(--paper2); color: var(--ink2); }
.btn:disabled { opacity: .5; }
.ibtn { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--paper); background: rgba(255, 255, 255, .1); transition: background .15s; }
.ibtn:active { background: rgba(255, 255, 255, .22); }
.ibtn svg { width: 26px; height: 26px; }
.ibtn.offst { color: var(--coral); }
.tbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: var(--paper); font-family: var(--display); font-weight: 800; font-size: 18px; }
.tbtn svg { width: 22px; height: 22px; flex: none; }
.tbtn.small { background: var(--paper2); color: var(--ink); font-size: 15px; min-height: 48px; text-transform: none; letter-spacing: 0; padding: 0 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row .btn { flex: 1 1 140px; }
.field { width: 100%; min-height: 58px; border-radius: 16px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); padding: 6px 16px; font-size: 22px; font-weight: 800; font-family: var(--display); outline: none; }
.field::placeholder { color: #a6aac8; }
.field:focus { box-shadow: 0 0 0 4px rgba(255, 194, 61, .65); }
.field.code { text-transform: uppercase; letter-spacing: .2em; text-align: center; font-size: 26px; }
.field.shake { animation: shake .4s; }
.msg { background: #ffe1de; color: #9b2620; border-radius: 14px; padding: 10px 14px; font-size: 17px; }
.mascot { aspect-ratio: 120 / 140; height: auto; }

/* ---------- topo das telas de inicio e sala ---------- */
.hbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gut); min-height: 68px; }
.hmini { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 21px; white-space: nowrap; }
.hmini .mascot { width: 32px; }

/* ---------- inicio ---------- */
.homewrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 var(--gut) 28px; width: 100%; max-width: 1300px; margin: 0 auto; }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -40px; }
.brand .mascot { width: clamp(78px, 11vh, 160px); filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .28)); position: relative; z-index: 1; }
.bob { animation: bob 2.8s ease-in-out infinite; }
.logo { font-family: var(--display); font-weight: 800; line-height: .8; display: flex; flex-direction: column; align-items: center; margin-top: -4px; }
.logo .l1 { font-size: clamp(60px, 9vh, 128px); display: flex; gap: .01em; }
.logo .l1 b { display: inline-block; color: var(--c); text-shadow: var(--outline), 0 .12em 0 rgba(0, 0, 0, .28); }
.logo .l1 b:nth-child(1) { --c: var(--coral); transform: rotate(-7deg); }
.logo .l1 b:nth-child(2) { --c: var(--mango); transform: rotate(4deg) translateY(-.05em); }
.logo .l1 b:nth-child(3) { --c: var(--mint); transform: rotate(-3deg) translateY(.02em); }
.logo .l1 b:nth-child(4) { --c: var(--sky); transform: rotate(7deg) translateY(-.03em); }
.logo .l2 { font-size: clamp(40px, 6vh, 86px); color: var(--paper); letter-spacing: .02em; text-shadow: var(--outline), 0 .12em 0 rgba(0, 0, 0, .28); margin-top: .08em; }
.tagline { margin-top: 10px; color: var(--soft); font-size: clamp(16px, 1.8vh, 24px); }
.homecard { width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 12px; }
.prof { display: flex; flex-direction: column; gap: 6px; }
.prof .lbl:not(:first-child) { margin-top: 8px; }
.avgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.avgrid button { aspect-ratio: 1; border-radius: 50%; min-width: 44px; padding: 0; box-shadow: 0 3px 0 rgba(27, 33, 82, .18); transition: transform .12s, box-shadow .12s; }
.avgrid button svg { width: 100%; height: 100%; border-radius: 50%; }
.avgrid button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6.5px var(--ink); transform: scale(1.08); }
.acts { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.homecard.joinmode .acts { flex-direction: column-reverse; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink2); font-size: 15px; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.joinrow { display: flex; gap: 10px; }
.joinrow .field { flex: 1; min-width: 0; }
.joinrow .btn { flex: none; }
.invite { background: var(--mango); color: var(--ink); border-radius: 14px; padding: 10px 14px; font-family: var(--display); font-size: 20px; text-align: center; }

/* ---------- sala de espera ---------- */
.lobwrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 var(--gut) 8px; width: 100%; max-width: 1560px; margin: 0 auto; align-content: start; }
.lcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.roomcode { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 4vw + 4vh, 132px); letter-spacing: .14em; line-height: .95; color: var(--ink); }
.qrrow { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
#qr { width: clamp(118px, 9vw + 4vh, 240px); height: auto; aspect-ratio: 1; border-radius: 14px; image-rendering: pixelated; flex: none; box-shadow: 0 0 0 2px var(--line); }
.sharebtns { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.cfgrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 2px dashed var(--line); }
.cfgrow:first-of-type { border-top: 0; }
.cfgrow > span { font-family: var(--display); font-size: clamp(18px, .5vw + 13px, 26px); }
.seg { display: flex; background: var(--paper2); border-radius: 15px; padding: 4px; gap: 4px; }
.seg button { min-height: 48px; min-width: 54px; padding: 0 12px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: clamp(17px, .4vw + 13px, 24px); color: var(--ink2); text-align: center; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.guest .seg button:not([aria-pressed="true"]) { opacity: .45; }
.btn.tog[aria-pressed="true"] { background: var(--coral); }
.plhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lobbylist { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(88px, 7vw + 2vh, 170px), 1fr)); gap: 14px 8px; padding-top: 14px; }
.lobbylist .chip { --cs: clamp(64px, 5vw + 2.5vh, 136px); }
.lobbylist .chip .nm { color: var(--ink); font-size: clamp(15px, .4vw + 12px, 24px); max-width: 100%; }
.lobbylist .chip .pts { display: none; }
.lobbylist .chip .face { box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px rgba(0, 0, 0, .18); }
.lobbylist .chip.me .nm { color: #c2410c; }
.ctag { font-size: 13px; color: var(--ink2); min-height: 1em; line-height: 1; }
.avcard { display: flex; flex-direction: column; gap: 10px; }
.avbtn { width: 100%; background: var(--sky); box-shadow: 0 5px 0 #2a7ec4, inset 0 0 0 2.5px var(--ink); }
.avtog { display: flex; gap: 8px; flex-wrap: wrap; }
.avtog .btn { flex: 1 1 130px; }
.lobfoot { position: sticky; bottom: 0; z-index: 5; padding: 14px var(--gut) calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 6px; background: linear-gradient(rgba(13, 21, 53, 0), var(--bg) 45%); }
.lobfoot .go { width: min(100%, 560px); }
.wait { color: var(--soft); font-size: clamp(17px, .6vw + 12px, 28px); text-align: center; padding: 8px 0; }
.wait::after { content: ''; display: inline-block; width: .5em; animation: dots 1.4s steps(4) infinite; text-align: left; }

/* ---------- jogadores (faixa do jogo e sala) ---------- */
.chip { --cs: 48px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; position: relative; transition: opacity .3s, filter .3s; }
.chip .face { position: relative; width: var(--cs); height: var(--cs); flex: none; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 4px 0 3px rgba(0, 0, 0, .3); transition: box-shadow .15s; }
.face .avs { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.face video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: 0; transition: opacity .3s; background: #0b1030; pointer-events: none; }
.chip.live .face video { opacity: 1; }
.chip.mine .face video { transform: scaleX(-1); }
.chip .nm { max-width: calc(var(--cs) + 28px); font-size: 12px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .pts { font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1; color: var(--mango); }
.chip.me .nm { color: var(--mango); }
.chip.off { opacity: .35; filter: grayscale(1); }
.chip .done { position: absolute; right: -5%; bottom: -5%; width: 42%; height: 42%; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 2.5px var(--ink); transform: scale(0); transition: transform .22s cubic-bezier(.3, 1.6, .6, 1); }
.chip .done svg { width: 70%; height: 70%; }
.chip.did .done { transform: scale(1); }
.chip .crown { position: absolute; left: 50%; top: -24%; width: 40%; transform: translateX(-50%) rotate(-10deg); display: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
.chip .crown svg { width: 100%; height: auto; aspect-ratio: 1; }
.chip.owner .crown { display: block; }
.chip .face::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 3.5px solid var(--mint); box-shadow: 0 0 18px 4px rgba(54, 211, 153, .55); opacity: 0; transform: scale(.94); transition: opacity .15s; pointer-events: none; }
.chip.speak .face { box-shadow: 0 0 0 3px var(--mint), 0 4px 0 3px rgba(0, 0, 0, .3); }
.chip.speak .face::after { opacity: 1; animation: ring .45s ease-in-out infinite alternate; }
.chip.target { cursor: pointer; }
.chip.target .face { box-shadow: 0 0 0 4px var(--coral), 0 4px 0 4px rgba(0, 0, 0, .3); }
.chip.target .face::after { opacity: 1; border-color: var(--coral); box-shadow: 0 0 18px 4px rgba(255, 111, 97, .5); animation: ring .7s ease-in-out infinite alternate; }
.chip .gain { position: absolute; left: 50%; top: 10%; transform: translate(-50%, 0); font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1vw + 1vh + 6px, 44px); color: var(--mint); text-shadow: var(--outline); white-space: nowrap; pointer-events: none; opacity: 0; z-index: 3; }
.chip .gain.neg { color: var(--coral); }
.chip .gain.show { animation: gainUp 2.2s ease-out forwards; }

.mini { width: clamp(24px, 1vw + 1.6vh, 46px); height: clamp(24px, 1vw + 1.6vh, 46px); border-radius: 50%; box-shadow: 0 0 0 2px #fff; flex: none; }

/* ---------- jogo ---------- */
.game { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); }
.gbar { display: flex; align-items: center; gap: 8px; padding: 6px var(--gut) 2px; position: relative; z-index: 20; }
.rinfo { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; overflow: hidden; }
.rinfo b { font-family: var(--display); font-size: clamp(19px, .6vw + 14px, 32px); white-space: nowrap; }
.rtype { font-size: clamp(13px, .4vw + 10px, 22px); padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rtype.t-relampago { background: var(--mango); color: var(--ink); }
.rtype.t-ordem { background: var(--mint); color: var(--ink); }
.rtype.t-aposta { background: var(--coral); color: var(--ink); }
.secs { min-width: 52px; height: 44px; padding: 0 10px; border-radius: 14px; background: var(--paper); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 26px; display: grid; place-items: center; flex: none; }
.secs.hurry { background: var(--coral); animation: pulse .5s ease-in-out infinite alternate; }
.gbtns { display: flex; gap: 6px; align-items: center; position: relative; }
.gmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; min-width: 250px; }
.gmenu.open { display: flex; animation: pin .18s ease-out; }
.mitem { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 19px; white-space: nowrap; }
.mitem:hover, .mitem:focus-visible { background: var(--paper2); }
.mitem.warn { color: #c2362e; }
.mitem svg { width: 24px; height: 24px; flex: none; }
.tbar { height: 8px; margin: 4px var(--gut) 0; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.tbar i { display: block; height: 100%; width: 100%; transform-origin: left center; background: linear-gradient(90deg, var(--mint), #8ff3c9); border-radius: inherit; will-change: transform; }
.tbar.mid i { background: var(--mango); }
.tbar.hurry i { background: var(--coral); }
.tbar.idle { visibility: hidden; }
.strip { --n: 3; --csmax: 54px; display: flex; justify-content: center; gap: clamp(6px, 1.4vw, 26px); padding: 14px var(--gut) 4px; min-width: 0; }
.strip .chip { --cs: min(var(--csmax), calc((100vw - 2 * var(--gut)) / var(--n) - 24px)); }
.stage { position: relative; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 6px var(--gut) calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.panel { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 1.5vh, 24px); width: 100%; max-width: 1500px; margin: 0 auto; animation: pin .32s ease-out; }
.ptitle { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 1.4vw + 2.4vh + 6px, 84px); line-height: 1; text-align: center; text-shadow: 0 .06em 0 rgba(0, 0, 0, .35); }
.psub { font-size: clamp(16px, .6vw + 1vh + 8px, 34px); color: var(--soft); text-align: center; max-width: 34em; }
.foot { font-size: clamp(15px, .5vw + .8vh + 8px, 30px); color: var(--soft); text-align: center; min-height: 1.3em; }

/* intro */
.intro { gap: clamp(10px, 2vh, 30px); }
.intro .mascot { width: clamp(80px, 12vh, 200px); animation: hop .9s cubic-bezier(.3, 1.4, .5, 1) both; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .28)); }
.rbadge { display: flex; flex-direction: column; align-items: center; background: var(--paper); color: var(--ink); border-radius: 30px; padding: 10px 34px 14px; box-shadow: var(--shadow); transform: rotate(-3deg); animation: popin .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.rbadge small { font-family: var(--display); font-size: clamp(18px, .8vw + 1.4vh + 6px, 44px); line-height: 1; color: var(--ink2); }
.rbadge b { font-family: var(--display); font-weight: 800; font-size: clamp(70px, 4vw + 7vh, 230px); line-height: .9; }
.t-relampago .rbadge { background: var(--mango); }
.t-ordem .rbadge { background: var(--mint); }
.t-aposta .rbadge { background: var(--coral); }
.intro .ptitle { animation: pin .5s .15s ease-out both; }
.intro .psub { animation: pin .5s .3s ease-out both; }

/* votar */
.cats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 1300px; }
.cat { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 18px; display: flex; flex-direction: row; align-items: center; gap: 14px; min-height: 84px; transition: transform .15s, background .15s; animation: dealin .45s var(--d, 0s) cubic-bezier(.3, 1.4, .5, 1) both; }
.cat svg { width: 58px; height: 58px; flex: none; }
.cat b { font-family: var(--display); font-size: clamp(22px, .9vw + 1.4vh + 8px, 46px); line-height: 1.05; }
.cat[aria-pressed="true"] { background: var(--mango); transform: translateY(-4px) rotate(-1.2deg); box-shadow: 0 0 0 4px var(--paper), var(--shadow); }
.ctick { position: absolute; right: 10px; top: -10px; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--ink); transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.6, .6, 1); }
.ctick svg { width: 24px; height: 24px; }
.cat[aria-pressed="true"] .ctick { transform: scale(1); }

/* cartas */
.hand { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 1040px; }
.gcard { position: relative; background: var(--paper); color: var(--ink); border-radius: 24px; box-shadow: var(--shadow); padding: 14px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 4px solid var(--kc); transition: transform .18s, opacity .25s, filter .25s; animation: dealin .5s var(--d, 0s) cubic-bezier(.3, 1.4, .5, 1) both; }
.gcard.ajuda { --kc: var(--sky); }
.gcard.trav { --kc: var(--coral); }
.gcard .kind { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--kc); color: var(--ink); }
.gcard svg { width: clamp(60px, 4vw + 6vh, 190px); height: auto; aspect-ratio: 1; }
.gcard b { font-family: var(--display); font-size: clamp(26px, 1.1vw + 1.8vh + 6px, 58px); line-height: 1; }
.gcard p { font-size: clamp(15px, .5vw + .9vh + 7px, 28px); color: var(--ink2); line-height: 1.2; }
.gcard[aria-pressed="true"] { transform: translateY(-8px) rotate(-2deg); box-shadow: 0 0 0 5px var(--mango), var(--shadow); }
.hand.done .gcard:not([aria-pressed="true"]) { opacity: .35; filter: grayscale(.7); }
.tbox { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; animation: pin .25s ease-out; }
.tq { font-family: var(--display); font-size: clamp(20px, .8vw + 1.2vh + 8px, 40px); text-align: center; color: var(--mango); }
.targets { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tgt { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 5px 18px 5px 5px; background: var(--paper); color: var(--ink); border-radius: 999px; box-shadow: var(--shadow); font-family: var(--display); font-weight: 800; font-size: clamp(19px, .6vw + 1vh + 8px, 34px); max-width: 100%; }
.tgt svg { width: clamp(46px, 2vw + 3vh, 80px); height: clamp(46px, 2vw + 3vh, 80px); border-radius: 50%; flex: none; }
.tgt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* aposta */
.bets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 1200px; }
.bet { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 20px; display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 78px; border-bottom: 8px solid var(--bc); transition: transform .15s, background .15s, opacity .2s; animation: dealin .45s var(--d, 0s) cubic-bezier(.3, 1.4, .5, 1) both; }
.bet.l0 { --bc: var(--mint); } .bet.l1 { --bc: var(--mango); } .bet.l2 { --bc: var(--coral); }
.bet small { font-family: var(--display); font-size: clamp(22px, .8vw + 1.2vh + 8px, 44px); flex: 1; text-align: left; }
.bet b { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 1.6vw + 2.6vh + 6px, 96px); line-height: 1; }
.bet span { font-size: clamp(14px, .4vw + .8vh + 6px, 24px); color: var(--ink2); }
.bet[aria-pressed="true"] { background: var(--bc); transform: translateY(-4px); box-shadow: 0 0 0 4px var(--paper), var(--shadow); }
.bets.done .bet:not([aria-pressed="true"]) { opacity: .35; }

/* pergunta */
.qp { justify-content: flex-start; gap: clamp(8px, 1.4vh, 22px); }
.qhead { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; width: 100%; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; min-height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .13); font-size: clamp(14px, .4vw + .7vh + 8px, 28px); white-space: nowrap; }
.tag svg { width: 1.7em; height: 1.7em; flex: none; }
.tag.n { padding-left: 12px; }
.tag.help { background: var(--sky); color: var(--ink); }
.qcard { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(12px, 1.4vh + .6vw, 34px) clamp(14px, 2vw, 44px); width: 100%; max-width: 1360px; text-align: center; }
.qlbl { font-size: clamp(13px, .3vw + .6vh + 8px, 24px); color: var(--ink2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.qtext { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 1.1vw + 1.7vh + 6px, 70px); line-height: 1.12; }
.qtext > span { display: inline-block; }
.area { position: relative; width: 100%; max-width: 1360px; }
.opts { display: grid; gap: clamp(8px, .9vw + .3vh, 22px); }
.opts.mc { grid-template-columns: minmax(0, 1fr); }
.opt { position: relative; display: flex; align-items: center; gap: clamp(10px, .8vw, 20px); min-height: clamp(62px, 3vw + 4vh, 156px); padding: 7px clamp(12px, 1vw, 24px) 7px 7px; border-radius: 18px; background: var(--oc); color: var(--ink); box-shadow: 0 5px 0 var(--od), 0 10px 22px rgba(0, 0, 0, .25); text-align: left; transition: transform .12s, opacity .3s, filter .3s, background .3s, color .3s; }
.o0 { --oc: var(--coral); --od: #c04236; } .o1 { --oc: var(--mango); --od: #c4850d; } .o2 { --oc: var(--mint); --od: #1b9467; } .o3 { --oc: var(--sky); --od: #2477bd; }
.opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--od); }
.ob { position: relative; flex: none; width: clamp(44px, 1.6vw + 3vh, 92px); aspect-ratio: 1; border-radius: 14px; background: var(--paper); color: var(--od); display: grid; place-items: center; transition: transform .3s; }
.ob svg { width: 80%; height: 80%; grid-area: 1 / 1; }
.ob b { grid-area: 1 / 1; font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(17px, .6vw + 1.2vh + 4px, 38px); line-height: 1; }
.o1 .ob b { padding-top: .32em; }
.ot { flex: 1; min-width: 0; font-weight: 800; font-size: clamp(18px, .85vw + 1.2vh + 6px, 52px); line-height: 1.12; overflow-wrap: anywhere; transition: transform .3s; }
.otx { display: inline-block; }
.who { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; max-width: 40%; }
.who:empty { display: none; }
.opts.sent .opt:not(.mine) { opacity: .45; filter: saturate(.4); }
.opt.mine { box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px var(--ink), 0 6px 0 8px var(--od); }
.opt.gone { opacity: .2 !important; filter: grayscale(1) !important; }
.opt.gone .ot { text-decoration: line-through; text-decoration-thickness: 3px; }
.opt.shuffle { animation: shake .35s; }
.opts.rev .opt { opacity: .38; filter: grayscale(.75); }
.opts.rev .opt.right { opacity: 1; filter: none; background: var(--ok); color: #fff; --od: #0c7542; animation: yay .55s cubic-bezier(.3, 1.6, .5, 1); }
.opts.rev .opt.wrong { opacity: 1; filter: none; background: var(--bad); color: #fff; --od: #9c252a; }
.mark { position: absolute; right: -10px; top: -12px; width: clamp(34px, 1vw + 2vh, 56px); height: clamp(34px, 1vw + 2vh, 56px); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--ink); z-index: 2; animation: popin .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.mark svg { width: 64%; height: 64%; }
.right > .mark { color: var(--ok); } .wrong > .mark { color: var(--bad); }
.waitq { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(8px, .9vw + .3vh, 22px); width: 100%; }
.waitq i { display: block; height: clamp(50px, 2.6vw + 3.4vh, 130px); border-radius: 18px; background: rgba(255, 255, 255, .08); animation: shimmer 1.2s ease-in-out infinite alternate; }
.waitq i:nth-child(2) { animation-delay: .15s; } .waitq i:nth-child(3) { animation-delay: .3s; } .waitq i:nth-child(4) { animation-delay: .45s; }
.qstat { font-size: clamp(15px, .5vw + .8vh + 8px, 30px); color: var(--soft); text-align: center; min-height: 1.3em; }
.qstat.sent { color: var(--mint); }

/* verdade ou mentira */
.opts.vf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.vf .opt { flex-direction: column; justify-content: center; text-align: center; min-height: clamp(150px, 6vw + 16vh, 400px); padding: 12px; gap: clamp(8px, 1.4vh, 22px); }
.opts.vf .ob { width: clamp(64px, 3vw + 5vh, 150px); border-radius: 50%; color: var(--ink); }
.opts.vf .ob svg { width: 62%; height: 62%; }
.opts.vf .ot { flex: none; font-family: var(--display); font-size: clamp(28px, 1.3vw + 2.4vh + 6px, 80px); line-height: 1; }
.opts.vf .who { max-width: 100%; justify-content: center; }
.vf-v { --oc: var(--mint); --od: #1b9467; } .vf-m { --oc: var(--coral); --od: #c04236; }

/* ordem */
.ordw { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.4vh, 20px); width: 100%; }
.ord { list-style: none; display: flex; flex-direction: column; gap: clamp(7px, 1vh, 14px); width: 100%; max-width: 920px; }
.orow { position: relative; display: flex; align-items: center; gap: 10px; min-height: clamp(58px, 2.6vw + 4vh, 120px); padding: 5px 6px 5px 6px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, .28); touch-action: none; cursor: grab; transition: transform .2s ease, box-shadow .2s, background .3s; -webkit-user-select: none; user-select: none; }
.orow.drag { transition: none; z-index: 3; box-shadow: 0 0 0 4px var(--mango), 0 16px 30px rgba(0, 0, 0, .4); cursor: grabbing; }
.onum { flex: none; width: clamp(40px, 1.4vw + 3vh, 80px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(20px, .7vw + 1.6vh + 4px, 44px); }
.grip { flex: none; width: 22px; color: #9aa0c6; }
.grip svg { width: 22px; height: 22px; }
.orow .otx { flex: 1; min-width: 0; font-weight: 800; font-size: clamp(18px, .8vw + 1.2vh + 6px, 46px); line-height: 1.1; }
.obtn { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--paper2); color: var(--ink); display: grid; place-items: center; }
.obtn svg { width: 26px; height: 26px; }
.obtn:disabled { opacity: .3; }
.ord.sent .orow { cursor: default; }
.ord.sent .obtn, .ord.sent .grip, .ord.rev .obtn, .ord.rev .grip { visibility: hidden; }
.ord.rev .orow.right { background: #d6f7e6; box-shadow: 0 0 0 3px var(--ok), 0 4px 0 3px rgba(0, 0, 0, .25); }
.ord.rev .orow.wrong { background: #ffe1df; box-shadow: 0 0 0 3px var(--bad), 0 4px 0 3px rgba(0, 0, 0, .25); }
.orow .who { max-width: 45%; }
.ready { width: min(100%, 560px); }

/* travessuras na tela de quem recebeu */
.banners { display: flex; flex-direction: column; gap: 8px; align-items: center; width: 100%; }
.banners:empty { display: none; }
.banner { display: flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px; border-radius: 999px; background: var(--coral); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: clamp(19px, .7vw + 1.4vh + 6px, 42px); line-height: 1.05; box-shadow: var(--shadow); animation: wiggle .7s ease-in-out; max-width: 100%; }
.banner.blocked { background: var(--mint); }
.banner .bav { width: clamp(44px, 1.6vw + 3vh, 84px); height: clamp(44px, 1.6vw + 3vh, 84px); border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--paper); }
.banner .ci { width: clamp(36px, 1.2vw + 2.6vh, 70px); height: auto; aspect-ratio: 1; flex: none; }
.banner span { min-width: 0; }
.banners.small { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.banners.small .banner { font-size: clamp(14px, .3vw + .8vh + 7px, 26px); padding: 3px 12px 3px 3px; box-shadow: none; animation: none; }
.banners.small .bav { width: clamp(28px, .8vw + 1.8vh, 48px); height: clamp(28px, .8vw + 1.8vh, 48px); box-shadow: none; }
.banners.small .ci { width: clamp(24px, .6vw + 1.6vh, 42px); }
.fx-espelho .qtext, .fx-espelho .opt .ot, .fx-espelho .opt .ob { transform: scaleX(-1); }
.fx-formiga .qtext > span, .fx-formiga .otx { animation: ant 6s cubic-bezier(.55, 0, .7, 1) both; }
.area.fogged .opts { pointer-events: none; }
.fog { position: absolute; left: -6px; top: -6px; width: calc(100% + 12px); height: calc(100% + 12px); border-radius: 22px; touch-action: none; z-index: 5; cursor: crosshair; transition: opacity .5s; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.fog.gone { opacity: 0; pointer-events: none; }
.foghint { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: clamp(17px, .6vw + 1.2vh + 6px, 36px); white-space: nowrap; transition: opacity .4s; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.foghint.gone { opacity: 0; }

/* revelacao */
.result { font-family: var(--display); font-weight: 800; font-size: clamp(22px, .9vw + 1.6vh + 6px, 50px); padding: 4px 22px; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); animation: popin .45s cubic-bezier(.3, 1.6, .5, 1) both; text-align: center; }
.result.ok { background: var(--ok); color: #fff; }
.result.bad { background: var(--bad); color: #fff; }
.qextra { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.qextra:empty { display: none; }
.plays { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.play { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; background: rgba(255, 255, 255, .13); font-size: clamp(14px, .3vw + .8vh + 7px, 26px); white-space: nowrap; }
.play .ci { width: 1.5em; height: 1.5em; }
.play .mini { width: 1.7em; height: 1.7em; }

/* placar */
.board { list-style: none; width: 100%; max-width: 940px; display: flex; flex-direction: column; gap: clamp(6px, 1vh, 14px); }
.brow { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 8px; background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: 0 4px 0 rgba(0, 0, 0, .28); min-height: clamp(54px, 2.4vw + 4.4vh, 120px); position: relative; }
.brow.me { box-shadow: 0 0 0 4px var(--mango), 0 4px 0 4px rgba(0, 0, 0, .28); }
.brow.off { opacity: .55; }
.brow.flip { transition: transform .8s cubic-bezier(.3, 1.25, .5, 1); }
.brow .pos { font-family: var(--display); font-weight: 800; font-size: clamp(22px, .8vw + 1.6vh + 6px, 50px); width: 1.7em; text-align: center; flex: none; }
.brow .bav { width: clamp(42px, 1.6vw + 3.4vh, 92px); height: clamp(42px, 1.6vw + 3.4vh, 92px); border-radius: 50%; flex: none; }
.brow .bn { flex: 1; min-width: 0; font-size: clamp(18px, .7vw + 1.2vh + 6px, 42px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .bg { font-family: var(--display); font-weight: 800; font-size: clamp(16px, .6vw + 1vh + 6px, 36px); color: var(--ok); white-space: nowrap; }
.brow .bg.neg { color: var(--bad); }
.brow .bs { font-family: var(--display); font-weight: 800; font-size: clamp(22px, .9vw + 1.6vh + 6px, 54px); min-width: 3.2ch; text-align: right; white-space: nowrap; }
.brow:first-child .pos { color: #c88a00; }

/* fim */
.endp { gap: clamp(8px, 1.6vh, 26px); }
.endp .ptitle { animation: popin .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 44px); width: 100%; max-width: 1080px; }
.pcol { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; max-width: 300px; min-width: 0; animation: rise .7s var(--d, 0s) cubic-bezier(.3, 1.3, .5, 1) both; }
.pcol .pav { width: clamp(62px, 4vw + 6vh, 210px); height: clamp(62px, 4vw + 6vh, 210px); border-radius: 50%; box-shadow: 0 0 0 4px var(--paper), 0 6px 0 4px rgba(0, 0, 0, .3); }
.p1 .pav { width: clamp(78px, 5vw + 8vh, 260px); height: clamp(78px, 5vw + 8vh, 260px); animation: bob 1.6s ease-in-out infinite; }
.pcol .pn { font-family: var(--display); font-weight: 800; font-size: clamp(18px, .7vw + 1.4vh + 6px, 44px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 6px; line-height: 1.05; }
.pcol .ps { font-family: var(--display); font-weight: 800; color: var(--mango); font-size: clamp(16px, .6vw + 1.2vh + 6px, 40px); line-height: 1; }
.pblock { width: 100%; border-radius: 18px 18px 8px 8px; background: var(--pc); color: var(--ink); display: flex; justify-content: center; padding-top: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 1.6vw + 3vh + 4px, 104px); line-height: 1; box-shadow: var(--shadow); margin-top: 6px; }
.p1 .pblock { height: clamp(70px, 15vh, 300px); --pc: var(--mango); }
.p2 .pblock { height: clamp(52px, 10vh, 210px); --pc: #cfd8ff; }
.p3 .pblock { height: clamp(38px, 7vh, 150px); --pc: #ffb796; }
.rest { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rest li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .13); font-size: clamp(15px, .4vw + .9vh + 7px, 28px); }
.rest b { font-family: var(--display); color: var(--mango); }
.endacts { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.endacts .btn.big { width: min(100%, 560px); }
.endacts .ghost { color: var(--soft); box-shadow: inset 0 0 0 2.5px rgba(207, 214, 255, .5); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; display: none; }
#confetti.on { display: block; }

/* sem vaga */
.refused { align-items: center; justify-content: center; padding: 20px var(--gut); }
.refcard { width: min(100%, 560px); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.refcard .mascot { width: 96px; transform: rotate(-8deg); }
.refcard h2 { font-family: var(--display); font-size: 34px; line-height: 1; }
.refcard p { font-size: 18px; color: var(--ink2); }
.refcard .row { width: 100%; }

/* janela, aviso, reconectando */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(5, 8, 25, .62); display: grid; place-items: center; padding: 16px; }
.mbox { width: min(100%, 580px); display: flex; flex-direction: column; gap: 12px; max-height: calc(100dvh - 32px); overflow: auto; animation: popin .3s cubic-bezier(.3, 1.4, .5, 1) both; }
.mbox h3 { font-family: var(--display); font-size: clamp(24px, 1vw + 16px, 34px); line-height: 1.05; }
.mbox p { font-size: 18px; color: var(--ink2); }
.mbox p:empty { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: var(--paper); color: var(--ink); padding: 12px 20px; border-radius: 16px; box-shadow: var(--shadow); font-size: 18px; width: max-content; max-width: calc(100vw - 32px); text-align: center; animation: toastin .25s ease-out; }
.down { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 70; background: var(--mango); color: var(--ink); padding: 6px 16px 6px 10px; border-radius: 999px; font-size: 15px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.down i { width: 14px; height: 14px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- animacoes ---------- */
@keyframes pin { from { opacity: 0; transform: translateY(8px); } }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes popin { from { opacity: 0; transform: scale(.4) rotate(-8deg); } }
@keyframes dealin { 0% { opacity: 0; transform: scale(.88); } 60% { opacity: 1; transform: scale(1.03); } }
@keyframes rise { from { opacity: 0; transform: translateY(60px); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes hop { 0% { transform: translateY(40px) scale(.5); opacity: 0; } 60% { transform: translateY(-14px) scale(1.06); opacity: 1; } }
@keyframes ring { from { transform: scale(.95); } to { transform: scale(1.1); } }
@keyframes gainUp { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -14px) scale(1.15); } 70% { opacity: 1; transform: translate(-50%, -24px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -40px) scale(.95); } }
@keyframes pulse { to { transform: scale(1.08); } }
@keyframes shake { 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes wiggle { 0% { transform: scale(.4) rotate(-6deg); opacity: 0; } 40% { transform: scale(1.08) rotate(3deg); opacity: 1; } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
@keyframes yay { 40% { transform: scale(1.05); } }
@keyframes ant { from { transform: scale(.1); } to { transform: scale(1); } }
@keyframes shimmer { to { background: rgba(255, 255, 255, .16); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

@media (max-width: 440px) { .rtype { display: none; } }

/* ---------- celular em pe, telas maiores que 600 de largura ---------- */
@media (min-width: 600px) {
  .opts.mc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .waitq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat { flex-direction: column; justify-content: center; text-align: center; padding: clamp(12px, 1.6vw, 30px) 10px; min-height: clamp(120px, 10vw + 6vh, 360px); }
  .cat svg { width: clamp(56px, 3.4vw + 5vh, 170px); height: auto; aspect-ratio: 1; }
  .bets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bet { flex-direction: column; justify-content: center; min-height: clamp(120px, 8vw + 8vh, 330px); padding: 14px 10px; }
  .bet small { flex: none; text-align: center; }
  .gcard { padding: clamp(14px, 1.6vw, 30px) clamp(10px, 1.4vw, 28px); }
}

/* ---------- celular deitado (baixo): tudo mais compacto ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  .hbar { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
  .homewrap { flex-direction: row; align-items: flex-start; justify-content: center; gap: 20px; }
  .brand { margin-top: 0; position: sticky; top: 10px; }
  .brand .mascot { width: 64px; }
  .logo .l1 { font-size: 56px; } .logo .l2 { font-size: 38px; }
  .tagline { font-size: 15px; }
  .homecard { max-width: 520px; }
  .avgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
  .lobwrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .roomcode { font-size: 52px; }
  .lobbylist { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .lobbylist .chip { --cs: 58px; }
  .gbar { padding-top: 4px; }
  .rinfo b { font-size: 18px; }
  .secs { height: 40px; font-size: 22px; }
  .ibtn { width: 46px; height: 46px; }
  .tbar { height: 6px; margin-top: 2px; }
  .strip { --csmax: 34px; padding-top: 10px; padding-bottom: 2px; }
  .strip .chip .nm { display: none; }
  .strip .chip .pts { font-size: 13px; }
  .stage { padding-top: 4px; padding-bottom: 4px; }
  .panel, .qp { gap: 6px; }
  .ptitle { font-size: 28px; }
  .psub { font-size: 16px; }
  .qhead .tag { min-height: 28px; font-size: 14px; }
  .qcard { padding: 8px 14px; }
  .qlbl { font-size: 12px; margin-bottom: 0; }
  .qtext { font-size: 20px; }
  .opt { min-height: 50px; padding: 4px 10px 4px 4px; border-radius: 14px; }
  .ob { width: 40px; border-radius: 11px; }
  .ot { font-size: 18px; }
  .opts.vf .opt { min-height: 120px; }
  .opts.vf .ob { width: 54px; }
  .opts.vf .ot { font-size: 28px; }
  .orow { min-height: 46px; }
  .onum { width: 34px; font-size: 19px; }
  .orow .otx { font-size: 18px; }
  .obtn { width: 46px; height: 46px; }
  .ord { gap: 6px; }
  .waitq i { height: 46px; }
  .cat { min-height: 96px; padding: 8px; gap: 6px; }
  .cat svg { width: 44px; }
  .cat b { font-size: 21px; }
  .hand { max-width: 760px; }
  .gcard { flex-direction: row; text-align: left; flex-wrap: wrap; justify-content: center; padding: 10px 12px; gap: 4px 10px; }
  .gcard svg { width: 54px; }
  .gcard b { font-size: 26px; }
  .gcard p { font-size: 15px; flex-basis: 100%; text-align: center; }
  .gcard .kind { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
  .qp.k-ord { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-rows: auto auto auto auto 1fr; align-items: start; align-content: start; column-gap: 14px; row-gap: 8px; }
  .qp.k-ord > .qhead { grid-column: 1; grid-row: 1; }
  .qp.k-ord > .banners { display: none; }
  .qp.k-ord > .qcard { grid-column: 1; grid-row: 2; }
  .qp.k-ord > .qstat { grid-column: 1; grid-row: 3; }
  .qp.k-ord > .qextra { grid-column: 1; }
  .qp.k-ord > .area, .qp.k-ord .ordw { display: contents; }
  .qp.k-ord .ord { grid-column: 2; grid-row: 1 / span 5; }
  .qp.k-ord .ready { grid-column: 1; grid-row: 4; width: 100%; min-height: 50px; font-size: 21px; }
  .qp.k-ord > .qextra { grid-row: 5; }
  .orow { padding-top: 3px; padding-bottom: 3px; }
  .bet { min-height: 92px; }
  .bet b { font-size: 34px; }
  .banners { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .banner { font-size: 16px; padding: 3px 12px 3px 3px; box-shadow: none; }
  .banner .bav { width: 30px; height: 30px; box-shadow: none; }
  .banner .ci { width: 26px; }
  .cardp .psub { display: none; }
  .tbox { gap: 6px; }
  .tq { font-size: 18px; }
  .tgt { min-height: 48px; font-size: 18px; padding: 3px 14px 3px 3px; }
  .tgt svg { width: 42px; height: 42px; }
  .rbadge b { font-size: 64px; }
  .rbadge { padding: 6px 26px 8px; }
  .rbadge small { font-size: 17px; }
  .intro .mascot { display: none; }
  .brow { min-height: 46px; padding-top: 3px; padding-bottom: 3px; }
  .brow .bav { width: 38px; height: 38px; }
  .board { gap: 5px; }
  .podium { max-width: 640px; }
  .p1 .pav { width: 70px; height: 70px; } .pcol .pav { width: 56px; height: 56px; }
  .p1 .pblock { height: 54px; } .p2 .pblock { height: 40px; } .p3 .pblock { height: 30px; }
  .pblock { font-size: 28px; }
  .result { font-size: 21px; }
  .mark { width: 32px; height: 32px; }
}

/* ---------- notebook e TV ---------- */
@media (min-width: 900px) and (min-height: 560px) {
  .brand { margin-top: 0; }
  .homewrap { flex-direction: row; justify-content: center; align-items: center; gap: 6vw; padding-bottom: 6vh; }
  .brand .mascot { width: clamp(150px, 22vh, 320px); }
  .logo .l1 { font-size: clamp(96px, 14vh, 210px); }
  .logo .l2 { font-size: clamp(62px, 9vh, 140px); }
  .tagline { font-size: clamp(20px, 2.4vh, 34px); }
  .homecard { max-width: clamp(480px, 34vw, 700px); }
  .avgrid { gap: clamp(8px, .7vw, 16px); }
  .lobwrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 20px; align-content: center; max-width: min(1700px, 160vh); }
  .lcol { gap: 20px; }
  .lobby .lbl { font-size: clamp(15px, 2vh, 30px); }
  .lobby .hint { font-size: clamp(14px, 1.8vh, 26px); }
  .lobby .btn { font-size: clamp(17px, 2.3vh, 32px); min-height: clamp(50px, 6vh, 80px); }
  .lobby .btn.big { font-size: clamp(21px, 3vh, 42px); min-height: clamp(62px, 8vh, 110px); }
  .roomcode { font-size: clamp(56px, 11vh, 160px); }
  #qr { width: clamp(118px, 22vh, 300px); }
  .cfgrow > span { font-size: clamp(18px, 2.6vh, 36px); }
  .seg button { font-size: clamp(17px, 2.3vh, 32px); min-height: clamp(48px, 5.4vh, 72px); min-width: clamp(54px, 6vh, 90px); }
  .lobbylist { grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 15vh, 210px), 1fr)); }
  .lobbylist .chip { --cs: clamp(66px, 11vh, 160px); }
  .lobbylist .chip .nm { font-size: clamp(15px, 2.2vh, 30px); }
  .ctag { font-size: clamp(13px, 1.6vh, 22px); }
  .wait { font-size: clamp(17px, 2.6vh, 36px); }
  .hmini { font-size: clamp(21px, 2.6vh, 36px); }
  .hmini .mascot { width: clamp(32px, 4.4vh, 60px); }
  .gmenu { display: flex; position: static; flex-direction: row; background: none; box-shadow: none; padding: 0; min-width: 0; color: var(--paper); gap: 6px; animation: none; }
  .menubtn { display: none; }
  .mitem { min-height: 48px; background: rgba(255, 255, 255, .1); font-size: clamp(16px, .4vw + 11px, 22px); padding: 0 14px; }
  .mitem:hover, .mitem:focus-visible { background: rgba(255, 255, 255, .2); }
  .mitem.warn { color: #ffb3ab; }
  .gbar { padding-top: clamp(8px, 1.2vh, 18px); }
  .ibtn { width: clamp(48px, 2.6vw + 1vh, 66px); height: clamp(48px, 2.6vw + 1vh, 66px); }
  .ibtn svg { width: 55%; height: 55%; }
  .secs { height: clamp(44px, 2.4vw + 1vh, 66px); min-width: clamp(52px, 3vw + 1vh, 84px); font-size: clamp(26px, 1.2vw + 1vh + 6px, 44px); }
  .tbar { height: clamp(8px, .8vh, 14px); }
  .strip { --csmax: clamp(54px, 8.2vh, 104px); padding-top: clamp(16px, 2.2vh, 30px); }
  .strip .chip .nm { font-size: clamp(14px, 1.5vh, 22px); }
  .strip .chip .pts { font-size: clamp(16px, 1.8vh, 28px); }
  .stage { padding-top: clamp(6px, 1vh, 16px); }
  .qp { justify-content: center; }
  .qextra, .qextra:empty { display: flex; min-height: clamp(44px, 7vh, 130px); }
  .qtext { font-size: clamp(30px, 5.2vh, 78px); }
  .qcard { padding: clamp(14px, 2.4vh, 40px) clamp(20px, 2.4vw, 56px); }
  .opt { min-height: clamp(84px, 13.5vh, 200px); border-radius: clamp(18px, 2vh, 28px); }
  .ot { font-size: clamp(24px, 4.2vh, 62px); }
  .ob { width: clamp(52px, 7vh, 112px); border-radius: clamp(14px, 1.6vh, 24px); }
  .ob b { font-size: clamp(20px, 3.2vh, 48px); }
  .opts.vf .opt { min-height: clamp(170px, 32vh, 440px); }
  .opts.vf .ob { width: clamp(70px, 12vh, 170px); }
  .opts.vf .ot { font-size: clamp(38px, 7.5vh, 110px); }
  .orow { min-height: clamp(54px, 7.4vh, 120px); }
  .ordw { flex-direction: row; align-items: flex-end; justify-content: center; gap: clamp(12px, 1.6vw, 32px); }
  .ord { flex: 1; }
  .ready { width: auto; min-width: clamp(180px, 14vw, 320px); flex: none; }
  .orow .otx { font-size: clamp(22px, 4vh, 58px); }
  .onum { width: clamp(44px, 7vh, 96px); font-size: clamp(22px, 3.8vh, 52px); }
  .ptitle { font-size: clamp(40px, 7vh, 112px); }
  .psub { font-size: clamp(20px, 3vh, 46px); }
  .foot, .qstat { font-size: clamp(18px, 2.6vh, 38px); }
  .tag { font-size: clamp(18px, 2.6vh, 36px); }
  .cats { max-width: 1600px; }
  .cat { min-height: clamp(170px, 32vh, 460px); }
  .cat svg { width: clamp(70px, 14vh, 220px); }
  .cat b { font-size: clamp(26px, 4.6vh, 68px); }
  .hand { max-width: clamp(700px, 70vw, 1400px); }
  .gcard svg { width: clamp(70px, 14vh, 230px); }
  .gcard b { font-size: clamp(30px, 5vh, 76px); }
  .gcard p { font-size: clamp(17px, 2.6vh, 38px); }
  .gcard .kind { font-size: clamp(13px, 1.6vh, 22px); }
  .bets { max-width: 1500px; }
  .bet { min-height: clamp(150px, 28vh, 400px); }
  .bet small { font-size: clamp(26px, 4.4vh, 62px); }
  .bet b { font-size: clamp(40px, 8vh, 130px); }
  .bet span { font-size: clamp(16px, 2.4vh, 34px); }
  .banner { font-size: clamp(22px, 3.6vh, 52px); }
  .board { max-width: clamp(700px, 60vw, 1300px); }
  .brow { min-height: clamp(60px, 8.6vh, 130px); }
  .brow .bn { font-size: clamp(22px, 3.6vh, 52px); }
  .brow .bs, .brow .pos { font-size: clamp(26px, 4.2vh, 62px); }
  .brow .bg { font-size: clamp(20px, 3.2vh, 46px); }
  .brow .bav { width: clamp(46px, 7vh, 104px); height: clamp(46px, 7vh, 104px); }
  .result { font-size: clamp(26px, 4.4vh, 62px); }
  .rbadge b { font-size: clamp(90px, 20vh, 280px); }
  .rbadge small { font-size: clamp(22px, 4vh, 56px); }
  .intro .mascot { width: clamp(90px, 16vh, 240px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fx-formiga .qtext > span, .fx-formiga .otx { animation-duration: 6s !important; }
}
