/* Estética "noche en el living", la misma de la landing: fondo índigo con luz de pantalla,
   superficies con brillo sutil, Mona Sans y acentos por juego (frutilla, limón, menta, lavanda).
   Los nombres de las variables son los de siempre; cambian los valores. Usalas en vez de colores fijos:
   --bg fondo · --bg-2 relleno de chips e inputs · --card superficie · --ink texto · --tomato acento principal… */
:root {
  --bg: #16112f;
  --bg-2: #2a2259;
  --card: #211a4c;
  --paper: #211a4c;
  --line: rgba(255, 246, 236, 0.12);
  --ink: #fff6ec;
  --ink-soft: rgba(255, 246, 236, 0.74);
  --muted: rgba(255, 246, 236, 0.5);
  --on-accent: #16112f; /* texto sobre limón, menta o lavanda */

  --tomato: #ff4766;   /* frutilla */
  --tomato-d: #d81f45;
  --mustard: #ffd23a;  /* limón */
  --mustard-d: #e2a90c;
  --mint: #4fd8a0;     /* menta */
  --mint-d: #2fb383;
  --grape: #ab9cff;    /* lavanda */
  --grape-d: #8d7bff;
  --pink: #ff8fa3;

  --radius: 24px;
  --soft: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 40px -22px rgba(0, 0, 0, 0.75);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  --display: 'Mona Sans', 'Helvetica Neue', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  font-family: 'Mona Sans', 'Helvetica Neue', system-ui, sans-serif;
  font-weight: 450;
  color: var(--ink);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  background-image:
    radial-gradient(70% 50% at 50% -10%, rgba(120, 90, 255, 0.28), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 71, 102, 0.12), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(79, 216, 160, 0.08), transparent 70%);
  background-attachment: fixed;
}
/* Cada juego tiñe el ambiente con su color, como los capítulos de la landing (body[data-game] lo pone player.js/screen.js). */
body[data-game='tutti'] {
  background-image:
    radial-gradient(70% 50% at 50% -10%, rgba(255, 71, 102, 0.3), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 71, 102, 0.14), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(120, 90, 255, 0.14), transparent 70%);
}
body[data-game='frases'] {
  background-image:
    radial-gradient(70% 50% at 50% -10%, rgba(255, 210, 58, 0.24), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255, 150, 40, 0.12), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(120, 90, 255, 0.14), transparent 70%);
}
body[data-game='impostor'] {
  background-image:
    radial-gradient(70% 50% at 50% -10%, rgba(79, 216, 160, 0.24), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(20, 90, 70, 0.3), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(120, 90, 255, 0.12), transparent 70%);
}

