/* Barões - identidade visual: céu de fim de tarde, mar turquesa, ouro e ameixa. Botões grandes e redondos. */
:root {
  --ink: #2a2140; --ink2: #5b4b7a; --ink3: #8a7ca6; --cream: #fff8ee; --paper: #fffdf8;
  --gold: #ffc233; --gold2: #ff9f1c; --coral: #ff4d6d; --teal: #12b3a6; --sky: #3fa7ff; --mint: #3ddc84; --lilac: #b06cff;
  --glass: rgba(255, 251, 244, .86); --glass2: rgba(255, 251, 244, .94);
  --sh: 0 12px 34px rgba(42, 33, 64, .2), 0 2px 6px rgba(42, 33, 64, .08);
  --r: 22px; --hud-h: 56px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --title: 'Baloo 2', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #8fd0f5; }
body { font: 700 16px/1.35 var(--body); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; touch-action: manipulation; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }
h1, h2, h3 { font-family: var(--title); font-weight: 800; margin: 0; line-height: 1.1; }
h2 { font-size: 20px; }
.muted { color: var(--ink2); font-weight: 700; }
.small { font-size: 13px; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; outline: none; background: linear-gradient(#5fb5f2, #bfe5ff 55%, #ffe3c4); }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
#bubbles, #floats { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
#bubbles { z-index: 5; }   /* os balões de câmera fazem parte do tabuleiro: ficam abaixo dos painéis */
#floats { z-index: 42; }
.nogl { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); background: var(--glass2); padding: 14px 18px; border-radius: 16px; z-index: 2; max-width: 80vw; text-align: center; }

.glass { background: var(--glass); border-radius: var(--r); box-shadow: var(--sh); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .7); }
.screen { position: fixed; inset: 0; z-index: 10; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 16px; cursor: pointer;
  font: 800 17px/1 var(--title); letter-spacing: .01em; color: var(--ink); background: linear-gradient(#ffffff, #f4ede2);
  box-shadow: 0 4px 0 rgba(42, 33, 64, .2), 0 8px 18px rgba(42, 33, 64, .12); transition: transform .08s, box-shadow .08s, filter .15s; user-select: none; -webkit-user-select: none; }
.btn:hover { filter: brightness(1.04); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(42, 33, 64, .2), 0 3px 8px rgba(42, 33, 64, .12); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.35); }
.btn.big { min-height: 58px; font-size: 21px; padding: 14px 22px; border-radius: 20px; }
.btn.wide { width: 100%; }
.btn.primary { background: linear-gradient(#ffe27a, #ffb21f); box-shadow: 0 5px 0 #c47a06, 0 10px 22px rgba(196, 122, 6, .3); }
.btn.teal { background: linear-gradient(#4fe0c9, #12b3a6); color: #fff; box-shadow: 0 5px 0 #0a7d74, 0 10px 22px rgba(10, 125, 116, .28); text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.btn.coral { background: linear-gradient(#ff8da0, #ff4d6d); color: #fff; box-shadow: 0 5px 0 #c22a47, 0 10px 22px rgba(194, 42, 71, .28); text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.btn.sky { background: linear-gradient(#7cc6ff, #3fa7ff); color: #fff; box-shadow: 0 5px 0 #1f72c4, 0 10px 22px rgba(31, 114, 196, .28); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--ink2); }
.btn.ghost:active { transform: none; box-shadow: none; }
.btn.sq { min-width: 46px; padding: 0 12px; }
.btn small { font: 800 13px var(--body); opacity: .8; }
.ibtn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .75); color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 rgba(42, 33, 64, .15); }
.ibtn .ic { width: 24px; height: 24px; }
.ibtn.on { background: var(--gold); }
.ibtn.off { background: #ffd6dd; color: #b3203f; }
.ibtn.sm { width: 34px; height: 34px; border-radius: 10px; }
.ibtn .badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: #fff; font: 800 12px/20px var(--body); font-style: normal; }
.inp { width: 100%; min-height: 50px; padding: 10px 14px; border: 3px solid #eadfcd; border-radius: 16px; background: #fff; font: 800 19px var(--body); color: var(--ink); outline: none; transition: border-color .15s; }
.inp:focus { border-color: var(--gold2); }
.inp.code { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-family: var(--title); font-size: 22px; }
.inp.shake { animation: shake .4s; border-color: var(--coral); }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
.lbl { display: block; font: 800 14px var(--body); color: var(--ink2); margin: 2px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); font: 800 15px var(--body); white-space: nowrap; }
.chip.gold { background: linear-gradient(#ffe27a, #ffc233); }
.chip.watch { background: var(--lilac); color: #fff; }
.notice { background: #efe6ff; border-radius: 14px; padding: 10px 14px; margin: 10px 0; color: #4b2e8a; }

/* ---------- logotipo ---------- */
.logo { position: relative; font: 800 clamp(58px, 13vw, 104px)/.9 var(--title); letter-spacing: .01em; margin: 0 auto; width: max-content; padding: .06em .12em .08em;
  color: var(--ink); -webkit-text-stroke: .15em var(--ink); text-shadow: 0 .08em 0 var(--ink), 0 .18em .22em rgba(42, 33, 64, .35); }
.logo::after { content: attr(data-text); position: absolute; inset: 0; padding: inherit; -webkit-text-stroke: 0; text-shadow: none;
  background: linear-gradient(#fff3a0 8%, #ffd23f 38%, #ff9f1c 70%, #ff6b3d 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-logo { font: 800 24px/1 var(--title); background: linear-gradient(#ffd23f, #ff7a3d); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.2px #2a2140; padding-right: 2px; }

/* ---------- entrada ---------- */
.entry { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; padding: max(16px, var(--safe-t)) 14px max(16px, var(--safe-b)); }
.entry-card { width: min(640px, 100%); padding: 24px 24px 14px; text-align: center; animation: rise .6s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.tagline { margin: 8px auto 16px; max-width: 30em; color: var(--ink2); font-size: 17px; }
.who { display: grid; grid-template-columns: 1fr 190px; gap: 16px; text-align: left; align-items: center; }
.who-prev { display: grid; justify-items: center; gap: 2px; }
.who-prev canvas { width: 180px; height: 180px; filter: drop-shadow(0 12px 12px rgba(42, 33, 64, .25)); background: radial-gradient(circle at 50% 70%, rgba(255, 210, 90, .55), rgba(255, 255, 255, 0) 60%); border-radius: 50%; }
.who-prev b { font: 800 20px var(--title); }
.tok-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tok-pick button { position: relative; aspect-ratio: 1; border: 3px solid transparent; border-radius: 18px; background: rgba(255, 255, 255, .8); padding: 2px; cursor: pointer; transition: transform .15s, border-color .15s; }
.tok-pick button img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.tok-pick button[aria-checked="true"] { border-color: var(--gold2); background: #fff3d2; transform: scale(1.06); box-shadow: 0 6px 14px rgba(255, 159, 28, .35); }
.tok-pick button .taken { position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.tok-pick.small { grid-template-columns: repeat(8, 1fr); gap: 5px; }
.tok-pick.small button { border-radius: 12px; }
.link-join { margin-top: 16px; }
.entry-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.join-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.join-form .inp { min-height: 58px; }
.rooms { margin-top: 18px; text-align: left; }
.rooms h2 { font-size: 18px; margin-bottom: 8px; }
.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 210px; overflow: auto; }
.room-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: rgba(255, 255, 255, .75); border-radius: 16px; }
.room-list .rc { font: 800 22px var(--title); letter-spacing: .12em; min-width: 72px; }
.room-list .rh { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.room-list .rt { display: flex; }
.room-list .rt img { width: 30px; height: 30px; margin-left: -8px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15)); }
.room-list .btn { min-height: 40px; padding: 6px 14px; font-size: 16px; }
.ver { margin: 14px 0 0; font-size: 13px; color: var(--ink3); }

/* ---------- sala de espera ---------- */
.lobby { position: absolute; inset: 0; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); align-items: start; gap: 16px; padding: max(16px, var(--safe-t)) 16px max(16px, var(--safe-b)); max-width: 1120px; margin: 0 auto; align-content: center; }
.lob-main, .lob-side { padding: 20px; animation: rise .5s cubic-bezier(.2, .9, .3, 1.2); }
.lob-main h2, .lob-side h2 { margin: 14px 0 10px; }
.lob-side h2:first-child { margin-top: 0; }
.lob-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.room-code small { display: block; font: 800 13px var(--body); color: var(--ink2); text-transform: uppercase; letter-spacing: .08em; }
.room-code strong { font: 800 64px/0.95 var(--title); letter-spacing: .14em; color: var(--ink); text-shadow: 0 4px 0 rgba(255, 194, 51, .8); }
.lob-share { display: flex; gap: 8px; flex-wrap: wrap; }
.count { font: 800 15px var(--body); color: var(--ink2); }
.lob-players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lob-players li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 8px 10px; border-radius: 20px; background: rgba(255, 255, 255, .78); border: 3px solid var(--pc, #ddd); animation: pop .4s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.lob-players .av { position: relative; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 50% 65%, var(--pcs, #fff), #fff 72%); overflow: visible; }
.lob-players .av img { width: 100%; height: 100%; object-fit: contain; }
.lob-players .av video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: none; border: 3px solid var(--pc); }
.lob-players li.live .av video { display: block; }
.lob-players li.talk .av::after, .pc.talk .pc-av::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 4px solid var(--mint); animation: talk .5s ease-in-out infinite alternate; }
@keyframes talk { to { transform: scale(1.07); opacity: .55; } }
.lob-players .nm { font: 800 18px var(--title); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font: 800 12px var(--body); background: #f1eadf; color: var(--ink2); }
.tag .ic { width: 14px; height: 14px; }
.tag.host { background: #fff0c2; color: #9a5b00; }
.tag.bot { background: #e2efff; color: #1f5fa8; }
.tag.me { background: var(--ink); color: #fff; }
.tag.off { background: #ffe0e5; color: #b3203f; }
.tag.jail { background: #ece3ff; color: #5a2ea8; }
.tag.card { background: #dcfbe9; color: #12784a; }
.tag.out { background: #3a334d; color: #fff; }
.av-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.av-bar .help { flex-basis: 100%; font-size: 13px; color: var(--ink2); }
.cfg { display: grid; gap: 10px; }
.cfg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cfg-row > span { font-weight: 800; }
.seg { display: inline-flex; background: #f1e9dc; border-radius: 14px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { min-height: 40px; min-width: 52px; padding: 4px 10px; border: 0; border-radius: 11px; background: transparent; font: 800 16px var(--title); cursor: pointer; color: var(--ink2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 0 rgba(42, 33, 64, .15); }
.seg button:disabled { cursor: default; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper b { font: 800 24px var(--title); min-width: 24px; text-align: center; }
.toggle { width: 62px; height: 36px; border-radius: 18px; border: 0; background: #e2d9cb; position: relative; cursor: pointer; transition: background .2s; }
.toggle i { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: left .2s; }
.toggle[aria-checked="true"] { background: var(--teal); }
.toggle[aria-checked="true"] i { left: 30px; }
.toggle:disabled { opacity: .55; cursor: default; }
.lob-go { margin-top: 18px; }
.wait { text-align: center; color: var(--ink2); margin: 10px 0; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.lob-me .inp { margin-bottom: 8px; }

/* ---------- aviso, faixa, sirene, números ---------- */
.toasts { position: fixed; left: 50%; top: calc(var(--safe-t) + 70px); transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { background: rgba(42, 33, 64, .94); color: #fff; padding: 11px 18px; border-radius: 16px; font-weight: 800; box-shadow: var(--sh); animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.3); text-align: center; }
.toast.error { background: rgba(200, 40, 70, .95); }
.toast.ok { background: rgba(14, 140, 110, .95); }
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { transform: translateY(-14px) scale(.9); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-10px); opacity: 0; } }
.banner { position: fixed; left: var(--board-cx, 50%); top: var(--board-top, 90px); transform: translate(-50%, -16px) scale(.7); opacity: 0; z-index: 45; pointer-events: none;
  padding: 10px 26px; border-radius: 999px; font: 800 clamp(22px, 4vw, 34px)/1.1 var(--title); color: var(--ink); background: linear-gradient(#ffffff, #fff1d6); box-shadow: var(--sh); transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), opacity .25s; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.banner.gold { background: linear-gradient(#ffe27a, #ffb21f); }
.banner.me { background: linear-gradient(#5ff0d4, #12b3a6); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.banner.bad { background: linear-gradient(#ff8da0, #ff4d6d); color: #fff; }
.banner.lilac { background: linear-gradient(#d6b4ff, #9b5cf2); color: #fff; }
.siren { position: fixed; inset: 0; z-index: 44; pointer-events: none; }
.siren.on { animation: siren .32s steps(1) infinite; }
@keyframes siren { 0% { background: radial-gradient(ellipse at 0% 0%, rgba(255, 40, 80, .5), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(255, 40, 80, .3), transparent 55%); } 50% { background: radial-gradient(ellipse at 100% 0%, rgba(40, 110, 255, .5), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(40, 110, 255, .3), transparent 55%); } }
.float { position: fixed; transform: translate(-50%, -50%); font: 800 26px/1 var(--title); white-space: nowrap; animation: floatUp 1.7s cubic-bezier(.2, .8, .3, 1) forwards; text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 4px 10px rgba(0, 0, 0, .25); }
.float.plus { color: #0f9d58; } .float.minus { color: #e02d4f; } .float.info { color: var(--ink); font-size: 22px; } .float.gold { color: #d98a00; font-size: 30px; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 30% { transform: translate(-50%, -70%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -190%) scale(1); } }
.epop { position: fixed; transform: translate(-50%, -50%); font-size: 44px; line-height: 1; animation: epop 1.9s cubic-bezier(.2, .8, .3, 1) forwards; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.epop.big { font-size: 64px; }
@keyframes epop { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 18% { transform: translate(-50%, -80%) scale(1.35); opacity: 1; } 30% { transform: translate(-50%, -90%) scale(1); } 100% { transform: translate(calc(-50% + var(--dx, 0px)), -260%) scale(.9); opacity: 0; } }

/* ---------- carta de Notícia ---------- */
.cardflip { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(42, 33, 64, .3); perspective: 1200px; animation: fadeIn .2s; cursor: pointer; }
.cardflip.out { animation: fadeOut .22s forwards; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
.card3d { position: relative; width: min(74vw, 330px); aspect-ratio: 5 / 7; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, .9, .3, 1.15); animation: cardIn .4s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes cardIn { from { transform: translateY(80px) rotateZ(-14deg) scale(.5); } }
.card3d.flip { transform: rotateY(180deg); }
.cf { position: absolute; inset: 0; border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; align-content: center; gap: 10px; padding: 26px; text-align: center; box-shadow: 0 24px 50px rgba(42, 33, 64, .35); }
.cf.front { background: repeating-linear-gradient(45deg, #ff9f1c 0 18px, #ff8a3d 18px 36px); border: 8px solid #fff; color: #fff; }
.cf.front b { font: 800 52px var(--title); text-shadow: 0 4px 0 rgba(42, 33, 64, .35); }
.cf.front span { font: 800 18px var(--title); opacity: .9; }
.cf-ic { width: 90px; height: 90px; color: #fff; }
.cf.back { transform: rotateY(180deg); background: linear-gradient(#fffdf6, #fff1d6); border: 8px solid #ff9f1c; }
.cardflip.good .cf.back { border-color: var(--mint); } .cardflip.bad .cf.back { border-color: var(--coral); }
.cf.back b { font: 800 30px var(--title); color: #e2672a; }
.cf.back p { margin: 0; font: 800 clamp(22px, 5vw, 27px)/1.25 var(--title); color: var(--ink); }

/* ---------- janela (ficha, troca, regras) ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(30, 20, 52, .42); padding: 14px; animation: fadeIn .18s; }
.sheet { position: relative; width: min(560px, 100%); max-height: min(88vh, 900px); overflow: auto; padding: 22px 20px 20px; background: var(--glass2); animation: rise .3s cubic-bezier(.2, .9, .3, 1.15); overscroll-behavior: contain; }
.sheet-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.sheet h2 { font-size: 26px; padding-right: 44px; }
.sheet .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sheet .row .btn { flex: 1 1 140px; }
.sheet p { margin: 8px 0; }
.rules-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules-list li { background: rgba(255, 255, 255, .75); border-radius: 16px; padding: 10px 14px; }
.rules-list b { display: block; font: 800 18px var(--title); color: #c25e00; }

/* ---------- fim ---------- */
.end { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 14px; background: radial-gradient(circle at 50% 30%, rgba(255, 226, 122, .35), rgba(42, 33, 64, .55)); animation: fadeIn .4s; overflow: auto; }
.end-card { width: min(640px, 100%); padding: 24px 20px; text-align: center; }
.end-title { font-size: clamp(32px, 7vw, 48px); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 18px 0 8px; }
.pod { display: grid; justify-items: center; gap: 4px; animation: rise .7s cubic-bezier(.2, .9, .3, 1.3) backwards; }
.pod img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .25)); }
.pod.p1 img { width: 128px; height: 128px; animation: winner 1.1s ease-in-out infinite alternate; }
@keyframes winner { to { transform: translateY(-8px) rotate(4deg); } }
.pod .nm { font: 800 19px var(--title); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .wv { font-weight: 800; color: var(--ink2); }
.pod .step { width: 100%; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font: 800 38px var(--title); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.pod.p1 .step { height: 130px; background: linear-gradient(#ffe27a, #ffb21f); } .pod.p2 .step { height: 96px; background: linear-gradient(#e3e8f2, #a9b6cc); } .pod.p3 .step { height: 72px; background: linear-gradient(#ffc89a, #d98a5a); }
.pod.p1 { animation-delay: .25s; } .pod.p3 { animation-delay: .1s; }
.rank-rest { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.rank-rest li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); }
.rank-rest img { width: 36px; height: 36px; }
.rank-rest .nm { flex: 1; text-align: left; }
.end-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.end-actions .wait { flex-basis: 100%; }

@media (max-width: 620px) {
  .who { grid-template-columns: 1fr 120px; gap: 10px; }
  .who-prev canvas { width: 118px; height: 118px; }
  .who-prev b { font-size: 16px; }
  .entry-card { padding: 18px 14px 12px; }
  .entry-actions { grid-template-columns: 1fr; }
  .tagline { font-size: 15px; margin-bottom: 12px; }
  .lobby { grid-template-columns: 1fr; align-content: start; }
  .room-code strong { font-size: 52px; }
  .lob-players { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lob-players .av { width: 72px; height: 72px; }
  .lob-players .nm { font-size: 16px; }
  .modal { place-items: end center; padding: 0; }
  .sheet { border-radius: 26px 26px 0 0; max-height: 90vh; padding-bottom: calc(20px + var(--safe-b)); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .entry { place-items: start center; }
  .who-prev canvas { width: 120px; height: 120px; }
  .logo { font-size: 54px; }
  .lobby { align-content: start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* campos dentro de grade não podem alargar a tela (a largura natural do <input> é grande) */
.inp { min-width: 0; }
.entry-card, .who-form, .join-form, .lob-main, .lob-side { min-width: 0; }
.end-card, .pod { min-width: 0; }
.pod img { max-width: 100%; }
@media (max-width: 620px) {
  .end-card { padding: 20px 14px; }
  .podium { gap: 6px; }
  .pod img { width: 72px; height: 72px; }
  .pod.p1 img { width: 96px; height: 96px; }
  .pod .nm { font-size: 16px; }
  .pod .step { font-size: 30px; }
  .pod.p1 .step { height: 104px; } .pod.p2 .step { height: 78px; } .pod.p3 .step { height: 60px; }
}
/* lista de salas no celular: sem os retratos, o botão Entrar cabe */
@media (max-width: 620px) { .room-list .rt { display: none; } .room-list li { gap: 8px; } }
