/* ===== KoloGame v3 — popsilla-inspired layout ===== */
/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #1f2933;
    background: #f6f8fb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; vertical-align: middle;
    -webkit-user-select: none; -moz-user-select: none; user-select: none; }
button { border: 0; background: none; font: inherit; cursor: pointer; color: inherit; }
li { list-style: none; }
a { color: inherit; text-decoration: none; cursor: pointer; }
input:focus, button:focus { outline: none; }

:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #eaf0fe;
    --cta: #16a34a;
    --cta-dark: #15803d;
    --star: #fbbf24;
    --ink: #1f2933;
    --ink-2: #4b5563;
    --ink-3: #6b7280;
    --line: #e5e7eb;
    --bg: #f6f8fb;
    --card: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
    --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

/* Layout container */
.wrapper { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== Top bar ===== */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--brand);
    height: 56px;
    display: flex; align-items: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}
.topbar .wrapper { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    display: flex; align-items: center;
    height: 32px;
    color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .3px;
}
.topbar-spacer { flex: 1; }

/* Topbar search — small pill form, submits to Google CSE results page */
.topbar-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 360px;
    height: 36px;
    margin: 0 12px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.18);
    border-radius: 18px;
    transition: background .2s;
}
.topbar-search:focus-within { background: rgba(255,255,255,.28); }
.topbar-search-icon {
    width: 18px; height: 18px;
    margin: 0 6px 0 12px;
    fill: rgba(255,255,255,.85);
    flex-shrink: 0;
}
.topbar-search-input {
    flex: 1; min-width: 0;
    height: 100%;
    background: transparent;
    border: 0; outline: 0;
    color: #fff;
    font-size: 14px;
    padding: 0 14px 0 4px;
    font-family: inherit;
}
.topbar-search-input::placeholder { color: rgba(255,255,255,.7); }
.topbar-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Mobile: single-row header — logo + search + home icon all on one line */
@media (max-width: 599px) {
    .topbar { height: 52px; padding: 0; }
    .topbar .wrapper { gap: 8px; padding: 0 12px; flex-wrap: nowrap; }
    .brand-logo { font-size: 16px; letter-spacing: 0; flex-shrink: 0; }
    .topbar-search {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        margin: 0;
        height: 34px;
    }
    .topbar-search-input { font-size: 13px; }
    .topbar-search-input::placeholder { font-size: 13px; }
    .topbar-search-icon { width: 16px; height: 16px; margin: 0 4px 0 10px; }
    .topbar-action { width: 32px; height: 32px; flex-shrink: 0; }
    .topbar-action svg { width: 18px; height: 18px; }
}
.topbar-action {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background .2s;
}
.topbar-action:hover { background: rgba(255,255,255,.18); }
.topbar-action svg { width: 20px; height: 20px; fill: #fff; }

/* ===== Page content shell ===== */
.page { padding: 16px 0 24px; }
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

/* ===== Section headings (popsilla-style title with action link) ===== */
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin: 24px 16px 12px;
}
.section-head h2 {
    font-size: 18px; font-weight: 700; color: var(--ink);
    position: relative; padding-left: 12px;
}
.section-head h2::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 18px; border-radius: 2px; background: var(--brand);
}
.section-head .more { font-size: 13px; color: var(--brand); font-weight: 500; }
.card-section { background: var(--card); border-radius: var(--radius-md);
    padding: 14px 16px 18px; box-shadow: var(--shadow-sm); margin: 0 8px 16px; }
.card-section .section-head { margin: 0 0 14px; }
.card-section .app-grid { padding: 0; }

