/* fredoka-hebrew-wght-normal */
@font-face {
  font-family: 'Fredoka Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(./fredoka-hebrew-wght-normal-DdnsCkLr.woff2) format('woff2-variations');
  unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;
}

/* fredoka-latin-ext-wght-normal */
@font-face {
  font-family: 'Fredoka Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(./fredoka-latin-ext-wght-normal-CYrqKuxd.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* fredoka-latin-wght-normal */
@font-face {
  font-family: 'Fredoka Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(./fredoka-latin-wght-normal-DM6njrJ3.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* nunito-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(./nunito-cyrillic-ext-wght-normal-D4X5GqEv.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* nunito-cyrillic-wght-normal */
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(./nunito-cyrillic-wght-normal-CY6AOgYE.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* nunito-vietnamese-wght-normal */
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(./nunito-vietnamese-wght-normal-U01xdrZh.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* nunito-latin-ext-wght-normal */
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(./nunito-latin-ext-wght-normal-CXYtwYOx.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* nunito-latin-wght-normal */
@font-face {
  font-family: 'Nunito Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(./nunito-latin-wght-normal-BzFMHfZw.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}:root {
  --ink: #1b1446;
  --ink-soft: #4b4378;
  --bg1: #2e1577;
  --bg2: #6a2bd9;
  --sun: #ffd23f;
  --paper: #ffffff;
  --cream: #fff7e8;
  --ok: #2fcb6e;
  --ok-deep: #13894a;
  --bad: #e8364a;
  --bad-deep: #9b1626;
  --font-display: 'Fredoka Variable', 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  --font-body: 'Nunito Variable', 'Nunito', 'Segoe UI', sans-serif;
  --cat: #3557e0;
  --cat-deep: #1b2f94;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(120% 80% at 50% 0%, var(--bg2) 0%, var(--bg1) 70%) fixed;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow: hidden;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.app {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  /* espaço para a sanefa da cortina no topo */
  padding: max(34px, calc(env(safe-area-inset-top) + 26px)) 16px max(10px, env(safe-area-inset-bottom));
}

/* ---------- Componentes no estilo adesivo ---------- */
.sticker {
  background: linear-gradient(#fff, #f6f1ff);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
}

.btn {
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  padding: 14px 26px 16px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffe98a 0%, #ffd23f 46%, #ffb21f 100%);
  box-shadow: 0 7px 0 var(--ink), inset 0 -6px 0 rgba(176, 92, 0, 0.28), inset 0 4px 0 rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}

.btn:active {
  transform: translateY(6px);
  box-shadow: 0 1px 0 var(--ink), inset 0 -3px 0 rgba(176, 92, 0, 0.28), inset 0 4px 0 rgba(255, 255, 255, 0.7);
}

/* Faixa de brilho que passa pelo botão de tempos em tempos */
.btn--shine::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateX(-180%) skewX(-18deg);
  animation: shine-sweep 3.4s ease-in-out infinite;
}

@keyframes shine-sweep {
  0%,
  62% {
    transform: translateX(-180%) skewX(-18deg);
  }
  100% {
    transform: translateX(420%) skewX(-18deg);
  }
}

.btn--big {
  font-size: 34px;
  padding: 16px 44px 20px;
  border-radius: 26px;
}

.btn--ghost {
  background: linear-gradient(#fff, #efe9ff);
  font-size: 18px;
  padding: 10px 18px 12px;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: linear-gradient(#fff, #e9e2ff);
  box-shadow: 0 5px 0 var(--ink), inset 0 3px 0 #fff;
  display: grid;
  place-items: center;
}

.icon-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pop-in {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rise-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes float-up {
  0% {
    transform: translate(-50%, 0) scale(0.6);
    opacity: 0;
  }
  15% {
    transform: translate(-50%, -8px) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -54px) scale(1);
    opacity: 0;
  }
}
/* Mascotes: respiram e piscam sempre; pulam no acerto, murcham no erro, tremem de nervoso. */
.mascot .m-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: m-breathe 2.6s ease-in-out infinite;
}

.mascot .m-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: m-blink 4.4s infinite;
}

.mascot .m-gills {
  transform-box: fill-box;
  transform-origin: center;
  animation: m-wiggle 1.8s ease-in-out infinite;
}

.mascot .m-note {
  animation: m-note 1.6s ease-in-out infinite;
}

.mascot .m-bird {
  animation: pop-in 320ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.mascot--happy .m-body {
  animation: m-hop 620ms cubic-bezier(0.3, 1.4, 0.5, 1) both, m-breathe 2.6s ease-in-out 620ms infinite;
}

.mascot--happy .m-sparkles {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop-in 400ms ease-out both;
}

.mascot--happy .m-hat {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: m-hat 700ms ease-out both;
}

.mascot--sad .m-body {
  animation: m-droop 600ms ease-out both;
}

.mascot--sad .m-tear {
  animation: m-tear 1.2s ease-in infinite;
}

.mascot--nervous .m-body {
  animation: m-tremble 140ms linear infinite;
}

.mascot--nervous .m-sweat {
  animation: m-tear 0.9s ease-in infinite;
}

@keyframes m-breathe {
  0%,
  100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.02, 0.985);
  }
}

@keyframes m-blink {
  0%,
  93%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

@keyframes m-hop {
  0% {
    transform: scale(1.12, 0.86);
  }
  35% {
    transform: translateY(-14px) scale(0.92, 1.1);
  }
  70% {
    transform: translateY(0) scale(1.06, 0.94);
  }
  100% {
    transform: none;
  }
}

@keyframes m-droop {
  0% {
    transform: none;
  }
  40% {
    transform: translateY(4px) scale(1.04, 0.92) rotate(-3deg);
  }
  100% {
    transform: translateY(3px) scale(1.02, 0.95) rotate(-2deg);
  }
}

@keyframes m-tremble {
  0% {
    transform: translateX(-1.5px);
  }
  50% {
    transform: translateX(1.5px);
  }
  100% {
    transform: translateX(-1.5px);
  }
}

@keyframes m-wiggle {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes m-note {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-6px) rotate(6deg);
  }
}

@keyframes m-hat {
  0% {
    transform: none;
  }
  40% {
    transform: translateY(-14px) rotate(-14deg);
  }
  100% {
    transform: none;
  }
}

@keyframes m-tear {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* Vitória: pula sem parar, estrelas nos olhos girando, bracinhos acenando */
.mascot--win .m-body {
  animation: m-hop 640ms cubic-bezier(0.3, 1.4, 0.5, 1) infinite;
}

.mascot .m-star-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 2.4s linear infinite;
}

.mascot .m-arm {
  transform-box: fill-box;
}

.mascot .m-arm--l {
  transform-origin: 100% 100%;
  animation: m-wave-l 0.32s ease-in-out infinite alternate;
}

.mascot .m-arm--r {
  transform-origin: 0% 100%;
  animation: m-wave-r 0.32s ease-in-out infinite alternate;
}

/* Espanto: dá um pulinho para trás */
.mascot--wow .m-body {
  animation: m-wow 420ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

@keyframes m-wave-l {
  from {
    transform: rotate(-12deg);
  }
  to {
    transform: rotate(14deg);
  }
}

@keyframes m-wave-r {
  from {
    transform: rotate(12deg);
  }
  to {
    transform: rotate(-14deg);
  }
}

@keyframes m-wow {
  0% {
    transform: scale(1);
  }
  35% {
    transform: translateY(-8px) scale(0.94, 1.1);
  }
  100% {
    transform: none;
  }
}

/* Olhos seguem o dedo/mouse (variáveis --look-x/--look-y no <html>, de -1 a 1) */
.mascot .m-pupil {
  transform: translate(calc(var(--look-x, 0) * 1.8px), calc(var(--look-y, 0) * 1.4px));
  transition: transform 120ms ease-out;
}

/* Bico de baixo da Lara abre com o volume da voz (--jaw de 0 a 1) */
.mascot .m-jaw {
  transform-box: fill-box;
  transform-origin: 50% 0;
  transform: translateY(calc(var(--jaw, 0) * 3px)) scaleY(calc(1 + var(--jaw, 0) * 1.4));
}

@media (prefers-reduced-motion: reduce) {
  .mascot .m-body,
  .mascot .m-eye,
  .mascot .m-gills,
  .mascot .m-note {
    animation: none !important;
  }
}
/* ========== Letreiro (logo, anúncio, resultado) ========== */
.sign {
  position: relative;
  padding: 18px 22px 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, #2a1170 0%, #1b0b4d 100%);
  border: 5px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink), inset 0 0 0 4px #4b2aa8, inset 0 0 30px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.sign .bulbs {
  inset: 7px;
}

.sign__tag {
  margin: 4px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ========== Home ========== */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
}

.home__top {
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(60px, 17vw, 92px);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.01em;
}

.logo span {
  display: inline-block;
  color: var(--c);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink), 0 0 22px color-mix(in oklab, var(--c) 70%, transparent);
  animation: letter-bounce 2.6s cubic-bezier(0.3, 1.5, 0.5, 1) infinite;
}

.home__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Feixe do holofote caindo na Lara */
.home__beam {
  position: absolute;
  top: -40px;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(50% 30% at 50% 92%, rgba(255, 246, 200, 0.55), transparent 70%), linear-gradient(to bottom, rgba(255, 246, 200, 0.28), rgba(255, 246, 200, 0));
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  filter: blur(2px);
}

.home__lara {
  position: relative;
  filter: drop-shadow(0 10px 0 rgba(12, 3, 38, 0.45));
}

.home__crew {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
  max-width: 360px;
  margin-top: 4px;
}

.home__crew-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pop-in 420ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.home__crew-item > span:last-child {
  margin-top: -4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  padding: 1px 7px 2px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  white-space: nowrap;
}

.home__play {
  margin-top: 16px;
  animation: pulse 1.8s ease-in-out infinite;
}



@keyframes letter-bounce {
  0%,
  70%,
  100% {
    transform: translateY(0) scale(1);
  }
  78% {
    transform: translateY(-14px) scale(1.06, 0.94);
  }
  86% {
    transform: translateY(0) scale(1.08, 0.9);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ========== Partida ========== */
.match {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.match__exit {
  margin-left: auto;
  width: 42px;
  height: 42px;
}

.round-pill,
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  border: 4px solid var(--ink);
  border-radius: 99px;
  padding: 2px 14px 4px;
  box-shadow: 0 4px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, 0.6);
}

.round-pill {
  background: linear-gradient(#fff, #e9e2ff);
}

.round-pill.is-zabum {
  background: linear-gradient(#ffe98a, #ffb21f);
  animation: pulse 0.9s ease-in-out infinite;
}

.streak-pill {
  color: #fff;
  background: linear-gradient(#ffb15a, #ff6a1f);
  -webkit-text-stroke: 3.5px var(--ink);
  paint-order: stroke fill;
  font-size: 15px;
  animation: pop-in 320ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.streak-pill svg {
  color: #ffe14d;
}

.streak-pill.heat-1 svg {
  animation: flame-flicker 0.3s ease-in-out infinite alternate;
}

.streak-pill.heat-2 {
  background: linear-gradient(90deg, #ff5fa2, #ffd23f, #3dbe4a, #14c2b8, #3557e0, #a23bd9);
  background-size: 300% 100%;
  animation: pop-in 320ms cubic-bezier(0.3, 1.6, 0.5, 1) both, rainbow-slide 1.2s linear infinite;
}

@keyframes flame-flicker {
  from {
    transform: scale(1) rotate(-6deg);
  }
  to {
    transform: scale(1.18) rotate(6deg);
  }
}

@keyframes rainbow-slide {
  to {
    background-position: 300% 0;
  }
}

/* Mascote "salta" de dentro da bolinha */
.pop-out {
  animation: pop-out 560ms cubic-bezier(0.3, 1.7, 0.5, 1) both;
}

@keyframes pop-out {
  0% {
    transform: translateY(30px) scale(0.2) rotate(-20deg);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px) scale(1.12) rotate(6deg);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}

/* Introdução e anúncio */
.intro,
.announce {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.bubble {
  position: relative;
  background: linear-gradient(#fff, #f3eeff);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 14px 18px;
  font-weight: 800;
  font-size: 18px;
  max-width: 340px;
  animation: pop-in 380ms cubic-bezier(0.3, 1.5, 0.5, 1) 250ms both;
}

.bubble::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  margin-left: -12px;
  border: 12px solid transparent;
  border-bottom: 14px solid var(--ink);
  border-top: 0;
}

.announce__sign {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 20px 22px;
  border-radius: 30px;
  background: linear-gradient(#ffe98a, #ffb21f);
  border: 5px solid var(--ink);
  box-shadow: 0 9px 0 var(--ink), inset 0 0 0 5px #fff3b0;
  animation: stamp 560ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.announce__sign .bulbs {
  inset: 8px;
}

.announce__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 12vw, 60px);
  line-height: 1;
  margin: 4px 0 0;
  color: #fff;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
}

.announce__sub {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 900;
  font-size: 19px;
}

/* Clarão de tela inteira no anúncio (some em meio segundo) */
.announce::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, #fff 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 0) 75%);
  animation: flash-out 520ms ease-out both;
  pointer-events: none;
  z-index: 5;
}

@keyframes flash-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes stamp {
  0% {
    transform: scale(2.4) rotate(-8deg);
    opacity: 0;
  }
  60% {
    transform: scale(0.92) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(-2deg);
  }
}

/* ========== Globo da Sorte ========== */
.globe-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.globe {
  position: relative;
  width: 190px;
  height: 210px;
  filter: drop-shadow(0 0 30px rgba(255, 246, 200, 0.35));
}

.globe__cage {
  position: absolute;
  left: 0;
  top: 0;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 5px solid var(--ink);
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), rgba(200, 225, 255, 0.55) 45%, rgba(120, 150, 230, 0.45));
  box-shadow: 0 7px 0 var(--ink), inset 0 0 0 6px rgba(255, 255, 255, 0.35), inset -14px -18px 30px rgba(40, 20, 120, 0.35);
  overflow: hidden;
}

.globe__cage::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.9) 0 7%, transparent 8%),
    linear-gradient(90deg, transparent 47%, rgba(27, 20, 70, 0.35) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(27, 20, 70, 0.35) 47% 53%, transparent 53%);
}

.globe__stand {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 110px;
  height: 26px;
  transform: translateX(-50%);
  background: linear-gradient(#ffe98a, #ffb21f);
  border: 4px solid var(--ink);
  border-radius: 14px 14px 8px 8px;
  box-shadow: 0 5px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, 0.6);
}

.globe__ball {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background-image: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85) 0 18%, transparent 22%) !important;
  animation: ball-jiggle 0.9s ease-in-out infinite alternate;
}

.is-spinning .globe__cage {
  animation: globe-spin 1500ms cubic-bezier(0.45, -0.25, 0.25, 1) both;
  animation-delay: 900ms;
}

.is-spinning .globe__ball {
  animation:
    ball-jiggle 0.9s ease-in-out infinite alternate,
    tumble var(--t) linear calc(900ms + var(--d)) infinite;
}

.globe__ball.is-drawn {
  animation: ball-leave 420ms ease-in both;
  animation-delay: calc(var(--k) * 300ms);
}

/* Brilho atrás do globo: respira devagar, pulsa rápido no giro e dá um flash quando as bolinhas saem. */
.globe__halo {
  position: absolute;
  left: 50%;
  top: 95px;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 150, 0.55) 0%, rgba(255, 95, 162, 0.18) 45%, transparent 68%);
  pointer-events: none;
  animation: halo 1.8s ease-in-out infinite;
}

