:root {
    --bg-dark: #0f172a;
    --card-glass: rgba(30, 41, 59, 0.7);
    --primary-gold: #fbbf24;
    --accent-teal: #2dd4bf;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    --glow-gold: 0 0 15px rgba(251, 191, 36, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(45, 212, 191, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.05) 0%, transparent 40%);
    color: var(--text-white);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.game-container {
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    position: relative;
}

.header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

.header h1 {
    font-size: 1.2rem;
    color: var(--primary-gold);
    text-shadow: var(--glow-gold);
    letter-spacing: 2px;
}

.main-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.section {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
    padding-bottom: 80px;
}

.section.active {
    display: block;
}

.character-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-glass);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-label { color: var(--text-muted); font-size: 0.85rem; }
.stat-value { color: var(--accent-teal); font-weight: bold; }

.progress-bar-container {
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-teal), var(--primary-gold));
    width: 30%;
    transition: width 0.3s ease;
}

.action-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.action-btn:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 450px;
    height: calc(70px + env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 5px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    transition: 0.3s;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.nav-item.active {
    color: var(--primary-gold);
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
