:root {
    --bg-deep: #122a85;
    --bg-surface: #1b3ca8;
    --bg-card: rgba(16, 33, 94, 0.78);
    --bg-card-solid: #152b7d;
    --bg-elevated: rgba(29, 58, 148, 0.82);

    --border-subtle: rgba(125, 211, 252, 0.24);
    --border-gold: rgba(248, 208, 104, 0.62);
    --border-cyan: rgba(56, 189, 248, 0.56);

    --text-main: #ffffff;
    --text-muted: #d3e5ff;

    --gold: #f8d068;
    --gold-light: #fff1a8;
    --gold-dark: #d99522;
    --cyan: #00c2ff;
    --cyan-dark: #0084ff;
    --violet: #7c3aed;
    --pink: #a855f7;

    --emerald: #10b981;
    --emerald-soft: rgba(16, 185, 129, 0.22);
    --crimson: #f43f5e;
    --crimson-soft: rgba(244, 63, 94, 0.24);
    --whatsapp: #25d366;

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-card: 0 20px 50px rgba(8, 18, 66, 0.45);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: linear-gradient(135deg, #0099ff 0%, #1854d6 34%, #4f35c8 68%, #7b35cf 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

/* Fondo dinámico con paleta oficial 7play (azul cielo, cobalto, morado y destellos dorados) */
.ambient-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.45;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, #fff0a6, #f5c34b 42%, transparent 72%);
    top: -150px;
    right: -90px;
    opacity: 0.36;
}

.orb-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #00d2ff, #0084ff 50%, transparent 74%);
    top: -120px;
    left: -140px;
    animation-delay: -4s;
}

.orb-3 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #9333ea, #5b21b6 50%, transparent 72%);
    bottom: -160px;
    right: 12%;
    opacity: 0.4;
    animation-delay: -8s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(24px, -28px) scale(1.08); }
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 16px 96px;
}

/* Barra superior */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #00b4ff, #1d56d8 52%, #7c3aed);
    border: 1.5px solid rgba(255, 240, 166, 0.55);
    box-shadow: 0 8px 24px rgba(10, 26, 94, 0.45);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.22s var(--bounce);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand:hover .brand-icon {
    transform: rotate(-4deg) scale(1.06);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.22rem;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #fff5be, #f8d068 55%, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    font-size: 0.78rem;
    color: #e2efff;
    font-weight: 600;
}

/* Banner oficial 7play en el inicio */
.brand-hero-banner {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    border: 2px solid var(--border-gold);
    box-shadow: 0 24px 60px rgba(7, 16, 62, 0.52);
    background: linear-gradient(135deg, #00a8ff, #1b56d8 48%, #7c3aed);
}

.brand-hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.menu-back-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-back-btn {
    white-space: nowrap;
}

/* Menú principal de juegos (Hub) */
.hub-hero {
    padding-bottom: 10px;
}

.hub-filters {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hub-filter-btn {
    border: 1.5px solid rgba(186, 230, 253, 0.34);
    background: rgba(11, 24, 78, 0.48);
    color: #eaf4ff;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 9px 15px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.18s var(--bounce);
}

.hub-filter-btn:hover {
    color: var(--text-main);
    border-color: var(--border-cyan);
    transform: translateY(-2px);
}

.hub-filter-btn.active {
    background: linear-gradient(135deg, #fff3b0, #f8d068 55%, #d99522);
    border-color: transparent;
    color: #0e1e59;
    box-shadow: 0 8px 20px rgba(248, 208, 104, 0.34);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 18px;
}

.game-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px 20px;
    transition: transform 0.22s var(--bounce), border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 55px rgba(7, 10, 32, 0.62);
}

.game-card.is-ready {
    border-color: var(--border-gold);
    background: linear-gradient(155deg, rgba(248, 208, 104, 0.14), rgba(14, 30, 92, 0.86));
}

.game-card-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #22d3ee, #6366f1);
}

.accent-amber .game-card-accent-bar {
    background: linear-gradient(90deg, #fde047, #fb923c, #f43f5e);
}

.accent-violet .game-card-accent-bar {
    background: linear-gradient(90deg, #a855f7, #ec4899, #fb923c);
}

.accent-emerald .game-card-accent-bar {
    background: linear-gradient(90deg, #10b981, #22d3ee);
}

.accent-cyan .game-card-accent-bar {
    background: linear-gradient(90deg, #38bdf8, #818cf8, #fde047);
}

.accent-pink .game-card-accent-bar {
    background: linear-gradient(90deg, #f472b6, #fbbf24);
}

.game-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.game-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    background: rgba(148, 163, 255, 0.13);
    border: 1px solid var(--border-subtle);
}

.accent-amber .game-card-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(249, 115, 22, 0.22));
    border-color: var(--border-gold);
}

.status-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
}

.status-ready {
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.55);
    color: #6ee7b7;
}

.status-soon {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.42);
    color: #e9d5ff;
}

.game-card-title {
    font-size: 1.24rem;
    line-height: 1.2;
    color: var(--text-main);
}

.game-card-summary {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
}

.game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-card-footer {
    margin-top: 6px;
}

