* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --danger-red: #d32f2f;
    --danger-dark: #b71c1c;
    --warning-yellow: #ffd600;
    --bg-dark: #0a0a0a;
    --bg-slightly-less-dark: #1a1a1a;
    --text-light: #e0e0e0;
    --sign-bg: #1c1c1c;
    --sign-border: #ff1744;
}

html {
    overflow-y: auto;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Share Tech Mono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ---- HAZARD TAPE ---- */
.hazard-tape {
    width: 100%;
    height: 28px;
    background: repeating-linear-gradient(
        -45deg,
        var(--warning-yellow),
        var(--warning-yellow) 20px,
        #111 20px,
        #111 40px
    );
    position: fixed;
    z-index: 100;
    animation: scroll-tape 2s linear infinite;
}

.hazard-tape.top { top: 0; }
.hazard-tape.bottom { bottom: 0; }

@keyframes scroll-tape {
    from { background-position: 0 0; }
    to { background-position: 56px 0; }
}

/* ---- MAIN ---- */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 50px 20px;
    max-width: 700px;
    width: 100%;
}

/* ---- WARNING LIGHTS ---- */
.warning-light-container {
    display: flex;
    gap: 40px;
}

.warning-light {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger-red);
    box-shadow: 0 0 20px var(--danger-red), 0 0 60px var(--danger-red);
    animation: blink 0.8s ease-in-out infinite;
}

.warning-light.delay {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 20px var(--danger-red), 0 0 60px var(--danger-red); }
    50% { opacity: 0.15; box-shadow: 0 0 5px var(--danger-red); }
}

/* ---- SIGN ---- */
.sign-container {
    position: relative;
    padding: 8px;
}

.sign {
    border: 4px solid var(--sign-border);
    border-radius: 8px;
    padding: 4px;
    background: var(--sign-bg);
    box-shadow:
        0 0 30px rgba(255, 23, 68, 0.3),
        inset 0 0 30px rgba(255, 23, 68, 0.05);
    animation: sign-pulse 3s ease-in-out infinite;
}

.sign-inner {
    border: 2px dashed rgba(255, 23, 68, 0.4);
    border-radius: 4px;
    padding: 30px 60px;
    text-align: center;
}

@keyframes sign-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 23, 68, 0.3), inset 0 0 30px rgba(255, 23, 68, 0.05); }
    50% { box-shadow: 0 0 50px rgba(255, 23, 68, 0.5), inset 0 0 50px rgba(255, 23, 68, 0.1); }
}

.skull {
    font-size: 3rem;
    margin-bottom: 5px;
    animation: skull-shake 4s ease-in-out infinite;
}

@keyframes skull-shake {
    0%, 90%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(-5deg); }
    94% { transform: rotate(5deg); }
    96% { transform: rotate(-5deg); }
    98% { transform: rotate(5deg); }
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5.5rem;
    color: var(--danger-red);
    letter-spacing: 12px;
    text-shadow:
        0 0 20px rgba(255, 23, 68, 0.6),
        0 0 40px rgba(255, 23, 68, 0.3),
        0 0 80px rgba(255, 23, 68, 0.15);
    line-height: 1;
    animation: text-flicker 5s infinite;
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.7; }
    94% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
}

.subtitle {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: var(--warning-yellow);
    letter-spacing: 6px;
    margin-top: 8px;
}

.you {
    color: var(--danger-red);
    font-size: 2rem;
    text-decoration: underline;
    text-decoration-style: wavy;
    animation: you-pulse 1.5s ease-in-out infinite;
}

@keyframes you-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); display: inline-block; }
}

.you {
    display: inline-block;
}

/* ---- BOLTS ---- */
.sign-bolts .bolt {
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 40% 40%, #666, #222);
    border-radius: 50%;
    border: 1px solid #444;
}

.bolt::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #888;
    font-size: 10px;
    font-weight: bold;
}

.bolt.top-left { top: 0; left: 0; }
.bolt.top-right { top: 0; right: 0; }
.bolt.bottom-left { bottom: 0; left: 0; }
.bolt.bottom-right { bottom: 0; right: 0; }

/* ---- THREAT LEVEL ---- */
.threat-level {
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.3);
    border-radius: 6px;
    padding: 10px 25px;
    text-align: center;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.threat-level .label {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
}

.threat-level .level {
    color: var(--danger-red);
    font-weight: bold;
    letter-spacing: 3px;
    animation: threat-blink 2s steps(1) infinite;
}

@keyframes threat-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---- WARNINGS ---- */
.warnings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 520px;
}

.warning-item {
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
    padding: 6px 10px;
    border-left: 3px solid var(--warning-yellow);
    background: rgba(255, 214, 0, 0.03);
    transition: all 0.3s ease;
}

.warning-item:hover {
    background: rgba(255, 214, 0, 0.08);
    color: #ddd;
    transform: translateX(4px);
}

.warning-item strong {
    color: var(--warning-yellow);
}

/* ---- LEGAL ---- */
.legal {
    font-size: 0.7rem;
    color: #555;
    text-align: center;
    max-width: 480px;
    line-height: 1.6;
}

.legal strong {
    color: #777;
}

/* ---- LEAVE BUTTON ---- */
.leave-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    padding: 14px 40px;
    background: transparent;
    color: var(--danger-red);
    border: 2px solid var(--danger-red);
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leave-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 23, 68, 0.1), transparent);
    transition: left 0.5s;
}

.leave-btn:hover::before {
    left: 100%;
}

.leave-btn:hover {
    background: rgba(255, 23, 68, 0.1);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.3);
    transform: scale(1.02);
}

.leave-btn:active {
    transform: scale(0.98);
}

.leave-btn.panicking {
    animation: panic 0.1s linear infinite;
}

@keyframes panic {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -2px); }
    100% { transform: translate(1px, 2px); }
}

/* ---- FINE PRINT ---- */
.fine-print {
    font-size: 0.75rem;
    color: var(--danger-red);
    text-align: center;
    min-height: 1.5em;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fine-print.visible {
    opacity: 1;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    h1 {
        font-size: 3.5rem;
        letter-spacing: 6px;
    }

    .sign-inner {
        padding: 20px 30px;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .threat-level {
        flex-direction: column;
        gap: 4px;
    }

    .leave-btn {
        font-size: 0.7rem;
        padding: 12px 25px;
    }
}
