﻿/* Esports Template – Retro Gaming Console Theme */
:root {
    --primary: #1e88e5;
    --secondary: #8e24aa;
    --accent: #fdd835;
    --neutral: #757575;
    --bg: #1a237e;
    --text: #e3f2fd;
    --surface: #283593;
    --surface2: #303f9f;
    --border: #455a64;
    --glow: var(--accent);
    --btn-red: #e53935;
    --btn-blue: #1e88e5;
    --btn-green: #43a047;
    --btn-yellow: #fdd835;
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius-card: 10px;
    --radius-button: 7px;
    --section-padding: 60px;
    --container-width: 1200px;
    --card-shadow: 0 0 28px color-mix(in srgb, var(--primary) 28%, transparent);
    --hero-height: 560px;
    --bg-treatment: layered;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { width: 100%; min-height: 100%; }

body {
    display: block !important;
    width: 100% !important;
    min-height: 100%;
    font-family: var(--font-family);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

.bi {
    display: inline-block;
    font-style: normal;
    font-weight: inherit;
    line-height: 1;
}
.bi::before { content: "•"; }
.bi-download::before { content: "↓"; }
.bi-star-fill::before { content: "★"; }
.bi-star-half::before { content: "★"; }
.bi-star::before { content: "☆"; }
.bi-person-check::before { content: "✓"; }
.bi-share::before { content: "↗"; }
.bi-bookmark::before { content: "▯"; }
.bi-chevron-right::before { content: "›"; }
.bi-question-circle::before { content: "?"; }
.bi-envelope::before { content: "@"; }
.bi-geo-alt::before { content: "⌖"; }
.bi-telephone::before { content: "☎"; }
.bi-info-circle::before { content: "i"; }
.bi-phone::before { content: "▯"; }
.bi-dice-5::before { content: "⚄"; }
.bi-rocket-takeoff::before { content: "↑"; }
.bi-shield-lock::before,
.bi-shield-check::before { content: "✓"; }
.bi-lightning-charge::before { content: "⚡"; }
.bi-lightbulb::before { content: "!"; }
.bi-bullseye::before { content: "◎"; }
.bi-trophy::before { content: "▲"; }
.bi-stars::before { content: "✦"; }
.bi-heart::before { content: "♥"; }
.bi-gem::before { content: "◆"; }
.bi-fire::before { content: "▲"; }
.bi-controller::before { content: "▣"; }
.bi-palette::before { content: "◐"; }
.bi-wrench-adjustable::before,
.bi-tools::before { content: "⚙"; }
.bi-gear::before { content: "⚙"; }
.bi-laptop::before,
.bi-display::before { content: "▭"; }
.bi-globe::before { content: "○"; }
.bi-graph-up-arrow::before,
.bi-bar-chart-line::before,
.bi-graph-down::before { content: "↗"; }
.bi-search::before { content: "⌕"; }
.bi-people::before,
.bi-person::before { content: "●"; }
.bi-chat-dots::before { content: "..."; }
.bi-pencil-square::before { content: "✎"; }
.bi-box-seam::before { content: "□"; }
.bi-music-note-beamed::before { content: "♪"; }
.bi-camera::before,
.bi-camera-reels::before { content: "◉"; }
.bi-bell::before { content: "!"; }
.bi-stopwatch::before,
.bi-clock::before,
.bi-alarm::before { content: "◷"; }
.bi-broadcast::before { content: "◌"; }
.bi-link-45deg::before { content: "↔"; }
.bi-cloud::before { content: "☁"; }
.bi-currency-dollar::before { content: "$"; }
.bi-house::before { content: "⌂"; }
.bi-check-circle::before { content: "✓"; }
.bi-x-circle::before { content: "×"; }
.bi-exclamation-triangle::before { content: "!"; }
.bi-gift::before { content: "□"; }
.bi-puzzle::before { content: "▣"; }
.bi-key::before { content: "⚿"; }
.bi-book::before { content: "▤"; }
.bi-folder::before { content: "▰"; }
.bi-clipboard-check::before { content: "☑"; }
.bi-robot::before { content: "▣"; }
.bi-cpu::before { content: "▦"; }
.bi-hand-thumbs-up::before { content: "👍"; }
.bi-rainbow::before { content: "⌒"; }
.bi-emoji-smile::before { content: "☺"; }
.bi-eye::before { content: "◉"; }
.bi-volume-up::before { content: "◁"; }
.bi-tv::before { content: "▭"; }
.bi-airplane::before { content: "✈"; }
.bi-car-front::before { content: "▰"; }
.bi-person-walking::before { content: "↗"; }

body.bg-radial {
    background:
        radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 28%),
        radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--secondary) 16%, transparent), transparent 30%),
        var(--bg);
}
body.bg-grid {
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        var(--bg);
    background-size: 36px 36px;
}
body.bg-layered {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface2) 45%, transparent), transparent 38%),
        linear-gradient(315deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 42%),
        var(--bg);
}

/* Header / Nav – dark console shell */
.site-header {
    background: linear-gradient(180deg, var(--surface2), var(--bg));
    border-bottom: 3px solid var(--btn-red);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(230,0,18,.15);
}
body.nav-floating .site-header {
    width: min(calc(100% - 0px), var(--container-width));
    margin: 0px auto 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}
body.nav-compact .main-nav .container { padding-top: 7px; padding-bottom: 7px; }
body.nav-compact .logo { font-size: 1.15rem; letter-spacing: 1px; }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo {
    color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 900;
    letter-spacing: 2px; text-transform: uppercase;
    display: flex; flex: 0 1 360px; width: min(360px, 28vw); max-width: 360px;
    align-items: center; gap: 10px; min-width: 0;
    text-shadow: 0 0 6px rgba(230,0,18,.4);
}
.logo-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-img { flex: 0 0 auto; height: 40px; width: auto; max-width: 120px; object-fit: contain; border-radius: 8px; border: 2px solid var(--btn-red); box-shadow: 0 0 8px rgba(230,0,18,.3); }
.logo-placeholder {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px; height: 36px; border-radius: 8px;
    background: var(--surface2); border: 2px solid var(--border);
    font-size: 1.1rem; font-weight: 900; color: var(--accent);
}
.nav-links { list-style: none; display: flex; flex: 0 1 auto; gap: 22px; min-width: 0; }
.nav-links a {
    color: rgba(232,232,232,.65); text-decoration: none; font-size: .9rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--btn-yellow); border-bottom-color: var(--btn-yellow); }

/* Nav auth buttons */
.nav-auth { display: flex; flex: 0 0 auto; gap: 10px; align-items: center; }
.btn-auth {
    text-decoration: none; font-size: .85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    padding: 6px 16px; border-radius: var(--radius-button); transition: all .2s;
}
.btn-login {
    color: var(--btn-yellow); border: 2px solid var(--btn-yellow);
    background: transparent;
}
.btn-login:hover, .btn-login.active { background: var(--btn-yellow); color: var(--bg); }
.btn-register {
    color: #fff; background: var(--btn-red); border: 2px solid var(--btn-red);
}
.btn-register:hover, .btn-register.active { background: var(--primary); border-color: var(--primary); }

/* Hero Carousel */
.hero-carousel {
    position: relative; width: 100%; aspect-ratio: 16/9;
    height: var(--hero-height); max-height: var(--hero-height); overflow: hidden;
}
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity .8s ease;
}
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide-media {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.5) 100%);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 14px;
}
.hero-panel {
    width: min(560px, calc(100vw - 40px));
    padding: 34px;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--bg) 76%, transparent);
    box-shadow: var(--card-shadow);
}
.hero-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; max-width: min(100% - 32px, 360px);
    margin-top: 18px; padding: 10px 20px;
    border-radius: var(--radius-button); text-decoration: none;
    background: var(--accent); color: var(--bg); font-weight: 800;
    line-height: 1.25; text-align: center; overflow-wrap: anywhere;
    transition: transform .18s, box-shadow .18s, background .18s;
}
.hero-cta:hover { box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.hero-cta:active { transform: translateY(1px); }
body.hero-compact-banner .hero-carousel {
    aspect-ratio: auto;
    height: var(--hero-height);
}
body.hero-compact-banner .hero-carousel.hero-no-media {
    height: clamp(240px, 32vw, 280px);
    max-height: 280px;
}
body.hero-compact-banner .hero-overlay h1 { font-size: 2.35rem; }
body.hero-compact-banner .carousel-btn,
body.hero-compact-banner .carousel-dots { display: none; }
.hero-overlay h1 {
    max-width: min(920px, calc(100% - 32px));
    color: #fff; font-size: 3.2rem; text-align: center;
    text-transform: uppercase; letter-spacing: 4px; font-weight: 900;
    line-height: 1.08; overflow-wrap: anywhere;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hero-tagline {
    color: var(--accent); font-size: 1rem; text-transform: uppercase;
    letter-spacing: 5px; font-weight: 700;
}
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2; background: rgba(0,0,0,.4); color: #fff;
    border: none; font-size: 1.8rem; padding: 12px 16px;
    cursor: pointer; border-radius: 4px; transition: background .2s;
}
.carousel-btn:hover { background: rgba(0,0,0,.7); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; gap: 10px;
}
.carousel-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,.35); cursor: pointer;
    border: 0; padding: 0; appearance: none;
    transition: background .2s;
}
.carousel-dot.active { background: var(--accent); }
.carousel-dot:focus-visible,
.carousel-btn:focus-visible,
.hero-cta:focus-visible,
.gp-install-btn:focus-visible,
.gp-action-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 72%, #fff);
    outline-offset: 3px;
}