.hub-info-banner {
    border-color: var(--border-cyan);
    background: linear-gradient(145deg, rgba(0, 194, 255, 0.18), rgba(124, 58, 237, 0.24), rgba(14, 30, 92, 0.88));
}

.hub-info-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Vista previa Próximamente */
.preview-card {
    position: relative;
    overflow: hidden;
    max-width: 760px;
    width: 100%;
    margin: 6px auto 0;
    padding: 28px 24px;
}

.preview-card h1 {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.45rem);
    margin: 12px 0 10px;
    line-height: 1.15;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    background: rgba(148, 163, 255, 0.15);
    border: 1px solid var(--border-cyan);
}

.preview-box {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(148, 163, 255, 0.08);
    border: 1px solid var(--border-subtle);
}

.room-pill {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    padding: 7px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.22));
    border: 1px solid var(--border-cyan);
    color: #a5f3fc;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.view {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeSlideIn 0.3s var(--bounce);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero */
.hero {
    text-align: center;
    padding: 8px 4px 6px;
}

.hero h1 {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 5.8vw, 3.05rem);
    margin: 14px 0 8px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    margin: 0 auto;
    max-width: 560px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.text-gold {
    background: linear-gradient(95deg, #fff5be, #f8d068 55%, #e6a82e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Badges y pills */
.badge-gold,
.badge-subtle,
.badge-danger,
.invite-badge,
.pill-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 13px;
    border-radius: 999px;
}

.badge-gold {
    background: linear-gradient(135deg, rgba(14, 30, 92, 0.62), rgba(248, 208, 104, 0.28));
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-subtle {
    background: rgba(148, 163, 255, 0.13);
    border: 1px solid var(--border-subtle);
    color: #dbeafe;
}

.badge-danger {
    background: var(--crimson-soft);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fda4af;
}

.pill-count {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(99, 102, 241, 0.26));
    border: 1px solid var(--border-cyan);
    color: #a5f3fc;
}

/* Tarjetas */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.card h2, .card h3 {
    margin: 0;
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.01em;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.card-entry {
    max-width: 530px;
    width: 100%;
    margin: 0 auto;
    border-color: rgba(168, 85, 247, 0.42);
    background: linear-gradient(165deg, rgba(22, 46, 128, 0.86), rgba(15, 28, 82, 0.92));
}

.card-invite {
    max-width: 530px;
    width: 100%;
    margin: 0 auto;
    border-color: var(--border-cyan);
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.2), rgba(124, 58, 237, 0.24), rgba(15, 28, 82, 0.92));
}

.invite-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.invite-badge {
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}

.invite-code {
    font-family: monospace;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    color: #fde68a;
}

/* Tabs */
.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    border-radius: var(--radius-md);
    background: rgba(10, 13, 35, 0.55);
    border: 1px solid var(--border-subtle);
    margin-bottom: 18px;
}

.tab {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.94rem;
    padding: 11px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab.active {
    background: linear-gradient(135deg, #fff3b0, #f8d068 55%, #d99522);
    color: #0e1e59;
    box-shadow: 0 6px 18px rgba(248, 208, 104, 0.35);
}

/* Formularios */
.stack-md {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.field label,
.field-row label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #e2e8f0;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    background: rgba(148, 163, 255, 0.07);
    border: 1px solid var(--border-subtle);
}

input[type="text"],
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(148, 163, 255, 0.24);
    background: rgba(10, 13, 36, 0.8);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:focus,
select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22);
}

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

/* Selector de avatar */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 7px;
}

.avatar-option {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    font-size: 1.38rem;
    border-radius: 14px;
    border: 1.5px solid var(--border-subtle);
    background: rgba(148, 163, 255, 0.08);
    cursor: pointer;
    transition: transform 0.18s var(--bounce), border-color 0.16s ease, background 0.16s ease;
}

.avatar-option:hover {
    transform: translateY(-3px) scale(1.06);
    background: rgba(34, 211, 238, 0.16);
    border-color: var(--border-cyan);
}

.avatar-option.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(249, 115, 22, 0.25));
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
    transform: scale(1.06);
}

/* Botones dinámicos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.94rem;
    padding: 11px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.16s var(--bounce), filter 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

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

.btn:active:not(:disabled) {
    transform: scale(0.96);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-lg {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #fff4b8 0%, #f8d068 48%, #d99522 100%);
    color: #0e1e59;
    box-shadow: 0 10px 26px rgba(248, 208, 104, 0.36);
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(248, 208, 104, 0.48);
}

.btn-gold {
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.26), rgba(124, 58, 237, 0.34));
    border: 1.5px solid var(--border-cyan);
    color: #ffffff;
}

.btn-gold:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.38), rgba(124, 58, 237, 0.46));
}

.btn-secondary {
    background: rgba(148, 163, 255, 0.14);
    border: 1.5px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(148, 163, 255, 0.22);
}

.btn-whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.24), rgba(16, 185, 129, 0.24));
    border: 1.5px solid rgba(37, 211, 102, 0.52);
    color: #86efac;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.34), rgba(16, 185, 129, 0.34));
}

.btn-ghost {
    background: rgba(148, 163, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-main);
    border-color: var(--border-cyan);
}

.btn-link {
    background: transparent;
    color: #67e8f9;
    font-weight: 700;
    padding: 6px;
}

.btn-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

/* Cómo jugar */
.how-to {
    max-width: 530px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 20px;
    border-color: rgba(34, 211, 238, 0.28);
}

.how-to summary {
    cursor: pointer;
    font-weight: 800;
    color: #67e8f9;
    list-style: none;
}

.steps-list {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
}

.steps-list strong {
    color: var(--text-main);
}

/* Lobby y Compartir Link */
.card-share {
    border-color: var(--border-cyan);
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(139, 92, 246, 0.18), rgba(22, 27, 64, 0.92));
}

.share-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.label-sm {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a5f3fc;
    font-weight: 800;
    display: block;
}

.share-code-display {
    font-family: 'Fredoka', monospace;
    font-size: clamp(1.7rem, 5vw, 2.35rem);
    letter-spacing: 0.18em;
    color: var(--gold-light);
}

.share-link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.share-link-box input {
    font-size: 0.86rem;
    color: #e0f2fe;
}

.share-link-box .btn {
    white-space: nowrap;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.grid-lobby,
.grid-reveal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Lista de jugadores */
.player-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(148, 163, 255, 0.08);
    border: 1px solid var(--border-subtle);
}

.player-item.is-me {
    border-color: var(--border-gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(249, 115, 22, 0.1));
}

.player-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.player-avatar {
    font-size: 1.38rem;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(168, 85, 247, 0.2));
    flex-shrink: 0;
}

.player-name-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.player-name {
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-tags {
    display: flex;
    gap: 6px;
    font-size: 0.72rem;
    color: #93c5fd;
    font-weight: 600;
}

.player-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.score-chip {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.32);
    color: var(--gold-light);
}

.btn-kick {
    border: none;
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
}

.btn-kick:hover {
    background: rgba(244, 63, 94, 0.35);
}

/* Segmented buttons & Switch */
.field-label-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

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

.segmented-4 {
    grid-template-columns: repeat(4, 1fr);
}

.seg-btn {
    padding: 10px 8px;
    border-radius: 12px;
    border: 1.5px solid var(--border-subtle);
    background: rgba(148, 163, 255, 0.07);
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.16s ease;
}

.seg-btn.active {
    border-color: var(--cyan);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(99, 102, 241, 0.32));
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 211, 238, 0.25);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: rgba(148, 163, 255, 0.22);
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s;
}

.slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: white;
    transition: 0.2s var(--bounce);
}

.switch input:checked + .slider {
    background: linear-gradient(135deg, #22d3ee, #6366f1);
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

/* Ronda activa y Carta Secreta */
.round-status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.timer-pill {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 7px 15px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.24));
    border: 1px solid var(--border-cyan);
    color: #e0f2fe;
    font-size: 0.94rem;
}

.timer-pill.urgent {
    background: var(--crimson-soft);
    border-color: rgba(244, 63, 94, 0.6);
    color: #fda4af;
    animation: pulseSoft 0.9s infinite;
}

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

.secret-card-wrap {
    max-width: 530px;
    width: 100%;
    margin: 0 auto;
}

.secret-card {
    width: 100%;
    min-height: 255px;
    border-radius: 26px;
    padding: 28px 22px;
    border: 2px solid var(--border-cyan);
    background: linear-gradient(145deg, rgba(35, 45, 108, 0.95), rgba(19, 23, 56, 0.98));
    color: var(--text-main);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 55px rgba(8, 12, 36, 0.55);
    transition: transform 0.2s var(--bounce), border-color 0.2s ease, box-shadow 0.2s ease;
}

.secret-card:hover {
    transform: translateY(-3px) scale(1.01);
}

.secret-card.revealed-faithful {
    border-color: var(--gold);
    background: radial-gradient(circle at top, rgba(251, 191, 36, 0.3), rgba(34, 211, 238, 0.14) 48%, rgba(18, 24, 58, 0.98) 80%);
    box-shadow: 0 24px 60px rgba(251, 191, 36, 0.24);
}

.secret-card.revealed-impostor {
    border-color: var(--crimson);
    background: radial-gradient(circle at top, rgba(244, 63, 94, 0.34), rgba(168, 85, 247, 0.16) 52%, rgba(24, 12, 36, 0.98) 82%);
    box-shadow: 0 24px 60px rgba(244, 63, 94, 0.3);
}

.secret-lock-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 10px;
}

.secret-card-cover h3 {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    color: #a5f3fc;
    margin: 0 0 6px;
}

.secret-card-cover p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.tap-pill {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    color: #0b1024;
    font-size: 0.84rem;
    font-weight: 800;
}

.secret-role-kicker {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.secret-character-name {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.9rem, 6.2vw, 2.65rem);
    line-height: 1.12;
    margin: 4px 0 10px;
    color: var(--gold-light);
}

.secret-impostor-title {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.7rem, 5.8vw, 2.3rem);
    margin: 6px 0 10px;
    color: #fda4af;
}

.secret-hint-pill {
    display: inline-block;
    margin: 6px 0 12px;
    padding: 8px 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    font-size: 0.9rem;
    color: #fde68a;
}

.secret-tip {
    margin: 8px 0 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 400px;
}

