/* =====================================================================
   DIZ LÁ A VERDADE! — identidade visual
   Jogo criado por Sandra Domingues
   Verde-pinheiro, vermelho-Natal, dourado e creme
   ===================================================================== */
:root {
  --pine: #0d3b2c;
  --pine-2: #145a41;
  --pine-3: #071f17;
  /* ecrã de quem tem a vez (verde) e de quem adivinha (vermelho) */
  --vez-1: #1f8a5c; --vez-2: #0f5a3c; --vez-3: #06301f;
  --adiv-1: #d23a45; --adiv-2: #9b1a27; --adiv-3: #4f0b13;
  --red: #b3202e;
  --red-2: #7d1420;
  --gold: #f6c445;
  --gold-2: #e3a412;
  --cream: #fff7e8;
  --ink: #2b1a12;
  --muted: #7a6656;
  --ok: #1f9d55;
  --ko: #d23b3b;
  --radius: 20px;
  --shadow: 0 10px 0 rgba(0,0,0,.18), 0 18px 40px rgba(0,0,0,.25);
  --font-title: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--cream);
  background: radial-gradient(120% 80% at 50% 0%, var(--pine-2) 0%, var(--pine) 55%, var(--pine-3) 100%) fixed;
  transition: background .6s ease;
  min-height: 100dvh;
  overflow-x: hidden;
}
body.role-focus { background: radial-gradient(120% 80% at 50% 0%, var(--vez-1) 0%, var(--vez-2) 50%, var(--vez-3) 100%) fixed; }
body.role-guess { background: radial-gradient(120% 80% at 50% 0%, var(--adiv-1) 0%, var(--adiv-2) 50%, var(--adiv-3) 100%) fixed; }

/* neve */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 200px 160px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 300px 40px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60px 220px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 260px 260px, #fff 50%, transparent 51%);
  background-size: 340px 300px;
  animation: snow 18s linear infinite; }
@keyframes snow { from { background-position: 0 0; } to { background-position: 60px 600px; } }

#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); min-height: 100dvh; display: flex; flex-direction: column; }

/* tipografia */
h1, h2, h3, .title { font-family: var(--font-title); font-weight: 400; letter-spacing: .5px; margin: 0; line-height: 1.05; }
.logo { font-size: clamp(44px, 13vw, 72px); color: var(--gold); text-align: center; text-shadow: 0 4px 0 var(--red-2), 0 8px 18px rgba(0,0,0,.35); transform: rotate(-3deg); }
.logo small { display: block; font-size: .42em; color: var(--cream); text-shadow: 0 3px 0 rgba(0,0,0,.35); transform: rotate(2deg); margin-top: 8px; }
.h2 { font-family: var(--font-title); font-size: 30px; color: var(--gold); text-shadow: 0 3px 0 rgba(0,0,0,.3); }
p { line-height: 1.5; }
.center { text-align: center; }
.muted { color: rgba(255,247,232,.75); }
.small { font-size: 14px; }
.grow { flex: 1; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { height: 10px; }

/* cartões */
.card { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: relative; }
.card h3 { font-size: 22px; color: var(--red); margin-bottom: 8px; }
.card ul { margin: 6px 0 0; padding-left: 20px; }
.card li { margin: 5px 0; line-height: 1.4; }
.card.glass { background: rgba(255,247,232,.12); color: var(--cream); box-shadow: none; border: 2px solid rgba(255,247,232,.22); backdrop-filter: blur(6px); }
.ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-family: var(--font-title); padding: 6px 16px; border-radius: 999px; font-size: 15px; white-space: nowrap; box-shadow: 0 4px 0 var(--red-2); }

