@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --surface: #ffffff;
  --surface-subtle: #faf9f5;
  --ink: #22352b;
  --ink-secondary: #4a5c50;
  --muted: #748074;
  --green: #2d5542;
  --green-hover: #214333;
  --green-subtle: #e8efe5;
  --gold: #c29d5b;
  --gold-hover: #d8b471;
  --gold-bg: #f9f5eb;
  --line: #e2e6dc;
  --line-strong: #cfd6c7;
  --scrollbar-thumb: #b8c4aa;
  --scrollbar-hover: #96a985;
  --scrollbar-active: #6e845c;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-card: 0 4px 20px rgba(34, 53, 43, 0.06), 0 1px 3px rgba(34, 53, 43, 0.04);
  --shadow-hover: 0 12px 32px rgba(34, 53, 43, 0.12), 0 2px 6px rgba(34, 53, 43, 0.06);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { min-height: 40px; min-width: 40px; border: 2px solid transparent; border-radius: 20px; background: var(--scrollbar-thumb); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-hover); }
::-webkit-scrollbar-thumb:active { background-color: var(--scrollbar-active); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) transparent; }
}
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; appearance: none; -webkit-appearance: none; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; }
button:disabled { cursor: default; opacity: .5; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #8ca872; outline-offset: 3px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible), summary:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
::selection { background: #d7e4c7; color: #1e382b; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 20px; background: var(--green); color: white; border-radius: 8px; box-shadow: var(--shadow-hover); transition: top .2s ease; }
.skip-link:focus { top: 16px; }
.eyebrow { font-size: 10px; letter-spacing: 2.2px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 20px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; font-size: 13px; transition: background .18s cubic-bezier(.16,1,.3,1), transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s cubic-bezier(.16,1,.3,1), border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button .icon { width: 17px; height: 17px; }
.primary { background: var(--green); color: #fffefa; box-shadow: 0 2px 8px rgba(45, 85, 66, 0.25); }
.primary:hover { background: var(--green-hover); box-shadow: 0 6px 18px rgba(33, 67, 51, 0.35); }
.secondary { background: var(--green-subtle); color: var(--green); border-color: #d7e2d2; }
.secondary:hover { background: #dce7d4; border-color: #c7d6be; }
.text-button { display: inline-flex; gap: 10px; align-items: center; padding: 4px 0; color: var(--green); font-size: 12px; font-weight: 600; transition: color .18s ease, transform .18s ease; }
.text-button .icon { width: 16px; height: 16px; transition: transform .18s ease; }
.text-button:hover { color: var(--green-hover); }
.text-button:hover .icon { transform: translateX(3px); }
.icon-button { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: 0 0 auto; transition: background .18s ease, transform .18s ease; }
.icon-button:hover { transform: scale(1.05); }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 216px; padding: 36px 20px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #edf0e7; z-index: 10; overflow-y: auto; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 10px; margin-bottom: 48px; }
.brand img { filter: drop-shadow(0 2px 4px rgba(45,85,66,.15)); }
.brand > span { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: 3.5px; color: #1c382b; }
.brand small { display: block; font-family: var(--sans); font-weight: 600; letter-spacing: 1.4px; font-size: 8px; margin-top: 6px; color: var(--muted); }
.nav-caption { font-size: 10px; letter-spacing: 1.8px; color: #7f8a78; margin: 0 12px 12px; font-weight: 600; text-transform: uppercase; }
.main-nav, .sidebar-categories nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; min-height: 44px; border-radius: 9px; color: #52634e; font-size: 13.5px; font-weight: 500; text-align: left; transition: background .18s ease, color .18s ease, transform .16s ease; }
.nav-item .icon { width: 18px; height: 18px; transition: transform .18s ease; }
.nav-item:hover { background: #e0e7d9; color: #20402e; transform: translateX(2px); }
.nav-item.active { background: var(--green); color: #fffefa; font-weight: 600; box-shadow: 0 4px 12px rgba(45,85,66,0.22); transform: none; }
.nav-count { margin-left: auto; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; min-height: 19px; padding: 0 5px; border-radius: 6px; background: #dae3d2; color: #556650; font-variant-numeric: tabular-nums; }
.nav-item.active .nav-count { background: #406852; color: #f5f8f0; }
.sidebar-categories { margin-top: 32px; padding-top: 24px; border-top: 1px solid #d8ded0; }
.category-nav { font-size: 13px; }
.category-nav.active { color: var(--green); background: #d7e2ce; font-weight: 600; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.side-note { position: relative; margin: 0 8px 26px; padding: 18px 16px 16px; background: #e4ebdc; border-radius: 10px; border: 1px solid #d6ded0; }
.tiny-star { position: absolute; right: 10px; top: 8px; font-size: 32px; line-height: 1; color: #abb89a; transform: rotate(-10deg); opacity: .75; }
.side-note p { position: relative; font-family: var(--serif); font-size: 15.5px; line-height: 1.65; color: #435b3e; letter-spacing: 1px; font-weight: 600; }
.side-note > span:last-child { display: block; font-size: 8px; letter-spacing: 1.6px; color: #7f9076; margin-top: 10px; font-weight: 600; }
.help-link { font-size: 12px; }
.external-arrow { margin-left: auto; font-size: 15px; opacity: .8; }
.sidebar-foot { border-top: 1px solid #d5dcd0; padding: 16px 10px 0; margin-top: 12px; color: #828e7a; font-size: 10px; letter-spacing: .5px; display: flex; gap: 8px; align-items: center; }
.status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #6da25a; box-shadow: 0 0 6px rgba(109,162,90,.6); }
.main-shell { margin-left: 216px; padding: 0 44px; max-width: 1820px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 118px; }
.page-heading .eyebrow { font-size: 9.5px; letter-spacing: 2.2px; margin-bottom: 8px; color: #7b8875; }
.page-heading h1 { font-family: var(--serif); font-size: 29px; letter-spacing: 1px; font-weight: 700; line-height: 1.2; color: #1c3527; white-space: nowrap; }
.heading-dot { color: #7da564; padding-left: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; width: 280px; background: #edf0e8; border: 1px solid #dce2d5; border-radius: 9px; color: #75836e; transition: all .2s cubic-bezier(.16,1,.3,1); }
.search-field .icon { width: 18px; height: 18px; color: #6a7c64; }
.search-field input { background: transparent; width: 100%; min-width: 0; color: var(--ink); outline: none; border: 0; padding: 0; border-radius: 0; font-size: 13px; font-weight: 500; }
.search-field input::-webkit-search-decoration, .search-field input::-webkit-search-cancel-button, .search-field input::-webkit-search-results-button, .search-field input::-webkit-search-results-decoration { display: none; -webkit-appearance: none; }
.search-clear { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border-radius: 6px; color: #6e8067; transition: color .16s, background .16s; }
.search-clear .icon { width: 14px; height: 14px; }
.search-clear:hover { color: #22432d; background: #d4dec8; }
.search-field input::placeholder { color: #879480; }
.search-field:focus-within { outline: none; border-color: #8dae76; background: #ffffff; box-shadow: 0 0 0 3px rgba(141,174,118,.25), 0 2px 8px rgba(34,53,43,.06); }
.search-field kbd { border: 1px solid #cfd8c7; border-bottom-width: 2px; border-radius: 4px; width: 22px; height: 22px; text-align: center; font: 11px/20px var(--sans); color: #75876e; background: #fbfcf8; }
.random-button { border: 1px solid #d4dec9; font-size: 12.5px; background: #ffffff; color: #3b5636; border-radius: 9px; box-shadow: 0 1px 3px rgba(34,53,43,.04); }
.random-button:hover { background: #e8efe2; border-color: #bdccb0; color: #1e3d24; box-shadow: 0 4px 12px rgba(34,53,43,.08); }
.featured { min-height: 380px; border-radius: 16px; overflow: hidden; position: relative; isolation: isolate; color: #f8f5e9; background: #1a392c; box-shadow: 0 14px 40px rgba(18, 44, 32, 0.28); border: 1px solid rgba(217, 230, 204, 0.16); }
.hero-image { position: absolute; width: 82%; height: 100%; right: -2%; top: 0; object-fit: cover; object-position: 50% 47%; opacity: .88; transition: opacity .4s ease, transform .6s ease; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #143527 0%, #143527f2 24%, #143527ba 46%, #14352712 78%), linear-gradient(0deg, #0e271bf0 0%, transparent 45%, #0e271b18 100%); }
.amber .hero-shade { background: linear-gradient(90deg, #2b281b 0%, #2b281bf2 22%, #2b281ba8 50%, #2b281b08 85%), linear-gradient(0deg, #1f2017f0 0%, transparent 46%); }
.abyss { background: #0a0e14; }
.abyss .hero-shade { background: linear-gradient(90deg, #0a1220 0%, #0a1220f2 24%, #0a1220ba 46%, #0a122012 78%), linear-gradient(0deg, #071018f0 0%, transparent 45%, #07101818 100%); }
.abyss .card-category { background: #0d2230c4; color: #cfeaf7; }
/* 魔塔：纸面与墨线，把精选位也换成图纸的底色 */
.ink { background: #edeee8; color: #16171a; border-color: rgba(22, 23, 26, .14); box-shadow: 0 14px 40px rgba(20, 23, 26, .16); }
.ink .hero-image { opacity: .95; }
.ink .hero-shade { background: linear-gradient(90deg, #edeee8 0%, #edeee8f7 20%, #edeee8c4 44%, #edeee818 80%), linear-gradient(0deg, #edeee8fa 0%, transparent 44%); }
.ink .scene-caption { color: #3c3f3c; background: rgba(247, 248, 243, .72); border-color: rgba(22, 23, 26, .1); }
.ink .feature-label { color: #7c5a12; background: rgba(247, 248, 243, .74); border-color: rgba(157, 119, 34, .26); }
.ink .feature-label > span:first-child { background: #b23b2a; box-shadow: none; }
.ink .label-line { background: rgba(22, 23, 26, .18); }
.ink .hero-english { color: #83877f; }
.featured.ink h2 { color: #f3f4ec; text-shadow: none; }
.ink .hero-subtitle { color: #7c5a12; }
.ink .hero-description { color: #3c3f3c; text-shadow: none; }
.ink .hero-play { color: #f5f6f1; background: #16171a; box-shadow: 0 4px 16px rgba(20, 23, 26, .22); }
.ink .hero-play:hover { background: #33362f; box-shadow: 0 8px 22px rgba(20, 23, 26, .28); }
.ink .hero-detail { color: #52554f; }
.ink .hero-detail:hover { color: #16171a; }
.ink .featured-bottom { border-top-color: rgba(22, 23, 26, .14); }
.ink .feature-tab { color: #7a7d75; }
.ink .feature-tab-number { color: #a0a39a; }
.ink .feature-tab:hover { color: #33362f; }
.ink .feature-tab.active { color: #16171a; }
.ink .feature-tab.active .feature-tab-number { color: #b23b2a; }
.ink .feature-tab.active i { background: #b23b2a; box-shadow: none; }
.ink .featured-note { color: rgba(22, 23, 26, .45); }
.ink .card-category { background: rgba(245, 246, 241, .9); color: #2a2d28; border: 1px solid rgba(22, 23, 26, .08); }
.ink .card-visual { background: #e6e7e1; }

/* 游戏本身是深色的，精选位也跟着深下来，封面才不会被浅色蒙层洗白 */
.featured.ink { background: #14181a; color: #eceee7; border-color: rgba(236, 238, 231, .16); box-shadow: 0 18px 44px -26px rgba(8, 10, 11, .9); }
.featured.ink .hero-image { opacity: .96; }
.featured.ink .hero-shade { background: linear-gradient(90deg, #14181a 0%, #14181af7 22%, #14181ac6 46%, #14181a14 82%), linear-gradient(0deg, #14181af5 0%, transparent 46%); }
.featured.ink .scene-caption { color: #dfe2d7; background: rgba(20, 24, 26, .72); border-color: rgba(236, 238, 231, .16); }
.featured.ink .feature-label { color: #d3ab52; background: rgba(20, 24, 26, .76); border-color: rgba(211, 171, 82, .32); }
.featured.ink .hero-english { color: #8b9088; }
.featured.ink .hero-subtitle { color: #d3ab52; }
.featured.ink .hero-description { color: #c2c7bc; }
.featured.ink .hero-play { color: #14181a; background: #f3f4ec; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.featured.ink .hero-play:hover { background: #ffffff; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.featured.ink .hero-detail { color: #c2c7bc; }
.featured.ink .hero-detail:hover { color: #f3f4ec; }
.featured.ink .featured-bottom { border-top-color: rgba(236, 238, 231, .16); }
.featured.ink .feature-tab { color: #8b9088; }
.featured.ink .feature-tab-number { color: #6f7570; }
.featured.ink .feature-tab:hover { color: #e2e5d8; }
.featured.ink .feature-tab.active { color: #f3f4ec; }
.featured.ink .feature-tab.active .feature-tab-number { color: #e2674d; }
.featured.ink .feature-tab.active i { background: #e2674d; box-shadow: none; }
.featured.ink .featured-note { color: rgba(236, 238, 231, .42); }
.scene-caption { position: absolute; top: 26px; right: 28px; display: flex; align-items: center; gap: 8px; color: rgba(235, 243, 225, 0.75); font-size: 10px; letter-spacing: 1px; background: rgba(14, 35, 26, 0.4); backdrop-filter: blur(8px); padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.08); }
.scene-caption .icon { width: 13px; height: 13px; }
.featured-content { position: relative; padding: 36px 42px 90px; z-index: 1; max-width: 620px; }
.feature-label { display: inline-flex; gap: 8px; align-items: center; color: #eedf9c; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; background: rgba(22, 54, 40, 0.6); backdrop-filter: blur(8px); padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(216, 202, 132, 0.25); }
.feature-label > span:first-child { width: 6px; height: 6px; background: #e5d076; border-radius: 50%; box-shadow: 0 0 6px rgba(229,208,118,.8); }
.label-line { height: 1px; width: 18px; background: rgba(225, 215, 160, 0.35); margin: 0 2px; }
.hero-english { margin-top: 24px; margin-bottom: 6px; color: #b1c4a2; font-size: 9px; letter-spacing: 3.5px; font-weight: 600; }
.featured h2 { font-family: var(--serif); font-size: 48px; font-weight: 700; line-height: 1.15; letter-spacing: 4px; text-shadow: 0 2px 14px rgba(0,0,0,.35); color: #fffef6; }
.hero-subtitle { color: #f0e4b8; font-size: 17px; font-family: var(--serif); margin-top: 10px; letter-spacing: 4px; font-weight: 500; }
.hero-description { margin-top: 16px; font-size: 13.5px; line-height: 1.85; color: #d6e0cc; letter-spacing: .4px; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.hero-play { color: #1e3321; background: #eadeb5; min-width: 156px; font-size: 13px; font-weight: 700; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.hero-play:hover { background: #f6edd0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.hero-play .icon:first-child { fill: currentColor; width: 15px; height: 15px; }
.hero-play .icon:last-child { margin-left: 10px; transition: transform .18s ease; }
.hero-play:hover .icon:last-child { transform: translateX(3px); }
.hero-detail { color: #d2dcc4; font-size: 12.5px; padding: 11px 8px; font-weight: 500; transition: color .18s ease, transform .18s ease; }
.hero-detail span { margin-left: 8px; }
.hero-detail:hover { color: #ffffff; transform: translateX(2px); }
.featured-bottom { position: absolute; left: 42px; right: 36px; bottom: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(214, 222, 192, 0.18); z-index: 1; }
.feature-tabs { display: flex; align-items: stretch; align-self: stretch; gap: 28px; }
.feature-tab { display: flex; align-items: center; gap: 10px; color: #9bb093; position: relative; font-size: 11px; font-weight: 500; padding: 0 2px; transition: color .18s ease; }
.feature-tab-number { font-size: 9.5px; color: #728a73; font-variant-numeric: tabular-nums; font-weight: 600; }
.feature-tab:hover { color: #d8e6cb; }
.feature-tab.active { color: #f5edd0; font-weight: 600; }
.feature-tab.active .feature-tab-number { color: #d8c78c; }
.feature-tab.active i { position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: #e3d298; box-shadow: 0 0 8px rgba(227, 210, 152, 0.7); }
.featured-note { color: rgba(206, 217, 192, 0.65); font-family: var(--serif); font-size: 12px; letter-spacing: 1px; }
.welcome-strip { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 70px; color: #5f7053; font-size: 12.5px; font-weight: 500; }
.welcome-strip > span:first-child { display: flex; align-items: center; gap: 10px; }
.welcome-strip .icon { width: 17px; height: 17px; color: #7a8e6b; }
.welcome-meta b { font-weight: 700; color: #354a2f; font-variant-numeric: tabular-nums; margin-right: 6px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; padding-bottom: 48px; }
.library-section { min-width: 0; scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; min-height: 38px; margin-bottom: 16px; gap: 12px; }
.section-heading > div { display: flex; align-items: baseline; gap: 12px; }
.section-heading h2 { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .6px; color: #1f3629; }
#result-count { font-size: 11.5px; color: #6e7d62; font-weight: 500; white-space: nowrap; }
.sort-field { position: relative; flex: 0 0 auto; }
.section-heading > .sort-field { display: block; }
.sort-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; min-width: 108px; padding: 8px 12px; border: 1px solid #dce4d2; border-radius: 8px; background: #ffffff; color: #536b44; font-size: 12px; font-weight: 500; box-shadow: 0 1px 3px rgba(34,53,43,0.04); transition: all .16s ease; }
.sort-trigger:hover, .sort-trigger[aria-expanded="true"] { background: #f3f7ed; border-color: #bdcead; color: #2c4f24; box-shadow: 0 3px 8px rgba(34,53,43,0.06); }
.sort-trigger .icon { width: 13px; height: 13px; transition: transform .2s ease; }
.sort-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sort-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: 168px; padding: 6px; border: 1px solid #d5dfcb; border-radius: 10px; background: #ffffff; box-shadow: 0 14px 34px rgba(34, 53, 43, 0.14), 0 2px 6px rgba(34, 53, 43, 0.05); }
.sort-menu:not([hidden]) { animation: sort-appear .18s cubic-bezier(.16,1,.3,1); }
.sort-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 40px; padding: 10px 12px; border-radius: 6px; font-size: 12.5px; color: #5c6c51; text-align: left; font-weight: 500; }
.sort-option + .sort-option { margin-top: 3px; }
.sort-option:hover, .sort-option:focus-visible { background: #f1f6eb; color: #284c20; }
.sort-option:focus-visible { outline: none; box-shadow: inset 0 0 0 1px #9ec082; }
.sort-option[aria-selected="true"] { background: #e4eedb; color: #2b5020; font-weight: 600; }
.sort-option .icon { width: 14px; height: 14px; visibility: hidden; color: #2b5020; }
.sort-option[aria-selected="true"] .icon { visibility: visible; }
@keyframes sort-appear { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.category-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-pill { padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 500; border: 1px solid #dbe2d4; background: #ffffff; color: #58674d; min-height: 36px; box-shadow: 0 1px 3px rgba(34,53,43,.03); transition: all .18s ease; }
.filter-pill span { margin-left: 8px; font-size: 10px; font-weight: 600; opacity: .75; background: #eaeee3; padding: 2px 6px; border-radius: 4px; }
.filter-pill.active { background: #e0ead7; color: #2b4c27; border-color: #cad8be; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 6px rgba(45,85,66,.08); }
.filter-pill.active span { background: #cfdec5; color: #1e381b; }
.filter-pill:hover:not(.active) { background: #f2f6ee; color: #294024; transform: translateY(-1px); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card { border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid #dce2d4; box-shadow: var(--shadow-card); transition: transform .24s cubic-bezier(.16,1,.3,1), box-shadow .24s cubic-bezier(.16,1,.3,1), border-color .24s ease; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #c4d3b8; }
.card-visual { aspect-ratio: 1.86; position: relative; background: #294d3c; overflow: hidden; }
.card-preview { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; overflow: hidden; }
.card-preview:focus-visible { outline-offset: -5px; }
.card-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.game-card:hover .card-preview img { transform: scale(1.04); }
.preview-hint { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 16px 14px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(transparent, #192c21bc); color: #faf9ec; font-size: 10px; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.preview-hint .icon { width: 15px; height: 15px; }
.card-preview:hover .preview-hint, .card-preview:focus-visible .preview-hint { opacity: 1; transform: translateY(0); }
.card-category { pointer-events: none; position: absolute; left: 12px; top: 12px; border-radius: 4px; font-size: 9px; padding: 6px 8px; display: inline-flex; gap: 5px; align-items: center; color: #f4f0da; background: #182c24bd; backdrop-filter: blur(8px); }
.card-category .icon { width: 12px; height: 12px; }
.favorite-button { position: absolute; top: 9px; right: 9px; color: #fbf8e8; width: 32px; height: 32px; background: #1c2b2394; backdrop-filter: blur(5px); border: 1px solid #f4f3e624; }
.favorite-button .icon { width: 15px; height: 15px; }
.favorite-button:hover { background: #315241; }
.favorite-button.selected { color: #f3d8a6; background: #2e493ddb; }
.favorite-button.selected .icon { fill: currentColor; }
.card-body { padding: 17px 17px 0; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card-title-row h3 { font-size: 19px; font-family: var(--serif); font-weight: 700; letter-spacing: 1px; }
.card-title-row h3 button { padding: 0; text-align: left; font: inherit; letter-spacing: inherit; color: #1c3629; transition: color .18s ease; }
.card-title-row h3 button:hover { color: #2d5d42; }
.game-availability { display: inline-flex; gap: 5px; align-items: center; color: #6f7f63; font-size: 8.5px; font-weight: 600; white-space: nowrap; background: #eaf1e4; padding: 2px 8px; border-radius: 12px; }
.game-availability i { width: 5px; height: 5px; background: #5c9d46; border-radius: 50%; box-shadow: 0 0 5px rgba(92,157,70,.6); }
.card-subtitle { color: #728267; letter-spacing: 1px; font-size: 11.5px; margin-top: 6px; font-weight: 500; }
.card-description { color: #586650; font-size: 13px; line-height: 1.85; margin-top: 12px; min-height: 48px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 16px; }
.card-tags span { color: #5d6d53; font-size: 10.5px; font-weight: 500; background: #eef3e9; border: 1px solid #e0e8d9; border-radius: 5px; padding: 4px 8px; }
.card-footer { border-top: 1px solid #eef2e7; display: flex; gap: 8px; align-items: center; justify-content: space-between; min-height: 54px; }
.card-footer > span { display: flex; gap: 7px; align-items: center; color: #6d7d63; font-size: 11px; font-weight: 500; }
.card-footer > span .icon { width: 14px; height: 14px; color: #7f9075; }
.card-play { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2d5542; font-weight: 700; padding: 12px 0 12px 10px; transition: color .18s ease; }
.card-play .icon { width: 15px; height: 15px; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.card-play:hover { color: #1a3a2a; }
.card-play:hover .icon { transform: translateX(4px); }
.discovery-aside { padding-left: 28px; border-left: 1px solid #dce2d4; }
.aside-heading { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.aside-heading h2 { font-family: var(--serif); font-size: 15px; font-weight: 700; color: #263e2e; letter-spacing: .5px; }
.aside-heading .icon { width: 16px; height: 16px; color: #879978; }
.recent-empty { text-align: center; padding: 18px 0 24px; }
.journey-art { width: 125px; height: 82px; margin: 0 auto 14px; position: relative; display: flex; justify-content: center; align-items: center; }
.journey-orbit { position: absolute; inset: 7px 0; border: 1px dashed #c6d0b9; transform: rotate(-18deg); border-radius: 50%; }
.journey-icon { position: relative; background: #e5ece0; color: #607954; width: 68px; height: 54px; border: 1px solid #d4decb; display: flex; align-items: center; justify-content: center; border-radius: 12px; transform: rotate(-10deg); box-shadow: 0 4px 12px rgba(34,53,43,0.08); }
.journey-icon .icon { width: 32px; height: 32px; stroke-width: 1.3; }
.journey-sun { position: absolute; right: 1px; top: -1px; font-size: 26px; color: #9eb181; }
.journey-dot { position: absolute; left: 8px; bottom: 3px; width: 6px; height: 6px; border-radius: 50%; background: #9bb084; }
.recent-empty h3 { color: #435b39; font-size: 13px; font-weight: 600; font-family: var(--serif); }
.recent-empty p { color: #6f7f65; font-size: 11.5px; line-height: 1.85; margin-top: 8px; }
.empty-trail { display: block; font-size: 8px; letter-spacing: 1.5px; color: #8fa083; margin-top: 20px; font-weight: 600; }
.empty-trail span { margin-left: 4px; font-size: 11px; }
.recent-game { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border-radius: 10px; margin-bottom: 8px; border: 1px solid #e0e7d9; background: #ffffff; box-shadow: 0 2px 6px rgba(34,53,43,0.04); transition: all .18s cubic-bezier(.16,1,.3,1); }
.recent-game:hover { transform: translateY(-2px); border-color: #c4d4ba; box-shadow: 0 6px 16px rgba(34,53,43,0.08); }
.recent-game img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid #d8e2cf; }
.recent-game > span { flex: 1; min-width: 0; }
.recent-game strong { display: block; font-size: 12.5px; font-weight: 600; color: #22372a; transition: color .16s ease; }
.recent-game small { display: block; font-size: 10px; color: #819076; margin-top: 5px; font-weight: 500; }
.recent-game .icon { width: 14px; height: 14px; color: #728a65; }
.recent-game:hover strong { color: #2d5542; }
.recent-all { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: #5d7450; padding: 14px 0 0; }
.recent-all .icon { width: 13px; height: 13px; transition: transform .18s ease; }
.recent-all:hover .icon { transform: translateX(3px); }
.note-panel { position: relative; background: #e9efdf; border: 1px solid #d5dfc9; border-radius: 11px; margin-top: 24px; padding: 22px 20px 20px; overflow: hidden; box-shadow: 0 2px 8px rgba(34,53,43,0.04); }
.note-icon { position: absolute; right: 16px; top: 16px; color: #9bb088; transform: rotate(12deg); opacity: .7; }
.note-icon .icon { width: 26px; height: 26px; stroke-width: 1.4; }
.note-panel .eyebrow { font-size: 8px; letter-spacing: 1.6px; color: #788a6c; }
.note-panel h2 { font-family: var(--serif); font-size: 18px; letter-spacing: .5px; color: #375330; line-height: 1.55; margin: 12px 0 10px; font-weight: 700; }
.note-panel > p:not(.eyebrow) { color: #586b4e; font-size: 11.5px; line-height: 1.85; }
.note-panel .text-button { margin-top: 16px; color: #3b5a32; font-size: 11.5px; gap: 8px; font-weight: 700; }
.note-panel .text-button .icon { width: 13px; height: 13px; }
.empty-state { min-height: 340px; border: 1px dashed #cbd6c0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; background: #f2f5ec; }
.empty-state > [data-icon] { color: #8da27d; margin-bottom: 18px; }
.empty-state > [data-icon] .icon { width: 36px; height: 36px; stroke-width: 1.3; }
.empty-state h3 { font-size: 19px; font-family: var(--serif); font-weight: 700; color: #2d4634; margin-bottom: 10px; }
.empty-state p { color: #6f8067; font-size: 13px; line-height: 1.8; max-width: 380px; }
.empty-state .button { margin-top: 24px; font-size: 12.5px; }
.site-footer { border-top: 1px solid #dce2d4; padding: 28px 0 32px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: #788770; font-weight: 500; }
.site-footer > span { display: flex; align-items: center; gap: 8px; }
.footer-mark .icon { width: 17px; height: 17px; color: #5c7952; }
.footer-separator { margin: 0 6px; color: #bdc8b4; }
.site-footer > span:last-child { font-size: 8px; letter-spacing: 1.2px; font-weight: 600; }
.footer-spark { font-size: 16px; color: #72965c; padding-left: 2px; }
.info-dialog { width: min(680px, calc(100% - 32px)); max-height: 88dvh; padding: 0; border: 1px solid #d8e2ce; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 100px rgba(10, 30, 20, 0.45); scrollbar-gutter: stable; overscroll-behavior: contain; }
.info-dialog::backdrop { background: rgba(12, 28, 20, 0.65); backdrop-filter: blur(8px); }
.dialog-open { overflow: hidden; }
.dialog-close { position: sticky; top: 16px; float: right; margin: 16px 16px -52px 0; z-index: 2; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); color: #2e4732; box-shadow: 0 3px 12px rgba(10, 35, 20, 0.18); border: 1px solid #d7e0ce; }
.dialog-close:hover { background: #e5eedc; }
.detail-cover { height: 230px; position: relative; background: #224330; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(18, 43, 29, 0.85)); }
.detail-badge { position: absolute; left: 28px; bottom: 20px; z-index: 1; color: #fcf9ec; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; background: rgba(18, 43, 29, 0.6); backdrop-filter: blur(8px); padding: 5px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.15); }
.detail-badge .icon { width: 15px; height: 15px; }
.detail-body, .guide-body { padding: 32px; }
.detail-body > .eyebrow { font-size: 9.5px; margin-bottom: 8px; color: #768a68; }
.detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.detail-title-row h2 { min-width: 0; }
.detail-title-row > .button { flex-shrink: 0; white-space: nowrap; }
.detail-body h2, .guide-body h2 { font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1.4; letter-spacing: 1.5px; color: #183324; }
.detail-body h2 span { display: inline-block; font-family: var(--sans); font-size: 13px; color: #7b9168; font-weight: 500; margin-left: 14px; letter-spacing: 2px; }
.detail-intro { font-size: 13px; color: #5f7451; line-height: 1.85; margin-top: 14px; }
.detail-facts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 0; margin: 24px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts > div { display: flex; flex-direction: column; align-items: center; gap: 6px; border-right: 1px solid var(--line); }
.detail-facts > div:last-child { border: 0; }
.detail-facts strong { font-family: Georgia, serif; font-size: 30px; font-weight: 700; color: #3d6632; }
.detail-facts span { color: #7a8c6c; font-size: 10.5px; font-weight: 600; }
.detail-body h3, .guide-body h3 { font-family: var(--serif); font-size: 16px; margin: 26px 0 14px; font-weight: 700; color: #223c2a; }
.highlight-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.highlight-list li { display: flex; align-items: baseline; gap: 10px; font-size: 13px; line-height: 1.8; color: #55694a; }
.highlight-list .icon { width: 14px; height: 14px; color: #62914c; }
.detail-tip { font-size: 12.5px; line-height: 1.85; color: #5a704e; }
.controls-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 16px 0 0; }
.controls-list > div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf1e6; gap: 12px; }
.controls-list dt kbd { font: 11px/1 var(--sans); font-weight: 600; background: #f2f5ec; color: #496837; border: 1px solid #d2dcc8; border-bottom-width: 2px; border-radius: 4px; padding: 4px 7px; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.controls-list dd { margin: 0; font-size: 11px; color: #728267; text-align: right; font-weight: 500; }
.save-note { background: #edf4e6; border: 1px solid #dbe6d1; border-radius: 8px; padding: 16px; margin-top: 24px; display: flex; gap: 12px; color: #557242; }
.save-note .icon { width: 18px; height: 18px; margin-top: 2px; color: #456b32; }
.save-note p { font-size: 11px; line-height: 1.85; color: #4b6639; }
.screenshot-disclosure { margin-top: 22px; color: #506f3e; font-size: 12px; border: 1px solid #d8e2ce; border-radius: 8px; background: #f7faf2; }
.screenshot-disclosure summary { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 14px 16px; border-radius: 8px; list-style: none; font-weight: 600; transition: color .16s, background .16s; }
.screenshot-disclosure summary::marker { content: ""; }
.screenshot-disclosure summary::-webkit-details-marker { display: none; }
.screenshot-disclosure summary:hover { color: #224b17; background: #edf5e3; }
.screenshot-disclosure summary .icon { width: 16px; height: 16px; }
.screenshot-disclosure summary .icon:last-child { margin-left: auto; width: 13px; height: 13px; transition: transform .18s; }
.screenshot-disclosure[open] summary .icon:last-child { transform: rotate(180deg); }
.screenshot-disclosure img { width: calc(100% - 24px); margin: 0 12px 14px; border: 1px solid #d0ddc4; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.detail-action { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.detail-action > span { font-size: 11px; color: #7f8e75; font-weight: 500; }
.guide-body { padding: 44px 36px 36px; }
.guide-emblem { width: 56px; height: 56px; background: #e0edd5; color: #588042; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(60,110,40,0.12); }
.guide-emblem .icon { width: 28px; height: 28px; }
.guide-body .eyebrow { margin-bottom: 8px; font-size: 9.5px; color: #778f69; }
.guide-body h2 { font-size: 27px; }
.guide-body > p:not(.eyebrow), .guide-body li { font-size: 13px; line-height: 1.85; color: #556c49; }
.guide-body ol { padding-left: 22px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 15px); max-width: calc(100% - 36px); padding: 13px 22px; color: #f9f8ee; background: #1c3d28f8; font-size: 12.5px; font-weight: 500; line-height: 1.6; border-radius: 8px; z-index: 100; opacity: 0; pointer-events: none; box-shadow: 0 10px 32px rgba(10, 36, 18, 0.35); border: 1px solid rgba(255,255,255,0.1); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-note { position: fixed; bottom: 0; left: 0; right: 0; padding: 15px; background: #ede7bd; text-align: center; z-index: 200; }
.noscript-note a { text-decoration: underline; }
/* The player keeps each game's own viewport, styles and keyboard controls intact. */
.player-page { background: #0e1e18; color-scheme: dark; }
.player-shell { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.player-toolbar { min-height: 58px; height: 58px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 22px; background: #f2f3eb; color: #465a3d; border-bottom: 1px solid #d7dfca; color-scheme: light; }
.player-back { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; min-height: 42px; white-space: nowrap; }
.player-back img { width: 28px; height: 28px; margin-right: 3px; }
.player-back .icon { width: 15px; height: 15px; }
.player-title { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 17px; min-width: 0; }
.player-title small { font-family: var(--sans); font-size: 10px; color: #8a997c; }
.player-tools { display: flex; align-items: center; gap: 8px; }
.player-tools .tool-button { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 38px; padding: 0 11px; border: 1px solid #d7dfcd; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.player-tools .tool-button:hover { background: #e4ecd9; }
.player-tools .icon { width: 15px; height: 15px; }
.player-stage { position: relative; flex: 1; min-height: 0; }
.game-frame { width: 100%; height: 100%; border: 0; display: block; background: #14251f; }
.player-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; gap: 16px; color: #e4e9d2; background: #142b21; }
.player-state > .icon { width: 40px; height: 40px; color: #b5c48a; stroke-width: 1.2; }
.player-state h1 { font-family: var(--serif); font-size: 29px; letter-spacing: 2px; }
.player-state p { color: #8fa781; line-height: 1.8; font-size: 12px; max-width: 410px; }
.player-state .button { color: #1c3b27; background: #d9e3bb; margin-top: 8px; }
.player-state .error-actions { display: flex; gap: 12px; }
.player-page .info-dialog { color-scheme: light; }
.loading-symbol { animation: breathe 1.4s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .45; transform: translateY(2px); } to { opacity: 1; transform: translateY(-2px); } }
/* AI 游玩面板浮在游戏画面上，不改变游戏自己的布局。 */
.ai-panel { position: absolute; top: 14px; right: 14px; bottom: 14px; width: 342px; max-width: calc(100% - 28px); display: flex; flex-direction: column; gap: 10px; padding: 14px; color: #22352b; background: #f6f5f0f7; border: 1px solid #d7dfca; border-radius: 10px; box-shadow: 0 18px 44px rgba(10, 30, 20, .32); color-scheme: light; z-index: 5; }
.ai-panel[hidden] { display: none; }
.ai-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ai-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #7d8b72; }
.ai-eyebrow .icon { width: 13px; height: 13px; color: var(--gold); }
.ai-panel-head strong { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; line-height: 1.6; color: #465a3d; }
.ai-panel-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.ai-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 100%; font-size: 10.5px; color: #7d8b72; }
.ai-field.short { flex: 1 1 74px; }
.ai-field select, .ai-field input { min-height: 34px; padding: 0 9px; font: inherit; font-size: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; }
.ai-field select:focus-visible, .ai-field input:focus-visible, .ai-panel button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.ai-run, .ai-stop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 13px; font-size: 12px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; }
.ai-run { flex: 1 1 120px; color: #f7f8ef; background: var(--green); }
.ai-run:hover:not(:disabled) { background: var(--green-hover); }
.ai-stop { color: #6b4a3a; background: #f2e7e0; border-color: #e0cdc2; }
.ai-stop:hover:not(:disabled) { background: #eadbd2; }
.ai-run:disabled, .ai-stop:disabled { opacity: .5; cursor: not-allowed; }
.ai-run .icon, .ai-stop .icon { width: 14px; height: 14px; }
.ai-note { font-size: 11px; line-height: 1.7; color: var(--muted); }
.ai-config-toggle { flex: 1 1 100%; min-height: 30px; font-size: 11.5px; color: #465a3d; background: transparent; border: 1px dashed var(--line-strong); border-radius: 5px; cursor: pointer; }
.ai-config-toggle:hover { background: var(--green-subtle); }
.ai-config { display: flex; flex-direction: column; gap: 9px; padding: 11px; max-height: 48%; overflow-y: auto; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 8px; }
.ai-config[hidden] { display: none; }
.ai-config-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.ai-config-head b { font-size: 11.5px; color: var(--ink); }
.ai-config-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-config-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ai-config-actions button { min-height: 31px; padding: 0 11px; font-size: 11.5px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.ai-config-actions .ai-test { color: #4b5f3d; border-color: #b9c9a4; background: var(--green-subtle); }
.ai-config-actions .ai-save { color: #f7f8ef; background: var(--green); border-color: transparent; }
.ai-config-actions .ai-cancel:hover:not(:disabled) { background: var(--green-subtle); }
.ai-config-actions button:disabled { opacity: .45; cursor: not-allowed; }
.ai-config-status { font-size: 11px; line-height: 1.65; color: var(--muted); word-break: break-word; }
.ai-config-status.failed { color: #a8563f; }
.ai-log { flex: 1; min-height: 110px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; margin: -2px 0 0; list-style: none; }
.ai-entry { padding: 9px 10px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 6px; }
.ai-entry.failed { border-left-color: #b96c51; }
.ai-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.ai-entry-head b { font-size: 11.5px; color: var(--ink); }
.ai-entry-choice { margin-top: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.ai-entry-meta, .ai-entry-note { margin-top: 4px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.ai-entry-note { color: #465a3d; }
@media (max-width: 760px) {
  .player-toolbar { height: auto; flex-wrap: wrap; padding: 8px 14px; gap: 10px; }
  .player-tools .tool-label { display: none; }
  .ai-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 62%; }
}
@media (min-width: 1600px) {
  .main-shell { padding: 0 56px; }
  .featured { min-height: 420px; }
  .featured-content { padding: 42px 46px 95px; }
  .featured h2 { font-size: 54px; }
  .hero-description { font-size: 13px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 276px; gap: 35px; }
  .card-description { font-size: 12px; }
  .card-visual { aspect-ratio: 1.98; }
}
@media (max-width: 1250px) {
  .sidebar { width: 185px; padding-left: 15px; padding-right: 15px; }
  .main-shell { margin-left: 185px; padding: 0 28px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 22px; }
  .discovery-aside { padding-left: 20px; }
  .topbar-actions { gap: 10px; }
  .search-field { width: 215px; }
  .card-body { padding: 15px 13px 0; }
  .card-title-row h3 { font-size: 17px; }
  .game-availability { display: none; }
  .card-description { min-height: 62px; }
  .scene-caption { display: none; }
  .note-panel { padding: 18px 14px 15px; }
  .note-panel .eyebrow { font-size: 6px; }
  .note-icon { right: 11px; top: 27px; }
}
@media (max-width: 1050px) {
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .discovery-aside { padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 8px; }
  .recent-panel { border: 1px solid #e0e5d6; border-radius: 7px; padding: 17px 20px; }
  .recent-empty { padding-bottom: 0; }
  .journey-art { height: 65px; margin-top: -4px; }
  .empty-trail { display: none; }
  .recent-empty p { margin-top: 7px; }
  .note-panel { margin: 0; padding: 23px 20px; }
  .note-panel .eyebrow { font-size: 7px; }
  .note-panel h2 { margin-top: 17px; }
  .card-description { min-height: 42px; }
  .random-button { width: 43px; padding: 0; }
  .random-button > span:last-child { display: none; }
  .hero-image { width: 100%; right: -15%; }
  .featured-note { display: none; }
  .site-footer > span:last-child { display: none; }
  .player-title small { display: none; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 17px 20px 0; border-right: 0; border-bottom: 1px solid #dce2d0; overflow: visible; display: grid; grid-template-columns: 1fr auto; }
  .brand { margin: 0 0 17px; padding: 0; gap: 9px; }
  .brand img { width: 32px; height: 32px; }
  .brand > span { font-size: 22px; }
  .brand small { font-size: 6px; margin-top: 5px; }
  .sidebar > .nav-caption, .sidebar-categories, .side-note, .sidebar-foot { display: none; }
  .sidebar-bottom { margin: 0; padding: 0; grid-column: 2; grid-row: 1; }
  .help-link { width: 38px; min-height: 38px; justify-content: center; padding: 0; }
  .help-link > span:not(:first-child) { display: none; }
  .main-nav { display: flex; grid-column: 1/-1; gap: 25px; }
  .main-nav .nav-item { width: auto; border-radius: 0; font-size: 12px; padding: 13px 0; position: relative; gap: 8px; min-height: 44px; }
  .main-nav .nav-item.active { background: none; color: var(--green); box-shadow: none; }
  .main-nav .nav-item.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; background: var(--green); height: 2px; }
  .nav-item.active .nav-count { background: #d9e3cb; color: var(--green); }
  .nav-count { font-size: 9px; min-width: 17px; min-height: 17px; }
  .main-nav .nav-item .icon { width: 15px; height: 15px; }
  .main-shell { margin: 0; padding: 0 20px; }
  .topbar { min-height: 106px; gap: 16px; padding: 21px 0; align-items: center; }
  .page-heading .eyebrow { font-size: 6px; letter-spacing: 1.2px; margin-bottom: 6px; }
  .page-heading h1 { font-size: 21px; }
  .search-field { width: 200px; height: 40px; gap: 8px; padding: 0 10px; }
  .search-field input { font-size: 11px; }
  .search-field kbd { display: none; }
  .topbar-actions { gap: 7px; }
  .random-button { width: 40px; min-height: 40px; }
  .featured { min-height: 360px; border-radius: 9px; }
  .featured-content { padding: 28px 25px 86px; }
  .featured h2 { font-size: 40px; letter-spacing: 3px; }
  .hero-english { letter-spacing: 2px; font-size: 7px; margin-top: 25px; }
  .hero-subtitle { font-size: 15px; }
  .hero-description { font-size: 12px; margin-top: 17px; }
  .hero-shade { background: linear-gradient(90deg, #15372d 0%, #15372de0 24%, #15372d61 88%), linear-gradient(0deg, #15372d 0%, transparent 70%); }
  .hero-image { width: 125%; right: -38%; opacity: .6; }
  .hero-actions { gap: 20px; margin-top: 22px; }
  .hero-play { min-width: 138px; font-size: 11px; }
  .hero-play .icon:last-child { margin-left: 7px; }
  .featured-bottom { left: 25px; right: 25px; height: 56px; }
  .feature-tabs { gap: 25px; }
  .feature-tab { min-height: 44px; font-size: 10px; }
  .welcome-strip { min-height: 64px; font-size: 10px; }
  .welcome-meta { display: none; }
  .section-heading h2 { font-size: 18px; }
  .section-heading { margin-bottom: 12px; }
  .filter-pill { min-height: 38px; font-size: 11px; }
  .sort-trigger { min-height: 40px; }
  .sort-option { min-height: 44px; }
  .search-clear { width: 30px; height: 30px; }
  .category-filters { margin-bottom: 18px; }
  .game-grid { gap: 16px; }
  .favorite-button { width: 36px; height: 36px; }
  .card-tags { gap: 5px; }
  .card-description { min-height: 62px; }
  .site-footer { font-size: 9px; justify-content: center; padding-bottom: 25px; }
  .info-dialog { max-height: 92dvh; }
  .detail-cover { height: 180px; }
  .detail-body, .guide-body { padding: 26px 22px; }
  .detail-body h2 { font-size: 27px; }
  .detail-body h2 span { display: block; margin: 6px 0 0; font-size: 11px; }
  .detail-title-row { align-items: flex-start; gap: 12px; }
  .detail-title-row > .button { gap: 7px; padding-inline: 12px; font-size: 12px; }
  .detail-title-row > .button .icon { width: 15px; height: 15px; }
  .controls-list { grid-template-columns: 1fr; }
  .detail-action { gap: 13px; flex-wrap: wrap; }
  .guide-body h2 { font-size: 21px; }
  .player-toolbar { height: 52px; min-height: 52px; padding: 0 12px; gap: 10px; }
  .player-back img { display: none; }
  .player-back { gap: 6px; font-size: 11px; }
  .player-title { font-size: 15px; }
  .player-tools { gap: 6px; }
  .player-tools .tool-button { min-width: 37px; min-height: 38px; padding: 0 7px; }
  .player-tools .tool-label { display: none; }
}
@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; row-gap: 17px; padding: 24px 0 20px; }
  .page-heading { width: 100%; }
  .page-heading .eyebrow { font-size: 7px; }
  .page-heading h1 { font-size: 25px; }
  .topbar-actions { width: 100%; gap: 9px; }
  .search-field { flex: 1; height: 42px; }
  .search-field input { font-size: 12px; }
  .random-button { width: auto; padding: 0 12px; min-height: 42px; font-size: 11px; gap: 7px; }
  .random-button > span:last-child { display: inline; }
  .featured-content { padding-left: 23px; padding-right: 20px; }
  .featured h2 { font-size: 36px; }
  .feature-label { font-size: 7px; gap: 6px; letter-spacing: .6px; }
  .hero-description { font-size: 11px; line-height: 2; }
  .game-grid { grid-template-columns: 1fr; gap: 23px; }
  .card-visual { aspect-ratio: 1.85; }
  .card-body { padding: 19px 19px 0; }
  .card-title-row h3 { font-size: 22px; }
  .game-availability { display: inline-flex; font-size: 9px; }
  .card-subtitle { font-size: 10px; margin-top: 6px; }
  .card-description { min-height: 0; font-size: 12px; line-height: 1.9; }
  .card-tags { margin-bottom: 15px; }
  .card-tags span { font-size: 10px; padding: 4px 7px; }
  .card-footer { min-height: 59px; }
  .card-footer > span { font-size: 10px; }
  .card-play { font-size: 12px; }
  .card-category { font-size: 10px; }
  .discovery-aside { grid-template-columns: 1fr; gap: 18px; }
  .recent-panel { padding: 20px; }
  .recent-empty { padding: 18px 0 9px; }
  .recent-empty h3 { font-size: 12px; }
  .recent-empty p { font-size: 11px; }
  .note-panel { padding: 24px; }
  .note-panel > p:not(.eyebrow) { font-size: 11px; }
  .note-panel .text-button { font-size: 11px; min-height: 35px; }
  .main-nav { gap: 20px; }
  .main-nav .nav-item { font-size: 11px; gap: 6px; }
  .player-title { font-size: 13px; }
  .player-tools .tool-button { width: 36px; min-width: 36px; }
  .player-back { font-size: 10px; }
  .player-back .icon { width: 13px; height: 13px; }
  .player-tools { gap: 4px; }
  .player-toolbar { padding: 0 9px; gap: 6px; }
  .toast { font-size: 11px; bottom: 20px; text-align: center; }
}
@media (max-width: 350px) {
  .main-shell { padding: 0 14px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .main-nav { gap: 14px; }
  .featured h2 { font-size: 32px; }
  .feature-label { letter-spacing: 0; }
  .hero-actions { gap: 13px; }
  .hero-play { min-width: 125px; padding-left: 12px; padding-right: 12px; }
  .detail-title-row { gap: 10px; }
  .detail-title-row h2 { font-size: 22px; letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
