@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;600;700;900&display=swap');

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

html {
    height: 100%;
    overflow: hidden;
    background: #FCD34D;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #FCD34D;
    /* Safe area support for notched devices */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.page {
    display: none;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* Home Page */
#home {
    background: #FCD34D;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
}

.background-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background-image: url('data:image/svg+xml;utf8,<svg width="2544" height="1937" viewBox="0 0 2544 1937" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(%23filter0_f_444_1311)"><rect x="1152.43" y="718.184" width="462.642" height="651.364" rx="183.225" transform="rotate(-15 1152.43 718.184)" fill="%235DCB83"/><rect x="2368.99" y="903.246" width="462.642" height="651.364" rx="183.225" transform="rotate(135 2368.99 903.246)" fill="%238987FF"/><rect x="729.48" y="846.803" width="462.642" height="651.364" rx="183.225" transform="rotate(152.759 729.48 846.803)" fill="%235DCB83"/><rect x="1752.75" y="1086.78" width="462.642" height="651.364" rx="183.225" transform="rotate(30 1752.75 1086.78)" fill="%23FFD966"/><rect x="827.126" y="1343.1" width="462.642" height="651.364" rx="183.225" transform="rotate(-30 827.126 1343.1)" fill="%23F786E2"/><rect x="791.77" y="593.156" width="462.642" height="651.364" rx="183.225" transform="rotate(30 791.77 593.156)" fill="%23FFD966"/><rect x="177.729" y="1456.16" width="462.642" height="651.364" rx="183.225" transform="rotate(-45 177.729 1456.16)" fill="%238987FF"/><rect x="796.319" y="139.74" width="462.642" height="651.364" rx="183.225" transform="rotate(-15 796.319 139.74)" fill="%23F786E2"/></g><defs><filter id="filter0_f_444_1311" x="-166.492" y="-188.867" width="2709.58" height="2279.72" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation="125" result="effect1_foregroundBlur_444_1311"/></filter></defs></svg>'), url('data:image/svg+xml;utf8,<svg width="2674" height="1937" viewBox="0 0 2674 1937" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(%23filter0_f_444_1310)"><rect x="951" y="1317.74" width="462.642" height="651.364" rx="183.225" transform="rotate(-15 951 1317.74)" fill="%235DCB83"/><rect x="1907.72" y="990.584" width="462.642" height="651.364" rx="183.225" transform="rotate(135 1907.72 990.584)" fill="%239386FF"/><rect x="1045.48" y="712.121" width="462.642" height="651.364" rx="183.225" transform="rotate(152.759 1045.48 712.121)" fill="%235DCB83"/><rect x="2487.48" y="939.121" width="462.642" height="651.364" rx="183.225" transform="rotate(152.759 2487.48 939.121)" fill="%235DCB83"/><rect x="1870.75" y="1086.77" width="462.642" height="651.364" rx="183.225" transform="rotate(30 1870.75 1086.77)" fill="%23FFD966"/><rect x="183" y="1461.32" width="462.642" height="651.364" rx="183.225" transform="rotate(-30 183 1461.32)" fill="%23F786E2"/><rect x="976.682" y="435" width="462.642" height="651.364" rx="183.225" transform="rotate(30 976.682 435)" fill="%23FFD966"/><rect x="297" y="1151.14" width="462.642" height="651.364" rx="183.225" transform="rotate(-45 297 1151.14)" fill="%239386FF"/><rect x="1224" y="139.74" width="462.642" height="651.364" rx="183.225" transform="rotate(-15 1224 139.74)" fill="%23F786E2"/></g><defs><filter id="filter0_f_444_1310" x="0.0341797" y="-188.867" width="2673.94" height="2397.25" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation="125" result="effect1_foregroundBlur_444_1310"/></filter></defs></svg>'), url('data:image/svg+xml;utf8,<svg width="2570" height="1937" viewBox="0 0 2570 1937" fill="none" xmlns="http://www.w3.org/2000/svg"><g filter="url(%23filter0_f_444_1309)"><rect x="419" y="1270.74" width="462.642" height="651.364" rx="183.225" transform="rotate(-15 419 1270.74)" fill="%235DCB83"/><rect x="1930.46" y="1175.17" width="462.642" height="651.364" rx="183.225" transform="rotate(165 1930.46 1175.17)" fill="%239386FF"/><rect x="1546.64" y="623.363" width="462.642" height="651.364" rx="183.225" transform="rotate(-180 1546.64 623.363)" fill="%235DCB83"/><rect x="2121.66" y="1715.42" width="462.642" height="651.364" rx="183.225" transform="rotate(-150 2121.66 1715.42)" fill="%235DCB83"/><rect x="1359.68" y="1199" width="462.642" height="651.364" rx="183.225" transform="rotate(30 1359.68 1199)" fill="%23FFD966"/><rect x="782.014" y="924.324" width="462.642" height="651.364" rx="183.225" transform="rotate(-30 782.014 924.324)" fill="%23F786E2"/><rect x="508.682" y="570" width="462.642" height="651.364" rx="183.225" transform="rotate(30 508.682 570)" fill="%23FFD966"/><rect x="437" y="377.332" width="462.642" height="651.364" rx="183.225" transform="rotate(-33.646 437 377.332)" fill="%239386FF"/><rect x="1721" y="338.74" width="462.642" height="651.364" rx="183.225" transform="rotate(-15 1721 338.74)" fill="%23F786E2"/></g><defs><filter id="filter0_f_444_1309" x="0.0332031" y="-278" width="2630.28" height="2455.38" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation="125" result="effect1_foregroundBlur_444_1309"/></filter></defs></svg>');
    background-size: cover;
    background-position: center;
    animation: backgroundFloat 4s ease-in-out infinite;
    opacity: 1;
}

