/* Dashboard Gamer Theme */
html {
    overflow-y: scroll;
}

:root {
    --gamer-bg: #0f172a;
    --gamer-card-bg: rgba(30, 41, 59, 0.7);
    --gamer-border: rgba(255, 255, 255, 0.1);
    --gamer-text: #f8fafc;
    --gamer-text-muted: #94a3b8;
    --gamer-cyan: #06b6d4;
    --gamer-purple: #8b5cf6;
    --gamer-green: #10b981;
    --gamer-red: #ef4444;
    --gamer-yellow: #f59e0b;
}

.dashboard-gamer {
    background-color: var(--gamer-bg);
    color: var(--gamer-text);
    font-family: 'Source Sans Pro', sans-serif;
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Glassmorphism Cards */
.gamer-card {
    background: var(--gamer-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gamer-border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gamer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.gamer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gamer-border);
    padding-bottom: 0.5rem;
}

.gamer-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gamer-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
    margin: 0;
}

/* --- NEW GAMER BUTTONS --- */
.btn-gamer {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 0.375rem;
    /* Standard rounded corners like championship */
}

/* Remove clip-path overrides */
.btn-sm.btn-gamer {
    clip-path: none;
}

.btn-gamer:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Primary (Blue/Cyan) - Matches .btn-primary in championship-buttons */
.btn-gamer-primary {
    background: linear-gradient(135deg, var(--gamer-cyan), #3b82f6) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.btn-gamer-primary:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

/* Success (Green) */
.btn-gamer-success {
    background: linear-gradient(135deg, var(--gamer-green), #059669) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.btn-gamer-success:hover {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

/* Danger (Red) - Matches btn-outline-danger style but filled if needed, or stick to this global class */
.btn-gamer-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-gamer-danger:hover {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

/* Info (Light Blue) */
.btn-gamer-info {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* Outline variant for inactive tabs - Matches .btn-group .btn-outline-primary */
.btn-gamer-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--gamer-cyan) !important;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gamer-outline:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--gamer-cyan);
    color: var(--gamer-cyan) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

/* Warning (Yellow) */
.btn-gamer-warning {
    background: linear-gradient(135deg, var(--gamer-yellow), #d97706) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.btn-gamer-warning:hover {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
    color: white !important;
}

/* Discord (Violet/Blue) */
.btn-gamer-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
}

.btn-gamer-discord:hover {
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4752C4, #5865F2) !important;
    color: white !important;
}

.btn-gamer-outline.active,
.btn-gamer-outline:active {
    background: linear-gradient(135deg, var(--gamer-cyan), var(--gamer-purple)) !important;
    color: white !important;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Special Active Tab State - Matches .btn-group .btn-primary */
.btn-gamer-active {
    background: linear-gradient(135deg, var(--gamer-cyan), var(--gamer-purple)) !important;
    color: white !important;
    border: none;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    border-radius: 0.375rem;
    font-weight: 600;
}

.btn-gamer-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
    color: white !important;
}

/* Inputs Inputs */
.form-control-gamer {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--gamer-border) !important;
    color: white !important;
    border-radius: 6px;
    transition: all 0.3s;
}

.form-control-gamer:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--gamer-cyan) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Hero Section (Next Match) */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('../dist/img/stadium-night.jpg');
    /* Fallback or placeholder */
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid var(--gamer-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    overflow: hidden;
}

.hero-timer {
    font-family: 'Courier New', Courier, monospace;
    /* Monospaced for digital look */
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px var(--gamer-purple);
    margin: 1rem 0;
    letter-spacing: 2px;
}

.hero-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gamer-cyan);
    font-weight: 600;
}

/* Player/Team Card */
.team-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-jersey-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* Clickable */
    transition: transform 0.2s;
}

.team-jersey-container:hover {
    transform: scale(1.05);
}

.jersey-edit-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--gamer-cyan);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.team-jersey-container:hover .jersey-edit-icon {
    opacity: 1;
}

.team-jersey-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

.team-jersey-img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    z-index: 1;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.manager-name {
    color: var(--gamer-text-muted);
    font-size: 0.9rem;
}

/* Stats Strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.stat-item:hover {
    border-color: var(--gamer-cyan);
}

.stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gamer-text-muted);
    letter-spacing: 1px;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gamer-cyan);
}

/* Objectives (Battle Pass style) */
.objective-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objective-item {
    margin-bottom: 1rem;
}

.objective-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--gamer-text);
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gamer-cyan), var(--gamer-purple));
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.reward-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--gamer-yellow);
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-left: 0.5rem;
}

.objective-item.completed .progress-fill {
    background: var(--gamer-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Infrastructure Cards */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.infra-card {
    display: block;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.infra-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gamer-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.infra-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gamer-text-muted);
    transition: all 0.3s ease;
}

.infra-card:hover .infra-icon {
    transform: scale(1.1);
}

.infra-card.active .infra-icon {
    color: var(--gamer-green);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.infra-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gamer-red);
    margin-right: 5px;
}

.infra-card.active .infra-status-dot {
    background-color: var(--gamer-green);
    box-shadow: 0 0 5px var(--gamer-green);
}

/* Streak Buttons */
.streak-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
    font-weight: bold;
    margin: 0 1px;
    border-radius: 4px;
    color: #fff;
    border: none;
}

.streak-V {
    background: var(--gamer-green);
    box-shadow: 0 0 5px var(--gamer-green);
}

.streak-N {
    background: var(--gamer-yellow);
}

