* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000B18;
    --bg-card: #001430;
    --bg-card-end: #00225A;
    --cyan: #00FFFF;
    --cyan-soft: #00D4FF;
    --cyan-dim: rgba(0, 255, 255, 0.15);
    --orange-start: #FF8C00;
    --orange-end: #FFB300;
    --blue-btn-start: #0090FF;
    --blue-btn-end: #0055CC;
    --text-white: #FFFFFF;
    --text-gray: #A0B0C0;
    --text-light: #C8D8E8;
    --border-glow: rgba(0, 200, 255, 0.3);
    --card-shadow: 0 4px 24px rgba(0, 80, 200, 0.25);
    --font: 'Inter', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 80, 200, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 40, 120, 0.12) 0%, transparent 60%);
    color: var(--text-white);
    font-family: var(--font);
    min-height: 100vh;
}

/* -------- HEADER -------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 11, 24, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 200, 255, 0.15);
    padding: 14px 20px;
}

.header-inner {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.social-link:hover {
    background: rgba(0, 200, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(0, 200, 255, 0.4);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.site-title-wrap {
    text-align: center;
    flex: 1;
}

.site-title {
    font-size: clamp(12px, 3.5vw, 17px);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--cyan);
    text-shadow:
        0 0 10px rgba(0, 255, 255, 0.7),
        0 0 30px rgba(0, 200, 255, 0.4),
        0 0 60px rgba(0, 150, 255, 0.2);
    line-height: 1.3;
    text-transform: uppercase;
}

/* -------- HERO BANNER -------- */
.hero-banner {
    max-width: 520px;
    margin: 20px auto 0;
    padding: 0 16px;
}

.hero-card {
    background: linear-gradient(135deg, #001C5A 0%, #00337A 50%, #001C5A 100%);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 200, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-card h2 {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.hero-card p {
    font-size: 13px;
    color: var(--text-gray);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--orange-end);
}

.hero-stat .lbl {
    font-size: 10px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* -------- SECTION LABEL -------- */
.section-label {
    max-width: 520px;
    margin: 24px auto 12px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 200, 255, 0.5), transparent);
}

/* -------- GAME CARDS -------- */
.games-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-end) 100%);
    border: 1px solid rgba(0, 150, 255, 0.2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.5), transparent);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 100, 255, 0.35);
    border-color: rgba(0, 200, 255, 0.4);
}

.game-card:active {
    transform: translateY(-1px);
}

.game-icon-wrap {
    flex-shrink: 0;
    position: relative;
}

.game-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(0, 200, 255, 0.3);
    box-shadow: 0 0 14px rgba(0, 150, 255, 0.3);
    background: #001430;
}

.game-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #FF8C00, #FFB300);
    color: #000;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(255, 160, 0, 0.5);
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.game-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-gray);
}

.game-meta-row svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    color: var(--cyan-soft);
}

.game-meta-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta-highlight {
    color: var(--orange-end);
    font-weight: 700;
}

.game-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.btn-download {
    background: linear-gradient(135deg, var(--orange-start), var(--orange-end));
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.45);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-decoration: none;
    min-width: 100px;
    justify-content: center;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 140, 0, 0.65);
    background: linear-gradient(135deg, #FFA000, #FFD000);
}

.btn-download:active {
    transform: scale(0.96);
}

.btn-download svg {
    width: 14px;
    height: 14px;
}

.btn-download.loading {
    opacity: 0.7;
    pointer-events: none;
}

.min-redeem-label {
    font-size: 9px;
    color: var(--text-gray);
    text-align: center;
    white-space: nowrap;
}

.min-redeem-label strong {
    color: #00FF88;
}

/* -------- PLAY MORE BUTTON -------- */
.play-more-section {
    max-width: 520px;
    margin: 10px auto 20px;
    padding: 0 16px;
    text-align: center;
}

.btn-play-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0090FF, #0044CC);
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 20px rgba(0, 120, 255, 0.45);
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.btn-play-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 120, 255, 0.65);
    background: linear-gradient(135deg, #00AAFF, #0066FF);
}

.btn-play-more svg {
    width: 20px;
    height: 20px;
}

/* -------- FOOTER -------- */
.site-footer {
    background: rgba(0, 5, 15, 0.8);
    border-top: 1px solid rgba(0, 100, 200, 0.2);
    padding: 20px 16px;
    text-align: center;
}

.footer-inner {
    max-width: 520px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 6px;
    line-height: 1.6;
}

.footer-age {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--orange-end);
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 6px;
}

/* -------- TOAST NOTIFICATION -------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 30, 60, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 200, 255, 0.4);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 100, 255, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: rgba(0, 255, 136, 0.5); }
.toast.error   { border-color: rgba(255, 80, 80, 0.5); }

/* -------- ANIMATIONS -------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0,255,255,.7), 0 0 30px rgba(0,200,255,.4); }
    50%       { text-shadow: 0 0 20px rgba(0,255,255,1), 0 0 50px rgba(0,200,255,.8); }
}

.site-title { animation: pulse-glow 3s ease-in-out infinite; }

.game-card {
    animation: fadeInUp 0.5s ease both;
}

/* stagger cards */
.game-card:nth-child(1)  { animation-delay: 0.05s; }
.game-card:nth-child(2)  { animation-delay: 0.10s; }
.game-card:nth-child(3)  { animation-delay: 0.15s; }
.game-card:nth-child(4)  { animation-delay: 0.20s; }
.game-card:nth-child(5)  { animation-delay: 0.25s; }
.game-card:nth-child(6)  { animation-delay: 0.30s; }
.game-card:nth-child(7)  { animation-delay: 0.35s; }
.game-card:nth-child(8)  { animation-delay: 0.40s; }
.game-card:nth-child(9)  { animation-delay: 0.45s; }
.game-card:nth-child(10) { animation-delay: 0.50s; }
.game-card:nth-child(11) { animation-delay: 0.55s; }
.game-card:nth-child(12) { animation-delay: 0.60s; }

/* -------- RIPPLE EFFECT -------- */
.btn-download { position: relative; overflow: hidden; }
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255,255,255,0.35);
    animation: ripple-anim 0.5s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* -------- LOADER -------- */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }

.loader-ring {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(0, 200, 255, 0.15);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------- RESPONSIVE -------- */
@media (max-width: 380px) {
    .game-icon { width: 60px; height: 60px; }
    .game-name { font-size: 14px; }
    .btn-download { padding: 9px 13px; font-size: 11px; min-width: 88px; }
}

@media (min-width: 521px) {
    .games-container { padding: 0 20px 20px; }
    .site-header { padding: 14px 24px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(0,200,255,.3); border-radius: 4px; }
