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

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

body {
    font-family: 'Poppins', sans-serif;
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 25%, rgba(168, 230, 207, 0.2) 75%, rgba(78, 205, 196, 0.3) 100%),
        url('anime-city-bg.jpg') center center/cover no-repeat fixed;
    min-height: 100vh;
    color: #2d3748;
    position: relative;
    overflow-x: hidden;
}

/* Anime background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 230, 207, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

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

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

/* Welcome Screen */
.welcome-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    padding: 60px 50px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(102, 126, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-content::before {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    animation: sparkle 2s ease-in-out infinite;
}

.welcome-content::after {
    content: '🌸';
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 1.8em;
    animation: float 3s ease-in-out infinite;
}

.title {
    font-size: 3.5em;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #667eea, #4ecdc4, #a8e6cf, #764ba2);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.subtitle {
    font-size: 1.3em;
    color: #4a5568;
    margin-bottom: 45px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-image {
    max-width: 400px;
    max-height: 300px;
    width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: fadeInScale 1s ease-out;
}

.hero-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(102, 126, 234, 0.4));
}


.icon:nth-child(1) {
    animation-delay: 0s;
}

.icon:nth-child(2) {
    animation-delay: 0.4s;
}

.icon:nth-child(3) {
    animation-delay: 0.8s;
}

