/* ==============================================================================
   news-splash.css — splash di benvenuto news.agi-one.ai (primo accesso)
   Identità News (non Podcast/Games): navy #090b1a, indigo/cyan/emerald/amber dei canali,
   radar segnali + ticker headlines. Unbounded + Inter + JetBrains Mono.
============================================================================== */

:root {
    --nsp-bg: #090b1a;
    --nsp-text: #ffffff;
    --nsp-soft: #cbd5e1;
    --nsp-mute: #94a3b8;
    --nsp-line: rgba(255, 255, 255, 0.12);
    --nsp-indigo: #6366f1;
    --nsp-cyan: #06b6d4;
    --nsp-emerald: #10b981;
    --nsp-rose: #fb7185;
    --nsp-violet: #a855f7;
    --nsp-amber: #f59e0b;
    --nsp-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

html.news-splash-seen #newsSplash,
#newsSplash.is-done {
    display: none !important;
    pointer-events: none !important;
}

html:not(.news-splash-seen):not(.news-splash-leaving) {
    overflow: hidden;
}
html.news-splash-leaving,
html.news-splash-seen {
    overflow: auto;
}

#newsSplash {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, #15193c 0%, var(--nsp-bg) 55%, #05060e 100%);
    color: var(--nsp-text);
    font: 400 16px/1.6 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    color-scheme: dark;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    cursor: pointer;
}
#newsSplash.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#newsSplash :focus-visible {
    outline: 3px solid var(--nsp-cyan);
    outline-offset: 3px;
    border-radius: 10px;
}

.nsp-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.nsp-glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}
.nsp-glow--a {
    width: 55vmax;
    height: 55vmax;
    left: -18vmax;
    top: -22vmax;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 65%);
    animation: nsp-drift 20s ease-in-out infinite alternate;
}
.nsp-glow--b {
    width: 50vmax;
    height: 50vmax;
    right: -16vmax;
    bottom: -22vmax;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 65%);
    animation: nsp-drift 24s ease-in-out infinite alternate-reverse;
}
.nsp-glow--c {
    width: 35vmax;
    height: 35vmax;
    left: 40%;
    bottom: -10vmax;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 65%);
    animation: nsp-drift 16s ease-in-out infinite alternate;
}
/* Righe tipo nastro teleprinter / feed */
.nsp-ticker-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
    background: repeating-linear-gradient(
        0deg,
        transparent 0 22px,
        rgba(165, 180, 252, 0.9) 22px 23px
    );
}
@keyframes nsp-drift {
    to { transform: translate(5vmax, 3vmax) scale(1.06); }
}

.nsp-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px;
}
.nsp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nsp-brand img {
    width: 40px;
    height: 40px;
}
.nsp-brand__name {
    font: 700 18px/1 'Unbounded', 'Outfit', sans-serif;
    letter-spacing: 0.01em;
}
.nsp-brand__name b {
    font-weight: 700;
    background: linear-gradient(120deg, #a5b4fc, #67e8f9, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nsp-sound {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    z-index: 3;
    font: 700 13px/1 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nsp-text);
    border: 1px solid var(--nsp-line);
    background: rgba(15, 23, 42, 0.65);
    transition: border-color 0.2s, background 0.2s;
}
.nsp-sound:hover { border-color: rgba(103, 232, 249, 0.45); }
.nsp-sound i.fas { font-size: 15px; width: 18px; }
.nsp-sound__eq {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}
.nsp-sound__eq i {
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: var(--nsp-cyan);
    transform-origin: bottom;
    animation: nsp-eq 0.9s ease-in-out infinite;
}
.nsp-sound__eq i:nth-child(2) { animation-delay: -0.3s; background: var(--nsp-indigo); }
.nsp-sound__eq i:nth-child(3) { animation-delay: -0.6s; background: var(--nsp-emerald); }
.nsp-sound__eq i:nth-child(4) { animation-delay: -0.15s; background: var(--nsp-amber); }
.nsp-sound[aria-pressed="true"] {
    border-color: rgba(6, 182, 212, 0.65);
    background: rgba(6, 182, 212, 0.12);
}
.nsp-sound[aria-pressed="true"] .nsp-sound__eq { display: inline-flex; }
.nsp-sound[aria-pressed="true"] i.fas { display: none; }
@keyframes nsp-eq {
    0%, 100% { transform: scaleY(0.25); }
    50% { transform: scaleY(1); }
}

.nsp-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px 90px;
}
.nsp-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 28px;
    padding: 8px 16px;
    border-radius: 999px;
    font: 700 12px/1 var(--nsp-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nsp-soft);
    border: 1px solid rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.14);
}
.nsp-pill i {
    font-size: 7px;
    color: var(--nsp-emerald);
    animation: nsp-blink 1.2s infinite;
}
.nsp-pill b {
    color: var(--nsp-cyan);
    min-width: 3ch;
    text-align: right;
}
@keyframes nsp-blink { 50% { opacity: 0.25; } }