@keyframes backgroundFloat {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(-40%, -45%) scale(1.2) rotate(5deg);
    }
    50% {
        transform: translate(-60%, -55%) scale(0.9) rotate(-3deg);
    }
    75% {
        transform: translate(-45%, -60%) scale(1.1) rotate(-5deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.container {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #5B4EFF;
}

.logo-img {
    width: 750px;
    max-width: 90%;
    height: auto;
    margin-bottom: 1.5rem;
}

.smiley-stamp {
    position: fixed;
    pointer-events: none;
    transform: translate(-25px, -25px);
    z-index: 100;
    animation: stampPop 0.3s ease;
}

@keyframes stampPop {
    0% {
        transform: translate(-25px, -25px) scale(0);
    }
    50% {
        transform: translate(-25px, -25px) scale(1.2);
    }
    100% {
        transform: translate(-25px, -25px) scale(1);
    }
}

.tagline {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #2D3748;
    font-weight: 400;
    line-height: 1.3;
}

.cta-btn {
    background: #6451FA;
    color: white;
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: 'Prompt', sans-serif;
    text-transform: capitalize;
    min-height: 44px;
    min-width: 44px;
}

.cta-btn:hover {
    transform: scale(1.05);
}

.cta-btn:active {
    transform: scale(0.98);
}

/* Back Button */
.back-btn {
    position: absolute;
    top: max(2rem, env(safe-area-inset-top));
    left: max(2rem, env(safe-area-inset-left));
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem 1rem;
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

.back-btn:hover {
    opacity: 0.7;
}

.back-btn:active {
    opacity: 0.5;
}

/* Split Container for Questions */
.split-container {
    display: flex;
    height: 85vh;
    width: 100%;
}

.split-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 4rem 2rem;
    color: white;
    -webkit-tap-highlight-color: transparent;
}

.split-option:hover {
    transform: scale(1.02);
}

.split-option:active {
    transform: scale(0.98);
}

.split-option h2 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 0rem;
    margin-top: 0;
}

.split-option p {
    font-size: 1.8rem;
    max-width: 400px;
    text-align: center;
    margin-bottom: 5rem;
    margin-top: 0;
    line-height: 1.2;
}

.split-option .icon {
    font-size: 6rem;
}

.split-option .icon img,
.split-option .icon svg {
    width: 280px;
    height: auto;
    max-height: 280px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-brainy svg {
    margin-top: -3rem;
}

/* Indoor - Smiley rolls left to right inside house */
.split-option:hover .icon-indoor #indoor-smiley,
.split-option:hover .icon-indoor #indoor-eye1,
.split-option:hover .icon-indoor #indoor-eye2,
.split-option:hover .icon-indoor #indoor-smile {
    animation: rollsmiley 2s ease-in-out infinite;
}

/* Auto-play on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .icon-indoor #indoor-smiley,
    .icon-indoor #indoor-eye1,
    .icon-indoor #indoor-eye2,
    .icon-indoor #indoor-smile {
        animation: rollsmiley 2s ease-in-out infinite;
    }
}

@keyframes rollsmiley {
    0%, 100% { transform: translateX(-30px); }
    50% { transform: translateX(30px); }
}

/* Outdoor - Smiley hikes up mountain, sun rotates */
.split-option:hover .icon-outdoor #outdoor-smiley,
.split-option:hover .icon-outdoor #outdoor-eye1,
.split-option:hover .icon-outdoor #outdoor-eye2,
.split-option:hover .icon-outdoor #outdoor-smile {
    animation: hikeup 3s ease-in-out infinite;
}

.split-option:hover .icon-outdoor #outdoor-sun {
    animation: sunrotate 4s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
}

/* Auto-play on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .icon-outdoor #outdoor-smiley,
    .icon-outdoor #outdoor-eye1,
    .icon-outdoor #outdoor-eye2,
    .icon-outdoor #outdoor-smile {
        animation: hikeup 3s ease-in-out infinite;
    }

    .icon-outdoor #outdoor-sun {
        animation: sunrotate 4s linear infinite;
        transform-origin: center;
        transform-box: fill-box;
    }
}

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

@keyframes sunrotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Maker - Triangle falls, smiley bounces */
.split-option:hover .icon-maker #maker-triangle {
    animation: trianglefall 0.6s ease-out;
}

.split-option:hover .icon-maker #maker-smiley,
.split-option:hover .icon-maker #maker-eye1,
.split-option:hover .icon-maker #maker-eye2,
.split-option:hover .icon-maker #maker-smile {
    animation: smileybounce 0.6s ease-in-out infinite;
}

/* Auto-play on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .icon-maker #maker-triangle {
        animation: trianglefall 0.6s ease-out;
    }

    .icon-maker #maker-smiley,
    .icon-maker #maker-eye1,
    .icon-maker #maker-eye2,
    .icon-maker #maker-smile {
        animation: smileybounce 0.6s ease-in-out infinite;
    }
}

@keyframes trianglefall {
    0% { transform: translateY(-80px); }
    100% { transform: translateY(0); }
}

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

/* Mover - Pink and purple smileys move up/down at different times */
.split-option:hover .icon-mover #mover-smiley1,
.split-option:hover .icon-mover #mover-eye1-1,
.split-option:hover .icon-mover #mover-eye1-2,
.split-option:hover .icon-mover #mover-smile1 {
    animation: moverDance1 0.45s ease-in-out infinite;
}

