: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%);
    --btn-text: #000;
    --gold: #ffcc00;
    --telegram-blue: #0088cc;
    --accent-red: #ff4d4d;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--app-bg);
    background-image: radial-gradient(circle at top right, #0a2552, transparent);
    color: #fff;
    padding-bottom: 100px;
    overflow-x: hidden;
    line-height: 1.4;
}

/* Header */
header {
    background: rgba(10, 37, 82, 0.8);
    backdrop-filter: blur(10px);
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-text { 
    font-size: 1.2rem; 
    font-weight: 900; 
    color: var(--gold); 
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.container { 
    padding: 15px; 
    max-width: 480px; 
    margin: 0 auto; 
}

/* Card Styling */
.game-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.game-item:active {
    transform: scale(0.98);
}

/* Image & Tags */
.img-box { 
    position: relative; 
    width: 65px; 
    height: 65px; 
    flex-shrink: 0; 
}

.img-box img { 
    width: 100%; 
    height: 100%; 
    border-radius: 14px; 
    object-fit: cover; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.tag {
    position: absolute; 
    top: -8px; 
    left: -8px; 
    background: var(--accent-red);
    color: white;
    font-size: 9px; 
    font-weight: 900; 
    padding: 3px 7px; 
    border-radius: 6px;
    z-index: 2; 
    box-shadow: 0 2px 8px rgba(255, 77, 77, 0.4);
    text-transform: uppercase;
}

/* Text Info */
.info { flex: 1; padding-left: 15px; }

.name { 
    font-size: 1rem; 
    font-weight: 900; 
    margin-bottom: 3px; 
    letter-spacing: 0.5px;
}

.dl-count { 
    font-size: 0.7rem; 
    color: #a0aec0; 
    display: block;
    margin-bottom: 2px;
}

.bonus { 
    font-size: 0.85rem; 
    color: #4ade80; /* Brighter green for bonus visibility */
    font-weight: 700; 
}

/* Action Area */
.action { text-align: center; min-width: 110px; }

.dl-btn {
    background: var(--btn-orange);
    color: var(--btn-text);
    text-decoration: none;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 10px 0;
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 0 #b36e00;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.redeem { 
    font-size: 0.65rem; 
    color: #cbd5e0; 
    margin-top: 6px; 
    display: block; 
}

/* Floating Telegram Button */
.tg-fab {
    position: fixed; 
    bottom: 95px; 
    right: 20px;
    background: var(--telegram-blue);
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.4); 
    z-index: 999;
}

/* Sticky Footer */
.footer-bar {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0;
    background: #061631; 
    border-top: 3px solid var(--gold);
    padding: 15px 20px; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.footer-info p { font-size: 0.7rem; color: #a0aec0; text-transform: uppercase; }
.footer-info b { font-size: 1.1rem; color: var(--gold); }

.claim-btn {
    background: linear-gradient(90deg, #f9d423, #ff4e50);
    color: #000; 
    text-decoration: none; 
    padding: 12px 24px;
    border-radius: 12px; 
    font-weight: 900; 
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 78, 80, 0.3);
}

/* Entrance Animation */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.game-item {
    animation: fadeIn 0.5s ease-out forwards;
}