:root {
    --primary: #6366f1;
    --secondary: #a855f7;
    --accent: #ec4899;
    --background: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--background);
    color: var(--text);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#game-container {
    width: 95vw;
    height: 90vh;
    min-width: 1000px;
    min-height: 700px;
    position: relative;
    background: radial-gradient(circle at top left, #1e293b, #0f172a);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.glass-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.2;
    z-index: 0;
}

#game-header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.game-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.level-info, .lives-info {
    font-size: 1.1rem;
    font-weight: 600;
}

#game-area {
    width: 100%;
    flex: 1;
    position: relative;
    overflow: auto; /* Taşmalar için scroll */
    background: rgba(0, 0, 0, 0.2);
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

/* UI Overlays */
#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Sağ tarafa yasla */
    align-items: center;
    padding-right: 50px; /* Kenardan boşluk */
    z-index: 20;
    transition: all 0.5s ease;
    pointer-events: none; /* Arkayı tıklanabilir yap */
}

#ui-overlay .question-card {
    pointer-events: auto; /* Sadece kart tıklanabilir olsun */
    width: 450px; /* Biraz daraltarak parabolü açalım */
}

#screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: all 0.5s ease;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.question-card {
    width: 450px;
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.question-header {
    margin-bottom: 25px;
}

.badge {
    background: linear-gradient(90deg, #f472b6, #fb7185);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(244, 114, 182, 0.3);
}

#question-text {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

#options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--text);
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--primary);
}

.option-btn.correct {
    background: #10b981 !important;
    border-color: #059669;
}

.option-btn.wrong {
    background: #ef4444 !important;
    border-color: #dc2626;
}

/* Screens */
#menu-content, #feedback-content, #game-over-content {
    text-align: center;
    padding: 40px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #94a3b8;
}

.status-gif {
    max-width: 200px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Buttons */
.glow-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.glow-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.glow-button:active {
    transform: translateY(0);
}

#game-controls {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.primary {
    padding: 18px 60px;
    font-size: 1.4rem;
}