/* Kawaii Animations */
@keyframes kawaiiBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    40% {
        transform: translateY(-15px) rotate(5deg) scale(1.1);
    }
    60% {
        transform: translateY(-8px) rotate(-3deg) scale(1.05);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Kawaii Buttons */
.btn {
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2, #a8e6cf, #4ecdc4);
    background-size: 400% 400%;
    color: white;
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.3),
        0 3px 10px rgba(118, 75, 162, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.5);
    animation: gradientShift 3s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 15px 35px rgba(102, 126, 234, 0.4),
        0 5px 15px rgba(118, 75, 162, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    border: 2px solid rgba(102, 126, 234, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Kawaii Quiz Screen */
#quiz-screen {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    padding: 40px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
}

#quiz-screen::before {
    content: '💫';
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 1.5em;
    animation: twinkle 2s ease-in-out infinite;
}

.quiz-header {
    margin-bottom: 45px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 25px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #a8e6cf, #4ecdc4);
    background-size: 300% 100%;
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    animation: progressShimmer 2s ease-in-out infinite;
}

.progress-text {
    font-weight: 600;
    color: #4a5568;
    min-width: 140px;
    font-size: 0.95em;
}

.question-container {
    margin-bottom: 40px;
}

.question-text {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.4;
}

.options-container {
    display: grid;
    gap: 15px;
}

.option {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.option:hover {
    border-color: #667eea;
    background: #f0f3ff;
    transform: translateX(5px);
}

.option.selected {
    border-color: #667eea;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Loading Screen */
.loading-content {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.loader {
    margin-bottom: 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

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

.loading-content h2 {
    color: #333;
    margin-bottom: 10px;
}

.loading-content p {
    color: #666;
}

/* Results Screen with special background */
#results-screen {
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 25%, rgba(168, 230, 207, 0.2) 75%, rgba(78, 205, 196, 0.3) 100%),
        url('japan-digital-art-bg.jpg') center center/cover no-repeat fixed;
}

.results-content {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    padding: 40px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(102, 126, 234, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.results-content::before {
    content: '🎌';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2em;
    animation: float 3s ease-in-out infinite;
}

.results-content::after {
    content: '⭐';
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 1.8em;
    animation: sparkle 2s ease-in-out infinite;
}

.results-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.character-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
}

.character-image {
    flex-shrink: 0;
}

.character-placeholder {
    width: 200px;
    height: 280px;
    border-radius: 12px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

.character-info {
    flex: 1;
}

.character-name {
    font-size: 1.8em;
    margin-bottom: 8px;
    color: #333;
}

.character-anime {
    font-size: 1.1em;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 12px;
}

.character-description {
    color: #666;
    line-height: 1.5;
    font-size: 0.95em;
}

.character-details {
    text-align: left;
    margin-bottom: 25px;
}

.detail-section {
    margin-bottom: 18px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.detail-section h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.detail-text {
    color: #666;
    line-height: 1.5;
    font-size: 0.95em;
}

.results-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Wobble CTA Section */
.wobble-cta-section {
    position: relative;
    min-height: 400px;
    border-radius: 20px;
    margin: 40px 0;
    overflow: hidden;
    background-image: url('Hero 1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ctaPulse 4s ease-in-out infinite;
}

/* Translucent tinted overlay for text readability */
.wobble-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(20, 20, 30, 0.5) 30%,
        rgba(30, 30, 45, 0.55) 70%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
}

/* Add animated gradient overlay for extra visual appeal */
.wobble-cta-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 106, 0, 0.1) 25%,
        transparent 50%,
        rgba(255, 165, 0, 0.1) 75%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
    z-index: 2;
}

.wobble-cta-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.wobble-cta-text {
    color: #ffffff;
    font-size: 1.4em;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.9),
        0 4px 12px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 106, 0, 0.2);
    letter-spacing: 0.5px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

/* Neon Orange Button */
.wobble-cta-button {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8533 50%, #ffaa00 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.3em;
    font-weight: 700;
    padding: 20px 45px;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow:
        0 0 20px rgba(255, 106, 0, 0.5),
        0 0 40px rgba(255, 106, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: buttonPulse 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Neon glow animation */
.wobble-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.wobble-cta-button::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6a00, #ffaa00, #ff6a00, #ffaa00);
    border-radius: 50px;
    z-index: -1;
    animation: borderGlow 1.5s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wobble-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 0 30px rgba(255, 106, 0, 0.8),
        0 0 60px rgba(255, 106, 0, 0.4),
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: buttonPulse 1s ease-in-out infinite;
}

.wobble-cta-button:hover::before {
    left: 100%;
}

.wobble-cta-button:hover::after {
    opacity: 1;
}

.wobble-cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Animations */
@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

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

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

@keyframes textGlow {
    from {
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(255, 255, 255, 0.2);
    }
    to {
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 30px rgba(255, 255, 255, 0.4),
            0 0 40px rgba(255, 106, 0, 0.2);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 106, 0, 0.5),
            0 0 40px rgba(255, 106, 0, 0.3),
            0 8px 25px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 25px rgba(255, 106, 0, 0.7),
            0 0 50px rgba(255, 106, 0, 0.5),
            0 8px 25px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive Design */
/* Wobble Header */
.wobble-header {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.wobble-logo {
    margin-bottom: 10px;
}

.wobble-logo a {
    display: block;
    width: 120px;
    height: auto;
}

.wobble-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.wobble-logo .mobile-only {
    display: none;
}

.wobble-logo .desktop-only {
    display: block;
}

.wobble-logo a:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
}

.wobble-tagline-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 320px;
}

.wobble-tagline-link:hover {
    transform: scale(1.02);
}

.wobble-tagline {
    font-size: 0.95em;
    line-height: 1.4;
    font-weight: 700;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.3);
    animation: taglineGlow 2s ease-in-out infinite;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.wobble-tagline-link:hover .wobble-tagline {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.98), rgba(102, 126, 234, 0.98));
}

@keyframes taglineGlow {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(102, 126, 234, 0.4),
            0 0 20px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow:
            0 6px 20px rgba(102, 126, 234, 0.6),
            0 0 30px rgba(255, 255, 255, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        text-shadow:
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.8),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Responsive Design */

/* Extra Small Devices (Small Phones: 320px - 480px) */
@media (max-width: 480px) {
    body {
        background:
            linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 25%, rgba(168, 230, 207, 0.2) 75%, rgba(78, 205, 196, 0.3) 100%),
            url('illustration-anime-city (1).jpg') center center/cover no-repeat scroll;
    }

    .container {
        padding: 80px 12px 12px 12px; /* Top padding for fixed header */
        min-height: 100vh;
    }

    /* Welcome Screen */
    .welcome-content {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .welcome-content::before,
    .welcome-content::after {
        font-size: 1.2em; /* Smaller decorative elements */
    }

    .title {
        font-size: 1.8em;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .hero-image {
        max-width: 100%;
        max-height: 200px;
        margin: 25px 0;
    }

    /* Quiz Screen */
    #quiz-screen {
        padding: 25px 15px;
        border-radius: 20px;
    }

    #quiz-screen::before {
        top: 10px;
        right: 15px;
        font-size: 1.2em;
    }

    .progress-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .progress-bar {
        height: 10px;
        order: 2;
    }

    .progress-text {
        text-align: center;
        font-size: 0.9em;
        min-width: auto;
        order: 1;
    }

    .question-text {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .options-container {
        gap: 12px;
    }

    .option {
        padding: 16px 14px;
        font-size: 0.95em;
        min-height: 50px; /* Touch target size */
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    /* Buttons - Touch Friendly */
    .btn {
        width: 100%;
        padding: 16px 28px;
        font-size: 1em;
        min-height: 48px; /* Touch target minimum */
    }

    /* Loading Screen */
    .loading-content {
        padding: 40px 20px;
        border-radius: 15px;
    }

    .loading-content h2 {
        font-size: 1.3em;
    }

    .loading-content p {
        font-size: 0.95em;
    }

    /* Results Screen */
    .results-content {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .results-content::before,
    .results-content::after {
        font-size: 1.2em;
    }

    .results-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .character-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 20px;
    }

    .character-placeholder {
        width: 160px;
        height: 160px;
        font-size: 3em;
        margin: 0 auto;
    }

    .character-name {
        font-size: 1.4em;
    }

    .character-anime {
        font-size: 1em;
    }

    .character-description {
        font-size: 0.9em;
    }

    .detail-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .detail-section h3 {
        font-size: 1em;
    }

    .detail-text {
        font-size: 0.9em;
    }

    .results-actions {
        flex-direction: column;
        gap: 12px;
    }

    /* Wobble CTA */
    .wobble-cta-section {
        margin: 25px 0;
        min-height: 280px;
        border-radius: 15px;
    }

    .wobble-cta-content {
        padding: 25px 15px;
    }

    .wobble-cta-text {
        font-size: 1em;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .wobble-cta-button {
        font-size: 1em;
        padding: 14px 24px;
        width: 100%;
        max-width: 100%;
        min-height: 48px;
    }

    /* Wobble Header - Mobile Optimized */
    .wobble-header {
        top: 8px;
        left: 8px;
        right: 8px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .wobble-logo {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .wobble-logo a {
        width: 60px;
    }

    .wobble-tagline-link {
        width: auto;
        flex: 1;
        max-width: calc(100vw - 90px);
    }

    .wobble-tagline {
        font-size: 0.65em;
        padding: 6px 8px;
        line-height: 1.3;
    }

    .wobble-logo .mobile-only {
        display: block;
    }

    .wobble-logo .desktop-only {
        display: none;
    }
}

/* Small to Medium Devices (Large Phones & Small Tablets: 481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        background:
            linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 25%, rgba(168, 230, 207, 0.2) 75%, rgba(78, 205, 196, 0.3) 100%),
            url('illustration-anime-city (1).jpg') center center/cover no-repeat scroll;
    }

    .container {
        padding: 90px 15px 15px 15px;
    }

    .welcome-content {
        padding: 35px 25px;
        border-radius: 25px;
    }

    .title {
        font-size: 2.2em;
        margin-bottom: 20px;
    }

    .subtitle {
        font-size: 1.15em;
        margin-bottom: 30px;
    }

    .hero-image {
        max-width: 350px;
        max-height: 250px;
        margin: 30px 0;
    }

    #quiz-screen {
        padding: 30px 20px;
        border-radius: 25px;
    }

    .question-text {
        font-size: 1.3em;
    }

    .option {
        padding: 18px 16px;
        min-height: 52px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 16px 30px;
        min-height: 50px;
    }

    .quiz-navigation {
        flex-direction: row;
        gap: 15px;
    }

    .results-content {
        padding: 35px 25px;
        border-radius: 25px;
    }

    .results-title {
        font-size: 2.2em;
    }

    .character-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .character-placeholder {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .character-name {
        font-size: 1.6em;
    }

    .results-actions {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .wobble-cta-section {
        min-height: 320px;
        margin: 30px 0;
    }

    .wobble-cta-text {
        font-size: 1.2em;
    }

    .wobble-cta-button {
        font-size: 1.15em;
        padding: 16px 32px;
        max-width: 320px;
    }

    .wobble-header {
        top: 10px;
        left: 10px;
        right: 10px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .wobble-logo {
        margin-bottom: 0;
    }

    .wobble-logo a {
        width: 90px;
    }

    .wobble-tagline-link {
        width: auto;
        flex: 1;
        max-width: 300px;
    }

    .wobble-tagline {
        font-size: 0.8em;
        padding: 10px 12px;
    }

    .wobble-logo .mobile-only {
        display: block;
    }

    .wobble-logo .desktop-only {
        display: none;
    }
}

/* Medium Devices (Tablets: 769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        background:
            linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.2) 25%, rgba(168, 230, 207, 0.2) 75%, rgba(78, 205, 196, 0.3) 100%),
            url('illustration-anime-city (1).jpg') center center/cover no-repeat scroll;
    }

    .container {
        padding: 100px 20px 20px 20px;
        max-width: 750px;
    }

    .welcome-content {
        padding: 45px 35px;
    }

    .title {
        font-size: 2.8em;
    }

    .subtitle {
        font-size: 1.2em;
    }

    .hero-image {
        max-width: 380px;
        max-height: 280px;
    }

    #quiz-screen {
        padding: 35px 30px;
    }

    .question-text {
        font-size: 1.4em;
    }

    .option {
        padding: 18px;
        font-size: 1em;
    }

    .btn {
        padding: 17px 32px;
        font-size: 1.05em;
    }

    .results-content {
        padding: 40px 30px;
    }

    .character-card {
        flex-direction: row;
        text-align: left;
        padding: 25px;
    }

    .character-placeholder {
        width: 180px;
        height: 250px;
    }

    .wobble-cta-section {
        min-height: 360px;
    }

    .wobble-header {
        top: 15px;
        left: 15px;
    }

    .wobble-logo a {
        width: 110px;
    }

    .wobble-tagline-link {
        width: 300px;
    }

    .wobble-tagline {
        font-size: 0.9em;
        padding: 11px 14px;
    }

    .wobble-logo .mobile-only {
        display: block;
    }

    .wobble-logo .desktop-only {
        display: none;
    }
}

/* Landscape Orientation Fixes for Phones */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 70px 15px 15px 15px;
    }

    .welcome-content,
    #quiz-screen,
    .results-content {
        padding: 20px 15px;
    }

    .hero-image {
        max-height: 150px;
        margin: 15px 0;
    }

    .title {
        font-size: 1.6em;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    .wobble-header {
        top: 5px;
        left: 5px;
    }

    .wobble-logo a {
        width: 50px;
    }

    .wobble-tagline {
        font-size: 0.6em;
        padding: 5px 7px;
    }

    .character-placeholder {
        width: 120px;
        height: 120px;
    }

    .wobble-cta-section {
        min-height: 200px;
    }
}