.hide-reminder {
    font-size: 0.78rem;
    color: #93c5fd;
    font-weight: 600;
}

/* Orden de turnos */
.speaking-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.speaking-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 14px;
    background: rgba(148, 163, 255, 0.08);
    border: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    font-weight: 700;
}

.speaking-chip.first {
    border-color: var(--border-gold);
    background: rgba(251, 191, 36, 0.18);
    color: var(--gold-light);
}

.speaking-chip.active-turn {
    border-color: var(--cyan);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(99, 102, 241, 0.28));
    color: #fff;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25);
}

.speaking-chip.done {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.14);
    color: #a7f3d0;
}

.speaking-num {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.74rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

/* Comentarios / Pistas en línea */
.card-clues {
    border-color: var(--border-cyan);
}

.clue-turn-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(148, 163, 255, 0.09);
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
}

.clue-turn-banner.my-turn {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(249, 115, 22, 0.16));
}

.clue-turn-banner.completed {
    border-color: rgba(16, 185, 129, 0.48);
    background: rgba(16, 185, 129, 0.16);
}

.clue-turn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.clue-turn-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.turn-countdown {
    font-weight: 800;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    padding: 6px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(249, 115, 22, 0.24));
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
}

.turn-countdown.urgent {
    background: var(--crimson-soft);
    border-color: rgba(244, 63, 94, 0.6);
    color: #fda4af;
    animation: pulseSoft 0.9s infinite;
}

.clue-composer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.clue-input-row {
    display: flex;
    gap: 8px;
}

.clue-input-row .btn {
    white-space: nowrap;
}

.clue-composer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.clue-status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.clue-status-chip {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(148, 163, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.clue-status-chip.sent {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.42);
    color: #6ee7b7;
}

.clues-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clue-cycle-divider {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-top: 4px;
}

.clue-bubble {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(148, 163, 255, 0.08);
    border: 1px solid var(--border-subtle);
}

.clue-bubble.is-mine {
    border-color: var(--border-gold);
    background: rgba(251, 191, 36, 0.12);
}

.clue-bubble.timed-out {
    opacity: 0.65;
}

.clue-bubble-body {
    flex: 1;
    min-width: 0;
}

.clue-author {
    font-size: 0.82rem;
    font-weight: 800;
    color: #67e8f9;
    margin-bottom: 2px;
}

.clue-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
    word-break: break-word;
}

.clue-text.empty {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.clues-empty {
    text-align: center;
    padding: 14px 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Votación */
.card-impostor-guess {
    border-color: rgba(244, 63, 94, 0.55);
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.2), rgba(168, 85, 247, 0.18), rgba(22, 20, 52, 0.94));
}

.voting-header {
    text-align: center;
    margin-bottom: 14px;
}

.voting-header p {
    margin: 6px 0 0;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 255, 0.14);
    overflow: hidden;
    margin-bottom: 18px;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #a855f7, #fbbf24);
    transition: width 0.25s ease;
}

.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.vote-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 18px;
    border: 1.5px solid var(--border-subtle);
    background: rgba(148, 163, 255, 0.08);
    color: var(--text-main);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s var(--bounce);
}

.vote-card:hover:not(:disabled) {
    border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.16);
    transform: translateY(-3px);
}

.vote-card.selected {
    border-color: var(--crimson);
    background: var(--crimson-soft);
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.35);
    transform: scale(1.02);
}

.vote-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vote-avatar {
    font-size: 2rem;
}

.vote-name {
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
}

.vote-status {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Resultados y Revelación */
.outcome-banner {
    text-align: center;
    padding: 26px 20px;
    border-radius: 26px;
    border: 2px solid var(--border-cyan);
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.22), rgba(139, 92, 246, 0.24), rgba(20, 26, 62, 0.95));
}

.outcome-banner.win-faithful {
    border-color: rgba(16, 185, 129, 0.58);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.28), rgba(34, 211, 238, 0.18), rgba(18, 28, 56, 0.95));
}

.outcome-banner.win-impostor {
    border-color: rgba(244, 63, 94, 0.62);
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.28), rgba(249, 115, 22, 0.2), rgba(28, 16, 44, 0.95));
}

.outcome-emoji {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 6px;
}

.outcome-banner h2 {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.6rem, 5.2vw, 2.2rem);
    margin: 0 0 6px;
}

.outcome-banner p {
    margin: 0;
    color: #e2e8f0;
}

.card-character-reveal {
    border-color: var(--border-gold);
    background: linear-gradient(155deg, rgba(251, 191, 36, 0.14), rgba(25, 31, 70, 0.9));
}

.character-big-name {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.7rem, 5.2vw, 2.3rem);
    color: var(--gold-light);
    margin: 6px 0 10px !important;
}

.char-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.character-summary {
    margin: 0 0 14px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.verse-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(34, 211, 238, 0.12));
    border: 1px solid var(--border-gold);
    font-size: 0.88rem;
}

.verse-box strong {
    color: var(--gold-light);
}

.impostor-reveal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.impostor-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--crimson-soft);
    border: 1.5px solid rgba(244, 63, 94, 0.52);
    font-weight: 800;
    color: #fecdd3;
}

.impostor-guess-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.guess-result-pill {
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    background: rgba(148, 163, 255, 0.08);
}

