:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --romantic-pink: #ff6b9d;
    --romantic-pink-light: #ff9a9e;
    --romantic-purple: #c44569;
    --deep-purple: #2d1b4e;
    --midnight-blue: #0f0c29;
    --starlight: #ffecd2;
    --gold: #fcb69f;
    --soft-white: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);

    --font-elegant: 'Dancing Script', cursive;
    --font-modern: 'Outfit', sans-serif;

    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-modern);
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--soft-white);
    position: relative;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

html,
body {
    scrollbar-width: none;

    -ms-overflow-style: none;

    overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: var(--opacity);
        transform: scale(1);
    }
}

.floating-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.15;
    animation: floatIcon var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    filter: drop-shadow(0 0 10px currentColor);
}

.floating-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--romantic-pink);
}

.floating-icon.heart svg {
    fill: url(#heartGradient);
}

.floating-icon.star svg {
    fill: url(#starGradient);
}

.floating-icon.sparkle svg {
    fill: url(#sparkleGradient);
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.2;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) scale(1);
        opacity: 0.25;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

.poem-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 80px;
}

.hero-section {
    text-align: center;
    margin-bottom: 80px;
    padding-top: 80px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.5s;
}

.intro-text .line-1 {
    font-family: var(--font-modern);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards 0.5s;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.intro-text .line-2 {
    font-family: var(--font-elegant);
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards 1.2s, shimmer 3s linear infinite;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
    margin-top: 15px;
}

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

.hero-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    position: relative;
    height: 60px;
}

.hero-icon {
    opacity: 0;
    transform: scale(0);
}

.hero-icon.moon {
    width: 45px;
    height: 45px;
    fill: var(--starlight);
    filter: drop-shadow(0 0 20px rgba(255, 236, 210, 0.8)) drop-shadow(0 0 40px rgba(255, 236, 210, 0.4));
}

.hero-icon.tiny-star {
    width: 12px;
    height: 12px;
    fill: var(--romantic-pink);
    filter: drop-shadow(0 0 8px var(--romantic-pink));
    position: absolute;
}

.hero-icon.star-1 {
    top: 5px;
    left: calc(50% - 50px);
}

.hero-icon.star-2 {
    top: 20px;
    left: calc(50% - 35px);
}

.hero-icon.star-3 {
    top: 15px;
    right: calc(50% - 40px);
}

.hero-icon.star-4 {
    top: 0;
    right: calc(50% - 55px);
}

@keyframes twinkleStar {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes moonGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 236, 210, 0.8)) drop-shadow(0 0 40px rgba(255, 236, 210, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(255, 236, 210, 1)) drop-shadow(0 0 60px rgba(255, 236, 210, 0.6));
    }
}

.poem-title {
    font-family: var(--font-elegant);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 25%, #ff9a9e 50%, #fecfef 75%, #ffecd2 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 2px;
    perspective: 500px;
}

.title-letters {
    display: inline-block;
    visibility: hidden;
}

.title-letters .letter {
    display: inline-block;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 25%, #ff9a9e 50%, #fecfef 75%, #ffecd2 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform-origin: center bottom;
    opacity: 0;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.poem-subtitle {
    font-family: var(--font-modern);
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
}

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

.decorative-line-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 30px auto;
    width: 250px;
    height: 30px;
}

.decorative-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--romantic-pink) 20%, var(--romantic-pink) 80%, transparent 100%);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.decorative-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -11px;
    margin-top: -11px;
    width: 22px;
    height: 22px;
    fill: var(--romantic-pink);
    filter: drop-shadow(0 0 8px var(--romantic-pink));
    visibility: hidden;
    transform: scale(0);
    z-index: 2;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.poem-scroll-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    perspective: 1000px;
    visibility: hidden;
}

.poem-verse {
    font-family: var(--font-modern);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    line-height: 2.4;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 15px 30px;
    margin: 0;
    position: relative;

    opacity: 0;
    transform: translateY(80px) rotateX(15deg) scale(0.9);
    filter: blur(8px);

    transition:
        opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
        transform 1s cubic-bezier(0.23, 1, 0.32, 1),
        filter 0.8s ease,
        color 0.4s ease,
        text-shadow 0.4s ease;

    will-change: opacity, transform, filter;
}

.poem-verse.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0);
}

.poem-verse.floating {
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg);
    }

    50% {
        transform: translateY(-8px) rotateX(1deg);
    }
}

.stanza-break {
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stanza-break.revealed {
    opacity: 1;
    transform: scale(1);
}

.break-icon {
    width: 28px;
    height: 28px;
    fill: var(--romantic-pink);
    filter: drop-shadow(0 0 15px var(--romantic-pink));
    animation: breakIconPulse 3s ease-in-out infinite;
}

@keyframes breakIconPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 10px var(--romantic-pink));
    }

    50% {
        opacity: 1;
        transform: rotate(180deg) scale(1.2);
        filter: drop-shadow(0 0 25px var(--romantic-pink)) drop-shadow(0 0 50px var(--romantic-pink-light));
    }
}

