:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary: #3b82f6;
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --tile-bg: #e2e8f0;
    --tile-text: #1e293b;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    /* Prevent scrolling on full screen apps */
}

.screen {
    display: none;
    height: 100vh;
    width: 100vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.screen.active {
    display: flex;
}

.hidden {
    display: none !important;
}

/* Landing */
.menu {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

button {
    padding: 15px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Tiles */
.tiles-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.tile {
    width: 60px;
    height: 60px;
    background: var(--tile-bg);
    color: var(--tile-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Display Specific */
#display-ui {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.target-number {
    font-size: 5rem;
    font-weight: bold;
    color: var(--accent);
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.timer {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-color);
    border: 4px solid var(--text-color);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Player Specific */
#player-ui {
    padding: 20px;
    box-sizing: border-box;
}

input {
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 2px solid var(--secondary);
    background: transparent;
    color: white;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Admin Specific */
#admin-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    max-width: 400px;
}

.admin-btn {
    background: var(--secondary);
}

.admin-btn.action {
    background: var(--success);
}

.round-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.operators {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

.operators button {
    padding: 10px 15px;
    font-size: 1.2rem;
    background: var(--secondary);
}