/* ============================================================
   Mobile Games Hub — Kid-Friendly Game Landing Pages
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0f1230;
    --bg-2: #1a1a4a;
    --accent: #ffd60a;
    --accent-2: #ff5e78;
    --accent-3: #06b6d4;
    --accent-4: #22c55e;
    --text: #fdfdff;
    --text-dim: #b3b8d0;
    --card: rgba(255, 255, 255, 0.06);
    --card-hover: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.12);
}

html, body {
    font-family: 'Nunito', 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f1230 0%, #1a0a3a 50%, #0e2a4a 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

a { color: var(--accent-3); text-decoration: none; }
a:hover { color: var(--accent); }

/* ============== TOP BAR ============== */
.topbar {
    position: sticky; top: 0;
    background: rgba(15, 18, 48, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 80;
    padding: 14px 0;
}
.topbar .wrap {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.brand {
    font-family: 'Impact', 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--text);
    text-decoration: none;
    display: flex; align-items: center; gap: 8px;
}
.brand span {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ============== HUB HERO ============== */
.hero {
    padding: 60px 0 60px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 214, 10, 0.18), transparent 50%),
        radial-gradient(circle at 80% 65%, rgba(255, 94, 120, 0.18), transparent 50%);
    pointer-events: none;
}
.hero .wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}
.hero h1 {
    font-family: 'Impact', 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.0;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.hero-pop {
    display: block;
    background: linear-gradient(180deg, #ffd60a 0%, #ff8800 50%, #ff5e78 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.4);
    filter: drop-shadow(0 0 30px rgba(255, 214, 10, 0.5));
}
.hero-sub {
    color: var(--text-dim);
    font-size: clamp(15px, 1.7vw, 19px);
    margin-bottom: 28px;
    max-width: 540px;
}
.hero-art img {
    width: 100%;
    max-width: 460px;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.6));
}
@media (max-width: 800px) {
    .hero .wrap { grid-template-columns: 1fr; text-align: center; }
    .hero-art { order: -1; }
    .hero-sub { margin-left: auto; margin-right: auto; }
}

