﻿/* ============================================================
 * The False Sun — main stylesheet
 * Extracted from index.html on 2026-06-30 during P0 perf cleanup.
 * Source-of-truth: /styles/main.css  (Cloudflare Pages edge cache).
 * Cache-Control: public, max-age=86400 (1d).
 * ============================================================ */

:root {
    --sun-amber: #d4a24c;
    --sun-deep: #8b5a1e;
    --farm-green: #4a5d3a;
    --farm-deep: #1f2a18;
    --warm-cream: #f5ead0;
    --bg-dark: #0d0a06;
    --card: #1a140d;
    --text: #ece4d3;
    --text-dim: #a89a82;
    --danger: #b54a3a;
}
* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background:
      radial-gradient(ellipse at top, #2a1f10 0%, #0d0a06 60%),
      var(--bg-dark);
    color: var(--text);
    margin: 0;
    line-height: 1.65;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 700; letter-spacing: 0.3px; }
a { color: var(--sun-amber); }

/* ===== HEADER ===== */
header {
    background: linear-gradient(rgba(13,10,6,0.85), rgba(13,10,6,0.85)),
                url('images/the-false-sun-silas-greeting.webp');
    background-size: cover;
    background-position: center;
    padding: 14px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2218;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--sun-amber);
    text-decoration: none;
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(212, 162, 76, 0.5);
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-nav a {
    font-family: 'Cormorant Garamond', serif;
    color: var(--warm-cream);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.header-nav a:hover,
.header-nav a:focus-visible {
    color: var(--sun-amber);
    background: rgba(212, 162, 76, 0.1);
    border-color: rgba(212, 162, 76, 0.35);
}

/* ===== STATIC LANGUAGE PICKER (replaces JS dropdown for localized pages) ===== */
.lang-picker { position: relative; }
.lang-picker-trigger {
    font-family: 'Cormorant Garamond', serif;
    color: var(--warm-cream);
    background: transparent;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}
.lang-picker-trigger:hover,
.lang-picker-trigger:focus-visible,
.lang-picker.open .lang-picker-trigger {
    color: var(--sun-amber);
    background: rgba(212, 162, 76, 0.1);
    border-color: rgba(212, 162, 76, 0.35);
    outline: none;
}
.lang-picker-trigger i {
    font-size: 10px;
    transition: transform 0.2s;
    opacity: 0.85;
}
.lang-picker.open .lang-picker-trigger i { transform: rotate(180deg); }
.lang-picker-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(13, 10, 6, 0.98);
    border: 1px solid #2a2218;
    border-radius: 6px;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 162, 76, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
    display: flex;
    flex-direction: column;
}
.lang-picker.open .lang-picker-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-picker-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--warm-cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.15s, color 0.15s;
}
.lang-picker-menu a:hover,
.lang-picker-menu a:focus-visible {
    background: rgba(212, 162, 76, 0.12);
    color: var(--sun-amber);
    outline: none;
}
.lang-picker-menu a.lang-active {
    color: var(--sun-amber);
    background: rgba(212, 162, 76, 0.08);
}
/* Coming-soon state for language items whose target page hasn't been
   generated yet (`npm run translate` not yet run for that language). */
.lang-picker-menu a.lang-soon {
    opacity: 0.45;
    cursor: not-allowed;
    color: var(--warm-cream);
}
.lang-picker-menu a.lang-soon:hover,
.lang-picker-menu a.lang-soon:focus-visible {
    background: transparent;
    color: var(--warm-cream);
}
.lang-picker-menu .lp-soon {
    font-size: 10px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(212, 162, 76, 0.6);
    margin-left: auto;
}
/* Toast shown when user clicks a lang-soon item */
.lang-soon-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: 320px;
    background: rgba(20, 16, 12, 0.97);
    color: #f1e4cc;
    border: 1px solid #d4a24c;
    border-radius: 10px;
    padding: 14px 18px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.lang-soon-toast.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 560px) {
    .lang-soon-toast { left: 8px; right: 8px; bottom: 90px; max-width: none; }
}
.lang-picker-menu .lp-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}
.lang-picker-menu .lp-name { flex: 1; }
.lang-picker-menu .lp-check {
    color: var(--sun-amber);
    font-size: 14px;
    font-weight: 700;
}
@media (max-width: 480px) {
    .lang-picker-menu { min-width: 180px; right: -8px; }
    .lang-picker-trigger { font-size: 13px; padding: 5px 10px; letter-spacing: 1px; }
}
iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* The body-level #close-theater button was removed. The in-frame
   .fs-close-inside button is the single source of truth for closing
   fullscreen / theater mode. */

/* In-frame close button — visible inside game-container so it survives
   native fullscreen (body siblings are hidden by the browser).
   On all sizes: just an ✕ icon in a circle. No text labels. */
