body.public-screen {
    min-height: 100vh;
    color: #fff;
    background:
      radial-gradient(circle at top left, rgba(242, 184, 75, 0.18), transparent 24%),
      radial-gradient(circle at top right, rgba(196, 92, 45, 0.16), transparent 28%),
      linear-gradient(160deg, #0f2438 0%, #17324d 46%, #091828 100%);
}

body.public-screen::before {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.audio-unlock-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 10, 18, 0.7);
    backdrop-filter: blur(10px);
}

.audio-unlock-overlay.is-hidden {
    display: none;
}

.audio-unlock-card {
    width: min(560px, 100%);
    border: 0;
    border-radius: 30px;
    padding: 28px 26px;
    background:
      radial-gradient(circle at top right, rgba(242, 184, 75, 0.26), transparent 28%),
      linear-gradient(145deg, rgba(255, 248, 238, 0.98), rgba(242, 232, 217, 0.95));
    color: var(--text);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
    text-align: center;
    cursor: pointer;
}

.audio-unlock-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(23, 50, 77, 0.08);
    color: var(--primary-strong);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.audio-unlock-card strong {
    display: block;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.audio-unlock-card small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
}

.public-shell {
    width: min(100%, 1800px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 16px;
}

.public-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.public-brand h1 {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 3vw, 3.1rem);
    line-height: 0.95;
}

.public-brand p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.public-top-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.public-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff0d0;
    font-weight: 800;
}

.public-pill.is-online {
    background: rgba(47, 143, 102, 0.18);
    color: #b7ffd8;
}

.public-pill.is-offline {
    background: rgba(212, 91, 71, 0.18);
    color: #ffd0c4;
}

.public-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.8fr) minmax(240px, 0.95fr);
    gap: 16px;
    align-items: stretch;
}

.public-column,
.public-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.public-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.18);
}

.public-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 10px;
}

.public-card-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.public-card-header span {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    font-size: 0.86rem;
}

.ticket-stack {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
    max-height: calc(100vh - 280px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.ticket-stack::-webkit-scrollbar {
    width: 8px;
}

.ticket-stack::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.ticket-box {
    min-height: 108px;
    border-radius: 24px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, var(--ticket-start, #fff7ec), var(--ticket-end, #f5e6d4));
    color: var(--ticket-text, var(--text));
    border: 1px solid var(--ticket-border, rgba(23, 50, 77, 0.12));
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.16);
}

.ticket-box strong {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.ticket-box.ticket-next strong::after {
    content: " · EN FILA";
    font-size: 0.68em;
    font-weight: 800;
    opacity: 0.8;
}

.ticket-box.ticket-called strong::after {
    content: " · LLAMADO";
    font-size: 0.68em;
    font-weight: 800;
    opacity: 0.8;
}

.ticket-box small {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    opacity: 0.92;
    font-weight: 700;
}

.public-video-card {
    flex: 1;
    padding: 16px;
}

.video-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    min-height: 100%;
    background: #050b12;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.video-frame::after {
    content: "";
    position: absolute;
    inset: auto 16px 16px 16px;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(5, 11, 18, 0.5));
    pointer-events: none;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 310px);
    min-height: 0;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.marquee-container {
    overflow: hidden;
    border-radius: 22px;
    padding: 18px 0;
    background: linear-gradient(90deg, rgba(196, 92, 45, 0.9), rgba(242, 184, 75, 0.9));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    font-weight: 900;
    color: #fff;
    will-change: transform;
    animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.public-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.public-callout-popup {
    background: transparent !important;
    box-shadow: none !important;
}

.public-callout {
    border-radius: 30px;
    overflow: hidden;
    background:
      radial-gradient(circle at top right, rgba(242, 184, 75, 0.24), transparent 28%),
      linear-gradient(145deg, rgba(255, 248, 238, 0.98), rgba(242, 232, 217, 0.94));
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 28px 70px rgba(8, 18, 30, 0.28);
}

.public-callout-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 22px 0;
    flex-wrap: wrap;
}

.public-callout-kicker,
.public-callout-turno {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
}

.public-callout-kicker {
    background: rgba(23, 50, 77, 0.08);
    color: var(--primary-strong);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.public-callout-turno {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-size: 1rem;
}

.public-callout-body {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 24px 24px;
}

.public-callout-pulse {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #17324d, #0f2438);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 18px 30px rgba(15, 36, 56, 0.24);
}

.public-callout-pulse span {
    position: absolute;
    inset: -10px;
    border-radius: 34px;
    border: 2px solid rgba(196, 92, 45, 0.24);
    animation: publicPulse 1.8s ease-out infinite;
}

.public-callout-content h2 {
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.public-callout-desk {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(23, 50, 77, 0.06);
}

.public-callout-desk span {
    color: var(--muted);
    font-weight: 700;
}

.public-callout-desk strong {
    color: var(--primary-strong);
    font-size: 1.4rem;
}

.public-callout-content p {
    margin: 14px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.public-callout-progress {
    height: 8px;
    margin: 0 24px 24px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(23, 50, 77, 0.08);
}

.public-callout-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 18px rgba(196, 92, 45, 0.22);
}

@keyframes publicPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

@media (max-width: 1200px) {
    .public-grid {
        grid-template-columns: 1fr;
    }

    .ticket-stack {
        max-height: none;
    }

    .video-container {
        min-height: 380px;
        aspect-ratio: auto;
    }
}

@media (max-width: 720px) {
    .public-shell {
        padding: 10px;
    }

    .public-topbar,
    .public-card,
    .public-footer {
        border-radius: 20px;
    }

    .audio-unlock-card {
        border-radius: 24px;
        padding: 22px 18px;
    }

    .ticket-box {
        min-height: 92px;
        border-radius: 18px;
        padding: 14px 12px;
    }

    .public-callout-body {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .public-callout-top {
        justify-content: center;
    }

    .public-callout-desk {
        flex-direction: column;
    }
}