.split-option:hover .icon-mover #mover-smiley2,
.split-option:hover .icon-mover #mover-eye2-1,
.split-option:hover .icon-mover #mover-eye2-2,
.split-option:hover .icon-mover #mover-smile2 {
    animation: moverDance2 0.55s ease-in-out infinite 0.15s;
}

/* Auto-play on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .icon-mover #mover-smiley1,
    .icon-mover #mover-eye1-1,
    .icon-mover #mover-eye1-2,
    .icon-mover #mover-smile1 {
        animation: moverDance1 0.45s ease-in-out infinite;
    }

    .icon-mover #mover-smiley2,
    .icon-mover #mover-eye2-1,
    .icon-mover #mover-eye2-2,
    .icon-mover #mover-smile2 {
        animation: moverDance2 0.55s ease-in-out infinite 0.15s;
    }
}

@keyframes moverDance1 {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-4px, -6px); }
    40%  { transform: translate(4px, -8px); }
    60%  { transform: translate(-3px, -5px); }
    80%  { transform: translate(3px, -7px); }
    100% { transform: translate(0, 0); }
}

@keyframes moverDance2 {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(4px, -5px); }
    50%  { transform: translate(-4px, -7px); }
    75%  { transform: translate(3px, -3px); }
    100% { transform: translate(0, 0); }
}

/* Solo - Easel stays, paint brush moves */
.split-option:hover .icon-solo #solo-paintbrush {
    animation: paint 1.5s ease-in-out infinite;
}

/* Auto-play on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .icon-solo #solo-paintbrush {
        animation: paint 1.5s ease-in-out infinite;
    }
}

@keyframes paint {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(15px); }
}

/* Social - People bounce and confetti flies */
.split-option:hover .icon-social #social-person1,
.split-option:hover .icon-social #social-person1-eye1,
.split-option:hover .icon-social #social-person1-eye2,
.split-option:hover .icon-social #social-person1-smile {
    animation: personbounce1 0.6s ease-in-out infinite;
}

.split-option:hover .icon-social #social-person2,
.split-option:hover .icon-social #social-person2-eye1,
.split-option:hover .icon-social #social-person2-eye2,
.split-option:hover .icon-social #social-person2-smile {
    animation: personbounce2 0.7s ease-in-out infinite 0.1s;
}

.split-option:hover .icon-social #social-person3,
.split-option:hover .icon-social #social-person3-eye1,
.split-option:hover .icon-social #social-person3-eye2,
.split-option:hover .icon-social #social-person3-smile {
    animation: personbounce3 0.8s ease-in-out infinite 0.2s;
}

.split-option:hover .icon-social #social-person4,
.split-option:hover .icon-social #social-person4-eye1,
.split-option:hover .icon-social #social-person4-eye2,
.split-option:hover .icon-social #social-person4-smile {
    animation: personbounce4 0.65s ease-in-out infinite 0.15s;
}

.split-option:hover .icon-social [id^="social-confetti"] {
    animation: confettipop 1.2s ease-in-out infinite;
}

/* Auto-play on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .icon-social #social-person1,
    .icon-social #social-person1-eye1,
    .icon-social #social-person1-eye2,
    .icon-social #social-person1-smile {
        animation: personbounce1 0.6s ease-in-out infinite;
    }

    .icon-social #social-person2,
    .icon-social #social-person2-eye1,
    .icon-social #social-person2-eye2,
    .icon-social #social-person2-smile {
        animation: personbounce2 0.7s ease-in-out infinite 0.1s;
    }

    .icon-social #social-person3,
    .icon-social #social-person3-eye1,
    .icon-social #social-person3-eye2,
    .icon-social #social-person3-smile {
        animation: personbounce3 0.8s ease-in-out infinite 0.2s;
    }

    .icon-social #social-person4,
    .icon-social #social-person4-eye1,
    .icon-social #social-person4-eye2,
    .icon-social #social-person4-smile {
        animation: personbounce4 0.65s ease-in-out infinite 0.15s;
    }

    .icon-social [id^="social-confetti"] {
        animation: confettipop 1.2s ease-in-out infinite;
    }
}

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

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

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

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

@keyframes confettipop {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Brainy - Bottom smiley rolls in */
.icon-brainy #brainy-smiley2,
.icon-brainy #brainy-eye2-1,
.icon-brainy #brainy-eye2-2,
.icon-brainy #brainy-smile2 {
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
    transform: translateX(-400px) rotate(-720deg);
    transition: none;
}

.split-option:hover .icon-brainy #brainy-smiley2,
.split-option:hover .icon-brainy #brainy-eye2-1,
.split-option:hover .icon-brainy #brainy-eye2-2,
.split-option:hover .icon-brainy #brainy-smile2 {
    animation: brainyrollin 1s ease-out forwards;
}

/* Auto-play on mobile/touch devices - delayed start */
@media (hover: none) and (pointer: coarse) {
    .icon-brainy #brainy-smiley2,
    .icon-brainy #brainy-eye2-1,
    .icon-brainy #brainy-eye2-2,
    .icon-brainy #brainy-smile2 {
        animation: brainyrollin 1s ease-out 0.5s forwards;
    }
}

