/* infoscreen.css
 * ==============
 * Kooders 2026
 * Klaudi Inforuutu: full-screen kiosk layout. All content fits on one
 * screen — no page scrolling. Colors follow the Klaudi theme tokens
 * (dark navy surfaces, coral highlight).
 */

:root {
    --highlight: #f26d7d;
    --highlight-dark: #ef5668;
    --color-navy-950: #16212c;
    --color-primary: #2c3e50;
    --color-secondary: #4f7aa0;
    --color-surface-dark: #1d2a37;
    --color-surface-dark-hover: #22313f;
    --color-border-dark: #2c3e50;
    --color-border-dark-strong: #34495e;
    --text-light: #f0f9ff;
    --text-muted-light: #b5c4d2;
    --text-faint-light: #8ea2b5;
    --radius-card: 14px;
    --radius-control: 10px;
}

html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: var(--color-navy-950);
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
}

[hidden] {
    display: none !important;
}

button {
    font-family: inherit;
}

/* ------------------------------------------------------------------
 * Infoscreen root — fills the whole viewport, no scroll
 * ------------------------------------------------------------------ */
#infoscreen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--color-navy-950);
    color: var(--text-light);
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    box-sizing: border-box;
}

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

/* ------------------------------------------------------------------
 * Header — clock (left) + weather (right)
 * ------------------------------------------------------------------ */
#infoscreen .infoscreen-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex: 0 0 auto;
}

#infoscreen .infoscreen-clock {
    display: flex;
    flex-direction: column;
}

#infoscreen .infoscreen-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

/* Week / day view toggle — segmented control under the clock */
#infoscreen .infoscreen-view-toggle {
    display: inline-flex;
    align-self: flex-start;
    gap: 0.25rem;
    background: var(--color-surface-dark);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-control);
    padding: 0.25rem;
}

#infoscreen .infoscreen-view-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--text-muted-light);
    border: none;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-size: clamp(1rem, 2.4vh, 1.5rem);
    font-weight: 600;
    cursor: pointer;
}

#infoscreen .infoscreen-view-button.is-active {
    background: #fff;
    color: var(--color-navy-950);
}

#infoscreen .infoscreen-view-button:not(.is-active):hover {
    background: var(--color-surface-dark-hover);
    color: #fff;
}

#infoscreen .infoscreen-time {
    font-size: clamp(3rem, 9vh, 6.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

#infoscreen .infoscreen-date {
    font-size: clamp(1.3rem, 3vh, 2.2rem);
    color: var(--text-muted-light);
    text-transform: capitalize;
    margin-top: 0.25rem;
}

#infoscreen .infoscreen-weather {
    text-align: right;
    flex: 0 0 auto;
    padding: 0.6rem 1rem;
    background: var(--color-surface-dark);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-card);
}

#infoscreen .infoscreen-weather-title {
    font-size: clamp(1.1rem, 2.6vh, 1.8rem);
    color: var(--text-muted-light);
    margin-bottom: 0.25rem;
}

#infoscreen .infoscreen-weather-data {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 1.2rem;
    font-size: clamp(1.5rem, 4vh, 2.8rem);
    font-weight: 600;
}

#infoscreen .infoscreen-weather-temp {
    font-size: clamp(2.2rem, 6.5vh, 4.5rem);
    font-weight: 700;
}

#infoscreen .infoscreen-weather-wind,
#infoscreen .infoscreen-weather-humidity {
    font-size: clamp(1.3rem, 3.2vh, 2.1rem);
    color: var(--text-muted-light);
    font-weight: 400;
}

#infoscreen .infoscreen-weather-loading,
#infoscreen .infoscreen-weather-error {
    font-size: clamp(1.3rem, 3.2vh, 2.1rem);
    color: var(--text-muted-light);
    font-weight: 400;
}

/* ------------------------------------------------------------------
 * Main — weekly reservations grid
 * ------------------------------------------------------------------ */
