/* ════════════════════════════════════════════════
   CatsTalk 🐾 — tema noturno de telhado
   ════════════════════════════════════════════════ */

:root {
  --bg0: #070912;
  --bg1: #0d1226;
  --bg2: #131a36;
  --panel: rgba(20, 24, 48, 0.55);
  --panel-2: rgba(28, 33, 64, 0.6);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaf6;
  --text-dim: #9aa0c3;
  --romeo: #b48cff;
  --romeo-soft: rgba(180, 140, 255, 0.16);
  --aurora: #ff9ec4;
  --aurora-soft: rgba(255, 158, 196, 0.16);
  --danger: #ff6b81;
  --ok: #51cf81;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg2) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── céu noturno ─────────────────────────────── */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.stars {
  position: absolute; inset: -50px;
  background-repeat: repeat;
  animation: twinkle 6s ease-in-out infinite alternate;
}
.stars.s1 {
  background-image: radial-gradient(1px 1px at 25px 35px, #fff, transparent),
    radial-gradient(1px 1px at 160px 90px, #cfd8ff, transparent),
    radial-gradient(1.5px 1.5px at 300px 50px, #fff, transparent),
    radial-gradient(1px 1px at 420px 160px, #ffe9c9, transparent);
  background-size: 480px 220px;
  opacity: .8;
}
.stars.s2 {
  background-image: radial-gradient(1px 1px at 80px 140px, #fff, transparent),
    radial-gradient(2px 2px at 240px 30px, #d7c9ff, transparent),
    radial-gradient(1px 1px at 380px 110px, #fff, transparent);
  background-size: 520px 260px;
  opacity: .55;
  animation-duration: 9s; animation-delay: -3s;
}
.stars.s3 {
  background-image: radial-gradient(1px 1px at 50px 60px, #fff, transparent),
    radial-gradient(1px 1px at 200px 180px, #ffd9a8, transparent);
  background-size: 600px 300px;
  opacity: .4;
  animation-duration: 12s; animation-delay: -6s;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: .85; } }

.moon {
  position: absolute; top: 7vh; right: 9vw;
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fffbe8, #ffe9b8 55%, #e8c98c);
  box-shadow: 0 0 60px 18px rgba(255, 236, 180, 0.18),
              inset -14px -10px 0 rgba(214, 178, 120, 0.45);
  animation: moonfloat 14s ease-in-out infinite alternate;
}
@keyframes moonfloat { from { transform: translateY(0); } to { transform: translateY(14px); } }

.rooftop {
  position: absolute; bottom: 0; left: 0; right: 0; height: 90px;
  background:
    linear-gradient(45deg, transparent 49%, rgba(8,10,20,.9) 50%) 0 0/140px 90px repeat-x,
    linear-gradient(-45deg, transparent 49%, rgba(8,10,20,.9) 50%) 70px 0/140px 90px repeat-x;
  opacity: .8;
}

.shooting-star {
  position: fixed; width: 130px; height: 2px; z-index: -1;
  background: linear-gradient(90deg, #fff, transparent);
  border-radius: 2px; opacity: 0;
  transform: rotate(-30deg);
  animation: shoot 1.4s ease-out forwards;
  pointer-events: none;
}
@keyframes shoot {
  0% { opacity: 0; transform: rotate(-30deg) translateX(0); }
  12% { opacity: .95; }
  100% { opacity: 0; transform: rotate(-30deg) translateX(46vw); }
}

/* patinha do clique */
.paw-click {
  position: fixed; z-index: 150; pointer-events: none;
  font-size: 15px; opacity: .9;
  animation: pawfade 1s ease-out forwards;
}
@keyframes pawfade {
  to { opacity: 0; transform: translateY(-26px) rotate(20deg) scale(1.25); }
}

/* ── blocos de vidro ─────────────────────────── */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

/* ── topo ────────────────────────────────────── */
.top {
  max-width: 1240px; width: calc(100% - 44px); margin: 0 auto; padding: 18px 0 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-paw { font-size: 34px; display: inline-block; animation: pawbeat 2.6s ease-in-out infinite; }
@keyframes pawbeat {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.12); }
}
.logo h1 {
  margin: 0; font-size: 30px; letter-spacing: .5px;
  background: linear-gradient(90deg, var(--romeo), #fff 50%, var(--aurora));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo p { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.top-right { display: flex; align-items: center; gap: 10px; }

.dots { display: flex; gap: 7px; margin-right: 6px; }
.dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a3f5e; border: 1px solid rgba(255,255,255,.15);
  position: relative; cursor: help;
}
.dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(81, 207, 129, .7); }

/* ── botões e inputs ─────────────────────────── */
button {
  font-family: inherit; font-size: 14px; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 16px; cursor: pointer;
  background: var(--panel-2);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
}
button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .38; cursor: default; }
button.icon { padding: 8px 11px; font-size: 16px; }
button.small { padding: 5px 10px; font-size: 12px; }
button.ghost { background: transparent; }
button.primary {
  background: linear-gradient(135deg, #7048c8, #b06ae0);
  border-color: rgba(255,255,255,.18); font-weight: 600;
  box-shadow: 0 4px 20px rgba(140, 90, 220, .4);
}
button.warn { background: rgba(255, 200, 90, .14); border-color: rgba(255, 200, 90, .3); }
button.danger { background: rgba(255, 107, 129, .14); border-color: rgba(255, 107, 129, .35); }

input[type="text"], select, textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: rgba(10, 13, 28, 0.6);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 13px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input[type="text"]:focus, select:focus, textarea:focus {
  border-color: rgba(180, 140, 255, .55);
  box-shadow: 0 0 0 3px rgba(180, 140, 255, .12);
}
select { cursor: pointer; }
textarea { width: 100%; resize: vertical; line-height: 1.5; }

input[type="range"] { accent-color: var(--aurora); cursor: pointer; }

/* ── palco ───────────────────────────────────── */
.stage {
  max-width: 1240px; width: calc(100% - 44px); margin: 10px auto 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.stage-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-label {
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--text-dim); margin: 2px 2px -5px;
}
.row-label span { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .8; }
.topic-wrap { display: flex; gap: 8px; flex: 1; min-width: 260px; }
#topic { flex: 1; font-size: 16px; }
#btn-dice { font-size: 19px; }
#btn-dice.rolling { animation: roll .5s ease; }
@keyframes roll { 50% { transform: rotate(180deg) scale(1.25); } 100% { transform: rotate(360deg); } }

.modes { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-size: 13px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.chip.sel {
  background: linear-gradient(135deg, var(--romeo-soft), var(--aurora-soft));
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 0 14px rgba(180, 140, 255, .25);
}

.controls { gap: 14px; }
.controls label { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-dim); }
.controls .spacer { flex: 1; }
.switch input { accent-color: var(--aurora); width: 16px; height: 16px; cursor: pointer; }
#btn-play { font-size: 15px; padding: 11px 22px; }


/* ── arena ───────────────────────────────────── */
.arena {
  max-width: 1240px; width: calc(100% - 44px); margin: 0 auto 14px; padding: 0;
  display: grid; grid-template-columns: 1fr 130px 1fr; gap: 14px;
  align-items: stretch;
}

.cat-card {
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: visible;
  transition: box-shadow .3s ease;
}
#card-romeo { --accent: var(--romeo); --accent-soft: var(--romeo-soft); }
#card-aurora  { --accent: var(--aurora);  --accent-soft: var(--aurora-soft); }

.cat-card[data-state="speaking"] {
  border-color: var(--accent);
  box-shadow: 0 0 calc(18px + var(--level, 0) * 42px) var(--accent-soft),
              0 0 calc(6px + var(--level, 0) * 18px) var(--accent),
              0 10px 36px rgba(0, 0, 0, 0.35);
}
.cat-card[data-state="thinking"] { border-color: rgba(255,255,255,.2); }

.avatar-wrap { width: 150px; height: 162px; margin: 0 auto; position: relative; }
.cat-svg { width: 100%; height: 100%; overflow: visible; }

/* respiração / flutuação da cabeça */
.cat-svg .head { animation: headbob 5s ease-in-out infinite alternate; transform-origin: 100px 90px; }
@keyframes headbob { from { transform: translateY(0) rotate(-.6deg); } to { transform: translateY(3px) rotate(.8deg); } }
#card-aurora .cat-svg .head { animation-duration: 6.2s; }

/* rabo balançando */
.cat-svg .tail { transform-origin: 160px 196px; animation: tailsway 3.6s ease-in-out infinite alternate; }
@keyframes tailsway { from { transform: rotate(-4deg); } to { transform: rotate(9deg); } }
#card-romeo .cat-svg .tail { animation-duration: 4.4s; }
.cat-card[data-state="speaking"] .cat-svg .tail { animation-duration: 1.2s; }

/* piscar */
.cat-svg .lid { transform-origin: center 64px; transform: scaleY(0); animation: blink 5.4s infinite; }
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(0); }
  94%, 97% { transform: scaleY(1); }
}
#card-aurora .cat-svg .lid { animation-duration: 7.1s; animation-delay: 1.3s; }

/* orelhas tremendo de vez em quando */
.cat-svg .ear-l { transform-origin: 60px 50px; animation: twitchL 9s infinite; }
.cat-svg .ear-r { transform-origin: 140px 50px; animation: twitchR 11s infinite; }
@keyframes twitchL { 0%, 86%, 100% { transform: rotate(0); } 88%, 92% { transform: rotate(-9deg); } 90% { transform: rotate(3deg); } }
@keyframes twitchR { 0%, 78%, 100% { transform: rotate(0); } 80%, 84% { transform: rotate(9deg); } 82% { transform: rotate(-3deg); } }

/* boca: fechada por padrão; falando, abre conforme o volume */
.cat-svg .mouth-open { transform-origin: 100px 115px; transform: scaleY(0); opacity: 0; transition: opacity .15s; }
.cat-card[data-state="speaking"] .cat-svg .mouth-open {
  opacity: 1;
  transform: scaleY(calc(0.15 + var(--level, 0.2) * 1.1));
}
.cat-card[data-state="speaking"] .cat-svg .mouth-closed { opacity: 0; }
.cat-card[data-state="speaking"] .cat-svg .whiskers { animation: whisk .4s ease-in-out infinite alternate; }
@keyframes whisk { from { transform: translateY(0); } to { transform: translateY(1.6px); } }

/* humores */
.cat-svg .eyes-happy, .cat-svg .brows { opacity: 0; transition: opacity .25s; }
.cat-card[data-mood="happy"] .eyes-happy { opacity: 1; }
.cat-card[data-mood="happy"] .eyes-open { opacity: 0; }
.cat-card[data-mood="angry"] .brows { opacity: 1; }
.cat-card[data-mood="angry"] .pupil { transform: scaleX(.55); transform-box: fill-box; transform-origin: center; }

/* pensando: olhos pra cima */
.cat-card[data-state="thinking"] .pupil { transform: translateY(-4px); }
.cat-card[data-state="thinking"] .avatar-wrap::after {
  content: "💭"; position: absolute; top: -6px; right: 6px; font-size: 22px;
  animation: thoughtfloat 1.6s ease-in-out infinite alternate;
}
@keyframes thoughtfloat { from { transform: translateY(0); opacity: .7; } to { transform: translateY(-7px); opacity: 1; } }

/* dormindo */
.cat-card[data-state="idle"] .avatar-wrap::after {
  content: "💤"; position: absolute; top: 0; right: 10px; font-size: 18px; opacity: .6;
  animation: thoughtfloat 2.4s ease-in-out infinite alternate;
}

.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cat-head h2 { margin: 0; font-size: 21px; color: var(--accent); }
.cat-head .tagline { font-size: 12px; color: var(--text-dim); font-weight: 400; margin-left: 4px; }
.status {
  font-size: 12.5px; color: var(--text-dim);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}

.cat-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-controls select { flex: 1; min-width: 90px; font-size: 13px; padding: 8px 10px; }

/* seletor de personalidade — destaque do card */
.pers-row { display: flex; align-items: center; gap: 8px; }
.pers-icon { font-size: 18px; }
.pers-select {
  flex: 1; font-size: 14px; font-weight: 600; padding: 9px 12px;
  border-color: var(--accent-soft);
  background: linear-gradient(135deg, var(--accent-soft), rgba(10, 13, 28, 0.6) 60%);
  transition: box-shadow .25s, border-color .25s;
}
.pers-select:hover { border-color: var(--accent); box-shadow: 0 0 14px var(--accent-soft); }


.reactions { display: flex; gap: 8px; }
.react { flex: 1; font-size: 14px; }
.react b { font-variant-numeric: tabular-nums; }
.react.pop { animation: reactpop .35s ease; }
@keyframes reactpop { 40% { transform: scale(1.18); } }

.fly-emoji {
  position: fixed; z-index: 70; font-size: 22px; pointer-events: none;
  transition: transform .7s cubic-bezier(.3, -0.2, .5, 1.2), opacity .7s;
}

.emote {
  position: absolute; font-size: 24px; z-index: 5; pointer-events: none;
  animation: emoterise 1.6s ease-out forwards;
}
@keyframes emoterise {
  0% { opacity: 0; transform: translateY(6px) scale(.6); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-44px) scale(1.25) rotate(12deg); }
}

/* ── coluna central ──────────────────────────── */
.vs-col {
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; gap: 14px; padding-top: 16px;
}
.timer { position: relative; width: 86px; height: 86px; }
.timer svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 7; }
.ring {
  fill: none; stroke: url(#tg); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 213.6; stroke-dashoffset: 0;
  transition: stroke-dashoffset .9s linear;
}
.timer-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.timer.urgent .timer-label { color: var(--danger); animation: urgentpulse 1s infinite; }
@keyframes urgentpulse { 50% { opacity: .5; } }

.vs-badge {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: linear-gradient(135deg, var(--romeo-soft), var(--aurora-soft));
  border: 1px solid var(--line);
  animation: vspulse 2.4s ease-in-out infinite;
}
@keyframes vspulse {
  0%, 100% { box-shadow: 0 0 10px rgba(180, 140, 255, .25); }
  50% { box-shadow: 0 0 24px rgba(255, 158, 196, .45); transform: scale(1.07); }
}
.turn-label { font-size: 12.5px; color: var(--text-dim); }

/* ── transcrição ─────────────────────────────── */
.transcript-wrap { max-width: 1240px; width: calc(100% - 44px); margin: 0 auto 14px; padding: 6px; }
.transcript {
  max-height: 46vh; min-height: 170px; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth;
}
.transcript::-webkit-scrollbar { width: 9px; }
.transcript::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 9px; }
.placeholder { color: var(--text-dim); text-align: center; padding: 40px 16px; font-size: 15px; }

.bubble {
  max-width: 72%; padding: 13px 17px; border-radius: 18px;
  line-height: 1.55; font-size: 15px; position: relative;
  animation: bubblein .4s cubic-bezier(.2, .9, .3, 1.2);
  border: 1px solid var(--line);
}
@keyframes bubblein {
  from { opacity: 0; transform: translateY(14px) scale(.95); }
}
.bubble.romeo {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(180, 140, 255, .14), rgba(180, 140, 255, .05));
  border-bottom-left-radius: 6px;
}
.bubble.aurora {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255, 158, 196, .14), rgba(255, 158, 196, .05));
  border-bottom-right-radius: 6px;
}
.bubble .who {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; margin-bottom: 7px; color: var(--text-dim);
}
.bubble.romeo .who b { color: var(--romeo); }
.bubble.aurora .who b { color: var(--aurora); }
.bubble .who .model-chip {
  background: rgba(255,255,255,.07); padding: 1.5px 8px; border-radius: 999px;
  font-size: 10.5px; border: 1px solid var(--line);
}
.bubble .who .pers-chip { font-weight: 600; }
.bubble.romeo .who .pers-chip { background: var(--romeo-soft); }
.bubble.aurora .who .pers-chip { background: var(--aurora-soft); }
.bubble.draft .words { opacity: .6; font-style: italic; }

/* karaokê */
.bubble .w { opacity: .28; transition: opacity .18s, background .18s; border-radius: 5px; padding: 0 1px; }
.bubble .w.on { opacity: 1; }
.bubble.romeo .w.cur { background: var(--romeo-soft); box-shadow: 0 0 8px var(--romeo-soft); opacity: 1; }
.bubble.aurora .w.cur { background: var(--aurora-soft); box-shadow: 0 0 8px var(--aurora-soft); opacity: 1; }
.bubble.done .w { opacity: 1; }

/* ── rodapé ──────────────────────────────────── */
.bottom {
  max-width: 1240px; width: calc(100% - 44px); margin: 0 auto 26px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.credits { width: 100%; text-align: center; margin: 4px 0 0; font-size: 12px; color: var(--text-dim); }
.credits b:first-of-type { color: var(--aurora); }
.credits b:last-of-type { color: var(--romeo); }

/* ── overlays ────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 7, 16, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: overlayin .3s ease;
}
@keyframes overlayin { from { opacity: 0; } }
.overlay.hidden { display: none; }

.end-card {
  max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 28px 30px; text-align: center;
  animation: bubblein .45s cubic-bezier(.2, .9, .3, 1.2);
}
.end-card h2 { margin: 0 0 14px; font-size: 26px; }
.verdict-by { color: var(--text-dim); font-size: 12.5px; margin: 0 0 10px; }
.verdict { font-size: 15.5px; line-height: 1.65; text-align: left; white-space: pre-wrap; }
.setup-text { text-align: left; line-height: 1.7; font-size: 14.5px; }
.setup-text code {
  background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 6px; font-size: 13px;
}

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px; margin: 18px 0;
}
.stat {
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 8px;
}
.stat .n { font-size: 20px; font-weight: 700; }
.stat .l { font-size: 11.5px; color: var(--text-dim); }
.end-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

.confetti {
  position: fixed; top: -36px; z-index: 150; pointer-events: none; font-size: 22px;
  animation: confettifall linear forwards;
}
@keyframes confettifall {
  to { transform: translateY(110vh) rotate(420deg); opacity: .25; }
}

/* configurações ⚙️ */
.settings-card { max-width: 680px; }
.settings-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 14px; }
.engine-chip {
  display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 11.5px;
  white-space: nowrap;
}
.voice-config {
  display: flex; flex-direction: column; gap: 7px; text-align: left;
  max-height: 52vh; overflow-y: auto; padding-right: 4px;
}
.voice-cast-title { font-weight: 700; font-size: 13px; color: var(--text-dim); margin: 10px 0 2px; }
.voice-config .voice-cast-title:first-child { margin-top: 0; }
.voice-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 12px;
}
.voice-row .vname { width: 175px; min-width: 130px; display: flex; flex-direction: column; }
.voice-row .vname span { color: var(--text-dim); font-size: 11px; }
.voice-row select { flex: 1; min-width: 0; font-size: 13px; padding: 7px 10px; }
.voice-row button { white-space: nowrap; }
.settings-keys {
  margin: 14px 0 10px; display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; align-items: center;
}
.settings-keys .keys-title { width: 100%; color: var(--text-dim); font-size: 12px; margin-bottom: 2px; }
.key-chip {
  padding: 3px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-dim);
}
.key-chip.ok { color: var(--text); border-color: rgba(81, 207, 129, .4); }

