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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0f1117;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.hero {
    text-align: center;
    margin: 3rem 0 2rem;
}

.hero h1 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.status {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: #ef4444;
    text-shadow: 0 0 60px rgba(239, 68, 68, 0.4);
    letter-spacing: -0.02em;
}

.status.maintenance {
    font-size: 5rem;
    color: #f97316;
    text-shadow: 0 0 60px rgba(249, 115, 22, 0.4);
}

.status.oui {
    color: #22c55e;
    text-shadow: 0 0 60px rgba(34, 197, 94, 0.4);
}

.counter {
    margin-top: 1rem;
    font-size: 1rem;
    color: #64748b;
}

.counter span {
    color: #f87171;
    font-weight: 600;
}

.stats-section {
    width: 100%;
    max-width: 480px;
    margin-top: 1rem;
}

.stats-section h2 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e293b;
}

.stats-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    gap: 2px;
}

.bar-segment {
    border-radius: 2px;
    transition: opacity 0.2s;
}

.bar-segment:hover { opacity: 0.75; }

.bar-broken  { background: #ef4444; }
.bar-maint   { background: #f97316; }
.bar-working { background: #22c55e; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #1a1f2e;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    text-align: center;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-value.red     { color: #ef4444; }
.stat-value.orange  { color: #f97316; }
.stat-value.green   { color: #22c55e; }
.stat-value.neutral { color: #e2e8f0; }

.stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

.history-section {
    width: 100%;
    max-width: 480px;
    margin-top: 1rem;
}

.history-section h2 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e293b;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: #1a1f2e;
    border-radius: 8px;
    border: 1px solid #1e293b;
    transition: border-color 0.2s;
}

.history-item:hover {
    border-color: #334155;
}

.history-item .date {
    font-size: 0.9rem;
    color: #94a3b8;
}

.history-item .answer {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
}

.history-item .answer.maintenance {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.history-item .answer.oui {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.counter span.working {
    color: #22c55e;
}

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

.falling-card {
    position: absolute;
    top: -100px;
    animation: fall linear forwards;
}

@keyframes fall {
    0%   { transform: translateY(0) rotate(var(--rot, 0deg)); }
    100% { transform: translateY(110vh) rotate(calc(var(--rot, 0deg) + 360deg)); }
}

.hero, .history-section, footer {
    position: relative;
    z-index: 1;
}

#custom-cursor {
    position: fixed;
    width: 48px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

@media (pointer: fine) {
    body {
        cursor: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.1rem;
    }

    .status {
        font-size: 5.5rem;
    }

    .status.maintenance {
        font-size: 3.5rem;
    }
}

footer {
    margin-top: 4rem;
    font-size: 0.75rem;
    color: #94a3b8;
}
