@font-face {
    font-family: "League Spartan";
    src: url("../fonts/league-spartan.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --teal: #008c8c;
    --blue: #006d9d;
    --navy: #003c52;
    --ink: #163947;
    --paper: #f4f8f7;
    --white: #fff;
    --muted: #68818b;
    --line: rgba(0, 109, 157, .16);
    --lunch: #cb5d4f;
    --coffee: #d98b1d;
    --urgent: #b52c35;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
    background: linear-gradient(140deg, #eff7f6 0%, #fff 52%, #e7f2f4 100%);
    color: var(--ink);
    cursor: none;
    font-family: "Segoe UI", Arial, sans-serif;
    user-select: none;
}
a { color: inherit; }
.display-root { position: relative; z-index: 1; width: 100vw; height: 100vh; display: grid; grid-template-rows: 126px 1fr 78px; overflow: hidden; }
.constellation { position: fixed; inset: -5%; pointer-events: none; opacity: .4; background-image: radial-gradient(circle at 9% 19%, rgba(0,140,140,.2) 0 2px, transparent 3px), radial-gradient(circle at 31% 70%, rgba(0,109,157,.18) 0 2px, transparent 3px), radial-gradient(circle at 72% 14%, rgba(0,140,140,.18) 0 3px, transparent 4px), radial-gradient(circle at 91% 60%, rgba(0,109,157,.16) 0 2px, transparent 3px), linear-gradient(28deg, transparent 48%, rgba(0,109,157,.06) 49%, rgba(0,109,157,.06) 49.4%, transparent 50%), linear-gradient(151deg, transparent 48%, rgba(0,140,140,.05) 49%, rgba(0,140,140,.05) 49.4%, transparent 50%); background-size: 420px 330px, 520px 440px, 620px 480px, 700px 510px, 520px 380px, 630px 510px; animation: constellation-drift 40s ease-in-out infinite alternate; }
@keyframes constellation-drift { to { transform: translate3d(16px, -10px, 0); opacity: .3; } }

.display-header { display: grid; grid-template-columns: 610px 1fr 245px 245px; align-items: center; gap: 22px; padding: 16px 34px; background: rgba(255,255,255,.95); border-bottom: 5px solid transparent; border-image: linear-gradient(90deg, var(--teal), var(--blue)) 1; box-shadow: 0 8px 24px rgba(0,61,82,.08); }
.brand-logos { height: 80px; display: flex; align-items: center; gap: 14px; padding-right: 18px; border-right: 1px solid var(--line); }
.brand-logos img { display: block; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.brand-logos img:first-child { max-width: 130px; }
.brand-logos img:nth-child(2) { max-width: 140px; }
.brand-logos img:nth-child(3) { max-width: 145px; }
.brand-logos img:nth-child(4) { max-width: 115px; }
.conference-mark { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.conference-mark strong, .display-identity strong, h1, h2, h3, h4, .clock { font-family: "League Spartan", "Segoe UI", sans-serif; }
.conference-mark strong { color: var(--blue); font-size: 29px; letter-spacing: .02em; }
.conference-mark span { color: var(--teal); font-size: 18px; font-weight: 600; line-height: 1.15; }
.display-identity { justify-self: stretch; min-width: 0; padding: 10px 18px; background: var(--navy); color: #fff; border-radius: 8px 0 8px 8px; text-align: center; }
.identity-kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: .18em; opacity: .74; }
.display-identity strong { display: block; overflow: hidden; font-size: 31px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.display--hall .display-identity strong { font-size: 24px; }
.clock { justify-self: end; display: grid; grid-template-columns: auto 14px auto; color: var(--navy); font-size: 52px; font-variant-numeric: tabular-nums; font-weight: 700; line-height: .8; text-align: center; }
.clock-colon { animation: blink-colon 1s steps(1,end) infinite; }
.clock small { grid-column: 1 / -1; margin-top: 13px; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: 14px; font-weight: 600; white-space: nowrap; }
@keyframes blink-colon { 50% { opacity: .28; } }

.simulation-banner { position: fixed; z-index: 20; top: 126px; left: 50%; transform: translateX(-50%); padding: 7px 40px 8px; background: #f6c719; color: #251f00; border-radius: 0 0 10px 10px; font-size: 17px; font-weight: 900; letter-spacing: .16em; box-shadow: 0 5px 14px rgba(0,0,0,.2); }
.programme { min-height: 0; padding: 22px 34px 18px; overflow: hidden; }
.section-label { margin: 0; color: var(--teal); font: 800 17px/1 "League Spartan", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; min-height: 27px; padding: 5px 10px 4px; border-radius: 5px; font-size: 14px; font-weight: 800; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.code-badge { background: var(--navy); color: #fff; }
.room-badge { background: var(--blue); color: #fff; font-size: 16px; }
.type-badge { background: rgba(0,140,140,.12); color: #006f6f; text-transform: uppercase; }

.room-layout { height: 100%; display: grid; grid-template-columns: minmax(0, 3fr) minmax(390px, 1fr); gap: 22px; }
.room-feature { min-width: 0; height: 100%; padding: 22px 28px 20px; overflow: hidden; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 12px 4px 12px 12px; box-shadow: 0 16px 38px rgba(0,61,82,.09); }
.event-status { display: flex; align-items: center; gap: 12px; min-height: 38px; color: var(--muted); }
.event-status strong { font: 900 23px/1 "League Spartan", sans-serif; letter-spacing: .12em; }
.event-status span:last-child { margin-left: auto; font-size: 18px; font-weight: 700; }
.status-live { color: var(--teal); }
.status-soon { color: var(--blue); }
.status-ended { color: var(--muted); }
.live-dot { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 50%; background: #e03c49; box-shadow: 0 0 0 0 rgba(224,60,73,.6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(224,60,73,0); } 100% { box-shadow: 0 0 0 0 rgba(224,60,73,0); } }
.feature-heading { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; margin-top: 8px; }
.feature-heading h1 { grid-column: 1 / -1; margin: 8px 0 0; color: var(--navy); font-size: clamp(32px, 2.25vw, 44px); font-weight: 650; line-height: 1.02; }
.feature-meta { display: flex; gap: 28px; margin-top: 14px; color: var(--blue); font-size: 21px; font-weight: 750; }
.chairs { display: flex; align-items: baseline; gap: 15px; margin-top: 13px; padding: 9px 14px; background: #edf7f6; border-left: 5px solid var(--teal); border-radius: 0 6px 6px 0; font-size: 17px; }
.chairs strong { color: var(--teal); }
.presentations { margin-top: 15px; }
.presentation { position: relative; display: grid; grid-template-columns: 42px 1fr; column-gap: 10px; padding: 9px 0 9px; border-top: 1px solid var(--line); }
.presentation-number { grid-row: 1 / 4; padding-top: 2px; color: rgba(0,109,157,.45); font: 800 20px/1 "League Spartan", sans-serif; }
.presentation h3 { margin: 0; color: var(--navy); font-size: 20px; font-weight: 690; line-height: 1.13; }
.presentation-people { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 5px; color: var(--ink); font-size: 14px; line-height: 1.15; }
.author:not(:last-child)::after { content: "·"; margin-left: 16px; color: var(--muted); }
.author.presenter { color: var(--blue); }
.microphone { margin-right: 5px; color: var(--teal); font-size: 10px; }
.affiliations { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.15; }
.density-4 .feature-heading h1, .density-5 .feature-heading h1 { font-size: 34px; }
.density-4 .presentation { padding-block: 7px; }
.density-4 .presentation h3 { font-size: 18px; }
.density-5 .presentation { padding-block: 5px; }
.density-5 .presentation h3 { font-size: 16px; }
.density-5 .presentation-people { font-size: 12.5px; }
.density-5 .affiliations { font-size: 11px; }
.poster-summary { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 260px; margin-top: 24px; padding: 35px; background: linear-gradient(135deg, #eaf6f4, #eef4f8); border-left: 8px solid var(--teal); border-radius: 0 12px 12px 0; }
.poster-summary strong { color: var(--navy); font: 700 42px/1.1 "League Spartan", sans-serif; }
.poster-summary span { margin-top: 12px; color: var(--muted); font-size: 22px; }
.event-lunch { border-top: 8px solid var(--lunch); }
.event-coffee_break { border-top: 8px solid var(--coffee); }
.room-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.compact-session, .later-list { padding: 18px 20px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 10px 3px 10px 10px; box-shadow: 0 9px 24px rgba(0,61,82,.06); }
.compact-session .section-label, .later-list .section-label { margin-bottom: 12px; }
.compact-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.compact-top strong { color: var(--blue); font-size: 18px; }
.compact-session h3 { margin: 10px 0 4px; color: var(--navy); font-size: 23px; line-height: 1.05; }
.compact-session p { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.compact-countdown { display: block; margin-top: 8px; color: var(--teal); font-weight: 800; }
.compact-line { display: grid; grid-template-columns: 100px auto auto minmax(0,1fr); align-items: center; gap: 7px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.compact-line > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-line .badge { min-height: 22px; padding: 4px 7px; font-size: 11px; }

.hall-layout { height: 100%; display: grid; grid-template: 76px minmax(0,1fr) / minmax(0, 1.75fr) minmax(455px, .95fr); gap: 15px 20px; }
.hall-previous { grid-column: 1 / -1; display: grid; grid-template-columns: 160px 150px 1fr; align-items: center; gap: 15px; padding: 10px 20px; background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 8px; }
.compact-codes { display: flex; gap: 7px; overflow: hidden; }
.compact-codes span { padding: 5px 8px; background: #e9f2f4; border-radius: 4px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hall-block { min-width: 0; min-height: 0; overflow: hidden; padding: 19px 22px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 12px 4px 12px 12px; box-shadow: 0 13px 32px rgba(0,61,82,.08); }
.hall-block--now { border-top: 7px solid var(--teal); }
.hall-block--next { border-top: 7px solid var(--blue); }
.hall-block-title { margin: 7px 0 0; color: var(--navy); font-size: 34px; line-height: 1; }
.hall-block-meta { display: flex; align-items: center; gap: 18px; margin: 9px 0 13px; color: var(--muted); font-size: 16px; font-weight: 650; }
.hall-block-meta strong { color: var(--blue); font-size: 22px; }
.session-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.session-grid.count-7, .session-grid.count-8, .session-grid.count-9, .session-grid.count-10, .session-grid.count-11, .session-grid.count-12, .session-grid.count-13, .session-grid.count-14 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.session-card { min-width: 0; padding: 13px 14px 12px; background: #f4f8f8; border-left: 4px solid var(--teal); border-radius: 3px 7px 7px 3px; }
.card-badges { display: flex; align-items: center; gap: 5px; overflow: hidden; }
.card-badges .badge { min-height: 24px; padding: 5px 8px; font-size: 11px; }
.card-badges .room-badge { font-size: 15px; }
.session-card h4 { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.08; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.count-10 .session-card, .count-11 .session-card, .count-12 .session-card, .count-13 .session-card, .count-14 .session-card { padding-block: 10px; }
.count-10 .session-card h4, .count-11 .session-card h4, .count-12 .session-card h4, .count-13 .session-card h4, .count-14 .session-card h4 { font-size: 15px; }
.session-grid.compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
.session-grid.compact .session-card { padding: 7px; }
.hall-layout--break { grid-template-columns: .75fr 1.45fr; }
.hall-layout--break .hall-block--now { border-top-color: var(--lunch); }
.global-location { margin: 25px 0 0; color: var(--navy); font: 700 28px/1.2 "League Spartan", sans-serif; }
.also-now { margin-top: 30px; padding-top: 15px; border-top: 1px solid var(--line); }
.also-now h3 { margin: 0 0 5px; color: var(--teal); font-size: 16px; letter-spacing: .12em; }

.selection-screen, .empty-programme, .thank-you, .loading-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.selection-screen h1, .empty-programme h1, .thank-you h1, .loading-state h1 { margin: 0; color: var(--navy); font-size: 58px; }
.selection-intro { margin: 6px 0 28px; color: var(--teal); font: 700 26px/1 "League Spartan", sans-serif; }
.selection-grid { width: min(1400px, 100%); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.selection-card { min-width: 150px; padding: 18px 24px; background: #fff; border: 1px solid var(--line); border-bottom: 5px solid var(--teal); border-radius: 8px; color: var(--navy); font: 700 25px/1 "League Spartan", sans-serif; text-decoration: none; }
.empty-symbol { color: var(--teal); font-size: 76px; line-height: 1; }
.empty-programme h2 { margin: 30px 0 4px; color: var(--teal); font-size: 22px; letter-spacing: .1em; }
.empty-programme > p { color: var(--muted); font-size: 23px; }
.empty-date { margin: 5px 0 14px !important; }
.empty-programme .compact-session { width: min(800px, 100%); text-align: left; }
.theme-line { color: var(--teal) !important; font: 650 31px/1.2 "League Spartan", sans-serif; }
.thank-you-mark { color: var(--teal); font: 800 25px/1 "League Spartan", sans-serif; letter-spacing: .18em; }
.thank-you h1 { margin-top: 25px; font-size: 76px; }
.thank-you h2 { margin: 12px 0 0; color: var(--blue); font-size: 36px; }
.thank-you p { margin: 20px 0 28px; color: var(--teal); font: 600 32px/1.2 "League Spartan", sans-serif; }
.thank-you small { color: var(--muted); font-size: 20px; }
.loading-mark { width: 52px; height: 52px; margin-bottom: 24px; border: 5px solid rgba(0,140,140,.2); border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }

.display-footer { position: relative; display: flex; align-items: stretch; min-width: 0; background: var(--navy); color: #fff; }
.announcement-bar { min-width: 0; flex: 1; display: flex; align-items: center; gap: 16px; overflow: hidden; padding: 0 34px; border-top: 4px solid var(--teal); font-size: 20px; font-weight: 650; white-space: nowrap; }
.announcement-icon { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); font-weight: 900; }
.announcement-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.announcement-bar.priority-important { border-top-color: var(--coffee); background: #4d3c13; }
.announcement-bar.priority-important .announcement-icon { background: var(--coffee); }
.announcement-bar.priority-urgent { border-top-color: #ff6671; background: #701f27; }
.announcement-bar.priority-urgent .announcement-icon { background: #e6404d; animation: pulse 1.8s infinite; }
.announcement-bar.is-scrolling .announcement-text { overflow: visible; text-overflow: clip; animation: ticker 22s linear infinite; }
@keyframes ticker { 0%, 8% { transform: translateX(0); } 92%, 100% { transform: translateX(calc(-100% + 800px)); } }
.qr-block { flex: 0 0 330px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 5px 18px; background: #fff; color: var(--navy); border-top: 4px solid var(--blue); }
.qr-block #qr-code { flex: 0 0 auto; }
.qr-block img, .qr-block canvas { display: block; max-width: 65px; max-height: 65px; }
.qr-block span { max-width: 160px; font-size: 15px; font-weight: 750; line-height: 1.15; }
.display--hall .qr-block { flex-basis: 360px; }

.full-override { position: fixed; z-index: 50; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px; background: linear-gradient(135deg, rgba(0,61,82,.98), rgba(0,109,157,.98)); color: #fff; text-align: center; }
.full-override[hidden] { display: none; }
.override-kicker { padding: 10px 18px; border: 2px solid rgba(255,255,255,.7); border-radius: 5px; font-size: 21px; font-weight: 900; letter-spacing: .18em; }
.full-override h1 { margin: 40px 0 15px; font-size: 92px; line-height: .95; }
.full-override p { max-width: 1450px; margin: 0; font-size: 43px; line-height: 1.18; }
.full-override small { position: absolute; bottom: 60px; font-size: 21px; letter-spacing: .08em; }
.full-override.priority-urgent { background: linear-gradient(135deg, rgba(113,27,37,.99), rgba(181,44,53,.98)); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }
@media (max-aspect-ratio: 16/10) { .display-header { grid-template-columns: 560px 1fr 220px 220px; } .brand-logos { gap: 10px; } .brand-logos img:first-child { max-width: 120px; } .brand-logos img:nth-child(2) { max-width: 130px; } .brand-logos img:nth-child(3) { max-width: 135px; } .brand-logos img:nth-child(4) { max-width: 105px; } .programme { padding-inline: 24px; } }