/* ===== Featured hero (popsilla appbox-inspired) ===== */
.featured {
    display: block;
    position: relative;
    margin: 0 8px 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;           /* mobile: stacked layout needs taller box */
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.featured-bg {
    position: absolute;
    top: -16px; right: -16px; bottom: -16px; left: -16px;
    z-index: 0;
    overflow: hidden;
}
.featured-bg img {
    width: 100%; height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    -webkit-filter: blur(12px);
    filter: blur(12px);
    will-change: filter;
    display: block;
}
.featured-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15,23,42,.35) 0%, rgba(15,23,42,.55) 55%, rgba(15,23,42,.75) 100%);
}
.featured-inner {
    position: relative; z-index: 2;
    padding: 24px 20px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 12px;
}
.featured-icon {
    width: 84px; height: 84px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    background: #fff;
}
.featured-icon img { width: 100%; height: 100%; object-fit: cover; }
.featured-title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.featured-meta { font-size: 13px; opacity: .9; }
.featured-cta {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 32px; min-width: 200px;
    border-radius: 22px;
    background: var(--cta); color: #fff;
    font-size: 15px; font-weight: 600;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
    transition: background .2s, transform .15s;
}
.featured-cta:hover { background: var(--cta-dark); transform: translateY(-1px); }
.featured-cta svg { width: 18px; height: 18px; margin-left: 8px; fill: #fff; }

/* ===== App grid (game/app cards) ===== */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
    padding: 0 16px;
}
.app-grid .tile {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    transition: transform .2s;
}
.app-grid .tile:hover { transform: translateY(-2px); }
.app-grid .tile-icon {
    width: 100%; aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: var(--shadow-sm);
}
.app-grid .tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-grid .tile-name {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.3;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-grid .tile-cate { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ===== Horizontal scroller list ===== */
.app-row {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-behavior: smooth;
    padding: 4px 16px 12px;
    scrollbar-width: none;
}
.app-row::-webkit-scrollbar { display: none; }
.app-row .tile { flex: 0 0 96px; }

/* ===== List item (icon + info row) ===== */
.app-list { padding: 0; }
.app-list .row {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    transition: background .2s;
}
.app-list .row:hover { background: var(--brand-soft); }
.app-list .row + .row { border-top: 1px solid var(--line); }
.app-list .row:hover + .row, .app-list .row:hover { border-top-color: transparent; }
.app-list .row-icon {
    flex: 0 0 48px; width: 48px; height: 48px;
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
    background: #f1f5f9;
}
.app-list .row-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-list .row-arrow {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    padding: 7px;
    box-sizing: border-box;
    transition: background .2s, color .2s;
}
.app-list .row-arrow svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.app-list .row:hover .row-arrow { background: var(--brand); color: #fff; }

/* Outlined "Download" pill (related-apps list, popsilla style) */
.app-list .row-download {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px;
    padding: 0 18px;
    border: 1.5px solid var(--brand);
    border-radius: 17px;
    color: var(--brand);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.app-list .row:hover .row-download { background: var(--brand); color: #fff; }

/* Related apps section gets a bit more vertical space per row */
.related-list .row { padding: 10px 12px; gap: 12px; }
.related-list .row-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; }
.related-list .row-meta { font-size: 13px; gap: 4px; }
.related-list .row + .row { border-top: 1px solid var(--line); }

/* Sidebar list — popsilla 3-line layout: name / category / rating */
.sidebar-list .row {
    padding: 12px 10px;
    gap: 12px;
    align-items: center;
}
.sidebar-list .row-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; }
.sidebar-list .row-info { gap: 2px; }
.sidebar-list .row-info h3 {
    font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25;
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.sidebar-list .row-cate {
    font-size: 12px; color: var(--ink-3);
    margin-top: 4px;
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.sidebar-list .row-rating {
    display: flex; align-items: center; gap: 4px;
    margin-top: 6px;
    font-size: 13px; color: var(--ink-2); font-weight: 600;
}
.sidebar-list .row-rating .star { width: 14px; height: 14px; fill: var(--star); flex-shrink: 0; }
.sidebar-list .row + .row { border-top: 1px solid var(--line); }

/* Search results — popsilla-style flat list */
.search-summary {
    font-size: 13px; color: var(--ink-3);
    margin: 4px 8px 16px;
}
.search-summary em { color: var(--ink); font-style: normal; font-weight: 600; }

.result-list {
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 0 8px 16px;
    padding: 4px 0;
}
.result-item {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.result-item:last-child { border-bottom: 0; }

.result-bread {
    display: flex; align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px; color: var(--ink-2);
    margin-bottom: 6px;
}
.result-bread-tag { font-weight: 700; color: var(--ink); }
.result-bread-sep { color: var(--ink-3); }
.result-bread-url {
    color: var(--ink-2);
    text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 100%;
}
.result-bread-dd { font-size: 9px; color: var(--ink-3); }

.result-title {
    display: block;
    font-size: 20px; font-weight: 600;
    color: var(--brand);
    line-height: 1.3;
    margin-bottom: 6px;
    text-decoration: none;
}
.result-title:hover .result-title-name { text-decoration: underline; }
.result-title-suffix { color: var(--brand); font-weight: 400; }

.result-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 599px) {
    .result-item { padding: 14px 14px; }
    .result-title { font-size: 17px; }
    .result-desc { font-size: 13px; }
}

/* Disclaimer card (popsilla-style soft blue with left accent) */
.disclaimer-card {
    margin: 0 8px 16px;
    padding: 16px 18px;
    background: #eef4ff;
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink-2);
}
.disclaimer-card .disclaimer-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
    font-size: 15px; font-weight: 700;
    color: var(--brand);
}
.disclaimer-card .disclaimer-head svg { width: 18px; height: 18px; fill: var(--brand); flex-shrink: 0; }
.disclaimer-card strong { color: var(--ink); }
.disclaimer-card span { display: block; margin-top: 4px; }
.app-list .row-info { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.app-list .row-info h3 {
    font-size: 14px; font-weight: 600; color: var(--ink);
    white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.app-list .row-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--ink-3); margin-top: 4px;
    min-width: 0; white-space: nowrap; overflow: hidden;
}
.app-list .row-meta > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-list .row-meta .cate { flex: 1 1 auto; }
.app-list .row-meta .star {
    width: 12px; height: 12px; fill: var(--star); flex-shrink: 0;
}

/* ===== Detail page hero ===== */
.detail-hero {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    margin: 0 8px 16px;
    box-shadow: var(--shadow-sm);
}
.hero-top { display: flex; gap: 16px; align-items: flex-start; }
.hero-icon {
    flex: 0 0 88px; width: 88px; height: 88px;
    border-radius: 22px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(15,23,42,.12);
    background: #f1f5f9;
}
.hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.hero-info { flex: 1; min-width: 0; padding-top: 4px; }
.hero-title { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.hero-dev { font-size: 13px; color: var(--brand); margin-top: 4px; }
.hero-dev a { color: inherit; text-decoration: none; }
.hero-dev a:hover { text-decoration: underline; }
.hero-rating { display: flex; align-items: center; gap: 4px; margin-top: 6px;
    font-size: 13px; color: var(--ink-3); }
.hero-rating .stars { display: inline-flex; gap: 2px; }
.hero-rating .stars svg { width: 14px; height: 14px; fill: var(--star); }

/* fact strip under hero icon row — 2×2 on mobile, 4×1 from 600px up */
.fact-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.fact-strip .fact {
    text-align: center; padding: 4px 6px;
    border-right: 1px solid var(--line);
    min-width: 0;  /* allow ellipsis inside grid track */
}
.fact-strip .fact:nth-child(2n) { border-right: 0; }
.fact-strip .fact-label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; }
.fact-strip .fact-value { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 600px) {
    .fact-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; }
    .fact-strip .fact { border-right: 1px solid var(--line); }
    .fact-strip .fact:last-child { border-right: 0; }
}

/* primary install button */
.cta-row { display: grid; gap: 10px; margin-top: 16px; }
.btn-install {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 24px;
    border-radius: 24px;
    background: var(--cta); color: #fff;
    font-size: 16px; font-weight: 700;
    box-shadow: 0 6px 16px rgba(22,163,74,.32);
    transition: background .2s, transform .15s;
}
.btn-install:hover { background: var(--cta-dark); transform: translateY(-1px); }
.btn-install svg { width: 20px; height: 20px; margin-left: 8px; fill: #fff; }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 14px; font-weight: 500;
}
.btn-store {
    display: flex; align-items: center; gap: 14px;
    height: 64px; padding: 0 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--ink);
    background: #111827;
    color: #fff;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-store:hover { background: #000; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.btn-store .store-icon { width: 32px; height: 32px; flex-shrink: 0; }
.btn-store .store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store .store-pre { font-size: 11px; color: #cbd5e1; text-transform: uppercase; letter-spacing: .4px; }
.btn-store .store-name { font-size: 17px; font-weight: 700; margin-top: 2px; }
.btn-store.gp { background: #111827; }
.btn-store.apple { background: #1f2937; }
.btn-store.disabled { opacity: .55; pointer-events: none; }

/* ===== Section content card ===== */
.detail-card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 0 8px 16px;
    box-shadow: var(--shadow-sm);
}
.detail-card h2 {
    font-size: 17px; font-weight: 700; color: var(--ink);
    margin-bottom: 12px; padding-left: 12px;
    position: relative;
}
.detail-card h2::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 16px; border-radius: 2px; background: var(--brand);
}
.entry { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.entry h3, .entry h4 { font-size: 15px; color: var(--ink); margin: 14px 0 6px; font-weight: 600; }
.entry p { margin: 8px 0; }
.entry ul { margin: 8px 0 8px 18px; }
.entry ul li { list-style: disc; margin: 4px 0; }
.entry a { color: var(--brand); }

/* expandable description */
.expandable { position: relative; max-height: 220px; overflow: hidden; }
.expandable.expanded { max-height: none; }
.expandable .fade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 70%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 6px;
}
.expandable.expanded .fade { display: none; }
.expandable .toggle {
    color: var(--brand); font-size: 13px; font-weight: 600;
    padding: 4px 14px; border-radius: 14px;
    background: var(--brand-soft);
}

/* ===== Screenshots scroller ===== */
.shots {
    display: flex; gap: 10px;
    overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot {
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}
.shot img { height: 240px; width: auto; object-fit: cover; display: block; }

/* ===== Ad slot wrapper — minimal (no card frame) ===== */
.ad-slot { margin: 16px 8px; }
.ad-slot .ad-label {
    font-size: 11px; color: var(--ink-3);
    text-transform: uppercase; letter-spacing: .8px;
    margin-bottom: 6px; padding-left: 4px;
}
.ad-slot .ad-frame { overflow: hidden; }
.ad-slot .ad-frame .adsbygoogle { width: 100%; display: block; }

/* CTA-style fixed-dimension slot (popsilla pattern) —
   strict 100% × 250/280px favours large HTML5 "Download" creatives. */
.ad-slot.ad-cta .adsbygoogle.ad-cta-slot {
    display: inline-block;
    width: 100%;
    height: 250px;
}
@media (min-width: 336px) {
    .ad-slot.ad-cta .adsbygoogle.ad-cta-slot { height: 280px; }
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 32px;
    background: #0f172a;
    color: #cbd5e1;
    padding: 24px 0 80px;
    font-size: 13px;
}
.site-footer .wrapper { display: flex; flex-direction: column; gap: 16px; }
.disclaimer {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    line-height: 1.6;
}
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: #cbd5e1; }
.foot-links a:hover { color: #fff; }
.copy { color: #64748b; font-size: 12px; }

/* ===== Bottom mobile nav (popsilla-inspired touch dock) ===== */
.dock {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex; height: 60px;
    padding: 6px 0 8px;
    box-shadow: 0 -2px 10px rgba(15,23,42,.08);
}
.dock a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    color: var(--ink-3); font-size: 11px;
}
.dock a svg { width: 20px; height: 20px; fill: currentColor; }
.dock a.active { color: var(--brand); }

/* ===== Loading placeholder for lazy images ===== */
img.lazy { background: #f1f5f9; }

/* ===== Overlay shared with v2 ===== */
.overlay { display: none; }

/* ===== Sidebar — stacked under main-col on mobile, right rail on desktop ===== */
.sidebar { display: block; margin-top: 16px; }

/* ===== Singlepage (terms / privacy) ===== */
.singlepage {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 24px 18px;
    margin: 0 8px;
    box-shadow: var(--shadow-sm);
}
.singlepage h1 { font-size: 22px; margin-bottom: 14px; color: var(--ink); }
.singlepage .entry { color: var(--ink-2); line-height: 1.8; }

/* ===== Responsive ===== */
@media (min-width: 600px) {
    .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .topbar { height: 64px; }
    .brand-logo { font-size: 20px; }
    .brand-logo img { height: 32px; }
    .featured { height: 220px; }
    .featured-inner { padding: 36px 28px; flex-direction: row; align-items: center; text-align: left; }
    .featured-icon { width: 96px; height: 96px; flex-shrink: 0; }
    .featured-text { flex: 1; }
    .featured-cta { align-self: center; }
    .app-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 12px; }
    .hero-icon { flex: 0 0 112px; width: 112px; height: 112px; }
    .hero-title { font-size: 26px; }
    .cta-row { grid-template-columns: 1fr 1fr; }
    .dock { display: none; }
    .site-footer { padding-bottom: 24px; }
}
@media (min-width: 1024px) {
    .app-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
        align-items: flex-start;
    }
    .sidebar { margin-top: 0; position: sticky; top: 80px; }
    .sidebar .ad-slot, .sidebar .detail-card { margin-left: 0; margin-right: 0; }
    .featured, .detail-hero, .detail-card, .ad-slot, .card-section { margin-left: 0; margin-right: 0; }
    .app-grid, .app-row { padding-left: 0; padding-right: 0; }
    .section-head { margin-left: 0; margin-right: 0; }
}
@media (min-width: 1200px) {
    .app-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* utility */
.show-md { display: none; }
@media (min-width: 768px) {
    .show-md { display: block; }
    .hide-md { display: none; }
}