.streak-D {
    background: var(--gamer-red);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-timer {
        font-size: 2.5rem;
    }

    .stats-strip {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- GLOBAL GAMER OVERRIDES (AdminLTE) --- */

/* Body Background */
body,
.wrapper,
.content-wrapper {
    background-color: var(--gamer-bg) !important;
    color: var(--gamer-text);
}

/* Navbar / Header */
.main-header,
.main-header.navbar,
.navbar-dark,
.navbar-light,
.navbar-white {
    background-color: rgba(15, 23, 42, 0.95) !important;
    background-image: none !important;
    border-bottom: 3px solid var(--gamer-cyan) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    /* Sticky Header */
    position: sticky !important;
    top: 0;
    z-index: 1040;
}

.main-header .nav-link,
.navbar-dark .navbar-nav .nav-link {
    color: var(--gamer-text) !important;
}

@media (hover: hover) {
    .main-header .navbar-nav .nav-link:hover {
        color: var(--gamer-cyan) !important;
        text-shadow: 0 0 8px var(--gamer-cyan);
    }
}

/* Header Badges */
.main-header .navbar-nav .badge {
    box-shadow: 0 0 5px currentColor;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-header .navbar-nav .badge-warning {
    background-color: transparent !important;
    color: var(--gamer-yellow) !important;
    border-color: var(--gamer-yellow) !important;
}

.main-header .navbar-nav .badge-success {
    background-color: transparent !important;
    color: var(--gamer-green) !important;
    border-color: var(--gamer-green) !important;
}

.main-header .navbar-nav .badge-info {
    background-color: transparent !important;
    color: var(--gamer-cyan) !important;
    border-color: var(--gamer-cyan) !important;
}

.main-header .navbar-nav .badge-danger {
    background-color: transparent !important;
    color: var(--gamer-red) !important;
    border-color: var(--gamer-red) !important;
}

/* Sidebar */
.main-sidebar {
    background-color: #0b1120 !important;
    /* Darker than bg */
    border-right: 1px solid var(--gamer-border);
}

.brand-link {
    border-bottom: 2px solid var(--gamer-purple) !important;
    background-color: #0b1120 !important;
}

.brand-text {
    color: #fff !important;
    font-family: 'Source Sans Pro', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--gamer-purple);
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-dark-primary .nav-treeview>.nav-item>.nav-link.active {
    background-color: var(--gamer-purple) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-sidebar .nav-link p {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-sidebar .nav-link:hover {
    color: var(--gamer-cyan) !important;
}

.user-panel {
    border-bottom: 1px solid var(--gamer-border) !important;
}

.user-panel .info a {
    color: var(--gamer-cyan) !important;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.3);
}

/* Content Header */
.content-header h1 {
    color: var(--gamer-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb-item.active {
    color: var(--gamer-text-muted);
}

/* Footer */
.main-footer {
    background-color: #0b1120 !important;
    border-top: 1px solid var(--gamer-border) !important;
    color: var(--gamer-text-muted) !important;
}

.main-footer a {
    color: var(--gamer-cyan) !important;
    text-decoration: none;
}

.main-footer a:hover {
    text-shadow: 0 0 5px var(--gamer-cyan);
}

/* Level Progress & Rewards */
.level-container {
    width: 100%;
    margin-top: 1rem;
    padding: 0 1rem;
}

.level-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gamer-purple), var(--gamer-cyan));
    width: 0%;
    transition: width 1s ease;
    box-shadow: 0 0 8px var(--gamer-purple);
}

.level-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gamer-text-muted);
}

.reward-lock {
    display: inline-flex;
    align-items: center;
    color: var(--gamer-yellow);
    cursor: help;
    transition: transform 0.2s;
}

.reward-lock:hover {
    transform: scale(1.1);
    text-shadow: 0 0 5px var(--gamer-yellow);
}

.reward-lock i {
    margin-right: 4px;
}

/* Header Dropdowns - Gamer Theme */
.navbar .dropdown-menu {
    background-color: rgba(16, 16, 18, 0.95) !important;
    border: 1px solid var(--gamer-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.navbar .dropdown-item {
    color: var(--gamer-text) !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: var(--gamer-cyan) !important;
}

.navbar .dropdown-divider {
    border-top-color: var(--gamer-border) !important;
}

.navbar .dropdown-item-title {
    color: #fff !important;
}

.navbar .dropdown-footer {
    color: var(--gamer-cyan) !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    font-weight: bold;
}

/* User Header Override */
.navbar-nav .user-menu .user-header {
    background-color: transparent !important;
    background: linear-gradient(180deg, rgba(16, 16, 18, 0.95), transparent) !important;
    color: var(--gamer-text) !important;
    border-bottom: 1px solid var(--gamer-border);
}

.navbar-nav .user-menu .user-footer {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-top: 1px solid var(--gamer-border);
}

.navbar-nav .user-menu .user-footer .btn-default {
    background-color: transparent;
    color: var(--gamer-red);
    border: 1px solid var(--gamer-red);
}

.navbar-nav .user-menu .user-footer .btn-default:hover {
    background-color: var(--gamer-red) !important;
    color: #fff !important;
    border-color: var(--gamer-red) !important;
}

/* SweetAlert2 Gamer Theme */
.swal2-popup {
    background: rgba(16, 16, 18, 0.95) !important;
    border: 1px solid var(--gamer-cyan) !important;
    color: var(--gamer-text) !important;
    backdrop-filter: blur(5px);
}

.swal2-title {
    color: var(--gamer-cyan) !important;
}

.swal2-content,
.swal2-html-container {
    color: var(--gamer-text) !important;
}

.swal2-confirm.swal2-styled {
    background-color: var(--gamer-purple) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4) !important;
}

.swal2-cancel.swal2-styled {
    background-color: transparent !important;
    border: 1px solid var(--gamer-red) !important;
    color: var(--gamer-red) !important;
}

/* Gamer Pagination */
.gamer-pagination .page-link {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--gamer-border) !important;
    color: var(--gamer-text-muted) !important;
    margin: 0 2px;
    border-radius: 4px !important;
    transition: all 0.3s ease;
}

.gamer-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--gamer-cyan), var(--gamer-purple)) !important;
    border-color: transparent !important;
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.gamer-pagination .page-link:hover {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: var(--gamer-cyan) !important;
    border-color: var(--gamer-cyan) !important;
    transform: translateY(-2px);
}