#infoscreen .infoscreen-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#infoscreen .infoscreen-week-title {
    font-size: clamp(1.4rem, 3.4vh, 2.4rem);
    font-weight: 600;
    color: var(--text-muted-light);
    margin-bottom: 0.6rem;
    flex: 0 0 auto;
    text-transform: capitalize;
}

#infoscreen .infoscreen-reservations {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#infoscreen .infoscreen-week-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    height: 100%;
}

#infoscreen .infoscreen-day {
    background: var(--color-surface-dark);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-card);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#infoscreen .infoscreen-day.is-today {
    border-color: var(--highlight);
    box-shadow: 0 0 0 1px var(--highlight);
}

#infoscreen .infoscreen-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--color-border-dark);
    flex: 0 0 auto;
}

#infoscreen .infoscreen-day-label {
    font-size: clamp(1rem, 2.4vh, 1.5rem);
    font-weight: 600;
    text-transform: capitalize;
}

#infoscreen .infoscreen-day-num {
    font-size: clamp(1.1rem, 2.6vh, 1.7rem);
    font-weight: 700;
}

#infoscreen .infoscreen-today-badge {
    font-size: clamp(0.75rem, 1.8vh, 1.1rem);
    background: var(--highlight);
    color: var(--color-navy-950);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#infoscreen .infoscreen-day-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

#infoscreen .infoscreen-empty {
    color: var(--text-faint-light);
    font-size: clamp(0.95rem, 2.2vh, 1.4rem);
    text-align: center;
    margin: auto;
}

/* Reservation card: tile tinted with the space color, colored dot before the
   space name */
#infoscreen .infoscreen-reservation {
    background: var(--color-surface-dark-hover);
    background: color-mix(in srgb, var(--space-color, #f26d7d) 20%, var(--color-surface-dark));
    border: 1px solid color-mix(in srgb, var(--space-color, #f26d7d) 45%, transparent);
    border-radius: var(--radius-control);
    padding: 0.45rem 0.6rem;
    line-height: 1.2;
}

#infoscreen .infoscreen-reservation-time {
    font-size: clamp(0.9rem, 2.1vh, 1.3rem);
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

#infoscreen .infoscreen-reservation-name {
    font-size: clamp(1rem, 2.4vh, 1.5rem);
    font-weight: 600;
    word-break: break-word;
}

#infoscreen .infoscreen-reservation-space {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: clamp(0.9rem, 2.1vh, 1.3rem);
    color: var(--text-muted-light);
}

#infoscreen .infoscreen-reservation-space::before {
    content: "";
    flex: none;
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    background: var(--space-color, #f26d7d);
}

#infoscreen .infoscreen-reservation-booked-by {
    font-size: clamp(0.8rem, 1.9vh, 1.15rem);
    color: var(--text-muted-light);
}

#infoscreen .infoscreen-reservation.is-past {
    opacity: 0.45;
}

/* Currently-running reservation — coral ring as in the Klaudi calendar */
#infoscreen .infoscreen-reservation.is-ongoing {
    background: color-mix(in srgb, var(--space-color, #f26d7d) 38%, var(--color-surface-dark));
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--color-navy-950), 0 0 0 4px var(--highlight);
    animation: infoscreen-ongoing-pulse 2.4s ease-in-out infinite;
}

@keyframes infoscreen-ongoing-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px var(--color-navy-950), 0 0 0 4px var(--highlight);
    }

    50% {
        box-shadow: 0 0 0 2px var(--color-navy-950), 0 0 0 7px rgba(242, 109, 125, 0.45);
    }
}

#infoscreen .infoscreen-now-badge {
    display: inline-block;
    margin-bottom: 0.25rem;
    background: var(--highlight);
    color: var(--color-navy-950);
    font-size: clamp(0.7rem, 1.7vh, 1.05rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
}

#infoscreen .infoscreen-loading {
    color: var(--text-muted-light);
    font-size: clamp(1.3rem, 3.2vh, 2rem);
    text-align: center;
    margin: auto;
}