@keyframes brainyrollin {
    0% {
        opacity: 0;
        transform: translateX(-400px) rotate(-720deg);
    }
    1% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

/* Brawny - Dumbbells pump */
/* Brawny dumbbells - pure vertical movement, no transform-origin needed */

.split-option:hover .icon-brawny #brawny-dumbbell-left,
.split-option:hover .icon-brawny #brawny-dumbbell-right {
    animation: pump 0.6s ease-in-out infinite;
}

.split-option:hover .icon-brawny #brawny-dumbbell-center {
    animation: pump 0.6s ease-in-out infinite 0.1s;
}

/* Auto-play on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .icon-brawny #brawny-dumbbell-left,
    .icon-brawny #brawny-dumbbell-right {
        animation: pump 0.6s ease-in-out infinite;
    }

    .icon-brawny #brawny-dumbbell-center {
        animation: pump 0.6s ease-in-out infinite 0.1s;
    }
}

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

/* Learn - Smiley face bounces on books */
.split-option:hover .icon-learn #learn-face,
.split-option:hover .icon-learn #learn-eye1,
.split-option:hover .icon-learn #learn-eye2,
.split-option:hover .icon-learn #learn-smile {
    animation: facebounce 0.8s ease-out infinite;
}

.split-option:hover .icon-learn #learn-book1 {
    animation: bookfall1 0.6s ease-out;
}

.split-option:hover .icon-learn #learn-book2 {
    animation: bookfall2 0.8s ease-out;
}

.split-option:hover .icon-learn #learn-book3 {
    animation: bookfall3 1s ease-out;
}

.split-option:hover .icon-learn #learn-book4 {
    animation: bookfall4 1.2s ease-out;
}

.split-option:hover .icon-learn #learn-book5 {
    animation: bookfall5 1.4s ease-out;
}

/* Auto-play on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .icon-learn #learn-face,
    .icon-learn #learn-eye1,
    .icon-learn #learn-eye2,
    .icon-learn #learn-smile {
        animation: facebounce 0.8s ease-out infinite;
    }
}

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

@keyframes bookfall1 {
    0% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

@keyframes bookfall2 {
    0% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

@keyframes bookfall3 {
    0% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

@keyframes bookfall4 {
    0% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

@keyframes bookfall5 {
    0% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

/* Relax - Trees stay, hammock swings */
.split-option:hover .icon-relax #relax-hammock {
    animation: swing 2s ease-in-out infinite;
    transform-origin: center top;
    transform-box: fill-box;
}

.split-option:hover .icon-relax #relax-smiley-group {
    animation: swingsmiley 2s ease-in-out infinite;
}

/* Auto-play on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .icon-relax #relax-hammock {
        animation: swing 2s ease-in-out infinite;
        transform-origin: center top;
        transform-box: fill-box;
    }

    .icon-relax #relax-smiley-group {
        animation: swingsmiley 2s ease-in-out infinite;
    }
}

@keyframes swing {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes swingsmiley {
    0%, 100% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
}

/* Selected state animations */
.split-option.selected .icon-indoor img {
    animation: shake 0.5s ease;
}

.split-option.selected .icon-outdoor img {
    animation: glow 0.5s ease;
}

.split-option.selected .icon-maker img {
    animation: spin 0.6s ease;
}

.split-option.selected .icon-mover img,
.split-option.selected .icon-brawny img {
    animation: jump 0.5s ease;
}

.split-option.selected .icon-solo img {
    animation: wave 0.6s ease;
}

.split-option.selected .icon-social img {
    animation: party 0.6s ease;
}

.split-option.selected .icon-brainy img {
    animation: flash 0.5s ease;
}

.split-option.selected .icon-learn img {
    animation: drop 0.5s ease;
}

.split-option.selected .icon-relax img {
    animation: sway 1s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5) drop-shadow(0 0 30px rgba(255, 218, 103, 0.8)); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

@keyframes party {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes drop {
    0% { transform: translateY(-30px) rotate(-10deg); }
    60% { transform: translateY(5px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes fallIn {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotate(-45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Colors */
.purple {
    background: #C4B5FD;
}

.blue {
    background: #6451FA;
}

.yellow {
    background: #FCD34D;
}

.green {
    background: #6EE7B7;
}

.pink {
    background: #F9A8D4;
}

/* Both Button */
.both-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: #FCD34D;
    flex: 1;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.both-btn {
    background: transparent;
    border: none;
    color: #5B4EFF;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 2rem;
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease;
    min-height: 44px;
}

.both-btn-container:hover .both-btn {
    transform: scale(1.1);
}

.both-btn-container:active .both-btn {
    transform: scale(0.95);
}

/* Green both button for Maker/Mover and Learn/Relax pages */
#question2 .both-btn-container,
#question5 .both-btn-container {
    background: #5DCB83;
}

#question2 .both-btn,
#question5 .both-btn {
    color: #6451FA;
}

/* Location Input Page */
/* Think Local Page */
.local-container {
    min-height: 100vh;
    display: flex;
    background: #9747FF;
}

.local-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: white;
    background: #9747FF;
}

.local-title {
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1;
}

.local-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.local-question {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

#cityInput {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
    border: none;
    border-bottom: 2px solid white;
    background: transparent;
    color: white;
    width: 300px;
    margin-bottom: 2rem;
}

#cityInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#cityInput:focus {
    outline: none;
    border-bottom: 2px solid white;
}

.local-submit-btn {
    background: #FCD34D;
    border: none;
    color: #9747FF;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
    min-height: 44px;
    margin-top: 1rem;
    -webkit-tap-highlight-color: transparent;
    width: 300px;
    box-sizing: border-box;
}

.local-submit-btn:hover {
    transform: scale(1.05);
    background: #FFE066;
}

.local-submit-btn:active {
    transform: scale(0.98);
}

.skip-btn {
    background: transparent;
    border: none;
    color: #FCD34D;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    width: fit-content;
    min-height: 44px;
    margin-top: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.skip-btn:hover {
    opacity: 0.8;
}

.skip-btn:active {
    opacity: 0.6;
}

.local-right {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #9747FF;
    position: relative;
}

.local-illustration {
    width: 700px;
    height: 700px;
    margin-bottom: 0;
}

.location-pin {
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-origin: center bottom;
}

.location-pin:hover {
    transform: scale(1.15);
}

#pin-yellow-top {
    transform-origin: 824.83px 531.015px;
}

#pin-yellow-bottom {
    transform-origin: 472.83px 852.015px;
}

#pin-pink {
    transform-origin: 194.83px 551.015px;
}

