:root {
    --gold: #f3ba2f;
    --dark-bg: #0b0e11;
    --card-bg: #1e2329;
    --text-dim: #848e9c;
}

body {
    margin: 0; background: var(--dark-bg); color: white;
    font-family: 'Segoe UI', Roboto, sans-serif; overflow: hidden;
}

#game-wrapper {
    display: flex; flex-direction: column; height: 100vh; padding: 20px; box-sizing: border-box;
}

/* Header Stats */
.stats-header {
    display: flex; justify-content: space-around; background: var(--card-bg);
    padding: 15px; border-radius: 16px; border: 1px solid #333;
}

.stat-item .label { display: block; font-size: 10px; color: var(--text-dim); margin-bottom: 4px; }
.stat-item .value { font-size: 18px; font-weight: bold; }
.gold { color: var(--gold); }

/* The "Hamster" Tap Circle */
.tap-section { flex: 1; display: flex; align-items: center; justify-content: center; }

#tap-circle {
    width: 280px; height: 280px; border-radius: 50%;
    background: linear-gradient(145deg, #2c3139, #1e2329);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(243, 186, 47, 0.1);
    cursor: pointer; transition: transform 0.05s ease;
}

#tap-circle:active { transform: scale(0.95); }

.inner-circle {
    width: 230px; height: 230px; border-radius: 50%;
    background: var(--card-bg); border: 5px solid #2b2f36;
    display: flex; align-items: center; justify-content: center; font-size: 100px;
}

/* Floating +1 Animation */
.plus-one {
    position: absolute; color: var(--gold); font-weight: 800; font-size: 28px;
    pointer-events: none; animation: floatUp 0.8s ease-out forwards;
}

@keyframes floatUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-150px); opacity: 0; }
}

/* Progress Bar */
.progress-container { background: #2b3139; height: 12px; border-radius: 10px; margin: 15px 0; overflow: hidden; }
.progress-fill { background: var(--gold); height: 100%; width: 100%; transition: width 0.3s ease; }

/* Bottom Nav */
.bottom-nav { display: flex; gap: 10px; }
.nav-btn {
    flex: 1; padding: 12px; border: none; border-radius: 12px;
    background: #2b3139; color: white; font-weight: bold; cursor: pointer;
}
.nav-btn.active { background: var(--gold); color: black; }
.sub-page {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark-bg); z-index: 10; padding: 20px; box-sizing: border-box;
}

.hidden { display: none; }

.profile-card {
    background: linear-gradient(180deg, #2b3139 0%, #1e2329 100%);
    padding: 30px; border-radius: 24px; text-align: center; margin-bottom: 20px;
}

.avatar-circle {
    width: 80px; height: 80px; background: var(--gold); margin: 0 auto 15px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px;
}

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.grid-item {
    background: #1e2329; padding: 15px; border-radius: 16px; border: 1px solid #333;
}

.grid-label { font-size: 10px; color: var(--text-dim); display: block; margin-bottom: 5px; }
.grid-value { font-size: 18px; font-weight: bold; color: var(--gold); }

.back-btn {
    width: 100%; margin-top: 30px; padding: 15px; border-radius: 12px;
    background: #333; color: white; border: none; font-weight: bold;
}