/* Placeholder for missing images */
.img-placeholder {
    background: linear-gradient(135deg, var(--surface2), var(--border));
    display: flex; align-items: center; justify-content: center;
    color: var(--neutral); font-size: .85rem; letter-spacing: 1px;
    text-transform: uppercase; position: relative; overflow: hidden;
}
.img-placeholder::after {
    content: 'IMG'; font-size: .86rem; opacity: .42; font-weight: 800;
}

/* Ad banners */
.ad-banner {
    width: 100%; overflow: hidden;
    background: var(--surface2);
}
.ad-banner a { display: block; }
.ad-banner img {
    width: 100%; height: auto; display: block;
    transition: opacity .2s;
}
.ad-banner img:hover { opacity: .9; }

/* Content blocks */
.content-block { padding: var(--section-padding) 0; }
.content-block:nth-child(even) { background: var(--surface2); }
.content-block h2 {
    font-size: 1.8rem; margin-bottom: 24px; color: #fff;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 800;
    position: relative; padding-bottom: 14px;
}
.content-block h2::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 50px; height: 4px; background: var(--btn-red); border-radius: var(--radius-button);
}
body.heading-underline .content-block h2::after,
body.heading-underline .sections-overview h2::after { width: 120px; height: 2px; }
body.heading-badge .content-block h2,
body.heading-badge .sections-overview h2 {
    display: inline-flex; padding: 6px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-button); background: var(--surface2);
}
body.heading-badge .content-block h2::after,
body.heading-badge .sections-overview h2::after { display: none; }
.content-body { font-size: 1rem; line-height: 1.8; color: rgba(232,232,232,.8); }

/* Introduction + Recent Updates layout */
.intro-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.intro-main { min-width: 0; }
.recent-updates {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 20px; position: sticky; top: 80px;
}
.recent-updates h3 {
    font-size: 1rem; color: var(--btn-yellow); text-transform: uppercase;
    letter-spacing: 1px; font-weight: 700; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 2px solid var(--btn-red);
}
.recent-updates ul { list-style: none; }
.recent-updates li {
    padding: 8px 0; border-bottom: 1px solid rgba(42,42,74,.5);
    display: flex; flex-direction: column; gap: 2px;
}
.recent-updates li:last-child { border-bottom: none; }
.recent-updates li a { color: rgba(232,232,232,.75); text-decoration: none; font-size: .88rem; line-height: 1.4; }
.recent-updates li a:hover { color: var(--btn-yellow); }
.recent-updates li time { font-size: .75rem; color: var(--neutral); }

@media (max-width: 768px) {
    .intro-layout { grid-template-columns: 1fr; }
    .recent-updates { position: static; }
}

/* Feature cards – console button colors */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 28px; text-align: center;
    transition: transform .2s, box-shadow .2s;
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--btn-red); opacity: 0; transition: opacity .2s;
}
.feature-card:nth-child(2)::before { background: var(--btn-blue); }
.feature-card:nth-child(3)::before { background: var(--btn-green); }
.feature-card:nth-child(4)::before { background: var(--btn-yellow); }
.feature-card:nth-child(5)::before { background: var(--btn-red); }
.feature-card:nth-child(6)::before { background: var(--btn-blue); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    font-size: 2.2rem; margin-bottom: 14px; width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--border);
    color: var(--accent);
}
.feature-card:nth-child(1) .feature-icon { color: var(--btn-red); }
.feature-card:nth-child(2) .feature-icon { color: var(--btn-blue); }
.feature-card:nth-child(3) .feature-icon { color: var(--btn-green); }
.feature-card:nth-child(4) .feature-icon { color: var(--btn-yellow); }
.feature-card:nth-child(5) .feature-icon { color: var(--primary); }
.feature-card:nth-child(6) .feature-icon { color: var(--secondary); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--btn-yellow); text-transform: uppercase; font-weight: 700; }
.feature-card p { font-size: .9rem; color: rgba(232,232,232,.65); line-height: 1.6; margin: 0; }

body.cards-flat .feature-card,
body.cards-flat .review-item,
body.cards-flat .section-row,
body.cards-flat .article-chip,
body.cards-flat .recent-updates {
    background: transparent;
    box-shadow: none;
}
body.cards-elevated .feature-card,
body.cards-elevated .review-item,
body.cards-elevated .section-row,
body.cards-elevated .article-chip,
body.cards-elevated .recent-updates {
    box-shadow: var(--card-shadow);
}
body.cards-bordered .feature-card,
body.cards-bordered .review-item,
body.cards-bordered .section-row,
body.cards-bordered .article-chip,
body.cards-bordered .recent-updates {
    border-width: 2px;
}
body.density-compact .features-grid { gap: 14px; }
body.density-spacious .features-grid { gap: 28px; }
body.image-cinematic .carousel-slide,
body.image-cinematic .article-grid-img,
body.image-cinematic .section-banner-img {
    filter: saturate(1.12) contrast(1.06);
}
body.image-framed .carousel-slide,
body.image-framed .article-grid-img,
body.image-framed .section-banner-img {
    outline: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
    outline-offset: -10px;
}

