:root {
    --primary-color: #FFD700;
    --secondary-color: #FF4500;
    --accent-color: #FF1493;
    --bg-color: #1a0a1f;
    --text-color: #fff;
    --border-color: #000;
    --border-width: 4px;
    --shadow-offset: 6px;
    --glow-color: rgba(255, 20, 147, 0.6);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #1a0a1f 0%, #2d1f3d 50%, #1a0a1f 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Hearts Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 182, 193, 0.05) 0%, transparent 70%);
    z-index: 0;
}

h1,
h2,
.comic-btn {
    font-family: 'Bangers', cursive;
    letter-spacing: 2px;
}

.comic-container {
    width: 100%;
    max-width: 650px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 100%;
}

.screen.active {
    display: flex;
}

.hidden {
    display: none !important;
}

/* Comic UI Elements */
.comic-title {
    font-size: 3.5rem;
    background: linear-gradient(45deg, #FF1493, #FFD700, #FF69B4, #FF4500);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 3s ease infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.5));
    margin-bottom: 20px;
    transform: rotate(-2deg);
}

@keyframes rainbowText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.comic-card {
    background: rgba(255, 255, 255, 0.95);
    border: var(--border-width) solid var(--border-color);
    box-shadow:
        var(--shadow-offset) var(--shadow-offset) 0px var(--border-color),
        0 0 30px rgba(255, 20, 147, 0.3);
    padding: 35px;
    margin: 20px 0;
    width: 100%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    animation: cardFloat 3s ease-in-out infinite;
}

.comic-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 20, 147, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.question-card,
.final-card {
    background: rgba(255, 255, 255, 0.95);
    border: var(--border-width) solid var(--border-color);
    box-shadow:
        var(--shadow-offset) var(--shadow-offset) 0px var(--border-color),
        0 0 40px rgba(255, 20, 147, 0.4);
    padding: 25px;
    margin: 20px 0;
    width: 100%;
    border-radius: 20px;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--border-color), 0 0 20px rgba(255, 20, 147, 0.3);
    }

    50% {
        box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--border-color), 0 0 50px rgba(255, 20, 147, 0.6);
    }
}

.image-container {
    width: 100%;
    height: 320px;
    border: var(--border-width) solid var(--border-color);
    box-shadow:
        var(--shadow-offset) var(--shadow-offset) 0px var(--border-color),
        inset 0 0 20px rgba(255, 20, 147, 0.2);
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #ffe4ec);
    padding: 10px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    animation: tiltFloat 4s ease-in-out infinite;
}

@keyframes tiltFloat {

    0%,
    100% {
        transform: rotate(1deg) translateY(0);
    }

    25% {
        transform: rotate(-1deg) translateY(-5px);
    }

    50% {
        transform: rotate(1deg) translateY(-8px);
    }

    75% {
        transform: rotate(-1deg) translateY(-5px);
    }
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.comic-text {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #333;
    position: relative;
}

/* Buttons */
.comic-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffed4a 100%);
    color: black;
    border: var(--border-width) solid var(--border-color);
    box-shadow:
        5px 5px 0px var(--border-color),
        0 0 15px rgba(255, 215, 0, 0.3);
    padding: 18px 35px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 10px;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.comic-btn::after {
    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.5s ease;
}

.comic-btn:hover::after {
    left: 100%;
}

.comic-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px var(--border-color);
}