.guess-result-pill.correct {
    border-color: var(--border-gold);
    background: rgba(251, 191, 36, 0.18);
    color: var(--gold-light);
}

.guess-result-pill.wrong {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
}

.subheading {
    margin: 18px 0 10px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93c5fd;
}

.vote-breakdown,
.leaderboard {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vote-row,
.leader-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 12px;
    background: rgba(148, 163, 255, 0.08);
    font-size: 0.9rem;
}

.leader-rank {
    font-weight: 800;
    color: var(--cyan);
    width: 26px;
}

.points-delta {
    color: #6ee7b7;
    font-weight: 800;
    font-size: 0.82rem;
    margin-right: 6px;
}

/* Host panel & avisos */
.host-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-color: rgba(168, 85, 247, 0.32);
}

.waiting-note {
    text-align: center;
    color: #c7d2fe;
    font-weight: 700;
}

/* Utilidades */
.muted {
    color: var(--text-muted);
}

.small {
    font-size: 0.82rem;
}

.block {
    display: block;
}

.text-center {
    text-align: center;
}

/* Footer */
.footer {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.footer-author {
    color: var(--gold-light);
    font-weight: 800;
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 400px);
    pointer-events: none;
}

.toast {
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #212b63, #171e46);
    border: 1.5px solid var(--border-cyan);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    animation: fadeSlideIn 0.2s ease;
}

.toast.error {
    border-color: rgba(244, 63, 94, 0.72);
    background: #361529;
    color: #fecdd3;
}

/* Barra flotante de Voz y Chat */
.floating-dock {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-fab,
.voice-fab,
.voice-quick-mic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.94rem;
    cursor: pointer;
    transition: transform 0.18s var(--bounce), box-shadow 0.18s ease, background 0.18s ease;
}

.chat-fab {
    border: 1.5px solid var(--border-cyan);
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    color: #0b1024;
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.36);
}

.voice-fab {
    border: 1.5px solid rgba(16, 185, 129, 0.55);
    background: linear-gradient(135deg, #1a2854, #142246);
    color: #6ee7b7;
    box-shadow: 0 14px 34px rgba(7, 12, 34, 0.5);
}

.voice-fab.connected {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-color: #a7f3d0;
    color: #071923;
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.42);
}

.voice-quick-mic {
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 1.2rem;
    border: 1.5px solid rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.25);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.voice-quick-mic.is-muted {
    border-color: rgba(244, 63, 94, 0.72);
    background: rgba(244, 63, 94, 0.32);
    color: #fecdd3;
}

.voice-quick-mic.is-speaking {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45), 0 12px 28px rgba(16, 185, 129, 0.35);
}

.chat-fab:hover,
.voice-fab:hover,
.voice-quick-mic:hover {
    transform: translateY(-3px) scale(1.03);
}

.chat-fab.has-unread {
    background: linear-gradient(135deg, #fde047, #fb923c, #f43f5e);
    border-color: #fde68a;
    animation: pulseSoft 1.3s infinite;
}

.chat-unread-badge,
.voice-count-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #0e1129;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.voice-drawer {
    position: fixed;
    right: 18px;
    bottom: 80px;
    z-index: 95;
    width: min(94vw, 390px);
    max-height: min(70vh, 520px);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    border: 1.5px solid rgba(16, 185, 129, 0.52);
    background: rgba(16, 22, 54, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(5, 8, 28, 0.68);
    overflow: hidden;
    animation: fadeSlideIn 0.22s var(--bounce);
}

.voice-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 211, 238, 0.14));
}

.voice-drawer-header strong {
    color: #6ee7b7;
    font-size: 0.98rem;
}

.voice-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.voice-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.voice-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.voice-controls-row .btn {
    flex: 1;
}

.btn-danger-soft {
    background: rgba(244, 63, 94, 0.2);
    border: 1.5px solid rgba(244, 63, 94, 0.45);
    color: #fecdd3;
}

.btn-danger-soft:hover:not(:disabled) {
    background: rgba(244, 63, 94, 0.34);
}

.btn-mic-muted {
    background: rgba(244, 63, 94, 0.24) !important;
    border-color: rgba(244, 63, 94, 0.6) !important;
    color: #fecdd3 !important;
}

.voice-list-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voice-participants-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voice-empty {
    text-align: center;
    padding: 14px 10px;
    font-size: 0.86rem;
    color: var(--text-muted);
    background: rgba(148, 163, 255, 0.06);
    border-radius: 12px;
}

.voice-peer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 14px;
    background: rgba(148, 163, 255, 0.09);
    border: 1.5px solid var(--border-subtle);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.voice-peer-row.is-speaking {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.14);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.24);
}

