@font-face {
  font-family:ShelfDisplay;
  src:local("Avenir Next");
  font-display:swap
}
:root {
  --paper:#edf2f7;
  --white:#fff;
  --ink:#24374b;
  --muted:#708297;
  --line:#d9e2eb;
  --red:#df4d51;
  --red-soft:#fcebec;
  --blue:#426c99;
  --shadow:0 6px 24px #24374b08;
  --radius:14px;
  font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
  font-size:14px;
  -webkit-font-smoothing:antialiased
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select {
  font:inherit
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
button {
  color:inherit
}
button:disabled {
  cursor:default;
  opacity:.45
}
svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #376cae;
  outline-offset:4px
}
button,input,select {
  border-radius:0
}
button {
  border:0
}
img {
  max-width:100%;
  display:block
}
button img {
  pointer-events:none
}
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
.skip-link {
  position:fixed;
  z-index:100;
  top:-80px;
  left:20px;
  background:var(--ink);
  color:#fff;
  padding:14px 24px;
  border-radius:8px
}
.skip-link:focus {
  top:16px
}
.modal-open {
  overflow:hidden
}
.site-header {
  height:88px;
  border-bottom:1px solid #dce4ed;
  background:#f7f9fc
}
.header-inner {
  max-width:1440px;
  margin:0 auto;
  padding:0 56px;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap
}
.brand-mark {
  width:36px;
  height:36px;
  color:var(--red);
  stroke:none
}
.brand>span {
  font-weight:750;
  font-size:19px;
  letter-spacing:1px;
  line-height:1.3
}
.brand small {
  display:block;
  font:700 8px/1.6 ShelfDisplay,Arial,sans-serif;
  letter-spacing:3.5px;
  color:var(--muted);
  margin-top:3px
}
.main-nav {
  display:flex;
  height:100%;
  gap:36px;
  align-items:center
}
.nav-item {
  position:relative;
  background:transparent;
  height:100%;
  font-weight:600;
  font-size:14px;
  color:#77889a;
  padding:0 3px;
  white-space:nowrap
}
.nav-item.active {
  color:var(--ink)
}
.nav-item.active:after {
  position:absolute;
  content:"";
  height:3px;
  border-radius:3px 3px 0 0;
  bottom:0;
  left:0;
  right:0;
  background:var(--red)
}
.nav-item span {
  font:600 10px ShelfDisplay,Arial,sans-serif;
  min-width:20px;
  height:20px;
  border-radius:5px;
  background:#e8eef4;
  color:#73859b;
  display:inline-grid;
  place-items:center;
  margin-left:4px;
  padding:0 5px
}
.random-button {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  font-weight:650;
  background:#fff;
  border:1px solid var(--line);
  padding:10px 14px;
  border-radius:9px;
  box-shadow:0 2px 4px #24374b03;
  white-space:nowrap;
  transition:background .2s
}
.random-button svg {
  width:17px;
  height:17px;
  stroke-width:1.7
}
.random-button svg circle {
  fill:currentColor;
  stroke:none
}
.random-button:hover {
  background:var(--red-soft);
  border-color:#efd2d4
}
.page-shell {
  max-width:1440px;
  margin:auto;
  padding:47px 56px 0
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  margin:0 0 31px
}
.eyebrow {
  font:750 9px/1.5 ShelfDisplay,Arial,sans-serif;
  letter-spacing:2.6px;
  color:var(--muted);
  margin:0 0 11px
}
.intro h1 {
  font-size:37px;
  font-weight:750;
  line-height:1.3;
  letter-spacing:1.3px;
  margin:0 0 12px
}
.title-dot {
  color:var(--red);
  margin-left:1px
}
.intro-copy {
  font-size:13px;
  line-height:1.7;
  color:#7a8c9f;
  margin:0
}
.library-totals {
  display:flex;
  align-items:center;
  gap:14px;
  text-align:left;
  padding:12px 0 12px 30px;
  border-left:1px solid #d8e1ea;
  min-width:210px
}
.library-totals>strong {
  font:600 49px/.95 ShelfDisplay,Arial,sans-serif;
  letter-spacing:-2px
}
.library-totals>span {
  font-size:12px;
  font-weight:600;
  padding-top:5px
}
.library-totals small {
  display:block;
  font-weight:400;
  font-size:10px;
  color:#8091a3;
  margin-top:8px;
  white-space:nowrap
}
.spotlights {
  display:grid;
  grid-template-columns:1.67fr 1fr;
  gap:18px;
  height:360px
}
.hero-placeholder {
  height:100%;
  display:grid;
  place-items:center;
  color:#7d91a5;
  grid-column:1/-1;
  background:#e3eaf1;
  border-radius:var(--radius)
}
.main-spotlight {
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  padding:0;
  text-align:left;
  color:#fff;
  background:#244840
}
.hero-art {
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:60% center;
  transition:transform .6s
}
.hero-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(13,40,40,.9) 0%,rgba(13,40,40,.62) 32%,rgba(13,40,40,.04) 85%),linear-gradient(0deg,#0e26272e,transparent 40%)
}
.hero-content {
  position:relative;
  display:block;
  z-index:1;
  padding:28px 32px;
  height:100%
}
.spotlight-label {
  font-size:9px;
  letter-spacing:1.2px;
  display:flex;
  align-items:center;
  gap:7px;
  color:#e7f7eb
}
.spotlight-label>span {
  width:5px;
  height:5px;
  background:#e1b96e;
  border-radius:50%
}
.hero-kicker {
  display:block;
  font:500 9px ShelfDisplay,Arial,sans-serif;
  letter-spacing:2px;
  color:#fff9;
  margin-top:25px
}
.hero-content>strong {
  display:block;
  font-size:34px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:2px;
  margin:7px 0 12px
}
.hero-description {
  display:block;
  font-size:10px;
  color:#e6eeecc4;
  line-height:1.9;
  letter-spacing:.5px
}
.hero-cta {
  display:inline-flex;
  gap:17px;
  align-items:center;
  font-size:10px;
  font-weight:650;
  padding:10px 15px;
  background:#fff;
  color:#2b4b48;
  border-radius:6px;
  margin-top:18px
}
.hero-cta svg {
  width:17px;
  height:17px;
  stroke-width:1.8
}
.hero-caption {
  position:absolute;
  bottom:20px;
  right:24px;
  font:500 8px ShelfDisplay,Arial,sans-serif;
  letter-spacing:.9px;
  color:#fff9
}
.main-spotlight:hover .hero-art {
  transform:scale(1.025)
}
.side-spotlights {
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:18px;
  min-width:0
}
.side-spotlight {
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  text-align:left;
  padding:0;
  background:#a6c9bd
}
.side-spotlight>img {
  position:absolute;
  inset:0;
  object-fit:cover;
  width:100%;
  height:100%;
  object-position:63% center;
  transition:transform .5s
}
.side-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(224,243,226,.97),rgba(217,239,225,.83) 28%,rgba(218,237,226,.1) 86%)
}
.side-copy {
  display:flex;
  flex-direction:column;
  position:relative;
  z-index:1;
  height:100%;
  justify-content:center;
  padding:25px 28px;
  color:#36584f
}
.side-copy small {
  font-size:9px;
  letter-spacing:1.5px;
  margin-bottom:8px
}
.side-copy strong {
  font-size:23px;
  letter-spacing:1.2px;
  font-weight:750;
  line-height:1.5
}
.side-copy>span {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:9px;
  margin-top:9px;
  color:#506f64
}
.side-copy svg {
  width:14px;
  height:14px
}
.party .side-shade {
  background:linear-gradient(90deg,rgba(219,233,248,.97),rgba(215,232,247,.83) 28%,rgba(218,234,249,.08) 86%)
}
.party .side-copy {
  color:#365a80
}
.party .side-copy>span {
  color:#52789f
}
.side-spotlight:hover>img {
  transform:scale(1.04)
}
.library {
  padding-top:43px;
  scroll-margin-top:24px
}
.section-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px
}
.section-heading .eyebrow {
  font-size:8px;
  margin-bottom:5px;
  letter-spacing:2px
}
.section-heading h2 {
  font-size:23px;
  letter-spacing:.7px;
  margin:0;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px
}
.section-heading h2>span {
  font:600 11px ShelfDisplay,Arial,sans-serif;
  letter-spacing:0;
  background:#dfe7ef;
  padding:5px 8px;
  border-radius:6px;
  color:#6a7f94
}
.update-date {
  color:#8495a6;
  font-size:9px;
  margin-bottom:4px
}
.update-date time {
  font-family:ShelfDisplay,Arial,sans-serif;
  margin-left:5px
}
.library-toolbar {
  display:flex;
  gap:10px;
  align-items:stretch
}
.search-box {
  flex:1;
  display:flex;
  min-width:180px;
  align-items:center;
  gap:11px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 14px;
  min-height:46px;
  transition:border-color .2s
}
.search-box:focus-within {
  border-color:var(--blue);
  box-shadow:0 0 0 3px #426c9914
}
.search-box svg {
  width:18px;
  height:18px;
  stroke:#8698a9
}
.search-box input {
  border:0;
  background:transparent;
  outline:none;
  color:var(--ink);
  min-width:0;
  width:100%;
  font-size:11px;
  padding:13px 0
}
/* 保留页面的清空按钮，避免与浏览器内置的搜索清除按钮重复。 */
.search-box input::-webkit-search-cancel-button {
  -webkit-appearance:none;
  appearance:none
}
.search-box input:focus-visible {
  outline:none
}
.search-box input::placeholder {
  color:#9aa9b9
}
.search-box kbd {
  font:10px ShelfDisplay,Arial,sans-serif;
  border:1px solid #e2e8ef;
  border-radius:4px;
  padding:2px 5px;
  color:#9aa9b7;
  background:#fafbfd
}
.search-box #clear-search {
  flex-shrink:0;
  min-width:32px;
  min-height:40px;
  background:transparent;
  color:var(--muted);
  font-size:20px
}
.discovery-panel {
  margin-bottom:24px
}
.category-heading {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
  font-size:12px;
  color:#58728b
}
.category-heading small {
  font-size:10px;
  color:#8398ab
}
.discovery-panel .genre-filters {
  margin:12px 0 0;
  padding-inline:0
}
.discovery-panel .active-filters {
  margin:12px 0 0;
  flex-wrap:wrap
}
.genre-chip span {
  margin-left:4px;
  font:10px ShelfDisplay,Arial,sans-serif;
  opacity:.75
}
#spotlights[hidden]+.library {
  padding-top:8px
}
.select-box {
  display:flex;
  gap:10px;
  align-items:center;
  padding:0 12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  font-size:10px;
  white-space:nowrap
}
.select-box>span {
  color:#98a6b6;
  border-right:1px solid #e4e9ef;
  padding-right:10px
}
.select-box select {
  border:0;
  color:#586e85;
  background:transparent;
  max-width:180px;
  min-height:44px;
  font-size:10px;
  padding-right:5px
}
.view-switch {
  display:flex;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  padding:4px;
  gap:3px
}
.view-switch button {
  width:34px;
  border-radius:5px;
  background:transparent;
  color:#9eacba;
  display:grid;
  place-items:center
}
.view-switch button.active {
  background:#eaf0f6;
  color:#4c7095
}
.view-switch svg {
  width:17px;
  height:17px;
  stroke-width:1.6
}
.genre-filters {
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin:16px 0 24px
}
.genre-chip {
  border:1px solid #d9e3ec;
  background:transparent;
  white-space:nowrap;
  border-radius:7px;
  color:#71869a;
  font-size:10px;
  padding:8px 13px;
  line-height:1.3;
  transition:background .2s
}
.genre-chip.active {
  background:var(--ink);
  border-color:var(--ink);
  color:#fff
}
.genre-chip:hover:not(.active) {
  background:#fff
}
.active-filters {
  margin:-7px 0 21px;
  font-size:11px;
  display:flex;
  align-items:center;
  gap:14px;
  color:#647b90
}
.active-filters button {
  padding:4px 0;
  background:transparent;
  color:var(--red);
  font-size:11px;
  text-decoration:underline;
  text-underline-offset:4px
}
.game-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:25px 20px
}
.game-card {
  min-width:0;
  position:relative;
  background:#fff;
  border:1px solid #dce4ec;
  border-radius:12px;
  box-shadow:var(--shadow);
  transition:transform .22s,box-shadow .22s
}
.game-card:hover {
  transform:translateY(-3px);
  box-shadow:0 9px 24px #24374b11
}
.game-cover {
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:11px 11px 0 0;
  aspect-ratio:16/9;
  background:#dce6ef
}
.game-cover>img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s
}
.game-card:hover .game-cover>img {
  transform:scale(1.035)
}
.collection-badge {
  position:absolute;
  bottom:8px;
  left:9px;
  background:#21394ccf;
  backdrop-filter:blur(5px);
  border:1px solid #ffffff30;
  color:#fff;
  padding:4px 7px;
  font-size:8px;
  border-radius:4px
}
.cover-arrow {
  position:absolute;
  bottom:10px;
  right:10px;
  background:#ffffffeb;
  border-radius:50%;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  opacity:0;
  transform:translateX(-5px);
  transition:opacity .2s,transform .2s
}
.cover-arrow svg {
  width:16px;
  height:16px
}
.game-card:hover .cover-arrow {
  opacity:1;
  transform:none
}
.favorite-button {
  position:absolute;
  top:9px;
  right:9px;
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  background:#ffffffee;
  color:#6d8296;
  border-radius:50%;
  box-shadow:0 2px 7px #0001;
  transition:color .2s,background .2s
}
.favorite-button svg {
  width:14px;
  height:14px;
  stroke-width:1.6
}
.favorite-button:hover {
  color:var(--red);
  background:#fff
}
.favorite-button.is-favorite {
  color:var(--red);
  background:var(--red-soft)
}
.favorite-button.is-favorite svg {
  fill:currentColor;
  stroke-width:1.3
}
.card-body {
  padding:16px 15px 13px
}
.card-title {
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:13px;
  font-weight:650;
  line-height:1.55;
  letter-spacing:.2px;
  min-height:20px
}
.card-title:hover {
  color:var(--red)
}
.english-title {
  font:400 9px/1.5 ShelfDisplay,Arial,sans-serif;
  color:#9aa8b7;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin:5px 0 13px
}
.game-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  color:#7b8da1;
  font-size:9px;
  white-space:nowrap;
  min-height:16px
}
.game-meta>span:first-child {
  overflow:hidden;
  text-overflow:ellipsis
}
.players {
  display:flex;
  align-items:center;
  gap:4px
}
.players svg {
  height:12px;
  width:12px;
  stroke-width:1.4
}
.card-bottom {
  margin-top:14px;
  padding-top:11px;
  border-top:1px solid #edf1f5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  font-size:8px;
  color:#9ba9b7;
  white-space:nowrap
}
.source-dots {
  display:flex;
  align-items:center;
  gap:0
}
.source-dot {
  width:19px;
  height:19px;
  border-radius:50%;
  background:#dceadf;
  color:#669073;
  display:inline-grid;
  place-items:center;
  font:700 8px ShelfDisplay,Arial,sans-serif;
  border:2px solid #fff;
  flex-shrink:0
}
.source-dot+.source-dot {
  margin-left:-6px
}
.source-dot.jeeson {
  background:#dee9f6;
  color:#6289b1
}
.source-dot.lethe {
  background:#eee2f0;
  color:#a081ad
}
.source-dots>span:last-child:not(.source-dot) {
  margin-left:4px
}
.size-label {
  font:550 9px ShelfDisplay,Arial,sans-serif;
  color:#6c8398
}
.image-fallback,.has-image-error:not(.spotlights) {
  background:#dbe5ef;
  position:relative
}
.image-fallback {
  height:100%;
  display:grid;
  place-items:center;
  color:#8399ad;
  font-size:11px
}
.game-cover.has-image-error:before {
  content:"封面暂不可用";
  display:grid;
  place-items:center;
  position:absolute;
  inset:0;
  color:#7890a8;
  font-size:12px
}
.collection-end {
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:center;
  color:#a2afbd;
  margin:41px auto 44px;
  max-width:340px
}
.collection-end>span {
  height:1px;
  background:#dbe3eb;
  flex:1
}
.collection-end p {
  font-size:9px;
  letter-spacing:2px
}
.empty-state {
  background:#f8fafc;
  border:1px dashed #c8d5e1;
  border-radius:12px;
  text-align:center;
  min-height:270px;
  padding:40px 20px
}
.empty-state>svg {
  height:45px;
  width:45px;
  color:#a6b6c6;
  margin:auto
}
.empty-state h3 {
  font-size:17px;
  font-weight:600;
  letter-spacing:.5px;
  margin:16px 0 10px
}
.empty-state p {
  color:#8799ab;
  font-size:12px;
  line-height:1.8
}
.primary-button {
  background:var(--ink);
  color:#fff;
  padding:12px 20px;
  border-radius:8px;
  font-size:12px;
  margin-top:10px
}
.primary-button:hover {
  background:var(--blue)
}
.game-grid.list-layout {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px
}
.list-layout .game-card {
  display:grid;
  grid-template-columns:150px 1fr;
  align-items:stretch;
  overflow:hidden
}
.list-layout .game-cover {
  border-radius:11px 0 0 11px;
  aspect-ratio:auto;
  height:100%;
  min-height:144px
}
.list-layout .game-cover img {
  object-fit:cover
}
.list-layout .card-body {
  padding:17px 16px 13px
}
.list-layout .favorite-button {
  left:9px;
  right:auto
}
.list-layout .card-title {
  -webkit-line-clamp:2;
  font-size:12px
}
.list-layout .english-title {
  font-size:8px;
  margin-bottom:9px
}
.list-layout .card-bottom {
  margin-top:10px;
  padding-top:9px
}
.list-layout .cover-arrow {
  display:none
}
.site-footer {
  max-width:1328px;
  margin:0 auto;
  padding:25px 0 28px;
  border-top:1px solid #d7e1ea;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:9px;
  color:#91a2b3
}
.site-footer>div {
  display:flex;
  align-items:center;
  gap:14px
}
.footer-brand {
  font-size:11px;
  font-weight:650;
  color:#72899e;
  letter-spacing:1px
}
.site-footer button {
  background:transparent;
  color:#8095a9;
  font-size:9px;
  padding:8px 0
}
.site-footer button:hover {
  color:var(--blue)
}
dialog {
  color:var(--ink);
  border:0;
  box-shadow:0 24px 100px #0d233d40;
  padding:0;
  overscroll-behavior:contain
}
dialog::backdrop {
  background:#1831499c;
  backdrop-filter:blur(5px)
}
.game-dialog {
  width:min(850px,calc(100% - 48px));
  max-height:90dvh;
  border-radius:18px;
  background:#fff;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#c7d4df transparent
}
.close-dialog {
  position:absolute;
  z-index:3;
  top:15px;
  right:15px;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid #ffffff80;
  background:#f7f9fce8;
  color:#304d69;
  border-radius:50%;
  font-size:27px;
  box-shadow:0 2px 10px #0001
}
.close-dialog svg {
  width:18px;
  height:18px
}
.close-dialog:hover {
  background:#fff
}
.dialog-visual {
  height:285px;
  position:relative;
  background:#cadae8;
  overflow:hidden
}
.dialog-visual>img {
  width:100%;
  height:100%;
  object-fit:cover
}
.dialog-visual-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#1733436b,transparent 50%)
}
.dialog-platform {
  position:absolute;
  bottom:20px;
  left:30px;
  font:600 9px ShelfDisplay,Arial,sans-serif;
  letter-spacing:3px;
  color:#fff
}
.dialog-body {
  padding:28px 34px 30px
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  position:relative
}
.dialog-heading>div {
  min-width:0
}
.dialog-heading h2 {
  font-size:25px;
  line-height:1.5;
  letter-spacing:.7px;
  margin:12px 0 5px
}
.dialog-heading p {
  font:400 11px/1.6 ShelfDisplay,Arial,sans-serif;
  color:#8da0b2;
  margin:0
}
.detail-tags {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}
.detail-tags span {
  background:#edf2f7;
  color:#7590a8;
  font-size:9px;
  padding:5px 8px;
  border-radius:5px
}
.detail-favorite {
  position:static;
  flex-shrink:0;
  width:42px;
  height:42px;
  border:1px solid #e0e7ef;
  box-shadow:none
}
.detail-favorite svg {
  width:20px;
  height:20px
}
.detail-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.detail-actions .detail-edit-button { min-height: 42px; white-space: nowrap; }
.detail-actions .detail-favorite { margin: 0; }
.detail-quick-facts {
  display:flex;
  align-items:center;
  margin:23px 0 28px;
  border:1px solid #e1e8ef;
  border-radius:9px;
  padding:17px 0;
  background:#f8fafc
}
.detail-quick-facts>span {
  display:flex;
  flex:1;
  justify-content:center;
  gap:7px;
  align-items:center;
  font-size:12px;
  border-right:1px solid #dce5ee
}
.detail-quick-facts>span:last-child {
  border:0
}
.detail-quick-facts svg {
  width:16px;
  height:16px
}
.detail-quick-facts small {
  font-size:8px;
  color:#8fa2b4;
  margin-left:3px
}
.description-section h3,.detail-section h3 {
  font-size:14px;
  letter-spacing:1px;
  font-weight:650;
  margin:0 0 14px
}
.description-text {
  position:relative;
  font-size:12px;
  line-height:2;
  color:#70859a;
  max-height:150px;
  overflow:hidden;
  white-space:normal
}
.description-text:not(.expanded) {
  mask-image:linear-gradient(black 72%,transparent)
}
.description-text.expanded {
  max-height:none
}
.description-text p {
  margin:0 0 10px;
  overflow-wrap:anywhere
}
.description-section>button {
  font-size:10px;
  color:var(--blue);
  background:transparent;
  padding:9px 0;
  margin-top:2px
}
.detail-section {
  border-top:1px solid #e4ebf1;
  padding-top:23px;
  margin-top:24px
}
.detail-section h3>span {
  font:600 10px ShelfDisplay,Arial,sans-serif;
  color:#8da0b3;
  margin-left:5px
}
.component-info {
  margin:14px 0;
  background:#f7f9fc;
  border:1px solid #e5ebf1;
  border-radius:9px;
  padding:17px 18px
}
.component-info>div {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:18px
}
.component-info h4 {
  font-size:12px;
  font-weight:600;
  line-height:1.6;
  margin:0
}
.component-info small {
  color:#99a8b7;
  font-size:9px;
  white-space:nowrap;
  margin-top:3px
}
.component-info dl {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px 24px;
  margin:17px 0
}
.component-info dl>div {
  display:flex;
  align-items:start;
  gap:15px;
  font-size:10px;
  line-height:1.6
}
.component-info dt {
  color:#97a7b6;
  min-width:48px;
  flex-shrink:0
}
.component-info dd {
  margin:0;
  color:#60798f;
  overflow-wrap:anywhere
}
.source-link {
  display:inline-block;
  color:var(--blue);
  font-size:9px;
  padding:6px 0;
  text-decoration:underline;
  text-underline-offset:4px
}
.detail-note {
  font-size:9px;
  line-height:1.8;
  color:#96a6b6;
  margin:10px 0 16px
}
.screenshots {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.screenshots img {
  aspect-ratio:16/9;
  object-fit:cover;
  min-width:0;
  border-radius:7px
}
.records-list {
  border:1px solid #e0e8ef;
  border-radius:8px;
  overflow:hidden
}
.record+.record {
  border-top:1px solid #e3eaf1
}
.record summary {
  display:flex;
  align-items:center;
  gap:14px;
  padding:13px 14px;
  cursor:pointer;
  list-style:none;
  font-size:10px;
  min-height:48px
}
.record summary::-webkit-details-marker {
  display:none
}
.record summary:hover {
  background:#f7f9fc
}
.record-owner {
  display:flex;
  gap:7px;
  align-items:center;
  min-width:85px;
  font-size:10px;
  color:#7a91a6
}
.record-title {
  flex:1;
  line-height:1.7;
  color:#627c93;
  overflow-wrap:anywhere
}
.record strong {
  font:550 10px ShelfDisplay,Arial,sans-serif;
  white-space:nowrap
}
.record-chevron {
  color:#8399ae
}
.record[open] .record-chevron {
  transform:rotate(180deg)
}
.record-details {
  background:#f8fafc;
  border-top:1px solid #e9eef3;
  padding:16px 18px;
  font-size:9px;
  color:#8195a8;
  line-height:1.8;
  display:flex;
  flex-direction:column;
  gap:5px
}
.record-details code {
  font:10px/1.8 Menlo,Consolas,monospace;
  color:#6e8398;
  word-break:break-all;
  user-select:all
}
.detail-source-footer {
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid #e7edf3;
  color:#9aacbc;
  font-size:9px
}
.about-dialog {
  width:min(550px,calc(100% - 36px));
  border-radius:16px;
  padding:38px;
  max-height:90dvh;
  overflow:auto
}
.about-dialog .eyebrow {
  font-size:8px
}
.about-dialog h2 {
  font-size:24px;
  margin:13px 0 23px
}
.about-dialog p:not(.eyebrow) {
  font-size:12px;
  color:#72879b;
  line-height:2;
  margin:13px 0
}
.about-dialog a {
  color:var(--blue);
  text-decoration:underline
}
.about-dialog small {
  font-size:10px;
  color:#98a8b8;
  display:block;
  margin-top:24px
}
.toast {
  position:fixed;
  z-index:20;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  background:var(--ink);
  color:#fff;
  padding:13px 20px;
  border-radius:9px;
  box-shadow:0 5px 20px #24374b30;
  font-size:12px;
  max-width:90vw;
  white-space:normal;
  text-align:center
}
@media(min-width:1600px) {
  .header-inner {
    max-width:1540px;
    padding-inline:65px
  }
  .page-shell {
    max-width:1540px;
    padding-inline:65px
  }
  .site-footer {
    max-width:1410px
  }
  .spotlights {
    height:390px
  }
  .hero-content {
    padding:32px 37px
  }
  .hero-kicker {
    margin-top:30px
  }
  .hero-content>strong {
    font-size:39px
  }
  .hero-description {
    font-size:11px
  }
  .hero-cta {
    margin-top:22px
  }
  .game-grid {
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:24px 18px
  }
  .game-meta {
    font-size:8px
  }
  .card-title {
    font-size:12px
  }
}
@media(max-width:1150px) {
  .header-inner {
    padding:0 32px;
    gap:24px
  }
  .main-nav {
    gap:26px
  }
  .page-shell {
    padding:36px 32px 0
  }
  .site-footer {
    margin-inline:32px
  }
  .spotlights {
    height:330px;
    grid-template-columns:1.5fr 1fr;
    gap:14px
  }
  .side-spotlights {
    gap:14px
  }
  .hero-content {
    padding:24px 27px
  }
  .hero-content>strong {
    font-size:30px
  }
  .hero-kicker {
    margin-top:22px
  }
  .hero-cta {
    margin-top:13px
  }
  .hero-description {
    font-size:9px
  }
  .side-copy {
    padding:21px
  }
  .side-copy strong {
    font-size:20px
  }
  .side-copy>span {
    font-size:8px
  }
  .game-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px 17px
  }
  .intro h1 {
    font-size:33px
  }
  .library-toolbar {
    gap:8px
  }
  .search-box {
    padding-inline:12px
  }
  .select-box {
    gap:8px;
    padding-inline:10px
  }
  .select-box>span {
    display:none
  }
  .select-box select {
    max-width:150px
  }
  .genre-chip {
    font-size:9px;
    padding:8px 12px
  }
  .game-grid.list-layout {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .list-layout .game-card {
    grid-template-columns:118px 1fr
  }
  .list-layout .card-body {
    padding-inline:12px
  }
  .list-layout .game-meta {
    font-size:8px
  }
}
@media(max-width:760px) {
  .site-header {
    height:74px
  }
  .header-inner {
    padding:0 22px;
    gap:20px;
    flex-wrap:wrap
  }
  .brand {
    gap:9px
  }
  .brand>span {
    font-size:16px;
    letter-spacing:.7px
  }
  .brand-mark {
    width:30px;
    height:30px
  }
  .brand small {
    font-size:6px;
    letter-spacing:2.7px;
    margin-top:3px
  }
  .main-nav {
    gap:20px;
    margin-left:auto
  }
  .nav-item {
    font-size:12px
  }
  .random-button {
    display:none
  }
  .page-shell {
    padding:30px 22px 0
  }
  .intro {
    margin-bottom:24px;
    gap:18px
  }
  .intro h1 {
    font-size:29px;
    letter-spacing:.6px;
    margin-bottom:9px
  }
  .eyebrow {
    font-size:7px;
    letter-spacing:2px;
    margin-bottom:9px
  }
  .intro-copy {
    font-size:11px
  }
  .library-totals {
    min-width:auto;
    gap:10px;
    padding:8px 0 8px 20px
  }
  .library-totals>strong {
    font-size:38px
  }
  .library-totals>span {
    font-size:10px
  }
  .library-totals small {
    font-size:7px;
    margin-top:5px
  }
  .spotlights {
    height:300px;
    grid-template-columns:1.55fr 1fr;
    gap:12px
  }
  .side-spotlights {
    gap:12px
  }
  .hero-content {
    padding:22px
  }
  .hero-kicker {
    font-size:7px;
    letter-spacing:1.3px;
    margin-top:24px
  }
  .hero-content>strong {
    font-size:27px;
    letter-spacing:1.2px
  }
  .spotlight-label {
    font-size:8px;
    letter-spacing:.5px
  }
  .hero-description {
    font-size:8px
  }
  .hero-cta {
    font-size:9px;
    padding:8px 12px;
    margin-top:10px;
    gap:12px
  }
  .hero-caption {
    display:none
  }
  .side-copy {
    padding:17px
  }
  .side-copy small {
    font-size:7px;
    letter-spacing:.6px;
    margin-bottom:6px
  }
  .side-copy strong {
    font-size:16px;
    letter-spacing:.6px
  }
  .side-copy>span {
    font-size:7px;
    gap:3px
  }
  .side-copy svg {
    width:12px;
    height:12px
  }
  .library {
    padding-top:33px
  }
  .section-heading {
    margin-bottom:17px
  }
  .section-heading h2 {
    font-size:21px
  }
  .update-date {
    font-size:8px
  }
  .library-toolbar {
    flex-wrap:wrap;
    gap:9px
  }
  .search-box {
    flex-basis:100%;
    min-height:44px
  }
  .search-box input {
    font-size:12px
  }
  .search-box kbd {
    display:none
  }
  .select-box {
    flex:1;
    max-width:none;
    padding-inline:12px
  }
  .select-box>span {
    display:block;
    font-size:10px
  }
  .select-box select {
    width:100%;
    font-size:11px
  }
  .view-switch button {
    width:31px
  }
  .genre-filters {
    flex-wrap:nowrap;
    overflow-x:auto;
    margin:16px -22px 21px;
    padding:0 22px 3px;
    gap:7px;
    scrollbar-width:none
  }
  .genre-filters::-webkit-scrollbar {
    display:none
  }
  .genre-chip {
    font-size:11px;
    padding:9px 13px
  }
  .game-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:19px 13px
  }
  .card-body {
    padding:13px 11px 10px
  }
  .card-title {
    font-size:11px
  }
  .english-title {
    font-size:8px;
    margin-bottom:10px
  }
  .game-meta {
    font-size:8px;
    gap:5px
  }
  .card-bottom {
    margin-top:11px;
    padding-top:9px
  }
  .size-label {
    font-size:8px
  }
  .source-dot {
    height:17px;
    width:17px;
    font-size:7px
  }
  .source-dots>span:last-child:not(.source-dot) {
    font-size:7px
  }
  .game-grid.list-layout {
    grid-template-columns:1fr
  }
  .list-layout .game-card {
    grid-template-columns:170px 1fr
  }
  .list-layout .game-cover {
    min-height:135px
  }
  .list-layout .card-title {
    font-size:13px
  }
  .list-layout .game-meta {
    font-size:10px
  }
  .list-layout .english-title {
    font-size:10px
  }
  .list-layout .card-bottom {
    margin-top:12px
  }
  .site-footer {
    margin-inline:22px;
    padding:22px 0;
    font-size:8px
  }
  .footer-brand {
    font-size:10px
  }
  .site-footer>div {
    gap:10px
  }
  .site-footer button {
    font-size:8px
  }
  .collection-end {
    margin-block:30px
  }
  .game-dialog {
    width:calc(100% - 32px);
    border-radius:14px;
    max-height:92dvh
  }
  .dialog-visual {
    height:245px
  }
  .dialog-body {
    padding:24px
  }
  .dialog-heading h2 {
    font-size:23px
  }
  .dialog-heading p {
    font-size:10px
  }
  .detail-quick-facts>span {
    font-size:11px;
    gap:5px
  }
  .detail-quick-facts small {
    font-size:7px
  }
  .description-text {
    font-size:12px
  }
  .component-info dl {
    gap:14px 15px
  }
  .component-info dl>div {
    font-size:9px;
    gap:10px
  }
  .record summary {
    gap:10px;
    padding:13px 11px;
    font-size:9px
  }
  .record-owner {
    min-width:70px;
    font-size:9px
  }
  .record strong {
    font-size:9px
  }
  .record-title {
    font-size:9px
  }
  .record-details {
    font-size:9px
  }
  .about-dialog {
    padding:30px
  }
}
@media(max-width:540px) {
  .site-header {
    height:106px
  }
  .header-inner {
    padding:14px 20px 0;
    gap:0;
    align-content:space-between
  }
  .brand {
    height:32px
  }
  .brand>span {
    font-size:15px
  }
  .brand-mark {
    width:28px;
    height:28px
  }
  .brand small {
    font-size:6px;
    letter-spacing:2.1px
  }
  .main-nav {
    height:44px;
    width:100%;
    justify-content:space-between;
    gap:22px;
    margin:13px 0 0
  }
  .nav-item {
    font-size:12px;
    padding:0 2px;
    height:44px;
    flex:1
  }
  .nav-item span {
    font-size:8px;
    min-width:17px;
    height:17px;
    margin-left:3px
  }
  .page-shell {
    padding:27px 18px 0
  }
  .intro {
    align-items:start;
    margin-bottom:22px;
    gap:12px
  }
  .eyebrow {
    font-size:7px;
    letter-spacing:1.8px;
    margin-bottom:8px
  }
  .intro h1 {
    font-size:26px;
    letter-spacing:.8px;
    margin-bottom:9px;
    white-space:nowrap
  }
  .title-dot {
    margin-left:0
  }
  .intro-copy {
    font-size:10px;
    letter-spacing:.1px
  }
  .library-totals {
    padding:4px 0 4px 13px;
    gap:7px;
    min-width:66px;
    margin-top:12px;
    flex-direction:column;
    align-items:flex-start;
    border-color:#d3dee9
  }
  .library-totals>strong {
    font-size:29px;
    letter-spacing:-.7px
  }
  .library-totals>span {
    padding:0;
    font-size:8px
  }
  .library-totals small {
    display:none
  }
  .spotlights {
    height:auto;
    display:flex;
    flex-direction:column;
    gap:11px
  }
  .main-spotlight {
    min-height:285px
  }
  .hero-content {
    padding:23px 24px
  }
  .hero-kicker {
    margin-top:21px;
    font-size:7px
  }
  .hero-content>strong {
    font-size:29px;
    line-height:1.26;
    margin:8px 0 12px;
    letter-spacing:1.5px
  }
  .hero-description {
    font-size:9px;
    line-height:1.8
  }
  .hero-cta {
    font-size:9px;
    padding:9px 12px;
    margin-top:15px
  }
  .hero-art {
    object-position:63% center
  }
  .hero-shade {
    background:linear-gradient(90deg,rgba(13,40,40,.89),rgba(13,40,40,.53) 44%,rgba(13,40,40,.04) 100%)
  }
  .hero-caption {
    display:none
  }
  .spotlight-label {
    font-size:8px;
    letter-spacing:.4px
  }
  .side-spotlights {
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:118px;
    gap:11px
  }
  .side-spotlight {
    border-radius:10px
  }
  .side-copy {
    padding:16px 14px;
    justify-content:flex-end
  }
  .side-copy small {
    font-size:7px;
    letter-spacing:.5px;
    margin-bottom:3px
  }
  .side-copy strong {
    font-size:15px;
    letter-spacing:.3px;
    white-space:nowrap;
    line-height:1.5
  }
  .side-copy>span {
    font-size:6px;
    letter-spacing:0;
    gap:3px;
    margin-top:6px;
    line-height:1.5
  }
  .side-copy>span>svg {
    display:none
  }
  .side-spotlight>img {
    object-position:65% center
  }
  .side-shade {
    background:linear-gradient(0deg,#dff2dfe8,#dff2df75 85%)
  }
  .party .side-shade {
    background:linear-gradient(0deg,#d7e9f8ed,#d7e9f85c 85%)
  }
  .library {
    padding-top:31px;
    scroll-margin-top:14px
  }
  .section-heading {
    margin-bottom:17px
  }
  .section-heading .eyebrow {
    font-size:7px;
    letter-spacing:1.5px;
    margin-bottom:4px
  }
  .section-heading h2 {
    font-size:21px;
    gap:9px;
    letter-spacing:.5px
  }
  .section-heading h2>span {
    font-size:10px;
    padding:4px 7px;
    border-radius:4px
  }
  .update-date {
    font-size:7px;
    max-width:100px;
    text-align:right;
    line-height:1.7;
    margin-bottom:2px
  }
  .update-date time {
    display:block;
    margin-left:0
  }
  .library-toolbar {
    gap:8px
  }
  .search-box {
    padding:0 12px;
    gap:9px
  }
  .search-box input {
    font-size:10px;
    padding:13px 0;
    min-height:44px
  }
  .search-box svg {
    width:16px;
    height:16px
  }
  .select-box {
    gap:8px;
    padding:0 10px;
    min-width:0
  }
  .select-box>span {
    font-size:9px;
    padding-right:8px
  }
  .select-box select {
    font-size:9px;
    max-width:none;
    min-width:0;
    min-height:40px
  }
  .view-switch {
    padding:3px;
    gap:1px
  }
  .view-switch button {
    width:29px
  }
  .view-switch svg {
    height:15px;
    width:15px
  }
  .genre-filters {
    margin:15px -18px 19px;
    padding-inline:18px;
    gap:6px
  }
  .genre-chip {
    padding:8px 12px;
    font-size:10px;
    border-radius:6px;
    min-height:35px
  }
  .active-filters {
    font-size:10px;
    gap:10px;
    margin-bottom:18px;
    flex-wrap:wrap
  }
  .active-filters button {
    font-size:10px
  }
  .game-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px 11px
  }
  .game-card {
    border-radius:9px;
    box-shadow:0 3px 12px #24374b05
  }
  .game-card:hover {
    transform:none
  }
  .game-cover {
    border-radius:8px 8px 0 0;
    aspect-ratio:1.55
  }
  .game-cover>img {
    object-fit:cover
  }
  .favorite-button {
    width:27px;
    height:27px;
    top:7px;
    right:7px
  }
  .favorite-button svg {
    height:13px;
    width:13px
  }
  .card-body {
    padding:12px 10px 10px
  }
  .card-title {
    font-size:11px;
    letter-spacing:0;
    line-height:1.6;
    min-height:35px;
    -webkit-line-clamp:2
  }
  .english-title {
    font-size:7px;
    margin:5px 0 9px;
    line-height:1.5
  }
  .game-meta {
    font-size:7px;
    gap:3px;
    min-height:14px
  }
  .players {
    gap:2px
  }
  .players svg {
    height:10px;
    width:10px
  }
  .card-bottom {
    padding-top:8px;
    margin-top:10px;
    gap:2px;
    min-height:26px
  }
  .source-dot {
    height:17px;
    width:17px;
    font-size:6px;
    border-width:1.5px
  }
  .source-dot+.source-dot {
    margin-left:-5px
  }
  .source-dots>span:last-child:not(.source-dot) {
    font-size:7px;
    margin-left:3px
  }
  .size-label {
    font-size:7px;
    letter-spacing:-.2px
  }
  .collection-badge {
    font-size:7px;
    padding:3px 5px;
    bottom:6px;
    left:6px;
    border-radius:3px
  }
  .cover-arrow {
    display:none
  }
  .game-grid.list-layout {
    grid-template-columns:1fr;
    gap:12px
  }
  .list-layout .game-card {
    grid-template-columns:116px 1fr
  }
  .list-layout .game-cover {
    min-height:137px;
    border-radius:8px 0 0 8px
  }
  .list-layout .game-cover>img {
    object-position:center
  }
  .list-layout .card-body {
    padding:12px
  }
  .list-layout .card-title {
    font-size:11px;
    min-height:0;
    -webkit-line-clamp:2
  }
  .list-layout .english-title {
    font-size:7px;
    margin-block:5px 8px
  }
  .list-layout .game-meta {
    font-size:7px
  }
  .list-layout .card-bottom {
    margin-top:10px
  }
  .list-layout .favorite-button {
    top:7px;
    left:7px
  }
  .site-footer {
    margin:0 18px;
    padding:20px 0 24px;
    align-items:center;
    gap:8px
  }
  .site-footer>div {
    flex-direction:column;
    align-items:flex-start;
    gap:5px
  }
  .site-footer>div>span:last-child {
    font-size:7px
  }
  .site-footer button {
    font-size:8px
  }
  .footer-brand {
    font-size:10px
  }
  .collection-end {
    margin-block:26px;
    max-width:235px;
    gap:13px
  }
  .collection-end p {
    font-size:8px;
    letter-spacing:1px
  }
  .empty-state {
    padding:30px 20px;
    min-height:250px
  }
  .empty-state h3 {
    font-size:15px
  }
  .empty-state p {
    font-size:10px
  }
  .game-dialog {
    margin:0;
    position:fixed;
    inset:0;
    top:auto;
    width:100%;
    max-width:none;
    height:94dvh;
    max-height:94dvh;
    border-radius:19px 19px 0 0;
    padding-bottom:env(safe-area-inset-bottom)
  }
  .close-dialog {
    width:33px;
    height:33px;
    top:13px;
    right:13px
  }
  .dialog-visual {
    height:210px
  }
  .dialog-platform {
    font-size:8px;
    bottom:17px;
    left:22px
  }
  .dialog-body {
    padding:23px 20px
  }
  .dialog-heading {
    gap:13px;
    align-items:start
  }
  .dialog-heading h2 {
    font-size:22px;
    margin:12px 0 7px;
    line-height:1.5
  }
  .dialog-heading p {
    font-size:9px
  }
  .detail-tags {
    gap:5px
  }
  .detail-tags span {
    font-size:8px;
    padding:5px 7px
  }
  .detail-favorite {
    width:36px;
    height:36px;
    position:static;
    margin-top:32px
  }
  .detail-favorite svg {
    width:18px;
    height:18px
  }
  .detail-quick-facts {
    padding:15px 0;
    margin:22px 0
  }
  .detail-quick-facts>span {
    font-size:10px;
    gap:3px;
    flex-wrap:wrap;
    min-height:32px;
    line-height:1.5
  }
  .detail-quick-facts svg {
    height:13px;
    width:13px
  }
  .detail-quick-facts small {
    display:block;
    flex-basis:100%;
    text-align:center;
    font-size:8px;
    margin:0
  }
  .description-section h3,.detail-section h3 {
    font-size:13px;
    margin-bottom:12px
  }
  .description-text {
    font-size:11px;
    line-height:2;
    max-height:145px
  }
  .description-section>button {
    font-size:10px;
    padding:10px 0
  }
  .detail-section {
    padding-top:21px;
    margin-top:23px
  }
  .component-info {
    padding:15px 14px
  }
  .component-info>div {
    gap:10px;
    flex-direction:column
  }
  .component-info h4 {
    font-size:11px
  }
  .component-info small {
    font-size:8px
  }
  .component-info dl {
    grid-template-columns:1fr;
    gap:12px;
    margin:15px 0 10px
  }
  .component-info dl>div {
    font-size:10px;
    gap:15px
  }
  .component-info dt {
    min-width:55px
  }
  .source-link {
    font-size:9px
  }
  .screenshots {
    gap:8px;
    grid-template-columns:1fr
  }
  .screenshots img {
    border-radius:6px
  }
  .detail-note {
    font-size:9px;
    line-height:1.9
  }
  .record summary {
    display:grid;
    grid-template-columns:1fr auto 10px;
    gap:8px 12px;
    padding:13px 12px
  }
  .record-owner {
    font-size:10px;
    min-width:0
  }
  .record-title {
    grid-column:1/4;
    grid-row:2;
    line-height:1.8;
    font-size:10px
  }
  .record strong {
    grid-column:2;
    font-size:10px
  }
  .record-chevron {
    grid-column:3;
    grid-row:1
  }
  .record-details {
    padding:13px;
    font-size:9px
  }
  .record-details code {
    font-size:9px;
    line-height:1.9
  }
  .detail-source-footer {
    font-size:8px;
    line-height:1.8
  }
  .about-dialog {
    width:calc(100% - 28px);
    padding:30px 24px;
    max-height:88dvh;
    border-radius:13px
  }
  .about-dialog h2 {
    font-size:22px
  }
  .about-dialog p:not(.eyebrow) {
    font-size:11px;
    line-height:2
  }
  .about-dialog small {
    font-size:9px
  }
  .toast {
    bottom:20px;
    font-size:11px;
    padding:12px 16px;
    width:max-content;
    max-width:calc(100% - 36px)
  }
}
@media(max-width:360px) {
  .page-shell {
    padding-inline:14px
  }
  .intro h1 {
    font-size:23px
  }
  .intro-copy {
    font-size:9px
  }
  .library-totals {
    padding-left:10px
  }
  .hero-content {
    padding:23px 20px
  }
  .hero-content>strong {
    font-size:28px
  }
  .side-copy {
    padding:13px 10px
  }
  .side-copy strong {
    font-size:13px
  }
  .side-copy>span {
    font-size:6px
  }
  .select-box {
    padding-inline:7px;
    gap:5px
  }
  .select-box>span {
    display:none
  }
  .select-box select {
    font-size:9px
  }
  .game-grid {
    gap:14px 9px
  }
  .card-body {
    padding-inline:8px
  }
  .game-meta {
    font-size:6px
  }
  .source-dots>span:last-child:not(.source-dot) {
    font-size:6px
  }
  .size-label {
    font-size:6px
  }
  .source-dot {
    width:15px;
    height:15px
  }
  .genre-filters {
    margin-inline:-14px;
    padding-inline:14px
  }
  .site-footer {
    margin-inline:14px
  }
  .list-layout .game-card {
    grid-template-columns:105px 1fr
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition:none!important;
    animation:none!important;
    scroll-behavior:auto!important
  }
}
/* 手机端增加可点区域与字号，筛选横向滚动只限制在筛选条内。 */
@media(max-width:540px) {
  .site-header {
    position:relative
  }
  .random-button {
    display:grid;
    place-items:center;
    position:absolute;
    top:14px;
    right:20px;
    width:34px;
    height:34px;
    padding:0;
    border-radius:8px
  }
  .random-button span {
    display:none
  }
  .random-button svg {
    width:18px;
    height:18px
  }
  .search-box input {
    font-size:12px
  }
  .select-box select {
    font-size:10px
  }
  .genre-chip {
    font-size:11px;
    min-height:38px
  }
  .card-title {
    font-size:12px;
    min-height:39px
  }
  .english-title {
    font-size:8px
  }
  .game-meta {
    font-size:8px
  }
  .size-label {
    font-size:8px
  }
  .source-dots>span:last-child:not(.source-dot) {
    font-size:8px
  }
  .favorite-button {
    width:32px;
    height:32px
  }
  .favorite-button svg {
    width:15px;
    height:15px
  }
  .detail-favorite {
    width:38px;
    height:38px
  }
  .list-layout .card-title {
    font-size:12px
  }
  .list-layout .game-meta {
    font-size:8px
  }
  .description-text {
    font-size:12px
  }
  .component-info dl>div {
    font-size:11px
  }
  .detail-note {
    font-size:10px
  }
  .source-link {
    font-size:10px;
    line-height:2
  }
  .record-title {
    font-size:11px
  }
  .about-dialog p:not(.eyebrow) {
    font-size:12px
  }
}

/* 资源解锁和管理共用现有书架色板，权限由后端校验。 */
.access-actions { display: flex; align-items: center; gap: 10px; }
.manage-entry, .access-lock { min-height: 36px; border-radius: 7px; padding: 8px 13px; white-space: nowrap; font-size: 12px; background: #fcebec; color: #bd4b53; }
.access-lock { font-size: 10px; background: #e7eef6; color: #577897; }
.manage-entry.is-unlocked { background: #24374b; color: white; }
.card-resource-button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 34px; margin-top: 12px; padding: 7px; border-radius: 6px; background: #f0f4f8; color: #62809b; font-size: 10px; }
.card-resource-button svg { width: 12px; height: 12px; stroke-width: 1.7; }
.card-resource-button small { font: 600 9px ShelfDisplay, Arial, sans-serif; background: #dfe8f1; border-radius: 4px; padding: 2px 4px; }
.card-resource-button > span:last-child { margin-left: auto; }
.card-resource-button:hover { background: #e4edf5; color: #355d83; }
.secondary-button, .text-button { border: 1px solid #d9e2eb; background: white; color: #5c7791; border-radius: 7px; padding: 10px 14px; font-size: 12px; min-height: 38px; }
.secondary-button:hover { background: #f2f6fa; }
.text-button { border: 0; background: transparent; padding: 8px 0; min-height: 34px; }
.admin-mode .main-nav, .admin-mode #random-game { display: none; }
.admin-mode .header-inner { justify-content: space-between; }
.management { padding-bottom: 60px; min-height: 75vh; }
.management-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.management-heading h1 { font-size: 30px; margin: 0 0 12px; }
.management-heading p:last-child { color: #8194a6; font-size: 12px; margin: 0; }
.management-actions { display: flex; align-items: center; gap: 9px; }
.management-actions .primary-button { margin: 0; }
.admin-tabs { display: flex; border-bottom: 1px solid #d3dfea; gap: 25px; margin-bottom: 24px; overflow: auto; }
.admin-tabs button { background: transparent; color: #8397ab; padding: 12px 3px 16px; font-size: 13px; white-space: nowrap; border-bottom: 3px solid transparent; }
.admin-tabs button.active { color: #24374b; border-color: #df4d51; font-weight: 600; }
.admin-tabs span { font: 600 10px ShelfDisplay, Arial, sans-serif; }
.admin-panel { background: #f8fafd; padding: 24px; border: 1px solid #dce5ee; border-radius: 12px; }
.admin-panel h2 { font-size: 20px; margin: 0 0 14px; }
.admin-filter-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 20px; }
.admin-filter-row input, .admin-filter-row select { border: 1px solid #d5e0eb; background: white; border-radius: 7px; padding: 11px 13px; color: #435f7a; font-size: 13px; min-width: 0; }
.admin-filter-row input { flex: 1; }
.admin-filter-row .primary-button { margin: 0; }
.admin-game-filters { flex-wrap: wrap; }
.admin-game-filters input { flex-basis: 180px; }
.field-help { display: block; margin-top: 8px; font-size: 11px; font-weight: 400; line-height: 1.8; color: #8398ab; }
.admin-game-row, .job-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 220px; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid #e2e9f0; }
.admin-game-row:last-child, .job-row:last-child { border-bottom: 0; }
.admin-game-name { min-width: 0; }
.admin-game-name > button { background: transparent; text-align: left; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.7; }
.admin-game-name > span { display: block; margin-top: 7px; font-size: 10px; color: #8a9eb0; }
.row-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions button { padding: 7px 0; font-size: 11px; color: #5a7d9d; background: transparent; }
.row-actions button:hover { color: #d2525b; }
.status-pill { border-radius: 5px; background: #e6edf5; color: #6b87a1; font-size: 10px; padding: 6px 8px; justify-self: start; white-space: nowrap; }
.status-completed { color: #638269; background: #e3eee5; }
.status-needs_review { color: #a37d31; background: #f8efd9; }
.status-failed { color: #b3636c; background: #f7e5e8; }
.status-running { color: #4975a3; background: #dfeaf6; }
.status-cancelled { color: #96a3b2; background: #e9edf2; }
.admin-help, .admin-empty { font-size: 12px; line-height: 1.9; color: #8398ab; margin: 0 0 18px; }
.admin-empty { text-align: center; padding: 35px 10px; }
.job-row { grid-template-columns: minmax(0, 1fr) 100px 210px; }
.job-row h3 { font-size: 13px; margin: 0 0 7px; line-height: 1.7; }
.job-row small { font: 10px ShelfDisplay, Arial, sans-serif; color: #97a8b8; }
.job-row p { font-size: 11px; line-height: 1.8; color: #8b9daf; margin: 9px 0 0; }
.stack-form { display: flex; flex-direction: column; gap: 17px; }
.stack-form label, .owner-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #5d7892; line-height: 1.7; }
.stack-form input, .stack-form select, .stack-form textarea, .owner-form input { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #d6e1ec; border-radius: 7px; background: white; color: #334f6b; font-size: 14px; line-height: 1.6; }
.stack-form textarea { resize: vertical; }
.stack-form .primary-button { margin: 0; align-self: start; min-height: 41px; }
.editor-fields, .editor-mode-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.editor-fields > legend, .editor-mode-group > legend { font-size: 13px; color: #435f7a; font-weight: 600; margin-bottom: 12px; }
.editor-fields > label, .editor-fields > div, .editor-fields > p, .editor-fields > fieldset { margin-bottom: 16px; }
.editor-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-mode-options > label { flex-direction: row; align-items: flex-start; gap: 9px; padding: 13px; border: 1px solid #d6e1ec; border-radius: 9px; cursor: pointer; }
.editor-mode-options > label:has(input:checked) { border-color: #62809b; background: #f0f5fa; }
.editor-mode-options input[type="radio"], .editor-checks input[type="checkbox"] { width: auto; margin: 5px 0 0; padding: 0; flex-shrink: 0; accent-color: #435f7a; }
.editor-mode-options strong { display: block; font-size: 13px; }.editor-mode-options small { display: block; font-size: 10px; color: #8398ab; margin-top: 4px; font-weight: 400; }
.editor-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.component-editor-row > label, .component-editor-row > .editor-field-grid { margin-bottom: 14px; }
.editor-checks { display: flex; flex-wrap: wrap; gap: 20px; }.editor-checks > label { flex-direction: row; align-items: center; }
.editor-image-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }.editor-image-list > div { width: 130px; }
.editor-image-list img { display: block; width: 130px; height: 90px; object-fit: cover; border-radius: 7px; }.editor-image-list button { font-size: 11px; }
.stack-form input[type="file"] { font-size: 12px; }.stack-form button:disabled { opacity: .55; cursor: wait; }
.form-message { font-size: 12px; line-height: 1.8; color: #bc5862; min-height: 0; margin: 0; overflow-wrap: anywhere; }
.form-message:empty { display: none; }
.owner-form { display: flex; align-items: flex-end; gap: 14px; max-width: 560px; padding: 16px 0; border-bottom: 1px solid #e2e9f0; }
.owner-form label { flex: 1; }
.owner-form button { margin: 0; min-height: 47px; white-space: nowrap; }
#password-settings-form { max-width: 480px; }
.access-dialog, .resources-dialog, .editor-dialog { background: white; width: min(740px, calc(100% - 40px)); border-radius: 16px; padding: 32px; max-height: 90dvh; overflow: auto; scrollbar-width: thin; }
.access-dialog { width: min(420px, calc(100% - 36px)); }
.access-dialog h2, .resources-dialog h2, .editor-dialog h2 { font-size: 24px; line-height: 1.6; padding-right: 20px; margin: 14px 0 20px; }
.access-dialog .close-dialog, .resources-dialog .close-dialog, .editor-dialog .close-dialog { top: 13px; right: 13px; }
.resource-item { border: 1px solid #dce5ee; border-radius: 9px; padding: 19px; margin-top: 16px; background: #f8fafd; }
.resource-item > div:first-child { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #6c88a2; }
.resource-item h3 { font-size: 13px; line-height: 1.8; margin: 12px 0; overflow-wrap: anywhere; }
.resource-item code { display: block; font: 11px/1.9 Menlo, Consolas, monospace; color: #718ca4; overflow-wrap: anywhere; user-select: all; }
.resource-details { display: grid; gap: 12px; margin: 0; }
.resource-details dt { font-size: 10px; color: #8398ab; margin-bottom: 4px; }
.resource-details dd { margin: 0; min-width: 0; }
.resource-hash-missing { font-size: 11px; color: #97a8b8; }
.resource-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.resource-actions .primary-button { margin: 0; display: inline-block; font-size: 11px; padding: 11px 15px; }
.resource-actions .secondary-button { font-size: 11px; }
.resource-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.resource-editor-heading h3 { margin: 0; font-size: 15px; }
.resource-editor-row { margin: 0 0 14px; min-width: 0; border: 1px solid #dbe4ee; border-radius: 9px; background: #f8fafd; padding: 17px; }
.resource-editor-row legend { font-size: 10px; color: #8ba0b3; padding: 0 6px; }
.resource-editor-row textarea { margin-bottom: 15px; }
.resource-row-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; margin-bottom: 15px; }
.resource-editor-row .text-button { margin-top: 8px; font-size: 10px; color: #ad7780; }
.editor-actions { display: flex; gap: 10px; justify-content: flex-end; }
.metadata-candidate { border: 1px solid #dce5ee; border-radius: 8px; padding: 19px; margin-top: 13px; background: #f8fafd; }
.metadata-candidate h3 { font-size: 14px; margin: 0 0 9px; line-height: 1.7; }
.metadata-candidate p { font-size: 11px; line-height: 1.8; color: #8297ab; overflow-wrap: anywhere; }
.metadata-candidate small { display: block; font-size: 10px; line-height: 1.8; color: #8fa3b5; margin-bottom: 15px; }
@media(max-width:1150px) { .header-inner { gap: 18px; } .main-nav { gap: 22px; } .random-button { padding-inline: 10px; } }
@media(max-width:760px) {
  .access-actions { gap: 6px; } .manage-entry { font-size: 11px; padding-inline: 10px; }
  .management-heading { align-items: flex-start; flex-direction: column; gap: 20px; } .management-heading h1 { font-size: 26px; }
  .management-actions { flex-wrap: wrap; } .management-actions button { font-size: 11px; }
  .admin-panel { padding: 18px; } .admin-game-row, .job-row { grid-template-columns: minmax(0, 1fr) auto; gap: 13px; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; gap: 20px; }
  .row-actions button { font-size: 12px; } .admin-game-name > button { font-size: 13px; }
  .owner-form { gap: 10px; } .owner-form button { font-size: 11px; padding-inline: 10px; }
  .admin-tabs { gap: 23px; } .admin-tabs button { font-size: 12px; }
}
@media(max-width:540px) {
  .access-actions { position: absolute; top: 14px; right: 63px; gap: 5px; } .manage-entry { min-height: 34px; padding: 7px 10px; font-size: 10px; }
  .detail-actions { flex-direction: column; margin-top: 28px; }
  .search-box input { font-size: 16px; }
  .discovery-panel .genre-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; }
  .discovery-panel .genre-chip { flex-shrink: 0; min-height: 40px; }
  .category-heading { margin-top: 15px; }
  .category-heading small { font-size: 9px; }
  .admin-filter-row.admin-game-filters input { flex-basis: 100%; font-size: 16px; }
  .admin-filter-row.admin-game-filters select { flex: 1; max-width: none; font-size: 16px; }
  .access-lock { width: 30px; padding: 0; font-size: 0; min-height: 34px; } .access-lock::before { content: '锁定'; font-size: 9px; }
  .admin-mode .site-header { height: 65px; } .admin-mode .access-actions { right: 20px; } .admin-mode .header-inner { align-content: center; padding-top: 0; }
  .card-resource-button { min-height: 34px; font-size: 9px; gap: 4px; margin-top: 10px; padding-inline: 6px; }
  .card-resource-button svg { width: 11px; height: 11px; } .card-resource-button small { font-size: 8px; }
  .management { padding-top: 25px; padding-bottom: 35px; } .management-heading h1 { font-size: 25px; }
  .management-heading p:last-child { font-size: 10px; } .management-actions { gap: 7px; width: 100%; }
  .management-actions .secondary-button, .management-actions .primary-button { padding: 10px 12px; font-size: 10px; }
  .admin-panel { padding: 15px; border-radius: 9px; } .admin-tabs { gap: 20px; margin-bottom: 18px; }
  .admin-tabs button { font-size: 11px; padding-top: 9px; padding-bottom: 13px; } .admin-filter-row { gap: 8px; }
  .admin-filter-row input, .admin-filter-row select { padding: 10px; font-size: 12px; }
  .admin-filter-row select { max-width: 110px; } .admin-game-row, .job-row { padding-block: 16px; gap: 10px; }
  .admin-game-name > button { font-size: 12px; } .admin-game-name > span { font-size: 9px; line-height: 1.8; }
  .status-pill { font-size: 9px; padding: 5px 7px; } .row-actions button { font-size: 11px; min-height: 32px; }
  .admin-help, .admin-empty { font-size: 11px; } .job-row h3 { font-size: 12px; } .job-row p { font-size: 10px; }
  .stack-form input, .stack-form select, .stack-form textarea, .owner-form input { font-size: 16px; padding: 10px 12px; }
  .stack-form label, .owner-form label { font-size: 12px; } .stack-form { gap: 16px; }
  .owner-form { flex-wrap: wrap; } .owner-form label { min-width: 150px; } .owner-form button { min-height: 47px; }
  .access-dialog, .resources-dialog, .editor-dialog { width: calc(100% - 28px); padding: 28px 21px; max-height: 90dvh; border-radius: 13px; }
  .resources-dialog h2, .editor-dialog h2 { font-size: 21px; } .access-dialog h2 { font-size: 23px; }
  .resource-item { padding: 16px; } .resource-item h3 { font-size: 12px; } .resource-item code { font-size: 10px; }
  .resource-editor-row { padding: 13px; } .resource-row-grid { grid-template-columns: 1fr; gap: 14px; }
  .editor-field-grid { grid-template-columns: 1fr; gap: 14px; }.editor-mode-options { gap: 8px; }.editor-mode-options > label { padding: 10px; gap: 7px; }
  .editor-mode-options strong { font-size: 12px; }.editor-mode-options small { font-size: 10px; line-height: 1.6; }
  .resource-editor-heading { gap: 12px; } .resource-editor-heading h3 { font-size: 14px; } .resource-editor-heading .text-button { font-size: 11px; }
  .resource-editor-row .text-button { font-size: 11px; } .editor-actions .primary-button, .editor-actions .secondary-button { font-size: 12px; }
  .metadata-candidate { padding: 15px; } .metadata-candidate h3 { font-size: 12px; } .metadata-candidate p { font-size: 10px; }
  #metadata-search-form { flex-direction: column; } #metadata-search-form input { font-size: 16px; } #metadata-search-form button { align-self: flex-start; }
}