/* ── modo telão 📺 ───────────────────────────── */
body.telao .top,
body.telao .stage,
body.telao .bottom,
body.telao .pers-row,
body.telao .cat-controls,

body.telao .arena { max-width: 1680px; margin-top: 26px; grid-template-columns: 1fr 150px 1fr; }
body.telao .avatar-wrap { width: 230px; height: 248px; }
body.telao .cat-head h2 { font-size: 32px; }
body.telao .cat-head .tagline { font-size: 15px; }
body.telao .status { font-size: 15px; padding: 5px 14px; }
body.telao .react { font-size: 18px; padding: 11px 16px; }
body.telao .vs-col { padding-top: 40px; gap: 20px; }
body.telao .timer { transform: scale(1.25); }
body.telao .vs-badge { width: 56px; height: 56px; font-size: 27px; }

body.telao .transcript-wrap { max-width: 1680px; }
body.telao .transcript { max-height: calc(100vh - 560px); min-height: 220px; }
body.telao .bubble { font-size: 22px; line-height: 1.6; max-width: 80%; }
body.telao .bubble .who { font-size: 14px; }
body.telao .bubble .who .model-chip { font-size: 12px; }

.theater-bar {
  position: fixed; top: 16px; right: 16px; z-index: 95;
  display: flex; gap: 8px;
  opacity: .3; transition: opacity .25s;
}
.theater-bar:hover { opacity: 1; }
.theater-bar button {
  background: rgba(22, 26, 50, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 18px; padding: 10px 14px;
}
.theater-bar.hidden { display: none; }

/* ── toasts ──────────────────────────────────── */
#toasts {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  background: rgba(22, 26, 50, 0.92); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 18px; font-size: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  animation: toastin .3s ease; max-width: 80vw;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.toast.error { border-color: rgba(255, 107, 129, .5); }
.toast.out { animation: toastout .3s ease forwards; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } }
@keyframes toastout { to { opacity: 0; transform: translateY(10px); } }

/* ── responsivo ──────────────────────────────── */
@media (max-width: 920px) {
  .arena { grid-template-columns: 1fr; }
  .vs-col { flex-direction: row; justify-content: center; padding: 4px 0; order: -1; }
  .bubble { max-width: 88%; }
  .moon { width: 64px; height: 64px; }
}

/* chip de saldo de Talks 🪙 */
.talks-chip {
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(255, 209, 102, .12); border: 1px solid rgba(255, 209, 102, .35);
  color: #ffd166; white-space: nowrap;
}
.talks-chip.hidden { display: none; }

/* tour de boas-vindas */
.tour-card { max-width: 640px; }
.tour-sub { color: var(--text-dim); font-size: 14px; margin: 0 0 18px; }
.tour-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tour-item {
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 14px; text-align: left;
}
.tour-item span { font-size: 24px; display: block; margin-bottom: 6px; }
.tour-item b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.tour-item p { margin: 0; color: var(--text-dim); font-size: 12.5px; line-height: 1.5; }