.gamer-pagination .page-item.disabled .page-link {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    cursor: not-allowed;
    transform: none !important;
}

/* --- PLAYER CARD OVERRIDES (Ported from joueurs.css for consistency) --- */
.carte_bleue,
.carte_verte,
.carte_bleue_claire,
.carte_rouge {
    background-image: none !important;
    backdrop-filter: blur(4px);
    border-radius: 8px;
    height: 115px;
    width: 100px;
    padding: 4px;
    margin: 0 2px;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    position: absolute;
    z-index: 10;
    box-sizing: content-box;
}

.carte_bleue {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%) !important;
    border-top: 5px solid #2563eb !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2) !important;
}

.carte_verte {
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%) !important;
    border-top: 5px solid #16a34a !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2) !important;
}

.carte_bleue_claire {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%) !important;
    border-top: 5px solid #06b6d4 !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2) !important;
}

.carte_rouge {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%) !important;
    border-top: 5px solid #dc2626 !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2) !important;
}

.tete {
    position: absolute;
    left: 5px;
    top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-sizing: content-box;
}

.tete img {
    width: 60px;
    height: 70px;
}

.jauge_rouge {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: absolute;
    width: 7px;
    left: 70px;
    top: 20px;
    height: 70px;
    padding: 1px;
    box-sizing: content-box;
}

.jauge_verte {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: absolute;
    width: 7px;
    left: 82px;
    top: 20px;
    height: 70px;
    padding: 1px;
    box-sizing: content-box;
}

.jauge_rouge img,
.jauge_verte img {
    width: 100%;
    display: block;
}

.age {
    position: absolute;
    left: 9px;
    top: 92px;
    width: 36px;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 10px;
}

.points {
    position: absolute;
    width: 62px;
    left: 48px;
    top: 92px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
}

/* --- MOBILE APP SAFE AREA ADAPTATIONS --- */
/* Handle notched phones (iPhone X+, standard Androids with notches/punch-holes) */
@supports (padding-top: env(safe-area-inset-top)) {

    /* Navbar: Add padding to top so content starts below the status bar */
    .main-header.navbar {
        padding-top: env(safe-area-inset-top) !important;
        /* Adjust height to accommodate the notch + standard navbar height */
        min-height: calc(3.5rem + env(safe-area-inset-top)) !important;
        /* align items to the bottom so they aren't stuck in the notch area */
        align-items: flex-end !important;
        /* Add a little padding bottom for visual balance */
        padding-bottom: 0.5rem !important;
    }

    /* Sidebar: Push it down or add padding so the logo doesn't hit the notch if sidebar is transparent/full height */
    .main-sidebar .brand-link {
        padding-top: calc(0.8125rem + env(safe-area-inset-top)) !important;
        /* Adjust brand link height if needed */
        height: auto !important;
    }

    /* Ensure the sidebar content scroller starts at the right place */
    .sidebar {
        margin-top: 0 !important;
    }

    /* Bottom Safe Area (Home Indicator) */
    .main-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    }

    /* Ensure modal/popups respect safe areas */
    .modal-dialog {
        margin-top: calc(1.75rem + env(safe-area-inset-top)) !important;
        margin-bottom: calc(1.75rem + env(safe-area-inset-bottom)) !important;
    }
}

/* Fallback for when env(safe-area-inset-top) is 0 but we know we are in the native app */
/* This class is added by js/mobile-navigation.js */
body.is-native-app .main-header.navbar {
    padding-top: max(env(safe-area-inset-top), 10px) !important;
    min-height: calc(3.5rem + max(env(safe-area-inset-top), 10px)) !important;
}

body.is-native-app .main-sidebar .brand-link {
    padding-top: max(env(safe-area-inset-top), 10px) !important;
}