/* ------------------------------------------------------------------
 * Day view — fixed 08:00–19:00 timeline, one column per room
 * ------------------------------------------------------------------ */
#infoscreen .infoscreen-day-view {
    flex: 1 1 auto;
    min-height: 0;
}

#infoscreen .infoscreen-day-timeline {
    --day-gutter-w: 3.2rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    column-gap: 0.4rem;
    position: relative;
}

/* Room name heads */
#infoscreen .infoscreen-day-gutter-head,
#infoscreen .infoscreen-day-room-head {
    flex: 0 0 auto;
}

#infoscreen .infoscreen-day-room-head {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.5rem 0.6rem;
    background: var(--color-surface-dark);
    border: 1px solid var(--color-border-dark);
    border-bottom: 3px solid var(--space-color, #f26d7d);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    font-size: clamp(1rem, 2.4vh, 1.5rem);
    font-weight: 700;
    white-space: nowrap;
}

#infoscreen .infoscreen-day-room-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hour gutter — labels positioned by % of the visible range */
#infoscreen .infoscreen-day-hour-gutter {
    position: relative;
    padding-right: 0.3rem;
}

#infoscreen .infoscreen-day-hour-label {
    position: absolute;
    right: 0.3rem;
    transform: translateY(-50%);
    font-size: clamp(0.9rem, 2.1vh, 1.3rem);
    font-weight: 600;
    color: var(--text-muted-light);
    font-variant-numeric: tabular-nums;
}

#infoscreen .infoscreen-day-now-tick {
    position: absolute;
    right: 0;
    width: 0.6rem;
    height: 0.6rem;
    transform: translate(0, -50%);
    border-radius: 50%;
    background: var(--highlight);
    box-shadow: 0 0 0 3px rgba(242, 109, 125, 0.3);
}

/* Room tracks — vertical hour lines as overlays, blocks on top */
#infoscreen .infoscreen-day-track {
    position: relative;
    min-width: 0;
    background: var(--color-surface-dark);
    border: 1px solid var(--color-border-dark);
    border-top: none;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    overflow: hidden;
}

#infoscreen .infoscreen-day-hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

#infoscreen .infoscreen-day-block {
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    background: color-mix(in srgb, var(--space-color, #f26d7d) 30%, var(--color-surface-dark));
    border: 1px solid color-mix(in srgb, var(--space-color, #f26d7d) 55%, transparent);
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    line-height: 1.15;
    overflow: hidden;
}

#infoscreen .infoscreen-day-block-time {
    font-size: clamp(0.85rem, 1.9vh, 1.2rem);
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

#infoscreen .infoscreen-day-block-name {
    font-size: clamp(0.95rem, 2.2vh, 1.4rem);
    font-weight: 600;
    word-break: break-word;
}

#infoscreen .infoscreen-day-block-booked-by {
    font-size: clamp(0.78rem, 1.8vh, 1.1rem);
    color: var(--text-muted-light);
}

#infoscreen .infoscreen-day-block.is-past {
    opacity: 0.45;
}

#infoscreen .infoscreen-day-block.is-ongoing {
    background: color-mix(in srgb, var(--space-color, #f26d7d) 48%, var(--color-surface-dark));
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--color-navy-950), 0 0 0 4px var(--highlight);
    animation: infoscreen-ongoing-pulse 2.4s ease-in-out infinite;
}

/* "Now" line — one per room track so its % aligns with the blocks */
#infoscreen .infoscreen-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--highlight);
    box-shadow: 0 0 6px rgba(242, 109, 125, 0.6);
    pointer-events: none;
    z-index: 3;
}

#infoscreen .infoscreen-now-line-label {
    position: absolute;
    right: 0.2rem;
    top: -0.85rem;
    font-size: clamp(0.8rem, 1.8vh, 1.1rem);
    font-weight: 700;
    color: var(--color-navy-950);
    background: var(--highlight);
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

#infoscreen .infoscreen-now-line.is-at-top .infoscreen-now-line-label {
    top: 0.25rem;
}