.comic-btn:hover {
    background: linear-gradient(135deg, #ffed4a 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow:
        5px 8px 0px var(--border-color),
        0 0 25px rgba(255, 215, 0, 0.5);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.option-btn {
    width: 100%;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    text-align: center;
    white-space: normal;
    animation: optionBounce 0.5s ease backwards;
}

.option-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.option-btn:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes optionBounce {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.option-btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff69b4 100%);
    color: white;
    transform: translateY(-5px) scale(1.02);
}

.final-options {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    position: relative;
    flex-wrap: wrap;
}

.big-yes {
    background: linear-gradient(135deg, #FF1493 0%, #ff69b4 50%, #FF1493 100%);
    background-size: 200% 200%;
    animation: yesGlow 1.5s ease-in-out infinite;
    color: white;
    font-size: 2.5rem;
    padding: 25px 50px;
    z-index: 5;
    border-radius: 15px;
}

@keyframes yesGlow {

    0%,
    100% {
        background-position: 0% 50%;
        box-shadow: 5px 5px 0px var(--border-color), 0 0 30px rgba(255, 20, 147, 0.5);
    }

    50% {
        background-position: 100% 50%;
        box-shadow: 5px 5px 0px var(--border-color), 0 0 60px rgba(255, 20, 147, 0.8);
    }
}

.small-no {
    font-size: 1rem;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    position: absolute;
    right: 20px;
    transition: all 0.1s ease;
    border-radius: 8px;
}

.progress {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #666;
    font-weight: bold;
}

/* Animations */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    60% {
        transform: scale(1.1) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.pow-effect {
    position: fixed;
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    background: linear-gradient(45deg, #FF1493, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(3px 3px 0 #000) drop-shadow(-1px -1px 0 #000);
    pointer-events: none;
    animation: powPop 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    z-index: 1000;
}

@keyframes powPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.8) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: scale(1.2) rotate(-5deg);
        opacity: 0;
    }
}

/* Celebration Screen */
.celebration-title {
    font-size: 4rem;
    background: linear-gradient(45deg, #FF1493, #FFD700, #FF69B4, #FF4500, #FF1493);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 2s ease infinite, celebrationBounce 0.5s ease infinite;
    filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.8));
}

@keyframes celebrationBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.celebration-content {
    background: rgba(255, 255, 255, 0.95);
    border: var(--border-width) solid var(--border-color);
    box-shadow:
        var(--shadow-offset) var(--shadow-offset) 0px var(--border-color),
        0 0 50px rgba(255, 20, 147, 0.5);
    padding: 30px;
    border-radius: 20px;
    animation: celebrationPulse 1s ease-in-out infinite;
}

@keyframes celebrationPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--border-color), 0 0 30px rgba(255, 20, 147, 0.5);
    }

    50% {
        transform: scale(1.02);
        box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--border-color), 0 0 70px rgba(255, 20, 147, 0.8);
    }
}

.celebration-content p {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.celebration-content img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 15px;
    border: 3px solid var(--border-color);
    box-shadow: 4px 4px 0 var(--border-color);
}

.proposal-text {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #FF1493, #FF4500, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 2s ease infinite;
    margin-bottom: 30px;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.5));
}

/* ========== 3D FOLDING CARD ========== */
.folding-card-container {
    perspective: 1500px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.folding-card {
    position: relative;
    width: 100%;
    height: 500px;
    transform-style: preserve-3d;
}

/* The front cover flips open */
@keyframes cardOpen {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(-160deg);
    }
}

/* Card Front (Cover) - This is what flips */
.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(145deg, #ff69b4 0%, #ff1493 50%, #c71585 100%);
    border-radius: 20px;
    border: 5px solid #8b0045;
    box-shadow:
        0 0 30px rgba(255, 20, 147, 0.5),
        inset 0 0 50px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: left center;
    z-index: 2;
    overflow: hidden;
    /* The front flips open */
    animation: cardOpen 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

.card-front::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px dashed rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    pointer-events: none;
}

.card-front-content {
    text-align: center;
    z-index: 1;
}

.card-emoji {
    font-size: 5rem;
    display: block;
    animation: heartBeat 1s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.15);
    }
}

.card-front-text {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Corner Decorations */
.card-decoration {
    position: absolute;
    font-size: 2.5rem;
    animation: floatDecoration 3s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.top-left {
    top: 15px;
    left: 15px;
    animation-delay: 0s;
}

.top-right {
    top: 15px;
    right: 15px;
    animation-delay: 0.5s;
}

.bottom-left {
    bottom: 15px;
    left: 15px;
    animation-delay: 1s;
}

.bottom-right {
    bottom: 15px;
    right: 15px;
    animation-delay: 1.5s;
}

@keyframes floatDecoration {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(10deg);
    }
}

/* Card Border Decoration (lace effect) */
.card-border-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 0% 50%, transparent 8px, white 8px, white 10px, transparent 10px),
        radial-gradient(circle at 100% 50%, transparent 8px, white 8px, white 10px, transparent 10px);
    background-size: 20px 20px;
    background-position: left center, right center;
    background-repeat: repeat-y;
    opacity: 0.3;
}