.fs-close-inside {
    display: none;
    position: absolute;
    top: max(12px, env(safe-area-inset-top, 12px));
    right: max(12px, env(safe-area-inset-right, 12px));
    z-index: 2147483647;
    background: var(--sun-amber);
    color: #1a140d;
    border: 2px solid #1a140d;
    border-radius: 50%;
    width: 44px; height: 44px;
    padding: 0;
    align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    touch-action: manipulation;
    transition: background 0.2s, transform 0.2s;
    opacity: 1;
}
.fs-close-inside.is-visible { display: inline-flex !important; opacity: 1; }
.fs-close-inside:hover,
.fs-close-inside:active,
.fs-close-inside:focus-visible {
    background: var(--warm-cream);
    color: #1a140d;
    transform: scale(1.1);
}
.fs-close-inside i { font-size: 18px; }
/* On touch devices there is no hover, so never auto-fade — keep the
   button at full opacity so users always know how to exit. */
@media (hover: none) and (pointer: coarse) {
    .game-frame.is-fullscreen .fs-close-inside.is-visible { animation: none !important; }
}
/* Desktop only: auto-fade after 4s so it does not block the game,
   but bounce back on hover/focus. */
@media (hover: hover) and (pointer: fine) {
    .game-frame.is-fullscreen .fs-close-inside.is-visible { animation: fsCloseFade 0.4s ease 3.5s forwards; }
    .game-frame.is-fullscreen .fs-close-inside.is-visible:hover,
    .game-frame.is-fullscreen .fs-close-inside.is-visible:focus { animation: none; opacity: 1; }
}
@keyframes fsCloseFade { to { opacity: 0.18; } }
@media (max-width: 540px) {
    .fs-close-inside {
        width: 48px; height: 48px;
        top: max(16px, env(safe-area-inset-top, 16px));
        right: max(16px, env(safe-area-inset-right, 16px));
    }
    .fs-close-inside i { font-size: 20px; }
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a140d, #0d0a06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 5;
    transition: opacity 0.4s;
}
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loading-overlay .sun {
    width: 60px; height: 60px;
    background: radial-gradient(circle, var(--sun-amber), transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}
.loading-overlay p {
    color: var(--text-dim);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
}

.interaction-bar {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.btn-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-fullscreen {
    background: var(--sun-amber);
    color: #1a140d;
    border: none;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}
.btn-fullscreen:hover { background: var(--warm-cream); }
.btn-like {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s;
    font-size: 14px;
}
.btn-like.active { background: var(--danger); color: white; }
.share-icons { display: flex; gap: 18px; align-items: center; }
.share-icons a {
    color: var(--text-dim);
    font-size: 22px;
    transition: color 0.25s, transform 0.25s;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.share-icons a:hover { color: var(--sun-amber); transform: translateY(-3px); }

/* ===== RELATED GAMES ===== */
.related-section {
    margin-top: 28px;
    padding: 22px 22px 26px;
    background: var(--card);
    border: 1px solid #2a2218;
    border-radius: 8px;
}
.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.related-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 22px;
    color: var(--sun-amber);
}
.related-header .related-sub {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    align-items: stretch;
}
.related-card {
    display: flex;
    gap: 12px;
    background: #221a10;
    border: 1px solid #2a2218;
    border-radius: 6px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: 0.25s;
    align-items: center;
    position: relative;
}
.related-card:hover {
    border-color: var(--sun-amber);
    transform: translateY(-2px);
    background: #2a2014;
}
.related-thumb {
    width: 96px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
    background: #111;
    display: block;
}
.related-info { min-width: 0; flex: 1; }
.related-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--warm-cream);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}
.related-tag {
    font-size: 11px;
    color: var(--sun-amber);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.related-meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}
.related-meta .play-pill {
    background: var(--sun-amber);
    color: #1a140d;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
@media (max-width: 600px) {
    .related-grid { grid-template-columns: 1fr; }
}

/* ===== INFO CARDS ===== */
.info-card {
    background: var(--card);
    padding: 35px;
    border-radius: 8px;
    margin-top: 28px;        /* 统一 section 间距 */
    border: 1px solid #2a2218;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
h2 {
    color: var(--sun-amber);
    font-size: 32px;
    border-bottom: 1px solid #2a2218;
    padding-bottom: 12px;
    margin-top: 32px;
    margin-bottom: 18px;
}
h2:first-child { margin-top: 0; }
h3 { color: var(--warm-cream); margin-top: 24px; font-size: 22px; }

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 24px;
    padding: 14px 18px;
    background: rgba(212,162,76,0.08);
    border-left: 3px solid var(--sun-amber);
    border-radius: 4px;
}
.stars { color: var(--sun-amber); font-size: 18px; }
.rating-label { font-size: 14px; color: var(--text-dim); }

.testimonial {
    background: #221a10;
    padding: 24px;
    border-radius: 6px;
    border-left: 3px solid var(--sun-amber);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 19px;
    color: var(--text);
    margin: 22px 0;
}
.testimonial cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 14px;
    color: var(--text-dim);
}
.highlight { color: var(--sun-amber); font-weight: 700; font-style: normal; }