/* grano de película, como en la landing */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--mustard); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--mustard) 45%, transparent); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 720;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* ---------- botones (las píldoras de la landing) ---------- */
.btn {
  --b: var(--ink);
  --fg: var(--on-accent);
  --glow: rgba(255, 246, 236, 0.35);
  border: none;
  border-radius: 999px;
  padding: 0.78em 1.5em;
  font-weight: 640;
  font-stretch: 105%;
  letter-spacing: -0.01em;
  background: var(--b);
  color: var(--fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px -14px var(--glow);
  transition: transform 0.2s var(--ease), box-shadow 0.25s, opacity 0.2s, background-color 0.2s;
}
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn.tomato { --b: linear-gradient(180deg, #ff5a76, var(--tomato) 55%, #f0284c); --fg: #fff; --glow: rgba(255, 71, 102, 0.75); background: var(--b); }
.btn.mint { --b: var(--mint); --fg: var(--on-accent); --glow: rgba(79, 216, 160, 0.55); }
.btn.ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.11); filter: none; }

.card {
  background: var(--glass), var(--card);
  border-radius: var(--radius);
  box-shadow: var(--soft);
}

/* Estados de las respuestas */
.s-solo { --c: var(--grape); --fg: var(--on-accent); --tint: color-mix(in srgb, var(--grape) 16%, transparent); }
.s-unique { --c: var(--mint); --fg: var(--on-accent); --tint: color-mix(in srgb, var(--mint) 14%, transparent); }
.s-repeated { --c: var(--mustard); --fg: var(--on-accent); --tint: color-mix(in srgb, var(--mustard) 14%, transparent); }
.s-invalid { --c: var(--tomato); --fg: #fff; --tint: color-mix(in srgb, var(--tomato) 15%, transparent); }
.s-empty { --c: var(--bg-2); --fg: var(--muted); --tint: transparent; }

.pts {
  display: inline-grid; place-items: center; min-width: 2.2em; padding: 0.12em 0.55em;
  border-radius: 999px; font-weight: 720; background: var(--c); color: var(--fg); font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}

.urgent { color: var(--tomato) !important; animation: pulse 0.6s infinite alternate; }

@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }
@keyframes wobble { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.loader {
  width: 64px; height: 64px; border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.1); border-top-color: var(--tomato);
  animation: spin 0.9s linear infinite;
}

/* =================== Piezas compartidas (celu y pantalla) =================== */
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.pad { padding: 18px 20px; }
.section-title { margin: 30px 4px 12px; font-size: 1.35rem; }
.card-title { margin: 0 0 10px; font-size: 1.2rem; }
.swatch { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-weight: 640; z-index: 80;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s, transform 0.3s var(--ease); max-width: calc(100vw - 32px); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.mini {
  border: none; background: rgba(255, 255, 255, 0.07); color: var(--ink-soft); border-radius: 999px; padding: 6px 12px;
  font-weight: 620; font-size: 0.84rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mini:hover { background: rgba(255, 255, 255, 0.12); }
.mini.danger { color: var(--tomato); }
.mini.ok { background: var(--mint); color: var(--on-accent); box-shadow: none; }

/* Selector de animalito y color */
.emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emojis button {
  aspect-ratio: 1; font-size: 1.5rem; border: none; border-radius: 14px; background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.2s var(--ease), background 0.15s, box-shadow 0.15s;
  display: grid; place-items: center; padding: 0;
}
.emojis button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.emojis button.on { background: color-mix(in srgb, var(--mustard) 22%, transparent); transform: scale(1.08); box-shadow: inset 0 0 0 2px var(--mustard), 0 8px 20px -8px rgba(255, 210, 58, 0.6); }
.emojis button:disabled { opacity: 0.22; filter: grayscale(1); cursor: not-allowed; }
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.swatches button {
  aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--bg); background: var(--sw); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); padding: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.swatches button.on { box-shadow: 0 0 0 2.5px var(--ink); transform: scale(1.1); }
.swatches button:disabled { opacity: 0.25; cursor: not-allowed; background: repeating-linear-gradient(45deg, var(--sw) 0 4px, var(--bg) 4px 7px); }
@media (max-width: 380px) { .emojis { grid-template-columns: repeat(6, 1fr); } .swatches { grid-template-columns: repeat(8, 1fr); gap: 4px; } }

/* Invitar */
.invite { display: grid; gap: 14px; justify-items: center; text-align: center; }
.code-box small { display: block; color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.room-code {
  font-family: var(--display); font-size: 3rem; font-weight: 800; font-stretch: 125%; letter-spacing: 0.08em; line-height: 1.1;
  color: var(--mustard); text-shadow: 0 0 40px rgba(255, 210, 58, 0.35);
}
.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.invite-actions .btn { padding: 0.6em 1.15em; }
.qr-img { width: 200px; height: 200px; border-radius: 18px; box-shadow: 0 0 0 6px var(--ink), 0 20px 50px -20px rgba(0, 0, 0, 0.8); background: var(--ink); }
.invite p { margin: 0; word-break: break-all; }

/* Miembros */
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.members li { display: flex; align-items: center; gap: 12px; padding: 6px 4px; flex-wrap: wrap; }
.members li.off { opacity: 0.45; }
.members .emo {
  font-size: 1.45rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: color-mix(in srgb, var(--ring, transparent) 22%, rgba(255, 255, 255, 0.05)); box-shadow: inset 0 0 0 2.5px var(--ring, transparent); flex: none;
}
.m-name { font-weight: 620; flex: 1; min-width: 120px; }
.m-name small { color: var(--muted); font-weight: 500; }
.badge { background: color-mix(in srgb, var(--grape) 22%, transparent); color: var(--grape); border-radius: 999px; padding: 2px 8px; font-size: 0.7rem; font-weight: 700; vertical-align: middle; }
.m-actions { display: flex; gap: 6px; }
.admin-tools { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 620; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--tomato); }
.switch small { color: var(--muted); font-weight: 500; }

/* Catálogo de juegos */
.games { display: grid; gap: 12px; }
.game-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  background: var(--glass), var(--card); box-shadow: var(--soft); border-radius: var(--radius); padding: 18px 18px 18px 16px;
}
.game-card::before { /* luz del juego */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 0% 50%, color-mix(in srgb, var(--tomato) 18%, transparent), transparent 70%);
}
.game-card:nth-child(2)::before { background: radial-gradient(60% 90% at 0% 50%, color-mix(in srgb, var(--mustard) 16%, transparent), transparent 70%); }
.game-card:nth-child(3)::before { background: radial-gradient(60% 90% at 0% 50%, color-mix(in srgb, var(--mint) 16%, transparent), transparent 70%); }
.game-card > * { position: relative; }
.game-card .g-emoji {
  font-size: 2.1rem; grid-row: span 2; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.game-card h3 { margin: 0; font-size: 1.3rem; }
.game-card p { margin: 4px 0 6px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.4; }
.game-card small { color: var(--muted); font-weight: 560; }
.game-card .btn, .game-card .soon-tag { grid-column: 2; justify-self: start; }
.game-card.soon { opacity: 0.6; box-shadow: inset 0 0 0 1px var(--line); background: transparent; }
.game-card.soon::before { display: none; }
.soon-tag { background: rgba(255, 255, 255, 0.07); color: var(--ink-soft); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 0.8rem; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(8, 5, 25, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: end center; z-index: 70; padding: 12px; }
.modal-card { width: 100%; max-width: 520px; padding: 22px; max-height: 92dvh; overflow: auto; animation: rise 0.35s var(--ease); background: var(--glass), #241c55; }
.modal-card h2 { margin: 0 0 14px; }
.dock-row { display: flex; gap: 10px; margin-top: 16px; }
.dock-row .btn { flex: 1; }

/* Configuración de los juegos */
.settings-panel h3 { margin: 0 0 12px; font-size: 1.15rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.settings-panel h3 small { font-family: inherit; font-stretch: 100%; letter-spacing: 0; font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.settings-panel h3 .tiny { border: none; background: none; color: var(--grape); font-weight: 620; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; padding: 0; letter-spacing: 0; font-stretch: 100%; }
.settings-panel h3 .tiny:first-of-type { margin-left: auto; }
.settings-panel section + section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cats { display: flex; flex-wrap: wrap; gap: 7px; }
.cat {
  border: none; background: rgba(255, 255, 255, 0.06); color: var(--ink-soft); border-radius: 999px; padding: 7px 14px; font-weight: 560;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); transition: background 0.15s, color 0.15s;
}
.cat:hover { background: rgba(255, 255, 255, 0.1); }
.cat.on { background: var(--mustard); color: var(--on-accent); font-weight: 650; box-shadow: none; }
.add-cat { display: flex; gap: 8px; margin-top: 12px; }
.add-cat input {
  flex: 1; min-width: 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05);
  color: var(--ink); padding: 9px 16px; outline: none;
}
.add-cat input::placeholder { color: var(--muted); }
.add-cat input:focus { border-color: var(--mustard); box-shadow: 0 0 0 4px rgba(255, 210, 58, 0.15); }
.add-cat .btn { padding: 0.55em 1.15em; }
.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }
.letters button {
  aspect-ratio: 1; border: none; border-radius: 11px; background: rgba(255, 255, 255, 0.05); color: var(--muted); padding: 0;
  font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 1.05rem;
  text-decoration: line-through; text-decoration-color: rgba(255, 246, 236, 0.35);
}
.letters button.on { background: var(--mint); color: var(--on-accent); text-decoration: none; }
.note { color: var(--ink-soft); font-size: 0.9rem; margin: 10px 0 0; font-weight: 500; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .two-cols { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  border: none; background: rgba(255, 255, 255, 0.06); color: var(--ink-soft); border-radius: 999px; padding: 7px 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.seg button.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.rules { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-soft); font-weight: 560; }
.rules .pts { margin-right: 6px; }
.judge-badge { font-size: 0.92rem; color: var(--muted); font-weight: 560; margin: 12px 0 0; }
.judge-badge.ok { color: var(--mint); }

.summary p { margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: rgba(255, 255, 255, 0.07); border-radius: 999px; padding: 5px 12px; font-weight: 560; font-size: 0.92rem; }

.letter-strip { display: flex; flex-wrap: wrap; gap: 5px; }
.letter-strip span {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--on-accent);
  font-family: var(--display); font-weight: 720; font-stretch: 110%;
}
.letter-strip span.used { background: rgba(255, 255, 255, 0.05); color: var(--muted); text-decoration: line-through; }

.highlights { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.hl { background: var(--glass), var(--card); box-shadow: var(--soft); border-radius: 20px; padding: 12px 16px; flex: 1 1 140px; }
.hl small { display: block; color: var(--muted); font-weight: 600; font-size: 0.78rem; margin-bottom: 2px; }
.hl b { font-size: 1.05rem; line-height: 1.3; font-weight: 680; }
.hl b small { display: inline; font-size: 0.82rem; }

/* Gráfico */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { fill: var(--muted); font-size: 14px; font-weight: 560; font-family: var(--display); }
.ch-label { fill: var(--ink); font-size: 15px; font-weight: 680; font-family: var(--display); }
.chart.compact .ch-axis { font-size: 15px; }
.chart.compact .ch-label { font-size: 16px; }
.ch-dot { stroke: var(--bg); stroke-width: 2; }
.ch-cross { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ch-rest { stroke: rgba(255, 246, 236, 0.18); }
.ch-tip {
  position: absolute; top: 10px; background: #2a2260; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); border-radius: 16px; padding: 10px 14px;
  font-weight: 560; pointer-events: none; min-width: 160px; border: 1px solid var(--line); z-index: 3;
}
.ch-tip strong { display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 700; }
.ch-tip div { display: flex; align-items: center; gap: 8px; }
.ch-tip div b { margin-left: auto; padding-left: 14px; }
.ch-tip i { width: 10px; height: 10px; border-radius: 50%; }

/* Lista de gente en una sola línea y juegos "próximamente" más compactos */
.members li { flex-wrap: nowrap; }
.m-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-actions { margin-left: auto; flex: none; }
.m-actions .mini { padding: 5px 9px; font-size: 0.76rem; }
.game-card.soon { padding: 10px 14px; }
.game-card.soon p { display: none; }
.game-card.soon .g-emoji { font-size: 1.5rem; width: 44px; height: 44px; }
.game-card.soon h3 { font-size: 1.05rem; }

/* =================== Frases incompletas =================== */
.prompt { font-family: var(--display); font-weight: 700; font-stretch: 106%; letter-spacing: -0.025em; font-size: 1.32rem; line-height: 1.22; margin: 0; }
.prompt.big { font-size: 1.55rem; }
.blank { display: inline-block; min-width: 3.5em; border-bottom: 3px solid var(--mustard); color: transparent; line-height: 1; transform: translateY(-0.12em); }
.frases-rules { margin: 10px 0 0; padding-left: 18px; color: var(--ink-soft); font-weight: 500; }
.frases-rules li + li { margin-top: 4px; }
.custom-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.custom-list li { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, 0.05); border-radius: 14px; padding: 6px 6px 6px 12px; font-weight: 560; }
.custom-list li span { flex: 1; }

.options { display: grid; gap: 12px; margin: 14px 0; }
.option {
  position: relative; display: grid; gap: 8px; text-align: left; width: 100%; border: none; border-radius: var(--radius);
  background: var(--glass), var(--card); box-shadow: var(--soft); padding: 18px 20px; color: var(--ink); font: inherit;
  transition: box-shadow 0.2s, transform 0.2s var(--ease), background-color 0.2s;
}
.option .opt-text { font-size: 1.25rem; font-weight: 650; font-stretch: 104%; letter-spacing: -0.02em; line-height: 1.25; }
.option small { color: var(--muted); font-weight: 600; }
button.option:not(:disabled):hover { box-shadow: var(--soft), inset 0 0 0 1.5px rgba(255, 255, 255, 0.25); }
button.option:not(:disabled):active { transform: scale(0.985); }
.option.picked { background: color-mix(in srgb, var(--grape) 18%, var(--card)); box-shadow: var(--soft), inset 0 0 0 2px var(--grape); }
.option.picked small { color: var(--grape); }
.option.mine { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.option:disabled { cursor: default; }
.revealed .option { animation: rise 0.5s var(--ease) both; }
.revealed .option:nth-child(2) { animation-delay: 0.25s; }
.revealed .option:nth-child(3) { animation-delay: 0.5s; }
.option.winner { background: color-mix(in srgb, var(--mustard) 16%, var(--card)); box-shadow: var(--soft), inset 0 0 0 2px var(--mustard), 0 0 50px -10px rgba(255, 210, 58, 0.35); }
.opt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--ink-soft); font-weight: 600; }
.opt-author { color: var(--ink); }
.opt-meta .pts { margin-left: auto; }
.voters { letter-spacing: 2px; }
.sweep {
  position: absolute; top: -12px; right: 14px; background: var(--tomato); color: #fff; border-radius: 999px; padding: 3px 12px;
  font-weight: 760; font-stretch: 115%; font-size: 0.85rem; transform: rotate(-4deg);
  box-shadow: 0 10px 24px -8px rgba(255, 71, 102, 0.7); animation: pop 0.4s 0.5s both;
}

/* =================== El impostor =================== */
.secret { position: relative; padding: 0; overflow: hidden; min-height: 230px; margin: 4px 0 14px; user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer; }
.secret-cover, .secret-inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 20px; gap: 6px; transition: opacity 0.15s; }
.secret-cover {
  background:
    repeating-linear-gradient(135deg, rgba(169, 240, 207, 0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #175545, #0a2a22);
  color: #a9f0cf;
}
.secret-cover .big { font-size: 3rem; }
.secret-cover b { font-size: 1.2rem; font-weight: 680; }
.secret-cover small { color: rgba(169, 240, 207, 0.7); font-weight: 560; }
.secret-inner { opacity: 0; background: var(--glass), var(--card); }
.secret.show .secret-inner { opacity: 1; }
.secret.show .secret-cover { opacity: 0; }
.secret-word { font-family: var(--display); font-weight: 800; font-stretch: 115%; letter-spacing: -0.04em; font-size: 2.7rem; color: var(--ink); margin: 0; line-height: 1.02; }
.secret-cat { margin: 0; font-weight: 560; color: var(--ink-soft); }
.role { font-family: var(--display); font-weight: 760; font-stretch: 112%; letter-spacing: -0.03em; font-size: 1.6rem; }
.role.imp { color: var(--tomato); }
.role.civ { color: var(--mint); font-size: 1.1rem; }

.peek { width: 100%; margin-bottom: 12px; padding: 10px; font-size: 0.95rem; user-select: none; -webkit-user-select: none; touch-action: none; }
.peek.on { background: var(--ink); color: var(--bg); }
.turn-card { margin-bottom: 10px; }
.turn-card.mine { box-shadow: var(--soft), inset 0 0 0 2px var(--mustard), 0 0 40px -12px rgba(255, 210, 58, 0.4); }
.turn-title { font-family: var(--display); font-weight: 760; font-stretch: 112%; letter-spacing: -0.03em; font-size: 1.45rem; margin: 0 0 6px; }

.clue-block + .clue-block { margin-top: 14px; }
.clue-v { margin: 0 0 8px; color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.clues { display: flex; flex-wrap: wrap; gap: 8px; }
.clue { display: grid; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); border-radius: 16px; padding: 7px 13px; line-height: 1.2; }
.clue small { color: var(--ink-soft); font-weight: 560; font-size: 0.8rem; }
.clue b { font-size: 1.05rem; font-weight: 680; }
.clue.skipped b { color: var(--muted); font-weight: 500; }
.clue.out { opacity: 0.45; text-decoration: line-through; }
.clues.big .clue { padding: 12px 18px; }
.clues.big .clue b { font-size: 1.55rem; }
.clues.big .clue small { font-size: 1rem; }

.vote-list { display: grid; gap: 8px; margin: 10px 0; }
.vote-btn {
  border: none; background: var(--glass), var(--card); box-shadow: var(--soft); border-radius: 20px; padding: 15px 18px; font-weight: 650; font-size: 1.12rem;
  text-align: left; display: flex; justify-content: space-between; align-items: center; transition: box-shadow 0.2s, transform 0.2s var(--ease);
}
.vote-btn:active { transform: scale(0.985); }
.vote-btn.picked { background: color-mix(in srgb, var(--grape) 18%, var(--card)); box-shadow: var(--soft), inset 0 0 0 2px var(--grape); }
.vote-btn small { color: var(--grape); }
details.card summary { cursor: pointer; font-weight: 650; }
details.card[open] summary { margin-bottom: 10px; }

.verdict-card { text-align: center; margin-bottom: 12px; animation: pop 0.45s var(--ease); }
.verdict-card.imp { box-shadow: var(--soft), inset 0 0 0 2px var(--tomato), 0 0 60px -14px rgba(255, 71, 102, 0.5); }
.verdict-card.civ { box-shadow: var(--soft), inset 0 0 0 2px var(--mint), 0 0 60px -14px rgba(79, 216, 160, 0.4); }
.v-who { font-size: 1.5rem; font-weight: 700; margin: 0; }
.v-role { font-family: var(--display); font-size: 1.9rem; font-weight: 780; font-stretch: 115%; letter-spacing: -0.035em; margin: 4px 0; }
.verdict-card.imp .v-role { color: var(--tomato); }
.verdict-card.civ .v-role { color: var(--mint); }
.guess-card { text-align: center; margin-bottom: 12px; }
.guess-card.ok { box-shadow: var(--soft), inset 0 0 0 2px var(--mustard); }
.vote-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.vote-row:first-of-type { border-top: none; }
.vote-row small { grid-column: 1 / -1; letter-spacing: 2px; }

.outcome { text-align: center; margin-bottom: 14px; }
.outcome.civ { box-shadow: var(--soft), inset 0 0 0 2px var(--mint), 0 0 60px -14px rgba(79, 216, 160, 0.4); }
.outcome.imp { box-shadow: var(--soft), inset 0 0 0 2px var(--tomato), 0 0 60px -14px rgba(255, 71, 102, 0.5); }
.o-title { font-family: var(--display); font-size: 1.75rem; font-weight: 780; font-stretch: 115%; letter-spacing: -0.035em; margin: 0 0 4px; }
.outcome p { margin: 6px 0; }
.o-mine { color: var(--mint); font-weight: 650; }
.code-ttl { display: block; color: var(--muted); font-weight: 560; font-size: 0.82rem; margin-top: 2px; }
.code-ttl .urgent { animation: none; }
.room-code.expired { color: var(--muted); letter-spacing: 0.02em; font-size: 2rem; text-shadow: none; font-stretch: 110%; }

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