/* Card Inside */
.card-inside {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #fff5f8 0%, #ffe4ec 50%, #ffd6e5 100%);
    border-radius: 20px;
    border: 5px solid #ff69b4;
    box-shadow:
        inset 0 0 30px rgba(255, 20, 147, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    transform: rotateY(0deg);
    z-index: 1;
    overflow: hidden;
}

/* Heart pattern background */
.card-heart-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(#ffb6c1 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

/* Inside Decorations */
.card-inside-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.deco-item {
    position: absolute;
    font-size: 2rem;
    animation: floatDecoration 4s ease-in-out infinite;
}

.deco-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.deco-2 {
    top: 10%;
    right: 10%;
    animation-delay: 0.5s;
}

.deco-3 {
    top: 50%;
    left: 5%;
    animation-delay: 1s;
}

.deco-4 {
    top: 50%;
    right: 5%;
    animation-delay: 1.5s;
}

.deco-5 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.deco-6 {
    bottom: 20%;
    right: 15%;
    animation-delay: 2.5s;
}

.card-footer-deco {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.5rem;
    animation: bounceFooter 2s ease-in-out infinite;
}

.card-footer-deco span {
    margin: 0 5px;
    display: inline-block;
    animation: bounceItem 1s ease-in-out infinite;
}

.card-footer-deco span:nth-child(1) {
    animation-delay: 0s;
}

.card-footer-deco span:nth-child(2) {
    animation-delay: 0.1s;
}

.card-footer-deco span:nth-child(3) {
    animation-delay: 0.2s;
}

.card-footer-deco span:nth-child(4) {
    animation-delay: 0.3s;
}

.card-footer-deco span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes bounceItem {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ========== BUTTERFLIES ========== */
.butterflies {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.butterfly {
    position: absolute;
    font-size: 2.5rem;
    animation: butterflyFly 8s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes butterflyFly {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    25% {
        transform: translate(100px, -50px) rotate(10deg);
    }

    50% {
        transform: translate(50px, -100px) rotate(-10deg);
    }

    75% {
        transform: translate(150px, -30px) rotate(5deg);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(200px, -80px) rotate(0deg);
        opacity: 0;
    }
}

/* Effects Container */
#effects-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Ambient Rain (chocolates, strawberries, etc.) */
#ambient-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rain-item {
    position: absolute;
    font-size: 24px;
    animation: rainFall linear forwards;
    opacity: 0.8;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.3));
}

@keyframes rainFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(calc(100vh + 50px)) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    animation: confettiFall linear forwards;
    border-radius: 2px;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(1080deg) scale(0.5);
        opacity: 0;
    }
}

.rose-petal {
    position: absolute;
    font-size: 35px;
    animation: petalFall linear forwards;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes petalFall {
    0% {
        transform: translateY(-30px) rotate(0deg) translateX(0);
        opacity: 1;
    }

    25% {
        transform: translateY(25vh) rotate(90deg) translateX(30px);
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-30px);
    }

    75% {
        transform: translateY(75vh) rotate(270deg) translateX(20px);
    }

    100% {
        transform: translateY(100vh) rotate(360deg) translateX(0);
        opacity: 0;
    }
}

/* Sparkle Effect */
.sparkle {
    position: absolute;
    font-size: 20px;
    animation: sparklePop 1s ease-out forwards;
    pointer-events: none;
}

