:root {
    --primary: #ff0055;
    --secondary: #00f0ff;
    --bg-dark: #0f0c29;
    --bg-mid: #302b63;
    --bg-light: #24243e;
    --text-main: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid), var(--bg-light));
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

#app {
    width: 100%;
    max-width: 800px;
    min-height: 100vh;
    height: auto;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
    color: transparent;
    -webkit-text-stroke: 2px var(--secondary);
    text-shadow: 0 0 20px var(--secondary);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    outline: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.grade-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.btn-grade {
    background: linear-gradient(90deg, var(--primary), #ff0088);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 1.2rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4);
}

.btn-grade:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 0, 85, 0.6);
}

.btn-grade:active {
    transform: translateY(1px);
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats {
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    gap: 20px;
}

#streak-display {
    color: #ffcc00;
}

.btn-small {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
}

.btn-small:hover {
    background: white;
    color: var(--bg-dark);
}

/* Mentor */
.mentor-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    align-self: flex-start;
}

.mentor-avatar {
    font-size: 3rem;
    background: var(--glass-bg);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
}

.mentor-speech {
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    border-bottom-left-radius: 0;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Question Area */
.question-container {
    width: 100%;
    text-align: center;
}

#question-text {
    font-size: 2rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--secondary);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.5rem;
}

.btn-option:hover {
    background: var(--secondary);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.btn-option.correct {
    background: #00ff00;
    border-color: #00ff00;
    color: black;
}

.btn-option.wrong {
    background: #ff0000;
    border-color: #ff0000;
    animation: shake 0.5s;
}

/* Overlay / Meme */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.meme-content {
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#meme-text {
    font-size: 3rem;
    color: #ffcc00;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 20px #ffcc00;
}

.btn-large {
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.5rem;
}

.btn-large:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    #question-text { font-size: 1.5rem; }
    .options-grid { grid-template-columns: 1fr; }
}

.dedication {
    margin-top: 50px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 1px;
    animation: popIn 1s ease 0.5s both;
}
