/* mainmenu.css - Styles for Rabbit Wine main menu UI */
:root {
    --bg-primary: #1a1626;
    --bg-secondary: #2d2738;
    --bg-accent: #3a3447;
    --text-primary: #e2e2e2;
    --text-accent: #a0a0a0;
    --accent-purple: #ccbcfc;
    --accent-hover: #b8a8f8;
    --border-color: #444;
    --glow-color: rgba(204, 188, 252, 0.3);
}
html, body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden !important;
    height: 100vh;
    width: 100vw;
    position: relative;
    overscroll-behavior: none;
    touch-action: none;
}
.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}
.logo-container {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}
.logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 16px var(--glow-color));
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}
.title {
    font-size: 3rem;
    font-weight: 700;
    margin-top: -20px;
    margin-bottom: 0.3rem;
    background: linear-gradient(45deg, var(--accent-purple), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
}
.subtitle {
    font-size: 1.1rem;
    color: var(--text-accent);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 0.4s both;
}
.features-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem 2.2rem;
    width: 100%;
    max-width: 420px;
    margin-bottom: 3rem;
    overflow: visible;
}
.feature-card {
    background: rgba(45, 39, 56, 0.7);
    border: 1.5px solid var(--border-color);
    border-radius: 22px;
    width: 100px;
    height: 110px;
    margin-bottom: 0;
    padding: 0.75rem 0.35rem 0.65rem 0.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(204,188,252,0.07);
    cursor: pointer;
    word-break: break-word;
    white-space: normal;
    opacity: 0;
    transform: translateY(30px);
    animation: featureFadeIn 0.35s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0s;
}
@keyframes featureFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(204, 188, 252, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover {
    transform: scale(1.07);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 32px rgba(204, 188, 252, 0.18);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-icon {
    font-size: 2.7rem;
    margin-bottom: 0.1em;
    flex-shrink: 0;
}
.feature-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-purple);
    margin: 0;
    margin-top: 0.1em;
    letter-spacing: 0.01em;
    text-align: center;
    line-height: 1.1;
    min-height: 2.2em;
    word-break: break-word;
    white-space: normal;
}
.footer-note {
    color: var(--text-accent);
    font-size: 0.9rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.8s both;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body::-webkit-scrollbar, html::-webkit-scrollbar {
    display: none;
}
body, html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
@media (max-width: 768px) {
    .intro-container {
        padding: 1rem;
    }
    .title {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .features-grid {
        max-width: 100vw;
        gap: 1.1rem 1.1rem;
    }
    .feature-card {
        width: 70px;
        height: 80px;
        padding: 0.55rem 0.25rem 0.3rem 0.25rem;
    }
    .feature-icon {
        font-size: 1.6rem;
    }
    .feature-title {
        font-size: 0.7rem;
        min-height: 2em;
    }
    .logo {
        max-width: 100px;
    }
}
@media (max-height: 700px) {
    .intro-container {
        padding: 1rem;
    }
    .title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .features-grid {
        gap: 0.7rem 0.7rem;
        margin-bottom: 1.5rem;
    }
    .feature-card {
        width: 60px;
        height: 70px;
        padding: 0.4rem 0.1rem 0.1rem 0.1rem;
    }
    .logo {
        max-width: 80px;
    }
}
