/* Breathing Ball - Premium Redesign */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-0: #050814;
    --accent: #14b8a6;
    --accent-glow: rgba(20, 184, 166, 0.4);
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.1), transparent 60%), var(--bg-0);
    color: #fff;
    min-height: 100vh;
}

.page-wrapper {
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Navigation */
.game-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(10, 15, 37, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-home:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.4);
}

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

.nav-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-spacer {
    width: 100px;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    flex-wrap: wrap;
}

.stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    min-width: 90px;
}

.stat-chip.rate {
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.05));
    border-color: rgba(20, 184, 166, 0.3);
}

.stat-chip.time {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.04));
    border-color: rgba(168, 85, 247, 0.25);
}

.chip-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.chip-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0 20px 20px;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-reset {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-xl {
    padding: 16px 32px;
    font-size: 16px;
}

/* Game Main */
.game-main {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.breathing-area {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08), transparent 70%);
    border-radius: 50%;
}

/* Breathing Ball */
.breathing-ball {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    animation: breathe 8s ease-in-out infinite;
}

.ball-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(20, 184, 166, 0.8), rgba(13, 148, 136, 0.9));
}

.ball-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.4), transparent 70%);
    filter: blur(20px);
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

.breathing-text {
    margin-top: 40px;
    text-align: center;
}

#breath-instruction {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.breathing-guide {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Overlay */
.overlay-panel {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 25, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 50;
}

.overlay-panel.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 32px;
}

.overlay-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.overlay-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #14b8a6, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overlay-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 20px;
}

/* Help Section */
.help-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.help-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.hi {
    font-size: 20px;
}

/* Recommendations */
.recommendations-section {
    max-width: 600px;
    margin: 48px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.game-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-card-mini:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 28px;
}

.card-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* Responsive */
@media (max-width: 450px) {
    .breathing-area {
        width: 320px;
        height: 320px;
    }

    .breathing-ball {
        width: 120px;
        height: 120px;
    }

    .nav-spacer {
        display: none;
    }
}

/* Legacy */
.header,
.game-info,
.instructions,
.breathing-container {
    display: none;
}

.container {
    display: contents;
}