/* ------------------------------------------------------------------
 * Footer — period navigation + media player
 * ------------------------------------------------------------------ */
#infoscreen .infoscreen-footer {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

#infoscreen .infoscreen-nav-button {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(3rem, 8vh, 4.5rem);
    height: clamp(3rem, 8vh, 4.5rem);
    background: var(--color-surface-dark);
    border: 1px solid var(--color-border-dark-strong);
    border-radius: var(--radius-card);
    color: var(--text-light);
    font-size: clamp(1.5rem, 4vh, 2.4rem);
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

#infoscreen .infoscreen-nav-button:last-child {
    justify-self: end;
}

#infoscreen .infoscreen-nav-button:hover {
    background: var(--color-surface-dark-hover);
}

#infoscreen .infoscreen-nav-button:active {
    background: var(--highlight);
    border-color: var(--highlight);
    color: var(--color-navy-950);
}

#infoscreen .infoscreen-music {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-surface-dark);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-card);
    padding: 0.5rem 0.6rem 0.5rem 1.2rem;
}

#infoscreen .infoscreen-music-title {
    font-size: clamp(1.1rem, 2.6vh, 1.7rem);
    font-weight: 600;
    color: var(--text-muted-light);
}

#infoscreen .infoscreen-music-button {
    background: var(--highlight);
    color: var(--color-navy-950);
    border: none;
    border-radius: var(--radius-control);
    padding: 0.5rem 1.4rem;
    font-size: clamp(1.1rem, 2.6vh, 1.6rem);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

#infoscreen .infoscreen-music-button:hover:not(:disabled) {
    background: var(--highlight-dark);
    color: var(--color-navy-950);
}

#infoscreen .infoscreen-music-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#infoscreen audio {
    display: none;
}

/* ------------------------------------------------------------------
 * Small screens — keep everything on one screen
 * ------------------------------------------------------------------ */
@media (max-height: 600px) {
    #infoscreen {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }
}

/* ------------------------------------------------------------------
 * Portrait screens — compress the header so clock, date and weather
 * fit side by side on a narrower display
 * ------------------------------------------------------------------ */
@media (orientation: portrait) {
    #infoscreen .infoscreen-header {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    #infoscreen .infoscreen-clock {
        flex-direction: row;
        align-items: baseline;
        gap: 0.7rem;
        min-width: 0;
    }

    #infoscreen .infoscreen-time {
        font-size: clamp(2rem, 11vw, 4rem);
    }

    #infoscreen .infoscreen-date {
        font-size: clamp(0.95rem, 3.2vw, 1.5rem);
        margin-top: 0;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #infoscreen .infoscreen-view-button {
        font-size: clamp(0.85rem, 3vw, 1.3rem);
        padding: 0.3rem 0.7rem;
    }

    #infoscreen .infoscreen-weather {
        padding: 0.4rem 0.7rem;
    }

    #infoscreen .infoscreen-weather-title {
        font-size: clamp(0.85rem, 2.8vw, 1.3rem);
    }

    #infoscreen .infoscreen-weather-data {
        gap: 0.6rem;
        font-size: clamp(1.05rem, 3.6vw, 1.9rem);
    }

    #infoscreen .infoscreen-weather-temp {
        font-size: clamp(1.5rem, 5.5vw, 3rem);
    }

    #infoscreen .infoscreen-weather-wind,
    #infoscreen .infoscreen-weather-humidity,
    #infoscreen .infoscreen-weather-loading,
    #infoscreen .infoscreen-weather-error {
        font-size: clamp(0.95rem, 2.9vw, 1.6rem);
    }

    /* Compact music player */
    #infoscreen .infoscreen-music {
        gap: 0.5rem;
        padding: 0.25rem 0.35rem 0.25rem 0.7rem;
    }

    #infoscreen .infoscreen-music-title {
        font-size: clamp(0.85rem, 2.6vw, 1.25rem);
    }

    #infoscreen .infoscreen-music-button {
        padding: 0.3rem 0.8rem;
        font-size: clamp(0.85rem, 2.8vw, 1.35rem);
    }

    #infoscreen .infoscreen-nav-button {
        width: clamp(2.4rem, 9vw, 3.4rem);
        height: clamp(2.4rem, 9vw, 3.4rem);
        font-size: clamp(1.2rem, 5vw, 1.9rem);
    }
}

