/* Global Styles & Reset */
:root {
    --bg-dark: #090a0f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-card: rgba(255, 255, 255, 0.08);
    --primary: #ff4b2b; /* KFC & Switch Red */
    --secondary: #00f2fe; /* Switch Neon Blue */
    --accent: #ffd700; /* Gold */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 20%, rgba(231, 76, 60, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(0, 242, 254, 0.15) 0px, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Header & Nav */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(9, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-card);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.logo-emoji {
    -webkit-text-fill-color: initial;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-item:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Particles background */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-family: var(--font-heading);
    user-select: none;
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff1f5a);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 75, 43, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 75, 43, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: var(--secondary);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 100vh;
    padding: 120px 8% 80px;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(255, 75, 43, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 75, 43, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper {
    width: 320px;
    height: 320px;
    position: relative;
    animation: hoverAvatar 6s ease-in-out infinite;
}

@keyframes hoverAvatar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.svg-avatar {
    width: 100%;
    height: 100%;
}

/* Stats Section */
.stats-section {
    padding: 80px 8%;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

#stat-math:hover { border-color: #ffd700; box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1); }
#stat-piano:hover { border-color: #ffffff; box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1); }
#stat-switch:hover { border-color: var(--secondary); box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1); }
#stat-ronaldo:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(255, 75, 43, 0.1); }

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
    background: rgba(0, 242, 254, 0.05);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#stat-math .stat-icon { color: #ffd700; background: rgba(255, 215, 0, 0.05); }
#stat-piano .stat-icon { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
#stat-switch .stat-icon { color: var(--secondary); background: rgba(0, 242, 254, 0.05); }
#stat-ronaldo .stat-icon { color: var(--primary); background: rgba(255, 75, 43, 0.05); }

.stat-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#stat-math .stat-value { background: linear-gradient(45deg, #ffd700, #ffae19); -webkit-background-clip: text; }
#stat-switch .stat-value { background: linear-gradient(45deg, var(--secondary), #4facfe); -webkit-background-clip: text; }
#stat-ronaldo .stat-value { background: linear-gradient(45deg, var(--primary), #ff416c); -webkit-background-clip: text; }

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Interactive Layouts */
.interactive-container {
    padding: 40px 8%;
    display: flex;
    flex-direction: column;
    gap: 80px;
    position: relative;
    z-index: 10;
}

.interactive-section {
    border-radius: 30px;
    padding: 50px;
    border: 1px solid var(--border-card);
    overflow: hidden;
}

.glass {
    background: rgba(13, 14, 21, 0.6);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

kbd {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* PIANO SECTION */
.piano-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.status-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-card);
    color: var(--secondary);
}

.piano-keyboard {
    display: flex;
    justify-content: center;
    height: 250px;
    position: relative;
    background: #1a1a1a;
    padding: 10px 10px 0 10px;
    border-radius: 12px;
    border-bottom: 8px solid #0d0d0d;
    box-shadow: inset 0 8px 10px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.5);
    max-width: 600px;
    margin: 0 auto;
}

.key {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.1s ease;
}

.key.white {
    width: 60px;
    height: 100%;
    background: #fbfbfb;
    border-right: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 15px;
}

.key.white:last-child {
    border-right: none;
}

.key.white:active, .key.white.active {
    background: #e0e0e0;
    border-bottom: 8px solid #a8a8a8;
    height: calc(100% - 4px);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.key.white .key-label {
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
}

.key.black {
    width: 36px;
    height: 60%;
    background: #111111;
    border-radius: 0 0 4px 4px;
    margin-left: -18px;
    margin-right: -18px;
    z-index: 2;
    box-shadow: 0 4px 4px rgba(0,0,0,0.4);
}

.key.black:active, .key.black.active {
    background: #2b2b2b;
    height: calc(60% - 2px);
}

.key.black .key-label {
    display: none;
}

/* NINTENDO SWITCH SECTION */
.switch-console-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.switch-console {
    display: flex;
    width: 100%;
    max-width: 680px;
    height: 290px;
    background: #232427;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 2px 5px rgba(255,255,255,0.1);
    transform: rotateX(5deg);
    transition: transform 0.5s ease;
}

.switch-console:hover {
    transform: rotateX(0deg) scale(1.02);
}

.joycon {
    width: 90px;
    height: 100%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    position: relative;
}

.joycon.left {
    background: #00d2ff;
    border-radius: 20px 0 0 20px;
}

.joycon.right {
    background: #ff3e3e;
    border-radius: 0 20px 20px 0;
}

.analog-stick {
    width: 44px;
    height: 44px;
    background: #111;
    border-radius: 50%;
    border: 3px solid #222;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.3),
        inset 0 2px 4px rgba(255,255,255,0.2);
}

.joycon.right .analog-stick {
    order: 2;
}

.d-pad {
    position: relative;
    width: 60px;
    height: 60px;
}

.d-btn {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #111;
    border-radius: 50%;
    border: none;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    cursor: pointer;
    outline: none;
}

.d-btn:active {
    background: #252525;
}

.d-btn.up { top: 0; left: 21px; }
.d-btn.left-dir { top: 21px; left: 0; }
.d-btn.right-dir { top: 21px; right: 0; }
.d-btn.down { bottom: 0; left: 21px; }

.action-buttons {
    position: relative;
    width: 60px;
    height: 60px;
    order: 1;
}

.a-btn {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #111;
    border-radius: 50%;
    border: none;
    color: #bbb;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
}

.a-btn:active {
    background: #252525;
    color: #fff;
}

.a-btn.x-btn { top: 0; left: 21px; }
.a-btn.y-btn { top: 21px; left: 0; }
.a-btn.a-btn-main { top: 21px; right: 0; color: #ff3e3e; }
.a-btn.b-btn { bottom: 0; left: 21px; }

.minus-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #111;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

.plus-btn {
    position: absolute;
    top: 10px;
    left: 15px;
    color: #111;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

.screenshot-btn {
    width: 12px;
    height: 12px;
    background: #111;
    border-radius: 3px;
    cursor: pointer;
}

.home-btn {
    width: 16px;
    height: 16px;
    background: #111;
    border-radius: 50%;
    border: 2px solid #222;
    cursor: pointer;
}

.switch-screen {
    flex-grow: 1;
    background: #000;
    border: 6px solid #111;
    border-radius: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #111;
    font-size: 0.7rem;
    color: #555;
}

.screen-content {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #0a0b10;
}

.game-carousel {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.game-card {
    width: 105px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card.active {
    border-color: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.game-img {
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    background: #1c2030;
    position: relative;
}

.game-img span {
    font-size: 6px;
    font-weight: bold;
    margin-top: 5px;
    color: #888;
}

.math-game-cover { background: linear-gradient(135deg, #1e3c72, #2a5298); color: #ffd700; }
.piano-game-cover { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #fff; }
.ronaldo-game-cover { background: linear-gradient(135deg, #ff4b2b, #ff416c); color: #fff; }

.game-title {
    font-size: 8px;
    text-align: center;
    padding: 6px 2px;
    font-weight: bold;
    color: #bbb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card.active .game-title {
    color: #fff;
}

.screen-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #555;
    border-top: 1px solid #111;
    padding-top: 8px;
}

.btn-a, .btn-lr {
    background: #222;
    color: #fff;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 6px;
    font-weight: bold;
    margin-right: 4px;
}

/* RONALDO SECTION */
.cr7-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.cr7-visual {
    display: flex;
    justify-content: center;
}

.cr7-card {
    background: linear-gradient(135deg, #11121b, #1d1e2f);
    border: 1px solid var(--border-card);
    width: 250px;
    border-radius: 20px;
    padding: 3px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.cr7-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, var(--primary), transparent);
    animation: rotateGlow 4s linear infinite;
    z-index: 1;
}

@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

.cr7-card-inner {
    background: #0c0d15;
    border-radius: 17px;
    padding: 30px 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cr7-avatar-glow {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 75, 43, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(255, 75, 43, 0.2);
}

.cr7-card-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cr7-role {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.cr7-stats {
    display: flex;
    gap: 20px;
    width: 100%;
    border-top: 1px solid var(--border-card);
    padding-top: 15px;
}

.cr7-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cr7-stat strong {
    font-size: 1.2rem;
    color: #fff;
}

.cr7-stat span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cr7-interactive {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-siuuu {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    user-select: none;
}

.btn-siuuu:hover {
    filter: brightness(110%);
}

.siuuu-btn-top {
    display: block;
    padding: 20px 50px;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #e74c3c);
    color: white;
    transform: translateY(-6px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.siuuu-btn-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    background: #c0392b;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.btn-siuuu:active .siuuu-btn-top {
    transform: translateY(-2px);
    transition: transform 34ms;
}

.btn-siuuu:active .siuuu-btn-bottom {
    transform: translateY(0px);
    transition: transform 34ms;
}

.siuuu-counter-text {
    font-size: 1rem;
    color: var(--text-muted);
}

.counter-num {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}

/* Confetti element */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 999;
    pointer-events: none;
    animation: confettiFall 2.5s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) rotate(720deg);
        opacity: 0;
    }
}

/* SIU Text Pop */
.siu-pop {
    position: fixed;
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(255,215,0,0.8);
    pointer-events: none;
    z-index: 1000;
    animation: siuPopAnim 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes siuPopAnim {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    30% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    80% { transform: scale(1) rotate(0); opacity: 1; }
    100% { transform: scale(0.8) translateY(-50px); opacity: 0; }
}

/* KFC SECTION */
.kfc-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 700px;
    margin: 0 auto;
}

.kfc-bucket-wrapper {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kfc-bucket {
    width: 140px;
    height: 155px;
    background: #ffffff;
    border-radius: 12px 12px 35px 35px;
    position: relative;
    border: 4px solid #111;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.kfc-bucket:hover {
    transform: scale(1.08) rotate(2deg);
}

.kfc-bucket:active {
    transform: scale(0.95);
}

.bucket-top {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 140px;
    height: 18px;
    background: #e74c3c;
    border: 4px solid #111;
    border-radius: 10px 10px 0 0;
}

.bucket-stripes {
    position: absolute;
    top: 14px;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
}

.stripe {
    flex-grow: 1;
    height: 100%;
}

.stripe.red { background: #e74c3c; }
.stripe.white { background: #ffffff; }

.bucket-logo {
    position: relative;
    background: #ffffff;
    color: #e74c3c;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    padding: 2px 14px;
    border-radius: 4px;
    border: 3px solid #111;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 6;
}

.chicken-pieces {
    position: absolute;
    top: -30px;
    display: flex;
    gap: 5px;
}

.chicken-drumstick {
    font-size: 2.2rem;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.kfc-message-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.message-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    padding: 25px;
    border-radius: 20px;
    font-size: 1.05rem;
    color: #fff;
    min-height: 100px;
    display: flex;
    align-items: center;
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: #11131c;
    border-left: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

.flying-drumstick {
    position: fixed;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 999;
    animation: flyDrumstick 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes flyDrumstick {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(360deg); opacity: 0; }
}

/* MATH CHALLENGE SECTION */
.math-game-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1.5px dashed var(--border-card);
    border-radius: 20px;
    min-height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.game-sub-screen {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.math-intro-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.math-game-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.math-game-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.game-status-bar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.game-time {
    color: var(--secondary);
}

.game-score {
    color: var(--accent);
}

.math-question {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 30px;
}

.math-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.answer-choice {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-choice:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.answer-choice:active {
    transform: translateY(0);
}

.answer-choice.correct {
    background: rgba(46, 204, 113, 0.2) !important;
    border-color: #2ecc71 !important;
}

.answer-choice.incorrect {
    background: rgba(231, 76, 60, 0.2) !important;
    border-color: #e74c3c !important;
}

.final-score-highlight {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
    margin: 10px 0;
}

/* Footer styling */
.footer {
    border-top: 1px solid var(--border-card);
    padding: 40px 8%;
    text-align: center;
    background: #07080b;
    position: relative;
    z-index: 10;
}

.footer p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer .copyright {
    font-size: 0.75rem;
    margin-top: 8px;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 140px;
        gap: 30px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .cr7-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .kfc-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .message-bubble::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 5%;
    }
    
    .nav-links {
        display: none; /* Can add burger menu or just keep simple for mom */
    }
    
    .interactive-section {
        padding: 30px 15px;
    }
    
    .piano-keyboard {
        height: 200px;
    }
    
    .key.white {
        width: 42px;
    }
    
    .key.black {
        width: 26px;
        margin-left: -13px;
        margin-right: -13px;
    }
    
    .switch-console {
        height: 210px;
    }
    
    .joycon {
        width: 60px;
        padding: 10px 5px;
    }
    
    .analog-stick {
        width: 28px;
        height: 28px;
    }
    
    .d-pad, .action-buttons {
        width: 44px;
        height: 44px;
    }
    
    .d-btn, .a-btn {
        width: 14px;
        height: 14px;
        font-size: 6px;
    }
    
    .d-btn.up, .a-btn.x-btn { left: 15px; }
    .d-btn.left-dir, .a-btn.y-btn { top: 15px; }
    .d-btn.right-dir, .a-btn.a-btn-main { top: 15px; }
    .d-btn.down, .a-btn.b-btn { bottom: 0; left: 15px; }
    
    .plus-btn, .minus-btn {
        font-size: 10px;
    }
}
