:root {
    --bg-color: #050507;
    --card-bg: rgba(10, 10, 13, 0.9);
    --accent-red: #ff0033;
    --glitch-cyan: #00ffff;
    --text-dim: #8a8a9e;
    --text-bright: #ffffff;
    --font-mono: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-bright);
    font-family: var(--font-mono);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    animation: static-noise 0.2s infinite;
}

body.shake {
    animation: screen-shake 0.15s cubic-bezier(.36,.07,.19,.97) continuous;
}

@keyframes screen-shake {
    10%, 90% { transform: translate3d(-4px, 2px, 0) rotate(-0.5deg); }
    20%, 80% { transform: translate3d(6px, -4px, 0) rotate(1deg); }
    30%, 50%, 70% { transform: translate3d(-8px, 6px, 0) rotate(-1deg); }
    40%, 60% { transform: translate3d(8px, -4px, 0) rotate(0.5deg); }
}

.ambient-light {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.25) 0%, rgba(0,0,0,0) 70%);
    top: -1000px;
    left: -1000px;
    pointer-events: none;
    transition: transform 0.05s linear;
    z-index: 1;
}

.scanline {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.4) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--accent-red);
    padding: 4.5rem 4rem;
    border-radius: 4px;
    max-width: 750px;
    width: 92%;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.2);
    position: relative;
    z-index: 2;
    transition: transform 0.05s ease;
}

.card.damaged {
    border-color: #ff0000;
    box-shadow: 0 0 50px var(--accent-red), inset 0 0 20px var(--accent-red);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
    margin-right: 12px;
    box-shadow: 0 0 15px var(--accent-red);
    animation: pulse 0.8s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.3); }
}

.status-bar {
    font-size: 0.95rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    text-shadow: 3px 3px 0px var(--accent-red), -3px -3px 0px var(--glitch-cyan);
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

h1::before, h1::after {
    content: attr(id);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-4deg); }
    20% { transform: skew(3deg); }
    30% { transform: skew(0deg); }
    80% { transform: skew(5deg); }
    90% { transform: skew(-2deg); }
    100% { transform: skew(0deg); }
}

p {
    color: var(--text-bright);
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.7;
    margin-bottom: 3rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.timer-box {
    background: rgba(255, 0, 51, 0.05);
    border: 1px solid rgba(255, 0, 51, 0.3);
    padding: 1.25rem;
    border-radius: 4px;
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-box span {
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 0 10px var(--accent-red);
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.btn {
    background: var(--accent-red);
    border: none;
    color: #fff;
    padding: 1.2rem 2rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.1s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.4);
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 25px #fff;
    transform: scale(1.02);
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 0, 51, 0.15);
    pointer-events: none;
    z-index: 99;
    opacity: 0;
}