:root {
    --bg-color: #0c0812;
    --text-color: #e5ccff;
    --accent-purple: #c084fc;
    --accent-hot: #f97316;
    --accent-glow: rgba(192, 132, 252, 0.7);
    --bomb-glow: rgba(249, 115, 22, 0.8);
    --border-color: #3b2853;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s;
}

/* Red flashing body class for explosion */
body.danger-mode {
    background-color: #2b0c10;
}

#explosion-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 999;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 10;
    position: relative;
}

header {
    text-align: center;
    animation: slideDown 0.8s ease-out;
}

.glow-title {
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
    margin-bottom: 0.5rem;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="20" font-size="20">💥</text></svg>'), auto;
}

.glow-title:hover {
    color: var(--accent-hot);
    text-shadow: 0 0 10px var(--bomb-glow), 0 0 25px var(--bomb-glow);
}

.subtitle {
    color: var(--accent-purple);
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 700;
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: rgba(59, 40, 83, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    animation: fadeIn 1.2s ease-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
    border-color: var(--accent-purple);
}

.card h2 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-purple);
    display: inline-block;
    padding-bottom: 0.2rem;
}

.card p {
    margin-bottom: 1.2rem;
}

.traits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.traits li {
    background: rgba(192, 132, 252, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-purple);
}

.traits li strong {
    color: var(--accent-purple);
}

#ignite-btn {
    background-color: transparent;
    border: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: bold;
    font-size: 1rem;
    cursor: crosshair;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#ignite-btn:hover {
    background-color: var(--accent-hot);
    border-color: var(--accent-hot);
    color: #fff;
    box-shadow: 0 0 15px var(--bomb-glow);
    transform: scale(1.05);
}

.hidden {
    display: none;
}

#explosion-msg {
    margin-top: 20px;
    padding: 15px;
    background: rgba(249, 115, 22, 0.1);
    border-left: 4px solid var(--accent-hot);
    border-radius: 8px;
    color: #fff;
    animation: fadeIn 0.5s ease;
}

#explosion-msg p {
    margin: 0;
}

.tease {
    color: var(--accent-hot);
    font-style: italic;
    margin-top: 5px !important;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Particle animation for explosion */
.particle {
    position: absolute;
    border-radius: 50%;
    animation: explode 1s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes explode {
    0% { transform: scale(0) translate(0, 0); opacity: 1; }
    100% { transform: scale(1.5) translate(var(--dx), var(--dy)); opacity: 0; }
}