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

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e94560;
    padding: 2rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(233, 69, 96, 0.5); }
    to { text-shadow: 0 0 30px rgba(233, 69, 96, 0.8), 0 0 40px rgba(233, 69, 96, 0.4); }
}

.subtitle {
    color: #a2d2ff;
    font-size: 1rem;
}

.vibe-meter {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.vibe-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #a2d2ff;
    font-size: 0.9rem;
}

#vibe-text {
    font-weight: bold;
    font-size: 1rem;
}

.vibe-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    height: 30px;
    overflow: hidden;
}

.vibe-bar {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.vibe-bar.cosmic {
    background: linear-gradient(90deg, #ff006e, #8338ec, #3a86ff);
    animation: cosmic 2s ease-in-out infinite;
}

.vibe-bar.groovy {
    background: linear-gradient(90deg, #06ffa5, #00ff88);
}

.vibe-bar.meh {
    background: #ffbe0b;
}

.vibe-bar.cursed {
    background: #d62828;
}

@keyframes cosmic {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

.generator {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

#current-number {
    font-size: 4rem;
    font-weight: bold;
    color: #00ff88;
    margin: 2rem 0;
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

#current-number.generating {
    animation: flicker 0.5s ease-in-out;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

button {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: rgba(233, 69, 96, 0.2);
    border-color: #e94560;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.3);
}

#stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #a2d2ff;
    font-size: 0.9rem;
}

.history-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 2rem;
}

.history-section h2 {
    color: #a2d2ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

#history {
    display: grid;
    gap: 1rem;
}

.number-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(162, 210, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.number-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.number-card.blessed {
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.05);
}

.number-card.cursed {
    border-color: rgba(214, 40, 40, 0.5);
    background: rgba(214, 40, 40, 0.05);
}

.number-value {
    font-size: 2rem;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.number-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #a2d2ff;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

footer {
    margin-top: 3rem;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: #a2d2ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #00ff88;
}
