:root {
    /* Emerald/Green Theme from target */
    --color-primary: #10B981;
    --color-primary-dark: #059669;
    --color-primary-light: #D1FAE5;
    --color-accent: #F59E0B;
    --color-danger: #EF4444;
    --color-danger-light: #FEE2E2;
    --color-bg-base: #F8FAFC;
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #0F172A;
    --color-text-main: #1E293B;
    --color-text-sub: #64748B;
    --color-text-light: #94A3B8;
    --color-border: #E2E8F0;

    --promo-pink-bg: #FFF1F2;
    --promo-pink-text: #E11D48;
    --promo-blue-bg: #EFF6FF;
    --promo-blue-text: #2563EB;
    --promo-purple-bg: #FDF4FF;
    --promo-purple-text: #9333EA;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(16, 185, 129, 0.3);
    
    --header-height: 60px;
    --spacing-container: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    line-height: 1.5;
    padding-bottom: 100px;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Utilities */
.container-custom {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
    position: relative;
    z-index: 10;
}

.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.mb-1 { margin-bottom: 4px; }
.mb-3 { margin-bottom: 12px; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-primary);
}

/* Logo Styling */
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: #5d5dff; /* Brand Blue */
    font-style: italic;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 1px;
}

/* Background Decor */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.6;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

/* Buttons */
.btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
    user-select: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    border-radius: var(--radius-full);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Infinite Marquee */
.marquee-container {
    background-color: var(--color-bg-dark);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 8px 0;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    min-width: 200%; 
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    margin-right: 24px;
    font-size: 12px;
    color: var(--color-text-light);
    vertical-align: middle;
}

.marquee-icon {
    background: rgba(255,255,255,0.1); 
    width: 16px; 
    height: 16px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-right: 6px;
    color: #FACC15;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Animations */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

/* Game Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.game-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:active { transform: scale(0.98); }

.game-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-bottom-left-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    line-height: 1;
}

.game-icon-box {
    width: 100%;
    padding-top: 56.25%; 
    position: relative;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    color: var(--color-text-sub);
    overflow: hidden;
}

.game-img-absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-items: start;
}

/* Promos */
.promo-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s;
    cursor: pointer;
}
.promo-item:active { transform: scale(0.98); }

/* Steps */
.step-item {
    display: flex;
    position: relative;
    padding-bottom: 24px;
}
.step-item:last-child { padding-bottom: 0; }

.step-line {
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* FAQ */
.faq-item {
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
    background-color: rgba(248, 250, 252, 0.5);
}

.faq-answer.show { opacity: 1; }

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: 12px var(--spacing-container);
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

/* Toast */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}