:root {
    /* Apple iOS Light Palette */
    --bg-body: #F2F2F7;       /* Светло-серый фон iOS */
    --bg-card: #FFFFFF;       /* Чистый белый */
    --text-primary: #000000;  /* Черный текст */
    --text-secondary: #8E8E93;/* Серый текст */
    --accent: #007AFF;        /* Apple Blue */
    --border: rgba(0, 0, 0, 0.05);
    
    /* Безопасные зоны (Челка) */
    --safe-top: env(safe-area-inset-top, 20px);
    --header-height: 44px; /* Стандартная высота навигации iOS */
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Убираем выделение при тапе */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    padding-top: 100px !important; 
}

/* --- ШАПКА --- */
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(41, 40, 40, 0.329); /* Полупрозрачный белый */
    backdrop-filter: blur(0,1px);           /* Размытие фона */
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
    z-index: 1000;
    
    
    /* САМОЕ ВАЖНОЕ: Отступ сверху = размер челки */
    padding-top: var(--safe-top);
    /* Высота самой полоски заголовка */
    height: var(--header-height);
    
    display: flex;
    align-items: center;
    justify-content: center;
    /* Высота шапки */
    height: 45px !important; 
    
    /* Отступ внутри шапки, чтобы текст уехал вниз */
    padding-top: 40px !important; 
    
    /* Выравнивание */
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-weight: 600;
    font-size: 17px; /* Стандарт iOS */
    color: #fcfafa;
}

/* --- КОНТЕНТ --- */
.app-container {
    /* Отступ сверху = (челка + высота шапки) + 20px воздух */
    padding-top: calc(var(--safe-top) + var(--header-height) + 20px);
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
}

/* --- КАРТОЧКА ПРОФИЛЯ --- */
.profile-card {
    background: var(--bg-card);
    border-radius: 14px; /* Скругление как в iOS */
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.user-info { display: flex; flex-direction: column; }
.user-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.user-name { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }

.balance-wrap { text-align: right; }
.balance-val { font-size: 20px; font-weight: 700; color: var(--accent); }
.balance-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; }

/* --- ИГРОВАЯ КАРТОЧКА (БОЛЬШАЯ) --- */
.game-hero {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    cursor: pointer;
    transition: transform 0.1s;
}
.game-hero:active { transform: scale(0.98); }

.hero-image {
    height: 160px;
    background: linear-gradient(135deg, #FF9500, #FF3B30); /* Яркий градиент вместо картинки пока */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.hero-content { padding: 20px; }
.hero-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.hero-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 15px; }

.play-btn {
    display: block;
    width: 100%;
    background: #000000; /* Черная кнопка на белом фоне - стиль */
    color: #FFFFFF;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
}