.poem-verse .highlight {
    color: var(--romantic-pink);
    font-weight: 400;
    position: relative;
    display: inline-block;
    padding: 0 4px;
    margin: 0 2px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.poem-verse .highlight:hover {
    padding: 0 8px;
    margin: 0 4px;
}

.poem-verse.revealed .highlight {
    animation: highlightGlow 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes highlightGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 107, 157, 0.6), 0 0 40px rgba(255, 107, 157, 0.3);
    }
}

.poem-verse:hover {
    color: var(--starlight);
    text-shadow: 0 0 30px rgba(255, 236, 210, 0.4);
    transform: translateY(-5px) scale(1.02);
}

.poem-verse:hover .highlight {
    transform: scale(1.15);
    text-shadow: 0 0 30px var(--romantic-pink);
    padding: 0 8px;
    margin: 0 4px;
}

.stanza-marker {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-elegant);
    font-size: 2.5rem;
    color: rgba(255, 107, 157, 0.15);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.poem-verse.revealed .stanza-marker {
    opacity: 1;
}

.ending-section {
    text-align: center;
    margin-top: 100px;
    padding: 60px 20px;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.ending-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ending-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.ending-heart {
    position: absolute;
    fill: url(#heartGradient);
    filter: drop-shadow(0 0 20px var(--romantic-pink));
}

.ending-heart.main {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: mainHeartbeat 1.5s ease-in-out infinite;
}

@keyframes mainHeartbeat {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    15% {
        transform: translate(-50%, -50%) scale(1.15);
    }

    30% {
        transform: translate(-50%, -50%) scale(1);
    }

    45% {
        transform: translate(-50%, -50%) scale(1.1);
    }

    60% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.ending-heart.orbit {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--romantic-pink);
    stroke-width: 1.5;
    animation: orbitHeart 6s linear infinite;
}

.ending-heart.orbit-1 {
    animation-delay: 0s;
}

.ending-heart.orbit-2 {
    animation-delay: -2s;
}

.ending-heart.orbit-3 {
    animation-delay: -4s;
}

@keyframes orbitHeart {
    0% {
        top: 0%;
        left: 50%;
        transform: translate(-50%, 0) scale(0.8);
        opacity: 0.3;
    }

    25% {
        top: 50%;
        left: 100%;
        transform: translate(-100%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        top: 100%;
        left: 50%;
        transform: translate(-50%, -100%) scale(0.8);
        opacity: 0.3;
    }

    75% {
        top: 50%;
        left: 0%;
        transform: translate(0, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        top: 0%;
        left: 50%;
        transform: translate(-50%, 0) scale(0.8);
        opacity: 0.3;
    }
}

.ending-text {
    font-family: var(--font-elegant);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffecd2, #ff9a9e, #fecfef);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    opacity: 0;
    animation: none;
}

.ending-section.visible .ending-text {
    animation: fadeInScale 1s ease forwards, shimmer 4s linear infinite;
    animation-delay: 0.5s, 1.5s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ending-decoration {
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

.ending-section.visible .ending-decoration {
    opacity: 1;
}

.ending-infinity {
    width: 60px;
    height: 30px;
    stroke: var(--romantic-pink);
    fill: none;
    filter: drop-shadow(0 0 10px var(--romantic-pink));
    animation: infinityPulse 2s ease-in-out infinite;
}

@keyframes infinityPulse {

    0%,
    100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 5px var(--romantic-pink));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 20px var(--romantic-pink));
    }
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--romantic-pink);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(12px);
        opacity: 0.3;
    }
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 12px;
    color: rgba(255, 255, 255, 0.4);
    animation: scrollArrow 1.5s ease-in-out infinite;
}

.scroll-arrow:nth-child(2) {
    animation-delay: 0.15s;
    opacity: 0.6;
}

@keyframes scrollArrow {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(5px);
        opacity: 0.8;
    }
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.scroll-touch {
    display: none;
    justify-content: center;
    align-items: center;
}

.swipe-gesture {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 50px;
    position: relative;
}

.swipe-hand {
    animation: swipeDown 2s ease-in-out infinite;
}

.hand-icon {
    width: 50px;
    height: 50px;
    color: rgba(255, 255, 255, 0.7);
    filter: drop-shadow(0 0 5px rgba(255, 107, 157, 0.5));
}

.swipe-trail {
    position: absolute;
    top: 15px;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, rgba(255, 107, 157, 0.6), transparent);
    border-radius: 2px;
    animation: trailGrow 2s ease-in-out infinite;
}

