/* ==========================================================================
   DESIGN SYSTEM - BRANDING WORLD CUP 2026 & PANINI STICKER THEME
   ========================================================================== */
:root {
    /* Baseline colors, overridden by theme classes */
    --wc-theme-color: #99ff00;       /* Primary highlight */
    --wc-theme-secondary: #00a2b1;   /* Secondary color */
    --wc-theme-tertiary: #ff3c00;    /* Accent color */
    --bg-dark: #040d0a;
    --bg-field: #003623;
    --beam-color: rgba(153, 255, 0, 0.15);
    
    --pitch-green: #00ff66;
    --gold: #ffd700;
    --red: #ff2a5f;
    --white: #ffffff;
    --black: #000000;
    
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-jersey: 'Barlow Condensed', sans-serif;
}

/* ==========================================================================
   THEME VARIATIONS (As sent in user WC2026 color palette)
   ========================================================================== */
/* 1. LIME GREEN THEME (Default) */
body.theme-green {
    --wc-theme-color: #99ff00;
    --wc-theme-secondary: #00a2b1;
    --wc-theme-tertiary: #ff3c00;
    --bg-dark: #030d07;
    --bg-field: #002d1d;
    --beam-color: rgba(153, 255, 0, 0.15);
}

/* 2. ROYAL BLUE THEME */
body.theme-blue {
    --wc-theme-color: #00bfff;
    --wc-theme-secondary: #0055ff;
    --wc-theme-tertiary: #ffd700;
    --bg-dark: #020b18;
    --bg-field: #051c3f;
    --beam-color: rgba(0, 191, 255, 0.2);
}

/* 3. ORANGE-RED THEME */
body.theme-red {
    --wc-theme-color: #ff3c00;
    --wc-theme-secondary: #ff7800;
    --wc-theme-tertiary: #00a2b1;
    --bg-dark: #0f0302;
    --bg-field: #380a03;
    --beam-color: rgba(255, 60, 0, 0.2);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    transition: background-color 0.5s ease;
}

/* Stadium atmosphere background */
.stadium-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, var(--bg-field) 0%, var(--bg-dark) 85%);
    z-index: -2;
    pointer-events: none;
    transition: background 0.5s ease;
}

