/* --- PREMIUM THEME & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@400;500&display=swap');

:root {
    --bg-dark: #050b14;
    --gold: #FFD700;
    --gold-dim: #b39700;
    --blue-glass: rgba(20, 30, 48, 0.95);
    --text-white: #ffffff;
    --danger: #ff4757;
    --neon-blue: #00d2d3;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 50%, #112240 0%, #050b14 100%);
    color: var(--text-white);
    font-family: 'Roboto', sans-serif;
    padding-bottom: 90px; /* Space for bottom nav */
    overflow-x: hidden;
}

/* --- 1. THE SCORE CARD (Hero Section) --- */
.score-hero {
    text-align: center;
    padding: 30px 15px;
    background: linear-gradient(180deg, rgba(255,215,0,0.15) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.big-score {
    font-size: 5rem;
    font-family: 'Oswald', sans-serif;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    line-height: 1;
    margin: 10px 0;
}

.team-vs { color: #8892b0; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
.overs-badge { 
    background: #222; border: 1px solid var(--gold); color: var(--gold);
    padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 1rem;
    display: inline-block; margin-top: 5px;
}

/* --- 2. THE INTERACTIVE KEYPAD (Big Buttons) --- */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 12px;
    padding: 0 15px;
    max-width: 500px;
    margin: 0 auto;
}

.k-btn {
    position: relative;
    height: 75px;
    border: none;
    border-radius: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: white;
    background: #1e272e;
    box-shadow: 0 5px 0 #000; /* 3D Effect Shadow */
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* Sub-text inside button (e.g. "RUN") */
.k-btn span {
    font-family: 'Roboto', sans-serif;
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: normal;
    margin-top: -2px;
}

/* PRESS ANIMATION (The Interactive Part) */
.k-btn:active {
    transform: translateY(4px); /* Moves down */
    box-shadow: 0 0 0 #000; /* Shadow disappears */
}

/* Specific Colors */
.bg-run { background: linear-gradient(145deg, #2f3640, #1e272e); border: 1px solid #444; }
.bg-four { background: linear-gradient(145deg, #FFD700, #ffa502); color: black; text-shadow: none; box-shadow: 0 5px 0 #b38f00; }
.bg-six { background: linear-gradient(145deg, #00d2d3, #0984e3); color: black; text-shadow: none; box-shadow: 0 5px 0 #0077b3; }
.bg-out { background: linear-gradient(145deg, #ff4757, #c0392b); box-shadow: 0 5px 0 #8b0000; }
.bg-extra { background: #485460; box-shadow: 0 5px 0 #1e272e; }
.bg-undo { 
    grid-column: span 3; /* Full Width */
    background: black; color: #888; border: 1px dashed #444; 
    height: 50px; font-size: 1rem; box-shadow: none;
}

/* --- 3. BOTTOM NAVIGATION (Fixed App Bar) --- */
.nav-bar {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: rgba(10, 20, 35, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.nav-item {
    background: transparent; border: none;
    color: #666;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex; flex-direction: column; align-items: center;
    transition: 0.3s;
    cursor: pointer;
    width: 25%;
}

.nav-item i { font-size: 1.4rem; margin-bottom: 4px; }

/* Active State */
.nav-item.active {
    color: var(--gold);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* --- UTILS --- */
.hidden { display: none !important; }
.premium-card { background: var(--blue-glass); border: 1px solid #333; border-radius: 15px; padding: 20px; margin: 15px; }
input, select { width: 100%; padding: 15px; margin-bottom: 15px; background: #000; border: 1px solid #333; color: white; border-radius: 8px; font-size: 1rem; }
.btn-premium { width: 100%; padding: 15px; background: var(--gold); color: black; border: none; border-radius: 8px; font-weight: bold; font-family: 'Oswald'; font-size: 1.2rem; cursor: pointer; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }