:root {
    --bg-color: #0d0d0d;
    --text-color: #e0e0e0;
    --accent-color: #00ffcc;
    --accent-color-hover: #00ccaa;
    --card-bg: rgba(25, 20, 15, 0.75);
    --border-color: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-family: 'IBM Plex Mono', monospace;
    --transition-speed: 0.3s;

    --primary-accent: #e56b55;
    --primary-accent-hover: #c44933;
    --text-light: #f4ecd8;}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Glass Brutalism Base */
.glass-brutalist-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}




/* Typography */
h1, h2, h3 { font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
a { color: var(--accent-color); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--text-color); }

/* Layout */
.header { text-align: center; padding: 2rem 1rem; margin: 2rem auto; width: 90%; max-width: 800px; border-radius: 8px; }
.header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; text-shadow: 2px 2px 0px rgba(0,255,204,0.3); }
.header h2 { font-size: 1.2rem; color: #aaa; }

/* Buttons */
.btn-3d {
    display: inline-block; padding: 12px 24px;
    background: transparent; color: var(--accent-color);
    border: 1px solid var(--border-color);
    font-family: var(--font-family); font-weight: bold; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; position: relative; transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 1rem;
}
.btn-3d:hover { transform: translateY(2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); background: rgba(0, 255, 204, 0.1); }
.btn-3d:active { transform: translateY(2px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }

/* Input Fields */
input {
    width: 100%; padding: 12px; margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3); color: var(--text-color);
    border: 1px solid var(--border-color); font-family: var(--font-family);
    transition: border-color var(--transition-speed);
}
input:focus { outline: none; border-color: var(--accent-color); }

/* Auth Views */
.container { display: flex; justify-content: center; align-items: center; flex: 1; padding: 2rem; }
.auth-card { width: 100%; max-width: 400px; padding: 2rem; border-radius: 8px; }
.auth-view { display: none; }
.auth-view.active { display: block; animation: fadeIn 0.5s ease forwards; }
.auth-view h3 { margin-bottom: 1.5rem; text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }

.auth-links { margin-top: 1.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.auth-message { margin-top: 1rem; text-align: center; min-height: 1.5rem; color: #ff5555; }
.auth-message.success { color: var(--accent-color); }

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

/* Drawer */
.drawer-toggle {
    position: fixed; top: 1rem; left: 1rem; z-index: 1000;
    background: var(--bg-color); color: var(--accent-color); border: 1px solid var(--border-color);
    width: 50px; height: 50px; font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: all 0.2s;
}
.drawer-toggle:hover { transform: translate(2px, 2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.drawer {
    position: fixed; top: 0; left: -300px; width: 300px; height: 100vh;
    background: rgba(13, 13, 13, 0.95); backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color); z-index: 1001;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column; padding: 4rem 2rem 2rem;
}
.drawer.is-open { left: 0; }
.drawer-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: var(--text-color); font-size: 2rem;
    cursor: pointer; transition: color 0.3s;
}
.drawer-close:hover { color: var(--accent-color); }
.drawer a {
    font-size: 1.2rem; font-weight: bold; text-transform: uppercase;
    margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem;
}
.drawer a:hover { padding-left: 10px; border-bottom-color: var(--accent-color); }

.footer { text-align: center; padding: 1.5rem; margin-top: auto; border-top: 1px solid var(--border-color); }

@media (max-width: 768px) {
    .header h1 { font-size: 1.8rem; }
    .header { margin-top: 5rem; }
}

/* Quiz Stats Container styles since we injected them into HTMLs */
.quiz-stats-container {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    color: var(--accent-color);
}
.timer-text {
    font-family: var(--font-family);
}
.tally-text {
    color: #fff;
    font-size: 1rem;
}
