/* ── Reset & base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --pink:   #ff0080;
    --cyan:   #00e5ff;
    --green:  #a2ff00;
    --yellow: #fff000;
    --dark:   #1e293b;
    --bg:     #fff5f9;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #334155;
    background: var(--bg);
    padding-top: 60px;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,0,128,.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0,229,255,.05) 0%, transparent 20%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }

.font-display { font-family: 'Lilita One', cursive; font-weight: 400; }
.font-mono    { font-family: 'Source Code Pro', monospace; }

/* ── Layout helpers ────────────────────────────── */
.page        { display: flex; flex-direction: column; min-height: 100vh; }
.container   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 24px; }
.section--white { background: #fff; }
.section--green { background: rgba(162,255,0,.1); }
.section--cyan  { background: rgba(0,229,255,.1); }
.center-text { text-align: center; }

/* ── Bubble shadows ────────────────────────────── */
.shadow-bubble      { box-shadow: 0 8px 0 rgba(0,0,0,.1); }
.shadow-bubble-pink { box-shadow: 0 6px 0 #d4006b; }
.shadow-bubble-blue { box-shadow: 0 6px 0 #00b8cc; }

/* ── Buttons ───────────────────────────────────── */
.button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 40px; border-radius: 2rem;
    font-family: 'Lilita One', cursive; font-weight: 400;
    font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px;
    text-decoration: none; border: 4px solid var(--dark);
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }

.button--pink  { background: var(--pink); color: #fff; box-shadow: 0 6px 0 #d4006b; }
.button--white { background: #fff; color: var(--cyan); box-shadow: 0 8px 0 rgba(0,0,0,.1); }
.button--cyan  { background: var(--cyan); color: #fff; border-color: var(--dark); box-shadow: 0 6px 0 #00b8cc; }
.button--green { background: var(--green); color: var(--dark); border-color: var(--dark); box-shadow: 0 6px 0 #7acc00; }
.button--small { font-size: 1.1rem; padding: 12px 28px; }

/* ── Feature cards ─────────────────────────────── */
.feature-card {
    display: flex; flex-direction: column; gap: 24px;
    padding: 40px; border-radius: 2.5rem;
    background: #fff; border: 4px solid var(--pink);
    transition: transform .2s;
    text-decoration: none;
}
.feature-card:hover { transform: rotate(2deg); }
.feature-card--cyan  { border-color: var(--cyan); }
.feature-card--cyan:hover { transform: rotate(-2deg); }
.feature-card--green { border-color: var(--green); }
.feature-card--green:hover { transform: rotate(1deg); }

.feature-card__icon {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 1rem; color: #fff;
    box-shadow: 4px 4px 0 #000;
    transition: transform .2s;
}
.feature-card:hover .feature-card__icon { transform: scale(1.1); }
.feature-card__icon--pink  { background: var(--pink); }
.feature-card__icon--cyan  { background: var(--cyan); }
.feature-card__icon--green { background: var(--green); }

.feature-card__title { font-size: 1.5rem; color: var(--dark); }
.feature-card__desc  { color: #64748b; font-weight: 500; line-height: 1.6; }

/* ── Section headings ─────────────────────────── */
.section-header { margin-bottom: 48px; }
.section-badge {
    display: inline-block; padding: 8px 24px;
    border: 2px solid var(--pink); border-radius: 999px;
    font-size: .9rem; text-transform: uppercase; letter-spacing: .2em;
    color: var(--pink); background: #fff;
    transform: rotate(-2deg);
}
.section-badge--cyan { border-color: var(--cyan); color: var(--cyan); }
.section-badge--green { border-color: var(--green); color: var(--green); }
.section-title { font-size: 3rem; line-height: 1.1; color: var(--dark); margin-top: 16px; }
.section-desc { font-size: 1.15rem; color: #64748b; max-width: 640px; margin: 12px auto 0; font-weight: 500; }

/* ── Terminal code block ───────────────────────── */
.terminal {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.terminal__header {
    display: flex; align-items: center;
    padding: 10px 16px;
    background: #eef0f2;
    border-bottom: 1px solid #e0e0e0;
}
.terminal__dot {
    width: 10px; height: 10px; border-radius: 50%; margin-right: 6px;
}
.terminal__dot--red    { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green  { background: #28c840; }
.terminal__filename {
    margin-left: 12px; color: #888; font-size: .8rem;
    font-family: 'Source Code Pro', monospace;
}
.terminal__body {
    padding: 20px 24px;
    background: #f8f9fa;
    font-family: 'Source Code Pro', monospace;
    font-size: .88rem; line-height: 1.7; color: #333;
}

/* Syntax colors */
.syn-kw { color: #7c3aed; }
.syn-fn { color: #2563eb; }
.syn-cm { color: #9ca3af; font-style: italic; }
.syn-st { color: #16a34a; }
.syn-nb { color: #ea580c; }

/* ── Filter pills ─────────────────────────────── */
.filter-bar {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
    padding: 0 24px 48px;
    max-width: 900px; margin: 0 auto;
}
.filter-pill {
    padding: 8px 24px; border-radius: 999px;
    font-family: 'Quicksand', sans-serif;
    font-size: .85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    border: 3px solid var(--dark);
    background: #fff; color: var(--dark);
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}
.filter-pill:hover { transform: translateY(-2px); }
.filter-pill--active {
    background: var(--pink); color: #fff; border-color: var(--pink);
}

/* ── Navbar (static, matches tiny-nav.js output) ─ */
.tiny-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    height: 56px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 4px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-family: 'Quicksand', sans-serif;
}
.tiny-nav__logo {
    color: #1e293b;
    font-family: 'Lilita One', cursive;
    font-weight: 400;
    font-size: 1.3em;
    margin-right: auto;
    white-space: nowrap;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.15s ease;
}
.tiny-nav__logo:hover { color: #ff0080; }
.tiny-nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tiny-nav__link {
    color: #444;
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.15s ease;
}
.tiny-nav__link:hover { color: #ff0080; }
.tiny-nav__cta {
    background: #00e5ff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 16px;
    border: 2px solid #1e293b;
    font-family: 'Lilita One', cursive;
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 6px 0 #00b8cc;
    transition: transform 0.15s ease;
}
.tiny-nav__cta:hover {
    background: #00d4ec;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Lazy-load shimmer skeleton ───────────────── */
.game-card__image[data-src] {
    background: linear-gradient(90deg, #eef0f2 25%, #f5f6f8 50%, #eef0f2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Footer ────────────────────────────────────── */
.footer {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px;
    padding: 64px 24px;
    border-top: 4px solid rgba(0,0,0,.05);
    max-width: 1200px; margin: 0 auto;
    color: #94a3b8; font-weight: 500;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand-text { font-size: 1.5rem; letter-spacing: 2px; color: var(--dark); }
.footer__links { display: flex; gap: 48px; }
.footer__link {
    font-size: .85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; text-decoration: none; color: #94a3b8;
    transition: color .15s;
}
.footer__link:hover { color: var(--pink); }
.footer__copy { font-size: .85rem; font-weight: 700; opacity: .6; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 960px) {
    .tiny-nav__links { display: none; }
    .section-title { font-size: 2.5rem; }
}
@media (max-width: 600px) {
    .button { font-size: 1.2rem; padding: 14px 28px; }
    .footer { flex-direction: column; text-align: center; }
    .footer__links { flex-direction: column; gap: 16px; }
}