/* User reviews */
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.review-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 22px;
    border-left: 4px solid var(--btn-blue);
}
.review-item:nth-child(even) { border-left-color: var(--btn-red); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-author { font-weight: 700; color: var(--btn-blue); font-size: .95rem; }
.review-item:nth-child(even) .review-author { color: var(--btn-red); }
.review-stars { color: var(--btn-yellow); font-size: 1rem; letter-spacing: 1px; }
.review-text { font-size: .92rem; line-height: 1.7; color: rgba(232,232,232,.75); margin: 0; }

/* Section grid */
.sections-overview { padding: var(--section-padding) 0; background: var(--surface); }
.sections-overview h2 {
    font-size: 1.8rem; margin-bottom: 30px; color: #fff;
    text-align: center; text-transform: uppercase; letter-spacing: 2px; font-weight: 800;
}
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.section-card {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; padding: 24px;
    transition: transform .2s, border-color .2s;
}
.section-card:hover { transform: translateY(-3px); border-color: var(--btn-red); }
.section-card h3 { margin-bottom: 14px; font-size: 1.1rem; text-transform: uppercase; }
.section-card h3 a { color: var(--btn-yellow); text-decoration: none; font-weight: 700; }
.section-card h3 a:hover { text-shadow: 0 0 6px rgba(255,215,0,.3); }
.section-card ul { list-style: none; }
.section-card li { padding: 5px 0; border-bottom: 1px solid rgba(42,42,74,.6); }
.section-card li:last-child { border-bottom: none; }
.section-card li a { color: rgba(232,232,232,.65); text-decoration: none; font-size: .9rem; }
.section-card li a:hover { color: var(--btn-blue); }

/* Section banner */
.section-banner-img {
    width: 100%; aspect-ratio: 16/9; max-height: 360px;
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.section-banner-media {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.section-banner-overlay {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,.6), rgba(0,0,0,.3));
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.section-banner-overlay h1 {
    color: #fff; font-size: 2.4rem; text-transform: uppercase;
    letter-spacing: 3px; font-weight: 900;
}
.section-banner-count { color: var(--accent); font-size: .95rem; letter-spacing: 2px; }
.section-page-header { padding: 40px 0 0; }
.section-page-header h1 { font-size: 2rem; color: #fff; text-transform: uppercase; }

/* Article grid (section page) */
.section-page { padding: 40px 0; }
.article-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.article-grid-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.article-grid-card:hover { transform: translateY(-4px); border-color: var(--btn-yellow); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.article-grid-img {
    width: 100%; aspect-ratio: 16/9;
    background-size: cover; background-position: center;
    background-color: var(--surface2);
}
.article-grid-placeholder { background: linear-gradient(135deg, var(--surface2), var(--border)); }
.article-grid-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.article-grid-body h2 { font-size: 1.05rem; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.article-grid-body .summary { font-size: .85rem; color: var(--neutral); line-height: 1.5; flex: 1; margin-bottom: 8px; }
.article-grid-body time { font-size: .78rem; color: var(--neutral); }

/* Article page – two column layout */
.article-layout {
    display: grid; grid-template-columns: 1fr 280px; gap: 30px;
    padding-top: 30px; padding-bottom: 40px; align-items: start;
}
.article-layout-bottom-related,
.article-layout-minimal { grid-template-columns: 1fr; max-width: 920px; }
.article-layout-bottom-related .article-sidebar,
.article-layout-minimal .article-sidebar { display: none; }
.article-related-bottom {
    grid-column: 1 / -1;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}
.article-related-bottom h4 {
    color: var(--accent); font-size: .9rem; text-transform: uppercase; margin-bottom: 10px;
}
.article-related-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.article-related-grid a {
    color: var(--text); text-decoration: none; border: 1px solid var(--border);
    border-radius: var(--radius-button); padding: 8px 12px; background: var(--surface);
}
.article-main { min-width: 0; }
.breadcrumb { margin-bottom: 16px; font-size: .88rem; color: var(--neutral); }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.article-main h1 { font-size: 1.8rem; margin-bottom: 12px; color: #fff; line-height: 1.3; }
.article-meta-bar {
    display: flex; gap: 16px; margin-bottom: 20px; font-size: .85rem; color: var(--neutral);
}
.meta-section {
    background: var(--surface2); padding: 2px 10px; border-radius: 4px;
    font-size: .8rem; color: var(--accent);
}
.article-cover { margin-bottom: 24px; max-width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--border); }
.article-summary-box {
    background: var(--surface); border-left: 3px solid var(--accent);
    padding: 14px 18px; margin-bottom: 24px; border-radius: 0 8px 8px 0;
    font-size: .92rem; color: var(--text); line-height: 1.6;
}
.article-content { line-height: 1.8; color: rgba(232,232,232,.8); }
.article-content h2, .article-content h3 { margin: 24px 0 12px; color: var(--accent); }
.article-content p { margin-bottom: 16px; }

/* Topic recommendation pages */
.topic-page main { overflow: hidden; }
.topic-hero {
    position: relative;
    padding: 52px 0 36px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, transparent), transparent 46%),
        linear-gradient(315deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 42%),
        var(--surface2);
    border-bottom: 1px solid var(--border);
}
.topic-hero-inner { max-width: 940px; }
.topic-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
    color: var(--accent);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.topic-hero h1 {
    max-width: 780px;
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}
.topic-summary {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--neutral);
    font-size: 1rem;
    line-height: 1.7;
}
.topic-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: var(--radius-button);
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: var(--card-shadow);
}
.topic-layout { padding-top: 34px; }
.topic-cover {
    margin-bottom: 22px;
    max-width: 100%;
    aspect-ratio: 21/9;
    overflow: hidden;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: var(--surface);
}
.topic-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topic-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    color: var(--accent);
    font-size: 3rem;
    font-weight: 900;
}
.topic-lede {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    color: var(--text);
    line-height: 1.7;
    font-weight: 600;
}
.topic-guide-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.topic-guide-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--surface2) 70%, transparent));
}
.topic-guide-card span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 900;
}
.topic-guide-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: .95rem;
}
.topic-guide-card p {
    margin: 0;
    color: var(--neutral);
    font-size: .86rem;
    line-height: 1.6;
}
.topic-toc {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--surface2) 78%, transparent);
}
.topic-toc span {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 900;
}
.topic-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.topic-toc li {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
    color: var(--text);
    background: var(--surface);
    font-size: .84rem;
}
.topic-content {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.topic-content h2,
.topic-content h3 {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--accent);
    font-size: 1.25rem;
}
.topic-content h2:first-child,
.topic-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.topic-content ul,
.topic-content ol {
    margin: 0 0 18px 20px;
    padding-left: 12px;
}
.topic-content li {
    margin-bottom: 8px;
    color: rgba(232,232,232,.82);
    line-height: 1.75;
}
.topic-content p {
    color: rgba(232,232,232,.84);
}
.topic-sidebar-note p {
    margin-bottom: 14px;
    color: var(--neutral);
    font-size: .88rem;
    line-height: 1.6;
}
.topic-sidebar-note a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: var(--radius-button);
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    font-size: .86rem;
}

