/* NODN — simple homepage */
:root {
    color-scheme: dark;
    --bg: #030810;
    --panel: #081522;
    --edge: #2583a8;
    --cyan: #35d9ff;
    --text: #ecf6ff;
    --muted: #9ab0c5;
    font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--cyan); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.cyan { color: var(--cyan); }
.shell { width: min(1510px, calc(100% - 40px)); margin: 0 auto; }

/* Original logo and simple navigation. */
.site-header { border-bottom: 1px solid var(--edge); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; line-height: 1; }
.brand:hover { color: var(--text); }
.brand img { width: 54px; height: 45px; object-fit: contain; }
.brand b { display: block; font-size: 24px; font-weight: 950; font-style: italic; letter-spacing: -.07em; }
.brand small { display: block; margin-top: 5px; font-size: 9px; font-weight: 700; letter-spacing: .32em; }
nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
nav a { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Scrolling announcements above the video and chat. */
.ticker {
    display: flex;
    align-items: stretch;
    min-width: 0;
    margin-top: 24px;
    border: 1px solid var(--edge);
    background: var(--panel);
    font-size: 12px;
    line-height: 18px;
}
.ticker-label {
    display: flex;
    align-items: center;
    flex: none;
    padding: 8px 12px;
    border-right: 1px solid var(--edge);
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: .08em;
}
/* Isolate the animated text from mouse hit-testing and scrolling. */
.ticker-window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    overflow: clip;
    padding: 8px 0;
    container-type: inline-size;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.ticker-window:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.ticker-text {
    display: block;
    width: max-content;
    padding-left: 100%;
    white-space: nowrap;
    pointer-events: none;
    will-change: transform;
    animation: ticker-scroll 24s linear infinite;
}
/* Use the viewport width for the start, and only the text width for the end. */
@supports (width: 1cqw) {
    .ticker-text { padding-left: 0; animation-name: ticker-scroll-stable; }
}
.ticker-window:focus-visible .ticker-text { animation-play-state: paused; }
@keyframes ticker-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-100%, 0, 0); }
}
@keyframes ticker-scroll-stable {
    from { transform: translate3d(100cqw, 0, 0); }
    to { transform: translate3d(-100%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-text { animation: none; width: auto; padding: 0 12px; white-space: normal; }
}

/* Video on the left; matching-height chat on the right. */
.network {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 14px;
    margin: 14px 0;
}
.panel { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--edge); background: var(--panel); }
.panel h1, .panel h2 {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--edge);
    color: var(--cyan);
    font-size: 12px;
    line-height: 18px;
    letter-spacing: .08em;
}
iframe { display: block; width: 100%; border: 0; background: #000; }
.video-frame { aspect-ratio: 16 / 9; }
.chat iframe { flex: 1; min-height: 0; }

/* Two small readings beneath the video. */
.video-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 9px 12px;
    border-top: 1px solid var(--edge);
    color: var(--muted);
    font-size: 12px;
}
.video-info b { color: var(--cyan); }

/* The original four feature boxes. */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.features > div { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 10px; border: 1px solid var(--edge); background: var(--panel); }
.features span { color: var(--cyan); font-size: 23px; }
.features p { margin: 0; }
.features b, .features small { display: block; }
.features b { font-size: 12px; }
.features small { color: var(--muted); font-size: 11px; }
footer { padding: 22px 0; color: var(--muted); text-align: center; font-size: 12px; }

/* Stack the video and chat on narrow screens. */
@media (max-width: 1000px) {
    .network { grid-template-columns: 1fr; }
    .chat iframe { flex: none; height: 480px; }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .shell { width: calc(100% - 24px); }
    .header-inner { flex-direction: column; gap: 14px; padding: 16px 0; }
    nav { gap: 10px 16px; }
    .ticker { margin-top: 14px; }
    .features > div { justify-content: flex-start; padding: 12px 8px; }
    .features span { font-size: 18px; }
}
