/* =============================================================================
   Light “native feed” UI — card layout, Google-style in-feed ad frames
   ============================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #eef1f6;
    --surface: #ffffff;
    --surface-2: #fafafa;
    --border: #dadce0;
    --border-light: #e8eaed;
    --text: #202124;
    --text-sec: #5f6368;
    --link: #1a73e8;
    --link-hover: #1557b0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(60, 64, 67, 0.08), 0 1px 3px rgba(60, 64, 67, 0.06);
    --shadow-hover: 0 2px 8px rgba(60, 64, 67, 0.12);
    --max: 680px;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--link);
}

a:hover {
    color: var(--link-hover);
}

body.public-page.light-feed {
    min-height: 100vh;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.public-page.has-sticky-ad {
    padding-bottom: 100px;
}

.native-shell {
    width: 100%;
    min-height: 100vh;
    padding: 20px 16px 40px;
}

.native-page {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ----- Page intro (home) — not a fixed header ----- */
.page-intro {
    text-align: center;
    padding: 8px 0 8px;
}

.page-intro__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.page-intro__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.page-intro__lead {
    font-size: 0.95rem;
    color: var(--text-sec);
    max-width: 36em;
    margin: 0 auto 16px;
}

.page-intro__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.pill-btn:hover {
    text-decoration: none;
}

.pill-btn--filled {
    background: var(--link);
    color: #fff;
    border-color: var(--link);
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.25);
}

.pill-btn--filled:hover {
    background: var(--link-hover);
    border-color: var(--link-hover);
    color: #fff;
}

.pill-btn--line {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.pill-btn--line:hover {
    background: var(--surface-2);
    border-color: #bdc1c6;
    color: var(--text);
}

.pill-btn--play {
    background: #34a853;
    color: #fff;
    border-color: #34a853;
    font-weight: 600;
    padding: 12px 28px;
    margin-top: 4px;
}

.pill-btn--play:hover {
    background: #2d8f47;
    border-color: #2d8f47;
    color: #fff;
}

.center-actions {
    text-align: center;
    margin: 4px 0;
}

/* ----- Content cards (feed blocks) ----- */
.content-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 16px 18px;
}

.content-card--prose {
    padding-top: 18px;
}

.section-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.section-label__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.section-label__sub {
    font-size: 0.8rem;
    color: var(--text-sec);
}

.section-label__link {
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.section-label__link:hover {
    text-decoration: underline;
}

/* ----- Breadcrumb ----- */
.crumb {
    font-size: 0.8125rem;
    color: var(--text-sec);
    padding: 0 2px;
}

.crumb a {
    color: var(--text-sec);
    text-decoration: none;
}

.crumb a:hover {
    color: var(--link);
    text-decoration: underline;
}

.crumb__sep {
    margin: 0 6px;
    color: #bdc1c6;
}

.crumb__here {
    color: var(--text);
    font-weight: 500;
}

/* ----- Category chips ----- */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s;
    width: 48%;
}

.cat-chip:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--text);
}

.cat-chip__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-light);
    display: grid;
    place-items: center;
}

.cat-chip__icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ----- Game tiles (app-card style) -----
   Mobile: always 2 columns for denser grid / higher tap area exposure */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (min-width: 600px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 12px;
    }
}

.game-tile {
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.15s;
}

.game-tile:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.game-tile__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.game-tile__link:hover {
    color: inherit;
    text-decoration: none;
}

.game-tile__thumb {
    aspect-ratio: 1;
    background: #eceff1;
    overflow: hidden;
}

.game-tile__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-tile__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-tile__title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-tile__cta {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--link);
}

.game-tile__play-icon {
    font-size: 0.6rem;
    margin-right: 2px;
}

/* ----- Single game: Google-style native unit (play-card) ----- */
.content-card.play-card.native-play-unit {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 2px 6px rgba(60, 64, 67, 0.06);
    background: var(--surface-2);
}

.native-play-unit__chrome {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.native-play-unit__eyebrow {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: #e8f0fe;
    color: #1967d2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.native-play-unit__inner {
    padding: 16px;
    background: #fff;
}

.play-card__grid {
    display: grid;
    gap: 16px;
    align-items: start;
}

@media (min-width: 520px) {
    .play-card__grid {
        grid-template-columns: 88px 1fr;
        gap: 18px;
        align-items: center;
    }
}

.play-card__thumb {
    width: 88px;
    height: 88px;
    max-width: none;
    margin: 0 auto;
    border-radius: 20%;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #eceff1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

@media (min-width: 520px) {
    .play-card__thumb {
        margin: 0;
    }
}

.play-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-card__title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.35;
    color: var(--text);
    letter-spacing: -0.01em;
}

.play-card__desc {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-sec);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.native-play-unit__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 24px;
    width: 100%;
   
    border-radius: 20px;
    background: #1a73e8;
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #1557b0;
    box-shadow: 0 1px 2px rgba(26, 115, 232, 0.25);
    transition: background 0.15s, box-shadow 0.15s;
}

.native-play-unit__cta:hover {
    background: #1557b0;
    border-color: #124a99;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.35);
}

@media (min-width: 520px) {
    .native-play-unit__cta {
        width: auto;
        min-width: 120px;
    }
}

.cat-banner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cat-banner__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.cat-banner__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cat-banner__title {
    font-size: 1.2rem;
    font-weight: 700;
}

.cat-banner__desc {
    font-size: 0.875rem;
    color: var(--text-sec);
    margin-top: 4px;
}

/* ----- Prose ----- */
.prose {
    font-size: 0.9rem;
    color: var(--text-sec);
    line-height: 1.65;
}

.prose p {
    margin-bottom: 12px;
}

.content-card h1.section-label__title,
.privacy-doc h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.privacy-doc__body {
    white-space: pre-line;
    font-size: 0.875rem;
    color: var(--text-sec);
    line-height: 1.65;
}

/* ----- Native-style ad cards (in-feed / banner look) ----- */
.native-ad-card {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.ad-slot__chrome {
    display: flex;
    align-items: center;
    padding: 0 4px 6px;
}

.ad-slot__label {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    background: #e8f0fe;
    color: #1967d2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ad-slot__frame {
   /* background: var(--surface-2); */
   /* border: 1px solid var(--border); */
    border-radius: var(--radius-sm);
    padding: 12px;
   /* min-height: 90px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.ad-slot__frame ins.adsbygoogle {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ad-slot--leaderboard .ad-slot__frame {
   /* min-height: 100px;*/
}

.ad-slot--rectangle {
    max-width: 360px;
}

.ad-slot--rectangle .ad-slot__frame {
   /* min-height: 250px;*/
}

/* ----- Sticky / popup ads (light) ----- */
.native-ad-float.ad-float {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(60, 64, 67, 0.12);
}

.ad-float {
    position: fixed;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(728px, calc(100vw - 24px));
    width: calc(100vw - 24px);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
}

.ad-float--sticky {
    bottom: 0;
}

.ad-float--popup {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    border-radius: var(--radius);
    max-width: min(400px, calc(100vw - 24px));
    box-shadow: 0 8px 32px rgba(60, 64, 67, 0.18);
}

.ad-float__chrome {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-2);
}

.ad-float__frame {
    padding: 10px 12px 14px;
    text-align: center;
    max-height: 50vh;
    overflow: auto;
}

.ad-float__frame ins.adsbygoogle {
    display: block !important;
    margin: 0 auto !important;
}
