* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #2b1123;
    color: #fff;
    font-family: 'Playfair Display', serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Safari in-app browser workaround */
    -webkit-overflow-scrolling: touch;
}

#vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.98) 100%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}

#vignette-overlay.active {
    animation: vignette-pulse 0.38s infinite;
}

@keyframes vignette-pulse {
    0% { opacity: 0; }
    15% { opacity: 1; }      /* Tam karanlık */
    30% { opacity: 0; }
    45% { opacity: 0.85; }   /* Kısmi karanlık */
    100% { opacity: 0; }
}

#surprise-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 0 20px 0; /* safe area boşluğu */
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2b1123;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
}

/* LOGIN BOX */
#login-screen {
    background: radial-gradient(circle at center, #351c31, #160a14);
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 200, 220, 0.15);
    padding: 3.5rem 4rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
}

.login-box h1 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #f8e8e8;
}

#password-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 209, 220, 0.3);
    border-radius: 8px;
    outline: none;
    background: rgba(0, 0, 0, 0.1);
    color: #ffd1dc;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.3s;
    font-family: 'Playfair Display', serif;
}

#password-input:focus {
    background: rgba(0, 0, 0, 0.2);
    border-color: #ff9a9e;
    box-shadow: 0 0 10px rgba(255, 154, 158, 0.3);
}

#verify-btn {
    background: linear-gradient(135deg, #d38d97 0%, #b85c6c 100%);
    color: #fff;
    border: none;
    padding: 1.1rem 3.5rem;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 92, 108, 0.4);
}

#hint-text,
#error-text {
    margin-top: 1.5rem;
    color: #ff9a9e;
    min-height: 24px;
    opacity: 1;
    transition: opacity 0.5s;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none;
}


/* SCRAPBOOK THEME */

#surprise-screen {
    /* Vintage wooden desk texture */
    background-color: #47322e;
    background-image:
        radial-gradient(circle at center, rgba(100, 73, 68, 0.8) 0%, rgba(47, 29, 26, 0.9) 100%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc4JyBoZWlnaHQ9JzgnPjxwYXRoIGQ9J00wIDBMODggOFpNOCAwTDAgOFonIHN0cm9rZT0ncmdiYSgyNTUsMjU1LDI1NSwwLjAyKScgc3Ryb2tlLXdpZHRoPScxJy8+PC9zdmc+');
    perspective: 2000px;
}

.book-scaler {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    transition: transform 0.4s ease;
}

@media (max-width: 1000px) {
    .book-scaler {
        transform: scale(0.85);
    }
}

@media (max-width: 768px) {
    .book-scaler {
        transform: scale(0.65);
        margin: 0;
        min-height: auto;
    }
}

@media (max-width: 500px) {
    .book-scaler {
        transform: scale(0.62);
    }
}

@media (max-width: 380px) {
    .book-scaler {
        transform: scale(0.52);
    }
}

.book-wrapper {
    position: relative;
    /* Physical parameters of one closed book page */
    width: 440px;
    height: 560px;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-style: preserve-3d;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.5);
    /* Much faster than drop-shadow filter */
    border-radius: 4px 18px 18px 4px;
    /* to make the outer edge neat */
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    cursor: pointer;
}

.page.flipped {
    transform: rotateY(-180deg);
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    border-radius: 4px 18px 18px 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.front {
    z-index: 2;
}

.back {
    transform: rotateY(180deg);
    border-radius: 18px 4px 4px 18px;
}

/* Cover Styling */
.cover {
    background: linear-gradient(135deg, #6b2633, #4a1525);
    color: #fce4ec;
    border-left: 15px solid #290913;
    /* Spine representation */
    box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.back.cover {
    border-left: none;
    border-right: 15px solid #290913;
    box-shadow: inset 5px 0 15px rgba(0, 0, 0, 0.4);
}

.book-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 0 20px;
    line-height: 1.1;
}

.book-subtitle {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.8;
}

.book-cover-deco {
    font-size: 3.5rem;
    margin-top: 2rem;
    color: #c97f8c;
    opacity: 0.7;
}

.heartbeat-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 100;
}

.fingerprint-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.05);
    border: 2px solid rgba(255, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff5e7e;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.fingerprint-icon svg {
    opacity: 0.8;
}

.heartbeat-container.active .fingerprint-icon {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff3366;
    color: #ff3366;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.6);
    transform: scale(0.95);
}

.heartbeat-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

/* Craft Paper Styling */
.paper {
    background-color: #f5eedc;
    /* Subtle paper noise texture */
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0) 94%, rgba(0, 0, 0, 0.06) 100%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0JyBoZWlnaHQ9JzQnPjxyZWN0IHdpZHRoPSc0JyBoZWlnaHQ9JzQnIGZpbGw9JyNmNWVlZGMnLz48cGF0aCBkPSdNMCAwTDQgNFptNCBMMCA0Wicgc3Ryb2tlPSdyZ2JhKDAsMCwwLDAuMDQpJyBzdHJva2Utd2lkdGg9JzEnLz48L3N2Zz4=');
}