/* Results Page */
#results {
    background: black;
    color: white;
    justify-content: center;
    align-items: center;
}

/* Hobbyist Type Page */
#hobbyistTypePage {
    background: linear-gradient(135deg, #89CFF0 0%, #7B68EE 50%, #E6B0FF 100%);
    overflow-y: auto;
    padding: 4rem 2rem;
}

.type-page-container {
    max-width: 800px;
    margin: 0 auto;
}

.type-page-header {
    text-align: left;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.type-intro {
    font-size: 2.5rem;
    font-weight: 400;
    color: white;
    margin-bottom: 1rem;
}

.type-name {
    font-size: 6rem;
    font-weight: 900;
    color: #FFD966;
    margin-bottom: 2rem;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInLeft 0.8s ease-out 0.3s backwards;
    letter-spacing: -0.02em;
}

.type-smiley {
    position: absolute;
    top: 12rem;
    left: 3rem;
    animation: float 3s ease-in-out infinite, fadeIn 0.8s ease-out 0.6s backwards;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.type-description {
    font-size: 1.5rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

.type-traits {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 250px;
    margin-bottom: 3rem;
}

.trait-tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    color: #2D3748;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fallIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.trait-tag:nth-child(1) {
    animation-delay: 0.6s;
    top: 20px;
    left: 50px;
    transform: rotate(-8deg);
}
.trait-tag:nth-child(2) {
    animation-delay: 0.75s;
    top: 80px;
    left: 180px;
    transform: rotate(12deg);
}
.trait-tag:nth-child(3) {
    animation-delay: 0.9s;
    top: 50px;
    left: 320px;
    transform: rotate(-5deg);
}
.trait-tag:nth-child(4) {
    animation-delay: 1.05s;
    top: 130px;
    left: 70px;
    transform: rotate(15deg);
}
.trait-tag:nth-child(5) {
    animation-delay: 1.2s;
    top: 160px;
    left: 280px;
    transform: rotate(-10deg);
}

.trait-icon {
    font-size: 1.2rem;
}

.continue-btn {
    background: #6451FA;
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Prompt', sans-serif;
    animation: fadeInUp 0.8s ease-out 1.3s backwards;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    position: fixed;
    bottom: max(2rem, env(safe-area-inset-bottom));
    right: max(2rem, env(safe-area-inset-right));
    z-index: 100;
    white-space: nowrap;
}

.continue-btn:hover {
    transform: scale(1.05);
}

.continue-btn:active {
    transform: scale(0.98);
}

/* Hobby Results Page */
#hobbyResultsPage {
    background: linear-gradient(135deg, #89CFF0 0%, #7B68EE 50%, #E6B0FF 100%);
    overflow-y: auto;
    padding: 4rem 2rem;
}

.hobby-page-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    padding-bottom: 4rem;
}

.hobby-page-header {
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.hobby-intro {
    font-size: 2.5rem;
    font-weight: 400;
    color: white;
    margin-bottom: 1.5rem;
}

.hobby-name {
    font-size: 6.5rem;
    font-weight: 900;
    color: #FFD966;
    margin-bottom: 3rem;
    line-height: 0.95;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInLeft 0.8s ease-out 0.3s backwards;
    letter-spacing: -0.02em;
}

/* O with smiley inside */
.o-with-smiley {
    position: relative;
    display: inline-block;
}

.smiley-in-o {
    position: absolute;
    top: 41%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.28em;
    height: 0.28em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smiley-in-o svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Smiley after text (for names without O) */
.smiley-after-text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.1em;
    transform: translateY(-0.05em);
}

.smiley-after-text svg {
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.hobby-icon-circle {
    position: absolute;
    top: 3rem;
    right: 0;
}

.hobby-smiley-accent {
    animation: float 3s ease-in-out infinite, fadeIn 0.8s ease-out 0.6s backwards;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.hobby-description {
    font-size: 1.35rem;
    color: white;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 750px;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
    font-weight: 400;
}

.hobby-resources {
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.8s ease-out 1.1s backwards;
}

.resources-title {
    font-size: 1rem;
    font-weight: 700;
    color: #FFD966;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.resource-link {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.resource-link:hover {
    color: #FFD966;
    transform: translateX(5px);
}

.resource-link:active {
    color: #FFD966;
    opacity: 0.8;
}

.hobby-emojis {
    position: absolute;
    top: 18rem;
    right: 4rem;
    z-index: 10;
}

.hobby-emoji {
    position: absolute;
    font-size: 8rem;
    animation: float 3s ease-in-out infinite, fadeIn 0.8s ease-out 1.3s backwards;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.hobby-emoji:hover {
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.3));
}

.hobby-emoji-1 {
    top: 0;
    right: 7rem;
    font-size: 8rem;
}

.hobby-emoji-2 {
    top: 6rem;
    right: 0;
    font-size: 7rem;
    animation-delay: 1.5s;
}

.other-hobbies-section {
    margin-top: 12rem;
    padding-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 1.3s backwards;
}

.other-hobbies-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.other-hobbies-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 4rem;
}

.other-hobby-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    animation: slideInLeft 0.5s ease-out backwards;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.other-hobby-item:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #FFD966;
    transform: translateX(8px);
}

.other-hobby-item:active {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.2);
}

