:root {
  --ink: #10243a;
  --ink-soft: rgba(16, 36, 58, 0.68);
  --paper: #fff7eb;
  --panel: rgba(255, 252, 246, 0.92);
  --line: rgba(16, 36, 58, 0.12);
  --coral: #ff5a5f;
  --coral-deep: #e63b45;
  --teal: #12b5a0;
  --teal-deep: #0a8f7e;
  --sun: #ffc147;
  --sky: #3db7ff;
  --plum: #2b1f4a;
  --yes: #1fad6a;
  --no: #ef3f4c;
  --shadow: 0 14px 0 rgba(16, 36, 58, 0.12), 0 22px 40px rgba(16, 36, 58, 0.12);
  --shadow-sm: 0 6px 0 rgba(16, 36, 58, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --avatar-skin: #ffe0b8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #0f2b45;
  overflow-x: hidden;
}

.stage-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 10% -10%, #ff7a59 0%, transparent 55%),
    radial-gradient(800px 480px at 100% 0%, #18c4b0 0%, transparent 50%),
    radial-gradient(700px 420px at 50% 110%, #ffc147 0%, transparent 45%),
    linear-gradient(165deg, #143552 0%, #1a4568 40%, #0f2b45 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.35;
  animation: blobFloat 10s ease-in-out infinite;
}

.blob-a {
  width: 260px;
  height: 260px;
  background: #ff6b6b;
  top: 8%;
  left: -40px;
}

.blob-b {
  width: 320px;
  height: 320px;
  background: #2dd4bf;
  bottom: -60px;
  right: -50px;
  animation-delay: -3s;
}

.blob-c {
  width: 180px;
  height: 180px;
  background: #ffd166;
  top: 45%;
  left: 55%;
  animation-delay: -6s;
}

.dot-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-22px) scale(1.05);
  }
}

.app {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1.4rem 0 2.5rem;
}

.screen {
  display: none;
  opacity: 0;
  transform: translateY(16px) scale(0.985);
}

.screen.active {
  display: block;
  animation: screenIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screenIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— Identity —— */
.home-hero {
  text-align: center;
  margin-bottom: 1.4rem;
}

.logo-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.85rem;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--sun), #ff9f1c);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  animation: logoBob 2.8s ease-in-out infinite;
  border: 4px solid #fff;
}

.logo-win {
  background: linear-gradient(145deg, var(--teal), #0ea5a0);
}

.logo-face {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

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

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  color: #fff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.25;
  margin: 0 auto 0.55rem;
  max-width: 28ch;
  color: #ffe8c8;
}

.lead,
.hint,
.eyebrow,
.you-label {
  color: var(--ink-soft);
}

.lead {
  margin: 0 auto 1.25rem;
  max-width: 38ch;
  font-size: 1.05rem;
  color: rgba(255, 247, 235, 0.82);
  font-weight: 600;
}

.assign-lead {
  text-align: center;
  margin-bottom: 1rem;
}

.home-panel {
  max-width: 440px;
  margin: 0 auto;
}

.home-about {
  max-width: 36rem;
  margin: 1.75rem auto 0;
  padding: 0 0.25rem;
  text-align: left;
}

.home-about h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin: 0 0 0.75rem;
  color: #fff7eb;
}

.home-about p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 247, 235, 0.84);
}

.home-about p:last-child {
  margin-bottom: 0;
}

