:root {
    --lb-bg: #0a1628;
    --lb-card: #132238;
    --lb-accent: #c62828;
    --lb-gold: #ffb300;
    --lb-text: #e8eef5;
    --lb-muted: #8fa3bf;
}

* { box-sizing: border-box; }

body.live-board {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(ellipse at top, #1a2f4a 0%, var(--lb-bg) 55%);
    color: var(--lb-text);
    font-family: 'Roboto', system-ui, sans-serif;
    overflow-x: hidden;
}

.lb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.lb-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.lb-brand .material-symbols-outlined { color: var(--lb-gold); font-size: 2rem; }

.lb-meta { text-align: right; font-size: .9rem; color: var(--lb-muted); }

.lb-clock { font-size: 1.5rem; font-weight: 700; color: var(--lb-text); }

.lb-hero {
    margin: 1.5rem 2rem;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #b71c1c 0%, #c62828 45%, #8e0000 100%);
    box-shadow: 0 12px 48px rgba(198,40,40,.45);
    text-align: center;
    animation: lb-pulse-glow 2.5s ease-in-out infinite;
}

.lb-hero.lb-next {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    box-shadow: 0 12px 48px rgba(21,101,192,.4);
    animation: lb-pulse-next 2s ease-in-out infinite;
}

.lb-hero.lb-spotlight {
    background: linear-gradient(135deg, #e65100 0%, #ff6f00 40%, #ef6c00 100%);
    box-shadow: 0 12px 48px rgba(255,111,0,.55);
    border: 3px solid rgba(255,235,59,.6);
}

.lb-hero.lb-slaughter {
    animation: lb-pulse-glow 2.5s ease-in-out infinite;
}

.lb-hero.lb-shake {
    animation: lb-shake-vibrate 0.55s ease-in-out infinite;
}

.lb-hero-shareholders { margin-top: 1.25rem; }

.lb-hero-master-label {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .75;
    margin-bottom: .25rem;
}

.lb-hero-master {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.lb-hero-others {
    margin-top: .65rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem .75rem;
    font-size: 1rem;
    opacity: .88;
}

.lb-hero-others span::before {
    content: '· ';
    opacity: .5;
}

.lb-hero-others span:first-child::before { content: ''; }

.lb-item-body { flex: 1; min-width: 0; }

.lb-item-master {
    font-weight: 700;
    font-size: 1rem;
    margin-top: .15rem;
    color: var(--lb-text);
}

.lb-master-tag {
    display: inline-block;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: rgba(255, 193, 7, .25);
    color: #ffc107;
    padding: .1rem .35rem;
    border-radius: 4px;
    margin-right: .35rem;
    vertical-align: middle;
}

.lb-item-others {
    font-size: .8rem;
    color: var(--lb-muted);
    margin-top: .1rem;
}

.lb-item-others span + span::before {
    content: ' · ';
}

.lb-hero-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    opacity: .9;
    margin-bottom: .5rem;
}

.lb-hero-code {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.lb-hero-queue {
    font-size: 1.5rem;
    margin-top: .5rem;
    opacity: .95;
}

.lb-hero-empty {
    font-size: 1.25rem;
    opacity: .8;
}

.lb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 0 2rem 2rem;
}

.lb-column {
    background: var(--lb-card);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
    min-height: 200px;
}

.lb-column-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1rem;
    font-weight: 600;
    font-size: .95rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.15);
}

.lb-column-head .material-symbols-outlined { font-size: 22px; color: var(--lb-gold); }

.lb-column-count {
    margin-left: auto;
    background: rgba(255,255,255,.1);
    padding: .15rem .55rem;
    border-radius: 20px;
    font-size: .8rem;
}

.lb-items {
    padding: .75rem;
    max-height: 320px;
    overflow-y: auto;
}

.lb-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    margin-bottom: .5rem;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    animation: lb-slide-in .4s ease-out;
}

.lb-item:last-child { margin-bottom: 0; }

.lb-item-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: rgba(255,179,0,.2);
    color: var(--lb-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.lb-item-code { font-weight: 700; font-size: 1.1rem; }

.lb-item-sub { font-size: .75rem; color: var(--lb-muted); }

.lb-empty-col {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--lb-muted);
    font-size: .9rem;
}

.lb-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem 1.5rem;
    justify-content: center;
}

.lb-stat {
    background: var(--lb-card);
    border-radius: 12px;
    padding: .75rem 1.25rem;
    text-align: center;
    min-width: 100px;
    border: 1px solid rgba(255,255,255,.06);
}

.lb-stat-val { font-size: 1.75rem; font-weight: 800; color: var(--lb-gold); }
.lb-stat-lbl { font-size: .75rem; color: var(--lb-muted); text-transform: uppercase; letter-spacing: .05em; }

.lb-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    margin-right: 6px;
    animation: lb-blink 1.2s infinite;
}

@keyframes lb-pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 48px rgba(198,40,40,.45); }
    50% { transform: scale(1.01); box-shadow: 0 16px 56px rgba(198,40,40,.65); }
}

@keyframes lb-pulse-next {
    0%, 100% { opacity: 1; }
    50% { opacity: .92; }
}

@keyframes lb-slide-in {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes lb-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

.lb-column[data-col="slaughtering"] { display: none; }

.lb-hero.lb-flash {
    animation: lb-flash-once .6s ease-out;
}

@keyframes lb-flash-once {
    0% { filter: brightness(1.3); }
    100% { filter: brightness(1); }
}

@keyframes lb-shake-vibrate {
    0%, 100% { transform: translateX(0) scale(1); }
    15% { transform: translateX(-4px) scale(1.01); }
    30% { transform: translateX(4px) scale(1.01); }
    45% { transform: translateX(-3px) scale(1); }
    60% { transform: translateX(3px) scale(1); }
    75% { transform: translateX(-2px) scale(1.005); }
}