.is-spinning .globe__halo {
  animation: halo 0.3s ease-in-out 900ms infinite;
}

.is-out .globe__halo {
  animation:
    halo-flash 700ms ease-out both,
    halo 1.8s ease-in-out 700ms infinite;
}

/* Manivela do lado direito: dá 3 voltas enquanto o globo gira. */
.globe__crank {
  position: absolute;
  right: -16px;
  top: 80px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: linear-gradient(#ffe98a, #ffb21f);
}

.globe__crank span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 30px;
  margin-left: -3.5px;
  border-radius: 4px;
  background: var(--ink);
  transform-origin: 50% 0;
  transform: rotate(-30deg);
}

.globe__crank span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: #ff5fa2;
}

.is-spinning .globe__crank span {
  animation: crank 500ms linear 900ms 3;
}

/* Boquinha na base por onde as sorteadas saem (pisca a cada bolinha). */
.globe__chute {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 38px;
  height: 12px;
  margin-left: -19px;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
}

.is-out .globe__chute {
  animation: chute 300ms ease-out 3;
}

.globe-wrap.is-out .globe {
  transform: scale(0.72);
  margin: -26px 0 -30px;
  transition: transform 300ms ease-out, margin 300ms ease-out;
}

.globe__picker {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-shadow: 0 3px 0 var(--ink);
  min-height: 30px;
}

.globe__picker.is-you {
  color: var(--sun);
  animation: pulse 1s ease-in-out infinite;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 150px;
  /* cqw = 1% da largura das cartas: a bolinha sabe de onde vem (do centro, onde fica o globo) */
  container-type: inline-size;
}

.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 4px 12px;
  background: linear-gradient(#fff, #f3eeff);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--cat-deep), 0 6px 0 4px var(--ink), inset 0 3px 0 #fff;
  visibility: hidden;
}

.is-out .slot {
  visibility: visible;
  animation: slot-in 260ms cubic-bezier(0.3, 1.5, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 300ms);
}

.is-out .slot__ball {
  --fx: calc((1 - var(--i)) * 34cqw);
  animation: ball-fly 640ms cubic-bezier(0.3, 0.9, 0.4, 1) backwards;
  animation-delay: calc(var(--i) * 300ms + 60ms);
}

/* Pessoa escolhe: as bolinhas pulam em sequência chamando. */
.slots.can-pick .slot__ball {
  animation:
    ball-fly 640ms cubic-bezier(0.3, 0.9, 0.4, 1) backwards,
    pick-me 1.3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 300ms + 60ms), calc(var(--i) * 0.2s + 1.5s);
}

.slot__who {
  display: inline-grid;
  place-items: center;
}

.is-out .slot__who {
  animation: who-pop 420ms cubic-bezier(0.3, 1.6, 0.5, 1) backwards;
  animation-delay: calc(var(--i) * 300ms + 560ms);
}

.is-out .slot__name,
.is-out .slot__mascot {
  animation: fade-in 260ms ease-out backwards;
  animation-delay: calc(var(--i) * 300ms + 640ms);
}

/* Roleta do bot: o seletor ▼ passa pelas cartas. */
.slot.is-hover {
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 6px 0 var(--cat-deep), 0 6px 0 4px var(--ink), 0 0 34px 8px color-mix(in oklab, var(--cat) 75%, transparent);
  transition: transform 80ms ease-out;
}

.slot.is-hover::before {
  content: '▼';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--sun);
  font-size: 24px;
  text-shadow: 0 3px 0 var(--ink);
}

.slot:not(:disabled):active {
  transform: translateY(4px);
}

.slot__ball {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--cat) 55%, #fff) 0%, var(--cat) 55%, var(--cat-deep) 100%);
  border: 4px solid var(--ink);
}

.slot__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--cat-deep);
}

.slot__mascot {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.slot.is-chosen {
  z-index: 2;
  animation: chosen 700ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
  background: linear-gradient(color-mix(in oklab, var(--cat) 70%, #fff), var(--cat));
  box-shadow: 0 6px 0 var(--cat-deep), 0 6px 0 4px var(--ink), 0 0 40px 10px color-mix(in oklab, var(--cat) 70%, transparent);
}

.slot.is-chosen .slot__name,
.slot.is-chosen .slot__mascot {
  color: #fff;
}

.slot.is-dropped {
  animation: fade-down 300ms ease-in both;
}

@keyframes globe-spin {
  0% {
    transform: rotate(0);
  }
  12% {
    transform: rotate(-14deg);
  }
  100% {
    transform: rotate(720deg);
  }
}

@keyframes ball-jiggle {
  from {
    transform: translate(-4px, 3px);
  }
  to {
    transform: translate(5px, -4px);
  }
}

@keyframes tumble {
  from {
    transform: rotate(0deg) translateX(var(--o)) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(var(--o)) rotate(-360deg);
  }
}

@keyframes ball-leave {
  30% {
    transform: translate(calc(var(--lx) * 0.3), calc(var(--ly) * 0.2)) scale(1.25);
  }
  100% {
    transform: translate(var(--lx), var(--ly)) scale(0.4);
    opacity: 0;
  }
}

@keyframes halo {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes halo-flash {
  0% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes crank {
  from {
    transform: rotate(-30deg);
  }
  to {
    transform: rotate(330deg);
  }
}

@keyframes chute {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 236, 150, 0.95);
  }
  100% {
    box-shadow: 0 0 18px 10px rgba(255, 236, 150, 0);
  }
}

@keyframes slot-in {
  0% {
    transform: scale(0.6);
  }
  100% {
    transform: none;
  }
}

/* Sai da boquinha do globo (pulinho curto, sem subir de volta para dentro dele) e cai em arco na carta. */
@keyframes ball-fly {
  0% {
    transform: translate(var(--fx), -150px) scale(0.35);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    transform: translate(calc(var(--fx) * 0.75), -138px) scale(0.6);
  }
  50% {
    transform: translate(calc(var(--fx) * 0.4), -95px) scale(0.85);
  }
  75% {
    transform: translate(0, 6px) scale(1.08, 0.9);
  }
  88% {
    transform: translate(0, -5px) scale(0.97, 1.04);
  }
  100% {
    transform: none;
  }
}

@keyframes who-pop {
  0% {
    transform: scale(0) rotate(-25deg);
  }
  100% {
    transform: none;
  }
}

@keyframes pick-me {
  0%,
  60%,
  100% {
    transform: none;
  }
  20% {
    transform: translateY(-10px) scale(1.06);
  }
  35% {
    transform: scale(1.04, 0.95);
  }
}

@keyframes ball-drop {
  0% {
    transform: translateY(-120px) scale(0.6);
    opacity: 0;
  }
  55% {
    transform: translateY(8px) scale(1.04, 0.94);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}

@keyframes chosen {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2) rotate(-3deg);
  }
  100% {
    transform: scale(1.12);
  }
}

@keyframes fade-down {
  to {
    transform: translateY(16px) scale(0.9);
    opacity: 0.2;
  }
}

/* ========== Painel da pergunta (TV com lâmpadas) ========== */
.qa {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: iris 520ms cubic-bezier(0.3, 1, 0.4, 1) both;
}

@keyframes iris {
  from {
    clip-path: circle(0% at 50% 28%);
  }
  to {
    clip-path: circle(150% at 50% 28%);
  }
}

.board {
  position: relative;
  margin-top: 46px;
  padding: 13px;
  border-radius: 28px;
  background: linear-gradient(180deg, #2a1170 0%, #170846 100%);
  border: 5px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink), inset 0 0 0 3px #4b2aa8;
}

.board .bulbs {
  inset: 6px;
}

.board__screen {
  position: relative;
  border-radius: 18px;
  padding: 26px 16px 18px;
  min-height: 132px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 4px),
    radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--cat) 75%, #fff 25%) 0%, var(--cat) 45%, var(--cat-deep) 100%);
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.35);
  display: grid;
  align-items: center;
}

.board.is-zabum .board__screen {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 4px),
    radial-gradient(120% 90% at 50% 0%, #fff3b0 0%, #ffd23f 45%, #e08a00 100%);
}

.board__who {
  position: absolute;
  left: -12px;
  top: -58px;
  z-index: 3;
}

.board__ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: linear-gradient(#fff, #ffe98a);
  border: 3px solid var(--ink);
  border-radius: 99px;
  padding: 1px 12px 3px;
  box-shadow: 0 3px 0 var(--ink);
  z-index: 3;
}

.board__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 5.6vw, 26px);
  line-height: 1.18;
  color: #fff;
  text-align: center;
  letter-spacing: 0.01em;
  /* Sem -webkit-text-stroke: na Fredoka (fonte variável) o contorno aparece nas emendas de dentro das letras
     e elas ficam "entrelaçadas". O contraste vem só da sombra. */
  text-shadow: 0 2px 0 rgba(27, 20, 70, 0.6), 0 0 2px rgba(27, 20, 70, 0.6);
}

.board.is-zabum .board__text {
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
}

.board__secs {
  position: absolute;
  right: -10px;
  top: -18px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #5b3bd0, #1b0b4d);
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
}

.board__secs.is-urgent {
  background: radial-gradient(circle at 35% 30%, #ff8a7a, #c3141e);
  animation: heartbeat 0.5s ease-in-out infinite;
}

/* Carimbo do veredito */
.stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 13vw, 64px);
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
  pointer-events: none;
  animation: stamp-in 1400ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.stamp--right {
  color: #7dff9d;
}

.stamp--wrong,
.stamp--timeout {
  color: #ff8a8a;
}

@keyframes stamp-in {
  0% {
    transform: translate(-50%, -50%) scale(2.6) rotate(-14deg);
    opacity: 0;
  }
  22% {
    transform: translate(-50%, -50%) scale(0.9) rotate(-6deg);
    opacity: 1;
  }
  32%,
  78% {
    transform: translate(-50%, -50%) scale(1) rotate(-8deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1) rotate(-8deg);
    opacity: 0;
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.2);
  }
}

/* ========== Alternativas (cartas com volume) ========== */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 14px 8px 8px;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #f4efff 100%);
  border: 4px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink), inset 0 -4px 0 rgba(27, 20, 70, 0.07), inset 0 3px 0 #fff;
  font-weight: 800;
  font-size: 18px;
  animation: deal 420ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, opacity 200ms, background-color 150ms;
}