.home-legal {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

.home-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— Panels —— */
.panel {
  background: var(--panel);
  border: 3px solid #fff;
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.panel-game {
  backdrop-filter: blur(8px);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.panel-head h2 {
  margin: 0;
}

.panel-head .hint {
  margin: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

input,
select,
textarea {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 2px solid rgba(16, 36, 58, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(61, 183, 255, 0.22);
}

.code-input {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1.25rem;
  text-align: center;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  background: rgba(16, 36, 58, 0.06);
  border-radius: 16px;
}

.tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  padding: 0.7rem;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.tab:hover {
  transform: translateY(-1px);
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* —— Buttons —— */
.btn {
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
}

.btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.btn-xl {
  padding: 1rem 1.2rem;
  font-size: 1.08rem;
  border-radius: 18px;
}

.btn-primary {
  background: linear-gradient(180deg, #ff7277, var(--coral-deep));
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(180deg, #2dd4bf, var(--teal-deep));
  color: #fff;
}

.btn-accent {
  background: linear-gradient(180deg, #3db7ff, #1f7fd1);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 2px solid rgba(16, 36, 58, 0.1);
}

.btn-yes {
  background: linear-gradient(180deg, #34d399, var(--yes));
  color: #fff;
}

.btn-no {
  background: linear-gradient(180deg, #fb7185, var(--no));
  color: #fff;
}

.btn-answer {
  min-width: 88px;
  font-size: 1.05rem;
}

.btn-copy {
  align-self: center;
}

/* —— HUD —— */
.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.hud-chip {
  background: rgba(255, 252, 246, 0.95);
  border: 3px solid #fff;
  border-radius: 18px;
  padding: 0.55rem 0.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 110px;
  animation: chipPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hud-wide {
  flex: 1 1 180px;
}

.hud-code-chip .hud-value {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--coral-deep);
}

.hud-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.hud-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.hud-turn-chip {
  background: linear-gradient(180deg, #fff7d6, #ffe08a);
  border-color: #ffe8a8;
}

.hud-turn-chip.is-you {
  background: linear-gradient(180deg, #d9fff6, #7ef0db);
  animation: turnPulse 1.4s ease-in-out infinite;
}

.hud-timer-chip {
  background: linear-gradient(180deg, #eef6ff, #cfe4ff);
  border-color: #b7d6ff;
  min-width: 88px;
  text-align: center;
}

.hud-timer-chip .hud-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.hud-timer-chip.is-urgent {
  background: linear-gradient(180deg, #fff4d6, #ffd36b);
  border-color: #f0c040;
}

.hud-timer-chip.is-critical {
  background: linear-gradient(180deg, #ffe0d8, #ff8f74);
  border-color: #ff6b4a;
  animation: timerPulse 0.7s ease-in-out infinite;
}

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

.hud-you-chip {
  flex: 0 1 auto;
  max-width: 280px;
}

.hud-you-chip .hud-value {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 800;
}

@keyframes chipPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes turnPulse {
  0%,
  100% {
    box-shadow: 0 6px 0 rgba(16, 36, 58, 0.1);
  }
  50% {
    box-shadow: 0 6px 0 rgba(16, 36, 58, 0.1), 0 0 0 6px rgba(18, 181, 160, 0.2);
  }
}

.room-code {
  margin: 0;
}

.turn-line,
.you-label {
  margin: 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

/* —— Layouts —— */
.lobby-grid,
.game-grid,
.assign-layout {
  display: grid;
  gap: 1rem;
}

.lobby-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.game-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.assign-layout {
  grid-template-columns: 1fr 0.9fr;
  align-items: start;
}

@media (max-width: 800px) {
  .lobby-grid,
  .game-grid,
  .assign-layout {
    grid-template-columns: 1fr;
  }

  /* Mobile: chat e controles primeiro, palco compacto embaixo */
  .arena-panel {
    min-height: 0;
    order: 2;
  }

  .game-side {
    order: 1;
  }

  .arena-panel > h2 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }

  .arena {
    min-height: 0;
    padding: 0.6rem 0.5rem 0.7rem;
  }

  .arena-center {
    margin-bottom: 0.55rem;
    padding: 0.4rem 0.7rem;
    border-width: 2px;
  }

  .arena-center-label {
    font-size: 0.92rem;
  }

  .arena-roster,
  .arena-roster.layout-duo,
  .arena-roster.layout-few {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: none;
  }

  .arena-roster.layout-many {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .stage-card {
    padding: 0.5rem 0.4rem;
    border-width: 2px;
  }

  .stage-card .avatar {
    width: 56px;
    height: 64px;
  }

  .arena-roster.layout-many .stage-card .avatar {
    width: 46px;
    height: 52px;
  }

  .stage-plaque {
    font-size: 0.78rem;
  }

  .stage-name {
    font-size: 0.85rem;
  }

  .stage-card.is-turn {
    transform: scale(1.02);
  }

  /* Gaveta de pistas vira painel sobreposto centralizado */
  .notepad.notes-drawer {
    right: 50%;
    transform: translateX(50%);
    bottom: 4.4rem;
    width: min(420px, calc(100vw - 1.2rem));
  }
}

@media (max-width: 768px) {
  .hud-turn-chip,
  .hud-timer-chip,
  .hud-you-chip {
    flex: 1 1 100%;
  }

  .player-card {
    align-items: flex-start;
  }
}

/* —— Player cards / avatars —— */
.player-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.player-roster-game {
  grid-template-columns: 1fr;
}

.player-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 18px;
  background: #fff;
  border: 3px solid rgba(16, 36, 58, 0.08);
  box-shadow: 0 4px 0 rgba(16, 36, 58, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  animation: cardIn 0.3s ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.player-card:hover {
  transform: translateY(-2px);
}

.player-card.is-turn {
  border-color: var(--sun);
  background: linear-gradient(180deg, #fffced, #fff);
  box-shadow: 0 0 0 4px rgba(255, 193, 71, 0.28), 0 6px 0 rgba(16, 36, 58, 0.08);
  animation: turnGlow 1.5s ease-in-out infinite;
}

.player-card.is-you {
  border-color: var(--sky);
}

.player-card.is-done {
  border-color: var(--yes);
  background: linear-gradient(180deg, #e8fff4, #fff);
}

.player-card.is-thinking .avatar-body {
  animation-duration: 0.7s;
}

@keyframes turnGlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.player-card-body {
  min-width: 0;
}

.player-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
}

.player-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.player-meta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.player-meta.secret {
  color: var(--teal-deep);
}

.player-meta.character {
  font-family: var(--font-display);
  color: var(--coral-deep);
  font-size: 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: rgba(16, 36, 58, 0.08);
  color: var(--ink);
}

.badge.host {
  background: #ffe0a3;
  color: #8a5500;
}

.badge.you {
  background: #ccebff;
  color: #0b5f96;
}

.badge.ready,
.badge.ok {
  background: #c9f7e4;
  color: #0b6b45;
}

.badge.thinking {
  background: #ffe8c2;
  color: #8a5a00;
}

.badge.turn {
  background: #ffe08a;
  color: #7a5200;
}

.badge.done {
  background: #b8f5d1;
  color: #0b6b45;
}

.badge.place {
  background: linear-gradient(180deg, #fff4c2, #ffe08a);
  color: #7a4b00;
  font-variant-numeric: tabular-nums;
}

.badge.offline {
  background: #e5e7eb;
  color: #4b5563;
}

/* Avatar doll */
.avatar {
  width: 64px;
  height: 72px;
  position: relative;
  flex-shrink: 0;
}

.avatar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.avatar-bob {
  transform-origin: 32px 64px;
  animation: avatarIdle 2.4s ease-in-out infinite;
}

.avatar.is-turn .avatar-bob {
  animation: avatarHop 0.7s ease-in-out infinite;
}

.avatar.is-done .avatar-bob {
  animation: avatarWin 0.9s ease-in-out infinite;
}

.avatar.is-thinking .avatar-bob {
  animation: avatarThink 1.1s ease-in-out infinite;
}

@keyframes avatarIdle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes avatarHop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.04);
  }
}

@keyframes avatarWin {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg) translateY(-4px);
  }
}

@keyframes avatarThink {
  0%,
  100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-6deg);
  }
  70% {
    transform: rotate(6deg);
  }
}

/* —— Chat —— */
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 440px;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.35rem 0.15rem 0.9rem;
  background: rgba(16, 36, 58, 0.04);
  border-radius: 16px;
  margin-bottom: 0.75rem;
}

.chat-msg {
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  background: #fff;
  border: 2px solid transparent;
  animation: cardIn 0.22s ease both;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-msg .who {
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.chat-msg.system {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
  font-weight: 700;
}

.chat-msg.question {
  border-color: rgba(255, 90, 95, 0.35);
  background: linear-gradient(180deg, #fff1f1, #fff);
}

.chat-msg.question .who {
  color: var(--coral-deep);
}

.chat-msg.answer {
  border-color: rgba(18, 181, 160, 0.35);
  background: linear-gradient(180deg, #eafff9, #fff);
}

.chat-msg.answer .who {
  color: var(--teal-deep);
}

.chat-msg.chat {
  border-color: rgba(61, 183, 255, 0.25);
}

.chat-msg.success {
  background: linear-gradient(180deg, #d9fbe8, #fff);
  border-color: rgba(31, 173, 106, 0.45);
  color: #0b6b45;
  font-weight: 800;
  text-align: center;
}

.chat-msg.fail {
  background: linear-gradient(180deg, #ffe4e8, #fff);
  border-color: rgba(239, 63, 76, 0.35);
  color: #b4232f;
  font-weight: 800;
  text-align: center;
}

.answer-bar {
  margin-bottom: 0.75rem;
}

.answer-wait {
  margin: 0;
  padding: 0.75rem 0.9rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft, #6b7280);
  background: rgba(148, 163, 184, 0.12);
  border: 2px dashed rgba(148, 163, 184, 0.35);
  border-radius: 16px;
}

.answer-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
  background: rgba(18, 181, 160, 0.08);
  border: 2px solid rgba(18, 181, 160, 0.28);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.answer-asker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  text-align: center;
}

.answer-question {
  margin: 0;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
  background: #fff;
  border: 3px solid rgba(18, 181, 160, 0.35);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow-wrap: anywhere;
}

.answer-pick {
  margin: 0;
  padding: 0.55rem 0.75rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink-soft, #6b7280);
  background: rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  border: 2px solid rgba(148, 163, 184, 0.25);
}

.answer-confirm {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 2px solid transparent;
  text-align: center;
  animation: confirmIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.answer-confirm.is-sim {
  background: linear-gradient(180deg, #dcfce7, #bbf7d0);
  border-color: rgba(34, 197, 94, 0.55);
  color: #14532d;
}

.answer-confirm.is-nao {
  background: linear-gradient(180deg, #ffe4e6, #fecdd3);
  border-color: rgba(239, 68, 68, 0.5);
  color: #7f1d1d;
}

.answer-confirm-main {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.answer-confirm-hint {
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.9;
}

.answer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.btn-answer {
  min-width: 0;
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 900;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease,
    opacity 0.15s ease;
}

.btn-answer.is-active {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(18, 181, 160, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.14);
  filter: saturate(1.08);
}

.btn-yes.btn-answer.is-active {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(34, 197, 94, 0.45),
    0 8px 18px rgba(34, 197, 94, 0.25);
}

.btn-no.btn-answer.is-active {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(239, 68, 68, 0.4),
    0 8px 18px rgba(239, 68, 68, 0.22);
}

.btn-answer.is-idle {
  opacity: 0.82;
  filter: saturate(0.88);
}

.btn-answer.is-idle:hover,
.btn-answer.is-idle:focus-visible {
  opacity: 1;
  filter: saturate(1);
}

.btn-answer.is-confirming {
  animation: answerBtnConfirm 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-answer-icon {
  display: inline-block;
  margin-right: 0.15rem;
  font-weight: 900;
}

@keyframes confirmIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.answer-confirm.is-swap {
  animation: confirmSwap 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes confirmSwap {
  0% {
    transform: scale(0.96);
    opacity: 0.75;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes answerBtnConfirm {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1.02);
  }
}

.chat-form,
.guess-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-form {
  margin-bottom: 0.55rem;
}

.chat-form input,
.guess-form input {
  flex: 1 1 150px;
}

.wait-banner {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(18, 181, 160, 0.12);
  border: 2px dashed rgba(18, 181, 160, 0.4);
  color: var(--teal-deep);
  font-weight: 800;
  text-align: center;
}

.assign-actions .btn {
  flex: 1 1 140px;
}

/* —— Finished —— */
#screen-finished {
  text-align: center;
}

.reveal-roster {
  text-align: left;
  margin: 1.25rem auto;
  max-width: 520px;
}

.reveal-roster .player-card {
  animation-delay: calc(var(--i, 0) * 60ms);
}

.player-card-reveal {
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.65rem;
}

.place-banner {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  min-width: 3.2rem;
  text-align: center;
  line-height: 1.1;
}

.place-banner-none {
  color: var(--ink-soft);
  font-size: 1rem;
}

.player-card-reveal.place-1 {
  background: linear-gradient(180deg, #fff8d6, #ffe9a0);
  border-color: #f0c040;
  box-shadow: 0 6px 0 rgba(196, 140, 20, 0.2);
}

.player-card-reveal.place-2 {
  background: linear-gradient(180deg, #f2f5f8, #dfe7ef);
  border-color: #b0bec8;
}

.player-card-reveal.place-3 {
  background: linear-gradient(180deg, #fff0e4, #f5d0b0);
  border-color: #d4a080;
}

.player-card-reveal.place-ranked {
  border-color: rgba(16, 36, 58, 0.12);
}

.player-card-reveal.place-none {
  opacity: 0.78;
  background: #f7f5f1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  background: var(--plum);
  color: #fff8ee;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  z-index: 30;
  box-shadow: var(--shadow);
  font-weight: 800;
  animation: chipPop 0.25s ease both;
  max-width: min(92vw, 420px);
  text-align: center;
}

@media (max-width: 560px) {
  .app {
    padding-top: 1rem;
  }

  .avatar {
    width: 56px;
    height: 64px;
  }

  .btn-xl {
    width: 100%;
  }

  .hud-chip {
    min-width: calc(50% - 0.35rem);
  }

  .hud-game {
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .hud-game .hud-chip {
    padding: 0.4rem 0.65rem;
    min-width: calc(50% - 0.25rem);
    border-radius: 14px;
  }

  .hud-game .hud-value {
    font-size: 0.95rem;
  }

  .chat-log {
    max-height: 220px;
  }

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

  .answer-bar .btn-answer {
    width: 100%;
    min-height: 48px;
    font-size: 1.1rem;
  }

  .answer-confirm,
  .answer-pick,
  .answer-wait {
    width: 100%;
  }
}

/* —— Sound toggle —— */
.btn-sound {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 800;
  background: rgba(255, 252, 246, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.btn-sound[aria-pressed="true"] {
  background: linear-gradient(180deg, #2dd4bf, var(--teal-deep));
  color: #fff;
}

/* —— Announce —— */
.announce {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(15, 43, 69, 0.28);
}

.announce[hidden] {
  display: none !important;
}

.announce-card {
  background: #fff;
  border: 4px solid #fff;
  border-radius: 24px;
  padding: 1.1rem 1.6rem;
  box-shadow: var(--shadow);
  transform: scale(0.85);
  opacity: 0;
}

.announce.is-in .announce-card {
  animation: announceIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.announce.is-out .announce-card {
  animation: announceOut 0.25s ease forwards;
}

.announce.is-big .announce-text {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.announce-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.9rem);
  color: var(--ink);
  text-align: center;
}

@keyframes announceIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes announceOut {
  to {
    opacity: 0;
    transform: scale(0.92) translateY(-10px);
  }
}

/* —— FX / confetti —— */
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 34;
  overflow: hidden;
}

.confetti {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  animation: confettiFall 1.2s ease-in forwards;
}

@keyframes confettiFall {
  to {
    transform: translate(var(--dx), 110vh) rotate(var(--rot));
    opacity: 0;
  }
}

/* —— Arena —— */
.arena {
  position: relative;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255, 193, 71, 0.35), transparent 55%),
    linear-gradient(180deg, #e8f7ff, #dff8f3 60%, #fff3d6);
  border: 3px solid rgba(16, 36, 58, 0.08);
  padding: 0.85rem 0.85rem 1rem;
  overflow: visible;
}

.arena-center {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 1;
  width: fit-content;
  max-width: 90%;
  margin: 0 auto 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.arena-center-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.arena-center.flash-yes {
  background: #d9fbe8;
  animation: popPulse 0.55s ease;
}
.arena-center.flash-no {
  background: #ffe4e8;
  animation: popPulse 0.55s ease;
}
.arena-center.flash-fail {
  background: #ffe4e8;
  animation: popPulse 0.55s ease;
}
.arena-center.flash-win {
  background: #d9fff6;
  animation: popPulse 0.55s ease;
}

@keyframes popPulse {
  0% {
    transform: scale(0.9);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.arena-roster {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  justify-items: stretch;
  align-content: start;
  overflow: visible;
}

/* 2 jogadores: cards grandes lado a lado */
.arena-roster.layout-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 460px;
  margin: 0 auto;
}

/* 3–4 jogadores: grid central */
.arena-roster.layout-few {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 5–8 jogadores: arena compacta */
.arena-roster.layout-many {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

/* —— Card de palco —— */
.stage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 0.65rem 0.5rem 0.6rem;
  overflow: visible;
}

.stage-card .avatar {
  width: 84px;
  height: 94px;
}

.arena-roster.layout-many .stage-card .avatar {
  width: 62px;
  height: 70px;
}

.stage-card.is-turn {
  transform: scale(1.05);
  z-index: 3;
  border-color: var(--sun);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 224, 138, 0.55), transparent 65%),
    linear-gradient(180deg, #fffced, #fff);
  box-shadow: 0 0 0 4px rgba(255, 193, 71, 0.35), 0 10px 24px rgba(255, 170, 0, 0.22);
}

.stage-card.is-offline {
  filter: saturate(0.35);
  opacity: 0.75;
}

.stage-plaque {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.15;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f4efe4);
  border: 2px solid rgba(16, 36, 58, 0.12);
  border-radius: 10px;
  padding: 0.22rem 0.55rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 0 rgba(16, 36, 58, 0.08);
}

.stage-plaque.is-secret {
  letter-spacing: 0.2em;
  color: var(--coral-deep);
  background: linear-gradient(180deg, #fff1f1, #ffe3e3);
  border-color: rgba(230, 59, 69, 0.3);
}

.stage-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stage-status {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.stage-card.is-done .stage-status {
  color: var(--yes);
}

.stage-card.is-offline .stage-status {
  color: var(--no);
}

.stage-avatar-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 1.55rem;
  overflow: visible;
}

.answer-speech {
  --speech-fill: #e2e8f0;
  --speech-stroke: rgba(148, 163, 184, 0.55);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(16, 36, 58, 0.14));
}

.answer-speech-body {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-width: 3.1rem;
  padding: 0.32rem 0.62rem 0.36rem;
  border-radius: 14px 14px 12px 12px;
  border: 2.5px solid #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 0%, var(--speech-fill) 100%);
  color: inherit;
}

/* Cauda do balão apontando para a cabeça do avatar */
.answer-speech-body::before,
.answer-speech-body::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
}

.answer-speech-body::before {
  bottom: -11px;
  border-top: 11px solid #fff;
  z-index: 0;
}

.answer-speech-body::after {
  bottom: -7px;
  border-top: 9px solid var(--speech-fill);
  z-index: 1;
}

.answer-speech.is-wait {
  --speech-fill: #e2e8f0;
  --speech-stroke: rgba(148, 163, 184, 0.45);
  color: var(--ink-soft, #64748b);
}

.answer-speech.is-done {
  --speech-fill: #dbeafe;
  --speech-stroke: rgba(59, 130, 246, 0.4);
  color: #1e3a8a;
}

.answer-progress {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft, #64748b);
}

.answer-speech.is-sim {
  --speech-fill: #86efac;
  --speech-stroke: rgba(34, 197, 94, 0.55);
  color: #14532d;
}

.answer-speech.is-nao {
  --speech-fill: #fda4af;
  --speech-stroke: rgba(239, 68, 68, 0.5);
  color: #7f1d1d;
}

.answer-speech.is-pop {
  animation: speechPop 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.answer-speech-icon {
  font-size: 0.84rem;
  line-height: 1;
}

.answer-speech-text {
  line-height: 1;
}

@keyframes speechPop {
  0% {
    transform: translateX(-50%) scale(0.7) translateY(6px);
    opacity: 0.35;
  }
  65% {
    transform: translateX(-50%) scale(1.06) translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(1) translateY(0);
    opacity: 1;
  }
}

.arena-roster.layout-many .answer-speech-body {
  min-width: 2.7rem;
  padding: 0.24rem 0.48rem 0.28rem;
  font-size: 0.66rem;
  border-radius: 11px 11px 9px 9px;
}

.arena-roster.layout-many .stage-avatar-wrap {
  padding-top: 1.35rem;
}

.stage-card.is-turn {
  padding-top: 1.1rem;
}

.stage-bubble {
  position: absolute;
  top: -1.05rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #7a5200;
  background: linear-gradient(180deg, #ffe9a8, #ffd36b);
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  box-shadow: var(--shadow-sm);
  animation: bubbleBob 1.4s ease-in-out infinite;
}

@keyframes bubbleBob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}

.stage-card .badge-row {
  justify-content: center;
}

.game-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* —— Pausa —— */
.paused-banner {
  background: linear-gradient(180deg, #fff4d6, #ffe4a8);
  border: 3px solid #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 1rem;
  margin-bottom: 0.85rem;
  text-align: center;
  font-weight: 800;
  color: #7a5200;
  animation: chipPop 0.3s ease both;
}

/* —— Painel contextual —— */
.action-hint {
  margin: -0.45rem 0 0.6rem;
}

@media (max-width: 360px) {
  .answer-buttons {
    grid-template-columns: 1fr;
  }
}

.solved-panel {
  text-align: center;
  padding: 0.85rem 0.75rem;
  background: linear-gradient(180deg, #e8fff4, #fff);
  border: 2px solid rgba(31, 173, 106, 0.35);
  border-radius: 16px;
}

.solved-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--yes);
  margin: 0 0 0.25rem;
}

.solved-sub {
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

/* —— Minhas pistas (gaveta) —— */
.btn-notes {
  position: fixed;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 40;
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(180deg, #fff8dc, #ffe9a8);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.notepad.notes-drawer {
  position: fixed;
  right: 0.85rem;
  bottom: 4.2rem;
  left: auto;
  z-index: 41;
  width: min(360px, calc(100vw - 1.7rem));
  max-height: min(60vh, 420px);
  overflow-y: auto;
  animation: chipPop 0.25s ease both;
}

.notes-close {
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.notepad {
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(196, 92, 38, 0.08) 28px
    ),
    linear-gradient(180deg, #fff8dc, #ffe9a8);
  border: 3px solid #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1.05rem;
  position: relative;
}

.notepad::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  background: rgba(239, 63, 76, 0.28);
  border-radius: 2px;
  pointer-events: none;
}

.notepad-head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  padding-left: 0.85rem;
}

.notepad-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  box-shadow: 0 3px 0 rgba(16, 36, 58, 0.08);
  flex-shrink: 0;
}

.notepad-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink);
}

.notepad-sub {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.notepad-input {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0.15rem 0.2rem 0.15rem 0.95rem;
  outline: none;
  box-shadow: none;
}

.notepad-input:focus,
.notepad-input:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
}

.notepad-input::placeholder {
  color: rgba(16, 36, 58, 0.38);
  font-weight: 600;
}

@media (min-width: 1100px) {
  .game-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* —— Avatar states extra —— */
.avatar.is-ready .avatar-bob {
  animation: avatarHop 1.1s ease-in-out infinite;
}

.avatar.is-offline {
  filter: grayscale(0.85);
  opacity: 0.55;
}

.avatar.is-answering .avatar-bob {
  animation: avatarHop 0.45s ease-in-out 2;
}

.avatar.ans-sim .avatar-bob {
  filter: drop-shadow(0 0 6px rgba(31, 173, 106, 0.6));
}

.avatar.ans-nao .avatar-bob {
  filter: drop-shadow(0 0 6px rgba(239, 63, 76, 0.55));
}

.avatar.is-fail .avatar-bob {
  animation: avatarFail 0.45s ease;
}

@keyframes avatarFail {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.player-card.is-ready {
  border-color: var(--teal);
}

.player-card.is-offline {
  opacity: 0.7;
}

.btn-pop {
  animation: btnPop 0.35s ease;
}

@keyframes btnPop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.shake {
  animation: panelShake 0.45s ease;
}

@keyframes panelShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.btn-replay {
  margin-top: 0.5rem;
  min-width: min(320px, 90vw);
}

.finished-wait {
  margin-top: 0.85rem;
  color: rgba(255, 247, 235, 0.85);
}

.assign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .avatar-bob,
  .blob,
  .logo-mark {
    animation: none !important;
  }

  .announce,
  .confetti {
    display: none !important;
  }
}

/* —— Privacidade / salas públicas —— */
.tabs {
  flex-wrap: wrap;
}
.fieldset-privacy {
  border: 2px solid rgba(43, 29, 20, 0.12);
  border-radius: 16px;
  padding: 0.75rem 1rem 1rem;
  margin: 0;
}
.fieldset-privacy legend {
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.radio-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.4rem 0;
  font-size: 0.92rem;
  line-height: 1.35;
  cursor: pointer;
}
.radio-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.password-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.password-row input {
  flex: 1;
}
.btn-toggle-pw {
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-kick {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
}
.public-rooms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.public-room-card {
  border: 2px solid rgba(43, 29, 20, 0.14);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 236, 200, 0.55)
  );
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.public-room-card.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}
.public-room-code {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.public-room-host,
.public-room-meta {
  font-size: 0.9rem;
  margin-top: 0.2rem;
  opacity: 0.9;
}
.public-room-card .btn-join-public {
  margin-top: 0.7rem;
  width: 100%;
}
.public-empty {
  text-align: center;
  padding: 1rem 0.5rem;
}