body.theme-blue .stadium-overlay {
    background: radial-gradient(circle at 50% 30%, rgba(2, 11, 24, 0.4) 0%, rgba(2, 11, 24, 0.95) 85%),
                url('assets/wc2026_bg_pattern.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
body.theme-green .stadium-overlay {
    background: radial-gradient(circle at 50% 30%, rgba(3, 13, 7, 0.4) 0%, rgba(3, 13, 7, 0.95) 85%),
                url('assets/wc2026_bg_pattern.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
body.theme-red .stadium-overlay {
    background: radial-gradient(circle at 50% 30%, rgba(15, 3, 2, 0.4) 0%, rgba(15, 3, 2, 0.95) 85%),
                url('assets/wc2026_bg_pattern.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.stadium-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--wc-theme-color) 1px, transparent 1px), 
        radial-gradient(var(--wc-theme-secondary) 1px, transparent 1px);
    background-size: 35px 35px;
    background-position: 0 0, 17.5px 17.5px;
    opacity: 0.08;
    pointer-events: none;
}

/* Lighting Beams */
.stadium-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.light-beam {
    position: absolute;
    top: -15%;
    width: 40vw;
    height: 130vh;
    background: radial-gradient(ellipse at top, var(--beam-color) 0%, transparent 65%);
    transform-origin: top center;
    filter: blur(15px);
    transition: background 0.5s ease;
}

.lb-left {
    left: 8%;
    animation: sweepLeft 9s ease-in-out infinite alternate;
}

.lb-right {
    right: 8%;
    animation: sweepRight 9s ease-in-out infinite alternate;
}

@keyframes sweepLeft {
    0% { transform: rotate(12deg); }
    100% { transform: rotate(26deg); }
}

@keyframes sweepRight {
    0% { transform: rotate(-12deg); }
    100% { transform: rotate(-28deg); }
}

/* ==========================================================================
   NAVIGATION WITH THEME SWITCHER
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 2rem;
    z-index: 100;
    background: rgba(4, 13, 10, 0.75);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 162, 177, 0.3));
}

.logo-year {
    font-family: var(--font-jersey);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

/* Theme Switcher Widget in Header */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.theme-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.theme-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-btn:hover {
    transform: scale(1.15);
}

.theme-btn.active {
    border-color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.btn-blue { background-color: #0055ff; }
.btn-green { background-color: #99ff00; }
.btn-red { background-color: #ff3c00; }

.nav-links {
    display: flex;
    gap: 1.2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid transparent;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--wc-theme-color);
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.sound-control {
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.sound-control:hover {
    color: var(--wc-theme-color);
    border-color: var(--wc-theme-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.wc-badge {
    display: inline-block;
    padding: 0.5rem 1.6rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--black);
    background: linear-gradient(90deg, var(--wc-theme-color), var(--wc-theme-secondary), var(--wc-theme-tertiary));
    border-radius: 50px;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    animation: animateBadge 4s infinite alternate;
}

@keyframes animateBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

.hero-title {
    font-family: var(--font-jersey);
    font-size: 6.8rem;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 30%, rgba(255,255,255,0.7) 65%, var(--wc-theme-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-subtitle .highlight {
    color: var(--wc-theme-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==========================================================================
   SECTIONS LAYOUT
   ========================================================================== */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-jersey);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    display: inline-block;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--wc-theme-color), var(--wc-theme-secondary), var(--wc-theme-tertiary));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* ==========================================================================
   PANINI STICKER CARD
   ========================================================================== */
.profile-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    align-items: center;
}

.card-3d-wrapper {
    perspective: 1000px;
    width: 320px;
    height: 450px;
    justify-self: center;
}

.panini-card {
    position: relative;
    width: 100%;
    height: 100%;
    border: 7px solid var(--white); /* Thick white border of the sticker */
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255,255,255,0.05);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, background-color 0.5s ease;
}

/* Card Background Coloring based on selected Theme */
.theme-green .panini-card {
    background-color: #009fab; /* Teal base */
}
.theme-blue .panini-card {
    background-color: #8cbdf2; /* Light Blue base as sent */
}
.theme-red .panini-card {
    background-color: #f03a17; /* Orange-Red base as sent */
}

/* Holographic sheen overlay */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, 
        transparent 35%, 
        rgba(255, 255, 255, 0.15) 45%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.15) 55%, 
        transparent 65%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 5;
    transition: background-position 0.15s ease;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Giant watermark '26' symbol in the background */
.panini-bg-num {
    position: absolute;
    top: 10%;
    left: -10%;
    font-family: var(--font-jersey);
    font-size: 17rem;
    font-weight: 800;
    line-height: 0.8;
    pointer-events: none;
    z-index: 1;
    letter-spacing: -10px;
    transition: color 0.5s ease;
}

.theme-green .panini-bg-num { color: #007077; }
.theme-blue .panini-bg-num { color: #5296df; }
.theme-red .panini-bg-num { color: #a91c03; }

/* Top Right Logo */
.panini-top-logo {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 3;
}

.panini-top-logo img {
    height: 38px;
    width: auto;
}

/* Player portrait photo with border-less cutout frame */
.panini-player-photo {
    position: absolute;
    top: 3.5rem;
    left: 1rem;
    width: 210px;
    height: 235px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.panini-player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

/* Vertical Side Panel (VIE flag + vertical letters) */
.panini-right-sidebar {
    position: absolute;
    top: 3.5rem;
    right: 0.8rem;
    width: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.panini-flag {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 0.8rem;
}

.panini-country-code {
    font-family: var(--font-jersey);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--white);
    letter-spacing: 2px;
    writing-mode: vertical-lr;
    text-orientation: upright;
}

/* Sticker Info Box */
.panini-bottom-info {
    margin-top: auto;
    width: 100%;
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: transparent;
}

.panini-player-name-box {
    background: var(--white);
    padding: 0.4rem 1rem;
    text-align: center;
    border-bottom: 1.5px solid #dedede;
    width: 86%;
    margin: 0 auto;
    border-radius: 3px 3px 0 0;
}

.panini-player-name {
    font-family: var(--font-jersey);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.5px;
    line-height: 1;
}

.panini-team-strip {
    text-align: center;
    padding: 0.3rem 1rem;
    width: 86%;
    margin: 0 auto;
    border-radius: 0 0 3px 3px;
    transition: background-color 0.5s ease;
}

.theme-green .panini-team-strip { background: #032b2e; }
.theme-blue .panini-team-strip { background: #0a254e; }
.theme-red .panini-team-strip { background: #4e0a02; }

.panini-team-name {
    font-family: var(--font-jersey);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.panini-details-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    background: #f5f5f5;
    padding: 0.25rem 1rem;
    width: 86%;
    margin: 0.2rem auto 0.5rem;
    border-radius: 3px;
}

.p-detail-item {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: #444444;
}

.panini-brand-logo {
    position: absolute;
    bottom: -0.2rem;
    right: 0.4rem;
    font-family: var(--font-jersey);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    transform: rotate(-3deg);
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    z-index: 4;
}

/* ==========================================================================
   BIOGRAPHY DETAILS & GAMING BAR STATS
   ========================================================================== */
.bio-details {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.bio-details h3 {
    font-family: var(--font-jersey);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    color: var(--wc-theme-color);
    border-left: 4px solid var(--wc-theme-color);
    padding-left: 0.8rem;
    transition: color 0.5s ease, border-left-color 0.5s ease;
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.bio-item {
    display: flex;
    flex-direction: column;
}

.bio-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bio-label i {
    color: var(--wc-theme-color);
    margin-right: 0.3rem;
    transition: color 0.5s ease;
}

.bio-value {
    font-size: 1.05rem;
    font-weight: 600;
}

/* FC Mobile stats bars */
.gaming-stats-container {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
}

.gaming-stats-container h4 {
    font-family: var(--font-jersey);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--white);
}

.gaming-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

.game-stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g-stat-name {
    width: 85px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
}

.g-stat-bar-bg {
    flex-grow: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.g-stat-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.g-stat-val {
    font-weight: 700;
    font-size: 0.95rem;
    width: 25px;
    text-align: right;
}

/* ==========================================================================
   DIET / FUEL SECTION
   ========================================================================== */
.diet-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.diet-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.8rem;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.diet-card:hover {
    transform: translateY(-5px);
    border-color: var(--wc-theme-color);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.05);
}

.diet-img-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: rgba(2, 11, 6, 0.4);
    border-radius: 18px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.diet-icon-svg {
    width: 100%;
    height: 100%;
}

.diet-info {
    flex-grow: 1;
}

.diet-info h3 {
    font-family: var(--font-jersey);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    transition: color 0.5s ease;
}

#card-sushi h3 { color: var(--wc-theme-color); }
#card-beefsteak h3 { color: var(--wc-theme-secondary); }

.diet-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--black);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    transition: background-color 0.5s ease;
}

#card-sushi .diet-tag { background: var(--wc-theme-color); }
#card-beefsteak .diet-tag { background: var(--wc-theme-secondary); }

.diet-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.diet-stats-bar {
    display: flex;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.6rem;
}

.d-stat {
    display: flex;
    flex-direction: column;
}

.d-val {
    font-weight: 700;
    font-size: 1rem;
}

.d-lbl {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   HOBBIES SECTION
   ========================================================================== */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hobby-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.hobby-box:hover {
    transform: translateY(-8px);
    border-color: var(--wc-theme-color);
}

.hobby-icon-bg {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-smooth);
}

.hobby-box:hover .hobby-icon-bg {
    background: var(--wc-theme-color);
    color: var(--black);
}

#hobby-basketball:hover .hobby-icon-bg { background: #ff781e; color: var(--white); }
#hobby-netflix:hover .hobby-icon-bg { background: #db202c; color: var(--white); }
#hobby-nike:hover {
    border-color: #ff3c00;
    box-shadow: 0 15px 30px rgba(255, 60, 0, 0.15);
}
#hobby-nike:hover .hobby-icon-bg {
    background: #111;
    color: #fff;
}
#hobby-spotify:hover {
    border-color: #1db954;
    box-shadow: 0 15px 30px rgba(29, 185, 84, 0.15);
}
#hobby-spotify:hover .hobby-icon-bg {
    background: #1db954;
    color: #000;
}
.custom-hobby-icon {
    transition: var(--transition-smooth);
}
.hobby-box:hover .custom-hobby-icon {
    transform: scale(1.1);
}

.hobby-box h3 {
    font-family: var(--font-jersey);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.hobby-box p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.hobby-badge {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* ==========================================================================
   MINI GAME: REALISTIC PENALTY SHOOTOUT
   ========================================================================== */
.game-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.stadium-pitch {
    position: relative;
    height: 420px;
    background: radial-gradient(circle at bottom, #094726 0%, #042513 100%);
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Goal structure & shaking impact */
.goal-post {
    position: absolute;
    top: 15%;
    width: 380px;
    height: 140px;
    border: 6px solid var(--white);
    border-bottom: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transform-origin: top center;
}

.goal-net {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.12) 48%, rgba(255,255,255,0.12) 52%, transparent 52%) 0 0 / 12px 12px,
        linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.12) 48%, rgba(255,255,255,0.12) 52%, transparent 52%) 0 0 / 12px 12px;
    opacity: 0.8;
}

/* Shaking goal post animation on scoring */
@keyframes netShake {
    0% { transform: scale(1); }
    15% { transform: scale(1.03) translateY(-4px) rotate(0.5deg); }
    30% { transform: scale(0.98) translateY(2px) skewX(2deg) rotate(-0.5deg); }
    45% { transform: scale(1.01) translateY(-1px) skewX(-1deg); }
    60% { transform: scale(0.995) translateY(0.5px); }
    100% { transform: scale(1) translateY(0); }
}

.goal-post.impact {
    animation: netShake 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Goalkeeper */
.goalkeeper {
    position: absolute;
    bottom: -5px;
    left: calc(50% - 28px);
    width: 56px;
    height: 75px;
    z-index: 12;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.gk-image-asset {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Sweeping Target Reticle */
.target-reticle {
    position: absolute;
    top: 10px;
    left: 50px;
    width: 36px;
    height: 36px;
    border: 3px dashed var(--wc-theme-tertiary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--wc-theme-tertiary);
    z-index: 15;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Soccer Ball using Official World Cup 2026 match ball asset */
.soccer-ball {
    position: absolute;
    bottom: 18px; /* Dịch chuyển bóng xuống dưới như yêu cầu */
    left: calc(50% - 16px);
    width: 32px;
    height: 32px;
    background-image: url('assets/wc2026_ball_cropped.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 11;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                bottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* NEW: Net Overlay mesh when ball is in the net (goal effect like pictured) */
.soccer-ball.ball-in-net::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        linear-gradient(45deg, transparent 46%, rgba(255,255,255,0.45) 46%, rgba(255,255,255,0.45) 54%, transparent 54%) 0 0 / 4px 4px,
        linear-gradient(-45deg, transparent 46%, rgba(255,255,255,0.45) 46%, rgba(255,255,255,0.45) 54%, transparent 54%) 0 0 / 4px 4px;
    pointer-events: none;
}

/* Spot mark on the grass (adjusted to align with ball bottom: 18px + height 32px/2 = 34px) */
.penalty-spot {
    position: absolute;
    bottom: 30px; /* Dịch chuyển chấm phạt đền tương ứng xuống dưới */
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================================================
   ADVANCED CONTROLS: DIFFICULTY & WIND GRAPHICS
   ========================================================================== */
.game-settings-row {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.setting-label {
    font-family: var(--font-jersey);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.setting-label i {
    margin-right: 0.2rem;
    color: var(--wc-theme-color);
}

.difficulty-selector {
    display: flex;
    gap: 0.4rem;
}

.diff-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.diff-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.diff-btn.active {
    background: var(--wc-theme-color);
    color: var(--black);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.wind-indicator-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.wind-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wind-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-jersey);
    letter-spacing: 0.5px;
}

.wind-arrow-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--wc-theme-color);
    color: var(--black);
    font-size: 0.7rem;
    transition: transform 0.5s ease;
}

/* Scoreboard, sCharge bar, controls */
.game-dashboard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scoreboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.score-item {
    background: rgba(2, 11, 6, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.score-num {
    font-family: var(--font-jersey);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

#score-goals { color: var(--wc-theme-color); }
#score-rate { color: var(--wc-theme-secondary); }

.power-bar-container {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.power-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.4rem;
}

.power-bar-bg {
    position: relative;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.power-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd700 0%, #99ff00 70%, #ff3c00 100%);
    transition: width 0.05s linear;
}

.power-bar-ideal-zone {
    position: absolute;
    top: 0;
    left: 70%;
    width: 20%;
    height: 100%;
    border-left: 2px dashed rgba(255,255,255,0.6);
    border-right: 2px dashed rgba(255,255,255,0.6);
    background: rgba(153, 255, 0, 0.25);
    pointer-events: none;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

#btn-shoot-trigger {
    width: 100%;
    background: var(--wc-theme-tertiary);
    color: var(--white);
    font-family: var(--font-jersey);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

#btn-shoot-trigger:hover {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

#btn-shoot-trigger:active {
    transform: scale(0.98);
}

.game-status {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    min-height: 90px;
    line-height: 1.4;
}

.top-bin-alert {
    font-family: var(--font-jersey);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold) !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    animation: textPulse 0.4s infinite alternate;
    display: inline-block;
    letter-spacing: 0.5px;
}

@keyframes textPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

/* ==========================================================================
   MINIMAL FLOATING MUSIC PANEL
   ========================================================================== */
.mini-music-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(10, 10, 14, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    z-index: 999;
    overflow: hidden;
    transition: all 0.35s ease;
}

.mini-music-panel.collapsed .mini-music-body {
    display: none;
}

.mini-music-panel.collapsed {
    width: 220px;
    border-radius: 40px;
}

.mini-music-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, rgba(153, 255, 0, 0.1), transparent);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
}

.mini-music-header i.fa-music {
    color: var(--wc-theme-color);
    margin-right: 0.4rem;
}

.mini-music-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mini-music-close:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.mini-music-body {
    padding: 0.5rem 0.7rem 0.7rem;
}

.mini-track-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    padding: 0.4rem 0;
}

.mini-track-label i {
    margin-right: 0.3rem;
}

.mini-yt {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.4rem;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(4, 13, 10, 0.9);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .bio-details {
        max-width: 600px;
        justify-self: center;
        width: 100%;
    }
    
    .diet-cards-container {
        grid-template-columns: 1fr;
    }
    
    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #main-header {
        padding: 0.8rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .card-3d-wrapper {
        width: 100%;
        max-width: 320px;
        height: 450px;
    }
    
    .panini-card {
        border-width: 6px;
    }
    
    .panini-player-photo {
        width: 190px;
        height: 210px;
    }
    
    .panini-player-name {
        font-size: 1.6rem;
    }
    
    .diet-card {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    
    .diet-stats-bar {
        justify-content: center;
    }
    
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-post {
        width: 300px;
        height: 120px;
    }
    
    .target-reticle {
        width: 30px;
        height: 30px;
    }
}