.voice-peer-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.voice-peer-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.voice-peer-name {
    font-weight: 800;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voice-peer-status {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.voice-peer-row.is-speaking .voice-peer-status {
    color: #6ee7b7;
}

.voice-peer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-peer-mute {
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    border-radius: 9px;
    padding: 5px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-peer-mute.muted {
    border-color: rgba(244, 63, 94, 0.5);
    background: rgba(244, 63, 94, 0.2);
    color: #fecdd3;
}

.chat-drawer {
    position: fixed;
    right: 18px;
    bottom: 80px;
    z-index: 95;
    width: min(94vw, 395px);
    height: min(68vh, 510px);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    border: 1.5px solid var(--border-cyan);
    background: rgba(18, 23, 56, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(5, 8, 28, 0.68);
    overflow: hidden;
    animation: fadeSlideIn 0.22s var(--bounce);
}

.chat-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.16));
}

.chat-drawer-header strong {
    color: #a5f3fc;
    font-size: 0.98rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-empty {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 16px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 86%;
}

.chat-msg.mine {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-msg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.chat-msg-author {
    font-weight: 800;
    color: #a5f3fc;
}

.chat-msg.mine .chat-msg-author {
    color: var(--gold-light);
}

.chat-msg-bubble {
    padding: 9px 13px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    background: rgba(148, 163, 255, 0.13);
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    color: var(--text-main);
    word-break: break-word;
    line-height: 1.4;
}

.chat-msg.mine .chat-msg-bubble {
    border-top-left-radius: 16px;
    border-top-right-radius: 4px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(249, 115, 22, 0.2));
    border-color: var(--border-gold);
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(10, 13, 35, 0.84);
}

.chat-form input[type="text"] {
    padding: 10px 12px;
    font-size: 0.92rem;
    min-width: 0;
}

.chat-form .btn {
    padding: 10px 14px;
    white-space: nowrap;
}

.btn-icon-mic {
    padding: 9px 11px !important;
    font-size: 1.08rem;
    background: rgba(244, 63, 94, 0.2);
    border: 1.5px solid rgba(244, 63, 94, 0.45);
    color: #fecdd3;
    flex-shrink: 0;
}

.btn-icon-mic:hover:not(:disabled) {
    background: rgba(244, 63, 94, 0.34);
}

.chat-record-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1.5px solid rgba(244, 63, 94, 0.55);
    background: rgba(54, 17, 36, 0.95);
}

.record-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    color: #fecdd3;
}

.record-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--crimson);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.95);
    animation: pulseSoft 0.85s infinite;
}

.record-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-audio-bubble {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    max-width: 100%;
}

.chat-audio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--gold-light);
    font-weight: 800;
}

.chat-audio-player {
    width: 100%;
    height: 34px;
    border-radius: 8px;
}