/* ===== SCREENSHOT GALLERY ===== */
.screenshot-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 25px;
}
.screenshot-gallery figure {
    margin: 0;
    background: var(--card);
    border: 1px solid #2a2218;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}
.screenshot-gallery figure:hover {
    transform: translateY(-4px);
    border-color: var(--sun-amber);
}
.screenshot-gallery img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.screenshot-gallery figcaption {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-dim);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: rgba(26,20,13,0.85);
    padding: 25px;
    border-radius: 8px;
    position: sticky;
    top: 80px;
    height: fit-content;
    border: 1px solid #2a2218;
}
.sidebar h3 {
    margin-top: 0;
    font-size: 22px;
    color: var(--sun-amber);
    border-bottom: 1px solid #2a2218;
    padding-bottom: 10px;
}
.sidebar .info-list { list-style: none; padding: 0; margin: 0 0 20px; }
.sidebar .info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #1f1810;
    font-size: 14px;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
}
.sidebar .info-list li:last-child { border-bottom: none; }
.sidebar .info-list strong { color: var(--warm-cream); font-weight: 600; }
.btn-main {
    background: var(--sun-amber);
    color: #1a140d;
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.25s;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
}
.btn-main:hover { background: var(--warm-cream); }
.seo-tag {
    display: inline-block;
    background: #221a10;
    border: 1px solid #2a2218;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    margin: 3px;
    color: var(--text-dim);
}

