:root {
    --app-bg: #030a1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --btn-orange: linear-gradient(180deg, #ffb700 0%, #ff8c00 100%);
    --gold: #ffcc00;
    --telegram-blue: #0088cc;
    --accent-red: #ff4d4d;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--app-bg) radial-gradient(circle at top right, #0a2552, transparent);
    color: #fff;
    padding-bottom: 110px;
    overflow-x: hidden;
}

header {
    background: rgba(10, 37, 82, 0.9);
    backdrop-filter: blur(8px);
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    position: sticky; top: 0; z-index: 100;
}

.logo-text { font-size: 1.1rem; font-weight: 900; color: var(--gold); }

.container { padding: 12px; max-width: 500px; margin: 0 auto; }

.game-item {
    display: flex; align-items: center;
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; padding: 10px; margin-bottom: 10px;
    animation: fadeIn 0.4s ease-out;
}

.img-box { position: relative; width: 60px; height: 60px; }
.img-box img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }

.tag {
    position: absolute; top: -5px; left: -5px;
    background: var(--accent-red); font-size: 8px; font-weight: 900;
    padding: 2px 6px; border-radius: 4px;
}

.info { flex: 1; padding-left: 12px; }
.name { font-size: 0.95rem; font-weight: 900; }
.dl-count { font-size: 0.7rem; color: #a0aec0; display: block; }
.bonus { font-size: 0.8rem; color: #4ade80; font-weight: 700; }

.action { min-width: 100px; text-align: center; }
.dl-btn {
    background: var(--btn-orange); color: #000; text-decoration: none;
    font-weight: 900; font-size: 0.7rem; padding: 8px 0;
    width: 100%; border-radius: 8px; display: block;
    box-shadow: 0 3px 0 #b36e00; animation: pulse 2s infinite;
}

.redeem { font-size: 0.6rem; color: #cbd5e0; margin-top: 4px; display: block; }

.tg-fab {
    position: fixed; bottom: 85px; right: 15px;
    background: var(--telegram-blue); width: 55px; height: 55px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4); z-index: 99;
}
.tg-fab svg { width: 28px; fill: white; }

.footer-bar {
    position: fixed; bottom: 0; width: 100%;
    background: #061631; border-top: 2px solid var(--gold);
    padding: 12px 20px; display: flex;
    justify-content: space-between; align-items: center; z-index: 100;
}

.footer-info b { font-size: 1rem; color: var(--gold); }
.claim-btn {
    background: linear-gradient(90deg, #f9d423, #ff4e50);
    color: #000; text-decoration: none; padding: 10px 20px;
    border-radius: 10px; font-weight: 900; font-size: 0.8rem;
}

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }