:root { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif; color: #f1eedc; background: #122c2e; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(ellipse at 14% 0, #24443e 0, #122c2e 55%); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #f2cc91; outline-offset: 6px; }
#library { width: min(1320px, 100%); margin: 0 auto; padding: 0 clamp(22px, 4.5vw, 64px) 28px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 30px 0; border-bottom: 1px solid #47605a80; }
.brand { display: inline-flex; gap: 14px; align-items: center; font-size: 23px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.brand svg { width: 40px; height: 40px; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.gallery-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 12px;
  border: 1px solid #719486; border-radius: 10px; background: #24443e; color: #edebd8;
  white-space: nowrap; font-size: 14px;
}
.gallery-link:hover { background: #355849; border-color: #f2cc91; }
.edition { font-size: 14px; letter-spacing: .08em; color: #bbd1c3; }
.edition span { margin-left: 8px; color: #9db4a9; letter-spacing: .02em; }
.intro { padding: 44px 0 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { color: #bbd1b8; font-size: 15px; margin: 0 0 12px; letter-spacing: .08em; }
h1 { font-size: clamp(30px, 3.2vw, 43px); line-height: 1.3; margin: 0; letter-spacing: .025em; font-weight: 650; }
.intro-note { color: #9cb6aa; font-size: 16px; margin: 14px 0 0; line-height: 1.7; }
.collection-note { display: flex; align-items: baseline; gap: 15px; white-space: nowrap; color: #a5bdb0; font-size: 14px; padding-bottom: 3px; }
.collection-note strong { color: #dbe3d0; font-size: 21px; font-weight: 500; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.game-card { display: block; min-width: 0; padding: 7px; border: 1px solid #45665a; background: #244039; color: #f1eedc; border-radius: 23px; text-align: left; transition: border-color .17s, background-color .17s; }
.game-card:hover { border-color: #e7be7d; background: #2b4a40; }
.game-card:active { border-color: #f4c88c; background: #355348; }
.jump-card { background: #223a3d; border-color: #3d5a5b; }
.jump-card:hover { background: #2b4548; }
.runner-card { background: #284441; }
.runner-card:hover { background: #33514c; }
.cover { display: block; position: relative; height: clamp(230px, 24vw, 337px); border-radius: 16px; overflow: hidden; background: #345c54; }
.cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-tag { position: absolute; top: 13px; left: 13px; border: 1px solid #bdd1bc90; border-radius: 9px; padding: 6px 10px; background: #183a32e8; font-size: 13px; color: #e4e8d2; }
.jump-card .cover-tag { background: #172d41eb; }
.card-body { display: block; padding: 22px 17px 17px; }
.card-kicker { display: block; color: #afc6ad; font-size: 12px; letter-spacing: .14em; line-height: 1.5; }
.jump-card .card-kicker { color: #acc6cc; }
.runner-card .card-kicker { color: #b9cfc2; }
.card-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 9px; }
.card-heading strong { font-size: clamp(23px, 2.15vw, 29px); font-weight: 650; letter-spacing: .03em; }
.play-icon { width: 40px; height: 40px; border: 1px solid #8da58f; color: #dce4c9; background: #355849; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.play-icon svg { width: 22px; height: 22px; }
.game-card:hover .play-icon { border-color: #f4c88c; background: #f4c88c; color: #304237; }
.card-description { display: block; color: #d1d9c3; font-size: 16px; margin-top: 12px; line-height: 1.7; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #5b76684d; padding-top: 17px; margin-top: 22px; font-size: 13px; color: #b0c3ad; line-height: 1.5; }
.record { white-space: nowrap; color: #dfc69d; font-variant-numeric: tabular-nums; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 27px; color: #afc3b7; font-size: 14px; line-height: 1.7; }
.site-footer p { display: flex; align-items: center; gap: 10px; margin: 0; }
.sbs-symbol { display: flex; gap: 3px; border: 1px solid #719486; border-radius: 5px; padding: 4px; width: 29px; height: 20px; flex-shrink: 0; }
.sbs-symbol i { display: block; width: 8px; height: 10px; background: #85a99a; border-radius: 2px; }
.keyboard-tip { white-space: nowrap; color: #a4b9ad; }
kbd { font: inherit; display: inline-grid; place-items: center; min-width: 23px; min-height: 25px; background: #26433d; border: 1px solid #56786a; border-radius: 6px; margin-right: 4px; font-size: 12px; }
.small-print { margin-top: 12px; font-size: 13px; line-height: 1.7; color: #819e90; }
#player { position: fixed; inset: 0; width: 100%; height: 100dvh; background: #122c2e; }
#player:fullscreen { width: 100vw; height: 100dvh; }
#game-frame { width: 100%; height: 100%; border: 0; display: block; }
#loading { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; background: #122c2e; }
#loading > div { display: grid; place-items: center; color: #c6d3bd; min-width: 0; }
.no-script { padding: 18px; color: #f4c88c; }
@media (max-width: 1000px) {
  .game-grid { gap: 15px; }
  .card-body { padding: 18px 12px 14px; }
  .card-bottom { display: grid; gap: 6px; }
  .header-actions { gap: 15px; }
}
@media (max-width: 720px) {
  .site-header { padding: 22px 0; }
  .brand { font-size: 20px; gap: 10px; }
  .brand svg { width: 34px; height: 34px; }
  .edition { display: none; }
  .gallery-link { padding-inline: 9px; font-size: 13px; }
  .intro { padding: 30px 0 24px; }
  .intro-note { max-width: 260px; font-size: 15px; }
  .collection-note { display: none; }
  .game-grid { grid-template-columns: 1fr; gap: 22px; }
  .cover { height: 290px; }
  .card-body { padding: 20px 18px 18px; }
  .card-bottom { display: flex; }
  .site-footer { align-items: flex-start; }
  .keyboard-tip { display: none; }
  .small-print { line-height: 1.9; }
}

@media (max-width: 420px) {
  .site-header { gap: 10px; flex-wrap: wrap; }
  .brand { gap: 8px; font-size: 17px; }
  .brand svg { width: 30px; height: 30px; }
  .header-actions { margin-left: auto; }
}

.loading-card { width: min(100% - 24px, 760px); text-align: center; }
.loading-card p { font-size: clamp(14px, 2.4vw, 24px); line-height: 1.7; margin: 0 0 22px; }
.load-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.load-actions button { border: 1px solid #8da58f; border-radius: 14px; background: #355849; color: #f1eedc; padding: 10px 14px; font-size: clamp(14px, 2vw, 18px); }
.load-actions button:hover { background: #466850; border-color: #f4c88c; }
.load-actions button:active { background: #526d53; }
