@charset "UTF-8";

#game-gallery {
  --game-paper: #eeeade;
  --game-muted: #9eafb1;
  --game-line: #c5d5cc26;
  --game-accent: #d5dcc5;
  --game-title-font: "Milkway Title", "KaiTi", "STKaiti", serif;
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #89989060 transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding: max(64px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(64px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: linear-gradient(150deg, #08121cba, #10202cc4 56%, #09141bd1);
  color: var(--game-paper);
  opacity: 0;
  transition: opacity .65s ease;
}
#game-gallery[hidden], #game-gallery [hidden] { display: none !important; }
#game-gallery.is-visible { opacity: 1; }
#game-gallery *, #game-gallery *::before, #game-gallery *::after { box-sizing: border-box; }
.game-shell {
  width: min(1000px, 100%);
  margin: 0 auto;
  transform: translateY(22px) scale(.985);
  transform-origin: 50% 30%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
#game-gallery:not([data-page="library"]) .game-shell { width: min(1000px, 68vw); }
#game-gallery .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#game-gallery.is-visible .game-shell { transform: none; }
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding-bottom: 12px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--game-line);
}
#game-gallery:not([data-page="library"]) .game-header { margin-bottom: 38px; }
.game-breadcrumb button:disabled { cursor: default; }
.game-breadcrumb button:disabled:hover { color: var(--game-paper); }
.game-breadcrumb { min-width: 0; font: 400 clamp(15px, 1.25vw, 18px)/1.5 var(--game-title-font); letter-spacing: .05em; }
.game-breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.game-breadcrumb li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.game-breadcrumb button, .game-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--game-muted);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.game-breadcrumb button:hover, .game-breadcrumb a:hover { color: #fff5d9; }
.game-breadcrumb [aria-current="page"] { color: var(--game-paper); }
.game-breadcrumb .game-crumb-separator { color: #758b8d99; font: 400 12px/1.5 Georgia, serif; letter-spacing: 0; }
.game-return {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #c3ccc0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.game-return svg, .game-media-arrow svg, .game-menu-arrow svg, .game-card-arrow svg { display: block; width: 22px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.25; }
.game-return svg, .game-media-arrow svg { transition: transform .22s ease; }
.game-return svg, .game-media-arrow.is-previous svg { transform: rotate(180deg); }
.game-return:hover { color: #fff5d9; background: #d8e4d70b; border-color: #c9d9c525; }
.game-return:hover svg { transform: translateX(-2px) rotate(180deg); }
.game-breadcrumb button:focus-visible, .game-breadcrumb a:focus-visible, .game-return:focus-visible,
.game-card:focus-visible, .game-media-stage:focus-visible, .game-media-button:focus-visible, .game-media-arrow:focus-visible,
.game-menu-link:focus-visible, .game-download-button:focus-visible {
  outline: 1px solid #d9ddbbb8;
  outline-offset: 4px;
}

.game-library:not([hidden]), .game-detail:not([hidden]), .game-downloads:not([hidden]) { animation: game-content-appear .28s cubic-bezier(.2,.7,.2,1) both; }
@keyframes game-content-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.game-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 58px 64px; margin: 0; padding: 0 14px; list-style: none; }
.game-list-item { min-width: 0; }
.game-card {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid #c9dccc45;
  border-radius: 10px;
  background: #0a1720;
  color: var(--game-paper);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 #ffffff12, 0 12px 32px #02070e4d;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.game-card-image { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; transition: transform .6s ease, filter .6s ease; }
.game-card-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: absolute; inset: auto 0 0; min-height: 86px; padding: 36px 17px 17px; background: linear-gradient(transparent, #07111bda 55%, #07111bf2); }
.game-card-name { min-width: 0; font: 400 clamp(18px, 1.55vw, 22px)/1.4 var(--game-title-font); letter-spacing: .045em; text-align: left; text-shadow: 0 2px 10px #0008; }
.game-card-arrow { flex: 0 0 auto; color: #d6dfd3; opacity: .65; transform: translateX(-2px); transition: opacity .25s, transform .25s; }
.game-card-arrow svg { width: 18px; height: 12px; }
.game-card:hover, .game-card:focus-visible { border-color: #e0e4c687; box-shadow: inset 0 1px 0 #ffffff1a, 0 21px 42px #02070e73; transform: translateY(-4px); }
.game-card:hover .game-card-image, .game-card:focus-visible .game-card-image { transform: scale(1.025); filter: brightness(1.04); }
.game-card:hover .game-card-arrow, .game-card:focus-visible .game-card-arrow { opacity: 1; transform: translateX(2px); }

.game-detail { padding-inline: 18px; }
.game-detail-grid { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.game-media { min-width: 0; }
.game-media-stage { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #c9dacc3d; border-radius: 12px; background: #08131ce6; box-shadow: 0 16px 44px #02070e4d; }
.game-media-image, .game-media-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.game-media-facts {
  display: grid;
  gap: 4px;
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #e3e9d824;
  border-radius: 8px;
  background: #08151fd6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px #0003;
  color: #f0f0e5;
  font: 400 12px/1.7 "Microsoft YaHei UI", "PingFang SC", sans-serif;
  text-shadow: 0 1px 4px #0006;
  text-align: left;
}
.game-media-facts > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 12px; }
.game-media-facts dt { color: #b1c3c1; font-size: 11px; white-space: nowrap; }
.game-media-facts dd { margin: 0; overflow-wrap: anywhere; }
.game-media-stage[data-media-type="video"] .game-media-facts { right: 48px; bottom: 48px; }
.game-media-arrow {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 9px;
  border: 1px solid #dbe5d64a;
  border-radius: 50%;
  background: #071521b8;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 5px 18px #0003;
  color: #e8e5d8;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, border-color .2s;
}
.game-media-arrow.is-previous { left: 12px; }
.game-media-arrow.is-next { right: 12px; }
.game-media-arrow svg { width: 20px; height: 14px; }
.game-media-arrow:hover { background: #142b37e6; border-color: #dbe5d687; }
.game-media-arrow.is-previous:hover svg { transform: translateX(-2px) rotate(180deg); }
.game-media-arrow.is-next:hover svg { transform: translateX(2px); }
.game-media-arrow:focus-visible { outline-offset: -4px; }
.game-media-arrow:disabled { opacity: .3; cursor: default; }
.game-media-list { display: flex; gap: 12px; overflow-x: auto; padding: 7px 5px; margin: 12px -5px 0; scrollbar-width: thin; scrollbar-color: #89989060 transparent; }
.game-media-button { flex: 0 0 98px; width: 98px; height: 60px; padding: 3px; border: 1px solid #c7ccab2b; border-radius: 6px; background: #091722; opacity: .6; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .2s, border-color .2s, box-shadow .2s; }
.game-media-button img { display: block; width: 100%; height: 100%; border-radius: 3px; object-fit: contain; }
.game-media-button:hover { opacity: .95; border-color: #d9ddbb75; }
.game-media-button[aria-pressed="true"] { opacity: 1; border-color: #d9ddbbbf; box-shadow: 0 0 0 1px #d9ddbb30, inset 0 0 0 1px #d9ddbb26; }
.game-media-position { margin: 4px 0 0; color: #8da3a6; font: 400 11px/1.4 Georgia, serif; letter-spacing: .14em; }
.game-info {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  min-width: 0;
  aspect-ratio: 32 / 45;
  padding: 13px 16px;
  border: 1px solid #c9dacc38;
  border-radius: 12px;
  background: linear-gradient(155deg, #122738b5, #0b1824b8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 #f4eec50a, 0 14px 38px #02070e30;
}
.game-detail-title { margin: 0; color: var(--game-paper); font: 400 clamp(25px, 2.3vw, 32px)/1.4 var(--game-title-font); letter-spacing: .05em; overflow-wrap: anywhere; }
.game-detail-title:focus, .game-page-title:focus { outline: none; }
.game-detail-links { display: grid; gap: 0; min-width: 0; margin: 0; padding: 0; }
.game-menu-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 14px 10px; border: 0; border-radius: 6px; background: none; color: #d5ded3; font: 400 clamp(18px, 1.5vw, 22px)/1.5 var(--game-title-font); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: color .2s, background .2s; }
.game-info > .game-menu-link { border-bottom: 1px solid var(--game-line); border-radius: 6px 6px 0 0; }
.game-menu-label { min-width: 0; overflow-wrap: anywhere; }
.game-menu-arrow { flex: 0 0 auto; color: #bacdbd; opacity: .65; transition: transform .24s ease, opacity .24s ease; }
.game-menu-arrow svg { width: 18px; height: 12px; }
.game-menu-link.is-external .game-menu-arrow { transform: rotate(-45deg); }
.game-menu-link:hover { color: #fff5d9; background: #c9dcc60a; }
.game-menu-link:hover .game-menu-arrow, .game-menu-link:focus-visible .game-menu-arrow { opacity: 1; transform: translateX(3px); }
.game-menu-link.is-external:hover .game-menu-arrow, .game-menu-link.is-external:focus-visible .game-menu-arrow { transform: translate(2px, -2px) rotate(-45deg); }
.game-description { margin-top: 28px; padding-top: 4px; max-width: 780px; }
.game-description h2 { margin: 0 0 15px; color: #e3e5d7; font: 400 22px/1.5 var(--game-title-font); letter-spacing: .065em; }
.game-description p { margin: 0 0 16px; color: #afc0bc; font: 400 15px/2.1 "Microsoft YaHei UI", "PingFang SC", sans-serif; letter-spacing: .025em; }

.game-downloads { padding-inline: 24px; }
.game-download-list { display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
.game-download-item { display: grid; position: relative; grid-template-columns: clamp(120px, 12.4vw, 170px) minmax(0, 1fr); gap: clamp(30px, 4vw, 58px); align-items: start; }
.game-download-item + .game-download-item::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, #c5d5cc2b, #c5d5cc0a); }
.game-download-visual { min-width: 0; }
.game-download-cover { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 5; border: 1px solid #c9dacc40; border-radius: 8px; background: #0a1720; box-shadow: 0 10px 26px #02070e40; }
.game-download-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-download-cover.is-placeholder { background: linear-gradient(145deg, #203842, #10212d 62%, #0c1924); box-shadow: inset 0 1px 0 #dde5d610, 0 10px 26px #02070e40; }
.game-download-caption { display: flex; justify-content: center; align-items: flex-end; position: absolute; inset: auto 0 0; min-height: 64px; padding: 26px 8px 12px; background: linear-gradient(transparent, #07111bdb 70%); color: var(--game-paper); text-align: center; font: 400 17px/1.4 var(--game-title-font); letter-spacing: .04em; }
.game-download-button { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 44px; margin-top: 10px; padding: 8px 10px; border: 1px solid #c7ccab55; border-radius: 6px; background: #c7ccab0a; color: var(--game-paper); font: 400 13px/1.5 "Microsoft YaHei UI", "PingFang SC", sans-serif; letter-spacing: .06em; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.game-download-button:not(:disabled):not([aria-disabled="true"]):hover { border-color: #c7ccab9c; background: #c7ccab15; }
.game-download-button:disabled, .game-download-button[aria-disabled="true"] { border-color: #bfd1c426; background: #10212c80; color: #9daea8; cursor: default; }
.game-download-copy { min-width: 0; padding-top: 7px; }
.game-download-copy h2 { margin: 0 0 14px; color: var(--game-paper); font: 400 clamp(20px, 1.7vw, 24px)/1.5 var(--game-title-font); letter-spacing: .045em; }
.game-download-copy p { margin: 0; color: #afc0bc; font: 400 14px/2 "Microsoft YaHei UI", "PingFang SC", sans-serif; letter-spacing: .025em; }
.game-mods { min-height: 32svh; }

@media (max-width: 1100px) {
  .game-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
  .game-detail-grid { gap: 48px; }
  .game-menu-link { font-size: 19px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  #game-gallery:not([data-page="library"]) { padding-top: max(44px, env(safe-area-inset-top)); }
  #game-gallery:not([data-page="library"]) .game-header { min-height: 44px; padding-bottom: 0; margin-bottom: 20px; }
  #game-gallery[data-page="downloads"] .game-header { margin-bottom: 36px; }
  .game-media-stage { aspect-ratio: 1.9; }
  .game-info { aspect-ratio: .76; }
  .game-media-list { margin-top: 7px; padding-block: 5px; }
  .game-media-button { flex-basis: 72px; width: 72px; height: 43px; }
  .game-media-position { margin-top: 1px; }
  .game-description { margin-top: 20px; }
  .game-download-list { gap: 20px; }
  .game-download-item + .game-download-item::before { top: -10px; }
}
@media (max-width: 900px) {
  #game-gallery { padding-top: max(44px, env(safe-area-inset-top)); }
  #game-gallery:not([data-page="library"]) .game-shell { width: 100%; }
  .game-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .game-detail { padding-inline: 0; }
  .game-info { aspect-ratio: auto; gap: 0; padding: 10px 18px; }
  .game-description { margin-top: 34px; }
  .game-downloads { padding-inline: 0; }
  .game-download-item { grid-template-columns: 140px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .game-header { gap: 14px; margin-bottom: 32px; }
  #game-gallery:not([data-page="library"]) .game-header { margin-bottom: 32px; }
  .game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding: 0; }
  .game-card-name { font-size: 21px; }
}
@media (max-width: 480px) {
  #game-gallery { padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .game-header { gap: 8px; padding-bottom: 15px; margin-bottom: 28px; }
  #game-gallery:not([data-page="library"]) .game-header { margin-bottom: 28px; }
  .game-breadcrumb { font-size: 15px; letter-spacing: .025em; }
  .game-breadcrumb ol, .game-breadcrumb li { gap: 6px; }
  .game-breadcrumb .game-crumb-separator { font-size: 12px; }
  .game-list { gap: 28px 18px; }
  .game-card-caption { min-height: 65px; padding: 26px 12px 12px; }
  .game-card-name { font-size: 18px; }
  .game-media-arrow { width: 40px; height: 40px; margin-top: -20px; padding: 8px; }
  .game-media-arrow.is-previous { left: 7px; }
  .game-media-arrow.is-next { right: 7px; }
  .game-media-list { gap: 9px; margin-top: 9px; }
  .game-media-button { flex-basis: 82px; width: 82px; height: 52px; }
  .game-detail-title { font-size: 28px; }
  .game-media-facts { right: 10px; bottom: 10px; max-width: calc(100% - 24px); padding: 7px 10px; font-size: 11px; }
  .game-media-facts > div { gap: 8px; }
  .game-media-facts dt { font-size: 10.5px; }
  .game-media-stage[data-media-type="video"] .game-media-facts { right: 40px; bottom: 42px; }
  .game-description h2 { font-size: 22px; }
  .game-description p { font-size: 14px; line-height: 2; }
  .game-download-list { gap: 30px; }
  .game-download-item + .game-download-item::before { top: -15px; }
  .game-download-item { grid-template-columns: 112px minmax(0, 1fr); gap: 22px; }
  .game-download-caption { font-size: 16px; }
  .game-download-button { margin-top: 8px; font-size: 12px; }
  .game-download-copy { padding-top: 2px; }
  .game-download-copy h2 { margin-bottom: 10px; font-size: 20px; }
  .game-download-copy p { font-size: 13px; line-height: 1.9; }
}
@media (max-width: 340px) {
  .game-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #game-gallery, .game-shell, .game-breadcrumb button, .game-breadcrumb a, .game-return, .game-return svg, .game-card, .game-card-image, .game-card-arrow, .game-media-arrow, .game-media-arrow svg, .game-media-button, .game-menu-link, .game-menu-arrow, .game-download-button { transition: none; }
  .game-library:not([hidden]), .game-detail:not([hidden]), .game-downloads:not([hidden]) { animation: none; }
  .game-return:hover, .game-card:hover, .game-card:focus-visible, .game-card:hover .game-card-image, .game-card:focus-visible .game-card-image { transform: none; }
  .game-return:hover svg, .game-media-arrow.is-previous:hover svg { transform: rotate(180deg); }
  .game-media-arrow.is-next:hover svg, .game-card:hover .game-card-arrow, .game-card:focus-visible .game-card-arrow, .game-menu-link:hover .game-menu-arrow, .game-menu-link:focus-visible .game-menu-arrow { transform: none; }
  .game-menu-link.is-external:hover .game-menu-arrow, .game-menu-link.is-external:focus-visible .game-menu-arrow { transform: rotate(-45deg); }
}
