* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Nunito Sans", Arial, sans-serif;
    background: #0a1628;
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
}

.display-board {
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1c2674 0%, #165f9f 55%, #4bb43a 100%);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-date {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-title {
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
}

.header-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.header-right {
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.header-time {
    font-size: 52px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 2px;
}

.header-time-period {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.75);
}

.main-content {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    flex: 1;
    min-height: 0;
}

.current-queue {
    background: linear-gradient(180deg, #f6f8fb 0%, #ececec 100%);
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #d8e0ea;
    overflow: hidden;
}

.loket-badge {
    background: #1c2674;
    color: #ffffff;
    padding: 10px 32px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 2px 0;
}

.current-label,
.info-label {
    font-size: 18px;
    font-weight: 900;
    color: #5e6b7b;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.current-number-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-number {
    font-size: 250px;
    font-weight: 900;
    color: #1c2674;
    line-height: 0.95;
    letter-spacing: 6px;
    text-shadow: 4px 8px 24px rgba(28, 38, 116, 0.16);
    padding: 0 20px;
    margin: 10px 0;
}

.current-number.pulse {
    animation: numberPulse 0.8s ease-out;
}

@keyframes numberPulse {
    0% { transform: scale(1.12); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.current-hint {
    font-size: 18px;
    font-weight: 800;
    color: #4c5a68;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.dot-blink {
    width: 12px;
    height: 12px;
    background: #4bb43a;
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    50% { opacity: 0.3; transform: scale(0.85); }
}

.side-info {
    display: flex;
    flex-direction: column;
}

.info-block {
    flex: 1;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-block:first-child {
    border-bottom: 2px solid #e5eaf2;
    background: #fff8ed;
}

.info-block:last-child {
    background: #fff5f5;
}

.info-label {
    font-size: 15px;
    margin-bottom: 14px;
}

.info-value {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 3px;
}

.next .info-value {
    color: #b65d10;
}

.remaining .info-value {
    color: #b3261e;
}

.info-sub {
    font-size: 15px;
    font-weight: 700;
    color: #6c6c6d;
    margin-top: 12px;
}

.footer {
    background: linear-gradient(135deg, #f5c518 0%, #f0b400 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 56px;
    border-top: 3px solid #c8950a;
    flex-shrink: 0;
}

.footer-icon-wrap {
    background: #1c2674;
    color: #f5c518;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    flex-shrink: 0;
}

.info-label-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 3px;
}

.marquee-container {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 38s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    color: #222222;
    padding: 0 40px;
}

.marquee-separator {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    color: #1c2674;
    font-size: 22px;
    font-weight: 900;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.calling-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.calling-overlay.active {
    opacity: 1;
}

.calling-text {
    font-size: 36px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 8px;
    text-transform: uppercase;
}

.calling-number {
    font-size: 280px;
    font-weight: 900;
    color: #f5c518;
    line-height: 1;
    letter-spacing: 10px;
}

.calling-loket {
    font-size: 32px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 4px;
    margin-top: 30px;
    text-transform: uppercase;
}

.calling-loket span {
    color: #ffffff;
    background: #1c2674;
    padding: 8px 28px;
    border-radius: 8px;
}

.sound-toggle {
    position: fixed;
    bottom: 70px;
    right: 16px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.sound-toggle:focus-visible {
    outline: 3px solid #f5c518;
    outline-offset: 3px;
}

.sound-notice {
    position: fixed;
    left: 50%;
    bottom: 70px;
    z-index: 210;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: min(720px, calc(100vw - 32px));
    padding: 14px 16px;
    background: #ffffff;
    border: 2px solid #f5c518;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.18) 0 8px 30px;
    color: #333333;
}

.sound-notice.hidden {
    display: none;
}

.sound-notice strong {
    display: block;
    color: #1c2674;
    font-size: 16px;
}

.sound-notice span {
    display: block;
    color: #6c6c6d;
    font-size: 14px;
    margin-top: 2px;
}

.sound-notice button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #1c2674;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.sound-notice button:focus-visible {
    outline: 3px solid #f5c518;
    outline-offset: 3px;
}

@media (max-width: 1366px) {
    .header { padding: 14px 30px; }
    .header-title { font-size: 32px; }
    .header-time { font-size: 44px; }
    .current-number { font-size: 200px; }
    .info-value { font-size: 80px; }
    .calling-number { font-size: 220px; }
}

@media (max-width: 768px) {
    .main-content { grid-template-columns: 1fr; }
    .current-queue { border-right: none; border-bottom: 2px solid #d8e0ea; padding: 24px 20px; }
    .current-number { font-size: 120px; }
    .header-title { font-size: 22px; }
    .header-time { font-size: 30px; }
    .side-info { flex-direction: row; }
    .info-value { font-size: 52px; }
    .calling-number { font-size: 120px; }
    .sound-notice {
        left: 16px;
        right: 16px;
        transform: none;
        flex-direction: column;
        align-items: stretch;
    }
}