/* Article comments */
.article-comments {
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.article-comments h3 {
    font-size: 1.1rem; color: #fff; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: .5px;
}
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
    display: flex; gap: 12px; padding: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px;
}
.comment-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--surface2); display: flex; align-items: center;
    justify-content: center; font-weight: 700; color: var(--accent);
    font-size: .9rem; border: 1px solid var(--border);
}
.comment-body { flex: 1; }
.comment-author { font-size: .85rem; font-weight: 600; color: var(--secondary); display: block; margin-bottom: 4px; }
.comment-text { font-size: .88rem; color: rgba(232,232,232,.75); line-height: 1.5; margin: 0; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 70px; }
.sidebar-section {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 18px; margin-bottom: 20px;
}
.sidebar-section h4 {
    font-size: .95rem; color: var(--accent); text-transform: uppercase;
    letter-spacing: .5px; margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.sidebar-section ul { list-style: none; }
.sidebar-section li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar-section li:last-child { border-bottom: none; }
.sidebar-section li a {
    color: rgba(232,232,232,.7); text-decoration: none; font-size: .85rem;
    line-height: 1.4; display: block;
}
.sidebar-section li a:hover { color: var(--accent); }
.sidebar-section li a.current { color: var(--accent); font-weight: 600; }

/* Footer page */
.footer-page-content { padding: 40px 0; }
.footer-page-content h1 { font-size: 2rem; margin-bottom: 20px; color: #fff; text-transform: uppercase; }
.page-cover { margin-bottom: 24px; }
.page-cover img { width: 100%; height: auto; border-radius: 10px; display: block; border: 2px solid var(--border); }

/* Site footer – redesigned unified footer */
.site-footer {
    background: var(--surface2);
    color: rgba(232,232,232,.6);
    border-top: 3px solid var(--btn-red);
}

/* Subscribe Banner */
.footer-subscribe-banner {
    background: linear-gradient(135deg, var(--surface), var(--bg));
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
}
.subscribe-banner-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.subscribe-info h3 {
    color: var(--text); font-size: 1.2rem; margin-bottom: 4px; font-weight: 700;
}
.subscribe-info p { color: rgba(232,232,232,.5); font-size: .9rem; margin: 0; }
.subscribe-form { display: flex; gap: 0; min-width: 320px; }
.subscribe-input {
    flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-right: none;
    border-radius: 6px 0 0 6px; background: var(--bg); color: var(--text);
    font-size: .9rem; outline: none; transition: border-color .2s;
}
.subscribe-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(230,0,18,.15); }
.subscribe-input::placeholder { color: rgba(232,232,232,.3); }
.subscribe-btn {
    padding: 10px 20px; border: none; border-radius: 0 6px 6px 0;
    background: var(--primary); color: #fff; font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: background .2s, transform .1s;
}
.subscribe-btn:hover { background: var(--btn-blue); transform: translateY(-1px); }
.subscribe-msg { font-size: .82rem; margin-top: 8px; }

/* Main Footer Grid */
.footer-main { padding: 40px 0; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px;
}
.footer-layout-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer-layout-compact .footer-col-qr { text-align: left; }
.footer-layout-compact .footer-col-qr h4::after { left: 0; transform: none; }
.footer-col h4 {
    color: var(--btn-yellow); margin-bottom: 14px; font-size: .9rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
    position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 24px; height: 2px; background: var(--primary); border-radius: 2px;
}
.footer-about-text { font-size: .85rem; line-height: 1.6; margin-bottom: 10px; color: rgba(232,232,232,.5); }
.footer-link { color: var(--btn-blue); text-decoration: none; font-size: .85rem; font-weight: 500; }
.footer-link:hover { color: var(--btn-yellow); }
.footer-links { list-style: none; }
.footer-links li { padding: 5px 0; }
.footer-links.product-block-chips,
.footer-links.product-block-cards {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.footer-links.product-block-chips li,
.footer-links.product-block-cards li { padding: 0; }
.footer-links.product-block-chips a {
    display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-button);
    padding: 6px 10px; background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.footer-links.product-block-cards a {
    display: block; min-width: 120px; border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: 10px 12px; background: var(--surface); box-shadow: var(--card-shadow);
}
.footer-links a {
    color: rgba(232,232,232,.5); text-decoration: none; font-size: .85rem;
    transition: color .2s, padding-left .2s;
}
.footer-links a:hover { color: var(--btn-blue); padding-left: 4px; }
.footer-contact { list-style: none; }
.footer-contact li {
    padding: 6px 0; font-size: .85rem; display: flex; align-items: center; gap: 8px;
}
.footer-contact li i { color: var(--primary); font-size: .95rem; }
.footer-qr { margin-top: 8px; text-align: center; }
.footer-qr img { width: 100px; height: 100px; border-radius: 8px; border: 2px solid var(--border); }
.footer-qr span { display: block; font-size: .78rem; margin-top: 6px; color: rgba(232,232,232,.4); }
.qr-placeholder { width: 100px; height: 100px; border-radius: 8px; border: 2px dashed var(--border); margin: 0 auto; }
.footer-col-qr { text-align: center; }
.footer-col-qr h4::after { left: 50%; transform: translateX(-50%); }

/* Bottom Bar */
.footer-bottom {
    background: var(--bg); padding: 16px 0;
    border-top: 1px solid var(--border);
}
.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .82rem; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(232,232,232,.4); text-decoration: none; font-size: .82rem; }
.footer-bottom-links a:hover { color: var(--btn-blue); }

/* Auth pages */
.auth-page {
    min-height: 60vh; display: flex; align-items: center; justify-content: center;
    padding: 60px 20px;
}
.auth-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 40px; width: 100%; max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.auth-card h1 {
    font-size: 1.8rem; color: #fff; text-transform: uppercase;
    letter-spacing: 2px; text-align: center; margin-bottom: 4px;
}
.auth-subtitle {
    text-align: center; color: var(--btn-yellow); font-size: .9rem;
    margin-bottom: 28px; letter-spacing: 1px;
}
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-field label {
    display: block; font-size: .85rem; color: var(--neutral);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px;
}
.form-field input {
    width: 100%; padding: 10px 14px; border-radius: 8px;
    border: 2px solid var(--border); background: var(--bg); color: #fff;
    font-size: .95rem; transition: border-color .2s;
}
.form-field input:focus { outline: none; border-color: var(--btn-yellow); }
.btn-submit {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    background: var(--btn-red); color: #fff; font-size: 1rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: background .2s;
    margin-top: 6px;
}
.btn-submit:hover { background: var(--primary); }
.auth-switch {
    text-align: center; margin-top: 20px; font-size: .88rem; color: var(--neutral);
}
.auth-switch a { color: var(--btn-yellow); text-decoration: none; font-weight: 600; }

/* Redesigned section list */
.section-list { display: flex; flex-direction: column; gap: 0; }
.section-layout-grid .section-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px;
}
.section-layout-grid .section-row {
    border: 1px solid var(--border); background: var(--surface2);
}
.section-layout-grid .section-articles { padding-left: 0; }
.section-row {
    border-bottom: 1px solid var(--border); padding: 20px;
    border-radius: var(--radius-card);
}
.section-row:last-child { border-bottom: none; }
.section-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.section-index {
    font-size: 1.6rem; font-weight: 900; color: rgba(232,232,232,.15);
    min-width: 40px; font-variant-numeric: tabular-nums;
}
.section-header h3 { flex: 1; margin: 0; font-size: 1.15rem; text-transform: uppercase; }
.section-header h3 a { color: var(--btn-yellow); text-decoration: none; font-weight: 700; }
.section-header h3 a:hover { text-shadow: 0 0 8px rgba(255,215,0,.3); }
.section-count {
    font-size: .8rem; color: var(--neutral); background: var(--border);
    padding: 2px 10px; border-radius: 10px; font-weight: 600;
}
.section-articles { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 56px; }
.article-chip {
    display: flex; flex-direction: column; gap: 2px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 10px 14px;
    text-decoration: none; transition: border-color .2s, transform .15s;
    min-width: 200px; flex: 1; max-width: 300px;
}
.article-chip:hover { border-color: var(--btn-blue); transform: translateY(-2px); }
.chip-title { color: rgba(232,232,232,.85); font-size: .88rem; line-height: 1.3; }
.article-chip time { font-size: .75rem; color: var(--neutral); }

/* Download page – Google Play style */
.download-page { padding: 32px 0; }