.front.paper {
    box-shadow: inset 20px 0 30px rgba(0, 0, 0, 0.14), inset -2px 0 5px rgba(0, 0, 0, 0.05);
}

.back.paper {
    box-shadow: inset -20px 0 30px rgba(0, 0, 0, 0.14), inset 2px 0 5px rgba(0, 0, 0, 0.05);
}

/* Polaroid / Photo Styling */
.photo-container {
    width: 330px;
    height: 380px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: rotate(var(--rot));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: -30px;
    /* Slight offset to fit the text below nicely */
}

.photo-container:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transform: rotate(var(--rot)) scale(1.03);
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e9e9e9;
    border: 1px solid #d5d5d5;
    /* Softly vintage effect without completely destroying colors */
    filter: sepia(15%) contrast(105%) brightness(95%);
}

.lovers-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-top: 15px;
    color: #fce4ec;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
}

.page-text {
    width: 90%;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #24161a;
    transform: rotate(var(--rot, 0deg));
    margin-top: 20px;
}

#pagination-controls {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px 0 40px 0;
    z-index: 1500;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 1s;
    pointer-events: none;
    margin-top: auto;
    padding-bottom: 20px;
}

#surprise-screen.active #pagination-controls {
    opacity: 1;
    pointer-events: auto;
}

#pagination-controls button {
    background: rgba(43, 17, 35, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 209, 220, 0.4);
    color: #ffd1dc;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#pagination-controls button:hover {
    background: rgba(255, 209, 220, 0.2);
    transform: translateY(-3px);
    color: #fff;
}

.page-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(43, 17, 35, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 209, 220, 0.4);
    color: #ffd1dc;
    padding: 3px 15px;
    border-radius: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#page-input {
    width: 40px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 209, 220, 0.6);
    color: #fff;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    outline: none;
    padding-bottom: 2px;
}

#page-input:focus {
    border-bottom-color: #fff;
}

/* Hide arrows on number input */
#page-input::-webkit-outer-spin-button,
#page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Tape styling */
.tape {
    position: absolute;
    width: 110px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    /* Solid white instead of blur is vastly more performant */
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    z-index: 5;
    /* Ragged tape edges effect via background stripping */
    background-image: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.2) 50%);
    background-size: 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tape-top-left {
    top: -15px;
    left: -25px;
    transform: rotate(-35deg);
}

.tape-top-right {
    top: -15px;
    right: -25px;
    transform: rotate(35deg);
}

.tape-bottom-left {
    bottom: -15px;
    left: -25px;
    transform: rotate(35deg);
}

.tape-bottom-right {
    bottom: -15px;
    right: -25px;
    transform: rotate(-35deg);
}

/* Sakura Petals Canvas */
#sakura-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    /* Above the book and desk, visually overlaying everything */
}

/* Option C: Integrated Player & Counter */
#header-controls {
    width: 100%;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 15px;
    left: 0;
    z-index: 2000;
    pointer-events: none;
}

#custom-music-player.minimalist {
    width: 95%;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.music-info-top {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.music-info-top .sep {
    opacity: 0.5;
}

.progress-bar-container {
    width: 100%;
    padding: 5px 0;
}

#progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

#progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    border-radius: 2px;
    position: relative;
}