/* Responsive móvil */
@media (max-width: 740px) {
    .grid-lobby,
    .grid-reveal,
    .btn-row,
    .share-buttons {
        grid-template-columns: 1fr;
    }

    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .segmented-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .share-link-box,
    .clue-input-row {
        flex-direction: column;
    }

    .clue-turn-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .card {
        padding: 16px;
    }

    .brand-text small {
        display: none;
    }

    .chat-drawer,
    .voice-drawer {
        right: 3vw;
        left: 3vw;
        width: 94vw;
        bottom: 76px;
        height: min(65vh, 465px);
    }

    .floating-dock {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .chat-fab,
    .voice-fab {
        padding: 11px 14px;
        font-size: 0.88rem;
    }

    .hub-info-grid {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==================== TRIVIA BÍBLICA (PANTALLA GIGANTE + CELULAR) ==================== */
.trivia-shell {
    max-width: 1100px;
}

.brand-icon-violet {
    background: linear-gradient(135deg, #a855f7, #ec4899 55%, #fbbf24);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.42);
}

.trivia-qr-hero {
    display: grid;
    grid-template-columns: 1.3fr auto;
    gap: 24px;
    align-items: center;
    border-color: var(--border-cyan);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.14), rgba(20, 26, 62, 0.94));
}

.trivia-event-title {
    font-size: clamp(1.45rem, 3.6vw, 2rem);
    margin: 4px 0 12px !important;
    color: var(--text-main);
}

.trivia-big-code-wrap {
    display: inline-flex;
    flex-direction: column;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(10, 13, 35, 0.6);
    border: 1.5px solid var(--border-gold);
}

.trivia-big-code {
    font-family: 'Fredoka', monospace;
    font-size: clamp(2.1rem, 6vw, 3.2rem);
    letter-spacing: 0.2em;
    line-height: 1.05;
    color: var(--gold-light);
}

.trivia-qr-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-frame {
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.qr-frame img {
    display: block;
    border-radius: 10px;
}

.trivia-player-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.trivia-player-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(148, 163, 255, 0.13);
    border: 1px solid var(--border-subtle);
    font-weight: 700;
    font-size: 0.88rem;
}

.chip-kick {
    border: none;
    background: rgba(244, 63, 94, 0.22);
    color: #fecdd3;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 800;
    line-height: 1;
    padding: 0;
}

.trivia-timer-big {
    font-size: 1.15rem;
    padding: 8px 18px;
}

.trivia-question-stage {
    text-align: center;
    padding: 28px 24px;
    border-color: var(--border-gold);
    background: linear-gradient(155deg, rgba(35, 44, 104, 0.92), rgba(18, 23, 56, 0.96));
}

.trivia-question-big {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 4.2vw, 2.55rem);
    line-height: 1.22;
    margin: 0 !important;
    color: #fff;
}

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

.trivia-opt-card {
    border-radius: 20px;
    padding: 20px 18px;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    font-family: inherit;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
    transition: transform 0.16s var(--bounce), opacity 0.2s ease, box-shadow 0.2s ease;
}

.trivia-opt-btn {
    cursor: pointer;
    min-height: 108px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.trivia-opt-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    filter: brightness(1.08);
}

.trivia-opt-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.opt-red {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
}

.opt-blue {
    background: linear-gradient(135deg, #2563eb, #0284c7);
}

.opt-amber {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.opt-green {
    background: linear-gradient(135deg, #059669, #10b981);
}

.trivia-opt-card.is-correct {
    border-color: #fde047;
    box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.55), 0 18px 36px rgba(16, 185, 129, 0.35);
    transform: scale(1.02);
}

.trivia-opt-card.is-dimmed {
    opacity: 0.38;
    filter: grayscale(0.25);
}

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

.opt-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 800;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.opt-text {
    font-weight: 800;
    font-size: clamp(1rem, 2.4vw, 1.32rem);
    line-height: 1.25;
}

.opt-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.trivia-player-q-card {
    text-align: center;
    border-color: var(--border-cyan);
}

.player-state-card {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.trivia-points-gain {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.7rem;
    margin: 4px 0;
    color: var(--gold-light);
}

/* Podio 1-2-3 */
.podium-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    padding: 16px 10px 4px;
}

.podium-col {
    flex: 1;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.podium-avatar {
    font-size: 2.4rem;
}

.podium-name {
    font-weight: 800;
    font-size: 1rem;
    word-break: break-word;
}

.podium-score {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--gold-light);
}

.podium-pillar {
    width: 100%;
    border-radius: 18px 18px 10px 10px;
    display: grid;
    place-items: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0e1129;
}

.podium-first .podium-pillar {
    height: 128px;
    background: linear-gradient(180deg, #fde047, #f59e0b);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.4);
}

.podium-second .podium-pillar {
    height: 96px;
    background: linear-gradient(180deg, #e2e8f0, #94a3b8);
}

.podium-third .podium-pillar {
    height: 76px;
    background: linear-gradient(180deg, #fdba74, #c2410c);
    color: #fff;
}

@media (max-width: 740px) {
    .trivia-qr-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .trivia-options-grid {
        grid-template-columns: 1fr;
    }

    .trivia-opt-btn {
        min-height: 76px;
    }
}

/* ==================== CARRERA AL MONTE SINAÍ / MURO ==================== */
.brand-icon-emerald {
    background: linear-gradient(135deg, #10b981, #06b6d4 58%, #fbbf24);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.42);
}

.segmented-5 {
    grid-template-columns: repeat(5, 1fr);
}

.carrera-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.tribes-lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.tribe-lobby-card,
.tribe-rank-item,
.tribe-banner-card {
    border-width: 1.5px;
}

.tribe-amber {
    border-color: rgba(251, 191, 36, 0.52) !important;
    background: linear-gradient(155deg, rgba(251, 191, 36, 0.16), rgba(24, 30, 68, 0.92));
}

.tribe-blue {
    border-color: rgba(56, 189, 248, 0.52) !important;
    background: linear-gradient(155deg, rgba(56, 189, 248, 0.16), rgba(24, 30, 68, 0.92));
}

.tribe-emerald {
    border-color: rgba(16, 185, 129, 0.52) !important;
    background: linear-gradient(155deg, rgba(16, 185, 129, 0.16), rgba(24, 30, 68, 0.92));
}

.tribe-violet {
    border-color: rgba(168, 85, 247, 0.52) !important;
    background: linear-gradient(155deg, rgba(168, 85, 247, 0.18), rgba(24, 30, 68, 0.92));
}

.tribe-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.tribe-title {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.08rem;
}

.tribe-rank-item {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1.5px solid var(--border-subtle);
}

/* Arena visual de la Carrera (Pantalla Gigante) */
.race-arena-card {
    padding: 20px;
    border-color: var(--border-gold);
    background: linear-gradient(180deg, rgba(16, 22, 56, 0.96), rgba(25, 32, 74, 0.92));
}

.race-summit-header {
    text-align: center;
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.96rem;
    letter-spacing: 0.06em;
    color: var(--gold-light);
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.16), rgba(249, 115, 22, 0.2), rgba(251, 191, 36, 0.16));
    border: 1px dashed var(--border-gold);
    margin-bottom: 18px;
}

.race-lanes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}

.race-lane {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border-subtle);
}

.race-lane-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.race-steps-pill {
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(10, 13, 35, 0.55);
    color: var(--gold-light);
}

.race-track-vertical {
    position: relative;
    width: 100%;
    max-width: 120px;
    height: 300px;
    border-radius: 18px;
    background: rgba(8, 11, 30, 0.72);
    border: 1.5px solid rgba(148, 163, 255, 0.22);
    overflow: hidden;
}

.race-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 12px 12px 0 0;
}

.tribe-amber .race-fill {
    background-color: #f59e0b;
    background-image: linear-gradient(180deg, #fde047, #f97316);
}

.tribe-blue .race-fill {
    background-color: #0ea5e9;
    background-image: linear-gradient(180deg, #38bdf8, #2563eb);
}

.tribe-emerald .race-fill {
    background-color: #10b981;
    background-image: linear-gradient(180deg, #34d399, #059669);
}

.tribe-violet .race-fill {
    background-color: #a855f7;
    background-image: linear-gradient(180deg, #c084fc, #7c3aed);
}

.race-fill.brick-pattern {
    background-size: 28px 18px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
    background-image:
        repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.32) 0 2px, transparent 2px 18px),
        repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.26) 0 2px, transparent 2px 28px);
}

.race-climber {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.climber-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: #0f1435;
    border: 2.5px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.race-ticker-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.race-event-pill {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.38);
    color: #a7f3d0;
    animation: fadeSlideIn 0.2s ease;
}

.tribe-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tribe-big-icon {
    font-size: 2.1rem;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(10, 13, 35, 0.45);
}

.carrera-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 14px;
    font-size: 0.92rem;
    animation: fadeSlideIn 0.18s ease;
}

.carrera-feedback.is-ok {
    background: rgba(16, 185, 129, 0.24);
    border: 1.5px solid rgba(16, 185, 129, 0.6);
    color: #a7f3d0;
}

.carrera-feedback.is-bad {
    background: rgba(244, 63, 94, 0.22);
    border: 1.5px solid rgba(244, 63, 94, 0.55);
    color: #fecdd3;
}

@media (max-width: 740px) {
    .race-track-vertical {
        height: 210px;
    }

    .segmented-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== ¿QUÉ ESTOY DIBUJANDO? BÍBLICO ==================== */
.brand-icon-cyan {
    background: linear-gradient(135deg, #22d3ee, #6366f1 55%, #fde047);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.42);
}

.draw-stage-card {
    border-color: var(--border-cyan);
}

.draw-hint-bar {
    text-align: center;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(10, 13, 35, 0.55);
    border: 1px solid var(--border-subtle);
}

.masked-word {
    font-family: 'Fredoka', monospace;
    font-size: clamp(1.15rem, 3.2vw, 1.75rem);
    letter-spacing: 0.14em;
    color: var(--gold-light);
    word-break: break-word;
}

.masked-word.small-mask {
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.canvas-frame {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 2.5px solid var(--border-cyan);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.canvas-frame canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
}

.canvas-frame.touch-board canvas {
    touch-action: none;
    cursor: crosshair;
}

.canvas-frame.compact-preview {
    max-width: 520px;
    margin: 0 auto;
}

.draw-prompt-banner {
    text-align: center;
    border-color: var(--border-gold);
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.18), rgba(24, 30, 68, 0.94));
}

.draw-board-card {
    padding: 14px;
}

.draw-toolbar {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    transition: transform 0.16s var(--bounce), box-shadow 0.16s ease;
}

.color-swatch.active {
    transform: scale(1.16);
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.45);
}

.draw-tools-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brush-sizes {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brush-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border-subtle);
    background: rgba(148, 163, 255, 0.1);
    color: var(--text-main);
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
}