.hobby-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.hobby-item-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.other-hobby-item:hover .hobby-item-arrow {
    color: #FFD966;
    transform: translateX(5px);
}

.restart-btn-bottom {
    background: #6451FA;
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Prompt', sans-serif;
    display: block;
    margin: 0 auto 3rem auto;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.restart-btn-bottom:hover {
    transform: scale(1.05);
}

.restart-btn-bottom:active {
    transform: scale(0.98);
}

/* Type Reveal Section - OLD */
.type-reveal-container {
    text-align: center;
}

.results-intro {
    font-size: 1.5rem;
    color: #2D3748;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.archetype-hero {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 30px;
    background: var(--archetype-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: heroReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s backwards;
    overflow: hidden;
}

.archetype-badge {
    position: relative;
    z-index: 2;
}

.badge-emoji {
    font-size: 7rem;
    margin-bottom: 1rem;
    animation: emojiPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s backwards;
    display: inline-block;
}

.badge-name {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.6s ease-out 0.8s backwards;
}

.archetype-tagline {
    font-size: 1.4rem;
    color: white;
    line-height: 1.7;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 1s backwards;
}

/* Confetti Animation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0;
    animation: confettiFall 2s ease-out 0.5s;
}

.confetti:nth-child(1) {
    left: 20%;
    animation-delay: 0.6s;
    background: #FFD966;
}

.confetti:nth-child(2) {
    left: 40%;
    animation-delay: 0.7s;
    background: #5DCB83;
}

.confetti:nth-child(3) {
    left: 60%;
    animation-delay: 0.8s;
    background: #F786E2;
}

.confetti:nth-child(4) {
    left: 80%;
    animation-delay: 0.9s;
    background: #8987FF;
}

.confetti:nth-child(5) {
    left: 50%;
    animation-delay: 1s;
    background: white;
}

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

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

/* Primary Section */
.primary-section {
    animation: fadeInScale 0.8s ease-out 1.2s backwards;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sparkle {
    color: #FFD966;
    animation: sparkleRotate 2s ease-in-out infinite;
}

.sparkle:nth-child(3) {
    animation-delay: 0.3s;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2D3748;
}

.featured-hobby-card {
    background: white;
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid #6451FA;
}

.featured-hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(100, 81, 250, 0.25);
}

.hobby-header {
    position: relative;
    margin-bottom: 2rem;
}

.hobby-icon-featured {
    font-size: 6rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

.hobby-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(100, 81, 250, 0.2);
    animation: pulse 2s ease-out infinite;
}

.hobby-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #6451FA;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hobby-subtitle {
    font-size: 1.2rem;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hobby-location-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #F7FAFC;
    color: #6451FA;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.try-it-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #6451FA 0%, #5DCB83 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 81, 250, 0.3);
}

.try-it-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 81, 250, 0.4);
}

.try-it-button svg {
    transition: transform 0.3s ease;
}

.try-it-button:hover svg {
    transform: translateX(5px);
}

/* Alternatives Section */
.alternatives-section {
    animation: fadeInScale 0.8s ease-out 1.4s backwards;
}

.alternatives-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 1.5rem;
    text-align: center;
}

.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.alternative-item {
    background: white;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    animation: slideInLeft 0.5s ease-out backwards;
}

.alternative-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(93, 203, 131, 0.2);
    border-color: #5DCB83;
    background: linear-gradient(135deg, white 0%, rgba(93, 203, 131, 0.05) 100%);
}

.alternative-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.alternative-item:hover .alternative-icon {
    transform: rotate(360deg) scale(1.2);
}

.alternative-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    flex-grow: 1;
}

.alternative-arrow {
    font-size: 1.5rem;
    color: #CBD5E0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.alternative-item:hover .alternative-arrow {
    color: #5DCB83;
    transform: translateX(5px);
}

/* Results Actions */
.results-actions {
    text-align: center;
    animation: slideUp 1.2s ease-out;
}

.restart-btn {
    background: #6451FA;
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
    box-shadow: 0 6px 20px rgba(100, 81, 250, 0.3);
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 81, 250, 0.4);
    background: #5441E0;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes emojiPop {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

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

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

