/* ULTRA STYLE - DARK PREMIUM THEME */

:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #3b82f6;
    --accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --green: #10b981;
    --red: #ef4444;
    --violet: #8b5cf6;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    line-height: 1.5;
}

.auth-box,
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* HEADER */
header {
    background: rgba(15, 23, 42, 0.9);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-weight: 700;
    color: var(--primary);
}

.badge {
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
}

/* LANDING */
.landing-container {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.auth-box {
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
    min-height: auto;
}

input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: #0f172a;
    border: 1px solid #334155;
    color: var(--text-main);
    border-radius: 6px;
}

button {
    width: 100%;
    padding: 12px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* GAME BOARD */
.game-board {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.timer-box {
    font-size: 3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 1rem 0;
}

#status-msg {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CONTROLS */
.controls {
    padding: 1.5rem;
}

.color-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 1rem;
}

.btn-color {
    padding: 1rem;
    font-size: 0.9rem;
    border: 2px solid transparent;
    color: white;
}

.btn-color.green {
    background: var(--green);
}

.btn-color.red {
    background: var(--red);
}

.btn-color.violet {
    background: var(--violet);
}

.btn-color.selected {
    border-color: white;
    transform: scale(1.05);
}

.btn-color:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-predict {
    background: var(--accent);
    color: white;
    margin-top: 10px;
}

/* HISTORY */
.history-section {
    padding: 1rem;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.history-table th,
.history-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #334155;
}

/* DISCLAIMER */
.disclaimer-box {
    background: #334155;
    color: #e2e8f0;
    padding: 1rem;
    font-size: 0.8rem;
    text-align: center;
    margin: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}