@keyframes sparklePop {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Floating Hearts */
.floating-heart {
    position: absolute;
    font-size: 30px;
    animation: floatUp 4s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    20% {
        transform: translateY(-20vh) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* Dramatic transition effects */
@keyframes pulseText {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========== MOBILE RESPONSIVE STYLES ========== */
/* Safari/iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    body {
        /* Fix for iOS viewport height */
        min-height: -webkit-fill-available;
    }
}

/* Tablets and small desktops */
@media screen and (max-width: 768px) {
    .comic-container {
        max-width: 100%;
        padding: 15px;
    }

    .comic-title {
        font-size: 2.5rem;
    }

    .comic-card {
        padding: 25px;
    }

    .image-container {
        height: 250px;
    }

    .folding-card-container {
        max-width: 350px;
    }

    .folding-card {
        height: 450px;
    }

    .card-emoji {
        font-size: 4rem;
    }

    .card-front-text {
        font-size: 1.6rem;
    }

    .proposal-text {
        font-size: 2rem;
    }

    .big-yes {
        font-size: 2rem;
        padding: 20px 40px;
    }

    .deco-item {
        font-size: 1.5rem;
    }

    .card-decoration {
        font-size: 2rem;
    }
}

/* Mobile phones */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
        /* iOS Safari safe area */
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .comic-container {
        padding: 10px;
    }

    .comic-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .comic-card {
        padding: 20px;
        margin: 15px 0;
        border-radius: 15px;
    }

    .comic-card p {
        font-size: 1rem;
    }

    .comic-text {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .image-container {
        height: 200px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    /* Buttons - larger touch targets for mobile */
    .comic-btn {
        padding: 15px 25px;
        font-size: 1.3rem;
        min-height: 50px;
        /* iOS tap highlight */
        -webkit-tap-highlight-color: transparent;
        /* Prevent text selection on tap */
        -webkit-user-select: none;
        user-select: none;
        /* Touch-action for better response */
        touch-action: manipulation;
    }

    .option-btn {
        padding: 18px 20px;
        font-size: 1.2rem;
    }

    /* Folding Card Mobile */
    .folding-card-container {
        max-width: 100%;
        padding: 0 5px;
    }

    .folding-card {
        height: 400px;
    }

    .card-front,
    .card-inside {
        border-radius: 15px;
        border-width: 4px;
    }

    .card-emoji {
        font-size: 3.5rem;
    }

    .card-front-text {
        font-size: 1.4rem;
    }

    .card-decoration {
        font-size: 1.8rem;
    }

    .top-left {
        top: 10px;
        left: 10px;
    }

    .top-right {
        top: 10px;
        right: 10px;
    }

    .bottom-left {
        bottom: 10px;
        left: 10px;
    }

    .bottom-right {
        bottom: 10px;
        right: 10px;
    }

    .card-inside {
        padding: 20px 15px;
    }

    .proposal-text {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .final-options {
        min-height: 180px;
        gap: 10px;
    }

    .big-yes {
        font-size: 1.6rem;
        padding: 18px 35px;
        border-radius: 12px;
    }

    .small-no {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

    .deco-item {
        font-size: 1.3rem;
    }

    .card-footer-deco {
        font-size: 1.2rem;
        bottom: 10px;
    }

    .card-footer-deco span {
        margin: 0 3px;
    }

    /* Progress indicator */
    .progress {
        font-size: 1rem;
        margin-top: 15px;
    }

    /* Celebration screen mobile */
    .celebration-title {
        font-size: 2.5rem;
    }

    .celebration-content {
        padding: 20px;
    }

    .celebration-content p {
        font-size: 1.5rem;
    }

    .celebration-content img {
        max-height: 200px;
    }

    /* Effects - reduce intensity on mobile */
    .pow-effect {
        font-size: 3.5rem;
    }

    .rain-item {
        font-size: 18px;
    }

    .butterfly {
        font-size: 2rem;
    }

    .sparkle {
        font-size: 16px;
    }

    .floating-heart {
        font-size: 24px;
    }

    .rose-petal {
        font-size: 28px;
    }

    .confetti {
        width: 10px;
        height: 10px;
    }
}

/* Very small phones */
@media screen and (max-width: 360px) {
    .comic-title {
        font-size: 1.5rem;
    }

    .comic-text {
        font-size: 1.1rem;
    }

    .folding-card {
        height: 380px;
    }

    .proposal-text {
        font-size: 1.4rem;
    }

    .big-yes {
        font-size: 1.4rem;
        padding: 15px 30px;
    }

    .celebration-title {
        font-size: 2rem;
    }
}

/* Landscape mode on mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .comic-container {
        padding: 5px;
    }

    .image-container {
        height: 150px;
    }

    .folding-card {
        height: 300px;
    }

    .comic-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .celebration-title {
        font-size: 2rem;
    }
}