.engagement-banner {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.engagement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-block {
    width: 100%;
    margin-bottom: 8px;
}

.badge-pill {
    display: inline-block;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 20px;
    padding: 4px 10px;
    margin: 4px 4px 0 0;
    font-size: 0.85rem;
}

.quest-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.quest-done {
    opacity: 0.65;
    border-left: 3px solid #4CAF50;
}

.quest-title { font-weight: 600; }
.quest-progress { font-size: 0.85rem; color: #aaa; margin-top: 4px; }

.history-week-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.history-week-title {
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.history-week-row {
    font-size: 0.85rem;
    padding: 2px 0;
}

.prize-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.prize-card p { margin: 6px 0; font-size: 0.9rem; }
.prize-card small { color: #888; }

.hub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.hub-tab-panel { display: none; }
.hub-tab-panel.active { display: block; }

.profile-avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.profile-avatar-img,
.profile-avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-sizing: border-box;
}

.profile-avatar-img {
    display: none;
    object-fit: cover;
    z-index: 2;
}

.profile-avatar-fallback {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    z-index: 1;
}

.avatar-frame-gold {
    box-shadow: 0 0 0 3px #ffd700;
    border-radius: 50%;
}

#hub-referral-link {
    word-break: break-all;
    font-size: 0.8rem;
    color: #8cf;
    margin: 8px 0;
}

.hub-section-title {
    font-size: 1rem;
    color: #ffd700;
    margin: 14px 0 8px;
}

.hub-dev-notice {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    margin-top: 12px;
}

.hub-dev-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.hub-dev-notice p {
    margin: 8px 0;
    color: #ffd700;
    font-weight: 600;
}

.hub-dev-hint {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #aaa !important;
}

.game-of-day-banner {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(255, 215, 0, 0.15));
    border: 1px solid rgba(76, 175, 80, 0.45);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.game-of-day-banner strong {
    color: #ffd700;
}

.week-featured-banner {
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.2), rgba(255, 215, 0, 0.1));
    border-color: rgba(100, 149, 237, 0.45);
}

.points-caps-hint {
    font-size: 0.8rem;
    color: #9ab;
    margin: 0 0 12px;
    line-height: 1.4;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #eee;
}

.compare-grid {
    display: grid;
    gap: 12px;
}

.compare-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
}

.compare-card h4 {
    color: #ffd700;
    margin-bottom: 8px;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
}

.tile2048-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 320px;
    margin: 16px auto;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    touch-action: none;
}

.tile2048-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.tile2048-cell.tile-v-2 { background: #3c3a32; }
.tile2048-cell.tile-v-4 { background: #5a5548; color: #ffd700; }
.tile2048-cell.tile-v-8 { background: #8f7a66; }
.tile2048-cell.tile-v-16 { background: #c17f59; }
.tile2048-cell.tile-v-32 { background: #c2a05a; }
.tile2048-cell.tile-v-64 { background: #c2c25a; }
.tile2048-cell.tile-v-128 { background: #b9c25a; font-size: 0.95rem; }
.tile2048-cell.tile-v-256 { background: #9bc25a; font-size: 0.95rem; }
.tile2048-cell.tile-v-512 { background: #6bc25a; font-size: 0.85rem; }
.tile2048-cell.tile-v-1024 { background: #4caf50; font-size: 0.75rem; }
.tile2048-cell.tile-v-2048 { background: #ffd700; color: #222; font-size: 0.75rem; }

.main-favorite-btn {
    margin-bottom: 12px;
}

.quest-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.quest-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #ffd700);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tutorial-card {
    background: #1e2a3a;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    padding: 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
}

.tutorial-card h3 {
    color: #ffd700;
    margin-bottom: 12px;
}

.tutorial-card p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.tutorial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.tutorial-dot.active {
    background: #ffd700;
}

.tutorial-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.game-menu-god-hint {
    font-size: 0.8rem;
    color: #8cf;
    margin: -8px 0 12px;
    text-align: center;
}