.nsp-title {
    margin: 0;
    font: 900 clamp(38px, 7.5vw, 104px)/0.98 'Unbounded', 'Outfit', sans-serif;
    letter-spacing: -0.03em;
    animation: nsp-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
.nsp-title span {
    background: linear-gradient(120deg, #a5b4fc, #67e8f9 45%, #34d399 85%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: nsp-shine 7s ease-in-out infinite alternate;
}
@keyframes nsp-shine { to { background-position: 100% 0; } }
@keyframes nsp-rise {
    from { opacity: 0; transform: translateY(22px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.nsp-type {
    margin: 34px 0 0;
    min-height: 1.6em;
    font: 400 clamp(16px, 2vw, 24px)/1.5 var(--nsp-mono);
    color: var(--nsp-soft);
}
.nsp-caret {
    display: inline-block;
    width: 0.55em;
    height: 1.05em;
    margin-left: 4px;
    vertical-align: -0.12em;
    background: var(--nsp-cyan);
    animation: nsp-blink 1s steps(1) infinite;
}
.nsp-press {
    margin: 46px 0 0;
    font: 700 13px/1 'Unbounded', 'Outfit', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--nsp-cyan);
    animation: nsp-blink 1.4s steps(1) infinite;
}

/* Nastro headlines in basso (CSS), distinto dal boot Games/Podcast */
.nsp-feed {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 72px;
    z-index: 1;
    overflow: hidden;
    height: 28px;
    border-block: 1px solid rgba(165, 180, 252, 0.18);
    background: rgba(9, 11, 26, 0.55);
    backdrop-filter: blur(6px);
    pointer-events: none;
}
.nsp-feed__track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    width: max-content;
    padding: 5px 0;
    font: 600 12px/1.5 var(--nsp-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nsp-mute);
    animation: nsp-marquee 42s linear infinite;
}
.nsp-feed__track b {
    color: var(--nsp-amber);
    font-weight: 700;
}
.nsp-feed__track span[data-ch="ai"] { color: var(--nsp-indigo); }
.nsp-feed__track span[data-ch="tech"] { color: var(--nsp-cyan); }
.nsp-feed__track span[data-ch="sci"] { color: var(--nsp-emerald); }
.nsp-feed__track span[data-ch="bot"] { color: var(--nsp-rose); }
@keyframes nsp-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.nsp-boot {
    position: absolute;
    left: 32px;
    bottom: 28px;
    z-index: 2;
    width: 340px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid var(--nsp-line);
    backdrop-filter: blur(8px);
    pointer-events: none;
}
.nsp-boot__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--nsp-line);
    font: 400 11px/1 var(--nsp-mono);
    color: var(--nsp-mute);
}
.nsp-boot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #fb7185; }
.nsp-boot__bar i:nth-child(2) { background: #f59e0b; }
.nsp-boot__bar i:nth-child(3) { background: #10b981; }
.nsp-boot__bar span { margin-left: 8px; }
.nsp-boot pre {
    margin: 0;
    padding: 12px 14px;
    min-height: 124px;
    font: 400 12px/1.6 var(--nsp-mono);
    color: var(--nsp-soft);
    white-space: pre;
}
.nsp-boot pre b { color: var(--nsp-cyan); font-weight: 700; }

.nsp-legal {
    position: absolute;
    right: 32px;
    bottom: 28px;
    z-index: 2;
    display: flex;
    gap: 16px;
    font: 400 12px/1 var(--nsp-mono);
}
.nsp-legal a {
    color: var(--nsp-mute);
    text-decoration: none;
    cursor: pointer;
}
.nsp-legal a:hover {
    color: var(--nsp-text);
    text-decoration: underline;
}

@media (max-width: 760px) {
    .nsp-top { padding: 18px 16px; }
    .nsp-brand__name { font-size: 15px; }
    .nsp-sound__label { display: none; }
    .nsp-boot { display: none; }
    .nsp-feed { bottom: 52px; }
    .nsp-legal {
        right: 16px;
        left: 16px;
        bottom: 16px;
        justify-content: center;
    }
    .nsp-main { padding-bottom: 100px; }
    .nsp-pill { font-size: 11px; letter-spacing: 0.1em; }
    .nsp-press { font-size: 11px; letter-spacing: 0.14em; }
}
@media (prefers-reduced-motion: reduce) {
    #newsSplash *,
    .nsp-glow,
    .nsp-feed__track {
        animation: none !important;
        transition: none !important;
    }
}
