:root {
    --bg-dark: #0a0a0c;
    --glass-bg: rgba(25, 25, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f0;
    --text-muted: #88888b;
    --accent-1: #4f46e5;
    --accent-2: #db2777;
    --accent-3: #059669;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: lowercase;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden; 
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    transition: transform 0.1s ease-out;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-1);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: var(--accent-2);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: var(--accent-3);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 10vh) scale(1.2); }
}

.container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.container::-webkit-scrollbar {
    display: none;
}

.screen {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    padding: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
}

.scroll-indicator {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-main), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.glitch {
    position: relative;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-2);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-1);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(90% 0 5% 0); }
    100% { clip-path: inset(40% 0 30% 0); }
}

.knowledge-container {
    position: relative;
    display: inline-block;
}

.word-knowledge {
    display: inline-block;
    transform-origin: bottom left;
}

.word-brain {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: scale(0.5) translateY(-20px);
    font-size: 1.2em;
}

.glass-card.visible .word-knowledge {
    animation: knockAway 1s forwards;
    animation-delay: 1.2s;
}

.glass-card.visible .word-brain {
    animation: popInBrain 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1.4s;
}

@keyframes knockAway {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    10% {
        transform: translate(-5px, 0) rotate(-5deg);
        opacity: 1;
    }
    100% {
        transform: translate(150px, 30px) rotate(120deg);
        opacity: 0;
    }
}

@keyframes popInBrain {
    0% { transform: scale(0.5) translateY(-30px) rotate(-20deg); opacity: 0; }
    100% { transform: scale(1) translateY(0) rotate(0deg); opacity: 1; }
}

.kick-scene-container {
    display: grid;
    align-items: center;
    justify-items: center;
}

.text-original, .text-new {
    grid-area: 1 / 1;
}

.text-new {
    opacity: 0;
    transform: scale(0.9);
}

.kick-container {
    position: relative;
    display: inline-block;
}

.number-33 {
    display: inline-block;
    transform-origin: center;
}

.foot-emoji {
    position: absolute;
    left: -40px;
    top: -10px;
    opacity: 0;
    font-size: 1.5em;
    transform: translateX(-20px) rotate(-20deg);
}

.number-34 {
    font-weight: 900;
    color: var(--accent-1);
}

.glass-card.visible .foot-emoji {
    animation: kickAnimation 0.6s forwards;
    animation-delay: 4.0s;
}

.glass-card.visible .number-33 {
    animation: flyAway33 0.5s forwards;
    animation-delay: 4.4s;
}

.glass-card.visible .text-original {
    animation: swapOut 0.1s forwards;
    animation-delay: 4.5s;
}

.glass-card.visible .text-new {
    animation: swapIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 4.5s;
}

@keyframes kickAnimation {
    0% { opacity: 0; transform: translateX(-40px) translateY(-10px) rotate(-30deg); }
    40% { opacity: 1; transform: translateX(-20px) translateY(0px) rotate(0deg); }
    80% { opacity: 1; transform: translateX(10px) translateY(-10px) rotate(30deg); }
    100% { opacity: 0; transform: translateX(10px) translateY(-10px) rotate(30deg); }
}

@keyframes flyAway33 {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(150px, -100px) rotate(360deg); opacity: 0; }
}

@keyframes swapOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes swapIn {
    to { opacity: 1; transform: scale(1); }
}

/* Intro Lock Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.lock-container {
    font-size: 2rem;
    position: relative;
    height: 3rem;
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}
.lock-closed, .lock-open {
    position: absolute;
}
.lock-open {
    opacity: 0;
    transform: scale(0.5);
}
.glass-card.visible .lock-closed {
    animation: fadeOut 0.2s forwards;
    animation-delay: 1.5s;
}
.glass-card.visible .lock-open {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1.6s;
}
.era-text {
    opacity: 0;
}
.glass-card.visible .era-text {
    animation: fadeUpIn 0.8s forwards;
    animation-delay: 2.0s;
}

@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }
@keyframes fadeUpIn { 
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Wishes Gift Animation */
.gift-container {
    font-size: 3rem;
    position: relative;
    height: 4rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}
.gift-emoji, .heart-emoji {
    position: absolute;
}
.heart-emoji {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
}
.glass-card.visible .gift-emoji {
    animation: shakeGift 0.8s forwards, explodeGift 0.2s forwards;
    animation-delay: 1.0s, 1.8s;
}
.glass-card.visible .heart-emoji {
    animation: floatHeart 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1.9s;
}

@keyframes shakeGift {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg) scale(1.1); }
    50% { transform: rotate(-15deg) scale(1.1); }
    75% { transform: rotate(15deg) scale(1.1); }
}
@keyframes explodeGift {
    to { transform: scale(2); opacity: 0; }
}
@keyframes floatHeart {
    to { opacity: 1; transform: scale(1.5) translateY(-20px); }
}

/* Finale Confetti */
.confetti-container {
    position: absolute;
    top: -50px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.confetti {
    position: absolute;
    opacity: 0;
    font-size: 2rem;
}
.glass-card.visible .confetti {
    animation: confettiRain 2s forwards;
    animation-delay: var(--d);
}
@keyframes confettiRain {
    0% { opacity: 1; transform: translate(var(--x), 0) scale(0); }
    50% { opacity: 1; transform: translate(var(--x), -50px) scale(1.2) rotate(45deg); }
    100% { opacity: 0; transform: translate(calc(var(--x) * 2), 100px) scale(1) rotate(90deg); }
}

/* Wishlist Section */
.disclaimer {
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.8;
}

.wishlist {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wishlist p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.wishlist ul {
    list-style: none;
    padding: 0;
}

.wishlist li {
    margin-bottom: 1rem;
}

.wish-link {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: inline-block;
}

.wish-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--accent-1);
}