.opt:not(:disabled):active,
.opt.is-picked {
  transform: translateY(5px) scale(0.98);
  box-shadow: 0 1px 0 var(--ink), inset 0 -4px 0 rgba(27, 20, 70, 0.07);
}

.opt.is-picked {
  background: linear-gradient(#fff8cc, #ffe98a);
}

.opt.is-dim {
  opacity: 0.5;
}

.opt__letter {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: radial-gradient(circle at 35% 25%, color-mix(in oklab, var(--cat) 55%, #fff), var(--cat) 60%, var(--cat-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 2px 0 rgba(27, 20, 70, 0.4);
}

.opt__text {
  flex: 1;
}

.opt__who {
  display: flex;
  margin-left: auto;
}

.opt__who > span {
  margin-left: -6px;
  animation: pop-in 300ms ease-out both;
}

/* Holofote na resposta durante o suspense */
.opt.is-suspense {
  box-shadow: 0 1px 0 var(--ink), 0 0 0 4px #fff7c2, 0 0 30px 10px rgba(255, 240, 160, 0.75);
  animation: suspense 220ms ease-in-out infinite alternate;
}

.opt.is-correct {
  opacity: 1;
  background: linear-gradient(180deg, #5ee68f 0%, #2fcb6e 55%, #1fae58 100%);
  color: #fff;
  text-shadow: 0 2px 0 rgba(10, 80, 40, 0.5);
  box-shadow: 0 6px 0 var(--ok-deep), 0 6px 0 4px var(--ink), 0 0 26px 6px rgba(80, 255, 150, 0.45);
  animation: correct-pop 420ms cubic-bezier(0.3, 1.7, 0.5, 1) 80ms both;
  overflow: hidden;
}

.opt.is-correct::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shine-once 700ms ease-out 200ms both;
}

.opt.is-correct .opt__letter {
  background: #fff;
  color: var(--ok-deep);
}

.opt.is-wrong {
  opacity: 1;
  background: linear-gradient(180deg, #ff7a86 0%, #e8364a 60%, #c4213a 100%);
  color: #fff;
  text-shadow: 0 2px 0 rgba(90, 10, 20, 0.5);
  animation: shake 400ms ease-out both;
}

.opt.is-wrong .opt__letter {
  background: #fff;
  color: var(--bad-deep);
}

@keyframes deal {
  0% {
    transform: translateY(46px) rotate(-7deg) scale(0.8);
    opacity: 0;
  }
  70% {
    transform: translateY(-4px) rotate(1deg) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}

@keyframes suspense {
  from {
    transform: translateY(5px) scale(0.99);
  }
  to {
    transform: translateY(5px) scale(1.025);
  }
}

@keyframes correct-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shine-once {
  from {
    left: -40%;
  }
  to {
    left: 120%;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-10px) rotate(-1deg);
  }
  40% {
    transform: translateX(9px) rotate(1deg);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(3px);
  }
}

/* ========== Placar (letreiro) ========== */
.scores {
  position: relative;
  align-self: stretch;
  margin: auto 0;
  padding: 22px 20px 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, #2a1170 0%, #170846 100%);
  border: 5px solid var(--ink);
  box-shadow: 0 8px 0 var(--ink), inset 0 0 0 3px #4b2aa8;
  animation: pop-in 340ms cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.scores .bulbs {
  inset: 7px;
}

.scores__title {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--sun);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0 16px rgba(255, 210, 63, 0.6);
}

.scores__list {
  position: relative;
}

.srow {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: linear-gradient(#3b2290, #2a1774);
  color: #fff;
  transition: transform 420ms cubic-bezier(0.3, 1.3, 0.5, 1);
}

.srow.is-me {
  background: linear-gradient(#ffe98a, #ffc933);
  color: var(--ink);
}

.srow__rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  width: 30px;
}

.srow__name {
  font-weight: 900;
  font-size: 17px;
}

.srow__gain {
  font-family: var(--font-display);
  font-weight: 700;
  color: #7dff9d;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  animation: pop-in 300ms ease-out both;
}

.srow__score {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 210, 63, 0.5);
}

.scores__callout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #7dff9d;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  animation: stamp 520ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.scores__callout svg {
  color: #7dff9d;
}

.scores__hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
}

/* ========== Mesas dos jogadores ========== */
.pbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: auto;
  position: relative;
  z-index: 3;
}

.pchip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 2px 6px;
  border: 3px solid var(--ink);
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(180deg, #3b2290 0%, #22105e 100%);
  box-shadow: 0 5px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  line-height: 1.1;
}

.pchip.is-me {
  background: linear-gradient(180deg, #ffe98a 0%, #ffbf1f 100%);
  color: var(--ink);
}

.pchip__name {
  font-weight: 900;
  font-size: 12px;
}

.pchip__score {
  margin-top: 1px;
  padding: 0 6px;
  border-radius: 8px;
  background: #0d0429;
  color: #ffd23f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(255, 210, 63, 0.8);
}

.pchip__done {
  position: absolute;
  top: -9px;
  right: -5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  border: 3px solid var(--ink);
  animation: pop-in 260ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.pchip__crown {
  position: absolute;
  top: -17px;
  left: 50%;
  margin-left: -11px;
  color: #ffd23f;
  filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.9));
  animation: crown-bob 1.4s ease-in-out infinite;
}

.pchip__talk {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 900;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 4px 9px;
  box-shadow: 0 3px 0 var(--ink);
  animation: talk 1500ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.pchip__talk::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top: 8px solid var(--ink);
  border-bottom: 0;
}

.pbar .pchip:first-child .pchip__talk {
  left: 0;
  transform: none;
}

.pbar .pchip:last-child .pchip__talk {
  left: auto;
  right: 0;
  transform: none;
}

@keyframes talk {
  0% {
    opacity: 0;
    scale: 0.4;
  }
  14% {
    opacity: 1;
    scale: 1.08;
  }
  22%,
  85% {
    opacity: 1;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 0.9;
  }
}

@keyframes crown-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-3px) rotate(6deg);
  }
}

/* ========== Resultado ========== */
.result {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.sign--result {
  align-self: stretch;
  animation: stamp 560ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.result__title {
  font-size: clamp(34px, 9.5vw, 46px);
  color: var(--sun);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--ink), 0 0 20px rgba(255, 210, 63, 0.6);
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
}

.podium__col {
  flex: 1;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise-in 520ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.podium__name {
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 0 var(--ink);
}

.podium__score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sun);
  font-size: 20px;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}

.podium__step {
  width: 100%;
  margin-top: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  background: linear-gradient(#fff, #e3dcff);
  border: 4px solid var(--ink);
  border-radius: 16px 16px 6px 6px;
  box-shadow: 0 5px 0 var(--ink), inset 0 4px 0 #fff;
}

.place-1 .podium__step {
  background: linear-gradient(#ffe98a, #ffb21f);
}

.podium__col.is-me .podium__name {
  color: var(--sun);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  padding: 10px 6px;
  margin-top: 6px;
}

.stats div {
  display: flex;
  flex-direction: column;
}

.stats b {
  font-family: var(--font-display);
  font-size: 26px;
}

.stats span {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}

.result__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
}

/* ========== Menos movimento: troca balanço e pulo por cor e fade ========== */
@media (prefers-reduced-motion: reduce) {
  .logo span,
  .home__play,
  .round-pill.is-zabum,
  .globe__ball,
  .opt.is-suspense,
  .board__secs.is-urgent,
  .pchip__crown,
  .streak-pill svg {
    animation: none !important;
  }
  .is-spinning .globe__cage,
  .is-spinning .globe__ball,
  .globe__ball.is-drawn,
  .globe__crank span,
  .is-out .slot__ball,
  .slots.can-pick .slot__ball,
  .is-out .slot__who,
  .opt.is-wrong,
  .opt.is-correct,
  .announce__sign,
  .qa,
  .pop-out,
  .opt,
  .sign--result {
    animation-name: none !important;
  }
}

/* Celular baixinho (iPhone SE e parecidos): tudo um pouco mais compacto para caber sem rolar */
@media (max-height: 700px) {
  .board {
    margin-top: 40px;
  }
  .board__screen {
    min-height: 104px;
    padding: 22px 12px 12px;
  }
  .board__text {
    font-size: 19px;
  }
  .opt {
    min-height: 50px;
    font-size: 16px;
  }
  .options {
    gap: 8px;
  }
  .home__lara {
    width: 120px;
    height: 120px;
  }
}

/* Galeria de desenvolvimento (?galeria) */
.gallery {
  overflow: auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  border: 4px solid var(--ink);
  padding: 8px;
}

.gallery__grid {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 4px;
  font-size: 11px;
}

/* ========== Tipos de pergunta ========== */
.board__q {
  grid-area: 1 / 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.board__kind {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 99px;
  padding: 0 10px 2px;
}

.board__text mark {
  background: none;
  color: #ffe14d;
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill; /* contorno por baixo do preenchimento: não marca as emendas da fonte variável */
  text-decoration: underline wavy #ffe14d 2px;
  text-underline-offset: 5px;
}

.flag {
  filter: drop-shadow(0 5px 0 rgba(27, 20, 70, 0.6));
  animation: flag-wave 2.4s ease-in-out infinite;
  transform-origin: 0 50%;
}

.board.has-flag .board__text {
  font-size: 20px;
}

@keyframes flag-wave {
  0%,
  100% {
    transform: perspective(300px) rotateY(0deg) skewY(0deg);
  }
  50% {
    transform: perspective(300px) rotateY(-10deg) skewY(-2deg);
  }
}

/* "Sabia que…?" toma a tela depois do carimbo */
.board__fact {
  /* Na mesma célula da pergunta (grid do .board__screen): o painel cresce se o "Sabia que…?" for maior que a
     pergunta, em vez de cortar o título e o "toque para continuar" (celular pequeno, fato de 3+ linhas). */
  position: relative;
  grid-area: 1 / 1;
  align-self: stretch;
  margin: -26px -16px -18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 16px 24px;
  border-radius: 14px;
  text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #fffdf0 0%, #fff3c2 100%);
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  animation: fact-in 420ms cubic-bezier(0.3, 1.4, 0.5, 1) 1250ms both;
}

.board__fact b {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cat-deep);
}

.board__fact-tap {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* Barrinha do tempo de leitura: esvazia em --read, começando quando o painel termina de entrar. */
.board__fact-bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 9px;
  height: 6px;
  border-radius: 99px;
  overflow: hidden;
  background: color-mix(in oklab, var(--cat) 25%, transparent);
}

.board__fact-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--cat-deep);
  transform-origin: left;
  animation: fact-time var(--read, 4000ms) linear 1670ms both;
}

@keyframes fact-time {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes fact-in {
  from {
    clip-path: inset(0 0 100% 0 round 14px);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0 round 14px);
    opacity: 1;
  }
}

/* Verdadeiro ou falso: duas cartas grandes lado a lado */
.options--tf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.options--tf .opt {
  flex-direction: column;
  justify-content: center;
  min-height: 118px;
  padding: 12px 8px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.options--tf .opt__letter {
  width: 52px;
  height: 52px;
  font-size: 28px;
  border-radius: 16px;
}

.options--tf .opt__who {
  margin: 0;
}

/* Régua de estimativa */
.estimate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 16px;
  border-radius: 24px;
  background: linear-gradient(#fff, #f3eeff);
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink), inset 0 3px 0 #fff;
  animation: deal 420ms cubic-bezier(0.3, 1.5, 0.5, 1) 260ms both;
}

.estimate__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  padding: 4px 18px 8px;
  border-radius: 16px;
  background: #0d0429;
  color: #ffd23f;
  text-shadow: 0 0 12px rgba(255, 210, 63, 0.8);
  font-variant-numeric: tabular-nums;
}

.estimate__value small {
  font-size: 18px;
  margin-left: 6px;
}

.estimate__track {
  position: relative;
  width: 100%;
  padding: 26px 0 18px;
}

.estimate__track input[type='range'] {
  width: 100%;
  height: 34px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: grab;
}

