/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Background with overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/bg/bg-001.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 30, 0.75);
    z-index: -1;
}

/* Main container - centered vertically */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 2rem;
}

/* Logo styling */
.logo-container {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Login modal styling */
.login-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.login-modal h2 {
    color: #2d2d3d;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Form styling */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: #4d4d5d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e8;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #e88eb9;
    box-shadow: 0 0 0 3px rgba(232, 142, 185, 0.1);
}

.form-group input::placeholder {
    color: #a0a0b0;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4d4d5d;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-password {
    color: #e88eb9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #d87aa8;
}

/* Login button */
.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #e88eb9 0%, #d87aa8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 142, 185, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 142, 185, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #a0a0b0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e8;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* Signup text */
.signup-text {
    text-align: center;
    color: #4d4d5d;
    font-size: 0.9rem;
}

.signup-text a {
    color: #e88eb9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-text a:hover {
    color: #d87aa8;
    text-decoration: underline;
}

/* Adopt button */
.adopt-container {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn-adopt {
    padding: 1.125rem 3rem;
    background: linear-gradient(135deg, #2d2d3d 0%, #1a1a25 100%);
    color: white;
    border: 2px solid #e88eb9;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 142, 185, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-adopt:hover {
    background: linear-gradient(135deg, #e88eb9 0%, #d87aa8 100%);
    border-color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(232, 142, 185, 0.5);
}

.btn-adopt:active {
    transform: translateY(-1px) scale(1.02);
}

/* Floating KikiNation button */
.kikination-float-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: clamp(190px, 24vw, 280px);
    z-index: 420;
    line-height: 0;
}

.kikination-float-btn img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 8px rgba(232, 142, 185, 0.18));
}

.kikination-float-btn:hover img,
.kikination-float-btn:focus-visible img {
    transform: scale(1.08);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(255, 115, 195, 0.7)) saturate(1.08);
}

.kikination-float-btn:active img {
    transform: scale(1.12);
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 26px rgba(255, 100, 190, 0.95)) saturate(1.12);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================================
   Adopt a Catgirl - Game Overview Modal
   ============================================================ */

/* Overlay backdrop */
.adopt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 18, 0.88);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* Visible state (toggled via JS) */
.adopt-modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Modal panel */
.adopt-modal {
    position: relative;
    background: linear-gradient(160deg, #1e1e2e 0%, #16162a 100%);
    border: 1px solid rgba(232, 142, 185, 0.35);
    border-radius: 24px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(232, 142, 185, 0.1);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s ease;
    overflow: hidden;
}

.adopt-modal-overlay.is-open .adopt-modal {
    transform: translateY(0) scale(1);
}

/* Close button */
.adopt-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 2.2rem;
    height: 2.2rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #ccc;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.adopt-modal-close:hover {
    background: rgba(232, 142, 185, 0.25);
    color: #fff;
    transform: rotate(90deg);
}

/* Header */
.adopt-modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.adopt-modal-header h2 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(232, 142, 185, 0.4);
}

.adopt-modal-tagline {
    color: #e88eb9;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Scrollable body */
.adopt-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 1.5rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 142, 185, 0.3) transparent;
}

.adopt-modal-body::-webkit-scrollbar {
    width: 5px;
}

.adopt-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.adopt-modal-body::-webkit-scrollbar-thumb {
    background: rgba(232, 142, 185, 0.35);
    border-radius: 3px;
}

/* Overview paragraph */
.adopt-modal-overview {
    background: rgba(232, 142, 185, 0.08);
    border-left: 3px solid #e88eb9;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}

.adopt-modal-overview p {
    color: #d0d0e0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.adopt-modal-overview strong {
    color: #e88eb9;
}

/* Section wrappers */
.adopt-modal-section {
    margin-bottom: 1.75rem;
}

.adopt-section-title {
    color: #e88eb9;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(232, 142, 185, 0.2);
}

/* Portrait gallery - scrollable horizontal row */
.catgirl-gallery {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 142, 185, 0.3) transparent;
}

.catgirl-gallery::-webkit-scrollbar {
    height: 4px;
}

.catgirl-gallery::-webkit-scrollbar-thumb {
    background: rgba(232, 142, 185, 0.4);
    border-radius: 2px;
}

.catgirl-gallery img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(232, 142, 185, 0.2);
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.catgirl-gallery img:hover {
    transform: scale(1.1);
    border-color: #e88eb9;
    z-index: 2;
}

/* Character render showcase - wider cards */
.render-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 142, 185, 0.3) transparent;
}

.render-gallery::-webkit-scrollbar {
    height: 4px;
}

.render-gallery::-webkit-scrollbar-thumb {
    background: rgba(232, 142, 185, 0.4);
    border-radius: 2px;
}

.render-gallery img {
    width: 170px;
    height: 230px;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(232, 142, 185, 0.2);
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.render-gallery img:hover {
    transform: scale(1.04);
    border-color: #e88eb9;
}

/* How-to-play step cards */
.game-guide-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.guide-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.guide-step:hover {
    background: rgba(232, 142, 185, 0.08);
    border-color: rgba(232, 142, 185, 0.3);
}

.guide-step-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.guide-step h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.guide-step p {
    color: #9090aa;
    font-size: 0.82rem;
    line-height: 1.55;
}

/* Collectibles & Items */
.items-showcase {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.875rem 1.25rem;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    cursor: default;
}

.item-card:hover {
    background: rgba(232, 142, 185, 0.1);
    border-color: rgba(232, 142, 185, 0.35);
    transform: translateY(-3px);
}

.item-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.item-card span {
    color: #c0c0d0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal footer / CTA */
.adopt-modal-footer {
    padding: 1.25rem 2rem 1.75rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    background: linear-gradient(0deg, rgba(232, 142, 185, 0.06) 0%, transparent 100%);
}

.adopt-modal-footer-text {
    color: #9090aa;
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
}

.adopt-modal-cta {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA login button */
.btn-modal-login {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #e88eb9 0%, #d87aa8 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(232, 142, 185, 0.35);
    letter-spacing: 0.5px;
}

.btn-modal-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 142, 185, 0.5);
}

/* CTA register button */
.btn-modal-register {
    padding: 0.75rem 2rem;
    background: transparent;
    color: #e88eb9;
    border: 2px solid #e88eb9;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-modal-register:hover {
    background: rgba(232, 142, 185, 0.12);
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    /* Modal adjustments */
    .adopt-modal-header {
        padding: 1.5rem 1.5rem 0.875rem;
    }

    .adopt-modal-header h2 {
        font-size: 1.4rem;
    }

    .adopt-modal-body {
        padding: 1.25rem 1.25rem;
    }

    .game-guide-steps {
        grid-template-columns: 1fr;
    }

    .adopt-modal-footer {
        padding: 1rem 1.25rem 1.5rem;
    }

    .main-container {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .logo {
        max-width: 280px;
    }
    
    .login-modal {
        padding: 2rem;
    }
    
    .login-modal h2 {
        font-size: 1.5rem;
    }
    
    .btn-adopt {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .kikination-float-btn {
        right: 1rem;
        bottom: 1rem;
        width: clamp(160px, 42vw, 210px);
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 220px;
    }
    
    .login-modal {
        padding: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}
