:root {
    --primary: #00AFDB; /* Cyan du maillot */
    --primary-glow: rgba(0, 175, 219, 0.4);
    --secondary: #E21B3C; /* Rouge du maillot */
    --accent: #ffffff;
    --bg-deep: #000000; /* Noir principal */
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #888888;
    --success: #00ffa3;
    --error: #E21B3C;
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* No scrollbars by default for game/present */
    line-height: 1.6;
}

body.allow-scroll {
    overflow-y: auto !important;
    height: auto;
    min-height: 100vh;
}

/* --- Animated Background inspired by Jersey --- */
.bg-gradient {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 100% 0%, rgba(226, 27, 60, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(0, 175, 219, 0.1) 0%, transparent 40%),
        #000000;
    z-index: -2;
}

.bg-shapes {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.6;
}

/* Splash shapes like the jersey */
.shape {
    position: absolute;
    filter: blur(80px);
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 { 
    top: -5%; left: -5%; width: 60vw; height: 30vw; 
    background: var(--primary); 
    transform: rotate(-15deg);
    clip-path: polygon(0% 0%, 100% 20%, 80% 100%, 20% 80%);
}

.shape-2 { 
    bottom: -10%; right: -5%; width: 50vw; height: 40vw; 
    background: var(--secondary); 
    animation-delay: -5s;
    transform: rotate(10deg);
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(-15deg); }
    100% { transform: translate(5%, 5%) rotate(-10deg); }
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.glow-text {
    text-shadow: 0 0 15px var(--primary-glow);
}

/* --- Components --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

/* --- Buttons & Inputs --- */
.btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 8px; /* Sharper borders like the jersey patterns */
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Oswald', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 6px 6px 0px var(--secondary); /* Double color effect like the jersey */
}

.btn-primary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px var(--secondary);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--secondary);
}

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

input, .custom-select {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    outline: none;
}

input:focus {
    border-color: var(--primary);
}

/* --- Options Grid --- */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.option-btn {
    padding: 25px 20px;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Oswald', sans-serif;
}

.option-0 { background: var(--secondary); border-bottom: 5px solid #b1152e; }
.option-1 { background: var(--primary); color: #000; border-bottom: 5px solid #008eb2; }
.option-2 { background: #ffffff; color: #000; border-bottom: 5px solid #cccccc; }
.option-3 { background: #333333; border-bottom: 5px solid #111111; }

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

/* --- Timer --- */
.timer-container {
    width: 80px;
    height: 80px;
    border-radius: 0; /* Square timer like the jersey lines */
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    background: #000;
    transform: rotate(-5deg);
    font-family: 'Oswald', sans-serif;
}

/* --- Leaderboard & Tags --- */
.player-tag {
    background: rgba(0, 175, 219, 0.1);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid var(--primary);
}

/* --- Custom Select --- */
.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

select option {
    background: #000;
    color: white;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .options-grid { grid-template-columns: 1fr; }
    .glass-card { padding: 20px; }
}

/* --- Rich Text & Lists Formatting --- */
ul {
    display: inline-block;
    text-align: left;
    margin: 10px 0;
    padding-left: 24px;
    list-style-type: disc;
}

ol {
    display: inline-block;
    text-align: left;
    margin: 10px 0;
    padding-left: 24px;
    list-style-type: decimal;
}

li {
    margin-bottom: 6px;
    font-size: inherit;
    color: inherit;
}
