:root {
    --bg: #0d0f1a;
    --surface: #161929;
    --card: #1e2340;
    --accent1: #f7c948;
    --accent2: #ff6b6b;
    --accent3: #4ecdc4;
    --accent4: #a29bfe;
    --text: #eef0ff;
    --muted: #8890b5;
    --radius: 18px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Background floating numbers ── */
.bg-numbers {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-num {
    position: absolute;
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    opacity: 0.06;
    animation: floatNum linear infinite;
    color: var(--accent1);
}

@keyframes floatNum {
    0% {
        transform: translateY(110vh) rotate(0deg);
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
    }
}

/* ── Layout ── */
.wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: var(--card);
    border: 3px solid var(--accent1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 40px rgba(247, 201, 72, 0.25);
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon-placeholder {
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    color: var(--accent1);
}

.hero h1 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    letter-spacing: 1px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent1) 0%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    margin-top: 12px;
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 600;
}

/* ── Target badge ── */
.target-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    background: var(--card);
    border: 2px solid var(--accent2);
    border-radius: 50px;
    padding: 10px 24px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--accent2);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

.target-badge .heart {
    color: var(--accent2);
    font-size: 1.2rem;
}

/* ── Section title ── */
.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--accent1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent1) 0%, transparent 100%);
    border-radius: 2px;
}

/* ── Cards ── */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 28px;
}

/* ── How to play ── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.step {
    background: var(--surface);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, border-color 0.2s;
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--accent3);
}

.step .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.step h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent3);
    margin-bottom: 6px;
}

.step p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Screenshots ── */
.screenshots {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots::-webkit-scrollbar {
    height: 6px;
}

.screenshots::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 6px;
}

.screenshots::-webkit-scrollbar-thumb {
    background: var(--accent4);
    border-radius: 6px;
}

.screenshot-slot {
    flex: 0 0 180px;
    height: 320px;
    background: var(--surface);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    scroll-snap-align: start;
    overflow: hidden;
}

.screenshot-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-slot .ph-icon {
    font-size: 2rem;
}

/* ── Info grid ── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.info-item {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 3px solid var(--accent4);
}

.info-item label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin-bottom: 6px;
}

.info-item span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
}

/* ── Download button ── */
.download-wrap {
    text-align: center;
    margin: 36px 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent1), #f09000);
    color: #1a1200;
    font-family: 'Fredoka One', cursive;
    font-size: 1.15rem;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(247, 201, 72, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(247, 201, 72, 0.45);
}

/* ── Footer ── */
footer {
    text-align: center;
    padding-top: 48px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 2;
}

footer a {
    color: var(--accent3);
    text-decoration: none;
    font-weight: 700;
}

footer a:hover {
    text-decoration: underline;
}

/* ── Hearts row ── */
.hearts {
    color: var(--accent2);
    font-size: 1.3rem;
    letter-spacing: 4px;
}