/* Header: icon + title */
.gp-header {
    display: flex; gap: 24px; align-items: flex-start; margin-bottom: 20px;
}
.gp-icon-wrap { flex-shrink: 0; }
.gp-icon-img {
    width: 72px; height: 72px; border-radius: 16px;
    border: 1px solid var(--border); object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.gp-icon-placeholder {
    width: 72px; height: 72px; border-radius: 16px;
    background: linear-gradient(135deg, var(--btn-red), var(--btn-blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 900; color: #fff;
}
.gp-title-area { flex: 1; }
.gp-title { font-size: 1.6rem; color: var(--text); margin: 0 0 2px; font-weight: 700; line-height: 1.18; overflow-wrap: anywhere; }
.gp-developer {
    color: var(--btn-blue); font-size: .88rem; text-decoration: none;
    display: inline-block; margin-bottom: 10px;
}
.gp-developer:hover { text-decoration: underline; }
.gp-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.gp-badge {
    font-size: .8rem; color: var(--neutral); display: flex; align-items: center; gap: 4px;
    min-height: 24px;
}
.gp-badge i { font-size: .85rem; }

/* Install row */
.gp-install-row {
    display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
    padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.gp-install-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; text-align: center; padding: 12px 18px;
    border-radius: var(--radius-button); background: var(--btn-blue); color: #fff;
    text-decoration: none; font-weight: 600; font-size: .95rem;
    transition: background .2s, box-shadow .2s;
    line-height: 1.25; overflow-wrap: anywhere;
}
.gp-install-btn:hover { background: var(--primary); box-shadow: 0 2px 12px rgba(30,144,255,.3); }
.gp-install-btn:active { transform: translateY(1px); }
.gp-share-actions { display: flex; gap: 8px; }
.gp-action-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
    background: transparent; color: var(--neutral); font-size: 1.1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: color .2s, border-color .2s;
}
.gp-action-btn:hover { color: var(--btn-blue); border-color: var(--btn-blue); }

/* Screenshots */
.gp-screenshots-section { margin-bottom: 28px; }
.gp-screenshots {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.gp-screenshot {
    flex-shrink: 0; width: 160px; height: auto; border-radius: 10px;
    border: 1px solid var(--border); object-fit: cover;
}
.gp-screenshot-ph {
    flex-shrink: 0; width: 160px; height: 284px; border-radius: 10px;
    background: var(--surface); border: 1px dashed var(--border);
}

/* Section blocks */
.gp-section {
    padding: 24px 0; border-bottom: 1px solid var(--border);
}
.gp-section:last-child { border-bottom: none; }
.gp-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.gp-section-header h2 { font-size: 1.1rem; color: var(--text); font-weight: 600; margin: 0; }
.gp-arrow { color: var(--neutral); font-size: 1.1rem; }
.gp-about-text { font-size: .9rem; color: rgba(232,232,232,.7); line-height: 1.7; margin-bottom: 14px; }
.gp-about-text p { margin-bottom: 8px; }
.gp-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.gp-tag {
    padding: 4px 14px; border-radius: 16px; border: 1px solid var(--border);
    font-size: .8rem; color: var(--btn-blue); text-decoration: none;
    transition: background .2s;
}
.gp-tag:hover { background: var(--surface); }

/* Rating overview */
.gp-rating-overview {
    display: flex; gap: 32px; align-items: center; margin-bottom: 20px;
}
.gp-rating-big { text-align: center; flex-shrink: 0; min-width: 100px; }
.gp-rating-number { font-size: 3rem; font-weight: 700; color: var(--text); line-height: 1; }
.gp-rating-stars { color: var(--btn-yellow); font-size: .9rem; margin: 4px 0; }
.gp-rating-count { font-size: .78rem; color: var(--neutral); }
.gp-rating-bars { flex: 1; }
.gp-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.gp-bar-row span { font-size: .75rem; color: var(--neutral); width: 12px; text-align: right; }
.gp-bar { flex: 1; height: 10px; background: var(--surface); border-radius: 5px; overflow: hidden; }
.gp-bar-fill { height: 100%; background: var(--btn-blue); border-radius: 5px; }

/* Review cards */
.gp-reviews { display: flex; flex-direction: column; gap: 16px; }
.gp-review-card {
    padding: 16px; background: var(--surface); border-radius: 10px;
    border: 1px solid var(--border);
}
.gp-review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gp-review-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--surface2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 600; color: var(--neutral);
}
.gp-review-author { font-size: .88rem; color: var(--text); font-weight: 500; }
.gp-review-stars { color: var(--btn-yellow); font-size: .75rem; margin-bottom: 6px; }
.gp-review-text { font-size: .85rem; color: rgba(232,232,232,.6); line-height: 1.6; margin: 0; }

/* QR section */
.gp-qr-section { text-align: center; padding: 32px 0; }
.gp-qr-section h2 { font-size: 1rem; color: var(--text); margin-bottom: 14px; }
.gp-qr-wrap { display: inline-block; }
.gp-qr-img {
    width: 140px; height: 140px; border-radius: 12px;
    border: 2px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

/* Responsive */
@media (max-width: 768px) {
    .gp-header { gap: 16px; }
    .gp-title { font-size: 1.3rem; }
    .gp-install-btn { font-size: .9rem; }
    .gp-rating-overview { flex-direction: column; gap: 16px; align-items: flex-start; }
    .gp-rating-big { text-align: left; }
}

/* Footer QR code */
.footer-qr { text-align: center; }
.footer-qr img {
    width: 120px; height: 120px; border-radius: 8px;
    border: 2px solid var(--border);
}
.footer-qr p { font-size: .8rem; color: var(--neutral); margin-top: 8px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .nav-auth { justify-content: center; }
    /* hero-carousel height removed - using aspect-ratio */
    .hero-overlay h1 { font-size: 2rem; letter-spacing: 1px; }
    .hero-cta { margin-top: 8px; }
    .carousel-btn { font-size: 1.2rem; padding: 8px 12px; }
    .section-grid { grid-template-columns: 1fr; }
    .footer-main { padding: 24px 0; }
    .footer-grid,
    .footer-layout-compact { grid-template-columns: 1fr; gap: 18px; }
    .footer-col-qr h4::after { left: 0; transform: none; }
    .footer-col-qr { text-align: left; }
    .footer-col h4 { margin-bottom: 8px; padding-bottom: 8px; }
    .footer-about-text { margin-bottom: 8px; }
    .footer-links li,
    .footer-contact li { padding: 3px 0; }
    .footer-qr,
    .footer-qr img,
    .qr-placeholder { width: 88px; height: 88px; }
    .footer-subscribe-banner { padding: 18px 0; }
    .subscribe-banner-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
    .subscribe-form { min-width: unset; }
    .subscribe-input { min-width: 0; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .intro-layout { grid-template-columns: 1fr; }
    .recent-updates { position: static; }
    .section-articles { padding-left: 0; }
    .section-layout-grid .section-list { grid-template-columns: 1fr; }
    .article-chip { max-width: 100%; }
    .auth-card { padding: 28px 20px; }
    .app-hero { flex-direction: column; align-items: center; text-align: center; }
    .app-meta-row { justify-content: center; }
    /* section-banner-img height removed - using aspect-ratio */
    .section-banner-overlay h1 { font-size: 1.6rem; }
    .article-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .topic-hero { padding: 34px 0 26px; }
    .topic-hero h1 { font-size: 2rem; line-height: 1.12; }
    .topic-summary { font-size: .92rem; }
    .topic-layout { padding-top: 22px; }
    .topic-cover { aspect-ratio: 16/10; margin-bottom: 16px; }
    .topic-guide-panel { grid-template-columns: 1fr; gap: 10px; }
    .topic-guide-card { padding: 14px; }
    .topic-toc { padding: 14px; }
    .topic-toc ul { gap: 6px; }
    .topic-toc li { font-size: .78rem; padding: 5px 8px; }
    .topic-content { padding: 16px; }
    .topic-content h2,
    .topic-content h3 { font-size: 1.08rem; margin-top: 22px; padding-top: 14px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .content-block { padding: 30px 0; }
    /* hero-carousel height removed - using aspect-ratio */
    .hero-overlay h1 { font-size: 1.5rem; }
    .hero-cta { width: min(100% - 24px, 320px); }
    .gp-header { align-items: center; gap: 12px; }
    .gp-icon-img,
    .gp-icon-placeholder { width: 60px; height: 60px; border-radius: 14px; }
    .gp-badges { gap: 8px 12px; }
    .gp-install-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .gp-share-actions { justify-content: center; }
    .subscribe-form { flex-direction: column; gap: 8px; }
    .topic-hero h1 { font-size: 1.7rem; }
    .topic-cta { width: 100%; }
}

/* Login Hint Modal */
.login-hint-overlay{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:lhFadeIn .2s ease}
@keyframes lhFadeIn{from{opacity:0}to{opacity:1}}
.login-hint-box{background:#fff;border-radius:16px;padding:32px 28px 24px;max-width:360px;width:90%;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.2);animation:lhSlideUp .25s ease}
@keyframes lhSlideUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.login-hint-icon{font-size:2.4rem;color:var(--btn-red,#e60012);margin-bottom:12px}
.login-hint-text{font-size:.95rem;color:#374151;line-height:1.6;margin:0 0 20px}
.login-hint-actions{display:flex;gap:10px;justify-content:center}
.login-hint-btn{padding:9px 24px;border-radius:8px;font-size:.88rem;font-weight:600;cursor:pointer;text-decoration:none;border:none;transition:all .15s}
.login-hint-cancel{background:#f3f4f6;color:#374151}
.login-hint-cancel:hover{background:#e5e7eb}
.login-hint-go{background:var(--btn-red,#e60012);color:#fff}
.login-hint-go:hover{background:var(--primary,#1a73e8);box-shadow:0 4px 12px rgba(0,0,0,.2)}

/* ===== Light Mode ===== */
html[data-theme="light"] {
    --bg: #f5f7fa;
    --text: #1a1a2e;
    --surface: #ffffff;
    --surface2: #eef0f4;
    --border: #d9dde3;
    --neutral: #6b7280;
}
html[data-theme="light"] body { background: #f5f7fa; color: #1a1a2e; }
html[data-theme="light"] .site-header { background: #fff; border-bottom-color: #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
html[data-theme="light"] .logo { color: #1a1a2e; }
html[data-theme="light"] .nav-links a { color: #4b5563; }
html[data-theme="light"] .nav-links a:hover, html[data-theme="light"] .nav-links a.active { color: var(--primary); }
html[data-theme="light"] .btn-login { color: #374151; border-color: #d1d5db; background: transparent; }
html[data-theme="light"] .btn-login:hover { background: #f3f4f6; }
html[data-theme="light"] .feature-card,
html[data-theme="light"] .review-item,
html[data-theme="light"] .review-card,
html[data-theme="light"] .article-grid-card,
html[data-theme="light"] .sidebar-section,
html[data-theme="light"] .recent-updates,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .article-chip,
html[data-theme="light"] .comment-item,
html[data-theme="light"] .gp-review-card,
html[data-theme="light"] .section-block,
html[data-theme="light"] .article-summary-box { background: #fff; border-color: #e5e7eb; color: #1a1a2e; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3,
html[data-theme="light"] h4, html[data-theme="light"] h5, html[data-theme="light"] h6 { color: #111827; }
html[data-theme="light"] .content-block h2 { color: #111827; }
html[data-theme="light"] p, html[data-theme="light"] li,
html[data-theme="light"] .content-body, html[data-theme="light"] .article-content,
html[data-theme="light"] .review-text, html[data-theme="light"] .feature-card p,
html[data-theme="light"] .comment-text, html[data-theme="light"] .gp-about-text,
html[data-theme="light"] .article-grid-body .summary,
html[data-theme="light"] .footer-about-text { color: #374151; }
html[data-theme="light"] time, html[data-theme="light"] .breadcrumb,
html[data-theme="light"] .article-meta-bar, html[data-theme="light"] .chip-title,
html[data-theme="light"] .recent-updates li a, html[data-theme="light"] .sidebar-section li a { color: #4b5563; }
html[data-theme="light"] .sections-overview { background: #f0f2f5; }
html[data-theme="light"] .hero-overlay,
html[data-theme="light"] .section-banner-overlay { background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.55) 100%); }
html[data-theme="light"] .hero-overlay h1,
html[data-theme="light"] .section-banner-overlay h1 { color: #fff; }
html[data-theme="light"] .form-field input,
html[data-theme="light"] .subscribe-input { background: #fff; color: #1a1a2e; border-color: #d1d5db; }
html[data-theme="light"] .form-field label,
html[data-theme="light"] .auth-subtitle { color: #6b7280; }
html[data-theme="light"] .site-footer { background: #f0f2f5; color: #4b5563; border-top-color: #e5e7eb; }
html[data-theme="light"] .footer-subscribe-banner { background: #e8eaed; border-bottom-color: #e5e7eb; }
html[data-theme="light"] .footer-bottom { background: #fff; border-top-color: #e5e7eb; }
html[data-theme="light"] .footer-links a, html[data-theme="light"] .footer-contact li,
html[data-theme="light"] .footer-bottom-links a,
html[data-theme="light"] .footer-bottom p { color: #4b5563; }
html[data-theme="light"] .section-row, html[data-theme="light"] .article-comments,
html[data-theme="light"] .gp-section, html[data-theme="light"] .gp-install-row { border-color: #e5e7eb; }
html[data-theme="light"] .gp-title, html[data-theme="light"] .gp-rating-number,
html[data-theme="light"] .gp-review-author { color: #111827; }
html[data-theme="light"] .gp-badge, html[data-theme="light"] .gp-rating-count,
html[data-theme="light"] .gp-review-text { color: #4b5563; }
html[data-theme="light"] .gp-bar { background: #e5e7eb; }
html[data-theme="light"] .ad-banner { background: #e8eaed; }
html[data-theme="light"] .img-placeholder { background: #dde1e7; }
html[data-theme="light"] .subscribe-info h3 { color: #111827; }
html[data-theme="light"] .subscribe-info p { color: #6b7280; }
html[data-theme="light"] .article-grid-body h2 { color: #111827; }

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
    padding: 0;
    line-height: 1;
}
.theme-icon {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
}
.theme-icon-sun {
    border: 2px solid currentColor;
    border-radius: 50%;
}
.theme-icon-sun::before,
.theme-icon-sun::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 28px;
    border-radius: 2px;
    background: linear-gradient(to bottom, currentColor 0 4px, transparent 4px 24px, currentColor 24px 28px);
    transform: translate(-50%, -50%);
}
.theme-icon-sun::after { transform: translate(-50%, -50%) rotate(90deg); }
.theme-icon-moon {
    display: none;
    overflow: hidden;
    border: 2px solid currentColor;
    border-radius: 50%;
}
.theme-icon-moon::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--surface);
}
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }
.theme-toggle:hover { transform: scale(1.1) rotate(15deg); box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.theme-toggle:active { transform: scale(0.95); }
@media (max-width: 768px) {
    .theme-toggle { width: 42px; height: 42px; bottom: 16px; right: 16px; }
}

/* Download guide / FAQ rich layout */
.gp-download-info-section { position: relative; }
.gp-download-info-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
}
.gp-download-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.gp-download-faq-card .gp-download-info-icon { background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.gp-download-info-content { color: var(--neutral); font-size: .92rem; line-height: 1.75; }
.gp-download-info-content > *:first-child { margin-top: 0; }
.gp-download-info-content > *:last-child { margin-bottom: 0; }
.gp-download-info-content p { margin: 0 0 10px; }
.gp-download-info-content h3,
.gp-download-info-content h4 {
    margin: 14px 0 8px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.35;
}
.gp-download-info-content ul,
.gp-download-info-content ol {
    display: grid;
    gap: 8px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}
.gp-download-info-content li {
    position: relative;
    padding: 10px 12px 10px 34px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}
.gp-download-info-content li::before {
    content: "✓";
    position: absolute;
    left: 12px;
    top: 10px;
    color: var(--primary);
    font-weight: 800;
}
.gp-download-faq-card .gp-download-info-content li::before { content: "?"; color: var(--accent); }
html[data-theme="light"] .gp-download-info-card {
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(248,250,252,.9));
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
html[data-theme="light"] .gp-download-info-content li {
    background: rgba(15,23,42,.035);
    border-color: rgba(15,23,42,.08);
}
@media (max-width: 520px) {
    .gp-download-info-card { grid-template-columns: 1fr; padding: 14px; }
    .gp-download-info-icon { width: 40px; height: 40px; }
}

/* FAQ question / answer cards */
.gp-download-faq-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.gp-download-faq-item {
    position: relative;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
}
.gp-download-faq-question {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 8px;
}
.gp-download-faq-question::before {
    content: "Q";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    color: #fff;
    background: var(--accent);
}
.gp-download-faq-answer {
    color: var(--neutral);
    line-height: 1.75;
    padding-left: 30px;
}
.gp-download-faq-answer p { margin: 0; }
html[data-theme="light"] .gp-download-faq-item {
    background: rgba(15,23,42,.035);
    border-color: rgba(15,23,42,.08);
}

/* 404 page */
.error-page main {
    min-height: 58vh;
}
.not-found-hero {
    padding: clamp(76px, 12vw, 150px) 0 clamp(34px, 6vw, 72px);
}
.not-found-inner {
    max-width: 860px;
    text-align: center;
}
.not-found-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 56px;
    padding: 0 22px;
    border-radius: var(--radius-button);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: .08em;
    box-shadow: var(--card-shadow);
}
.not-found-kicker {
    margin: 20px 0 8px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
}
.not-found-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 7vw, 5rem);
    line-height: 1.05;
}
.not-found-description {
    max-width: 640px;
    margin: 18px auto 0;
    color: var(--neutral);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.75;
}
.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}
.not-found-primary,
.not-found-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: var(--radius-button);
    font-weight: 800;
    text-decoration: none;
}
.not-found-primary {
    background: var(--primary);
    color: #fff;
}
.not-found-secondary {
    color: var(--text);
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
}
.not-found-links {
    padding: 0 0 clamp(44px, 7vw, 90px);
}
.not-found-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.not-found-panel {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--card-shadow);
}
.not-found-panel h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}
.not-found-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.not-found-panel a {
    color: var(--neutral);
    text-decoration: none;
}
.not-found-panel a:hover {
    color: var(--primary);
}
@media (max-width: 760px) {
    .not-found-hero {
        padding-top: 72px;
    }
    .not-found-grid {
        grid-template-columns: 1fr;
    }
    .not-found-panel {
        padding: 16px;
    }
}
/* Header layout: logo column on the left, title and navigation on the right. */
.main-nav .container {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: stretch;
    column-gap: 16px;
    width: 100%;
    max-width: none;
    gap: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: clamp(20px, 2vw, 40px);
    padding-right: clamp(20px, 2vw, 40px);
    position: relative;
}
.main-nav .container > .logo {
    grid-row: 1;
    width: 84px;
    height: 84px;
    max-width: none;
    align-self: stretch;
    justify-content: center;
}
.main-nav .container > .logo .logo-img,
.main-nav .container > .logo .logo-placeholder {
    width: 64px;
    max-width: 64px;
    height: 64px;
}
.main-nav .container > .logo .logo-img { object-fit: contain; }
.header-content { min-width: 0; }
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-width: 0;
}
.header-title {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
    text-decoration: none;
    text-overflow: ellipsis;
    text-shadow: 0 0 6px rgba(230, 0, 18, .4);
    text-transform: uppercase;
    white-space: nowrap;
}
.header-secondary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}
.header-secondary .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: clamp(14px, 2vw, 28px);
}
.header-secondary .nav-links a {
    font-size: clamp(.76rem, 1vw, .9rem);
}
.header-variant-nav-center .header-top .logo { margin-right: auto; }
.header-variant-transparent-float.site-header {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), var(--container-width));
    border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--bg) 58%, transparent);
    backdrop-filter: blur(16px);
}
.header-variant-compact-toolbar .header-top .logo {
    font-size: 1rem;
    letter-spacing: 0;
}
.mobile-nav-actions,
.mobile-nav-panel {
    display: none;
}

@media (max-width: 768px) {
    body.nav-floating .site-header,
    .site-header {
        width: calc(100% - 24px);
    }
    .site-header {
        margin: 0 auto;
        border-radius: var(--radius-card);
        overflow: visible;
    }
    body.nav-floating .site-header { overflow: visible; }
    .main-nav .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 10px;
        min-height: 56px;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }
    .main-nav .container > .logo {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        height: 40px;
        justify-content: flex-start;
    }
    .main-nav .container > .logo .logo-img,
    .main-nav .container > .logo .logo-placeholder {
        width: auto;
        max-width: 88px;
        height: 34px;
    }
    .header-content { display: contents; }
    .header-top { grid-column: 2; grid-row: 1; gap: 10px; }
    .header-title { display: none; }
    .header-top .nav-auth,
    .header-secondary { display: none; }
    .header-variant-transparent-float.site-header {
        position: sticky;
        top: 0;
        left: auto;
        transform: none;
        width: calc(100% - 24px);
        margin: 10px auto 0;
    }
    .mobile-nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }
    .mobile-register-link {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 8px 12px;
        white-space: nowrap;
    }
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid var(--border);
        border-radius: var(--radius-button);
        background: var(--surface2);
        color: var(--text);
        cursor: pointer;
        padding: 0;
    }
    .mobile-menu-toggle span {
        width: 17px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .18s ease, opacity .18s ease;
    }
    .site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
    .site-header.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .mobile-nav-panel {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 120;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        background: color-mix(in srgb, var(--bg) 94%, transparent);
        box-shadow: var(--card-shadow);
        backdrop-filter: blur(14px);
    }
    .site-header.mobile-menu-open .mobile-nav-panel { display: block; }
    .mobile-nav-links { list-style: none; display: grid; gap: 6px; }
    .mobile-nav-links a {
        display: block;
        padding: 10px 12px;
        border-radius: var(--radius-button);
        color: var(--text);
        text-decoration: none;
        background: color-mix(in srgb, var(--surface2) 72%, transparent);
        font-size: .92rem;
        font-weight: 700;
        line-height: 1.35;
    }
    .mobile-nav-links a.active,
    .mobile-nav-links a:hover { color: var(--accent); }
    .mobile-nav-auth {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 10px;
    }
    .mobile-nav-auth .btn-auth { justify-content: center; text-align: center; }
}
/* Hero structural variants */
body.hero-fullscreen-image .hero-carousel {
    min-height: min(760px, 92vh);
    height: min(760px, 92vh);
}
body.hero-fullscreen-image .hero-overlay {
    padding: 90px 20px 60px;
    background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.2) 42%, rgba(0,0,0,.76));
}
.hero-fullscreen-content {
    width: min(900px, calc(100% - 32px));
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 16px;
}

body.hero-split-media .hero-carousel {
    aspect-ratio: auto;
}
.hero-split {
    width: min(var(--container-width), calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(280px, .75fr);
    align-items: center;
    gap: 34px;
}
.hero-copy {
    display: grid;
    gap: 14px;
    justify-items: start;
}
.hero-copy h1 { text-align: left; }
.hero-split-no-media {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}
.hero-split-no-media .hero-copy {
    justify-items: center;
    text-align: center;
}
.hero-split-no-media .hero-copy h1 {
    text-align: center;
}
.hero-media-card {
    border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--surface);
    aspect-ratio: 4 / 3;
}
.hero-media-card img,
.hero-media-card .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.hero-card-stack .hero-overlay {
    align-items: center;
    justify-content: center;
}
.hero-card-stack {
    position: relative;
    width: min(760px, calc(100% - 40px));
    min-height: 280px;
}
.hero-card-stack .hero-panel {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}
.hero-mini-card {
    position: absolute;
    right: 0;
    bottom: 8px;
    z-index: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    box-shadow: var(--card-shadow);
    color: var(--accent);
    font-weight: 800;
}
.hero-mini-card-alt {
    left: 0;
    right: auto;
    top: 12px;
    bottom: auto;
    color: var(--secondary);
}

@media (max-width: 768px) {
    body.hero-fullscreen-image .hero-carousel {
        min-height: min(560px, 72vh);
        height: min(560px, 72vh);
    }
    body.hero-fullscreen-image .hero-overlay {
        padding: 54px 18px 42px;
    }
    body.hero-card-stack .hero-carousel,
    body.hero-split-media .hero-carousel {
        min-height: 420px;
        height: min(540px, 64vh);
    }
    body.hero-compact-banner .hero-carousel {
        height: min(360px, 48vh);
    }
    body.hero-compact-banner .hero-carousel.hero-no-media {
        height: 240px;
        max-height: 240px;
    }
    .hero-overlay {
        gap: 10px;
    }
    .hero-overlay h1 {
        max-width: min(100%, 680px);
        overflow-wrap: anywhere;
    }
    .hero-split {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .hero-copy { justify-items: center; text-align: center; }
    .hero-copy h1 { text-align: center; }
    .hero-media-card { display: none; }
    .hero-mini-card { display: none; }
    .hero-card-stack {
        width: min(100% - 32px, 620px);
        min-height: 0;
    }
    .hero-card-stack .hero-panel {
        padding: 26px 18px;
    }
}

@media (max-width: 480px) {
    body.hero-fullscreen-image .hero-carousel {
        min-height: 460px;
        height: min(520px, 64vh);
    }
    body.hero-card-stack .hero-carousel,
    body.hero-split-media .hero-carousel {
        min-height: 390px;
        height: min(500px, 58vh);
    }
    .hero-tagline {
        letter-spacing: 3px;
        font-size: .82rem;
    }
    .hero-cta {
        margin-top: 10px;
        padding: 9px 16px;
    }
}
/* Home section structural variants */
.section-layout-masonry .section-list {
    columns: 3 260px;
    column-gap: 18px;
    display: block;
}
.section-layout-masonry .section-row {
    break-inside: avoid;
    margin: 0 0 18px;
    background: transparent;
    border: 1px solid var(--border);
    padding: 18px;
}
.section-layout-masonry .section-row-span-2 { padding-bottom: 34px; }
.section-layout-masonry .section-row-span-3 { padding-bottom: 54px; }

.section-layout-horizontal-cards .section-list {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
}
.section-layout-horizontal-cards .section-row {
    flex: 0 0 min(360px, 86vw);
    border: 1px solid var(--border);
    background: transparent;
    padding: 18px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .section-layout-masonry .section-list {
        columns: 1;
    }
}

/* Homepage topic recommendations */
.topics-showcase {
    padding: var(--section-padding) 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
        var(--bg);
}
.topics-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 760px;
    margin-bottom: 24px;
}
.topics-eyebrow {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
}
.topics-heading h2 {
    margin: 0;
}
.topics-heading p {
    margin: 0;
    color: var(--neutral);
}
.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.topic-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.topic-card-featured {
    grid-column: span 2;
}
.topic-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--surface2);
}
.topic-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.topic-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    min-width: 0;
    flex: 1;
}
.topic-card-no-media .topic-card-body {
    min-height: 220px;
}
.topic-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}
.topic-card-featured .topic-card-body h3 {
    font-size: 1.32rem;
}
.topic-card-body h3 a,
.topic-card-link {
    color: var(--text-color);
    text-decoration: none;
}
.topic-card-body p {
    margin: 0;
    color: var(--neutral);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topic-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.topic-card-tags span {
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface2);
    color: var(--neutral);
    font-size: .78rem;
}
.topic-card-link {
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 980px) {
    .topics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .topics-showcase {
        padding: 36px 0;
    }
    .topics-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
    }
    .topic-card,
    .topic-card-featured {
        flex: 0 0 min(82vw, 340px);
        grid-column: auto;
        scroll-snap-align: start;
    }
    .topic-card-body {
        padding: 14px;
    }
    .topic-card-body p {
        -webkit-line-clamp: 3;
    }
    .topic-card-featured .topic-card-body h3 {
        font-size: 1.05rem;
    }
}

/* Homepage layout refresh */
.home-layout {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 18%),
        var(--bg);
}

.home-layout .content-block,
.home-layout .sections-overview,
.home-layout .topics-showcase {
    position: relative;
    padding: clamp(48px, 7vw, 88px) 0;
    background: transparent;
}

.home-layout .content-block:nth-child(even) {
    background: transparent;
}

.home-layout .container {
    position: relative;
}

.home-section-heading {
    max-width: 760px;
    margin-bottom: clamp(22px, 3.5vw, 34px);
}

.home-layout .content-block h2,
.home-layout .sections-overview h2,
.home-layout .topics-heading h2 {
    position: relative;
    margin: 0;
    padding: 0 0 16px;
    color: var(--text);
    font-size: clamp(1.65rem, 3.5vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.home-layout .content-block h2::after,
.home-layout .sections-overview h2::after,
.home-layout .topics-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 3px;
    border-radius: var(--radius-button);
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.home-copy-panel {
    border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    border-radius: var(--radius-card);
    background:
        linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
        color-mix(in srgb, var(--surface) 78%, transparent);
    box-shadow: var(--card-shadow);
}

.home-copy-panel .content-body,
.home-copy-panel.content-body {
    color: rgba(232,232,232,.82);
}

.home-layout .content-body {
    max-width: 76ch;
}

.home-layout .content-body p + p {
    margin-top: 1em;
}

.home-layout .intro-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: clamp(20px, 4vw, 42px);
}

.home-layout .intro-main {
    padding: clamp(22px, 4vw, 38px);
}

.home-layout .recent-updates {
    top: 92px;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
        var(--surface2);
}

.home-layout .recent-updates h3 {
    color: var(--accent);
    letter-spacing: .04em;
    text-transform: none;
}

.gameplay-layout {
    display: grid;
    grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
    gap: clamp(22px, 5vw, 54px);
    align-items: start;
}

.gameplay-layout .home-section-heading {
    position: sticky;
    top: 96px;
    margin-bottom: 0;
}

.gameplay-layout .home-copy-panel {
    padding: clamp(22px, 4vw, 36px);
}

.home-layout .features-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.home-layout .feature-card {
    grid-column: span 2;
    min-height: 100%;
    padding: clamp(20px, 3vw, 30px);
    text-align: left;
    background:
        linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
        var(--surface2);
}

.home-layout .feature-card:nth-child(1),
.home-layout .feature-card:nth-child(2) {
    grid-column: span 3;
}

.home-layout .feature-card::before {
    opacity: .9;
}

.home-layout .feature-icon {
    margin: 0 0 18px;
}

.home-layout .feature-card h3 {
    color: var(--text);
    letter-spacing: 0;
    text-transform: none;
}

.home-layout .feature-card p {
    color: rgba(232,232,232,.72);
}

.home-layout .sections-overview {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 76%, transparent), transparent);
}

.sections-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.home-layout .sections-heading h2 {
    text-align: center;
}

.home-layout .sections-heading h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.home-layout .section-list {
    gap: 14px;
}

.home-layout .section-layout-grid .section-list {
    align-items: start;
}

.home-layout .section-row {
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(255,255,255,.052), rgba(255,255,255,.015)),
        color-mix(in srgb, var(--surface2) 84%, transparent);
}

.home-layout .section-header {
    align-items: flex-start;
}

.home-layout .section-index {
    color: color-mix(in srgb, var(--accent) 36%, transparent);
}

.home-layout .section-header h3 {
    letter-spacing: 0;
    text-transform: none;
}

.home-layout .section-count {
    white-space: nowrap;
}

.home-layout .section-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding-left: 0;
}

.home-layout .article-chip {
    min-width: 0;
    max-width: none;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.home-layout .reviews-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-layout .review-item {
    border-left: 0;
    border-top: 4px solid var(--btn-blue);
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
        var(--surface);
}

.home-layout .review-item:nth-child(even) {
    border-top-color: var(--btn-red);
}

.home-ad-slot {
    width: min(var(--container-width), calc(100% - 40px));
    margin: clamp(12px, 2vw, 22px) auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--surface2) 88%, transparent);
    box-shadow: var(--card-shadow);
}

.home-ad-slot img {
    aspect-ratio: 16 / 5;
    object-fit: cover;
}

.home-layout .topic-card-body h3 a,
.home-layout .topic-card-link {
    color: var(--text);
}

html[data-theme="light"] .home-copy-panel,
html[data-theme="light"] .home-layout .feature-card,
html[data-theme="light"] .home-layout .section-row,
html[data-theme="light"] .home-layout .review-item,
html[data-theme="light"] .home-ad-slot {
    background: #fff;
    border-color: #e5e7eb;
}

html[data-theme="light"] .home-copy-panel .content-body,
html[data-theme="light"] .home-copy-panel.content-body,
html[data-theme="light"] .home-layout .feature-card p {
    color: #374151;
}

html[data-theme="light"] .home-layout .article-chip {
    background: #f8fafc;
}

@media (max-width: 980px) {
    .home-layout .features-grid,
    .home-layout .section-articles,
    .home-layout .reviews-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-layout .feature-card,
    .home-layout .feature-card:nth-child(1),
    .home-layout .feature-card:nth-child(2) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .home-layout .content-block,
    .home-layout .sections-overview,
    .home-layout .topics-showcase {
        padding: 42px 0;
    }

    .gameplay-layout,
    .home-layout .intro-layout {
        grid-template-columns: 1fr;
    }

    .gameplay-layout .home-section-heading {
        position: static;
    }

    .home-layout .features-grid,
    .home-layout .reviews-list {
        grid-template-columns: 1fr;
    }

    .home-layout .section-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px 12px;
    }

    .home-layout .section-count {
        grid-column: 2;
        justify-self: start;
    }

    .home-layout .section-articles {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .home-ad-slot {
        width: min(100% - 24px, var(--container-width));
    }

    .home-ad-slot img {
        aspect-ratio: 16 / 8;
    }
}
/* Article card structural variants */
.article-card-image-left {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    min-height: 150px;
}
.article-card-image-left .article-grid-img {
    height: 100%;
    aspect-ratio: auto;
}

.article-card-text-minimal {
    background: transparent;
    border-width: 0 0 1px 0;
    border-radius: 0;
    box-shadow: none;
}
.article-card-text-minimal:hover {
    transform: none;
    box-shadow: none;
}
.article-card-text-minimal .article-grid-body {
    padding: 18px 0;
}
.article-card-text-minimal .article-grid-body h2 {
    font-size: 1rem;
}

.article-card-cover-large {
    grid-column: span 2;
    min-height: 340px;
    position: relative;
}
.article-card-cover-large .article-grid-img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
}
.article-card-cover-large .article-grid-body {
    position: relative;
    z-index: 1;
    margin-top: auto;
    min-height: 340px;
    justify-content: end;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
}
.article-card-cover-large .article-grid-body h2,
.article-card-cover-large .article-grid-body .summary,
.article-card-cover-large .article-grid-body time {
    color: #fff;
}

@media (max-width: 768px) {
    .article-card-image-left,
    .article-card-cover-large {
        display: flex;
        grid-column: auto;
        min-height: 0;
    }
    .article-card-cover-large .article-grid-img {
        position: static;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .article-card-cover-large .article-grid-body {
        min-height: 0;
        background: transparent;
    }
}
/* Footer structural variants */
.footer-layout-news-focus {
    grid-template-columns: 1.1fr 1.2fr 1fr 1fr;
}
.footer-layout-news-focus .footer-col-news .footer-links {
    display: grid;
    gap: 8px;
}

.footer-variant-compact .footer-main {
    padding-top: 28px;
    padding-bottom: 20px;
}
.footer-layout-compact {
    align-items: start;
}
.footer-variant-compact .footer-about-text {
    max-width: 560px;
}

@media (max-width: 768px) {
    .site-footer {
        font-size: .92rem;
    }
    .footer-subscribe-banner {
        display: none;
    }
    .footer-main {
        padding-top: 18px;
        padding-bottom: 14px;
    }
    .footer-layout-news-focus {
        grid-template-columns: 1fr;
    }
    .footer-layout-news-focus .footer-col-news .footer-links {
        gap: 4px;
    }
    .footer-col {
        min-width: 0;
    }
    .footer-col h4 {
        margin-bottom: 6px;
    }
    .footer-about-text {
        margin-bottom: 6px;
    }
    .footer-contact li {
        padding: 2px 0;
    }
    .footer-bottom {
        padding: 12px 0;
    }
}
/* Responsive overrides are intentionally isolated for V2 expansion. */