@keyframes swipeDown {
    0% {
        transform: translateY(0);
        opacity: 0.3;
    }

    20% {
        opacity: 1;
    }

    60% {
        transform: translateY(20px);
        opacity: 1;
    }

    80%,
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

@keyframes trailGrow {
    0% {
        height: 0;
        opacity: 0;
    }

    20% {
        height: 0;
        opacity: 0.8;
    }

    60% {
        height: 20px;
        opacity: 0.8;
    }

    80%,
    100% {
        height: 20px;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    z-index: 1000;
    width: 0%;
    transition: width 0.1s ease;
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
    animation: ambientMove 20s ease-in-out infinite;
}

.ambient-glow.glow-1 {
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.ambient-glow.glow-2 {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes ambientMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, 30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }

    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: scale(0);
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.music-bar {
    width: 4px;
    background: var(--romantic-pink);
    border-radius: 2px;
    animation: musicBounce 0.8s ease-in-out infinite;
}

.music-bar:nth-child(1) {
    height: 8px;
    animation-delay: 0s;
}

.music-bar:nth-child(2) {
    height: 16px;
    animation-delay: 0.1s;
}

.music-bar:nth-child(3) {
    height: 12px;
    animation-delay: 0.2s;
}

.music-bar:nth-child(4) {
    height: 20px;
    animation-delay: 0.3s;
}

@keyframes musicBounce {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1);
    }
}

.music-toggle.paused .music-bars {
    display: none;
}

.music-toggle.paused::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid var(--soft-white);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .hero-section {
        padding-top: 40px;
        margin-bottom: 40px;
    }

    .hero-decoration {
        height: 50px;
        margin-bottom: 20px;
    }

    .hero-icon.moon {
        width: 35px;
        height: 35px;
    }

    .hero-icon.tiny-star {
        width: 10px;
        height: 10px;
    }

    .hero-icon.star-1 {
        left: calc(50% - 40px);
        top: 5px;
    }

    .hero-icon.star-2 {
        left: calc(50% - 28px);
        top: 18px;
    }

    .hero-icon.star-3 {
        right: calc(50% - 32px);
        top: 12px;
    }

    .hero-icon.star-4 {
        right: calc(50% - 45px);
        top: 2px;
    }

    .poem-title {
        font-size: clamp(2rem, 12vw, 3.5rem);
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    .poem-subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .decorative-line-container {
        width: 160px;
        height: 30px;
        margin: 15px auto;
    }

    .decorative-heart {
        width: 18px;
        height: 18px;
        margin-left: -9px;
        margin-top: -9px;
    }

    .poem-container {
        padding: 20px 15px 100px;
    }

    .poem-scroll-container {
        max-width: 100%;
    }

    .poem-verse {
        font-size: 1rem;
        line-height: 2;
        padding: 10px 15px;
        transform: translateY(50px) rotateX(10deg) scale(0.95);
    }

    .poem-verse .highlight {
        padding: 0 3px;
        margin: 0 1px;
    }

    .poem-verse .highlight:hover,
    .poem-verse:hover .highlight {
        padding: 0 5px;
        margin: 0 2px;
    }

    .stanza-break {
        height: 40px;
    }

    .break-icon {
        width: 20px;
        height: 20px;
    }

    .stanza-marker {
        display: none;
    }

    .ending-section {
        margin-top: 60px;
        padding: 40px 15px;
    }

    .ending-icon-container {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .ending-heart.main {
        width: 50px;
        height: 50px;
    }

    .ending-heart.orbit {
        width: 14px;
        height: 14px;
    }

    .ending-text {
        font-size: 1.5rem;
    }

    .ending-infinity {
        width: 45px;
        height: 22px;
    }

    .music-toggle {
        width: 44px;
        height: 44px;
        top: 12px;
        right: 12px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-mouse {
        width: 22px;
        height: 36px;
    }

    .scroll-wheel {
        width: 3px;
        height: 6px;
        top: 6px;
    }

    .scroll-arrows {
        gap: 1px;
    }

    .scroll-arrow {
        width: 16px;
        height: 10px;
    }

    .ambient-glow {
        width: 300px;
        height: 300px;
    }

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

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .hero-section {
        padding-top: 30px;
        margin-bottom: 30px;
    }

    .hero-decoration {
        gap: 10px;
    }

    .poem-title {
        font-size: clamp(1.8rem, 14vw, 2.5rem);
    }

    .poem-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .decorative-line-container {
        width: 130px;
        height: 28px;
        margin: 12px auto;
    }

    .decorative-heart {
        width: 16px;
        height: 16px;
        margin-left: -8px;
        margin-top: -8px;
    }

    .poem-container {
        padding: 15px 12px 80px;
    }

    .poem-verse {
        font-size: 0.95rem;
        line-height: 1.9;
        padding: 8px 12px;
    }

    .stanza-break {
        height: 30px;
    }

    .break-icon {
        width: 16px;
        height: 16px;
    }

    .ending-section {
        margin-top: 40px;
        padding: 30px 12px;
    }

    .ending-icon-container {
        width: 70px;
        height: 70px;
    }

    .ending-heart.main {
        width: 40px;
        height: 40px;
    }

    .ending-heart.orbit {
        width: 12px;
        height: 12px;
    }

    .ending-text {
        font-size: 1.3rem;
    }

    .music-toggle {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .music-bar {
        width: 3px;
    }

    .scroll-indicator {
        bottom: 15px;
    }

    .scroll-mouse {
        width: 20px;
        height: 32px;
    }
}

@media (max-width: 360px) {
    .poem-title {
        font-size: 1.6rem;
    }

    .poem-verse {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .ending-text {
        font-size: 1.1rem;
    }
}

@media print {

    .stars-container,
    .floating-icons-container,
    .ambient-glow,
    .scroll-indicator,
    .progress-bar,
    .music-toggle,
    #particles-canvas,
    .svg-defs {
        display: none !important;
    }

    body {
        background: white;
        color: #333;
    }

    .poem-title {
        background: none;
        -webkit-text-fill-color: #333;
        color: #333;
    }

    .poem-verse {
        opacity: 1;
        transform: none;
        filter: none;
        color: #333;
    }
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050510;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 2s ease;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-text-on-wire {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);

    left: 20px;

    top: 10vh;

    transform: none;

    left: 50%;
    transform: translateX(-50%);
    top: 40%;

    font-family: var(--font-modern);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);

    background: #050510;

    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.intro-text-below-bulb {
    position: relative;

    margin-top: 30px;

    font-family: var(--font-elegant);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    white-space: nowrap;

    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 20px rgba(255, 107, 157, 0.3);

    opacity: 0;

    animation: simpleFadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) forwards 1s, shimmer 3s linear infinite;
}

@keyframes simpleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.light-fill {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;

    background: radial-gradient(circle,
            #fff0f3 0%,

            #ffc1c9 30%,

            #ff9a9e 60%,

            #ff9a9e 100%);

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    border-radius: 0;
    opacity: 0;

    transition: width 2.5s ease-in,
        height 2.5s ease-in,
        opacity 0.2s ease;
    z-index: 10001;

    pointer-events: none;

    filter: drop-shadow(0 0 20px #ff9a9e);
}

.light-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.5;
}

.light-fill.expand {
    width: 300vmax;

    height: 300vmax;
    opacity: 0.95;
}

.intro-content {
    position: absolute;
    top: 55%;

    width: 100%;
    text-align: center;
    z-index: 9995;
    pointer-events: none;
    padding-top: 60px;
}

.bulb-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    transform-origin: top center;
    animation: swing 4s ease-in-out infinite alternate;
    -webkit-tap-highlight-color: transparent;
}

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

    100% {
        transform: translateX(-50%) rotate(-3deg);
    }
}

.wire {
    width: 2px;
    height: 30vh;

    background: #222;
    background: linear-gradient(to right, #111, #444, #111);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

.socket {
    width: 30px;
    height: 30px;
    background: #333;
    background: linear-gradient(to right, #222, #555, #222);
    border-radius: 3px 3px 10px 10px;
    margin-bottom: -5px;

    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.bulb {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    box-shadow:
        inset -5px -5px 10px rgba(255, 255, 255, 0.05),
        inset 5px 5px 10px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bulb::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 20%;
    width: 15px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: rotate(-45deg);
}

.filament {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    display: flex;
    justify-content: center;
    gap: 5px;
    opacity: 0.3;
}

.f-piece {
    width: 1px;
    height: 100%;
    background: #888;
    position: relative;
}

.f-piece::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 1px;
    background: #888;
}

.bulb-wrapper:hover .bulb {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.bulb-wrapper.on .bulb {
    background: #ff9a9e;

    box-shadow:
        0 0 60px #ff9a9e,
        0 0 150px #c44569,
        0 0 300px #ff6b9d,
        inset 0 0 50px #fff;
    transition: background 0.1s, box-shadow 0.5s ease-out;
}

.bulb-wrapper.on .filament {
    opacity: 0.9;
}

.bulb-wrapper.on .f-piece,
.bulb-wrapper.on .f-piece::after {
    background: #fff;
    box-shadow: 0 0 5px #fff;
}

.bulb-wrapper.on .socket {
    background: #555;
}

.bulb-wrapper:not(.on) .bulb {
    animation: dimPulse 3s ease-in-out infinite;
}

@keyframes dimPulse {

    0%,
    100% {
        box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
    }

    50% {
        box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.15), 0 0 5px rgba(255, 255, 255, 0.1);
    }
}