/* SNT Group — TV Queue Display Board */
:root {
    --qms-disp-bg: #0a1628;
    --qms-disp-surface: #111f38;
    --qms-disp-card: #162544;
    --qms-disp-border: rgba(255, 255, 255, 0.1);
    --qms-disp-text: #f8fafc;
    --qms-disp-muted: #94a3b8;
    --qms-disp-primary: #2563eb;
    --qms-disp-accent: #f59e0b;
    --qms-disp-live: #22c55e;
    --qms-disp-hero: #1d4ed8;
}

body.qms-display-body {
    background: var(--qms-disp-bg) !important;
    color: var(--qms-disp-text);
    margin: 0;
    overflow-x: hidden;
}

body.qms-display-body .loader {
    background: var(--qms-disp-bg);
}

body.qms-display-body .panel.panel-primary {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

body.qms-display-body .panel-heading {
    display: none;
}

body.qms-display-body .panel-body,
body.qms-display-body .panel-footer {
    border: none;
    background: transparent;
    padding: 0;
}

.qms-disp {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(245, 158, 11, 0.12), transparent 50%),
        var(--qms-disp-bg);
}

.qms-disp__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid var(--qms-disp-border);
    backdrop-filter: blur(8px);
}

.qms-disp__logo img {
    height: 52px;
    width: auto;
    display: block;
}

.qms-disp__ticker {
    overflow: hidden;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.25);
    padding: 10px 0;
}

.qms-disp__ticker marquee,
.qms-disp__ticker-text {
    font-size: clamp(18px, 2.2vw, 34px);
    font-weight: 700;
    color: #dbeafe;
    letter-spacing: 0.02em;
}

.qms-disp__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.qms-disp-clock {
    font-size: clamp(16px, 1.6vw, 26px);
    font-weight: 700;
    color: var(--qms-disp-text);
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--qms-disp-card);
    border: 1px solid var(--qms-disp-border);
    white-space: nowrap;
}

.qms-disp__fs {
    width: 44px;
    height: 44px;
    border: 1px solid var(--qms-disp-border);
    border-radius: 10px;
    background: var(--qms-disp-card);
    color: var(--qms-disp-text);
    cursor: pointer;
    font-size: 18px;
}

.qms-disp__fs:hover {
    background: var(--qms-disp-primary);
    border-color: var(--qms-disp-primary);
}

.qms-disp__body {
    flex: 1;
    padding: 16px 18px 10px;
}

.qms-disp__stage {
    min-height: calc(100vh - 140px);
}

.qms-disp__footer {
    padding: 8px 22px 12px;
    font-size: 12px;
    color: var(--qms-disp-muted);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--qms-disp-border);
}

/* ===== Display 1 — Sequential ===== */
.qms-disp-seq {
    display: grid;
    grid-template-columns: minmax(280px, 34%) 1fr;
    gap: 18px;
    min-height: calc(100vh - 160px);
}

@media (max-width: 900px) {
    .qms-disp-seq {
        grid-template-columns: 1fr;
    }
}

.qms-disp-waiting {
    background: var(--qms-disp-surface);
    border: 1px solid var(--qms-disp-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.qms-disp-waiting__head {
    display: grid;
    grid-template-columns: 56px 1fr 1fr;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(37, 99, 235, 0.2);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bfdbfe;
}

.qms-disp-wait-item {
    display: grid;
    grid-template-columns: 56px 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--qms-disp-border);
}

.qms-disp-wait-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.qms-disp-wait-pos {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qms-disp-card);
    font-weight: 800;
    color: var(--qms-disp-accent);
}

.qms-disp-wait-token {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    line-height: 1;
}

.qms-disp-wait-counter {
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 700;
    color: #93c5fd;
}

.qms-disp-hero {
    background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 45%, #2563eb 100%);
    border-radius: 22px;
    border: 1px solid rgba(147, 197, 253, 0.35);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}

.qms-disp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.qms-disp-hero__label {
    font-size: clamp(20px, 2.5vw, 36px);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #dbeafe;
    margin-bottom: 12px;
}

.qms-disp-hero__token {
    font-size: clamp(80px, 14vw, 200px);
    font-weight: 900;
    line-height: 0.95;
    color: #fff;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    margin: 8px 0 20px;
}

.qms-disp-hero__token.blink {
    animation: qms-disp-blink 1.2s ease-in-out infinite;
}

@keyframes qms-disp-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.03); }
}