.progress-knob {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -5px;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s, opacity 0.2s;
}

.ctrl-btn-sm {
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.ctrl-btn-sm:hover {
    opacity: 1;
}

.play-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.play-btn:hover {
    transform: scale(1.05);
    background: #fff;
}

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

.ctrl-btn svg, .ctrl-btn-sm svg {
    width: 100%;
    height: 100%;
}

/* ==== DIŞ NAVİGASYON KONTROL PANELİ ==== */
#book-nav-controls {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 0 10px 0;
    z-index: 1500;
    flex-shrink: 0;
}

#surprise-screen.active #book-nav-controls {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 500px) {
    #surprise-screen {
        padding-top: 110px; /* müzik çalarla çakışmasın ama max yer kalsın */
        padding-bottom: 10px;
    }
    
    .book-scaler {
        transform: scale(0.58); /* defter biraz büyütüldü */
        margin-bottom: 120px; /* absolute elementlere yer açıldı */
    }
    
    #book-nav-controls {
        position: absolute;
        bottom: max(30px, env(safe-area-inset-bottom, 30px)); /* Safari toolbar'dan korunmak için artırıldı */
        padding: 0;
    }
    
    #footer-controls {
        position: absolute;
        bottom: 85px; /* nav controls üstünde kalacak */
        padding: 0;
    }
}

.nav-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 209, 220, 0.3);
    color: #ffd1dc;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-arrow:hover {
    background: rgba(255, 209, 220, 0.25);
    transform: scale(1.1);
    color: #fff;
}

.nav-text-btn {
    background: rgba(43, 17, 35, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 209, 220, 0.4);
    color: #ffd1dc;
    padding: 8px 18px;
    border-radius: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-text-btn:hover {
    background: rgba(255, 209, 220, 0.2);
    color: #fff;
}

/* Kamera Odaklama Butonları (sadece mobilde görünür) */
.cam-btn {
    position: fixed;
    top: 105px; /* Müzik çaların hemen altına, işaretlediğin yere */
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 209, 220, 0.3);
    color: #ffd1dc;
    font-size: 1.2rem;
    cursor: pointer;
    display: none; /* Varsayılan: gizli */
    align-items: center;
    justify-content: center;
    z-index: 2500;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cam-btn:hover {
    background: rgba(255, 209, 220, 0.2);
    color: #fff;
}

.cam-left {
    left: 10px;
    border-radius: 50%;
}

.cam-right {
    right: 10px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .cam-btn {
        display: flex;
    }
}

/* Footer Counters */
#footer-controls {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1500;
    padding: 10px 0 0 0;
}

#footer-controls .counters-wrapper {
    width: 92%;
    max-width: 400px;
    background: rgba(43, 17, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 209, 220, 0.2);
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.counter-item .label {
    font-size: 0.75rem;
    color: rgba(255, 209, 220, 0.7);
    margin-bottom: 2px;
}

.counter-item .count {
    font-size: 1rem;
    color: #ffd1dc;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.anniv-integration .count {
    font-size: 1rem;
    color: #ffd1dc;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

@media (max-width: 500px) {
    #custom-music-player {
        padding: 10px;
    }
}



#surprise-screen.active #custom-music-player {
    opacity: 1;
    pointer-events: auto;
}

.track-info {
    margin-bottom: 12px;
    text-align: center;
}

.track-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.track-artist {
    font-size: 0.9rem;
    color: #b3b3b3;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.track-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #a7a7a7;
    margin-bottom: 20px;
}

.progress-bg {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #ff5e7e;
    width: 0%;
    border-radius: 2px;
    position: relative;
    pointer-events: none;
}

/* Spark at the end of progress bar */
.progress-spark {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.8), 0 0 15px #ff5e7e;
    clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 65%, 50% 100%, 39% 65%, 0% 50%, 39% 35%);
    transition: transform 0.1s;
}

.track-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#custom-music-player button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px;
    /* Larger tap target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s, color 0.1s;
}

.ctrl-btn:hover {
    color: #ff5e7e;
    transform: scale(1.1);
}

.play-btn {
    width: 45px;
    height: 45px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    transition: transform 0.1s, background 0.1s;
}

.play-btn:hover {
    transform: scale(1.05);
    background: #fff;
    color: #000;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Oalth Modal Styles */
#oalth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #351c31, #160a14);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#oalth-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.oalth-modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 200, 220, 0.2);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    animation: modalIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

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

.oalth-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.oalth-modal h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ffd1dc;
    margin-bottom: 1.5rem;
}

.oalth-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.oalth-text span {
    display: block;
    margin-top: 15px;
    font-style: italic;
    color: #ff9a9e;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.4;
    padding: 0 10px;
}

.oalth-subtext {
    font-size: 0.95rem;
    color: #b3b3b3;
    margin-bottom: 1.5rem;
}

#oalth-input {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 209, 220, 0.3);
    border-radius: 12px;
    outline: none;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#oalth-input:focus {
    border-color: #ff9a9e;
    box-shadow: 0 0 12px rgba(255, 154, 158, 0.2);
}

#oalth-btn {
    background: linear-gradient(135deg, #d38d97 0%, #b85c6c 100%);
    color: #fff;
    border: none;
    padding: 1.1rem 3rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
    pointer-events: none;
    font-family: 'Playfair Display', serif;
}

#oalth-btn.enabled {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1.05);
}

#oalth-btn:hover {
    box-shadow: 0 8px 20px rgba(184, 92, 108, 0.4);
    transform: scale(1.08);
}

/* Mini Game Button */
.game-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff7b92 0%, #ff5e7e 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(255, 94, 126, 0.3);
    border: none;
    cursor: pointer;
    z-index: 1000;
    letter-spacing: 1px;
    margin-top: 10px;
}

.last-page-text {
    font-size: 2.8rem;
}

@media (max-width: 768px) {
    .last-page-text {
        font-size: 2.2rem !important;
    }
    .game-btn {
        padding: 12px 25px;
        font-size: 1.1rem;
        margin-top: 8px;
    }
}

.game-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 15px 30px rgba(255, 94, 126, 0.5);
    background: linear-gradient(135deg, #ff92a5 0%, #ff7b92 100%);
}

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

.game-btn-alt {
    background: linear-gradient(135deg, #7b92ff 0%, #5e7eff 100%);
    box-shadow: 0 10px 20px rgba(94, 126, 255, 0.3);
}

.game-btn-alt:hover {
    box-shadow: 0 15px 30px rgba(94, 126, 255, 0.5);
    background: linear-gradient(135deg, #92a5ff 0%, #7b92ff 100%);
}

.game-btn-lodus {
    background: linear-gradient(135deg, #ff9a00 0%, #ff5e00 100%);
    box-shadow: 0 10px 20px rgba(255, 154, 0, 0.3);
    animation: lodusPulse 2s infinite;
}

.game-btn-lodus:hover {
    box-shadow: 0 15px 30px rgba(255, 154, 0, 0.5);
    background: linear-gradient(135deg, #ffb84d 0%, #ff9a00 100%);
}

@keyframes lodusPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(255, 154, 0, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(255, 154, 0, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(255, 154, 0, 0.3);
    }
}

/* Relationship Counters */
.relationship-counter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(43, 17, 35, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 209, 220, 0.25);
    padding: 12px 25px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 200;
    pointer-events: auto;
    width: auto;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.relationship-counter.bottom {
    margin: 10px 0 30px 0;
    position: relative;
    left: auto;
    transform: none;
    flex-shrink: 0;
}

.relationship-counter:hover {
    background: rgba(255, 209, 220, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 209, 220, 0.5);
}


.relationship-counter .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 209, 220, 0.7);
    margin-bottom: 5px;
    font-weight: 600;
}

.relationship-counter .count {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #ffd1dc;
    font-weight: bold;
}

@media (max-width: 768px) {
    .relationship-counter {
        min-width: 140px;
        padding: 8px 15px;
    }

    .relationship-counter.top {
        top: 10px;
        right: 10px;
    }

    .relationship-counter.bottom {
        bottom: 80px;
    }

    .relationship-counter .count {
        font-size: 0.8rem;
    }

    .relationship-counter .label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
}