@keyframes confettiFall {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes sparkleRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

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

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Home page mobile */
    .logo-img {
        width: 90%;
        max-width: 500px;
        margin-bottom: 1rem;
    }

    .tagline {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .cta-btn {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
    }

    /* Split container mobile fixes */
    .split-container {
        flex-direction: column;
        height: auto;
        min-height: 75vh;
    }

    .split-option {
        padding: 2.5rem 1.5rem;
        min-height: 30vh;
    }

    .split-option h2 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .split-option p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        max-width: 300px;
    }

    .split-option .icon img,
    .split-option .icon svg {
        width: 180px;
        max-height: 180px;
    }

    /* Brainy icon needs smaller size due to larger illustration */
    .icon-brainy img {
        width: 120px;
        max-height: 120px;
    }

    /* Both button - make it more visible */
    .both-btn-container {
        min-height: 12vh;
        padding: 1.5rem;
    }

    .both-btn {
        font-size: 1.3rem;
        padding: 0.8rem 2rem;
    }

    /* Back button */
    .back-btn {
        top: 1rem;
        left: 1rem;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    /* Think Local page mobile */
    .local-container {
        flex-direction: column;
    }

    .local-left {
        padding: 2rem 1.5rem;
        min-height: 50vh;
    }

    .local-title {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .local-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .local-question {
        font-size: 1.2rem;
    }

    #cityInput {
        width: 100%;
        max-width: 350px;
        font-size: 1rem;
    }

    .local-right {
        min-height: 40vh;
        align-items: center;
        justify-content: center;
    }

    .local-illustration {
        width: 90%;
        max-width: 500px;
        height: auto;
        margin-bottom: 2rem;
    }

    /* Hobbyist Type page mobile */
    #hobbyistTypePage {
        padding: 2rem 1.5rem;
    }

    .type-page-container {
        max-width: 100%;
    }

    .type-intro {
        font-size: 1.5rem;
    }

    .type-name {
        font-size: 3.5rem !important;
        margin-bottom: 1.5rem;
    }

    .type-smiley {
        top: 8rem;
        left: 1.5rem;
        width: 80px;
        height: 80px;
    }

    .type-smiley img {
        width: 80px;
        height: 80px;
    }

    .type-description {
        font-size: 1.1rem;
        margin-top: 5rem;
    }

    /* Simple pills mobile adjustments */
    .type-traits.simple-pills-container {
        max-width: 100%;
    }

    .continue-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    /* Hobby Results page mobile */
    #hobbyResultsPage {
        padding: 2rem 1.5rem;
    }

    .hobby-page-container {
        max-width: 100%;
        padding-bottom: 2rem;
    }

    .hobby-intro {
        font-size: 1.8rem !important;
    }

    .hobby-name {
        font-size: 4rem !important;
        margin-bottom: 2rem;
    }

    .hobby-icon-circle {
        position: static;
        margin: 1rem auto 2rem;
        display: flex;
        justify-content: center;
    }

    .hobby-smiley-accent {
        width: 100px;
        height: 100px;
    }

    .hobby-description {
        font-size: 1.15rem;
        margin-bottom: 3rem;
        margin-top: 2rem;
    }

    .hobby-emojis {
        position: static;
        display: flex;
        gap: 2rem;
        justify-content: center;
        margin: 2rem 0;
    }

    .hobby-emoji {
        position: static;
        font-size: 4rem;
    }

    .hobby-emoji-1,
    .hobby-emoji-2 {
        top: auto;
        right: auto;
    }

    .resources-title {
        font-size: 0.9rem;
    }

    .resource-link {
        font-size: 1.1rem;
    }

    .other-hobbies-section {
        margin-top: 4rem;
    }

    .other-hobbies-title {
        font-size: 1.3rem;
    }

    .hobby-item-name {
        font-size: 1rem;
    }

    .restart-btn-bottom {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Home page */
    .logo-img {
        width: 95%;
        max-width: 350px;
    }

    .tagline {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .cta-btn {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
    }

    /* Split options */
    .split-option {
        padding: 2rem 1rem;
        min-height: 28vh;
    }

    .split-option h2 {
        font-size: 2.5rem;
    }

    .split-option p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .split-option .icon img,
    .split-option .icon svg {
        width: 150px;
        max-height: 150px;
    }

    .both-btn-container {
        min-height: 10vh;
        padding: 1rem;
    }

    .both-btn {
        font-size: 1.2rem;
        padding: 0.6rem 1.5rem;
    }

    /* Think Local */
    .local-left {
        padding: 1.5rem 1rem;
    }

    .local-title {
        font-size: 2.8rem;
    }

    .local-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .local-question {
        font-size: 1.1rem;
    }

    #cityInput {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }

    .skip-btn {
        font-size: 1.1rem;
    }

    .local-illustration {
        width: 95%;
        max-width: 400px;
    }

    /* Hobbyist Type page */
    #hobbyistTypePage {
        padding: 1.5rem 1rem;
    }

    .type-intro {
        font-size: 1.3rem;
    }

    .type-name {
        font-size: 2.8rem !important;
    }

    .type-smiley {
        top: 7rem;
        left: 1rem;
        width: 60px;
        height: 60px;
    }

    .type-smiley img {
        width: 60px;
        height: 60px;
    }

    .type-description {
        font-size: 1rem;
        margin-top: 4rem;
    }

    .type-traits.simple-pills-container {
        min-height: 220px;
    }

    .continue-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    /* Hobby Results page */
    #hobbyResultsPage {
        padding: 1.5rem 1rem;
    }

    .hobby-intro {
        font-size: 1.5rem !important;
    }

    .hobby-name {
        font-size: 3rem !important;
    }

    .hobby-smiley-accent {
        width: 80px;
        height: 80px;
    }

    .hobby-description {
        font-size: 1.05rem;
    }

    .hobby-emoji {
        font-size: 3rem;
    }

    .resources-title {
        font-size: 0.85rem;
    }

    .resource-link {
        font-size: 1rem;
    }

    .other-hobbies-title {
        font-size: 1.2rem;
    }

    .hobby-item-name {
        font-size: 0.95rem;
    }

    .other-hobby-item {
        padding: 1rem 1.2rem;
    }

    .restart-btn-bottom {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .split-option {
        min-height: 40vh;
    }

    .both-btn-container {
        min-height: 15vh;
    }

    .local-container {
        min-height: 100vh;
    }

    .local-left {
        min-height: 60vh;
    }

    .local-right {
        min-height: 50vh;
    }
}

