/* —— Quem Sou Eu in-game — mock sala-ref-v2 —— */
body:has(#screen-game.active) .stage-bg {
  opacity: 0;
  visibility: hidden;
}

/* Resultado final: mesma superficie e fundo das partidas. */
body:has(#screen-finished.active) .stage-bg {
  opacity: 0;
  visibility: hidden;
}

.app:has(#screen-finished.active) {
  max-width: none;
  padding: 0;
  width: 100%;
}

body:has(#screen-finished.active),
html:has(#screen-finished.active) {
  background-color: #090414;
}

#screen-finished.jz-finished-screen.screen.active {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 20px 0 36px;
  box-sizing: border-box;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, #1a0b2e 0%, #0d0618 55%, #090414 100%);
  overflow-x: hidden;
}

#screen-finished.jz-finished-screen > .jz-lobby-bg { z-index: 0; }

.jz-finished-shell {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
}

.jz-finished-hero {
  margin: 0 auto 1.1rem;
  text-align: center;
}

.jz-finished-hero .logo-win {
  width: 128px;
  height: 94px;
  margin-bottom: 1.15rem;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.jz-finished-mascot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.jz-finished-hero .brand { color: #ffd34f; }
.jz-finished-hero .tagline { color: #fff; }
.jz-finished-hero .lead { color: #d8cce8; }

.jz-finished-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
}

#screen-finished .reveal-roster,
#screen-finished .finished-actions {
  margin: 0;
  max-width: none;
  border: 3px solid #4b3875;
  border-radius: 16px;
  background: linear-gradient(180deg, #411755 0%, #0c0617 100%);
  box-shadow: 0 10px 0 #4b3875;
}

#screen-finished .reveal-roster {
  width: auto;
  padding: 1rem;
}

#screen-finished .reveal-roster .player-card {
  position: relative;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

#screen-finished .reveal-roster .place-banner { display: none; }

#screen-finished .jz-finished-crown {
  width: 24px;
  height: 24px;
  margin-left: 0.3rem;
  vertical-align: -6px;
  object-fit: contain;
}

#screen-finished .jz-finished-score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#screen-finished .jz-finished-score-row strong {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

#screen-finished .jz-finished-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

#screen-finished .jz-finished-score {
  margin-left: auto;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 1.15rem;
  color: #fff;
}

#screen-finished .reveal-roster .player-card-reveal.place-1,
#screen-finished .reveal-roster .jz-finished-winner {
  overflow: hidden;
  border-color: #ffd34f;
  background: linear-gradient(135deg, #ffcb38 0%, #f3911f 48%, #e75b37 100%);
  box-shadow: 0 0 0 2px rgba(255, 211, 79, 0.26), 0 0 26px rgba(255, 190, 48, 0.68);
}

#screen-finished .reveal-roster .player-card-reveal.place-1::after,
#screen-finished .reveal-roster .jz-finished-winner::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -55%;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: jz-finished-winner-shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

#screen-finished .reveal-roster .player-card-reveal.place-1 :is(.player-name, .player-meta, .place-banner),
#screen-finished .reveal-roster .jz-finished-winner strong {
  position: relative;
  z-index: 1;
  color: #321434;
}

@keyframes jz-finished-winner-shine {
  0%, 28% { left: -55%; }
  60%, 100% { left: 115%; }
}

#screen-finished .reveal-roster .player-name,
#screen-finished .reveal-roster .player-meta,
#screen-finished .reveal-roster .place-banner-none,
#screen-finished .reveal-roster .badge {
  color: #fff;
}

#screen-finished .reveal-roster .player-meta.character { color: #ffd34f; }
#screen-finished .reveal-roster .badge { background: rgba(255, 255, 255, 0.12); }

#screen-finished .finished-actions {
  width: auto;
  height: 100%;
  box-sizing: border-box;
  padding: 1rem;
}

#screen-finished .finished-actions .btn { min-height: 50px; }

#screen-finished :is(#btn-replay, #btn-other-game).jz-lobby-ready-btn {
  margin-top: 0;
}

#screen-finished #btn-other-game { text-decoration: none; }

#screen-finished .jz-finished-invite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 26px;
  background: #1b1437;
  color: #fff;
  font-family: var(--jz-font-caps, "Fredoka One", "Fredoka", system-ui, sans-serif);
  font-weight: 400;
}

#screen-finished .jz-finished-invite:hover,
#screen-finished .jz-finished-invite:focus-visible {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  border-color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

#screen-finished .jz-finished-invite:active {
  transform: translateY(1px) scale(0.97);
  filter: brightness(0.98);
}

@media (max-width: 760px) {
  .jz-finished-shell { width: min(100% - 24px, 1000px); }
  .jz-finished-layout { grid-template-columns: 1fr; }
}

