@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

/* === Tło i animowane gwiazdy === */
:root {
    color-scheme: dark;
    --neon-green: #00ff41;
    --neon-green-soft: #44ff66;
    --neon-cyan: #00e5ff;
    --neon-magenta: #ff00ff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #090a0f;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    color: #e8efe9;
}

#star-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.55);
    animation: twinkle var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
    will-change: opacity;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.15; }
    50%      { opacity: 1; }
}

/* === Układ komunikatu === */
.page-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px 40px;
}

.notice-card {
    display: block;
    width: min(100%, 760px);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid rgba(0, 255, 65, .48);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(0, 255, 65, .055), transparent 48%),
        rgba(5, 10, 15, .82);
    box-shadow:
        0 0 18px rgba(0, 255, 65, .12),
        inset 0 0 24px rgba(0, 255, 65, .035);
    backdrop-filter: blur(3px);
}

/* === Cyberpunkowy nagłówek === */
.alert-heading {
    position: relative;
    display: inline-block;
    margin: 0 0 1rem;
    padding: 10px 14px;
    color: var(--neon-green);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: clamp(1.15rem, 3vw, 1.65rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow:
        0 0 4px var(--neon-green),
        0 0 10px rgba(0, 255, 65, .9),
        0 0 24px rgba(0, 255, 65, .55);
    animation: heading-glitch 5s infinite;
}

.alert-heading::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-green), var(--neon-cyan), transparent);
    box-shadow: 0 0 8px var(--neon-green);
}

@keyframes heading-glitch {
    0%, 94%, 100% {
        transform: translate(0);
        text-shadow: 0 0 4px var(--neon-green), 0 0 10px rgba(0,255,65,.9), 0 0 24px rgba(0,255,65,.55);
    }
    95% {
        transform: translate(-1px, 1px);
        text-shadow: -2px 0 var(--neon-cyan), 2px 0 var(--neon-magenta), 0 0 14px var(--neon-green);
    }
    96% {
        transform: translate(1px, -1px);
        text-shadow: 2px 0 var(--neon-cyan), -2px 0 var(--neon-magenta), 0 0 14px var(--neon-green);
    }
    97% { transform: translate(0); }
}

/* === Treść i stopka === */
.notice-text {
    margin: 0;
    padding: 20px 10px;
    color: var(--neon-green);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: .5px;
    text-shadow: 0 0 5px var(--neon-green), 0 0 16px rgba(0,255,65,.7);
}

.notice-text a {
    color: rgba(246, 250, 227, .9);
    text-underline-offset: 3px;
}

.notice-footer {
    margin: 28px 0 0;
    padding: 10px;
    color: rgba(0, 255, 65, .58);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: .2px;
    text-shadow: none;
}

.notice-footer a {
    color: rgba(246, 250, 227, .82);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease, text-shadow .2s ease;
}

.notice-footer a:hover,
.notice-footer a:focus-visible,
.notice-text a:hover,
.notice-text a:focus-visible {
    color: #e8ef49;
    text-shadow: 0 0 8px rgba(232,239,73,.75);
}

@media (max-width: 480px) {
    .notice-card {
        padding: 18px 12px;
    }
    .alert-heading {
        letter-spacing: .8px;
    }
    .notice-text {
        padding: 14px 4px;
        font-size: 14px;
    }
    .notice-footer {
        margin-top: 18px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .star,
    .alert-heading {
        animation: none;
    }
}

/* === Stopka kontaktowa === */
.site-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 16px;
    padding: 8px 12px;
    color: rgba(0, 255, 65, .62);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: .35px;
    text-align: center;
}

.site-footer a {
    color: rgba(0, 255, 65, .9);
    text-decoration: none;
    text-shadow: 0 0 6px rgba(0, 255, 65, .5);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #e8ef49;
    text-decoration: underline;
    text-underline-offset: 3px;
}
