@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

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

:root {
    --candy-pink: #FF6B9D;
    --candy-purple: #A55EEA;
    --candy-blue: #45AAF2;
    --candy-green: #26de81;
    --candy-yellow: #F8B500;
    --candy-orange: #FF9F43;
    --candy-red: #FC5C65;
    --bg-cream: #FFF9E6;
    --bg-pink: #FFE4EC;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-pop: 0 15px 40px rgba(255, 107, 157, 0.3);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #FFF9E6 0%, #FFE4EC 50%, #E8F5FF 100%);
}

.hall-header {
    background: white;
    box-shadow: var(--shadow-pop);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 36px;
    animation: logo-bounce 2s ease-in-out infinite;
}

@keyframes logo-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B9D 0%, #A55EEA 50%, #45AAF2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #F5F5F5;
    color: #333;
}

.nav-link.active {
    background: linear-gradient(135deg, #FF6B9D 0%, #FC5C65 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.nav-icon {
    font-size: 18px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #E8F5FF 0%, #FFE4EC 100%);
    border-radius: 50px;
}

.user-avatar {
    font-size: 24px;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    background: white;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.logout-btn:hover {
    background: #FFF5F5;
    border-color: #FC5C65;
    color: #FC5C65;
}

.hall-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(135deg, #FF6B9D 0%, #A55EEA 50%, #45AAF2 100%);
    opacity: 0.1;
    border-radius: 30px 30px 50% 50% / 30px 30px 0 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B9D 0%, #A55EEA 50%, #45AAF2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.title-decoration {
    display: inline-block;
    animation: bounce-title 1s ease-in-out infinite;
}

.title-decoration:last-child {
    animation-delay: 0.5s;
}

@keyframes bounce-title {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
}

.hero-decoration {
    position: relative;
    margin-top: 30px;
    height: 60px;
}

.deco-candy {
    position: absolute;
    font-size: 40px;
    animation: float-candy 3s ease-in-out infinite;
}

.deco-1 { left: 10%; animation-delay: 0s; }
.deco-2 { left: 30%; animation-delay: 0.5s; }
.deco-3 { left: 50%; animation-delay: 1s; }
.deco-4 { left: 70%; animation-delay: 1.5s; }
.deco-5 { left: 90%; animation-delay: 2s; }

@keyframes float-candy {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.games-section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    font-size: 32px;
}

.section-desc {
    color: #888;
    margin-top: 8px;
    font-size: 16px;
}

.hall-loading {
    text-align: center;
    padding: 60px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 10px;
}

.game-card-candy {
    position: relative;
    background: linear-gradient(135deg, var(--card-color) 0%, var(--card-color-dark) 100%);
    border-radius: 24px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.game-card-candy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    pointer-events: none;
}

.game-card-candy:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.game-card-candy:active {
    transform: scale(0.98);
}

.card-gloss {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    border-radius: 24px 24px 50% 50%;
    pointer-events: none;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.card-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.count-icon {
    font-size: 16px;
}

.card-play {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: var(--card-color-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.game-card-candy:hover .card-play {
    transform: translateX(5px);
}

.play-arrow {
    transition: transform 0.3s ease;
}

.game-card-candy:hover .play-arrow {
    transform: translateX(5px);
}

.card-sparkle {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sparkle-1 {
    top: 20px;
    right: 20px;
}

.sparkle-2 {
    bottom: 30px;
    left: 15px;
}

.game-card-candy:hover .card-sparkle {
    opacity: 1;
    animation: sparkle-float 1s ease-in-out infinite;
}

.sparkle-2 {
    animation-delay: 0.5s;
}

@keyframes sparkle-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.2); }
}

.hall-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

.hall-empty h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.hall-empty p {
    color: #888;
    font-size: 16px;
}

.empty-decoration {
    margin-top: 30px;
    font-size: 32px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.empty-decoration span {
    animation: bounce-delay 1s ease-in-out infinite;
}

.empty-decoration span:nth-child(2) {
    animation-delay: 0.2s;
}

.empty-decoration span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce-delay {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 16px;
    }
    
    .logo-icon {
        font-size: 28px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .nav-link span:last-child {
        display: none;
    }
    
    .user-info {
        padding: 6px 12px;
    }
    
    .user-name {
        display: none;
    }
    
    .logout-btn {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .logout-btn span:last-child {
        display: none;
    }
    
    .hall-main {
        padding: 20px 16px;
    }
    
    .hero-section {
        padding: 40px 16px;
        border-radius: 20px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .deco-candy {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .game-card-candy {
        padding: 24px;
    }
    
    .card-icon {
        font-size: 40px;
    }
    
    .card-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }
    
    .title-decoration {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 5px;
    }
    
    .game-card-candy {
        padding: 16px;
    }
    
    .card-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-desc {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .card-count {
        justify-content: center;
    }
    
    .card-play {
        justify-content: center;
        padding: 8px 16px;
        font-size: 13px;
    }
}
