/* --- Root Variables & Reset --- */
:root {
    --bg-dark: #070708;
    --card-bg: rgba(255, 255, 255, 0.04);
    --neon-green: #00ff88;
    --neon-purple: #9d00ff;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    padding-bottom: 100px; /* Space for bottom nav */
    line-height: 1.5;
}

/* --- SPA View Management --- */
.view {
    display: none;
    padding: 80px 20px 20px;
    min-height: 100vh;
    animation: fadeIn 0.3s ease-in-out;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Top Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 65px;
    background: rgba(7, 7, 8, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    background: linear-gradient(90deg, var(--neon-green), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-text {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* --- Hero & Egg Section --- */
.hero-section {
    text-align: center;
    margin-top: 40px;
}

#interactive-egg {
    width: 200px;
    height: 250px;
    margin: 0 auto 30px;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e0e0e0 40%, #999 100%);
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0, 255, 136, 0.2);
    cursor: pointer;
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

#interactive-egg:active {
    transform: scale(0.92);
}

h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.1;
}

.cta-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--neon-green);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
}

.w-full { width: 100%; }

/* --- Game Cards & Lists --- */
.game-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.slot-machine {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.reel {
    width: 80px;
    height: 100px;
    background: #000;
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* --- Task List --- */
.task-item {
    background: var(--card-bg);
    padding: 18px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border: 1px solid var(--glass-border);
}

.task-info strong { display: block; color: #fff; }
.task-info span { color: var(--neon-green); font-size: 0.9rem; }

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    cursor: pointer;
}

.nav-item i { font-size: 1.4rem; margin-bottom: 4px; }
.nav-item:hover { color: var(--neon-green); }

/* --- Floating Button --- */
.tg-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #24A1DE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 999;
}

/* --- Checkin Grid --- */
.checkin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.day-card {
    background: rgba(255,255,255,0.03);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}
/* --- Partner Ticker Styling --- */
.partner-ticker {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    margin-top: 40px;
}

.ticker-wrapper {
    display: flex;
    width: max-content; /* Critical: Allows the width to be based on content */
    animation: marquee 20s linear infinite;
}

.partner-item {
    padding: 0 40px;
    display: flex;
    align-items: center;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.partner-item span {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.partner-item:hover span {
    opacity: 1;
    color: var(--neon-green);
}

/* --- The Animation Logic --- */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly half the total width */
}