/* ------------------------------------------------------------------
 * Boot / connect states — the screen content is hidden until connected
 * ------------------------------------------------------------------ */
#infoscreen.is-booting > header,
#infoscreen.is-booting > main,
#infoscreen.is-booting > footer,
#infoscreen.is-connecting > header,
#infoscreen.is-connecting > main,
#infoscreen.is-connecting > footer {
    visibility: hidden;
}

#infoscreen .infoscreen-clock {
    cursor: default;
    touch-action: none;
}

#infoscreen .infoscreen-week-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#infoscreen .infoscreen-offline {
    font-size: clamp(0.85rem, 2vh, 1.2rem);
    font-weight: 600;
    color: #ffd0d6;
    background: rgba(242, 109, 125, 0.18);
    border: 1px solid var(--highlight);
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
    text-transform: none;
}

/* ------------------------------------------------------------------
 * Connect screen — white card on navy, like the Klaudi login
 * ------------------------------------------------------------------ */
#infoscreen .infoscreen-connect {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--color-navy-950);
    z-index: 10;
    overflow-y: auto;
}

#infoscreen .infoscreen-connect-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: min(100%, 28rem);
    padding: 2rem 2.2rem;
    background: #fff;
    border: 1px solid #dbe4ec;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    color: var(--color-navy-950);
    text-align: center;
    -webkit-user-select: text;
    user-select: text;
}

#infoscreen .infoscreen-connect-logo {
    width: 6.5rem;
    height: auto;
}

#infoscreen .infoscreen-connect-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

#infoscreen .infoscreen-connect-help {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: #5b6b7b;
}

#infoscreen .infoscreen-connect-label {
    margin-top: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #5b6b7b;
}

#infoscreen .infoscreen-connect-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-align: center;
    text-transform: uppercase;
    color: var(--color-navy-950);
    background: #fff;
    border: 1px solid #8496a8;
    border-radius: var(--radius-control);
    outline: none;
}

#infoscreen .infoscreen-connect-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(79, 122, 160, 0.35);
}

#infoscreen .infoscreen-connect-error {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    color: #8f2633;
    background: #fdecee;
    border: 1px solid #f4b7bf;
    border-radius: var(--radius-control);
}

#infoscreen .infoscreen-connect-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0.6rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy-950);
    background: var(--highlight);
    border: none;
    border-radius: var(--radius-control);
    cursor: pointer;
}

#infoscreen .infoscreen-connect-submit:hover:not(:disabled) {
    background: var(--highlight-dark);
}

#infoscreen .infoscreen-connect-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ------------------------------------------------------------------
 * Update overlay — shown while a new app version is activated
 * ------------------------------------------------------------------ */
#infoscreen .infoscreen-update-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: rgba(22, 33, 44, 0.94);
    z-index: 20;
}

#infoscreen .infoscreen-update-overlay i {
    font-size: 2.6rem;
    color: var(--highlight);
    animation: infoscreen-update-spin 1.6s linear infinite;
}

#infoscreen .infoscreen-update-overlay-text {
    font-size: clamp(1.1rem, 3vh, 1.8rem);
    font-weight: 600;
    color: var(--text-muted-light);
}

@keyframes infoscreen-update-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------------
 * Keyboard focus
 * ------------------------------------------------------------------ */
#infoscreen .infoscreen-view-button:focus-visible,
#infoscreen .infoscreen-nav-button:focus-visible,
#infoscreen .infoscreen-music-button:focus-visible {
    outline: 2px solid var(--highlight);
    outline-offset: 2px;
}

#infoscreen .infoscreen-connect-submit:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}
