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

body {
    font-family: 'Georgia', serif;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #1a0020 0%, #0d0010 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    user-select: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,100,150,0.1) 0%, transparent 50%);
    transition: background 0.3s;
    pointer-events: none;
    z-index: 0;
}

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

.heart {
    position: absolute;
    bottom: -60px;
    font-size: 18px;
    animation: floatHeart linear infinite;
    opacity: 0;
}

@keyframes floatHeart {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
    8% { opacity: 0.5; }
    100% { transform: translateY(-120vh) rotate(720deg) scale(0.2); opacity: 0; }
}

.intro {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a0020 0%, #0d0010 100%);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.intro.hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.intro-title {
    font-size: 2.8em;
    color: #ff6b9d;
    text-shadow: 0 0 30px rgba(255, 80, 130, 0.5), 0 0 60px rgba(255, 80, 130, 0.3);
    animation: titlePulse 2s ease-in-out infinite;
    text-align: center;
    padding: 20px;
    line-height: 1.4;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 30px rgba(255,80,130,0.5); }
    50% { transform: scale(1.05); text-shadow: 0 0 50px rgba(255,80,130,0.8), 0 0 100px rgba(255,80,130,0.3); }
}

.intro-sub {
    color: rgba(255, 150, 200, 0.6);
    font-size: 1.1em;
    margin-top: 30px;
    animation: fadeInOut 2s ease-in-out infinite;
    letter-spacing: 2px;
}

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

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

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff6b9d;
    border-radius: 50%;
    animation: sparkleAnim linear infinite;
    box-shadow: 0 0 6px #ff6b9d, 0 0 12px #ff6b9d;
}

@keyframes sparkleAnim {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 700px;
    padding: 30px;
    display: none;
}

.container.show {
    display: block;
}

.lang-name {
    font-size: 1.3em;
    color: rgba(255, 150, 200, 0.6);
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
    min-height: 30px;
}

.flag {
    font-size: 4em;
    margin-bottom: 12px;
}

.swap-hint {
    font-size: 0.85em;
    color: rgba(255, 150, 200, 0.4);
    margin-bottom: 15px;
    transition: opacity 0.5s;
}

.phrase-container {
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phrase {
    position: absolute;
    width: 100%;
    text-align: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.phrase.linda {
    font-size: 2.2em;
    color: #e0c0ff;
    text-shadow: 0 0 30px rgba(200, 120, 255, 0.3);
    opacity: 1;
    transform: scale(1);
}

.phrase.linda.hide {
    opacity: 0;
    transform: scale(0.7);
}

.phrase.amo {
    font-size: 3em;
    color: #ff6b9d;
    font-weight: bold;
    text-shadow: 0 0 40px rgba(255, 80, 130, 0.4), 0 0 80px rgba(255, 80, 130, 0.2);
    opacity: 0;
    transform: scale(0.7);
}

.phrase.amo.show {
    opacity: 1;
    transform: scale(1);
}

.progress {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 100, 150, 0.2);
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #ff6b9d;
    transform: scale(1.5);
    box-shadow: 0 0 8px rgba(255, 80, 130, 0.6);
}

.dot.done {
    background: rgba(200, 120, 255, 0.4);
}

.counter {
    position: fixed;
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.85em;
    font-family: Arial, sans-serif;
    z-index: 2;
}

@media (max-width: 600px) {
    .intro-title { font-size: 1.8em; }
    .phrase.linda { font-size: 1.4em; }
    .phrase.amo { font-size: 2em; }
    .flag { font-size: 3em; }
}