/* botões */
button { font-family: inherit; cursor: pointer; border: 0; }
.btn { display: block; width: 100%; padding: 17px 20px; border-radius: 18px; font-family: var(--font-title); font-size: 22px; letter-spacing: .5px; color: var(--ink); background: var(--gold); box-shadow: 0 6px 0 var(--gold-2), 0 12px 24px rgba(0,0,0,.25); transition: transform .08s ease, box-shadow .08s ease; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-2), 0 6px 12px rgba(0,0,0,.25); }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-2), 0 12px 24px rgba(0,0,0,.25); }
.btn.ghost { background: rgba(255,247,232,.14); color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255,247,232,.35); font-size: 18px; }
.btn.small { padding: 11px 14px; font-size: 17px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chipbtn { background: rgba(0,0,0,.25); color: var(--cream); padding: 9px 13px; border-radius: 999px; font-weight: 800; font-size: 14px; border: 2px solid rgba(255,247,232,.25); }
.chipbtn.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* formulários */
label.lbl { display: block; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
input[type=text], select { width: 100%; font: 800 20px var(--font); padding: 15px 16px; border-radius: 14px; border: 3px solid #e8d8bd; background: #fff; color: var(--ink); outline: none; }
input[type=text]:focus, select:focus { border-color: var(--gold-2); }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; padding: 13px 8px; border-radius: 14px; font-weight: 900; font-size: 16px; background: #f1e4cc; color: var(--ink); }
.seg button.on { background: var(--red); color: #fff; }

/* topo de jogo */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; min-height: 40px; }
.endbtn { background: rgba(0,0,0,.3); color: #fff; font-weight: 900; font-size: 13px; padding: 9px 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,.25); }
.endbtn.on { background: #fff; color: var(--red); }
.turnchip { background: rgba(0,0,0,.3); padding: 7px 12px; border-radius: 12px; font-weight: 800; font-size: 13px; text-align: right; line-height: 1.15; max-width: 55%; }
.turnchip b { display: block; font-size: 16px; color: var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roundno { font-family: var(--font-title); font-size: 15px; opacity: .8; }

/* pergunta */
.catchip { display: inline-flex; gap: 6px; align-items: center; background: var(--gold); color: var(--ink); font-weight: 900; padding: 6px 12px; border-radius: 999px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.qtext { font-family: var(--font-title); font-size: clamp(25px, 7vw, 34px); line-height: 1.12; margin: 12px 0 8px; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.rolebanner { border-radius: 16px; padding: 12px 14px; font-weight: 800; font-size: 15px; background: rgba(0,0,0,.25); border: 2px dashed rgba(255,255,255,.35); margin-bottom: 14px; line-height: 1.35; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; background: var(--cream); color: var(--ink); border-radius: 16px; padding: 13px 15px; font-size: 15px; line-height: 1.3; box-shadow: 0 5px 0 rgba(0,0,0,.2); transition: transform .08s, opacity .2s, box-shadow .2s; }
.opt b { display: block; font-size: 17px; font-weight: 900; color: var(--red); margin-bottom: 2px; }
.opt span { color: #5a4636; }
.opt:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.opt.sel { background: var(--gold); box-shadow: 0 0 0 4px #fff, 0 5px 0 rgba(0,0,0,.2); }
.opt.dim { opacity: .4; }
.opt.right { background: #d9f7e6; box-shadow: 0 0 0 4px var(--ok); }
.opts.locked .opt { pointer-events: none; }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yn .opt { text-align: center; padding: 28px 10px; }
.yn .opt b { font-family: var(--font-title); font-weight: 400; font-size: 34px; margin: 0; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.people .opt { text-align: center; padding: 18px 8px; }
.people .opt b { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.status { text-align: center; font-weight: 800; margin-top: 14px; font-size: 15px; }
.lockmsg { background: rgba(0,0,0,.28); border-radius: 14px; padding: 12px; text-align: center; font-weight: 900; margin-top: 14px; }

/* temporizador */
.timer { margin: 4px 0 12px; }
.timer .bar { height: 12px; border-radius: 99px; background: rgba(0,0,0,.3); overflow: hidden; }
.timer .fill { height: 100%; background: linear-gradient(90deg, var(--gold), #fff2b8); border-radius: 99px; transition: width .25s linear; }
.timer .fill.hurry { background: linear-gradient(90deg, #ff6a5a, #ffd0c8); }
.timer .secs { font-family: var(--font-title); font-size: 15px; text-align: right; margin-top: 4px; opacity: .85; }

/* revelação */
.bigbanner { font-family: var(--font-title); font-size: clamp(28px, 8vw, 40px); text-align: center; color: var(--gold); text-shadow: 0 4px 0 rgba(0,0,0,.3); margin: 6px 0 14px; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.truth { border: 4px solid var(--gold); }
.truth .who { font-weight: 900; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .6px; }
.truth .ans b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 26px; color: var(--red); margin: 4px 0; }
.mine { text-align: center; font-weight: 900; font-size: 19px; padding: 14px; border-radius: 16px; margin: 14px 0; }
.mine.ok { background: var(--ok); }
.mine.ko { background: var(--ko); }
.mine.neu { background: rgba(0,0,0,.28); }
.glist { list-style: none; padding: 0; margin: 0; }
.glist li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #e3d2b3; font-size: 15px; }
.glist li:last-child { border: 0; }
.glist .nm { font-weight: 900; }
.glist .ch { color: var(--muted); text-align: right; }
.bars .b { margin: 8px 0; }
.bars .lbl2 { display: flex; justify-content: space-between; font-weight: 900; font-size: 15px; margin-bottom: 4px; }
.bars .track { height: 18px; background: #efe1c6; border-radius: 99px; overflow: hidden; }
.bars .val { height: 100%; background: linear-gradient(90deg, var(--red), #e2515c); border-radius: 99px; animation: grow .8s ease-out; }
@keyframes grow { from { width: 0 !important; } }
.repcard { background: linear-gradient(135deg, #fff7e8, #ffe9b8); }
.clap { font-size: 46px; padding: 18px; border-radius: 50%; width: 110px; height: 110px; margin: 10px auto 0; display: grid; place-items: center; background: var(--gold); box-shadow: 0 7px 0 var(--gold-2), 0 14px 30px rgba(0,0,0,.3); }
.clap:active { transform: translateY(4px) scale(.96); }
.clap.done { background: #fff; animation: wiggle .5s; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.hint { background: #fff; border-left: 6px solid var(--gold); border-radius: 12px; padding: 12px 14px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.hint b { color: var(--red); }

/* sala de espera */
.plist { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.plist li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px dashed #e3d2b3; font-weight: 800; font-size: 17px; animation: pop .35s ease-out; }
.plist li:last-child { border: 0; }
.plist .num { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--font-title); font-size: 16px; flex: none; }
.plist .me { color: var(--red); }
.plist .off { opacity: .45; }
.tag { font-size: 12px; background: var(--gold); color: var(--ink); padding: 2px 8px; border-radius: 99px; font-weight: 900; }
.countdown { font-family: var(--font-title); font-size: 56px; text-align: center; color: var(--gold); text-shadow: 0 4px 0 rgba(0,0,0,.3); }
.code { font-family: var(--font-title); letter-spacing: 6px; font-size: 34px; color: var(--red); text-align: center; }
.linkbox { background: #fff; border: 2px dashed #e3d2b3; border-radius: 12px; padding: 10px; font-size: 13px; word-break: break-all; text-align: center; color: var(--muted); }

/* introdução */
.introlist { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 16px 0; }
.introname { font-family: var(--font-title); font-size: 26px; animation: drop .45s cubic-bezier(.2,1.5,.4,1); }
.introname.old { opacity: .45; font-size: 20px; }
.arrow { opacity: .6; font-size: 18px; }
@keyframes drop { from { transform: translateY(-30px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.drum { font-size: 54px; text-align: center; animation: shake .25s infinite; }
@keyframes shake { 50% { transform: translateX(4px) rotate(4deg); } }
.firstname { font-family: var(--font-title); font-size: clamp(40px, 12vw, 60px); color: var(--gold); text-align: center; text-shadow: 0 5px 0 var(--red-2); animation: pop .6s cubic-bezier(.2,1.6,.4,1); }

/* vencedor e pódio */
.trophy { font-size: 110px; text-align: center; animation: bounce 1s infinite; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
@keyframes bounce { 50% { transform: translateY(-14px) rotate(-4deg); } }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; margin: 10px 0 18px; }
.pod { text-align: center; }
.pod .nm { font-weight: 900; font-size: 15px; overflow-wrap: anywhere; margin-bottom: 4px; }
.pod .pts { font-size: 13px; opacity: .85; margin-bottom: 6px; }
.pod .blk { border-radius: 14px 14px 4px 4px; display: grid; place-items: center; font-family: var(--font-title); font-size: 34px; color: var(--ink); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15); }
.pod.p1 .blk { height: 130px; background: var(--gold); }
.pod.p2 .blk { height: 95px; background: #dfe6ee; }
.pod.p3 .blk { height: 70px; background: #e9a46a; }
.pod .med { font-size: 34px; }
.rank li { display: flex; justify-content: space-between; }
.rank .me { color: var(--red); }
.titles { display: grid; gap: 10px; }
.titlecard { display: flex; gap: 12px; align-items: center; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 12px; }
.titlecard .ic { font-size: 30px; }
.titlecard b { color: var(--red); display: block; }
.titlecard small { color: var(--muted); }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ilustração do ecrã inicial */
.hero { width: min(330px, 86vw); margin: 10px auto 0; display: block; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(2deg); } }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; z-index: 10; transition: transform .3s, visibility .3s; max-width: 90vw; text-align: center; visibility: hidden; }
#toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }

.fade-in { animation: fadein .35s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, .snow { animation: none !important; transition: none !important; } }

#app.still .fade-in, #app.still .bigbanner, #app.still .plist li, #app.still .bars .val { animation: none; }
.introname.old { animation: none; }

/* partilha e créditos */
.credit { font-size: 12px; opacity: .6; text-align: center; margin-top: 18px; }
.sharegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sharegrid .btn { font-size: 17px; padding: 13px 10px; }
.btn.wa { background: #25d366; color: #fff; box-shadow: 0 6px 0 #179c4a, 0 12px 24px rgba(0,0,0,.25); }
.btn.fb { background: #1877f2; color: #fff; box-shadow: 0 6px 0 #0f56b3, 0 12px 24px rgba(0,0,0,.25); }
.btn.line { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 2px #e3d2b3; }
.shareprev { width: 100%; border-radius: 14px; display: block; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.mailnote { font-size: 14px; text-align: center; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.25); }

.btn.ig { color: #fff; background: linear-gradient(45deg, #f9a13a 0%, #e1306c 45%, #8a3ab9 100%); box-shadow: 0 6px 0 #6a2a8f, 0 12px 24px rgba(0,0,0,.25); }
/* ecrã informativo */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed #e3d2b3; line-height: 1.4; }
.steps li:last-child { border: 0; }
.steps .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #fbeccd; }
.steps b { color: var(--red); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats span { background: #fbeccd; color: var(--ink); border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { background: rgba(255,247,232,.12); border: 2px solid rgba(255,247,232,.22); border-radius: 14px; padding: 12px; text-align: center; font-weight: 800; font-size: 14px; line-height: 1.3; }
.facts div b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 24px; color: var(--gold); }

.fora li { align-items: center; }
.fora small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 2px; line-height: 1.3; }
.fora .ch b { color: var(--ink); white-space: nowrap; }

/* ecrã inicial: casa de Natal com gargalhadas */
.scene { position: relative; width: min(380px, 94vw); aspect-ratio: 886 / 780; margin: 4px auto 0; cursor: pointer; user-select: none; -webkit-user-select: none; }
.scene .casa { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect; }
.scene .elfo { position: absolute; left: 1%; bottom: 4%; width: 34%; aspect-ratio: 578 / 700; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.scene .elfo img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* a cabeça roda à volta do pescoço */
.scene .elfo .cabeca { transform-origin: 56% 34%; animation: rir 3.2s ease-in-out infinite; }
.scene .elfo.rindo .cabeca { animation: rirForte .32s ease-in-out infinite; }
@keyframes rir {
  0%, 52%, 100% { transform: rotate(0) translateY(0); }
  6%  { transform: rotate(-6deg) translateY(-2px); }
  12% { transform: rotate(5deg) translateY(1px); }
  18% { transform: rotate(-6deg) translateY(-2px); }
  24% { transform: rotate(5deg) translateY(1px); }
  30% { transform: rotate(-5deg) translateY(-2px); }
  36% { transform: rotate(4deg) translateY(1px); }
  44% { transform: rotate(-2deg) translateY(0); }
}
@keyframes rirForte {
  0%, 100% { transform: rotate(-8deg) translateY(-3px); }
  50% { transform: rotate(8deg) translateY(2px); }
}
.scene .lol { position: absolute; transform: translate(-50%, 0); font-family: var(--font-title); font-size: clamp(16px, 4.6vw, 22px); color: var(--gold); text-shadow: 0 2px 0 var(--red-2), 0 4px 10px rgba(0,0,0,.5); white-space: nowrap; opacity: 0; pointer-events: none; animation: lol 4.8s ease-out infinite; }
@keyframes lol {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.6) rotate(-6deg); }
  12% { opacity: 1; transform: translate(-50%, -6px) scale(1.05) rotate(4deg); }
  35% { opacity: 1; transform: translate(-50%, -34px) scale(1) rotate(-4deg); }
  50% { opacity: 0; transform: translate(-50%, -54px) scale(.95) rotate(2deg); }
  100% { opacity: 0; transform: translate(-50%, -54px); }
}
.scene:active .lol { animation-duration: 1.6s; }

.scene .flocos { position: absolute; inset: -18% 0 6% 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 80%, transparent 100%); }
.scene .flocos i { position: absolute; top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.8);
  animation-name: nevar, balancar; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: normal, alternate; }
@keyframes nevar { from { transform: translateY(0); } to { transform: translateY(560px); } }
@keyframes balancar { from { margin-left: -8px; } to { margin-left: 8px; } }

.seg.temas { flex-wrap: wrap; }
.seg.temas button { flex: 1 1 30%; min-width: 0; font-size: 14px; padding: 12px 4px; white-space: nowrap; }

/* escolha de vários temas */
.tgrupo { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.tchips { display: flex; flex-wrap: wrap; gap: 7px; }
.tchip { padding: 9px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: #f1e4cc; color: var(--ink); border: 2px solid transparent; transition: transform .12s; }
.tchip.on { background: var(--pine, #1f5c3f); color: #fff; border-color: var(--gold, #f4c542); }
.tchip.on::after { content: ' ✓'; }
.tchip:active { transform: scale(.95); }
.tsel { flex: 1; padding: 10px; border-radius: 12px; font-weight: 900; font-size: 14px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #e6d4b3; }

/* letras A, B, C, D nas respostas */
.opt.letra { position: relative; padding-left: 58px; min-height: 58px; }
.opt .ltr { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font: 900 17px/34px Nunito, sans-serif; font-style: normal; text-align: center; }
.opt.sel .ltr { background: var(--pine, #0d3b2c); }
.opt.right .ltr { background: var(--ok); }

/* palmas que restam e pausa depois dos desafios */
.palmabolsa { text-align: center; font-weight: 800; background: rgba(255,255,255,.12); border-radius: 999px; padding: 8px 14px; margin: 4px auto 10px; width: fit-content; }
.repcard .palmabolsa { background: #f1e4cc; color: var(--ink); }
.clap.vazio, .clap:disabled { opacity: .35; filter: grayscale(1); pointer-events: none; }
.pausa { display: grid; place-items: center; padding: 26px 0; }
.pausa .num { width: 120px; height: 120px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 400 64px/120px 'Lilita One', sans-serif; text-align: center; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.opt .eu { font-weight: 700; color: var(--muted, #8a7a6a); font-size: 14px; }

/* constituição das equipas no fim do jogo */
.equipas { display: grid; gap: 10px; }
.eqbox { background: #f6ecd8; border-radius: 14px; padding: 10px 12px; color: var(--ink); }
.eqbox.minha { box-shadow: inset 0 0 0 3px var(--gold); }
.eqtop { display: flex; justify-content: space-between; gap: 8px; font-weight: 900; font-size: 17px; }
.eqtop small { font-weight: 700; color: #7a6656; }
.eqbox ul { list-style: none; margin: 6px 0 0; padding: 0; }
.eqbox li { display: flex; justify-content: space-between; padding: 3px 0; border-top: 1px dashed #e0cfae; font-size: 15px; }
.eqbox li.me { font-weight: 900; color: var(--red); }
.eqtop { align-items: flex-start; }
.eqtop .ch { white-space: nowrap; text-align: right; }
.eqtop .ch small { display: block; }

/* perguntas personalizadas */
.pessoal input { font-size: 17px; }
.pessoal-lista summary { cursor: pointer; font-weight: 800; }
.pessoal-lista ul { list-style: none; margin: 0; padding: 0; }
.pessoal-lista li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed #e0cfae; }
.pessoal-lista small { color: var(--muted); }

/* foto da sala */
.fotosala { position: relative; border-radius: var(--radius); aspect-ratio: 16 / 10; background: center / cover no-repeat; box-shadow: var(--shadow); overflow: hidden; }
.fotosala span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-family: var(--font-title); font-size: 24px; text-align: center; color: #fff; }
.fotoprev { border-radius: 16px; aspect-ratio: 16 / 10; background: center / cover no-repeat; display: flex; align-items: flex-end; justify-content: flex-end; padding: 8px; }
.fotobtn { display: block; text-align: center; cursor: pointer; padding: 14px; }
.podiofoto { border-radius: var(--radius); background: center / cover no-repeat; position: relative; overflow: hidden; padding: 18px 8px 0; box-shadow: var(--shadow); }
.podiofoto::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.podiofoto .podium { position: relative; }

/* reações com emojis */
#reacoes { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.reacao { position: absolute; bottom: -60px; animation: subir 3s ease-out forwards; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
@keyframes subir { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-15vh) scale(1.1); } 100% { transform: translateY(-95vh) scale(1); opacity: 0; } }
.reacoesbar { display: flex; justify-content: center; gap: 10px; margin: 6px 0; }
.reacoesbar button { width: 56px; height: 56px; border-radius: 50%; font-size: 28px; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.25); transition: transform .1s; }
.reacoesbar button:active { transform: scale(.85); }
/* controlos de quem criou a sala */
.xbtn { width: 30px; height: 30px; border-radius: 50%; background: #f1e4cc; color: var(--red); font-weight: 900; margin-right: 6px; flex: none; }
.painelhost .plist li { display: flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .reacao { animation-duration: .01s !important; } }

/* temas de passagem de ano: brilhos dourados e prateados em vez de neve */
.tema-ano .snow { opacity: .9;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #f6d77a 50%, transparent 51%),
    radial-gradient(3px 3px at 120px 80px, #ffffff 50%, transparent 51%),
    radial-gradient(2px 2px at 200px 160px, #e9c46a 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 60px 220px, #d9dde6 50%, transparent 51%),
    radial-gradient(2px 2px at 300px 40px, #ffe08a 50%, transparent 51%),
    radial-gradient(3px 3px at 330px 260px, #f6d77a 50%, transparent 51%);
  animation: snow 22s linear infinite, cintilar 2.4s ease-in-out infinite alternate; }
@keyframes cintilar { from { filter: brightness(.8); } to { filter: brightness(1.35); } }
/* escolha das cores */
.temascores { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.tcor { display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 999px; background: #f1e4cc; color: var(--ink); font-weight: 800; font-size: 13px; border: 2px solid transparent; }
.card.glass .tcor { background: rgba(255,255,255,.9); }
.tcor.on { border-color: var(--ink); }
.tcor i { display: flex; border-radius: 999px; overflow: hidden; height: 20px; }
.tcor i b { width: 10px; }
.card:not(.glass) .muted { color: var(--muted); }   /* texto secundário legível dentro dos cartões claros */
.tema-ano .scene .elfo { display: none; }   /* passagem de ano: sem o elfo e as prendas */
.tema-ano .scene .flocos i { background: #f6d77a; box-shadow: 0 0 6px rgba(246,215,122,.9); }   /* flocos dourados na passagem de ano */
