.bg-decor {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.68), rgba(255,255,255,0.08));
    box-shadow: 0 0 40px rgba(255,255,255,0.10);
    animation: floatBubble 8s ease-in-out infinite;
}

.b1 { width: 130px; height: 130px; top: 8%; left: 8%; animation-delay: 0s; }
.b2 { width: 80px; height: 80px; top: 18%; right: 10%; animation-delay: 1s; }
.b3 { width: 170px; height: 170px; bottom: 12%; left: 10%; animation-delay: 2s; }
.b4 { width: 100px; height: 100px; bottom: 18%; right: 16%; animation-delay: 3s; }
.b5 { width: 70px; height: 70px; top: 42%; left: 50%; animation-delay: 4s; }

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.06); }
}

#menu-screen {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: 96px;
}

.menu-shell {
    width: min(1100px, 100%);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    text-align: center;
}

.brand-badge {
    display: inline-block;
    padding: 10px 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    color: #3d2a00;
    font-weight: 900;
    font-size: 0.95rem;
    box-shadow: 0 10px 24px rgba(255, 196, 0, 0.28);
}

#menu-screen h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1;
    letter-spacing: 1px;
    text-shadow:
        0 0 12px rgba(0, 234, 255, 0.45),
        0 0 24px rgba(255, 255, 255, 0.18);
}

.subtitle {
    margin: 14px auto 0;
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-soft);
}

.name-box {
    margin-top: 20px;
    margin-bottom: 10px;
}

#player-name {
    width: min(100%, 360px);
    padding: 14px 16px;
    border-radius: 18px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.92);
    color: #0f456b;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stats-container {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(9, 26, 62, 0.44), rgba(9, 26, 62, 0.28));
    border: 1px solid rgba(255,255,255,0.16);
    text-align: left;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 16px;
}

.stats-header h2,
.stats-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.stats-chip {
    padding: var(--space-1);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), #ff9bdf);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
}

#history-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.category-title {
    color: #ffd93d; /* Megegyezik az ikonok/címek sárgájával */
    font-size: 1.4rem;
    font-weight: 800;
    margin: 40px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* Az első címsor felett ne legyen feleslegesen nagy az űr */
.category-title:first-of-type {
    margin-top: 10px;
}