:root {
    --primary: #ff3e00;
    --primary-hover: #ff5e2e;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.title-gradient {
    background: linear-gradient(to right, #ff3e00, #ff8a00, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--primary);
}

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ef4444);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 62, 0, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.player-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.player-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-badge.is-host::after {
    content: " 👑";
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.score-board {
    margin-top: 20px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Specific Game UI */
.game-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.game-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.game-option.selected {
    border-color: var(--primary);
    background: rgba(255, 62, 0, 0.1);
}

.timer {
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}
