:root {
    --bg-deep: #020617;
    --bg-card: #0f172a;
    --primary: #7c3aed; /* Electric Violet */
    --secondary: #10b981; /* Emerald */
    --text-high: #f8fafc;
    --text-low: #94a3b8;
    --danger: #ef4444;
    --radius-lg: 16px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background: var(--bg-deep);
    color: var(--text-high);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#game-app {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

/* Header & Stats */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    letter-spacing: 3px;
    background: linear-gradient(to right, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.stat-item {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Views */
section { display: none; }
section.active { display: block; animation: fadeIn 0.5s ease; }

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

/* Hero/Menu */
.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
}

.hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }

.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 3rem;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    text-align: center;
}

/* Main Game Layout */
.game-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .game-layout { grid-template-columns: 350px 1fr; align-items: start; }
}

/* Poster Styling */
.poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    background: #000;
}

#main-poster { width: 100%; height: 100%; object-fit: cover; transition: filter var(--transition); }

#rating-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 800;
    color: #fbbf24;
}

/* Clue Dashboard */
.clue-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.clue-card {
    background: var(--bg-card);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.full-width { grid-column: span 2; }

.clue-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.clue-val { font-size: 1rem; line-height: 1.5; transition: 0.3s; }
.clue-val.blurred { filter: blur(8px); opacity: 0.3; user-select: none; }

/* Search & Dropdown */
.input-wrapper { position: relative; margin-bottom: 1rem; }

input {
    width: 100%;
    background: var(--bg-card);
    border: 2px solid transparent;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1); }

.dropdown {
    position: absolute;
    top: 110%; left: 0; right: 0;
    background: #1e293b;
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
}

.dropdown-item {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-item:hover { background: var(--primary); }

/* Buttons */
button {
    cursor: pointer;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--transition);
    font-family: inherit;
}

.btn-glow {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.btn-glow:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(124, 58, 237, 0.6); }

.btn-group { display: flex; gap: 0.5rem; }
.btn-secondary { background: #334155; color: white; flex: 2; padding: 1rem; }
.btn-ghost { background: transparent; border: 1px solid #334155; color: var(--text-low); flex: 1; }

.hidden { display: none !important; }

/* Blur Classes */
.blur-5 { filter: blur(50px); }
.blur-4 { filter: blur(30px); }
.blur-3 { filter: blur(18px); }
.blur-2 { filter: blur(10px); }
.blur-1 { filter: blur(4px); }
.blur-0 { filter: blur(0); }