:root {
    --bg-color: #202028; 
    --text-color: #ffffff;
    --ground-color: #3f3f3f;
    --accent-red: #ff3333;
    --mario-skin: #ffcc99;
    --mario-blue: #3366ff;
    --mario-brown: #663300;
    --ground-height: 100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Press Start 2P', cursive;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.container {
    position: relative;
    text-align: center;
    z-index: 10;
}

h1 {
    font-size: clamp(60px, 15vw, 150px);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px #000;
    animation: float 4s ease-in-out infinite;
}

.subtitle {
    font-size: clamp(12px, 2vw, 18px);
    margin-bottom: 40px;
    opacity: 0.8;
    letter-spacing: 1px;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 15px 25px;
    background: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-size: 14px;
    border: 4px solid var(--text-color);
    transition: all 0.1s;
    cursor: pointer;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 4px 0 rgba(0,0,0,0.5);
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: var(--ground-height);
    border-top: 4px solid #000;
    background: 
        linear-gradient(90deg, #555 4px, transparent 1%) center, 
        linear-gradient(#555 4px, transparent 1%) center,
        var(--ground-color);
    background-size: 40px 40px;
    z-index: 5;
}

.sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    animation: cloud-pass linear infinite;
}

.cloud::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 15%;
    width: 50%;
    height: 120%;
    background: inherit;
    border-radius: 50%;
}

.c1 { top: 15%; width: 120px; height: 40px; left: -150px; animation-duration: 25s; }
.c2 { top: 30%; width: 80px; height: 30px; left: -100px; animation-duration: 40s; animation-delay: -10s; }
.c3 { top: 10%; width: 160px; height: 50px; left: -200px; animation-duration: 30s; animation-delay: -5s; }

@keyframes cloud-pass {
    0% { transform: translateX(110vw); }
    100% { transform: translateX(-20vw); }
}

.mario-runner {
    position: absolute;
    bottom: var(--ground-height);
    left: -50px; 
    width: 32px; 
    height: 32px;
    z-index: 20;
    animation: run-across-screen 6s linear infinite;
    transform-origin: bottom center;
}

.mario-scale {
    width: 100%;
    height: 100%;
    transform: scale(1.5); 
    position: relative;
}

/* Body Parts */
.m-head {
    position: absolute;
    top: 0;
    left: 6px;
    width: 16px;
    height: 16px;
    z-index: 2;
}

.m-hat {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-red);
    border-radius: 4px 4px 0 0;
}

.m-hat::before { 
    content: '';
    position: absolute;
    bottom: 0;
    right: -2px;
    width: 60%;
    height: 2px;
    background: var(--accent-red);
}

.m-face {
    position: absolute;
    top: 6px;
    left: 2px;
    width: 12px;
    height: 8px;
    background: var(--mario-skin);
    border-radius: 0 0 4px 4px;
}

.m-nose {
    position: absolute;
    top: 8px;
    right: -2px;
    width: 4px;
    height: 3px;
    background: var(--mario-skin);
    border-radius: 0 2px 2px 0;
}

.m-mustache {
    position: absolute;
    top: 10px;
    right: 0px;
    width: 5px;
    height: 2px;
    background: #000;
}

.m-torso {
    position: absolute;
    top: 14px;
    left: 8px;
    width: 12px;
    height: 10px;
    background: var(--mario-blue); 
    z-index: 1;
    border-radius: 2px;
}

.m-shirt {
    position: absolute;
    top: 14px;
    left: 6px;
    width: 16px;
    height: 6px;
    background: var(--accent-red);
    z-index: 0;
    border-radius: 3px;
}

.m-torso::before, .m-torso::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 2px;
    height: 2px;
    background: yellow;
}

.m-torso::before { left: 2px; }
.m-torso::after { right: 2px; }

.m-arm {
    position: absolute;
    top: 15px;
    width: 10px;
    height: 4px;
    background: var(--accent-red);
    transform-origin: top left;
}

.m-arm.left { 
    left: 6px; 
    animation: arm-swing 0.4s infinite alternate; 
}

.m-arm.right { 
    left: 12px; 
    animation: arm-swing 0.4s infinite alternate-reverse; 
    display: none; 
}

.m-leg {
    position: absolute;
    top: 22px;
    width: 6px;
    height: 8px;
    background: var(--mario-blue);
    transform-origin: top center;
}

.m-shoe {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 8px;
    height: 4px;
    background: var(--mario-brown);
    border-radius: 0 2px 2px 0;
}

.m-leg.left { 
    left: 8px; 
    animation: run-cycle-legs 0.3s infinite alternate;
}

.m-leg.right { 
    left: 14px; 
    animation: run-cycle-legs 0.3s infinite alternate-reverse;
}


@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes run-across-screen {
    0% { transform: translateX(-10vw); }
    100% { transform: translateX(110vw); }
}

@keyframes run-cycle-legs {
    from { transform: rotate(-30deg); }
    to { transform: rotate(30deg); }
}

@keyframes arm-swing {
    from { transform: rotate(-40deg); }
    to { transform: rotate(40deg); }
}

.question-block {
    width: 40px;
    height: 40px;
    background: #ffcc00;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #b35900;
    border: 4px solid #b35900;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    animation: pulse-block 2s infinite;
}

.question-block::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 4px;
    height: 4px;
    background: #ffffcc;
}

@keyframes pulse-block {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}