* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #0a0a12;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}
#app {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, #1a1028 0%, #0a0a12 70%);
    padding: 16px 16px 80px;
    position: relative;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px 20px;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #6c3ce0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(108,60,224,0.3);
}
.balance {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    cursor: pointer;
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}
.currency { color: #a855f7; font-weight: 700; }
.bonus-banner {
    background: linear-gradient(135deg, rgba(108,60,224,0.15), rgba(168,85,247,0.08));
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.bonus-content { display: flex; align-items: center; gap: 14px; }
.bonus-icon { font-size: 28px; }
.bonus-title { font-size: 13px; color: #9ca3af; }
.bonus-amount { font-size: 18px; font-weight: 700; color: #fbbf24; }
.bonus-claim {
    margin-left: auto;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6c3ce0, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108,60,224,0.3);
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.game-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 20px 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.game-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-3px); }
.game-icon { font-size: 32px; margin-bottom: 8px; }
.game-name { font-size: 12px; color: #d1d5db; }
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: space-around;
    padding: 8px 16px 12px;
    background: rgba(10,10,18,0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    position: relative;
}
.nav-btn.active { color: #a855f7; }
.nav-btn.active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #6c3ce0, #a855f7);
    border-radius: 2px;
}
.nav-icon { font-size: 22px; }
.nav-label { font-size: 10px; font-weight: 500; }
.page-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.page-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
}
.page-content h2 { text-align: center; margin-bottom: 20px; }
.deposit-btn {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 10px;
    cursor: pointer;
}
.deposit-btn.primary { background: linear-gradient(135deg, #6c3ce0, #8b5cf6); border: none; }
.close-btn {
    display: block;
    margin: 10px auto 0;
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}