.qms-disp-hero__counter-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qms-disp-hero__arrow {
    font-size: clamp(28px, 3vw, 48px);
    color: var(--qms-disp-accent);
    font-weight: 900;
}

.qms-disp-hero__counter {
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 900;
    color: #fff;
}

/* ===== Display 3/4 — Column board ===== */
.qms-disp-board-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
}

.qms-disp-board {
    display: flex;
    gap: 10px;
    min-width: min-content;
    align-items: stretch;
}

.qms-disp-board__lane {
    flex: 1 1 0;
    min-width: 130px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qms-disp-board__lane--labels {
    flex: 0 0 120px;
    min-width: 120px;
    max-width: 120px;
}

.qms-disp-board__title {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: #fff;
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.qms-disp-board__cell {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    background: var(--qms-disp-card);
    border: 1px solid var(--qms-disp-border);
    color: var(--qms-disp-muted);
    font-size: 13px;
    font-weight: 700;
}

.qms-disp-board__cell--label {
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.qms-disp-board__cell--empty {
    opacity: 0.45;
    font-size: 22px;
}

.qms-disp-board__token {
    font-size: clamp(22px, 2.4vw, 36px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.qms-disp-board__cell--active {
    min-height: 110px;
    background: linear-gradient(160deg, #b45309, #f59e0b);
    border-color: #fcd34d;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
    color: #fff;
}

.qms-disp-board__cell--active .qms-disp-board__token {
    font-size: clamp(32px, 3.5vw, 52px);
    color: #fff;
}

.qms-disp-board__cell--active.qms-disp-board__cell--label {
    background: linear-gradient(160deg, #15803d, #22c55e);
    border-color: #86efac;
    font-size: 13px;
}

/* ===== Display 5 — Counter grid ===== */
.qms-disp-counters {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.qms-disp-counter-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--qms-disp-border);
    background: var(--qms-disp-surface);
    min-height: 72px;
}

.qms-disp-counter-card__name {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 800;
    color: #fff;
    text-align: center;
}

.qms-disp-counter-card__token {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 900;
    color: #fff;
    background: var(--qms-disp-card);
}

.qms-disp-counter-card__token--empty {
    color: var(--qms-disp-muted);
    font-size: 28px;
}

.qms-disp-counters__head {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
    border: 1px solid var(--qms-disp-border);
}

.qms-disp-counters__head span {
    padding: 12px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    background: #0f172a;
    color: #94a3b8;
}

.qms-disp-seq--tv {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.qms-disp-tv-counters {
    min-height: 320px;
}

@media (max-width: 900px) {
    .qms-disp-seq--tv {
        grid-template-columns: 1fr;
    }
}

.qms-disp-counters--fixed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .qms-disp-counters--fixed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.qms-disp-empty-board {
    padding: 60px 20px;
    text-align: center;
    color: var(--qms-disp-muted);
    font-size: 18px;
}

.qms-tv-link-box {
    margin-bottom: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.qms-tv-link-box__url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.qms-tv-link-box__hint {
    font-size: 13px;
    opacity: 0.9;
}

/* Legacy class compatibility */
.queue-box,
.queue2 {
    font-family: inherit !important;
}

#clock.qms-disp-clock-inline {
    margin-bottom: 12px;
}

/* ===== TV board (/tv) — reference-style 3D pro ===== */
body.snt-tv-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    background: #eef2f8 !important;
    color: #1a2340 !important;
}

html, body.snt-tv-page {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.snt-tv--pro {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
    background: #eef2f8;
    color: #1a2340;
}

.snt-tv__pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
        linear-gradient(135deg, transparent 46%, rgba(255, 183, 197, 0.35) 46%, rgba(255, 183, 197, 0.35) 52%, transparent 52%),
        linear-gradient(225deg, transparent 46%, rgba(147, 197, 253, 0.4) 46%, rgba(147, 197, 253, 0.4) 52%, transparent 52%),
        linear-gradient(315deg, transparent 46%, rgba(196, 181, 253, 0.35) 46%, rgba(196, 181, 253, 0.35) 52%, transparent 52%),
        linear-gradient(45deg, transparent 46%, rgba(167, 243, 208, 0.3) 46%, rgba(167, 243, 208, 0.3) 52%, transparent 52%);
    background-size: 120px 120px;
}

.snt-tv--pro > *:not(.snt-tv__pattern) {
    position: relative;
    z-index: 1;
}

/* 3D text */
.snt-tv-t3d {
    text-shadow:
        0 1px 0 #cbd5e1,
        0 2px 0 #b8c5d6,
        0 3px 0 #a3b2c7,
        0 4px 0 #8e9fb8,
        0 6px 14px rgba(15, 23, 42, 0.35);
}

.snt-tv-t3d-light {
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 0 rgba(255, 255, 255, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.45),
        0 8px 16px rgba(0, 0, 0, 0.25);
}

/* Title bar */
.snt-tv__titlebar {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 4px solid #1d4ed8;
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.15);
}

.snt-tv__titlebar::before {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 40%, #1d4ed8 60%, #0f172a 100%);
}

.snt-tv__titlebar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    padding: 10px 20px 10px 10px;
    box-sizing: border-box;
}

.snt-tv__title-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    object-fit: contain;
    margin-left: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.snt-tv__title-main {
    margin: 0;
    flex-shrink: 0;
    font-size: clamp(17px, 1.75vw, 26px);
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #0c1e4a;
    white-space: nowrap;
    text-transform: uppercase;
}

.snt-tv__title-sep {
    color: #64748b;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.snt-tv__title-sub {
    font-size: clamp(12px, 1.15vw, 15px);
    font-weight: 800;
    color: #15803d;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    text-shadow:
        0 1px 0 #bbf7d0,
        0 2px 0 #86efac,
        0 3px 6px rgba(21, 128, 61, 0.25);
}

.snt-tv__title-spacer {
    flex: 1;
    min-width: 8px;
}

.snt-tv__clock-mini {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: linear-gradient(160deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 0 #1e3a8a, 0 4px 12px rgba(29, 78, 216, 0.3);
    white-space: nowrap;
}

.snt-tv__clock-mini-time {
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 900;
    color: #fff;
}

.snt-tv__clock-mini-sep {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.snt-tv__clock-mini-date {
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Notice — full width blue bar, no left gap */
.snt-tv__notice-line {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #1e3a8a 100%);
    border-top: 1px solid #3b82f6;
    overflow: hidden;
}

.snt-tv__notice-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    padding: 8px 0;
    animation: snt-notice-scroll 35s linear infinite;
}

.snt-tv__notice-text {
    display: inline-block;
    padding: 0 48px;
    font-size: clamp(13px, 1.35vw, 17px);
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

@keyframes snt-notice-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Body split */
.snt-tv__body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 4px;
}

.snt-tv__queue {
    display: flex;
    flex-direction: column;
    padding: 20px 16px 20px 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    border-right: 2px solid rgba(29, 78, 216, 0.15);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.06);
}

.snt-tv__queue-head {
    display: flex;
    justify-content: space-between;
    padding: 0 8px 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.snt-tv__queue-list,
.qms-tv-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

/* Queue rows — colorful 3D cards */
.qms-tv-row {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 2px solid transparent;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.1);
    min-height: 0;
    transition: transform 0.25s, box-shadow 0.25s;
}

.qms-tv-row[data-slot="1"] {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #fff 100%);
    border-color: #6ee7b7;
    box-shadow: 0 4px 0 #34d399, 0 10px 24px rgba(16, 185, 129, 0.2);
}
.qms-tv-row[data-slot="2"] {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #fff 100%);
    border-color: #93c5fd;
    box-shadow: 0 4px 0 #3b82f6, 0 10px 24px rgba(59, 130, 246, 0.2);
}
.qms-tv-row[data-slot="3"] {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #fff 100%);
    border-color: #c4b5fd;
    box-shadow: 0 4px 0 #8b5cf6, 0 10px 24px rgba(139, 92, 246, 0.18);
}
.qms-tv-row[data-slot="4"] {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fff 100%);
    border-color: #fdba74;
    box-shadow: 0 4px 0 #f97316, 0 10px 24px rgba(249, 115, 22, 0.18);
}

.qms-tv-row--idle { opacity: 0.55; }

.qms-tv-row--live {
    transform: scale(1.02);
    opacity: 1 !important;
    box-shadow: 0 4px 0 #16a34a, 0 14px 32px rgba(22, 163, 74, 0.35) !important;
    border-color: #22c55e !important;
}

.qms-tv-row__token-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.qms-tv-row__mini {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.qms-tv-row__token {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 900;
    line-height: 1;
    color: #0f172a;
    letter-spacing: 0.04em;
}

.qms-tv-row--idle .qms-tv-row__token { color: #94a3b8; }
.qms-tv-row--live .qms-tv-row__token { color: #1d4ed8; }

.qms-tv-row__slab {
    flex-shrink: 0;
    width: clamp(90px, 12vw, 130px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 12px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    box-shadow:
        0 4px 0 #1e40af,
        0 8px 20px rgba(37, 99, 235, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.qms-tv-row[data-slot="1"] .qms-tv-row__slab { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 0 #047857, 0 8px 16px rgba(5,150,105,0.4); }
.qms-tv-row[data-slot="2"] .qms-tv-row__slab { background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 4px 0 #1e40af, 0 8px 16px rgba(37,99,235,0.4); }
.qms-tv-row[data-slot="3"] .qms-tv-row__slab { background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 4px 0 #6d28d9, 0 8px 16px rgba(124,58,237,0.4); }
.qms-tv-row[data-slot="4"] .qms-tv-row__slab { background: linear-gradient(135deg, #ea580c, #f59e0b); box-shadow: 0 4px 0 #c2410c, 0 8px 16px rgba(234,88,12,0.4); }

.qms-tv-row--live .qms-tv-row__slab {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    box-shadow: 0 4px 0 #15803d, 0 10px 20px rgba(22,163,74,0.5) !important;
}

.qms-tv-row__slab .qms-tv-row__mini { color: rgba(255, 255, 255, 0.85); }

.qms-tv-row__num {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Right stage */
.snt-tv__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    position: relative;
    min-height: 0;
}

/* Call panel */
.snt-tv__call-panel {
    text-align: center;
    width: 100%;
    max-width: 720px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(241,245,249,0.9) 100%);
    border: 2px solid #e2e8f0;
    box-shadow:
        0 8px 0 #cbd5e1,
        0 20px 50px rgba(0, 0, 0, 0.12);
}

.snt-tv__call-kicker {
    margin: 0 0 8px;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 800;
    color: #16a34a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.snt-tv__call-label {
    margin: 0;
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #64748b;
}

.snt-tv__call-token {
    margin: 8px 0 20px;
    font-size: clamp(88px, 16vw, 200px);
    font-weight: 900;
    line-height: 0.9;
    color: #0f172a;
    letter-spacing: 0.04em;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.snt-tv__token-stage {
    position: relative;
    min-height: clamp(88px, 16vw, 200px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snt-tv__token-stage.is-glow::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 65%);
    animation: snt-tv-glow 1.2s ease-out 2;
    pointer-events: none;
}

.snt-tv__call-token.is-slide-out {
    animation: snt-tv-slide-out 0.32s ease-in forwards;
}

.snt-tv__call-token.is-slide-in {
    animation: snt-tv-slide-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.snt-tv__call-token.is-pulse {
    animation: snt-tv-flash 0.8s ease-in-out 3;
}

@keyframes snt-tv-slide-out {
    to { opacity: 0; transform: translateY(-40%) scale(0.85); }
}

@keyframes snt-tv-slide-in {
    from { opacity: 0; transform: translateY(45%) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes snt-tv-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.qms-tv-row__token.is-flip {
    animation: snt-tv-token-flip 0.85s ease;
}

.qms-tv-row--changed {
    animation: snt-tv-row-pop 0.6s ease;
}

.snt-tv__counter-slab-num.is-pop {
    animation: snt-tv-counter-pop 0.55s ease;
}

@keyframes snt-tv-token-flip {
    0% { transform: perspective(400px) rotateX(0); }
    45% { transform: perspective(400px) rotateX(-90deg); opacity: 0.3; }
    55% { transform: perspective(400px) rotateX(90deg); opacity: 0.3; }
    100% { transform: perspective(400px) rotateX(0); opacity: 1; }
}

@keyframes snt-tv-row-pop {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.04); }
}

@keyframes snt-tv-counter-pop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); color: #fef08a; }
}

@keyframes snt-tv-flash {
    50% { color: #1d4ed8; transform: scale(1.05); }
}

.snt-tv__counter-slab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: clamp(120px, 16vw, 180px);
    padding: 16px 28px 20px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #6d28d9 100%);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    box-shadow:
        0 6px 0 #1e40af,
        0 14px 36px rgba(37, 99, 235, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.snt-tv__counter-slab-label {
    font-size: clamp(12px, 1.2vw, 15px);
    font-weight: 800;
    letter-spacing: 0.14em;
    opacity: 0.9;
}

.snt-tv__counter-slab-num {
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.snt-tv__call-hint {
    margin: 16px 0 0;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 700;
    color: #475569;
}

.snt-tv__foot { display: none !important; }

.qms-tv-strip, .qms-tv-cell { display: none; }
