/* =========================================
   PART 1: INDEX / LANDING PAGE STYLES
   (Preserved Exactly as requested)
   ========================================= */

:root {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-white: #ffffff;
    
    /* Sport Brand Colors */
    --football-accent: #00ff85;
    --football-grad: linear-gradient(135deg, #2a002e 0%, #38003c 100%);
    
    --nba-accent: #ff9f1c;
    --nba-grad: linear-gradient(135deg, #002D62 0%, #1d428a 100%);
    
    --nfl-accent: #013369;
    --nfl-grad: linear-gradient(135deg, #013369 0%, #001f3f 100%);
    
    --mlb-accent: #E31837;
    --mlb-grad: linear-gradient(135deg, #002D62 0%, #0a1e38 100%);
    
    --nhl-accent: #A2AAAD;
    --nhl-grad: linear-gradient(135deg, #111111 0%, #333333 100%);

    --rfu-accent: #d4af37; /* Rugby Gold */
    --rfu-primary: #004d2c; /* Deep Rugby Green */
    --rfu-grad: linear-gradient(135deg, #004d2c 0%, #002b18 100%);

    --cricket-accent: #f89d2a; /* IPL Gold/Orange */
    --cricket-grad: linear-gradient(135deg, #1e3a8a 0%, #000000 100%);

    /* SHARED VARS for Game UI */
    --accent: var(--football-accent); 
    --danger: #ff4757;
    --warning: #ff9f1c;
    --radius: 16px;
    --font-main: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding-bottom: 80px; 
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; }

/* --- TOPBAR --- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px; 
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    position: sticky; top: 0; z-index: 1000;
}
.brand { font-size: 1.5rem; font-weight: 800; font-style: italic; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;}
.brand-highlight { color: #fff; font-weight: 400; margin-left: 4px; }
.topbar-actions { display: flex; gap: 20px; }
.action-link { font-size: 0.9rem; font-weight: 700; color: #888; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.action-link:hover { color: #fff; }
.action-link.highlight { color: var(--football-accent); }

/* --- AD CONTAINERS --- */
.ad-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #000; padding: 20px 0; width: 100%;
}
.ad-mid { margin: 40px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.ad-label { font-size: 0.6rem; color: #444; letter-spacing: 1px; margin-bottom: 5px; }
.ad-placeholder { width: 300px; height: 250px; background: #111; display: flex; align-items: center; justify-content: center; color: #333; border: 1px dashed #333; }

/* =========================================
   BETTING APP STYLE NAVIGATION
   ========================================= */

.sport-filter-container {
    position: sticky;
    top: 60px; /* Sits below the main topbar */
    z-index: 100;
    background: #1a1a1a;
    padding: 15px 0 10px 0;
    border-bottom: 1px solid #333;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for a cleaner look */
.sport-filter-container::-webkit-scrollbar {
    display: none;
}

.filter-scroll {
    display: flex;
    gap: 25px; /* Spacing for vertical stacking */
    padding: 0 25px;
    width: max-content;
    margin: 0 auto;
}

.filter-pill {
    display: flex;
    flex-direction: column; /* Icon over Text */
    align-items: center;
    gap: 8px;
    background: none;
    color: #888;
    transition: all 0.2s ease;
    min-width: 60px;
    border-radius: 0; /* Remove pill shape */
    padding: 0;
}

/* Icon Container - The betting app "Circle" look */
.filter-pill i {
    width: 50px;
    height: 50px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: inherit;
    border: 2px solid transparent;
}

/* Label Text */
.filter-pill span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-pill.active { color: #fff; }

.filter-pill.active i {
    background: var(--football-grad);
    border-color: var(--football-accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 255, 133, 0.2);
}

/* Specific Sport Hover/Active Accents */
.filter-pill[href*="nba"].active i { background: var(--nba-grad); border-color: var(--nba-accent); }
.filter-pill[href*="nfl"].active i { background: var(--nfl-grad); border-color: #fff; }
.filter-pill[href*="mlb"].active i { background: var(--mlb-grad); border-color: var(--mlb-accent); }
.filter-pill[href*="rfu"].active i { background: var(--rfu-grad); border-color: var(--rfu-accent); }
.filter-pill[href*="cri"].active i { background: var(--cri-grad); border-color: var(--cri-accent); }

/* --- MAIN CONTENT & ROWS --- */
.main-content { 
    padding: 40px 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.sport-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

/* Vertical Left Label */
.row-label {
    flex: 0 0 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-left-width: 5px;
    border-left-style: solid;
    background: rgba(255,255,255,0.03);
    border-radius: 8px 0 0 8px;
}
.label-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Colors */
.football-border { border-color: var(--football-accent); }
.football-text { color: var(--football-accent); }
.nba-border { border-color: var(--nba-accent); }
.nba-text { color: var(--nba-accent); }
.nfl-border { border-color: var(--nfl-accent); }
.nfl-text { color: #fff; }
.mlb-border { border-color: var(--mlb-accent); }
.mlb-text { color: var(--mlb-accent); }
.nhl-border { border-color: var(--nhl-accent); }
.nhl-text { color: var(--nhl-accent); }
.rfu-border { border-color: var(--rfu-accent); }
.rfu-text { color: var(--rfu-accent); }
.cri-border { border-color: var(--rfu-accent); }
.cri-text { color: var(--cri-accent); }


/* Grid for Cards */
.game-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px;
}

.game-card {
    position: relative;
    border-radius: 16px;
    padding: 30px 25px;
    min-height: 160px;
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden;
    background-color: var(--bg-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s;
    cursor: pointer;
}
.game-card:hover { transform: translateY(-3px); }

/* Gradients */
.football-gradient { background: var(--football-grad); }
.football-dark { background: #150016; border: 1px solid #38003c; }
.nba-gradient { background: var(--nba-grad); }
.nba-dark { background: #001226; border: 1px solid #002D62; }
.nfl-gradient { background: var(--nfl-grad); }
.nfl-dark { background: #000c1a; border: 1px solid #013369; }
.mlb-gradient { background: var(--mlb-grad); }
.mlb-dark { background: #000c1a; border: 1px solid #002D62; }
.nhl-gradient { background: var(--nhl-grad); }
.nhl-dark { background: #080808; border: 1px solid #333; }
.rfu-gradient { background: var(--rfu-grad); }
.rfu-dark { 
    background: #001a0e; 
    border: 1px solid var(--rfu-primary); 
}
.cricket-theme {
    --accent: #f89d2a; /* IPL Gold */
    --row-grad: linear-gradient(135deg, #1e3a8a 0%, #000000 100%);
}

.cricket-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-left: 3px solid #f89d2a;
}
/* Specific Mode Typography */
.color-gold { color: var(--rfu-accent) !important; }

/* Card Typography */
.card-bg-icon {
    position: absolute; top: -10px; right: -10px;
    font-size: 8rem; opacity: 0.1; transform: rotate(-15deg);
    pointer-events: none;
}
.card-info h3 { margin: 0 0 10px 0; font-size: 1.6rem; font-style: italic; line-height: 1; color: #fff; }
.card-cta { font-size: 0.75rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Specific Text Colors */
.color-danger { color: #ff0055 !important; }
.color-orange { color: var(--nba-accent) !important; }
.color-silver { color: #ccc !important; }
.color-red { color: var(--mlb-accent) !important; }
.color-blue { color: #4fc3f7 !important; }

}
/* --- MOBILE RESPONSIVENESS (INDEX) --- */
@media (max-width: 600px) {
    .topbar { padding: 15px 20px; }
    .hide-mobile { display: none; }
    .filter-scroll { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sport-row { flex-direction: column; gap: 10px; }
    .row-label {
        width: 100%; height: auto; flex: none;
        border-left: none; border-bottom-width: 3px; border-bottom-style: solid;
        border-radius: 8px 8px 0 0; padding: 10px;
        justify-content: flex-start;
    }
    .label-text {
        writing-mode: horizontal-tb; transform: none;
        font-size: 0.9rem;
    }
    .game-grid { grid-template-columns: 1fr; }
    .card-bg-icon { font-size: 6rem; }
}

/* =========================================
   PART 2: GAME UI & SPECIFIC MODES
   (Badges, Who Am I, HUD)
   ========================================= */

/* Utility */
.d-none { display: none !important; }

/* Game Container Surface */
.game-card-surface {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #333; border-radius: 12px;
    padding: 20px; margin: 20px auto; max-width: 600px; width: 95%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5); position: relative;
	border-radius: 24px; /* Increased curvature */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 24px;
}

/* HUD */
.hud-row {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,0,0,0.3); padding: 12px 20px;
    border-radius: 8px; margin-bottom: 20px; border: 1px solid #333;
	margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}
.hud-stat { font-weight: 700; font-size: 0.85rem; color: #aaa; letter-spacing: 1px; }
.hud-val { color: var(--accent); font-size: 1.2rem; margin-left: 5px; font-weight: 700; }

/* --- WHO AM I? / LEGEND MODE STYLES --- */

/* 1. Intro Quote Box */
.wai-intro {
    font-size: 1rem; color: #ccc; font-style: italic; text-align: center;
    padding: 15px; background: rgba(255,255,255,0.05);
    border-radius: 8px; margin-bottom: 20px;
    border-left: 3px solid var(--accent);
}
.wai-intro i { color: #555; margin: 0 5px; font-size: 0.8rem; }

/* 2. Timeline Feed */
.timeline-feed {
    display: flex; flex-direction: column; max-height: 350px; /* Taller area */
    gap: 8px; overflow-y: auto;
    padding: 5px; margin-bottom: 15px;
    border-top: 1px solid #333; border-bottom: 1px solid #333;
    background: #121212;
}
.timeline-item {
    background: rgba(255,255,255,0.03);
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 3px solid var(--active-accent);
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-item:last-child {
    background: rgba(255,255,255,0.06);
    border-left-color: #fff;
}
.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-action {
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-action:active { transform: scale(0.98); }

/* Skip Button (Red) */
.btn-skip {
    background: var(--color-skip-bg);
    color: var(--color-skip);
    border-color: rgba(255, 82, 82, 0.2);
}
.btn-skip:hover {
    background: rgba(255, 82, 82, 0.2);
    border-color: var(--color-skip);
}

/* Hint Button (Yellow) */
.btn-hint {
    background: var(--color-hint-bg);
    color: var(--color-hint);
    border-color: rgba(255, 215, 0, 0.2);
}
.btn-hint:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--color-hint);
}

/* Input Field Polish */
.game-input-field {
    padding: 18px;
    background: #000;
    border-radius: 12px;
}
/* Feed Scrollbar */
.timeline-feed::-webkit-scrollbar { width: 6px; }
.timeline-feed::-webkit-scrollbar-track { background: #121212; }
.timeline-feed::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* 3. Clue Card */
.clue-card {
    display: flex; align-items: center;
    background: #1e1e1e; padding: 12px;
    border-radius: 10px; border: 1px solid #333;
    opacity: 0; transform: translateY(10px);
    animation: popIn 0.4s ease forwards;
    flex-shrink: 0;
}

.clue-visual {
    width: 50px; height: 50px; flex-shrink: 0; margin-right: 15px;
    display: flex; align-items: center; justify-content: center;
}
.clue-img {
    width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.clue-icon-box {
    width: 40px; height: 40px; background: #333;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #888; font-size: 1.1rem;
}
.clue-info { flex-grow: 1; }
.clue-context { font-size: 0.9rem; color: #fff; font-weight: 500; line-height: 1.3; }

/* 4. Inputs & Autocomplete */
.input-wrapper { position: relative; width: 100%; }
.game-input-field {
    width: 100%; padding: 15px; background: #222; border: 2px solid #444; 
    color: #fff; border-radius: 8px; font-size: 1rem; outline: none;
    transition: border-color 0.3s;
}
#daily-guess-input {
    width: 100%; padding: 15px; background: #222; border: 2px solid #444; 
    color: #fff; border-radius: 8px; font-size: 1rem; outline: none;
    transition: border-color 0.3s;
}
#daily-guess-input:focus { border-color: var(--accent); background: #2a2a2a; }

#daily-suggestions {
    position: absolute; bottom: 100%; left: 0; width: 100%;
    background: #2a2a2a; border: 1px solid #444; border-radius: 8px;
    max-height: 200px; overflow-y: auto; z-index: 100;
    display: none;
}
#daily-suggestions:not(:empty) { display: block; }

.suggestion-item { padding: 12px; border-bottom: 1px solid #333; cursor: pointer; color: #ddd; }
.suggestion-item:hover { background: var(--accent); color: #000; }

/* 5. Puzzle / Badge Styles (Arcade & Daily Badge) */
.puzzle-container {
    display: flex; justify-content: center; align-items: center;
    min-height: 200px; margin: 20px 0;
    background-color: #ffffff;
}
.puzzle-img {
    max-width: 180px; max-height: 180px;
    transition: filter 0.5s ease;
}
.blur-max { filter: blur(10px) grayscale(100%); }
.blur-med { filter: blur(6px) grayscale(75%); }
.blur-low { filter: blur(2px) grayscale(30%); }
.blur-none { filter: blur(0) grayscale(0); }

/* 6. Buttons */
.hint-btn-minimal {
    width: 100%; padding: 12px; background: #333; border: 1px solid #555;
    color: #fff; border-radius: 8px; cursor: pointer; font-weight: 600;
    margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s;
}
.hint-btn-minimal:hover:not(:disabled) { background: #444; border-color: #777; }
.hint-btn-minimal:disabled { opacity: 0.5; cursor: not-allowed; background: #1a1a1a; }

.btn-primary { 
    background: var(--accent); color: #000; width: 100%; height: 50px; 
    border-radius: 8px; font-weight: 800; border: none; font-size: 1rem; 
    text-transform: uppercase; letter-spacing: 1px;
    transition: transform 0.1s;
}
.btn-primary:active { transform: scale(0.98); }

.btn-daily {
    background: #ff9f1c; color: #000; width: 100%; height: 50px; 
    border-radius: 8px; font-weight: 800; border: none; margin-bottom: 10px;
}
.btn-daily-legend {
    background: #0091d2; color: #fff; width: 100%; height: 50px; 
    border-radius: 8px; font-weight: 800; border: none;
}

/* Filters (Selects) */
.game-select {
    width: 100%; padding: 12px; background: #111; border: 1px solid #444;
    color: #fff; border-radius: 8px; font-family: var(--font-main);
    margin-bottom: 15px; outline: none;
}

/* Options Grid (Arcade) */
.options-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px;
}
.option-btn {
    background: #222; border: 1px solid #444; color: #fff;
    padding: 15px; border-radius: 8px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.option-btn:hover { background: #333; }
.option-btn.correct { background: var(--accent); color: #000; border-color: var(--accent); }
.option-btn.wrong { background: var(--danger); opacity: 0.5; border-color: var(--danger); }

/* Keyboard (Hangman) */
#keyboard {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 20px;
}
.key-btn {
    width: 32px; height: 40px; background: #333; border: 1px solid #444;
    color: #fff; border-radius: 4px; font-weight: 700; cursor: pointer;
}
.key-btn:disabled { opacity: 0.3; }

/* Word Display (Hangman) */
#word-display {
    font-size: 1.5rem; letter-spacing: 5px; text-align: center;
    margin: 20px 0; font-family: monospace; font-weight: 700;
}

/* Result Modal Content */
#result-screen h2 { color: var(--accent); }

/* Animations */
@keyframes popIn { to { opacity: 1; transform: translateY(0); } }

.shake { animation: shake 0.5s; border-color: #ff4757 !important; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
/* =========================================
   DAILY BADGE (HANGMAN) UI FIXES
   ========================================= */

/* 1. Word Display (The Horizontal Line) */
#word-display {
    display: flex;
    flex-wrap: wrap; /* Wrap if name is very long */
    justify-content: center;
    gap: 8px; /* Space between letters */
    margin: 30px 0;
}

.letter-slot {
    width: 35px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    border-bottom: 3px solid #555; /* The "Underline" look */
    text-transform: uppercase;
    transition: all 0.2s;
}

/* Style for spaces or hyphens */
.letter-slot[style*="border: none"] {
    width: 15px; /* Narrower for spaces */
    border-bottom: none !important;
}

/* When a letter is revealed */
.letter-slot.revealed {
    border-bottom-color: var(--accent);
    color: var(--accent);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 2. Keyboard Styling (User Friendly) */
#keyboard {
    display: flex;
    flex-direction: column; /* Stack the rows vertically */
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.kbd-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    width: 100%;
}

.kbd-key {
    flex: 1; /* Keys expand to fill row */
    max-width: 45px; /* But not too wide */
    height: 50px; /* Taller touch target */
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.1s, transform 0.1s;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.kbd-key:active {
    transform: scale(0.95);
}

/* Correct Guess (Green/Accent) */
.kbd-key.kbd-correct {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent);
}

/* Wrong Guess (Dimmed) */
.kbd-key.kbd-wrong {
    background-color: #1a1a1a;
    border-color: #222;
    color: #444;
    opacity: 0.6;
}

/* Mobile Tweak: Make keys slightly smaller on very small screens */
@media (max-width: 360px) {
    .kbd-key {
        height: 42px;
        font-size: 0.9rem;
    }
    .letter-slot {
        width: 28px;
        font-size: 1.2rem;
    }
}
.hint-text-box {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--warning);
    color: #fff;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    animation: popIn 0.3s ease;
}
/* =========================================
   ARCADE FEEDBACK ANIMATIONS
   ========================================= */

/* Correct Answer: Turns Green with a pop */
.option-btn.correct-anim {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #000 !important;
    font-weight: 800;
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--accent);
    transition: all 0.2s ease;
}

/* Incorrect Answer: Turns Red with a shake */
.option-btn.wrong-anim {
    background-color: var(--danger) !important;
    border-color: var(--danger) !important;
    color: #fff !important;
    opacity: 0.6;
    animation: shake 0.4s ease-in-out;
}

/* Ensure the shake animation exists */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
/* =========================================
   COMPETITIVE RESULT SCREEN & VIRAL SHARE
   ========================================= */

#result-screen {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    border: 1px solid #333;
    padding: 40px 20px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Typography Hierarchy --- */
.result-title {
    font-size: 3rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1;
}

.result-title.victory {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 255, 133, 0.4); /* Glow effect */
}

.result-title.defeat {
    color: var(--danger);
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.result-label {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-huge {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 0 4px 0 #333; /* 3D Depth */
}

.result-sub {
    font-size: 1rem;
    color: #bbb;
    font-weight: 600;
    text-transform: uppercase;
}

.result-answer {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    margin: 15px 0 30px 0;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    min-width: 200px;
}

/* --- Share Section (The Viral Loop) --- */
.share-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.share-label {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* --- Buttons --- */
.btn-share {
    height: 55px; /* Optimised touch target */
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s, opacity 0.2s;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.btn-share:active { transform: scale(0.96); }

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}
.btn-whatsapp:hover { opacity: 0.9; }

.btn-copy {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    border: 1px solid #555;
}
.btn-copy:hover { border-color: #777; }

.btn-secondary {
    background: transparent;
    border: 2px solid #444;
    color: #888;
    width: 100%;
    height: 45px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { 
    border-color: #666; 
    color: #fff; 
    background: rgba(255,255,255,0.05); 
}

.nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Primary Button Pulse Animation */
#result-screen .btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 133, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(0, 255, 133, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 133, 0); }
}

/* --- Toast Notification --- */
#toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 12px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid var(--accent);
}
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }

@keyframes fadein { from {bottom: 60px; opacity: 0;} to {bottom: 80px; opacity: 1;} }
@keyframes fadeout { from {bottom: 80px; opacity: 1;} to {bottom: 60px; opacity: 0;} }
/* --- SIDE NAV --- */
.side-nav {
    position: fixed; left: -300px; top: 0; width: 300px; height: 100%;
    background: #121212; z-index: 2000; transition: left 0.3s ease;
    border-right: 1px solid #333; padding: 25px;
}
.side-nav.open { left: 0; }
.side-nav-header { display: flex; justify-content: space-between; margin-bottom: 40px; }
.nav-section-label { font-size: 0.7rem; color: #444; font-weight: 800; letter-spacing: 2px; margin: 30px 0 15px 0; }
.side-link { display: flex; align-items: center; gap: 15px; padding: 12px 0; font-size: 1rem; color: #aaa; transition: 0.2s; }
.side-link:hover, .side-link.active { color: var(--football-accent); }
.close-btn { background: none; border: none; color: #fff; font-size: 1.5rem; }
/* TACTICAL AD SPACES [cite: 8] */
.ad-container-native {
    margin: 30px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed #333;
    border-radius: 12px;
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 800;
}

.ad-placeholder-rect {
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.ad-placeholder-leaderboard {
    width: 320px;
    height: 50px;
    background: #111;
    border: 1px solid #222;
}

/* Ensure main content doesn't get hidden by sticky footer [cite: 149] */
.main-content {
    padding-bottom: 80px; 
}
/* Force visibility for Rugby icon regardless of the active theme */
#card-rfu .card-icon-massive.rfu-text {
    color: var(--rfu-accent) !important;
    opacity: 0.15 !important; /* Increased from 0.05 to 0.15 */
    display: block !important;
}

#card-rfu:hover .card-icon-massive.rfu-text {
    opacity: 0.4 !important; /* Make it pop on hover */
}

/* Add to styles.css */

.btn-skip-discrete {
    display: flex;            /* Use flexbox for alignment */
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0 auto; /* Center horizontally and add top spacing */
    background: transparent;  /* No background */
    border: 1px solid transparent; /* No visible border initially */
    color: #666;              /* Muted grey text by default */
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;        /* Smaller text */
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;              /* Do not stretch full width */
}

/* Hover State: Warn the user with Red */
.btn-skip-discrete:hover {
    color: #ff4757;           /* Bright Red Text */
    background: rgba(255, 71, 87, 0.1); /* Subtle Red Background */
    border-color: rgba(255, 71, 87, 0.2);
    transform: translateY(-1px);
}

/* Active/Click State */
.btn-skip-discrete:active {
    transform: scale(0.98);
}
/* 3. Ghost Card in Grid Safety */
.ghost-ad-card {
    min-height: 150px;
    min-width: 150px;
    position: relative;
    background: #111;
    border: 1px dashed #333;
}
 /* --- MOBILE FOOTER OPTIMIZATION --- */
        @media screen and (max-width: 768px) {
            .footer {
                height: 60px; /* Smaller height for mobile */
                padding-bottom: env(safe-area-inset-bottom, 10px); /* Add padding for iPhone Home Bar */
                background: rgba(5,5,5,0.98); /* Slightly more opaque on mobile */
            }
            
            /* Adjust content padding so it doesn't get covered by footer */
            .main-content {
                padding-bottom: 80px;
            }
        }
/* Mobile Styles for screens 480px and smaller */
@media (max-width: 480px) {
    .hud-row {
        /* Changes from horizontal to vertical stacking */
        flex-direction: column; 
        
        /* Aligns the items to the left (start) of the container */
        align-items: flex-start; 
        
        /* Resets the horizontal distribution */
        justify-content: flex-start; 
        
        /* Adds vertical spacing between the stacked stats */
        gap: 12px; 
        
        /* Optional: Adjust padding for tighter mobile screens */
        padding: 15px; 
    }

    .hud-stat {
        /* Ensures the text inside the stat also aligns left */
        text-align: left;
        width: 100%;
    }
	 .footer {
                height: 50px; /* Smaller height for mobile */
                padding-bottom: env(safe-area-inset-bottom, 10px); /* Add padding for iPhone Home Bar */
                background: rgba(5,5,5,0.98); /* Slightly more opaque on mobile */
            }
            
            /* Adjust content padding so it doesn't get covered by footer */
            .main-content {
                padding-bottom: 70px;
            }
}
