@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
    --bg-color: #0D0D1A;
    --surface-color: #16213E;
    --text-color: #E0E0E0;
    --secondary-text-color: #8F8F9D;
    --accent-color: #E94560;
    --accent-glow: rgba(233, 69, 96, 0.6);
    --highlight-color: #F0A500;
}

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

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden;
}

#app {
    width: 100%;
    max-width: 800px;
    height: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Base screen container */
.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* State management */
.screen.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Main Menu Styles */
.main-screen .glass-panel {
    width: 90%;
    height: 70%;
    background: rgba(22, 33, 62, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.floating-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.floating-icon {
    position: absolute;
    font-size: 2.5rem;
    text-shadow: 0 0 15px rgba(255,255,255,0.5);
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.floating-icon:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 30%; right: 15%; animation-delay: -1.5s; font-size: 3.5rem;}
.floating-icon:nth-child(3) { bottom: 25%; left: 25%; animation-delay: -3s; font-size: 2rem; }
.floating-icon:nth-child(4) { bottom: 40%; right: 30%; animation-delay: -4.5s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    position: relative; /* To appear above floating icons */
}

.cta-button {
    font-family: 'Pretendard', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 15px;
    padding: 20px 50px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    position: relative;
    box-shadow: 0 0 25px var(--accent-glow);
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px var(--accent-glow);
}

/* Category Selection Styles */
.category-screen .button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    max-width: 500px;
}

.category-button {
    background: var(--surface-color);
    border: 2px solid transparent;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: all 0.3s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.category-button span {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
}

.category-button:hover {
    transform: scale(1.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.back-button {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-text-color);
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 40px;
    transition: color 0.2s;
}
.back-button:hover {
    color: var(--text-color);
}