.big-cta {
    display: inline-block;
    padding: 18px 40px;
    font-family: 'Impact', 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: clamp(20px, 2.4vw, 28px);
    letter-spacing: 3px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-4) 0%, #16a34a 100%);
    border: 4px solid #fff;
    border-radius: 16px;
    cursor: pointer;
    box-shadow:
        inset 0 4px 0 rgba(255,255,255,0.4),
        inset 0 -5px 0 rgba(0,0,0,0.25),
        0 10px 0 #14532d,
        0 14px 40px rgba(34, 197, 94, 0.5);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    transition: transform 0.1s;
    text-decoration: none;
}
.big-cta:hover { transform: translateY(-2px) scale(1.02); color: #fff; }
.big-cta:active { transform: translateY(4px) scale(0.98); }

/* ============== SECTION TITLES ============== */
.section-title { margin: 60px 0 28px; }
.section-title h2 {
    font-family: 'Impact', 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: clamp(30px, 4.5vw, 52px);
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.section-sub { color: var(--text-dim); font-size: 15px; }

/* ============== GAMES GRID ============== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 30px;
}
.game-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: all 0.2s;
    cursor: pointer;
}
.game-card.live:hover {
    background: var(--card-hover);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 30px rgba(255, 214, 10, 0.2);
    border-color: var(--accent);
}
.game-card.soon { opacity: 0.7; cursor: default; }
.card-art {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-art img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.card-emoji {
    font-size: clamp(64px, 10vw, 100px);
    z-index: 2;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,0.5));
}
.card-badge {
    position: absolute;
    top: 12px; right: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: 'Impact', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 3;
}
.card-badge.live {
    background: var(--accent-4);
    color: #fff;
    box-shadow: 0 0 16px rgba(34,197,94,0.6);
}
.card-badge.soon {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.card-body { padding: 18px 22px 22px; }
.card-body h3 {
    font-family: 'Impact', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.card-body p {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.card-meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex; gap: 8px; flex-wrap: wrap;
}
.card-meta .age {
    background: rgba(34,197,94,0.15);
    color: var(--accent-4);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
}
.card-meta .dot { opacity: 0.4; }

/* ============== ABOUT BLOCK ============== */
.about-block {
    margin: 60px 0;
    padding: 36px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
}
.about-block h2 {
    font-family: 'Impact', sans-serif;
    font-size: 28px;
    margin-bottom: 14px;
    letter-spacing: 2px;
}
.about-block p { color: var(--text-dim); font-size: 15px; }

/* ============== GAME LANDING HERO ============== */
.game-hero {
    position: relative;
    min-height: 60vh;
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
    animation: bg-pan 30s linear infinite;
}
@keyframes bg-pan {
    0% { transform: translateX(0); }
    100% { transform: translateX(-5%); }
}
.hero-truck-row {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 40px;
    pointer-events: none;
}
.ht {
    width: clamp(80px, 16vw, 200px);
    filter: drop-shadow(0 12px 25px rgba(0,0,0,0.6));
    animation: truck-rumble 2s ease-in-out infinite;
}
.ht-1 { animation-delay: 0s; }
.ht-2 { animation-delay: 0.4s; }
.ht-3 { animation-delay: 0.8s; }
.ht-4 { animation-delay: 1.2s; }
@keyframes truck-rumble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding-top: 20px;
}
.game-title {
    font-family: 'Impact', 'Bebas Neue', 'Arial Black', sans-serif;
    line-height: 0.95;
    letter-spacing: 4px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 30px rgba(255, 214, 10, 0.5));
}
.game-title .t1 {
    display: block;
    font-size: clamp(38px, 7vw, 90px);
    background: linear-gradient(180deg, #ffd60a 0%, #ff8800 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px #c81e1e;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}
.game-title .t2 {
    display: block;
    font-size: clamp(30px, 5.5vw, 72px);
    color: #06b6d4;
    -webkit-text-stroke: 2px #fff;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.5);
    margin-top: 4px;
}
.game-tagline {
    font-family: 'Impact', sans-serif;
    font-size: clamp(16px, 2.4vw, 24px);
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.play-btn {
    background: linear-gradient(135deg, var(--accent-4) 0%, #16a34a 100%) !important;
    box-shadow:
        inset 0 4px 0 rgba(255,255,255,0.4),
        inset 0 -5px 0 rgba(0,0,0,0.25),
        0 10px 0 #14532d,
        0 14px 40px rgba(34, 197, 94, 0.5) !important;
}
.apk-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%) !important;
    box-shadow:
        inset 0 4px 0 rgba(255,255,255,0.4),
        inset 0 -5px 0 rgba(0,0,0,0.25),
        0 10px 0 #164e63,
        0 14px 40px rgba(6, 182, 212, 0.5) !important;
}
.hero-meta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.meta-pill {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    backdrop-filter: blur(8px);
}

/* ============== FEATURES ============== */
.features-section { padding: 60px 0; }
.features-title {
    font-family: 'Impact', sans-serif;
    font-size: clamp(34px, 5vw, 60px);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 36px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
}
.feature:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    border-color: var(--accent);
}
.feature-icon {
    font-size: 56px;
    margin-bottom: 12px;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}
.feature h3 {
    font-family: 'Impact', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.feature p { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

/* ============== HOW TO PLAY ============== */
.howto-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.howto-section h2 {
    font-family: 'Impact', sans-serif;
    font-size: clamp(34px, 5vw, 60px);
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 36px;
}
.howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.howto-step {
    text-align: center;
    padding: 24px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.step-num {
    width: 50px; height: 50px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font-family: 'Impact', sans-serif;
    font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(255, 214, 10, 0.4);
}
.howto-step h3 {
    font-family: 'Impact', sans-serif;
    font-size: 19px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.howto-step p { color: var(--text-dim); font-size: 13.5px; }

/* ============== BOTTOM CTA ============== */
.bottom-cta {
    padding: 50px 0;
    text-align: center;
}
.bottom-cta h2 {
    font-family: 'Impact', sans-serif;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

/* ============== APK MODAL ============== */
.apk-modal {
    position: fixed; inset: 0;
    background: rgba(5, 10, 22, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    z-index: 100;
    padding: 20px;
}
.apk-modal.hidden { display: none; }
.apk-modal-content {
    background: var(--bg-2);
    border: 2px solid var(--accent-3);
    border-radius: 20px;
    padding: 32px 40px;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.apk-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.6;
}
.apk-close:hover { opacity: 1; }
.apk-emoji { font-size: 70px; margin-bottom: 8px; }
.apk-modal-content h2 {
    font-family: 'Impact', sans-serif;
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.apk-modal-content p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ============== FOOTER ============== */
footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: 60px;
    color: var(--text-dim);
    font-size: 13px;
}