.brush-btn.active {
    border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.25);
    color: var(--gold-light);
}

.draw-action-btns {
    display: flex;
    gap: 8px;
}

/* ==================== BINGO BÍBLICO INTERACTIVO ==================== */
.brand-icon-pink {
    background: linear-gradient(135deg, #ec4899, #fbbf24 60%, #f97316);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.42);
}

.bingo-clue-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.bingo-alert-banner {
    animation: pulseSoft 1.2s ease-in-out 2;
}

.bingo-win-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.bingo-history-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bingo-history-pill {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(148, 163, 255, 0.12);
    border: 1px solid var(--border-subtle);
    color: #dbeafe;
}

.bingo-player-clue-box {
    border-color: var(--border-cyan);
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.14), rgba(24, 30, 68, 0.94));
}

.bingo-player-clue-text {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.38;
}

.bingo-card-shell {
    padding: 14px;
    border-color: var(--border-gold);
}

.bingo-grid {
    display: grid;
    gap: 7px;
}

.bingo-grid.size-4 {
    grid-template-columns: repeat(4, 1fr);
}

.bingo-grid.size-5 {
    grid-template-columns: repeat(5, 1fr);
}

.bingo-cell {
    aspect-ratio: 1;
    border-radius: 14px;
    border: 1.5px solid rgba(148, 163, 255, 0.25);
    background: rgba(15, 20, 52, 0.85);
    color: var(--text-main);
    font-family: inherit;
    font-weight: 800;
    font-size: clamp(0.7rem, 2.5vw, 0.92rem);
    line-height: 1.15;
    padding: 6px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    position: relative;
    transition: transform 0.14s var(--bounce), background 0.16s ease, border-color 0.16s ease;
}

.bingo-cell:active {
    transform: scale(0.94);
}

.bingo-cell.is-marked {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.34), rgba(249, 115, 22, 0.32));
    color: #fff;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.32);
}

.bingo-cell.is-marked::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.72rem;
    color: var(--gold-light);
    font-weight: 900;
}

.bingo-cell.is-free {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(34, 211, 238, 0.28));
    border-color: rgba(16, 185, 129, 0.65);
    cursor: default;
}

.bingo-claim-btn.is-ready-claim {
    animation: pulseSoft 0.95s infinite;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.45), 0 14px 36px rgba(249, 115, 22, 0.5);
}