/* ===========================
   About Button
   =========================== */
.about-btn {
    position: absolute;
    top: max(1.5rem, env(safe-area-inset-top));
    right: max(1.5rem, env(safe-area-inset-right));
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    color: #6451FA;
    font-family: 'Prompt', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 36px;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
}

.about-btn:hover {
    background: #6451FA;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(100, 81, 250, 0.3);
}

.about-btn:active {
    transform: translateY(0) scale(0.96);
    box-shadow: none;
}

.about-btn:focus-visible {
    outline: 3px solid #6451FA;
    outline-offset: 3px;
}

/* ===========================
   About Overlay
   =========================== */
.about-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #89CFF0 0%, #7B68EE 50%, #E6B0FF 100%);
    z-index: 500;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.3s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-overlay.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.about-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: max(1.5rem, env(safe-area-inset-top)) 2rem 0.75rem max(1.5rem, env(safe-area-inset-left));
}

.about-close-btn {
    background: none;
    border: none;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s;
    border-radius: 8px;
}

.about-close-btn:hover {
    opacity: 0.65;
}

.about-close-btn:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 4rem 2rem;
    position: relative;
}

.about-smiley-wrap {
    position: absolute;
    top: calc(2.8rem + 16px);
    left: calc(44% + 16px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

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

.about-intro {
    font-size: 1.3rem;
    font-weight: 400;
    color: white;
    margin-bottom: 0.2rem;
    margin-top: 0;
    animation: fadeInUp 0.8s ease-out;
}

.about-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: #FFD966;
    line-height: 0.95;
    margin-bottom: 0.9rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInLeft 0.8s ease-out 0.3s backwards;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 560px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.about-body p {
    font-size: 1.05rem;
    color: white;
    line-height: 1.5;
    font-weight: 400;
}

.about-body strong {
    color: #FFD966;
    font-weight: 700;
}

.about-body a {
    color: inherit;
    text-decoration: none;
}

.about-body a:hover strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-body + .about-seesaw {
    margin-top: 3rem;
}

.about-seesaw + .about-resources {
    margin-top: 2rem;
}

.about-resources {
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

.about-resources-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFD966;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.about-resource-link {
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.25rem 0;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.about-resource-link:hover {
    color: #FFD966;
    transform: translateX(5px);
}

.about-resource-icon {
    transition: transform 0.3s ease;
}

.about-resource-link:hover .about-resource-icon {
    transform: translateX(3px);
}

.about-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    animation: fadeInUp 0.8s ease-out 1.1s backwards;
}

.about-pill {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    font-family: 'Prompt', sans-serif;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Responsive */
@media (max-width: 768px) {
    .about-btn {
        top: max(1rem, env(safe-area-inset-top));
        right: max(1rem, env(safe-area-inset-right));
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
    }

    .about-content {
        padding: 2rem 1.5rem 5rem;
    }

    .about-smiley-wrap {
        position: static;
        display: inline-block;
        margin-bottom: 1.5rem;
    }

    .about-intro {
        font-size: 1.8rem;
    }

    .about-title {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    .about-body p {
        font-size: 1.15rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .about-intro {
        font-size: 1.5rem;
    }

    .about-title {
        font-size: 3rem;
    }

    .about-content {
        padding: 1.5rem 1.25rem 4rem;
    }

    .about-body p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* ===========================
   Seesaw Illustration
   =========================== */
.about-seesaw {
    align-self: center;
    height: clamp(132px, 16.8vh, 204px);
    flex-shrink: 0;
    pointer-events: none;
    width: 100%;
    overflow: visible;
    margin: 1.25rem 0 0.5rem;
}

#seesaw-svg {
    height: 100%;
    width: auto;
    display: block;
    margin: 0 auto;
}

#seesaw-system {
    transform-box: view-box;
    transform-origin: 273.578px 183.999px;
    animation: seesawTilt 5s ease-in-out infinite;
}

@keyframes seesawTilt {
    0%, 5%  { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
    42%     { transform: rotate(-30deg); }
    57%     { transform: rotate(-30deg); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
    87%     { transform: rotate(0deg); }
    100%    { transform: rotate(0deg); }
}

#purple-smiley {
    transform-box: fill-box;
    transform-origin: center;
    animation: purpleRoll 5s ease-in-out infinite;
}

@keyframes purpleRoll {
    0%, 5%  { transform: translate(0px, 0px) rotate(0deg); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
    42%     { transform: translate(-240px, -60px) rotate(-317deg); }
    57%     { transform: translate(-240px, -60px) rotate(-317deg); animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1); }
    87%     { transform: translate(0px, 0px) rotate(0deg); }
    100%    { transform: translate(0px, 0px) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    #seesaw-system,
    #purple-smiley {
        animation: none;
    }
}