/* —— Caô: mesma moldura da partida de Quem Sou Eu —— */
body:has(#screen-cao.active) .stage-bg {
  opacity: 0;
  visibility: hidden;
}

/* Atribuicao cruzada: mesma cena das partidas, com foco no alvo secreto. */
body:has(#screen-assign.active) .stage-bg {
  opacity: 0;
  visibility: hidden;
}

.app:has(#screen-assign.active) {
  max-width: none;
  padding: 0;
  width: 100%;
}

body:has(#screen-assign.active),
html:has(#screen-assign.active) {
  background-color: #090414;
}

#screen-assign.jz-assign-screen.screen.active {
  display: flex;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 0 36px;
  color: #fff;
  background: linear-gradient(180deg, #1a0b2e 0%, #0d0618 55%, #090414 100%);
  overflow-x: hidden;
  opacity: 1;
  transform: none !important;
  animation: none;
}

#screen-assign > .jz-lobby-bg { z-index: 0; }

.jz-assign-shell {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
}

.jz-assign-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.jz-assign-logo img { display: block; width: clamp(140px, 18vw, 170px); height: auto; }

.jz-assign-hud-meta {
  display: flex;
  gap: 0.75rem;
  min-width: min(510px, 58vw);
}

.jz-assign-phase {
  display: grid;
  gap: 0.18rem;
  min-width: min(250px, 48vw);
  padding: 0.7rem 0.9rem;
  border: 2px solid #4b3875;
  border-radius: 12px;
  background: rgba(52, 1, 55, 0.88);
  box-shadow: 0 5px 0 rgba(9, 4, 20, 0.35);
}

.jz-assign-theme-card {
  display: grid;
  gap: 0.18rem;
  min-width: min(220px, 28vw);
  padding: 0.7rem 0.9rem;
  border: 2px solid #4b3875;
  border-radius: 12px;
  background: rgba(52, 1, 55, 0.88);
  box-shadow: 0 5px 0 rgba(9, 4, 20, 0.35);
}

.jz-assign-theme-card strong {
  overflow: hidden;
  color: #fff;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jz-assign-phase-label,
.jz-assign-kicker {
  color: #ffd24a;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jz-assign-phase strong {
  color: #fff;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1.02rem;
}

.jz-assign-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.jz-assign-mission {
  border: 3px solid #4b3875;
  border-radius: 16px;
  background: linear-gradient(180deg, #440049 0%, #340137 100%);
  box-shadow: 0 9px 0 rgba(9, 4, 20, 0.32);
}

.jz-assign-mission { padding: clamp(1.2rem, 3vw, 2rem); }
.jz-assign-kicker { margin: 0 0 0.55rem; }
.jz-assign-mission h2 { margin: 0; color: #fff; font-family: "Fredoka One", "Fredoka", system-ui, sans-serif; font-size: clamp(1.85rem, 4vw, 2.7rem); font-weight: 400; line-height: 1.05; }
.jz-assign-lead { margin: 0.75rem 0 1.25rem; max-width: 42ch; color: #d8cce8; font: 600 1rem/1.45 "Fredoka", system-ui, sans-serif; }

.jz-assign-form-panel {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(9, 4, 20, 0.28);
}

.jz-assign-form-panel .field > span { color: #fff; font-family: "Fredoka", system-ui, sans-serif; }
.jz-assign-form-panel input { min-height: 52px; color: #fff; border: 2px solid #6a568f; border-radius: 12px; background: rgba(9, 4, 20, 0.5); }
.jz-assign-form-panel input:focus { border-color: #ffd24a; outline: none; }
.jz-assign-form-panel .hint { color: #cbbfdf; }
.jz-assign-form-panel .btn-primary { border: 2px solid #f9af96; background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%); font-family: "Fredoka", system-ui, sans-serif; }
.jz-assign-form-panel .btn-secondary { border: 2px solid rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.08); font-family: "Fredoka", system-ui, sans-serif; }

@media (max-width: 700px) {
  #screen-assign.jz-assign-screen.screen.active { padding-top: 14px; }
  .jz-assign-shell { width: min(100% - 24px, 960px); }
  .jz-assign-hud { align-items: flex-start; margin-bottom: 1rem; }
  .jz-assign-hud-meta { min-width: 0; flex: 1; }
  .jz-assign-phase,
  .jz-assign-theme-card { min-width: 0; flex: 1; }
  .jz-assign-layout { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .jz-assign-logo img { width: 126px; }
  .jz-assign-hud-meta { gap: 0.45rem; }
  .jz-assign-phase,
  .jz-assign-theme-card { padding: 0.55rem 0.65rem; }
  .jz-assign-phase strong,
  .jz-assign-theme-card strong { font-size: 0.9rem; }
}

.app:has(#screen-cao.active) {
  max-width: none;
  padding: 0;
  width: 100%;
}

body:has(#screen-cao.active),
html:has(#screen-cao.active) {
  background-color: #090414;
}

#screen-cao.jz-cao-screen.screen.active {
  display: flex;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 0 36px;
  box-sizing: border-box;
  color: #fff;
  background: linear-gradient(180deg, #1a0b2e 0%, #0d0618 55%, #090414 100%);
  overflow-x: hidden;
}

#screen-cao.jz-cao-screen > .jz-lobby-bg { z-index: 0; }

.jz-cao-shell {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}

.jz-cao-hud {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.jz-cao-hud-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.jz-cao-logo { display: inline-flex; margin-right: auto; }
.jz-cao-logo img { display: block; width: auto; height: 34px; }
.jz-cao-hud-leave-slot { display: flex; align-items: center; justify-content: flex-end; }

.jz-cao-hud-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 54px;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, #2a1544 0%, #1a0d2e 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.jz-cao-hud-label {
  color: #a29dbe;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.jz-cao-hud-value {
  color: #fff;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.1;
}

.jz-cao-timer-chip { border-color: rgba(255, 94, 53, 0.55); }

.jz-cao-stage {
  min-height: min(620px, calc(100dvh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  align-content: start;
}

.jz-cao-screen .cao-panel {
  grid-column: 1;
  width: min(720px, 100%);
  margin: 0 auto;
  align-self: stretch;
  box-sizing: border-box;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
  border: 3px solid #4b3875;
  border-radius: 22px;
  background: linear-gradient(180deg, #2a1248 0%, #160b2c 100%);
  box-shadow: 0 10px 0 #4b3875;
}

.jz-cao-podium {
  grid-column: 2;
  align-self: stretch;
  overflow: hidden;
  border: 3px solid #4b3875;
  border-radius: 22px;
  background: linear-gradient(180deg, #2a1248 0%, #160b2c 100%);
  box-shadow: 0 10px 0 #4b3875;
}

.jz-cao-podium-title {
  margin: 0;
  padding: 0.95rem 1rem;
  color: #fff !important;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.jz-cao-screen .cao-panel > h2 {
  color: #fff;
}

.jz-cao-podium-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
}

.jz-cao-podium-row {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  color: #cbbfdf;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.9rem;
}

.jz-cao-podium-row:nth-child(1) { color: #fff; background: rgba(255, 210, 74, 0.14); }
.jz-cao-podium-row:nth-child(2) { color: #fff; background: rgba(201, 184, 232, 0.1); }
.jz-cao-podium-row:nth-child(3) { color: #fff; background: rgba(255, 122, 60, 0.1); }
.jz-cao-podium-row.is-you { outline: 1.5px solid #ff5e35; }
.jz-cao-podium-rank { font-family: "Fredoka One", "Fredoka", system-ui, sans-serif; text-align: center; }
.jz-cao-podium-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jz-cao-podium-crown { width: 22px; height: 22px; flex: 0 0 auto; object-fit: contain; }
.jz-cao-podium-you,
.jz-finished-you {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.12rem 0.4rem;
  border: 1px solid rgba(255, 122, 96, 0.65);
  border-radius: 999px;
  background: rgba(255, 94, 53, 0.24);
  color: #fff;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);
}
.jz-cao-podium-points { color: #6de2c2; font-family: "Fredoka One", "Fredoka", system-ui, sans-serif; font-size: 0.82rem; }

.jz-cao-screen .cao-q {
  margin: 0 0 0.85rem;
  color: #fff;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.18;
}

.jz-cao-screen .hint,
.jz-cao-screen .lead { color: #cbbfdf; }

.jz-cao-screen .cao-write-form { position: static; }
.jz-cao-screen .cao-write-form input {
  min-height: 54px;
  color: #fff;
  border: 2px solid #6a568f;
  border-radius: 14px;
  background: rgba(9, 4, 20, 0.48);
}
.jz-cao-screen .cao-write-form input:focus { border-color: #ff5e35; }

.jz-cao-screen .cao-vote-list { gap: 0.7rem; }
.jz-cao-screen .cao-vote-card {
  min-height: 62px;
  color: #fff;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  border: 2px solid #6a568f;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.jz-cao-screen .cao-vote-card:not(:disabled):hover { border-color: #ff7a3c; transform: translateY(-1px); }
.jz-cao-screen .cao-vote-card:focus-visible { outline-color: #ff5e35; }
.jz-cao-screen .cao-vote-card.is-selected { border-color: #ff5e35; background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%); }
.jz-cao-screen .cao-vote-own { color: #ffd24a; }

.jz-cao-screen .cao-done { color: #6de2c2; font-family: "Fredoka One", "Fredoka", system-ui, sans-serif; }
.jz-cao-screen .cao-reveal-seq { gap: 0.8rem; }
.jz-cao-screen .cao-reveal-card {
  color: #fff;
  border: 2px solid #6a568f;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.jz-cao-screen .cao-reveal-card.is-truth { border-color: #6de2c2; background: rgba(53, 190, 154, 0.18); }
.jz-cao-screen .cao-reveal-text { font-family: "Fredoka One", "Fredoka", system-ui, sans-serif; text-transform: none; }
.jz-cao-screen .cao-reveal-kind { color: #ffd24a; }
.jz-cao-screen .cao-reveal-who { color: #cbbfdf; }
.jz-cao-screen .cao-reveal-pts,
.jz-cao-screen .cao-score-delta { color: #6de2c2; }

.jz-cao-screen .cao-react-btn {
  color: #fff;
  border-color: #6a568f;
  background: rgba(255, 255, 255, 0.08);
}
.jz-cao-screen .cao-react-btn:hover,
.jz-cao-screen .cao-react-btn:focus-visible { border-color: #ff5e35; background: rgba(255, 94, 53, 0.18); }
.jz-cao-screen .cao-score-row { padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.11); }
.jz-cao-screen .cao-score-row:last-child { border-bottom: 0; }

@media (max-width: 560px) {
  #screen-cao.jz-cao-screen.screen.active { padding-top: 14px; }
  .jz-cao-shell { width: min(100% - 24px, 900px); }
  .jz-cao-hud { grid-template-columns: minmax(0, 1fr) auto; }
  .jz-cao-hud-main { min-width: 0; }
  .jz-cao-logo { width: auto; }
  .jz-cao-stage { grid-template-columns: 1fr; min-height: 0; }
  .jz-cao-screen .cao-panel { padding: 1.1rem; }
  .jz-cao-podium { grid-column: 1; width: min(100%, 720px); margin: 0 auto; }
}

.app:has(#screen-game.active) {
  max-width: none;
  padding: 0;
  width: 100%;
}

body:has(#screen-game.active),
html:has(#screen-game.active) {
  background-color: #090414;
}

body:has(#screen-game.active) #btn-sound {
  top: auto;
  bottom: 20px;
  right: 20px;
  z-index: 40;
}

.jz-game-screen.screen.active {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 20px 0 36px;
  box-sizing: border-box;
  color: #fff;
  /* Mesmo fundo base do lobby — o blob SVG cobre o restante */
  background: linear-gradient(180deg, #1a0b2e 0%, #0d0618 55%, #090414 100%);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-user-select: none;
  user-select: none;
  opacity: 1;
  transform: none !important;
  animation: none;
}

.jz-game-screen input,
.jz-game-screen textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Reusa exatamente o bg do lobby (classes jz-lobby-*) */
.jz-game-screen > .jz-lobby-bg {
  z-index: 0;
}

.jz-game-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* —— HUD —— */
.jz-game-hud {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  gap: 0.85rem;
  align-items: center;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.jz-game-hud-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.jz-game-hud-leave-slot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.jz-game-hud-row-actions {
  justify-content: flex-end;
}

.jz-game-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 0.25rem;
  text-decoration: none;
}

.jz-game-logo img {
  display: block;
  height: 34px;
  width: auto;
}

.jz-game-hud-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 54px;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a1544 0%, #1a0d2e 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.jz-game-hud-label {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a29dbe;
  line-height: 1;
}

.jz-game-hud-value {
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 0.98rem;
  color: #fff;
  line-height: 1.15;
}

.jz-game-code-chip {
  display: none;
}

.jz-game-code-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.jz-game-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffd0c0;
  cursor: pointer;
}

.jz-game-copy:hover,
.jz-game-copy.is-copied {
  background: rgba(255, 94, 53, 0.28);
}

.jz-game-hud-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.15rem 0.65rem;
  border-radius: 8px;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  width: fit-content;
}

.jz-game-hud-pill-mint {
  background: #7dffe8;
  color: #10243a;
}

.jz-game-hud-pill-white {
  background: #fff;
  color: #10243a;
}

.jz-game-turn-chip.is-you,
.jz-game-hud .hud-turn-chip.is-you {
  border-color: rgba(125, 255, 232, 0.55);
}

.jz-game-timer-chip.is-urgent {
  border-color: rgba(255, 208, 92, 0.7);
}

.jz-game-timer-chip.is-urgent #turn-timer {
  color: #ffe08a;
  background: none;
}

.jz-game-timer-chip.is-critical {
  border-color: rgba(255, 107, 107, 0.85);
  box-shadow: 0 0 14px rgba(255, 80, 80, 0.35);
}

.jz-game-timer-chip.is-critical #turn-timer {
  background: none;
  color: #ff8a9a;
}

.jz-game-timer-chip[data-phase="ask"],
.jz-game-timer-chip[data-phase="afterQuestion"] {
  border-color: #ff5e35;
}

.jz-game-timer-chip[data-phase="answer"] {
  border-color: #07cdc3;
}

.jz-game-timer-chip[data-phase="result"] {
  border-color: #4b3875;
}

.jz-game-timer-chip[data-phase="paused"],
.jz-game-timer-chip[data-phase="waiting"] {
  border-color: #6a568f;
}

.jz-game-theme-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.jz-game-theme-star {
  display: block;
  flex: 0 0 auto;
  color: #ffd24a;
}

.jz-game-current-chip {
  border-color: #ff7a45;
  border-width: 2px;
  box-shadow:
    0 0 0 1px rgba(255, 94, 53, 0.35),
    0 0 16px rgba(255, 94, 53, 0.45);
}

.jz-game-current-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.jz-game-current-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #ff7a45;
  background: #2a1544;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jz-game-current-avatar .avatar,
.jz-game-current-avatar .avatar-svg {
  width: 26px;
  height: 26px;
}

.jz-game-hud-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.jz-game-hud-value#game-code,
.jz-game-code-chip .jz-game-hud-value {
  color: #fff;
}

.jz-game-count-chip {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
}

.jz-game-count-ico {
  color: #cbbfdf;
  display: inline-flex;
}

.jz-game-hud-btn,
.jz-game-hud-icon {
  min-height: 42px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #2a1544 0%, #1a0d2e 100%);
  color: #fff;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0 0.9rem;
}

.jz-game-hud-icon {
  width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbbfdf;
}

.jz-game-hud-btn-leave {
  color: #ffd0c0;
}

.jz-game-paused {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(255, 94, 53, 0.18);
  border: 1px solid rgba(255, 148, 110, 0.45);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
}

.jz-game-paused[hidden] {
  display: none !important;
}

/* —— Main 2-col —— */
.jz-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  gap: 0.85rem;
  align-items: stretch;
}

.jz-game-players-panel,
.jz-game-history-panel,
.jz-game-action-dock {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 0 #4b3875;
}

.jz-game-players-panel,
.jz-game-history-panel {
  background: linear-gradient(180deg, #411755 0%, #0c0617 100%);
  border-color: #4b3875;
}

.jz-game-action-dock {
  background: linear-gradient(180deg, #24143f 0%, #160b2a 100%);
}

.jz-game-players-head {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
}

.jz-game-section-title {
  margin: 0 0 0.75rem;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
}

.jz-game-players-head .jz-game-section-title,
.jz-game-theme-inline,
.jz-game-players-panel .jz-game-timer-chip {
  min-height: 48px;
  margin: 0;
  padding: 0.4rem 0.95rem;
  border-radius: 12px;
  background: #140c28;
  border: 1.5px solid #6a568f;
  box-shadow: none;
  box-sizing: border-box;
}

.jz-game-players-head .jz-game-section-title {
  display: flex;
  align-items: center;
  flex: 1 0 auto;
  min-width: 0;
  padding-inline: 0.95rem;
  font-size: 1.05rem;
  white-space: nowrap;
}

.jz-game-players-count-inline {
  margin-left: 0.35rem;
  color: #b7b0cc;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
}

.jz-game-players-meta {
  display: contents;
}

.jz-game-theme-inline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  color: #fff;
}

.jz-game-theme-kicker {
  flex: 0 0 auto;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.1;
}

.jz-game-theme-kicker::after {
  content: ":";
}

.jz-game-theme-value {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
}

.jz-game-players-panel .jz-game-timer-chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 9.9rem;
  width: auto;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-inline: 0.7rem;
  color: #fff;
}

.jz-game-timer-ico {
  display: block;
  flex: 0 0 auto;
}

.jz-game-timer-value {
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1;
  color: #fff;
  background: none;
  padding: 0;
  min-height: 0;
  min-width: 2.6rem;
  text-align: center;
}

.jz-game-timer-label {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  color: #a29dbe;
  text-transform: uppercase;
  white-space: nowrap;
}

.jz-game-arena {
  position: relative;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.jz-game-roster,
.jz-game-roster.layout-duo,
.jz-game-roster.layout-few,
.jz-game-roster.layout-many {
  --jz-card-cols: 4;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  align-items: stretch;
  gap: 0.7rem;
  list-style: none;
  margin: 0 !important;
  padding: 0;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
}

/* —— Player cards —— */
.jz-game-roster .player-card.stage-card,
.jz-game-roster .jz-game-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin: 0 !important;
  padding: 0.85rem 0.55rem 0.75rem;
  min-height: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #180e33 0%, #0c0519 100%);
  border: 1.5px solid rgba(180, 150, 220, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  text-align: center;
  inset: auto !important;
  transform: none;
  flex: 0 0 calc((100% - (var(--jz-card-cols, 4) - 1) * 0.7rem) / var(--jz-card-cols, 4));
  width: calc((100% - (var(--jz-card-cols, 4) - 1) * 0.7rem) / var(--jz-card-cols, 4)) !important;
  max-width: calc((100% - (var(--jz-card-cols, 4) - 1) * 0.7rem) / var(--jz-card-cols, 4));
  left: auto !important;
  top: auto !important;
  box-sizing: border-box;
}

.jz-game-roster .stage-card.is-turn {
  border: 3px solid #ff6a35;
  transform: none;
  box-shadow:
    0 0 0 2px rgba(255, 94, 53, 0.35),
    0 0 20px rgba(255, 94, 53, 0.55),
    0 0 40px rgba(255, 51, 102, 0.25);
}

.jz-game-roster .stage-card.is-offline {
  filter: grayscale(1);
  animation: jz-game-player-left 1.1s ease-in forwards;
}

@keyframes jz-game-player-left {
  0% { opacity: 1; filter: grayscale(0); transform: scale(1); }
  28% { opacity: 0.58; filter: grayscale(1); transform: scale(1); }
  72% { opacity: 0.58; filter: grayscale(1); transform: scale(1); }
  100% { opacity: 0; filter: grayscale(1); transform: scale(0.92); }
}

.jz-game-card-turn-tag {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb020 0%, #ff5e35 100%);
  border: 1.5px solid #ffe08a;
  color: #1a0b2e;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(255, 94, 53, 0.4);
}

.jz-game-card-avatar-wrap,
.jz-game-roster .stage-avatar-wrap {
  position: relative;
  z-index: 0;
  top: auto;
  left: auto;
  right: auto;
  width: 128px;
  height: 128px;
  margin: 0 0 -18px;
  padding: 0 !important;
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
  transform: none;
}

.jz-game-roster .stage-card .avatar,
.jz-game-roster .stage-card .avatar-svg,
.jz-game-roster .jz-game-mascot-bust,
.jz-game-roster .jz-game-mascot-bust.is-orange,
.jz-game-roster .jz-game-mascot-bust.is-teal {
  width: 128px;
  height: 128px;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center center;
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
  transform: none;
}

.jz-game-card-name,
.jz-game-roster .stage-name {
  position: relative;
  z-index: 2;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 28px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.jz-game-card-name.is-tone-a {
  background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%);
}

.jz-game-card-name.is-tone-b {
  background: linear-gradient(90deg, #20b8c9 0%, #2ec4b6 100%);
}

.jz-game-card-char,
.jz-game-roster .stage-plaque {
  position: relative;
  z-index: 2;
  order: unset;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #efe8ff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.jz-game-roster .stage-plaque.is-secret {
  color: #cbbfdf;
  letter-spacing: 0.12em;
}

.jz-game-roster .stage-bubble,
.jz-game-roster .badge-row,
.jz-game-roster .stage-status {
  display: none !important;
}

.jz-game-roster .answer-speech {
  display: none !important;
}

.jz-game-history-panel .jz-game-section-title {
  margin-bottom: 0.75rem;
}

.jz-game-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-height: 0;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.jz-game-history-group + .jz-game-history-group {
  margin-top: 0.35rem;
}

.jz-game-history-player {
  margin: 0.15rem 0 0.35rem;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #cbb8ef;
}

.jz-game-history-player.is-you {
  color: #ff8a62;
}

.jz-game-history-empty {
  margin: 0;
  padding: 0.75rem 0.2rem;
  color: #a29dbe;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.9rem;
}

.jz-game-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jz-game-history-q {
  min-width: 0;
  flex: 1 1 auto;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #efe8ff;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.3;
}

.jz-game-history-votes {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  align-self: flex-start;
}

.jz-game-history-vote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 6px;
  min-width: 52px;
  height: 33px;
  padding: 0 8px;
  border-radius: 8px;
  background: #140820;
  color: #fff;
  border: 1px solid;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.jz-game-history-vote.is-yes {
  border-color: #07cdc3;
}

.jz-game-history-vote.is-no {
  border-color: #ff3366;
}

.jz-game-history-vote.is-wait {
  border-color: #4b3875;
}

.jz-game-history-vote img {
  display: block;
  flex: 0 0 18px;
}

/* —— Question strip —— */
.jz-game-question-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #2a1248 0%, #160b2c 100%);
  border: 3px solid #ff5a2a;
  box-shadow:
    0 0 0 3px rgba(255, 70, 30, 0.28),
    0 0 28px rgba(255, 90, 40, 0.55);
}

.jz-game-question-card[hidden] {
  display: none !important;
}

.jz-game-question-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.jz-game-question-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #fff;
  background: #fff4ea;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.jz-game-question-avatar .avatar {
  width: 64px;
  height: 72px;
  margin-top: 8px;
}

.jz-game-question-avatar .avatar-bob {
  animation: none;
}

.jz-player-mascot {
  object-fit: contain;
  object-position: center bottom;
}

.jz-game-question-avatar .jz-player-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.jz-game-question-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.jz-game-question-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 151px;
  min-height: 30px;
  margin: 0 0 0.15rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%);
  color: #fff;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.jz-game-question-name {
  color: #ff7a3c;
  font-weight: 700;
}

.jz-game-question-asker,
.jz-game-question-card .answer-asker {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
}

.jz-game-question-text,
.jz-game-question-card .answer-question {
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  text-align: left;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  word-break: break-word;
}

.jz-game-question-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.jz-game-vote-kicker {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbbfdf;
}

.jz-game-vote-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.jz-game-vote-row[hidden],
.jz-game-vote-kicker[hidden],
.jz-game-inline-vote[hidden] {
  display: none !important;
}

.jz-game-inline-vote {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jz-game-inline-vote .jz-game-btn-yes,
.jz-game-inline-vote .jz-game-btn-no {
  min-width: 74px;
  min-height: 42px;
  padding: 0 24px;
}

.jz-game-inline-vote .jz-game-btn-no { min-width: 82px; }

.jz-game-inline-vote .btn-answer.is-active {
  box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(0, 0, 0, 0.28);
}

#answer-bar {
  display: none !important;
}

.jz-game-vote {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  gap: 6px;
  min-height: 33px;
  padding: 6.5px 8px;
  border-radius: 8px;
  background: #140820;
  border: 1px solid;
  color: #fff;
}

.jz-game-vote-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  flex: 0 0 auto;
}

.jz-game-vote-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
  line-height: 1;
}

.jz-game-vote-count {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.jz-game-vote-label {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #a29dbe;
}

.jz-game-vote-yes {
  border-color: #07cdc3;
}

.jz-game-vote-no {
  border-color: #ff3366;
}

.jz-game-vote-wait {
  border-color: #4b3875;
}

.jz-game-question-progress {
  margin: 0;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.78rem;
  color: #a29dbe;
}

.jz-game-question-progress[hidden] {
  display: none !important;
}

/* —— Answer + action dock —— */
.jz-game-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.jz-game-answer-bar {
  margin: 0;
  padding: 0.7rem 0.85rem 0.85rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #24143f 0%, #160b2a 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 0 #4b3875;
  outline: none;
}

.jz-game-answer-bar .answer-panel {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  gap: 0.55rem;
}

.jz-game-answer-bar .answer-pick {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #cbbfdf;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.jz-game-answer-bar[hidden] {
  display: none !important;
}

.jz-game-answer-bar .answer-wait {
  margin: 0;
  padding: 0.15rem 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  text-align: center;
  font-family: "Fredoka", system-ui, sans-serif;
  color: #cbbfdf;
}

.jz-game-answer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.jz-game-btn-yes,
.jz-game-btn-no {
  min-height: 42px;
  border-radius: 21px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  border-width: 1px;
  box-shadow: none;
}

.jz-game-btn-yes {
  background: linear-gradient(90deg, #07cdc3 0%, #498694 100%);
  border-color: #fff;
  color: #fff;
}

.jz-game-btn-no {
  background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%);
  border-color: #f9af96;
  color: #fff;
}

.jz-game-action-hint {
  margin: 0 0 0.55rem;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.88rem;
  color: #cbbfdf;
}

.jz-game-action-hint[hidden] {
  display: none !important;
}

.jz-game-tabs {
  display: flex;
  gap: 1rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jz-game-tab {
  position: relative;
  min-height: 40px;
  padding: 0.35rem 0.15rem 0.55rem;
  border: 0;
  background: transparent;
  color: #a29dbe;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.jz-game-tab.is-active {
  color: #ff5e35;
}

.jz-game-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%);
}

.jz-game-tab:disabled,
.jz-game-tab.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.jz-game-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.jz-game-form[hidden] {
  display: none !important;
}

.jz-game-input-wrap {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 0.85rem 0 2.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.jz-game-input-ico {
  position: absolute;
  left: 0.85rem;
  display: inline-flex;
  color: #6b6280;
  line-height: 0;
}

.jz-game-input-ico svg {
  display: block;
}

.jz-game-form input {
  flex: 1;
  width: 100%;
  height: 46px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a0b2e;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
}

.jz-game-form input::placeholder {
  color: #8a84a8;
}

.jz-game-char-count {
  margin-left: 0.5rem;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.82rem;
  color: #8a84a8;
  flex-shrink: 0;
}

.jz-game-form-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.jz-game-cta {
  min-height: 50px;
  padding: 0.55rem 1.2rem;
  border-radius: 12px;
  border: 2px solid transparent;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.jz-game-cta:hover:not(:disabled) {
  transform: translateY(-1px);
}

.jz-game-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.jz-game-cta-primary,
.jz-game-cta-accent {
  color: #fff;
  border-color: #f9af96;
  background: linear-gradient(90deg, #ff5e35 0%, #ff3366 100%);
  box-shadow: 0 8px 18px rgba(255, 94, 53, 0.3);
}

.jz-game-cta-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #4a1654 0%, #330136 100%);
}

.jz-game-solved {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(125, 255, 176, 0.35);
}

.jz-game-solved[hidden] {
  display: none !important;
}

.jz-game-solved .solved-title {
  margin: 0 0 0.25rem;
  font-family: "Fredoka One", "Fredoka", system-ui, sans-serif;
  color: #7dffb0;
}

.jz-game-solved .solved-sub,
.jz-game-solved .hint {
  margin: 0.2rem 0 0;
  font-family: "Fredoka", system-ui, sans-serif;
  color: #cbbfdf;
}

body:has(#screen-game.active) #btn-notes,
body:has(#screen-game.active) #player-notepad {
  display: none !important;
}

.jz-game-mascot {
  display: none;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .jz-game-hud-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .jz-game-shell {
    width: min(100%, calc(100% - 16px));
  }

  .jz-game-hud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
  }

  .jz-game-hud-leave-slot {
    margin-left: auto;
  }

  .jz-game-layout {
    grid-template-columns: 1fr;
  }

  .jz-game-roster,
  .jz-game-roster.layout-duo,
  .jz-game-roster.layout-few,
  .jz-game-roster.layout-many {
    --jz-card-cols: 3;
  }

  .jz-game-question-card {
    flex-direction: column;
    align-items: stretch;
  }

  .jz-game-question-right {
    align-items: flex-start;
  }

  .jz-game-vote-row {
    justify-content: flex-start;
  }

  .jz-game-action-dock {
    padding: 0.75rem 0.8rem 0.85rem;
  }

  .jz-game-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .jz-game-input-wrap {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    max-height: 46px;
    height: 46px;
  }

  .jz-game-form input {
    height: 40px;
    min-height: 0;
    padding: 0;
  }

  .jz-game-form-actions {
    width: 100%;
  }

  .jz-game-cta {
    flex: 1 1 0;
    min-height: 44px;
  }

  .jz-game-history-list {
    max-height: 220px;
  }
}

@media (max-width: 560px) {
  .jz-game-screen.screen.active {
    padding: 10px 0 22px;
  }

  .jz-game-logo img {
    height: 28px;
  }

  .jz-game-players-head {
    flex-wrap: wrap;
  }

  .jz-game-theme-inline {
    flex: 1 1 100%;
  }

  .jz-game-theme-value {
    white-space: normal;
  }

  .jz-game-roster,
  .jz-game-roster.layout-duo,
  .jz-game-roster.layout-few,
  .jz-game-roster.layout-many {
    --jz-card-cols: 2;
  }

  .jz-game-roster .jz-game-card {
    padding: 0.7rem 0.4rem 0.6rem;
    min-height: 0;
  }

  .jz-game-card-avatar-wrap,
  .jz-game-roster .stage-avatar-wrap,
  .jz-game-roster .jz-game-mascot-bust,
  .jz-game-roster .jz-game-mascot-bust.is-orange,
  .jz-game-roster .jz-game-mascot-bust.is-teal {
    width: 104px;
    height: 104px;
  }

  .jz-game-action-dock {
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .jz-game-tabs {
    flex-direction: row;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
  }

  .jz-game-tab {
    flex: 1 1 0;
    min-height: 34px;
    padding: 0.2rem 0.05rem 0.4rem;
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .jz-game-input-wrap {
    min-height: 42px;
    max-height: 42px;
    height: 42px;
    padding: 0 0.65rem 0 2.05rem;
    border-radius: 12px;
  }

  .jz-game-form input {
    height: 36px;
    font-size: 16px;
  }

  .jz-game-char-count {
    font-size: 0.72rem;
  }

  .jz-game-form-actions {
    flex-direction: row;
    gap: 0.45rem;
  }

  .jz-game-cta {
    width: auto;
    min-height: 40px;
    padding: 0.3rem 0.55rem;
    font-size: 0.88rem;
  }

  .jz-game-answer-buttons {
    grid-template-columns: 1fr 1fr;
  }
}