.estimate__track input[type='range']::-webkit-slider-runnable-track {
  height: 18px;
  border-radius: 99px;
  border: 3px solid var(--ink);
  background: linear-gradient(90deg, color-mix(in oklab, var(--cat) 35%, #fff), var(--cat));
}

.estimate__track input[type='range']::-moz-range-track {
  height: 18px;
  border-radius: 99px;
  border: 3px solid var(--ink);
  background: linear-gradient(90deg, color-mix(in oklab, var(--cat) 35%, #fff), var(--cat));
}

.estimate__track input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 38px;
  height: 38px;
  margin-top: -13px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: radial-gradient(circle at 35% 30%, #fff 0 20%, #ffd23f 50%, #ffb21f);
  box-shadow: 0 4px 0 var(--ink);
}

.estimate__track input[type='range']::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: radial-gradient(circle at 35% 30%, #fff 0 20%, #ffd23f 50%, #ffb21f);
}

.estimate__zone {
  position: absolute;
  top: 32px;
  height: 22px;
  border-radius: 99px;
  background: rgba(47, 203, 110, 0.55);
  border: 3px dashed var(--ok-deep);
  pointer-events: none;
  animation: pop-in 300ms ease-out both;
}

.estimate__pin {
  position: absolute;
  top: -14px;
  transform: translateX(-50%);
  animation: pin-drop 420ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
  pointer-events: none;
}

.estimate__pin.is-me {
  top: auto;
  bottom: -22px;
  z-index: 2;
}

.estimate__answer {
  position: absolute;
  top: 60px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--ok);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 0 8px 2px;
  animation: stamp 420ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.estimate__ends {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 12px;
  color: var(--ink-soft);
}

.estimate__ends i {
  font-style: normal;
}

.estimate__go {
  font-size: 24px;
  padding: 10px 34px 12px;
}

.estimate__wait {
  margin: 0;
  font-weight: 900;
  color: var(--ink-soft);
}

@keyframes pin-drop {
  from {
    transform: translate(-50%, -26px) scale(0.4);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}

/* ---------- Perguntas de som e de sombra ---------- */
.board__emoji {
  display: block;
  font-size: 84px;
  line-height: 1;
  margin: 2px auto 6px;
  filter: brightness(0) drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
  transition: filter 450ms ease-out;
  animation: m-wiggle 2.4s ease-in-out infinite;
}

.board__emoji.is-revealed {
  filter: none;
  animation: pop-in 480ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.board__listen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px auto 8px;
  padding: 6px 14px 8px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: linear-gradient(#fff, #e9e2ff);
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 800;
  color: var(--ink);
}

.board__listen:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
/* ==========================================================================
   Auditório: palco, holofotes, plateia, lâmpadas, cortina, vinheta e efeitos voadores.
   ========================================================================== */

/* A cor do palco anima suave quando a categoria muda (precisa de @property para animar dentro do gradiente). */
@property --tint {
  syntax: '<color>';
  inherits: true;
  initial-value: #7b3fe4;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: --tint 700ms ease;
}

.stage__base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 75% at 50% 0%, color-mix(in oklab, var(--tint) 78%, #fff 6%) 0%, color-mix(in oklab, var(--tint) 45%, #160640) 52%, #0c0326 100%);
}

.stage__rays {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 260vmax;
  height: 260vmax;
  margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.075) 0deg 8deg, transparent 8deg 16deg);
  animation: spin 80s linear infinite;
  mask-image: radial-gradient(circle, #000 0%, transparent 42%);
}

.stage__spot {
  position: absolute;
  top: -12vh;
  width: 60vmax;
  height: 135vh;
  background: linear-gradient(to bottom, rgba(255, 248, 214, 0.42), rgba(255, 248, 214, 0.1) 55%, rgba(255, 248, 214, 0) 88%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  mix-blend-mode: screen;
  filter: blur(5px);
  opacity: 0.7;
  transition: opacity 400ms, filter 400ms;
}

.stage__spot--l {
  left: -28vmax;
  animation: sweep-l 7s ease-in-out infinite alternate;
}

.stage__spot--r {
  right: -28vmax;
  animation: sweep-r 8.5s ease-in-out infinite alternate;
}

.stage__floor {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -6vh;
  height: 38vh;
  background: radial-gradient(50% 55% at 50% 100%, color-mix(in oklab, var(--tint) 55%, #fff 30%) 0%, transparent 100%);
  opacity: 0.7;
}

.stage__flames {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  background:
    radial-gradient(30% 60% at 20% 100%, rgba(255, 160, 40, 0.9), transparent 70%),
    radial-gradient(30% 70% at 50% 100%, rgba(255, 90, 40, 0.9), transparent 70%),
    radial-gradient(30% 60% at 80% 100%, rgba(255, 200, 60, 0.9), transparent 70%);
  opacity: 0;
  transform-origin: 50% 100%;
  transition: opacity 500ms;
  mix-blend-mode: screen;
}

.stage[data-heat='1'] .stage__flames {
  opacity: 0.55;
  animation: flicker 0.9s ease-in-out infinite alternate;
}

.stage[data-heat='2'] .stage__flames {
  opacity: 0.8;
  animation: flicker 0.5s ease-in-out infinite alternate, rainbow 2.4s linear infinite;
}

.stage[data-heat='2'] .stage__rays,
.stage[data-mood='party'] .stage__rays {
  background: repeating-conic-gradient(from 0deg, rgba(255, 90, 140, 0.2) 0deg 8deg, rgba(255, 210, 63, 0.18) 8deg 16deg, rgba(61, 190, 74, 0.16) 16deg 24deg, rgba(53, 87, 224, 0.2) 24deg 32deg);
  animation-duration: 16s;
}

/* Humores do palco */
.stage[data-mood='cheer'] .stage__spot,
.stage[data-mood='party'] .stage__spot {
  opacity: 1;
  animation-duration: 1.1s, 1.1s;
}

.stage[data-mood='cheer'] .stage__spot--l,
.stage[data-mood='party'] .stage__spot--l {
  animation-duration: 0.9s;
}

.stage[data-mood='aww'] .stage__spot {
  opacity: 0.18;
}

.stage[data-mood='aww'] .stage__base {
  filter: saturate(0.6) brightness(0.8);
}

.stage[data-mood='tension'] .stage__spot {
  background: linear-gradient(to bottom, rgba(255, 70, 70, 0.5), rgba(255, 70, 70, 0) 85%);
  animation-duration: 2.2s;
}

.stage[data-mood='tension'] .stage__base {
  animation: tension-pulse 0.5s ease-in-out infinite alternate;
}

/* Bokeh: bolhas de luz subindo devagar */
.stage__bokeh {
  position: absolute;
  inset: 0;
}

.bokeh {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
  animation: bokeh-rise linear infinite;
}

.bokeh--0 {
  background: rgba(255, 210, 63, 0.55);
}

.bokeh--1 {
  background: rgba(255, 95, 162, 0.5);
}

.bokeh--2 {
  background: rgba(120, 220, 255, 0.5);
}

/* Plateia */
.audience {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 92px;
}

.audience {
  overflow: hidden;
}

.audience__row {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  transform: translateX(-50%);
  white-space: nowrap;
}

.audience__row--back {
  bottom: 26px;
  margin-left: 18px;
}

.fan {
  flex: none;
  margin-left: -6px;
  fill: #07011c;
  stroke: #07011c;
  filter: drop-shadow(0 -1.5px 0 rgba(255, 220, 255, 0.28));
  animation: fan-bob 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.audience__row--back .fan {
  fill: #2d1570;
  stroke: #2d1570;
  filter: drop-shadow(0 -1.5px 0 rgba(255, 220, 255, 0.22));
}

.fan__arms {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0;
}

.stage[data-mood='cheer'] .fan,
.stage[data-mood='party'] .fan {
  animation: fan-jump 0.34s ease-in-out infinite alternate;
}

.stage[data-mood='cheer'] .fan__arms,
.stage[data-mood='party'] .fan__arms {
  opacity: 1;
}

.stage[data-mood='aww'] .fan {
  animation: fan-slump 0.6s ease-out both;
}

/* ---------- Lâmpadas de letreiro ---------- */
.bulbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.bulb {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #4a3a24;
  border: 2px solid #1b1446;
  transition: background 120ms, box-shadow 120ms;
}

.bulb.is-on {
  background: radial-gradient(circle at 35% 35%, #fffef2 0 18%, #ffe066 45%, #ffae00 100%);
  box-shadow: 0 0 6px 2px rgba(255, 214, 90, 0.85), 0 0 16px 4px rgba(255, 170, 0, 0.35);
}

.bulbs--chase .bulb.is-on {
  animation: bulb-chase 0.5s steps(1, end) infinite;
}

.bulbs--chase .bulb.is-odd.is-on {
  animation-delay: -0.25s;
}

.bulbs--party .bulb {
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, hsl(calc(var(--i) * 37) 95% 62%) 50%, hsl(calc(var(--i) * 37) 90% 45%) 100%);
  box-shadow: 0 0 8px 3px hsl(calc(var(--i) * 37) 95% 60% / 0.8);
  animation: bulb-chase 0.24s steps(1, end) infinite;
}

.bulbs--party .bulb.is-odd {
  animation-delay: -0.12s;
}

.bulbs--urgent .bulb.is-on {
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #ff6b5e 50%, #c3141e 100%);
  box-shadow: 0 0 8px 3px rgba(255, 70, 60, 0.9);
  animation: bulb-blink 0.25s steps(1, end) infinite alternate;
}

.bulbs--off .bulb {
  background: #3a2c1c;
  box-shadow: none;
}

/* ---------- Cortina e sanefa ---------- */
.curtains {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.35)),
    repeating-linear-gradient(90deg, #7c0b1b 0 10px, #b51b31 10px 26px, #d9334a 26px 31px, #a3142a 31px 44px, #7c0b1b 44px 54px);
  box-shadow: inset 0 -10px 0 #ffd23f, inset 0 -14px 0 #1b1446;
  transition: transform 620ms cubic-bezier(0.7, 0, 0.25, 1);
}

.curtain--l {
  left: 0;
  border-right: 4px solid #1b1446;
}

.curtain--r {
  right: 0;
  border-left: 4px solid #1b1446;
}

.curtains.is-open .curtain--l {
  transform: translateX(calc(-100% + 7px));
}

.curtains.is-open .curtain--r {
  transform: translateX(calc(100% - 7px));
}

.valance {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  background:
    radial-gradient(circle at 50% 0, #b51b31 0 15px, #1b1446 15px 18px, transparent 18px) 0 6px / 42px 24px repeat-x,
    linear-gradient(#a3142a, #a3142a) 0 0 / 100% 12px no-repeat;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.25));
}

.valance::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #ffd23f 0 6px, #e6a400 6px 9px);
}

/* ---------- Vinheta entre rodadas ---------- */
/* Flex (não grid): faixa maior que a tela continua centrada, sobrando igual dos dois lados.
   Largura em % da própria vinheta, nunca em vw: na tela grande o .app é escalado e vw sairia multiplicado. */
.stinger {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.stinger__band {
  flex: none;
  width: 150%;
  padding: 14px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: repeating-linear-gradient(-45deg, var(--st) 0 26px, color-mix(in oklab, var(--st) 82%, #fff) 26px 52px);
  border-top: 6px solid #1b1446;
  border-bottom: 6px solid #1b1446;
  box-shadow: 0 10px 0 rgba(27, 20, 70, 0.45);
  transform: rotate(-6deg);
  animation: stinger-band 1800ms cubic-bezier(0.6, 0, 0.3, 1) both;
}

.stinger__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 13vw, 76px);
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 6px #1b1446;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 #1b1446;
  animation: stinger-text 1800ms cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.stinger__sub {
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #1b1446;
}

/* ---------- Pontos voando ---------- */
.flyer,
.flyer-trail {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 700;
  will-change: transform;
}

.flyer {
  font-size: 30px;
  color: #ffd23f;
  -webkit-text-stroke: 5px #1b1446;
  paint-order: stroke fill;
  white-space: nowrap;
}

.flyer-trail {
  font-size: 18px;
  color: #fff7c2;
  text-shadow: 0 0 8px rgba(255, 210, 63, 0.9);
}

.is-bump {
  animation: chip-bump 420ms cubic-bezier(0.3, 1.7, 0.5, 1);
}

/* ---------- Keyframes ---------- */
@keyframes sweep-l {
  from {
    transform: rotate(-34deg);
  }
  to {
    transform: rotate(16deg);
  }
}

@keyframes sweep-r {
  from {
    transform: rotate(34deg);
  }
  to {
    transform: rotate(-16deg);
  }
}

@keyframes flicker {
  from {
    transform: scaleY(0.9);
  }
  to {
    transform: scaleY(1.12);
  }
}

@keyframes rainbow {
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes tension-pulse {
  from {
    filter: none;
  }
  to {
    filter: brightness(0.85) saturate(1.3) hue-rotate(-12deg);
  }
}

@keyframes bokeh-rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh);
    opacity: 0;
  }
}

@keyframes fan-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes fan-jump {
  from {
    transform: translateY(0) scale(1, 1);
  }
  to {
    transform: translateY(-11px) scale(0.96, 1.05);
  }
}

@keyframes fan-slump {
  to {
    transform: translateY(5px) scale(1.03, 0.94);
  }
}

@keyframes bulb-chase {
  0% {
    filter: none;
    opacity: 1;
  }
  50% {
    filter: brightness(0.35) saturate(0.5);
    opacity: 0.75;
  }
}

@keyframes bulb-blink {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.25;
  }
}

@keyframes stinger-band {
  0% {
    transform: translateX(-120%) rotate(-6deg);
  }
  18% {
    transform: translateX(0) rotate(-6deg);
  }
  82% {
    transform: translateX(3%) rotate(-6deg);
  }
  100% {
    transform: translateX(120%) rotate(-6deg);
  }
}

@keyframes stinger-text {
  0%,
  12% {
    transform: scale(0.4);
  }
  24% {
    transform: scale(1.12);
  }
  32%,
  100% {
    transform: scale(1);
  }
}

@keyframes chip-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18) rotate(-3deg);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .stage__rays,
  .stage__spot,
  .bokeh,
  .fan,
  .stage__flames,
  .bulbs--chase .bulb.is-on,
  .bulbs--party .bulb {
    animation: none !important;
  }
  .stinger__band,
  .stinger__text {
    animation-name: none !important;
  }
  .curtain {
    transition-duration: 1ms;
  }
}

/* Bolinha escolhida voando do globo até o painel (fx/fly.ts → flyBall). */
.flyball {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  border-radius: 50%;
  border: 4px solid #1b1446;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--cat) 45%, #fff) 0%, var(--cat) 55%, color-mix(in oklab, var(--cat) 60%, #000) 100%);
  box-shadow: 0 0 30px 8px color-mix(in oklab, var(--cat) 70%, transparent);
  will-change: transform, opacity;
}
/* ==========================================================================
   Meta: nível, sequência diária, álbum, figurinhas, pacotinho, XP, configurações, tutorial.
   ========================================================================== */

/* ---------- Chips da tela inicial ---------- */
.home__top {
  gap: 8px;
  align-items: center;
}

.home__gear {
  margin-left: auto;
}

/* Tela cheia fica antes da engrenagem/do ✕; se o navegador não tiver tela cheia, o botão some e nada muda. */
.home__top .fullscreen-btn,
.match__top .fullscreen-btn {
  margin-left: auto;
}

.home__top .fullscreen-btn + .home__gear,
.match__top .fullscreen-btn + .match__exit {
  margin-left: 0;
}

.match__top .fullscreen-btn,
.match__top .gear-btn {
  width: 42px;
  height: 42px;
}

/* Engrenagem da partida: à direita, antes do ✕ (e depois da tela cheia, se existir). */
.match__top .match__gear {
  margin-left: auto;
}

.match__top .fullscreen-btn + .match__gear,
.match__top .match__gear + .match__exit {
  margin-left: 0;
}

.sheet__install {
  width: 100%;
  margin-top: 12px;
  font-size: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 4px 4px;
  border: 4px solid var(--ink);
  border-radius: 99px;
  background: linear-gradient(#fff, #e9e2ff);
  box-shadow: 0 4px 0 var(--ink), inset 0 3px 0 #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.chip--streak {
  padding-left: 10px;
  color: var(--ink);
  background: linear-gradient(#fff1c4, #ffc46b);
}

.chip--streak svg {
  color: #ff5a1f;
  animation: flame-flicker 0.4s ease-in-out infinite alternate;
}

.chip--streak.is-off {
  color: var(--ink-soft);
  background: linear-gradient(#f1edfa, #d9d1f2);
}

.chip--streak.is-off svg {
  color: #a69cc8;
  animation: none;
}

/* Anel de progresso do nível (conic-gradient com a % de XP) */
.chip__ring {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 55%, transparent 56%), conic-gradient(var(--ok) var(--p), #d9d1f2 0);
  border: 2px solid var(--ink);
  font-size: 14px;
}

.home__album {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  position: absolute;
  top: -12px;
  right: -12px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: #ff5a4e;
  color: #fff;
  border: 3px solid var(--ink);
  font-size: 15px;
  animation: pulse 1s ease-in-out infinite;
}

/* ---------- Álbum ---------- */
.album {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.album__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.album__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: #fff;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}

.album__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
}

.album__bar {
  flex: 1;
  height: 18px;
  border: 4px solid var(--ink);
  border-radius: 99px;
  background: #1b0b4d;
  overflow: hidden;
}

.album__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffd23f, #ff9f1c);
  border-radius: 99px;
  transition: width 600ms cubic-bezier(0.3, 1.2, 0.5, 1);
}

.album__pages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: linear-gradient(#fff8e6, #ffeec4);
  box-shadow: 0 6px 0 var(--ink), inset 0 0 0 4px #fff;
}

.album__row-name {
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 10px 3px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

.album__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.album__open {
  font-size: 24px;
  padding: 12px 20px 14px;
}

.album__open:disabled {
  filter: grayscale(0.8);
  opacity: 0.7;
}

/* ---------- Figurinha ---------- */
.sticker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px 5px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, color-mix(in oklab, var(--cat) 30%, #fff) 0%, color-mix(in oklab, var(--cat) 65%, #fff) 100%);
  box-shadow: 0 4px 0 var(--ink);
  overflow: hidden;
}

.sticker-card__title {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  min-height: 22px;
}

.sticker-card__dup {
  position: absolute;
  top: 3px;
  right: 3px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

/* Rara: brilho holográfico passando */
.sticker-card.rarity-rara::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.75) 47%, rgba(120, 220, 255, 0.5) 50%, rgba(255, 140, 220, 0.5) 53%, transparent 60%);
  animation: holo 2.6s ease-in-out infinite;
  pointer-events: none;
}

/* Ouro: moldura dourada e brilho */
.sticker-card.rarity-ouro {
  border-color: #8a5a00;
  background: radial-gradient(circle at 50% 30%, #fff7cc 0%, #ffd23f 55%, #e6a400 100%);
  box-shadow: 0 4px 0 #8a5a00, 0 0 16px 4px rgba(255, 210, 63, 0.7);
}

.sticker-card.rarity-ouro::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%);
  animation: holo 1.8s ease-in-out infinite;
  pointer-events: none;
}

.sticker-card.is-missing {
  background: repeating-linear-gradient(45deg, #efe8d8 0 8px, #e6dcc6 8px 16px);
  box-shadow: none;
  border-style: dashed;
}

.sticker-card.is-missing::after {
  display: none;
}

.sticker-card.is-missing .sticker-card__art {
  filter: brightness(0) opacity(0.18);
}

@keyframes holo {
  0% {
    transform: translateX(-30%);
  }
  100% {
    transform: translateX(30%);
  }
}

/* ---------- Pacotinho ---------- */
.pack-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 246, 200, 0.35), rgba(12, 3, 38, 0.88) 60%);
  animation: fade-in 200ms ease-out both;
  cursor: pointer;
}

.pack {
  position: relative;
  width: 190px;
  height: 260px;
}

.pack__body,
.pack__flap {
  position: absolute;
  left: 0;
  right: 0;
  border: 5px solid var(--ink);
  background:
    linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 45%, transparent 55%) 0 0 / 300% 100%,
    linear-gradient(160deg, #ff5fa2 0%, #a23bd9 50%, #3557e0 100%);
  animation: foil 3s linear infinite;
}

.pack__flap {
  top: 0;
  height: 40px;
  border-radius: 14px 14px 0 0;
  border-bottom: 3px dashed rgba(255, 255, 255, 0.8);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 92% 100%, 84% 80%, 76% 100%, 68% 80%, 60% 100%, 52% 80%, 44% 100%, 36% 80%, 28% 100%, 20% 80%, 12% 100%, 4% 80%, 0 100%);
}

.pack__body {
  top: 34px;
  bottom: 0;
  border-radius: 0 0 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 10px 0 var(--ink);
}

.pack__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: #ffd23f;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}

.pack__sub {
  font-weight: 900;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 2px 0 var(--ink);
}

.step-idle .pack {
  animation: pack-idle 1.6s ease-in-out infinite;
}

.step-shake .pack {
  animation: pack-shake 0.09s linear infinite;
}

.step-torn .pack__flap {
  animation: flap-off 520ms cubic-bezier(0.3, 0, 0.7, 1) both;
}

.step-torn .pack__body {
  animation: foil 3s linear infinite, pack-burst 520ms ease-in 120ms both;
}

.pack__hint {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-shadow: 0 3px 0 var(--ink);
  animation: pulse 1s ease-in-out infinite;
}

.pack__cards {
  display: flex;
  gap: 12px;
  perspective: 900px;
}

.flip-slot {
  position: relative;
  animation: card-out 520ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.flip {
  position: relative;
  width: 104px;
  height: 140px;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.3, 1.4, 0.5, 1);
}

.flip.is-flipped {
  transform: rotateY(180deg);
}

.flip__back,
.flip__front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
}

.flip__back {
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  background: repeating-linear-gradient(45deg, #a23bd9 0 10px, #8a2cc0 10px 20px);
  box-shadow: 0 6px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 54px;
  color: #ffd23f;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

.flip__front {
  transform: rotateY(180deg);
}

.flip__front .sticker-card {
  height: 100%;
  justify-content: center;
}

.flip__new {
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  padding: 1px 8px 3px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #ff5a4e;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  animation: stamp 420ms cubic-bezier(0.3, 1.6, 0.5, 1) 250ms both;
}

.pack__actions {
  margin-top: 22px;
}

@keyframes foil {
  to {
    background-position: -300% 0, 0 0;
  }
}

@keyframes pack-idle {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-8px);
  }
}

@keyframes pack-shake {
  0% {
    transform: translate(-4px, 2px) rotate(-3deg);
  }
  50% {
    transform: translate(4px, -2px) rotate(3deg);
  }
  100% {
    transform: translate(-4px, 2px) rotate(-3deg);
  }
}

@keyframes flap-off {
  to {
    transform: translate(120px, -220px) rotate(48deg);
    opacity: 0;
  }
}

@keyframes pack-burst {
  to {
    transform: scale(1.3);
    opacity: 0;
    filter: brightness(2);
  }
}

@keyframes card-out {
  from {
    transform: translateY(80px) scale(0.3);
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- XP no resultado ---------- */
.xp {
  position: relative;
  align-self: stretch;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: linear-gradient(#2a1170, #170846);
  box-shadow: 0 6px 0 var(--ink);
  color: #fff;
}

.xp__level {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: #ffd23f;
}

.xp__level small {
  font-size: 10px;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xp__bar {
  height: 20px;
  border: 3px solid #0c0326;
  border-radius: 99px;
  background: #0c0326;
  overflow: hidden;
}

.xp__bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5ee68f, #2fcb6e);
  box-shadow: 0 0 12px rgba(94, 230, 143, 0.8);
  transition: width 1000ms cubic-bezier(0.3, 1, 0.5, 1);
}

.xp__gain {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #7dff9d;
  font-variant-numeric: tabular-nums;
}

.xp__stamp {
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: #ffd23f;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  white-space: nowrap;
  animation: stamp 520ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.xp__daily {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #ffb15a;
}

.result__row {
  display: flex;
  gap: 10px;
}

.result__packs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(#ffd6ea, #ff9fca);
  animation: pulse 1.2s ease-in-out infinite;
}

/* ---------- Configurações ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 3, 38, 0.6);
  animation: fade-in 180ms ease-out both;
}

.sheet {
  width: min(520px, 100%);
  padding: 16px 18px max(22px, env(safe-area-inset-bottom));
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(#fff, #f3eeff);
  animation: sheet-up 320ms cubic-bezier(0.3, 1.3, 0.5, 1) both;
}

.sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sheet__top h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 2px dashed #ddd3f5;
  cursor: pointer;
}

.toggle-row span {
  display: flex;
  flex-direction: column;
}

.toggle-row small {
  color: var(--ink-soft);
  font-weight: 700;
}

.toggle {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 62px;
  height: 36px;
  border: 4px solid var(--ink);
  border-radius: 99px;
  background: #cfc8e6;
  position: relative;
  cursor: pointer;
  transition: background 160ms;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: #fff;
  transition: transform 220ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

.toggle:checked {
  background: var(--ok);
}

.toggle:checked::after {
  transform: translateX(26px);
}

.sheet__tutorial {
  width: 100%;
  margin-top: 14px;
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}

/* ---------- Tutorial (dicas da Lara) ---------- */
.coach {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 20px);
  pointer-events: none;
  animation: coach-in 420ms cubic-bezier(0.3, 1.5, 0.5, 1) 300ms both;
}

.coach--question {
  bottom: 300px;
}

.coach__bubble {
  padding: 8px 12px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: #fffbe0;
  box-shadow: 0 5px 0 var(--ink);
  font-weight: 900;
  font-size: 15px;
}

.match {
  position: relative;
}

@keyframes coach-in {
  from {
    transform: translate(-50%, 20px) scale(0.7);
    opacity: 0;
  }
  to {
    transform: translateX(-50%);
    opacity: 1;
  }
}

/* ---------- Menos movimento (configurações): congela loops e encurta tudo ---------- */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0ms !important;
  transition-duration: 1ms !important;
}

/* ---------- Telas grandes: coluna um pouco maior, palco aparecendo dos lados ---------- */
@media (min-width: 900px) and (min-height: 760px) {
  .app {
    max-width: 560px;
  }
}


/* ---------- Idioma: tela da 1ª abertura e escolha nas configurações ---------- */
.lang-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 4px 24px;
  text-align: center;
}

.lang-screen__lara {
  margin: 4px 0 -8px;
  animation: pop-in 520ms 120ms cubic-bezier(0.3, 1.4, 0.5, 1) both;
}

.lang-screen__sub {
  margin: 0;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 0 var(--ink);
}

.lang-screen__list {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 14px;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: linear-gradient(#fff, #efe9ff);
  box-shadow: 0 7px 0 var(--ink), inset 0 4px 0 #fff;
  text-align: left;
  animation: rise-in 420ms cubic-bezier(0.3, 1.3, 0.5, 1) both;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}

.lang-option:hover {
  background: linear-gradient(#fff8d6, #ffe98a);
}

.lang-option:active {
  transform: translateY(6px);
  box-shadow: 0 1px 0 var(--ink), inset 0 4px 0 #fff;
}

.lang-option__text {
  display: flex;
  flex-direction: column;
}

.lang-option__text b {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}

.lang-option__text small {
  color: var(--ink-soft);
  font-weight: 800;
}

.lang-flag {
  flex: none;
  filter: drop-shadow(0 3px 0 rgba(27, 20, 70, 0.35));
}

.lang-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px 0 12px;
  border-bottom: 2px dashed #ddd3f5;
}

.lang-picker__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 3px solid #cfc8e6;
  border-radius: 16px;
  background: #fff;
  font-weight: 800;
  color: var(--ink-soft);
}

.lang-picker__opt.is-on {
  border-color: var(--ink);
  background: linear-gradient(#fff8d6, #ffe98a);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}

/* ---------- Desafio do Dia ---------- */
.home__daily {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  background: linear-gradient(#e6fff4, #9df0c7);
}

.home__daily.is-done {
  background: linear-gradient(#fff, #efe9ff);
  color: var(--ink-soft);
}

.home__daily-streak {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 8px 2px 6px;
  border-radius: 99px;
  background: #ffe2b8;
  color: #8a3b00;
  font-size: 15px;
}

.daily {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  width: 100%;
}

.daily__squares {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.daily__sq {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 5px 0 var(--ink);
  animation: pop-in 380ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.daily__sq.is-right {
  background: linear-gradient(#5be38f, var(--ok));
}

.daily__sq.is-wrong {
  background: linear-gradient(#ff7a88, var(--bad));
}

.daily__sq.is-timeout {
  background: linear-gradient(#f2eefc, #cfc8e6);
}

.daily .stats b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.daily__xp {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--sun);
  text-shadow: 0 3px 0 var(--ink);
}

.daily__next {
  margin: 0;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 0 var(--ink);
}

/* Desafio do Dia: sem globo, o bicho da categoria salta no palco antes da pergunta. */
.daily-cat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.daily-cat__name {
  padding: 6px 22px 8px;
  border: 4px solid var(--ink);
  border-radius: 99px;
  background: var(--cat);
  color: #fff;
  font-family: var(--font-display);
  font-size: 30px;
  text-shadow: 0 3px 0 var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  animation: pop-in 420ms 120ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

/* ---------- Coroas da bicharada ---------- */
.crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 800;
}

.crown-badge small {
  font-size: 12px;
  color: var(--ink-soft);
}

.crown-badge.tier-1 {
  color: #d98a4a;
}

.crown-badge.tier-2 {
  color: #dfe6f5;
}

.crown-badge.tier-3 {
  color: #ffd23f;
  filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.8));
}

/* Coroinha em cima do bicho no Início */
.home__crew-item {
  position: relative;
}

.home__crown {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%) rotate(-8deg);
}

.crew-list li .crown-badge {
  margin-left: auto;
}

.crew-list li .crown-badge.tier-0 {
  color: #cfc8e6;
}

/* "Coroa nova!" no resultado: entra carimbando depois da barra de XP */
.crown-ups {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.crown-up {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: linear-gradient(#fff8d6, #ffe08a);
  box-shadow: 0 6px 0 var(--ink), 0 0 30px 6px rgba(255, 210, 63, 0.55);
  animation: stamp 520ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.crown-up.tier-1 {
  background: linear-gradient(#ffe9d6, #f0b383);
}

.crown-up.tier-2 {
  background: linear-gradient(#ffffff, #d9e1f2);
}

.crown-up__who {
  position: relative;
}

.crown-up__crown {
  position: absolute;
  top: -20px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%) rotate(-10deg);
  color: #ffd23f;
}

.crown-up.tier-1 .crown-up__crown {
  color: #d98a4a;
}

.crown-up.tier-2 .crown-up__crown {
  color: #dfe6f5;
}

.crown-up__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.crown-up__text b {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.crown-up__text small {
  font-weight: 800;
  color: var(--ink-soft);
}
/* ==========================================================================
   Tela grande (computador, notebook, tablet deitado): classe .layout-desktop no <html> (ver useLayout.ts).
   O celular continua com a coluna única; aqui cada tela vira um cenário de programa de TV em 3 colunas.
   ========================================================================== */

.home__center {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro__go {
  margin-top: 6px;
}

/* Tela grande: o jogo inteiro é desenhado em 1400×860 lógicos e escalado (--ui-scale vem do useLayout).
   A largura lógica acompanha a janela, então o palco não deixa faixa vazia em monitor ultrawide. */
.layout-desktop .app {
  max-width: none;
  width: calc(100vw / var(--ui-scale, 1));
  height: calc(100vh / var(--ui-scale, 1));
  margin: 0;
  padding: 44px max(28px, calc((100vw / var(--ui-scale, 1) - 1340px) / 2)) 18px;
  transform: scale(var(--ui-scale, 1));
  transform-origin: 0 0;
}

/* ---------- Painéis laterais ---------- */
.panel,
.side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 5px solid var(--ink);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(42, 17, 112, 0.94) 0%, rgba(23, 8, 70, 0.94) 100%);
  box-shadow: 0 8px 0 var(--ink), inset 0 0 0 3px #4b2aa8;
  color: #fff;
  animation: panel-in 520ms cubic-bezier(0.3, 1.3, 0.5, 1) both;
}

.panel--right {
  animation-delay: 120ms;
}

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--sun);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

.panel__label,
.side__label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9bdf5;
}

.panel__hint {
  font-size: 13px;
  font-weight: 700;
  color: #e6defc;
}

.panel__block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel__level {
  display: flex;
  align-items: center;
  gap: 14px;
}

.big-ring {
  flex: none;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: radial-gradient(circle, #2a1170 0 58%, transparent 59%), conic-gradient(#5ee68f var(--p), #0c0326 0);
  box-shadow: 0 0 18px rgba(94, 230, 143, 0.35);
  line-height: 1;
}

.big-ring b {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--sun);
}

.big-ring small {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel__xp {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
}

.flames {
  display: flex;
  gap: 4px;
}

.flames__day {
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0c0326;
  color: #3a2c5a;
}

.flames__day.is-on {
  color: #ff8a1f;
  background: radial-gradient(circle at 50% 70%, rgba(255, 140, 30, 0.45), #0c0326 70%);
}

.flames__day.is-on svg {
  filter: drop-shadow(0 0 6px rgba(255, 150, 40, 0.9));
  animation: flame-flicker 0.4s ease-in-out infinite alternate;
}

.panel__album {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(#fff8e6, #ffe3a6);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 120ms;
}

.panel__album:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.panel__album span {
  display: flex;
  flex-direction: column;
}

.panel__album b {
  font-family: var(--font-display);
  font-size: 17px;
}

.panel__album small {
  font-weight: 800;
  color: var(--ink-soft);
}

.panel__album-cover {
  width: 50px;
  height: 58px;
  display: grid !important;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px 12px 12px 8px;
  background: linear-gradient(160deg, #ff5fa2, #a23bd9 60%, #3557e0);
  color: #fff;
}

.crew-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crew-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 10px 3px 4px;
  border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--cat) 40%, transparent), transparent);
}

.crew-list li span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.crew-list b {
  font-family: var(--font-display);
  font-size: 15px;
}

.crew-list i {
  font-style: normal;
  font-weight: 600;
  color: #e6defc;
}

.crew-list small {
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: #fff3c2;
}

.howto {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}

.howto li {
  counter-increment: step;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.howto li::before {
  content: counter(step);
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
}

@keyframes panel-in {
  from {
    transform: translateY(30px) scale(0.92);
    opacity: 0;
  }
}

/* ---------- Início em 3 colunas ---------- */
.home--desktop {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  grid-template-rows: auto 1fr;
  column-gap: 30px;
  align-items: center;
}

.home--desktop .home__top {
  grid-column: 1 / -1;
  align-self: start;
}

.home--desktop .panel--left {
  grid-column: 1;
  grid-row: 2;
}

.home--desktop .home__center {
  grid-column: 2;
  grid-row: 2;
  height: 100%;
}

.home--desktop .panel--right {
  grid-column: 3;
  grid-row: 2;
}

.home--desktop .logo {
  font-size: 104px;
}

.home--desktop .sign {
  padding: 22px 46px 18px;
}

.home--desktop .home__crew {
  max-width: none;
  flex-wrap: nowrap;
  gap: 6px;
}

.home--desktop .home__crew-item {
  margin-top: var(--arc);
}

.home--desktop .home__crew-item > span:last-child {
  font-size: 13px;
}

.home--desktop .home__beam {
  width: 360px;
  height: 340px;
}

/* ---------- Partida em 3 colunas: jogadores | palco | apresentadora ---------- */
.layout-desktop .match {
  display: grid;
  grid-template-columns: 250px minmax(0, 700px) 270px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    'top top top'
    'players main side';
  justify-content: center;
  column-gap: 28px;
  row-gap: 10px;
}

.layout-desktop .match__top {
  grid-area: top;
}

.layout-desktop .match > .intro,
.layout-desktop .match > .globe-wrap,
.layout-desktop .match > .announce,
.layout-desktop .match > .qa,
.layout-desktop .match > .scores {
  grid-area: main;
}

.layout-desktop .match > .qa {
  align-self: center;
  flex: none;
}

.layout-desktop .match > .scores {
  align-self: center;
  justify-self: center;
  width: min(100%, 560px);
}

.layout-desktop .pbar {
  grid-area: players;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 14px;
  margin: 0;
}

.layout-desktop .pchip {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 20px;
}

.layout-desktop .pchip__name {
  font-size: 17px;
}

.layout-desktop .pchip__score {
  margin-left: auto;
  font-size: 20px;
  padding: 2px 10px;
}

.layout-desktop .pchip__crown {
  top: -16px;
  left: 22px;
  margin: 0;
}

/* Balão do bot sai para a direita, apontando para o palco */
.layout-desktop .pbar .pchip .pchip__talk {
  left: calc(100% + 14px);
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
}

.layout-desktop .pbar .pchip .pchip__talk::after {
  left: -11px;
  bottom: auto;
  top: 50%;
  margin: -7px 0 0;
  border: 7px solid transparent;
  border-right: 8px solid var(--ink);
  border-left: 0;
}

.layout-desktop .coach {
  bottom: 40px;
}

.layout-desktop .coach--question {
  bottom: 40px;
}

/* Painel da apresentadora */
.side {
  grid-area: side;
  align-self: center;
  align-items: stretch;
  animation-delay: 150ms;
}

.side__host {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 10px;
  border-radius: 18px;
  background: radial-gradient(60% 70% at 50% 40%, rgba(255, 246, 200, 0.25), transparent 70%);
}

.side__host-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: #e6defc;
}

.side__meter,
.side__track {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thermo {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 5px;
  border-radius: 14px;
  background: #0c0326;
  border: 3px solid var(--ink);
}

.thermo__cell {
  height: 22px;
  border-radius: 7px;
  background: #251a45;
  transition: background 200ms, box-shadow 200ms;
}

.thermo__cell.is-on {
  background: linear-gradient(#ffe98a, #ffb21f);
  box-shadow: 0 0 10px rgba(255, 200, 60, 0.7);
  animation: pop-in 300ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.thermo__cell.is-on.is-hot {
  background: linear-gradient(#ffb15a, #ff4a1f);
  box-shadow: 0 0 12px rgba(255, 110, 40, 0.9);
}

.thermo__cell.is-on.is-zabum {
  background: linear-gradient(90deg, #ff5fa2, #ffd23f, #3dbe4a, #14c2b8, #3557e0);
  background-size: 300% 100%;
  animation: pop-in 300ms ease-out both, rainbow-slide 1.2s linear infinite;
}

.side__heat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.side.heat-1 .side__heat {
  color: #ff9a4a;
}

.side.heat-2 .side__heat {
  color: var(--sun);
  animation: pulse 0.6s ease-in-out infinite;
}

.track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.track__dot {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: #251a45;
  color: #8f84b8;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

.track__dot.is-zabum {
  border-color: #8a5a00;
  color: var(--sun);
}

.track__dot.is-now {
  background: #fff;
  color: var(--ink);
  animation: pulse 0.9s ease-in-out infinite;
}

.track__dot.is-right {
  background: var(--ok);
  color: #fff;
  animation: pop-in 320ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.track__dot.is-wrong,
.track__dot.is-timeout {
  background: var(--bad);
  color: #fff;
  animation: pop-in 320ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

/* Pergunta maior e alternativas 2×2, como no programa de TV */
.layout-desktop .board {
  margin-top: 56px;
}

.layout-desktop .board__screen {
  min-height: 190px;
  padding: 30px 26px 24px;
}

.layout-desktop .board__text {
  font-size: 32px;
}

.layout-desktop .board__fact {
  font-size: 21px;
}

.layout-desktop .options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.layout-desktop .opt {
  min-height: 78px;
  font-size: 21px;
}

.layout-desktop .opt:not(:disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--ink), inset 0 -4px 0 rgba(27, 20, 70, 0.07), inset 0 3px 0 #fff;
}

.layout-desktop .options--tf .opt {
  min-height: 150px;
  font-size: 28px;
}

.layout-desktop .globe {
  transform: scale(1.2);
  margin: 20px 0;
}

.layout-desktop .globe-wrap.is-out .globe {
  transform: scale(0.9);
  margin: 0 0 -10px;
}

.layout-desktop .slots {
  max-width: 600px;
}

.layout-desktop .slot:not(:disabled):hover {
  transform: translateY(-6px) rotate(-1.5deg);
}

/* ---------- Resultado: estatísticas | pódio | ações ---------- */
.layout-desktop .result {
  display: grid;
  grid-template-columns: 300px minmax(0, 560px) 300px;
  grid-template-areas:
    '. sign .'
    'stats podium actions'
    'xp podium actions';
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: 18px 30px;
}

.layout-desktop .result .sign--result {
  grid-area: sign;
  align-self: center;
  padding: 22px 30px 18px;
}

.layout-desktop .result__actions .btn--big {
  white-space: nowrap;
  font-size: 28px;
  padding: 14px 30px 18px;
}

.layout-desktop .result .podium {
  grid-area: podium;
}

.layout-desktop .result .stats {
  grid-area: stats;
  align-self: end;
}

.layout-desktop .result .xp {
  grid-area: xp;
  align-self: start;
}

.layout-desktop .result__actions {
  grid-area: actions;
  margin: 0;
}

.layout-desktop .result__row {
  flex-direction: column;
  align-items: center;
}

.layout-desktop .podium__step {
  font-size: 40px;
}

/* ---------- Álbum como livro aberto (duas páginas) ---------- */
.layout-desktop .album {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.layout-desktop .album__pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 56px;
  row-gap: 14px;
  padding: 18px 26px;
  background:
    linear-gradient(90deg, transparent calc(50% - 14px), rgba(120, 80, 20, 0.25) calc(50% - 2px), rgba(120, 80, 20, 0.35) 50%, rgba(120, 80, 20, 0.25) calc(50% + 2px), transparent calc(50% + 14px)),
    linear-gradient(#fff8e6, #ffeec4);
}

.layout-desktop .album__open {
  align-self: center;
  min-width: 360px;
}

/* Tela de idioma: as três opções lado a lado, letreiro e Lara maiores. */
.layout-desktop .lang-screen {
  gap: 26px;
}

.layout-desktop .lang-screen .sign {
  transform: scale(1.35);
  margin-bottom: 18px;
}

.layout-desktop .lang-screen__lara {
  zoom: 1.6;
}

.layout-desktop .lang-screen__sub {
  font-size: 22px;
}

.layout-desktop .lang-screen__list {
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, 100%);
}

.layout-desktop .lang-option {
  flex-direction: column;
  text-align: center;
  padding: 22px 18px;
}

.layout-desktop .lang-option .lang-flag {
  zoom: 1.5;
}

.layout-desktop .lang-option__text b {
  font-size: 28px;
}

/* Desafio do Dia na tela grande: coluna central mais larga, quadradinhos maiores. */
.layout-desktop .daily {
  max-width: 640px;
  margin: 0 auto;
  justify-content: center;
}

.layout-desktop .daily__sq {
  width: 62px;
  height: 62px;
}

.layout-desktop .daily .result__actions {
  margin-top: 8px;
}
/* ==========================================================================
   Multiplayer: início (galera / convidar / treinar), apelido e bicho, lobby, partida ao vivo, avisos de rede.
   Celular primeiro (375 px); a tela grande ganha ajustes no fim do arquivo.
   ========================================================================== */

/* ---------- Início ---------- */
.home__play {
  font-size: clamp(25px, 7.4vw, 32px);
  padding-inline: 26px;
  white-space: nowrap;
}

.home__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  text-shadow: 0 2px 0 rgba(12, 3, 38, 0.6);
}

.home__live i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(47, 203, 110, 0.35);
  animation: live-dot 1.4s ease-in-out infinite;
}

@keyframes live-dot {
  50% {
    box-shadow: 0 0 0 7px rgba(47, 203, 110, 0);
  }
}

.home__modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.home__modes .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  padding: 9px 14px 11px;
}

/* ---------- Apelido e bicho ---------- */
.ident__preview {
  display: grid;
  place-items: center;
  height: 112px;
}

.ident__label {
  display: block;
  margin: 10px 2px 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.ident__input {
  width: 100%;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  padding: 10px 14px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 3px 0 #e9e2ff;
  color: var(--ink);
  outline: none;
}

.ident__input:focus {
  border-color: #7b3fe4;
  box-shadow: 0 0 0 4px rgba(123, 63, 228, 0.25);
}

.ident__pick {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.ident__opt {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 3px;
  border: 3px solid transparent;
  border-radius: 14px;
  font-weight: 900;
  font-size: 10px;
  transition: transform 120ms;
}

.ident__opt.is-on {
  border-color: var(--ink);
  background: color-mix(in oklab, var(--cat) 30%, #fff);
  box-shadow: 0 3px 0 var(--ink);
  transform: translateY(-3px);
}

.ident__go {
  width: 100%;
  margin-top: 16px;
}

.ident__go:disabled {
  filter: grayscale(0.8);
  opacity: 0.6;
}

/* ---------- Lobby ---------- */
.lobby {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  overflow-y: auto;
  scrollbar-width: none;
}

.lobby__top {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lobby__kind {
  padding: 4px 14px 5px;
}

.lobby__top .gear-btn {
  width: 44px;
  height: 44px;
}

.lobby__kind.is-open {
  background: linear-gradient(#e6fff4, #9df0c7);
}

.lobby__sign {
  width: min(100%, 360px);
  padding: 16px 16px 18px;
}

.lobby__label {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.lobby__code {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 12px;
}

.lobby__code span {
  width: 46px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 14px;
  background: linear-gradient(#fff, #fff1c4);
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
  animation: pop-in 420ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.lobby__invite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lobby__stage {
  width: 100%;
}

.lobby__seats {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.lobby__seat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 108px;
  padding: 6px 2px 8px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(180deg, #3b2290 0%, #22105e 100%);
  box-shadow: 0 5px 0 var(--ink), inset 0 3px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lobby__seat.is-filled {
  animation: seat-in 520ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.lobby__seat.is-filled::before {
  /* anel de cor do bicho: diferencia dois jogadores com o mesmo bicho */
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 3px color-mix(in oklab, var(--cat) 80%, transparent);
  pointer-events: none;
}

.lobby__seat.is-me {
  background: linear-gradient(180deg, #ffe98a 0%, #ffbf1f 100%);
  color: var(--ink);
  cursor: pointer;
}

.lobby__seat.is-off {
  opacity: 0.5;
  filter: grayscale(0.6);
}

.lobby__seat.is-empty {
  background: rgba(255, 255, 255, 0.06);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.7);
  justify-content: center;
  gap: 6px;
}

.lobby__seat:disabled {
  cursor: default;
}

@keyframes seat-in {
  0% {
    transform: translateY(-40px) scale(0.6);
    opacity: 0;
  }
  60% {
    transform: translateY(4px) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}

.lobby__bot,
.lobby__dots {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.lobby__dots {
  animation: pulse 1.8s ease-in-out infinite;
}

.lobby__name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
  font-size: 13px;
  padding: 0 4px;
}

.lobby__edit {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.lobby__host {
  position: absolute;
  top: -14px;
  left: 50%;
  margin-left: -9px;
  color: #ffd23f;
  filter: drop-shadow(0 0 6px rgba(255, 210, 63, 0.9));
  animation: crown-bob 1.4s ease-in-out infinite;
}

.lobby__note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  font-size: 13px;
}

.lobby__status {
  min-height: 52px;
  display: grid;
  place-items: center;
}

.lobby__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-shadow: 0 3px 0 var(--ink);
}

.lobby__count b {
  font-size: 46px;
  color: var(--sun);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  display: inline-block;
  /* sem começar transparente: o número troca a cada segundo e precisa estar sempre legível */
  animation: count-pop 420ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes count-pop {
  from {
    transform: scale(1.7);
  }
}

.lobby__hint {
  margin: 0;
  max-width: 320px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-shadow: 0 2px 0 rgba(12, 3, 38, 0.6);
}

.lobby__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 6px;
}

.lobby__actions > .btn--big {
  font-size: clamp(24px, 7vw, 30px);
  white-space: nowrap;
}

.lobby__actions > .btn:disabled {
  opacity: 0.5;
  filter: grayscale(0.6);
}

.lobby__config {
  width: 100%;
  text-align: left;
  padding: 4px 14px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: linear-gradient(#fff, #f3eeff);
  box-shadow: 0 5px 0 var(--ink);
}

.lobby__config .toggle-row:last-child {
  border-bottom: 0;
}

.lobby__config small {
  font-size: 12px;
}

/* ---------- Partida ao vivo ---------- */
.online-globe {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.online-wait {
  position: absolute;
  top: 74px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 14px 7px;
  white-space: nowrap;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: linear-gradient(#e6fff4, #9df0c7);
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 900;
  font-size: 14px;
  animation: pop-in 380ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.online-match {
  position: relative;
}

.online-crew {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  max-width: 360px;
}

.online-crew__one {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  animation: seat-in 520ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.online-crew__one small {
  font-size: 12px;
  text-shadow: 0 2px 0 var(--ink);
}

.opt__more {
  font-family: var(--font-display);
  font-size: 13px;
  align-self: center;
}

/* Reações (figurinhas) durante a revelação e o placar */
.emotes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 104px;
  /* Abaixo da barra de jogadores (z 3): o balão da provocação de quem está em cima do avatar passa por cima da barra de figurinhas. */
  z-index: 2;
  width: max-content;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 0 var(--ink);
  animation: rise-in 300ms ease-out 900ms both;
}

.emotes__btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  transition: transform 100ms;
}

.emotes__btn:active {
  transform: scale(1.3);
}

.pbar--many {
  /* 3 primeiros + você + "+N" */
  grid-template-columns: repeat(4, 1fr) auto;
}

.pchip--more {
  justify-content: center;
  padding: 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.pchip.is-off {
  opacity: 0.55;
  filter: grayscale(0.7);
}

.pchip.is-waiting {
  opacity: 0.75;
}

.pchip__ready,
.pchip__off {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 6px 1px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--ok);
  color: #fff;
  font-weight: 900;
  font-size: 10px;
  white-space: nowrap;
  animation: pop-in 260ms cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.pchip__off {
  background: #8a82a8;
}

.scores--many .srow {
  height: 40px;
}

/* ---------- Conectando, problemas, reconectando ---------- */
.net-wait {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: #fff;
}

.net-wait .btn {
  /* o texto branco do .net-wait não pode vazar para os botões (claros) */
  color: var(--ink);
}

.net-wait__text {
  margin: 0;
  max-width: 320px;
  font-weight: 800;
  font-size: 17px;
  text-shadow: 0 2px 0 rgba(12, 3, 38, 0.6);
}

.net-wait__dots {
  display: flex;
  gap: 8px;
}

.net-wait__dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
  animation: net-dot 900ms ease-in-out infinite;
}

.net-wait__dots i:nth-child(2) {
  animation-delay: 150ms;
}

.net-wait__dots i:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes net-dot {
  50% {
    transform: translateY(-10px);
  }
}

.net-problem__title {
  font-size: 28px;
  color: #fff;
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink);
}

.net-banner {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 16px 7px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: #ffd23f;
  box-shadow: 0 4px 0 var(--ink);
  font-weight: 900;
  font-size: 14px;
  animation: pulse 1.4s ease-in-out infinite;
}

/* Quem já voltou para a revanche: selo em cima do botão (não empurra nada para fora da tela) */
.result__actions {
  position: relative;
}

.rematchers {
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  z-index: 2;
  width: max-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px 0 4px;
  white-space: nowrap;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: linear-gradient(#e6fff4, #9df0c7);
  box-shadow: 0 3px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
  font-size: 13px;
  animation: pop-in 380ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
}

.rematchers .mascot,
.rematchers svg {
  margin: -6px 0;
}

.rematchers span {
  margin-left: 6px;
}

/* ---------- Menos movimento ---------- */
.reduce-motion .lobby__seat.is-filled,
.reduce-motion .online-crew__one,
.reduce-motion .lobby__code span,
.reduce-motion .net-banner,
.reduce-motion .home__live i {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .lobby__seat.is-filled,
  .online-crew__one,
  .lobby__code span,
  .net-banner,
  .home__live i {
    animation: none;
  }
}

/* ---------- Tela grande ---------- */
.layout-desktop .match > .online-globe {
  grid-area: main;
}

.layout-desktop .online-wait {
  top: 64px;
}

.layout-desktop .emotes {
  bottom: 18px;
}

.layout-desktop .pbar--many {
  grid-template-columns: 1fr;
}

.layout-desktop .pchip__ready,
.layout-desktop .pchip__off {
  left: auto;
  right: 12px;
  transform: none;
}

.layout-desktop .lobby {
  width: min(760px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.layout-desktop .lobby__sign {
  width: 460px;
}

.layout-desktop .lobby__code span {
  width: 64px;
  height: 76px;
  font-size: 44px;
}

.layout-desktop .lobby__seats {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.layout-desktop .lobby__seat {
  min-height: 140px;
}

.layout-desktop .lobby__config {
  width: 520px;
}

.layout-desktop .home__modes .btn {
  font-size: 18px;
}

/* ---------- Ajustes do QA (11/10) ---------- */
/* Selos "!" e números nos botões do Início: o .btn corta o que passa da borda (por causa do brilho). */
.home__daily,
.home__album {
  overflow: visible;
}

/* Desafio do Dia e Álbum lado a lado no celular: sobra altura para a Lara e a bicharada. */
.home__minor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.home__minor > .btn {
  margin-top: 0;
}

/* Celular baixo (ex.: 375×667): a bicharada sai do palco para a Lara não tapar o letreiro. */
@media (max-height: 740px) {
  .home:not(.home--desktop) .home__play {
    margin-top: 8px;
  }
}

/* O palco do celular mede a altura que sobra (Home.tsx): sem espaço para a bicharada ela encolhe ou sai, nunca passa por baixo do botão. */
.home--none .home__crew {
  display: none;
}
.home--compact .home__lara {
  width: 84px !important;
  height: 84px !important;
}
.home--compact .home__crew {
  gap: 0 4px;
  margin-top: 2px;
}
.home--compact .home__crew-item svg {
  width: 38px !important;
  height: 38px !important;
}
.home--compact .home__crew-item > span:last-child {
  font-size: 10px;
  margin-top: -3px;
}

/* Celular baixo na revelação: o "Sabia que…?" mais enxuto e as alternativas mais baixas, para a 4ª (às vezes a
   certa) não ficar atrás da barra de jogadores. */
@media (max-height: 740px) {
  .board__fact {
    font-size: 15px;
    gap: 2px;
  }
  .board__fact b {
    font-size: 17px;
  }
  .phase-reveal .opt {
    min-height: 46px;
  }
  .phase-reveal .options {
    gap: 7px;
  }
}

/* Seletor de tamanho da partida (5 / 10 / 15) */
.seg {
  display: inline-flex;
  flex: none;
  border: 4px solid var(--ink);
  border-radius: 99px;
  overflow: hidden;
  background: #cfc8e6;
}
.seg__btn {
  min-width: 46px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.seg__btn + .seg__btn { border-left: 3px solid var(--ink); }
.seg__btn.is-on { background: var(--gold, #ffd23f); }

/* Missões do dia */
.missions__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.missions__item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; }
.missions__item.is-done { background: #dff7e3; }
.missions__check { flex: none; width: 28px; height: 28px; border: 3px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: #fff; }
.missions__item.is-done .missions__check { background: #3dbe4a; color: #fff; }
.missions__body { flex: 1; display: grid; gap: 6px; min-width: 0; }
.missions__bar { height: 10px; border: 2px solid var(--ink); border-radius: 99px; background: #e7e1f7; overflow: hidden; }
.missions__bar i { display: block; height: 100%; background: var(--gold, #ffd23f); }
.missions__count { flex: none; font-weight: 900; }
.missions__hint { margin: 6px 0 0; font-weight: 700; color: var(--ink-soft); text-align: center; }
.mission-news { list-style: none; margin: 8px 0; padding: 10px 12px; display: grid; gap: 6px; font-weight: 800; font-size: 0.92rem; }
.mission-news li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mission-news li span { margin-left: auto; color: #2a8a35; }

/* Anúncios (só aparecem com provedor ligado) */
.adhost { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(20, 10, 50, 0.9); }
.adhost__card { display: grid; gap: 10px; justify-items: center; padding: 24px; border: 4px solid var(--ink); border-radius: 22px; background: #fff; color: var(--ink); min-width: 240px; }
.adhost__count { font-size: 3rem; font-weight: 900; }
.adslot { min-height: 50px; display: grid; place-items: center; margin: 8px auto 0; width: 100%; max-width: 320px; border-radius: 10px; font-size: 0.8rem; color: var(--ink-soft); }
.adslot:empty { display: none; }
.rewarded { width: 100%; }

/* Pular espera dos bots */
.skipwait { justify-self: center; align-self: center; margin: 8px auto 0; min-height: 40px; padding: 0 18px; animation: skip-in 0.25s ease-out both; }
@keyframes skip-in { from { opacity: 0; transform: translateY(6px); } }

/* Provocações também durante a pergunta e a revelação (no placar passam rápido): barra menor, perto do rodapé */
.emotes--mini { bottom: 76px; padding: 2px 4px; gap: 2px; opacity: 0.92; }
.emotes--mini .emotes__btn { width: 34px; height: 34px; font-size: 19px; }
.layout-desktop .emotes--mini { bottom: 18px; }

/* Sala de amigos: "Estou pronto!" */
.lobby__ready { display: inline-flex; align-items: center; justify-content: center; gap: 2px; max-width: 100%; margin-top: 2px; padding: 1px 6px; border: 2px solid var(--ink); border-radius: 99px; background: #fff; color: var(--ink-soft); font-size: 0.64rem; font-weight: 900; white-space: nowrap; overflow: hidden; }
.lobby__ready.is-on { background: #3dbe4a; color: #fff; animation: ready-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes ready-pop { 0% { transform: scale(0.4) rotate(-8deg); } 100% { transform: scale(1) rotate(0); } }
.lobby__waiting { text-align: center; font-weight: 800; }
.lobby__imready { border-color: #3dbe4a; color: #2a8a35; }
.leave-sheet { text-align: center; }
.leave-sheet h2 { margin: 4px 0 6px; font-family: var(--font-display); font-size: 26px; }
.leave-sheet p { margin: 0 0 14px; font-weight: 700; color: var(--ink-soft); }
.leave-sheet__row { display: grid; gap: 10px; justify-items: center; }
.home__back { margin-bottom: 10px; border-color: #3dbe4a; color: #2a8a35; animation: pulse 1.8s ease-in-out infinite; }
/* Ranking online: Reis da Selva */
.rank { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 560px; margin: 0 auto; }
.rank__title { display: inline-flex; align-items: center; gap: 8px; color: #ffd23f; }
.rank__title svg { color: #ffd23f; filter: drop-shadow(0 2px 0 #1b1446); animation: rank-wobble 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes rank-wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg) scale(1.08); } }

.rank__tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border: 4px solid var(--ink); border-radius: 99px; background: #cfc8e6; overflow: hidden; flex: none; }
.rank__tabs button { position: relative; z-index: 1; min-height: 42px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 900; cursor: pointer; transition: transform 0.15s; }
.rank__tabs button:active { transform: scale(0.94); }
.rank__pill { position: absolute; inset: 0 auto 0 0; width: 25%; background: #ffd23f; border-radius: 99px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15); transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.rank__sub { margin: 0; text-align: center; color: #fff; font-weight: 800; font-size: 0.86rem; text-shadow: 0 2px 0 var(--ink); flex: none; }

.rank__body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 2px 8px; display: flex; flex-direction: column; gap: 10px; animation: rank-fade 0.3s ease-out both; }
@keyframes rank-fade { from { opacity: 0; transform: translateY(8px); } }

/* Pódio */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; padding-top: 34px; flex: none; }
.podium__slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; animation: podium-rise 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes podium-rise { from { opacity: 0; transform: translateY(60px) scale(0.8); } }
.podium__nick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; text-shadow: 0 2px 0 var(--ink); font-size: 1rem; }
.podium__title { color: #ffd23f; font-weight: 800; text-shadow: 0 1px 0 var(--ink); font-size: 0.72rem; text-align: center; }
.podium__pts { font-weight: 900; color: #fff; background: rgba(27, 20, 70, 0.7); border-radius: 99px; padding: 2px 10px; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.podium__step { display: grid; place-items: center; width: 100%; border: 4px solid var(--ink); border-radius: 14px 14px 0 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); background: linear-gradient(#fff, #e2dcf6); }
.podium__slot--1 .podium__step { height: 84px; background: linear-gradient(#ffe27a, #ffb21f); }
.podium__slot--2 .podium__step { height: 60px; }
.podium__slot--3 .podium__step { height: 44px; background: linear-gradient(#ffd7b0, #e49b5c); }
.podium__slot--1::before { content: ''; position: absolute; inset: -30px -30px 20px; background: radial-gradient(closest-side, rgba(255, 226, 122, 0.55), transparent); z-index: -1; animation: podium-glow 2s ease-in-out infinite; }
@keyframes podium-glow { 50% { transform: scale(1.15); opacity: 0.7; } }
.podium__crown { position: absolute; top: -34px; color: #ffd23f; filter: drop-shadow(0 2px 0 var(--ink)); animation: crown-drop 0.8s 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both, rank-wobble 2.6s 1.4s ease-in-out infinite; }
@keyframes crown-drop { from { opacity: 0; transform: translateY(-40px) rotate(-30deg); } }
.podium__slot.is-you .podium__nick { color: #ffd23f; }
.podium__slot.is-you .podium__pts { background: #ffd23f; color: var(--ink); }

/* Lista */
.rank__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank__row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); animation: rank-in 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
@keyframes rank-in { from { opacity: 0; transform: translateX(-30px); } }
.rank__row.is-you { background: #fff2b8; border-color: #b8860b; box-shadow: 0 0 0 3px #ffd23f; }
.rank__n { flex: none; width: 30px; text-align: center; font-family: var(--font-display); font-size: 1.1rem; }
.rank__nick { flex: 1; min-width: 0; display: grid; }
.rank__nick b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__nick small { color: var(--ink-soft); font-weight: 700; }
.rank__pts { flex: none; font-weight: 900; font-variant-numeric: tabular-nums; }

.rank__skeleton { display: grid; gap: 10px; padding-top: 30px; }
.rank__skeleton span { height: 56px; border-radius: 16px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)); background-size: 200% 100%; animation: rank-shimmer 1.2s linear infinite; }
@keyframes rank-shimmer { to { background-position: -200% 0; } }
.rank__empty { display: grid; justify-items: center; gap: 8px; padding: 24px 12px; text-align: center; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.rank__empty b { font-size: 1.2rem; }

.rank__foot { flex: none; display: grid; gap: 8px; padding-top: 4px; }
.rank__you { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 4px solid var(--ink); border-radius: 18px; background: #ffd23f; color: var(--ink); animation: rank-in 0.5s 0.3s both; }
.rank__you-pos { font-family: var(--font-display); font-size: 1.6rem; }
.rank__you-txt { display: grid; }
.rank__you-txt small { font-weight: 800; opacity: 0.8; }
.rank__hint { margin: 0; text-align: center; color: #fff; font-weight: 800; text-shadow: 0 2px 0 var(--ink); font-size: 0.9rem; }

/* Resultado: o que a partida rendeu no ranking */
.rank-news { display: grid; gap: 8px; padding: 12px 14px; text-align: center; animation: rank-fade 0.5s both; }
.rank-news__gain { font-family: var(--font-display); font-size: 1.7rem; color: #2a8a35; }
.rank-news__gain small { font-size: 0.9rem; color: var(--ink-soft); font-family: inherit; font-weight: 800; }
.rank-news__pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rank-news__pos > span { display: grid; border: 3px solid var(--ink); border-radius: 14px; padding: 4px 2px; background: #fff; animation: rank-pop 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) both; }
.rank-news__pos b { font-family: var(--font-display); font-size: 1.3rem; }
.rank-news__pos small { font-weight: 800; color: var(--ink-soft); }
.rank-news__pos .is-top { background: #ffd23f; }
.rank-news__delta { font-weight: 900; font-size: 0.8rem; }
.rank-news__delta.up { color: #1f9a2c; }
.rank-news__delta.down { color: #c0392b; }
@keyframes rank-pop { from { opacity: 0; transform: scale(0.4) rotate(-8deg); } }
.rank-news__king { font-weight: 900; color: #b8860b; animation: rank-wobble 1.6s ease-in-out infinite; }
.rank-news__solo { margin: 0; font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; }

/* Botão do Ranking na Home */
.home__rank { position: relative; }
.home__rank svg { color: #ffd23f; }
.home__rank-pos { margin-left: 4px; font-weight: 900; color: #b8860b; }