.content-body { color: #c8bda5; font-size: 16px; line-height: 1.85; }
.content-body p { margin-bottom: 18px; }

/* ===== HOW TO PLAY ===== */
.how-to-play {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}
.how-step {
    background: #221a10;
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid #2a2218;
    transition: 0.25s;
}
.how-step:hover { border-color: var(--sun-amber); transform: translateY(-2px); }
.how-step .step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--sun-amber);
    line-height: 1;
}
.how-step p { font-size: 14px; color: var(--text-dim); margin: 8px 0 0; }

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.feature {
    background: #221a10;
    border-left: 3px solid var(--sun-amber);
    padding: 18px 20px;
    border-radius: 4px;
}
.feature h4 {
    margin: 0 0 6px;
    color: var(--warm-cream);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
}
.feature p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ===== CHARACTERS ===== */
.characters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}
.character {
    background: var(--card);
    border: 1px solid #2a2218;
    border-radius: 6px;
    padding: 18px;
    text-align: center;
}
.character h4 {
    margin: 0 0 4px;
    color: var(--warm-cream);
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
}
.character .role {
    font-size: 12px;
    color: var(--sun-amber);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.character p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ===== QUOTES STRIP ===== */
.quotes-strip {
    background: linear-gradient(135deg, #221a10, #0d0a06);
    border-top: 1px solid #2a2218;
    border-bottom: 1px solid #2a2218;
    padding: 40px 20px;
    margin: 32px 0 0;        /* 统一 section 间距适中 */
    text-align: center;
}
.quotes-strip blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-style: italic;
    color: var(--warm-cream);
    line-height: 1.4;
}
.quotes-strip blockquote::before { content: '" '; color: var(--sun-amber); }
.quotes-strip blockquote::after { content: ' "'; color: var(--sun-amber); }
.quotes-strip .attr { display: block; margin-top: 14px; font-size: 14px; color: var(--text-dim); font-style: normal; letter-spacing: 2px; text-transform: uppercase; }

/* ===== FAQ ===== */
.faq-section { background: var(--card); padding: 35px; border-radius: 8px; margin-top: 28px; border: 1px solid #2a2218; }
.faq-section h2 { margin-top: 0; }
.faq-item { border-bottom: 1px solid #1f1810; }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    padding: 18px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--sun-amber); }
.faq-question .faq-icon { color: var(--sun-amber); font-size: 18px; flex-shrink: 0; transition: transform 0.3s; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; color: var(--text-dim); font-size: 15px; line-height: 1.8; }
.faq-answer p { margin: 0 0 16px; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 16px; }

/* ===== PLAYER REVIEWS ===== */
.reviews-section { background: var(--card); border-radius: 8px; margin-top: 28px; border: 1px solid #2a2218; overflow: hidden; }
.reviews-header { padding: 22px 30px 16px; border-bottom: 1px solid #1f1810; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.reviews-header h2 { color: var(--sun-amber); font-size: 26px; margin: 0; border: none; padding: 0; }
.reviews-header .header-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reviews-rating-big { display: flex; align-items: baseline; gap: 6px; }
.reviews-rating-big .num { color: var(--warm-cream); font-size: 30px; font-weight: 800; font-family: 'Cormorant Garamond', Georgia, serif; }
.reviews-rating-big .out-of { color: var(--text-dim); font-size: 14px; }
.reviews-stars { color: var(--sun-amber); letter-spacing: 2px; font-size: 16px; }
.reviews-stars .empty { color: #3a2d1a; }
.reviews-count { color: var(--text-dim); font-size: 13px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 24px 30px; }
.review-card {
    background: #0a0805;
    border: 1px solid #2a2218;
    border-radius: 6px;
    padding: 18px 20px;
    display: flex; flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.review-card:hover { border-color: var(--sun-amber); transform: translateY(-2px); }
.review-stars-row { color: var(--sun-amber); font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
.review-stars-row .empty { color: #3a2d1a; }
.review-body { color: var(--text); font-size: 14px; line-height: 1.65; margin: 0 0 12px; font-style: italic; }
.review-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid #1f1810; }
.review-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--sun-deep), var(--sun-amber)); display: flex; align-items: center; justify-content: center; color: #1a140d; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.review-name { color: var(--warm-cream); font-size: 13px; font-weight: 700; }
.review-source { color: #6b5e44; font-size: 12px; font-weight: 400; }
.reviews-cta { padding: 0 30px 24px; color: var(--text-dim); font-size: 13px; }
.reviews-cta a { font-weight: 700; }
@media (max-width: 600px) {
    .reviews-header { padding: 18px 20px 14px; }
    .reviews-header h2 { font-size: 22px; }
    .reviews-grid { grid-template-columns: 1fr; padding: 18px 20px; }
}

/* ===== COMMENTS ===== */
.comments-section { background: var(--card); border-radius: 8px; margin-top: 28px; border: 1px solid #2a2218; overflow: hidden; }
.comments-header { padding: 20px 25px 15px; border-bottom: 1px solid #1f1810; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.comments-header-left { display: flex; align-items: center; gap: 10px; }
.comments-header h2 { color: var(--sun-amber); font-size: 22px; margin: 0; border: none; padding: 0; }
.comments-count { background: var(--sun-deep); color: var(--warm-cream); font-size: 12px; padding: 2px 10px; border-radius: 20px; font-weight: 700; }
.comments-toggle { color: var(--sun-amber); font-size: 18px; transition: transform 0.3s; line-height: 1; }
.comments-header.collapsed .comments-toggle { transform: rotate(-90deg); }
.comments-body { overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; max-height: 2000px; opacity: 1; }
.comments-body.collapsed { max-height: 0; opacity: 0; }
.comment-form-wrap { padding: 20px 25px; border-bottom: 1px solid #1f1810; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-input { background: #221a10; border: 1px solid #2a2218; border-radius: 4px; color: var(--text); padding: 10px 14px; font-family: 'Inter', sans-serif; font-size: 14px; resize: none; transition: border-color 0.2s; }
.comment-input:focus { outline: none; border-color: var(--sun-amber); }
.comment-input::placeholder { color: #6b5e44; }
.comment-submit { background: var(--sun-amber); color: #1a140d; border: none; border-radius: 4px; padding: 10px 24px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; align-self: flex-end; letter-spacing: 1px; text-transform: uppercase; }
.comment-submit:hover { background: var(--warm-cream); }
.comment-item { padding: 18px 25px; border-bottom: 1px solid #1a140d; }
.comment-item:last-child { border-bottom: none; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sun-deep); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--warm-cream); flex-shrink: 0; }
.comment-name { font-weight: 700; color: var(--warm-cream); font-size: 14px; }
.comment-time { font-size: 12px; color: #6b5e44; }
.comment-body { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-left: 42px; word-break: break-word; }
@media (max-width: 480px) { .characters { grid-template-columns: 1fr; } .features-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
footer { text-align: center; padding: 50px 20px; color: #6b5e44; font-size: 14px; border-top: 1px solid #2a2218; background: #050402; }
footer a { color: var(--text-dim); text-decoration: none; margin: 0 10px; transition: color 0.2s; }
footer a:hover { color: var(--sun-amber); }
footer .disclaimer { font-size: 12px; color: #4a3f2a; margin-top: 18px; max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.7; font-style: italic; }
footer .footer-nav {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 6px 14px;
    margin-bottom: 14px; padding-bottom: 14px;
    border-bottom: 1px solid #1a140d;
}
footer .footer-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0; padding: 4px 0;
    font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
}
footer .footer-nav a i { font-size: 11px; opacity: 0.75; }
footer .footer-games {
    font-size: 12px; color: #5a4a32;
    margin-top: 6px; line-height: 1.9;
}
footer .footer-games-label {
    color: var(--sun-amber); font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    font-size: 10px; margin-right: 4px;
}
footer .footer-games a { margin: 0 4px; color: #a89a82; }
footer .footer-games a:hover { color: var(--sun-amber); }
@media (max-width: 540px) {
    footer { padding: 36px 18px; }
    footer .footer-nav { gap: 8px 12px; }
    footer .footer-nav a { font-size: 12px; }
}

/* ===== AD PLACEMENTS ===== */
.ad-container { display: flex; justify-content: center; align-items: center; overflow: hidden; }
.ad-banner-top { width: 100%; max-width: 728px; margin: 0 auto 15px; min-height: 50px; background: #111; border: 1px solid #222; border-radius: 4px; display: flex; justify-content: center; align-items: center; }
.ad-banner-top iframe { width: 100% !important; max-width: 728px; height: 50px; border: none; display: block; }
.ad-rectangle { width: 100%; min-height: 250px; background: #111; border: 1px solid #222; border-radius: 4px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.ad-rectangle iframe { width: 100% !important; max-width: 300px; height: 250px; border: none; display: block; }
.ad-inline { width: 100%; max-width: 728px; margin: 20px auto; min-height: 90px; background: #111; border: 1px solid #222; border-radius: 4px; display: flex; justify-content: center; align-items: center; }
.ad-inline iframe { width: 100% !important; max-width: 728px; height: 90px; border: none; display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .wrapper { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .hero h1 { font-size: 44px; }
}

/* ===== AdSense ad-slot wrapper ===== */
/* top ad 已移到 game frame 下方：让 game 顶到首屏，玩家一打开就看到完整 720px 游戏 */
.ad-slot-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 24px auto;
    padding: 0 20px;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ad-slot-wrapper--below-game { margin: 24px auto; }  /* game → ad 上下 24px 适中 */
.ad-slot-wrapper ins.adsbygoogle { background: transparent; }

/* ============================================================
   LANDSCAPE — mobile/tablet horizontal orientation
   - iPad 1024x768 / iPhone 横屏 / Android 横屏
   - 让 game frame 填满短边高度，避免挤压 UI
   ============================================================ */
@media (orientation: landscape) and (max-width: 1024px) {
    .game-frame {
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .game-frame iframe {
        /* landscape 时锁 16:9，按短边高度自动算宽 */
        height: 100%;
        width: 100%;
    }
    .header { padding: 6px 12px; }
    .endings-tracker { padding: 12px 16px; }
    .info-card { padding: 24px 28px; }
}

@media (max-width: 768px) {
    .hero { min-height: 360px; padding: 40px 16px; }
    .hero h1 { font-size: 36px; }
    .hero .tagline { font-size: 17px; }
    .screenshot-gallery { grid-template-columns: 1fr; }
    .how-to-play { grid-template-columns: 1fr; }
    .interaction-bar { flex-direction: column; align-items: stretch; }
    .btn-group { flex-direction: column; }
    .btn-fullscreen { justify-content: center; height: 50px; }
    .share-icons { justify-content: center; margin-top: 8px; }
    .ad-rectangle iframe { max-width: 300px; height: 250px; }
    .ad-inline { min-height: 100px; }
    .ad-inline iframe { max-width: 320px; height: 100px; }
    h2 { font-size: 26px; }

    /* ===== Mobile header compaction =====
       Goal: keep logo + lang picker + About + HomeIsWhereHeIs all on ONE row
       at typical phone widths (320–414px). Halve the visual footprint:
       smaller font, tighter letter-spacing, less padding/gap, drop the
       text-transform on nav so CamelCase "HomeIsWhereHeIs" doesn't bloat.
       `!important` here defends against the cached v4 SW returning old CSS. */
    header {
        padding: 6px 8px !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
    }
    .logo {
        font-size: 13px !important;
        letter-spacing: 0.3px !important;
        text-shadow: 0 0 8px rgba(212, 162, 76, 0.5);
        white-space: nowrap !important;
        flex-shrink: 1 !important;
        min-width: 0;
    }
    .header-nav {
        gap: 3px !important;
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }
    .header-nav a {
        font-size: 10px !important;
        letter-spacing: 0.2px !important;
        padding: 3px 6px !important;
        white-space: nowrap !important;
        text-transform: none !important;
    }
    .lang-picker-trigger {
        font-size: 10px !important;
        letter-spacing: 0.2px !important;
        padding: 3px 6px !important;
        gap: 4px !important;
        text-transform: none !important;
        white-space: nowrap !important;
    }
    .lang-picker-trigger i {
        font-size: 8px !important;
    }
}

/* Narrower phones (<= 420px): trim further so nothing wraps */
@media (max-width: 420px) {
    header { padding: 5px 6px !important; gap: 3px !important; }
    .logo { font-size: 12px !important; letter-spacing: 0.2px !important; }
    .header-nav { gap: 2px !important; }
    .header-nav a,
    .lang-picker-trigger {
        font-size: 9px !important;
        letter-spacing: 0.1px !important;
        padding: 2px 5px !important;
    }
}

/* ====== VIDEOS ====== */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 36px; width: 100%; }
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr; } }
.video-frame {
    position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; background: #000;
    border-radius: 8px; overflow: hidden; border: 1px solid #2a2218; margin: 0 !important;
}
figure.video-frame { margin: 0 !important; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame figcaption { font-size: 13px; color: var(--dim); padding: 8px 4px 0; }

/* ====== GAME PLAY BUTTON (inside game frame) ====== */
.game-play-cta {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 5;
    display: inline-flex; align-items: center; gap: 14px;
    background: var(--sun-amber); color: #1a140d;
    border: 0; border-radius: 6px; padding: 18px 38px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 36px rgba(212, 162, 76, 0.4), 0 0 0 0 rgba(212, 162, 76, 0.6);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    animation: gamePlayPulse 2.4s ease-in-out infinite;
}
.game-play-cta i { font-size: 16px; }
.game-play-cta:hover {
    background: #e6b85c;
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 18px 48px rgba(212, 162, 76, 0.55), 0 0 0 8px rgba(212, 162, 76, 0.15);
}
.game-play-cta.hidden { display: none; }
@keyframes gamePlayPulse {
    0%, 100% { box-shadow: 0 12px 36px rgba(212, 162, 76, 0.4), 0 0 0 0 rgba(212, 162, 76, 0.5); }
    50%      { box-shadow: 0 12px 36px rgba(212, 162, 76, 0.4), 0 0 0 14px rgba(212, 162, 76, 0); }
}

/* ====== GAME INTERACTION BAR (below game frame)
       Layout inspired by survive-min: prominent amber Fullscreen
       button on the left + horizontal social share row on the right.
       Wraps on mobile. ====== */
.game-share-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 14px;
    margin: 18px auto 6px; max-width: 720px;
    padding: 6px 0;
    background: transparent;
}
.game-share-group {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.game-share-group-label {
    color: var(--text-dim); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-right: 4px;
}
/* Prominent Fullscreen button — the visual anchor of the bar */
.btn-fullscreen-main {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--sun-amber); color: #1a140d;
    border: 1px solid var(--sun-amber);
    padding: 14px 26px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(212, 162, 76, 0.25);
}
.btn-fullscreen-main:hover {
    background: #e6b85c; border-color: #e6b85c;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(212, 162, 76, 0.4);
}
.btn-fullscreen-main:active { transform: translateY(0); }
.btn-fullscreen-main i { font-size: 15px; }
/* Social share icons — compact, secondary visual weight */
.game-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    background: transparent; color: var(--warm-cream);
    border: 1px solid #3a2d1a; border-radius: 4px;
    text-decoration: none; font-size: 15px;
    transition: all 0.2s;
    cursor: pointer; font-family: inherit;
}
.game-share-btn:hover {
    background: var(--sun-amber); color: #1a140d; border-color: var(--sun-amber);
}
.game-share-more {
    width: auto; gap: 6px; font-size: 12px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
}
@media (max-width: 540px) {
    .game-share-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .btn-fullscreen-main { justify-content: center; height: 50px; padding: 0 18px; }
    .game-share-group { justify-content: center; }
    .game-share-btn { min-width: 34px; height: 34px; font-size: 14px; padding: 0 8px; }
    .game-share-more { padding: 0 10px; }
}

/* ====== SHARE LINK (low-key text link in hero) ====== */
/* ====== SHARE MODAL ====== */
.share-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.78);
    z-index: 9999; display: none; align-items: center; justify-content: center;
}
.share-modal-overlay.open { display: flex; }
.share-modal {
    background: #1a140d; border: 1px solid #3a2d1a; border-radius: 10px;
    padding: 28px 30px; max-width: 460px; width: 92%; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.share-modal h3 { color: var(--sun-amber); font-family: Georgia, serif; margin: 0 0 8px; }
.share-modal p.sub { color: #a89a82; font-size: 13px; margin: 0 0 18px; }
.share-modal .socials { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.share-modal .socials a {
    display: flex; align-items: center; justify-content: center; height: 44px;
    border: 1px solid #3a2d1a; border-radius: 4px; color: var(--cream);
    text-decoration: none; font-size: 18px; transition: all 0.2s;
}
.share-modal .socials a:hover { background: var(--sun-amber); color: #1a140d; border-color: var(--sun-amber); }
.share-modal .url-row { display: flex; gap: 6px; }
.share-modal .url-row input {
    flex: 1; background: #0a0805; border: 1px solid #2a2218; color: var(--cream);
    padding: 10px 12px; border-radius: 4px; font-size: 13px; font-family: inherit;
}
.share-modal .url-row button {
    background: var(--sun-amber); color: #1a140d; border: none; padding: 10px 18px;
    border-radius: 4px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.share-modal .url-row button:hover { background: #e6b85c; }
.share-modal .close-x {
    position: absolute; top: 12px; right: 14px; background: transparent; border: 0;
    color: #a89a82; font-size: 24px; cursor: pointer; line-height: 1;
}
.share-modal .close-x:hover { color: var(--cream); }

/* ========== ENDINGS TRACKER ========== */
.endings-section {
    background: linear-gradient(135deg, #1a140d, #0d0a06);
    border: 1px solid #2a2218;
    border-radius: 8px;
    margin-top: 28px;        /* 统一 section 间距 */
    padding: 35px 35px 30px;
    position: relative;
    overflow: hidden;
}
.endings-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 60%; height: 200%;
    background: radial-gradient(ellipse, rgba(212, 162, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.endings-header {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 8px;
}
.endings-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--sun-amber); font-size: 30px; font-weight: 700; margin: 0;
    letter-spacing: 0.5px;
}
.endings-header h2 i { font-size: 24px; margin-right: 6px; }
.endings-sub {
    font-size: 13px; color: var(--text-dim);
    letter-spacing: 1px; text-transform: uppercase;
}
.endings-guide-link {
    display: inline-flex; align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--sun-amber);
    border: 1px solid #4a3a22;
    padding: 6px 14px; border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.endings-guide-link:hover {
    background: var(--sun-amber); color: #1a140d; border-color: var(--sun-amber);
    text-decoration: none;
}
.endings-guide-link i { font-size: 12px; }
.endings-progress {
    display: flex; align-items: center; gap: 14px;
    margin: 14px 0 22px; flex-wrap: wrap;
}
.endings-progress-bar {
    flex: 1; min-width: 160px; height: 6px;
    background: #221a10; border-radius: 3px; overflow: hidden;
    border: 1px solid #2a2218;
}
.endings-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5a1e 0%, var(--sun-amber) 100%);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(212, 162, 76, 0.4);
}
.endings-progress-text {
    font-size: 13px; color: var(--text-dim);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600; letter-spacing: 1px;
    white-space: nowrap;
}
.endings-progress-text strong {
    color: var(--sun-amber); font-size: 18px; margin-right: 2px;
}
.endings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 8px;
}
.ending-card {
    background: #0a0805;
    border: 1px solid #2a2218;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
}
.ending-card:hover {
    border-color: var(--sun-amber);
    background: #1a1208;
    transform: translateY(-2px);
}
.ending-card:focus { outline: 2px solid var(--sun-amber); outline-offset: 2px; }
.ending-checkbox {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border: 1.5px solid #4a3a22;
    border-radius: 4px;
    background: #050402;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
    color: transparent;
    font-size: 14px; line-height: 1;
}
.ending-card[data-found="true"] .ending-checkbox {
    background: var(--sun-amber);
    border-color: var(--sun-amber);
    color: #1a140d;
}
.ending-body { flex: 1; min-width: 0; }
.ending-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px; font-weight: 600;
    color: var(--text-dim);
    line-height: 1.3; letter-spacing: 0.3px;
    transition: color 0.25s ease;
    word-break: break-word;
}
.ending-card[data-found="true"] .ending-name {
    color: var(--warm-cream);
}
.ending-tag {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 10px; letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #5a4a32;
    margin-top: 3px;
}
.ending-card[data-found="true"] .ending-tag { color: var(--sun-amber); }
.endings-actions {
    display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap;
    align-items: center; justify-content: space-between;
}
.endings-actions-left {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.endings-btn {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid #2a2218;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}
.endings-btn:hover { border-color: var(--sun-amber); color: var(--sun-amber); }
.endings-btn.primary {
    background: var(--sun-amber); color: #1a140d; border-color: var(--sun-amber);
}
.endings-btn.primary:hover { background: #e6b85c; border-color: #e6b85c; color: #1a140d; }
.endings-note {
    font-size: 12px; color: #6b5e44;
    font-style: italic; line-height: 1.5;
}
.endings-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a140d; color: var(--warm-cream);
    border: 1px solid var(--sun-amber);
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 13px; font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.endings-toast.show {
    opacity: 1; transform: translateX(-50%) translateY(0);
}
@media (max-width: 600px) {
    .endings-section { padding: 25px 18px 22px; }
    .endings-header h2 { font-size: 24px; }
    .endings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ending-card { padding: 10px 12px; }
    .ending-name { font-size: 14px; }
}

/* ===== GAME-FIRST LAYOUT CSS (补回 9ba35f7 缺失部分，让屏幕显示正常) ===== */
.hero { display: none !important; }
@media (max-width: 768px) {
    .hero { min-height: 0 !important; padding: 0 !important; }
}
.frame-box-game {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.game-frame {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 0 1px #2a2218;
    position: relative;
    border: 1px solid #3a2e1f;
    width: 100%;
    height: 720px;
    max-height: 82vh;
    aspect-ratio: auto;
}
.game-frame.theater-mode {
    position: fixed !important;
    top: 0; left: 0;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 9999;
    border-radius: 0;
    border: none;
}
@media (max-width: 768px) {
    .frame-box-game {
        padding: 0;            /* mobile: 拉满 viewport 边缘，避免安卓两边露暗色背景 */
        max-width: 100%;
    }
    .game-frame {
        height: 487px;
        max-height: 82dvh;
        border-radius: 0;      /* mobile: 贴边更沉浸 */
        border-left: 0;        /* mobile: 去掉左右边框，让 frame 真正贴 viewport 边缘 */
        border-right: 0;
    }
}

/* Bottom overlay — trust badges 浮在 frame 底部 */
.game-frame-trust {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 22px 16px 12px;
    background: linear-gradient(0deg, rgba(13,10,6,0.88) 0%, rgba(13,10,6,0) 100%);
    pointer-events: none;
}
.game-frame-trust > * { pointer-events: auto; }
.game-frame-trust span {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(13,10,6,0.6);
    border: 1px solid rgba(212, 162, 76, 0.2);
    border-radius: 30px;
    padding: 3px 10px;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.4px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.game-frame-trust i { color: var(--sun-amber); font-size: 9px; }
@media (max-width: 540px) {
    /* .frame-box-game mobile padding 已并入上面的 768px 块（padding: 0） */
    .game-frame-trust { padding: 18px 10px 8px; gap: 5px; }
    .game-frame-trust span { padding: 2px 8px; font-size: 9px; }
}

/* Silas 男主角全身图背景 — 启动前显示，点击 Play 后渐隐 */
.game-frame-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #000;
    background-image: url('images/the-false-sun-silas-greeting.webp');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: opacity 0.4s ease;
    pointer-events: auto;
}
.game-frame.is-playing .game-frame-bg {
    opacity: 0;
    pointer-events: none;
}

/* Section spacing — 统一 28px，wrapper 顶部 24px 留 header → game 距离 */
.wrapper {
    margin: 24px auto 60px;
    grid-template-columns: 1fr;
    gap: 30px;
}
.ad-slot-wrapper { margin: 24px auto; }
.ad-slot-wrapper--below-game { margin: 24px auto; }

/* ===== STICKY BOTTOM AD (Adsterra 320x50 mobile banner, dismissible) ===== */
.ad-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px));
    background: rgba(4, 20, 38, 0.94);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}
.ad-sticky__inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    width: 320px;
    max-width: calc(100vw - 24px);
    height: 50px;
}
.ad-sticky__inner > iframe {
    width: 320px !important;
    max-width: 100% !important;
    height: 50px !important;
    border: 0 !important;
    display: block;
    overflow: hidden;
}
.ad-sticky__close {
    position: absolute;
    top: -30px;
    right: 8px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(4, 20, 38, 0.94);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease;
    z-index: 2;
}
.ad-sticky__close:hover {
    background: #000;
}
.ad-sticky__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.ad-sticky--hidden {
    display: none !important;
}
/* 防止 sticky 遮住 footer / 评论区底部内容（统一 62px + safe-area，桌面移动一致） */
@media (max-width: 767px) {
    body:has(.ad-sticky:not(.ad-sticky--hidden)) {
        padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    }
}
@media (min-width: 768px) {
    body:has(.ad-sticky:not(.ad-sticky--hidden)) {
        padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    }
}
/* 全屏游戏时不显示悬浮广告 */
body:has(.force_full_screen) .ad-sticky,
body:has(.force_half_full_screen) .ad-sticky {
    display: none;
}

.endings-section,
.related-section,
.info-card,
.comments-section,
.reviews-section,
.faq-section { margin-top: 28px !important; }
.quotes-strip { margin: 32px 0 0 !important; padding: 40px 20px !important; }
