:root {
  --ink: #231e19;
  --paper: #fff2cf;
  --red: #e5462d;
  --blue: #2872c3;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #22211c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 60px);
  background: radial-gradient(ellipse at 48% 41%, #444235, #20211d 80%);
}
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #12599f; outline-offset: 4px; }
.sleeve {
  width: min(100%, 1176px);
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 1px #928975, 7px 8px 0 #10120f, 0 24px 54px #10110d80;
}
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(456px, 46vw, 572px);
  background: radial-gradient(ellipse at 25% 38%, #ffd740, transparent 62%), #ffc619;
}
.cover::before, .cover::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.cover::before {
  top: 0; height: 18px;
  background: radial-gradient(ellipse 67px 16px at 50% 0, #ff9416 97%, transparent) 0 0 / 120px 18px repeat-x;
}
.cover::after {
  bottom: 0; height: 9px;
  background: repeating-linear-gradient(132deg, #eb8821 0 10px, #ffad13 10px 20px);
}
.print-dots {
  position: absolute; inset: 0;
  background: radial-gradient(#c9761e 1.15px, transparent 1.45px) 0 0 / 6px 6px;
  mask-image: linear-gradient(130deg, transparent 47%, #0007 81%, #0009);
}
.grooves {
  position: absolute; width: 66%; aspect-ratio: 1; left: -34%; bottom: -94%;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 13px, #e99f24 14px 16px);
  opacity: .62;
}
.crew {
  position: absolute; right: 1.8%; bottom: 2%; width: 48.5%; height: auto;
  max-height: 95%; object-fit: contain; object-position: bottom right;
  pointer-events: none; user-select: none;
}
.cover-content { position: relative; padding: clamp(52px, 6.2vw, 78px) 0 52px 6%; }
h1, h2, ol, p { margin: 0; }
h1 {
  position: relative; isolation: isolate; width: max-content;
  font-size: clamp(52px, 7.05vw, 100px); line-height: 1.12; font-weight: 1000;
  letter-spacing: -.075em; transform: rotate(-4deg) skew(-7deg);
}
h1::before {
  content: ""; position: absolute; z-index: -1; inset: 28% -4% -4% -5%;
  background: var(--blue);
  border-radius: 53% 24% 48% 15% / 48% 33% 45% 45%;
  transform: rotate(1deg);
}
h1 span {
  display: block; padding-right: .08em; color: #fff9e9;
  -webkit-text-stroke: .112em var(--ink); paint-order: stroke fill;
  filter: drop-shadow(.045em .06em 0 var(--red));
}
.menu { margin-top: clamp(48px, 5.5vw, 78px); width: min(39%, 420px); }
.menu-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 19px; }
.menu-heading::after {
  content: ""; flex: 1; height: 4px;
  border-block: 1px solid #7c5924;
}
h2 { font-size: clamp(25px, 2.6vw, 35px); font-weight: 900; letter-spacing: .055em; line-height: 1.2; }
ol { padding: 0; list-style: none; display: grid; gap: 5px; }
.game {
  display: flex; align-items: center; gap: .4em; width: 100%; padding: 8px 14px;
  text-align: left; font-size: clamp(18px, 1.85vw, 25px); line-height: 1.35; font-weight: 800;
  border: 2px solid transparent; background: transparent;
}
.game[aria-current="true"] { border-color: var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.game:hover { background: #fff0b6; border-color: var(--ink); }
.game::before {
  content: ""; width: 0; height: 0; flex: none; margin-right: .13em;
  border-block: .27em solid transparent; border-left: .4em solid transparent;
}
.game[aria-current="true"]::before { border-left-color: #c73925; }
.ordinal { font: 900 1em/1 "Arial Black", Arial, sans-serif; font-variant-numeric: tabular-nums; }
.game-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.launch-mark { margin-left: auto; font: bold 1em/1 Arial, sans-serif; opacity: 0; }
.game[aria-current="true"] .launch-mark, .game:hover .launch-mark { opacity: 1; }
#message { margin-block: 14px 0; font-weight: 600; }
footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  min-height: 63px; padding: 12px 5.5%; border-top: 2px solid var(--ink);
  background: var(--paper); font-size: 14px; font-weight: 700;
}
.disc-info, .keys, .keys span, #pages { display: inline-flex; align-items: center; }
.disc-info { gap: 10px; }
.disc-icon {
  position: relative; width: 29px; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink);
  background: conic-gradient(from 18deg, #e9ddbd 13%, #82b5c6 15% 25%, #fff3ce 34% 56%, #df8c65 58% 68%, #f0d397 78%);
}
.disc-icon::after {
  content: ""; position: absolute; inset: 34%; background: var(--paper); border: 1px solid var(--ink); border-radius: 50%;
}
.keys { margin-left: auto; gap: 18px; }
.keys span { gap: 4px; }
kbd { border: 1px solid #534634; border-bottom-width: 2px; padding: 1px 5px; border-radius: 3px; font: 700 12px/16px ui-monospace, Menlo, monospace; }
#pages { gap: 8px; font-variant-numeric: tabular-nums; }
#pages button { width: 31px; height: 30px; border: 1px solid var(--ink); background: transparent; font: bold 22px/1 Arial, sans-serif; }
#pages button:disabled { opacity: .35; cursor: default; }
#player { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #000; color: #eee7d6; }
#player header { display: flex; align-items: center; gap: 18px; padding: 6px 16px; border-bottom: 1px solid #35342c; background: #161713; font-size: 14px; }
#return { display: inline-flex; align-items: center; gap: 7px; padding: 6px 3px; color: #ffce53; font-weight: 700; text-decoration: none; }
#return:hover { text-decoration: underline; }
#playing-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#screen iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
@media (min-width: 661px) {
  body:has(.long-menu) { padding-block: 20px; }
  .long-menu .cover-content { padding-block: 35px 25px; }
  .long-menu h1 { font-size: clamp(47px, 5.7vw, 78px); }
  .long-menu .menu { margin-top: 26px; }
  .long-menu .menu-heading { margin-bottom: 9px; }
  .long-menu h2 { font-size: 28px; }
  .long-menu ol { gap: 2px; }
  .long-menu .game { padding-block: 2px; font-size: 20px; }
}
@media (max-width: 660px) {
  body { padding: 15px 11px; }
  .sleeve { border-width: 2px; box-shadow: 0 0 0 1px #928975, 4px 5px 0 #11130f; }
  .cover::before { height: 11px; background-size: 82px 11px; }
  .cover-content { padding: 33px 7% 32px; }
  h1 { font-size: clamp(39px, 10.9vw, 69px); }
  .crew { top: 72px; bottom: auto; right: 5%; width: 58%; max-height: none; }
  .menu { width: 100%; margin-top: clamp(152px, 52vw, 314px); }
  .menu-heading { margin-bottom: 12px; }
  .cover { min-height: 0; }
  .grooves { width: 110%; left: -70%; bottom: -44%; }
  footer { min-height: 52px; padding: 10px 6%; gap: 10px 14px; font-size: 12px; }
  .keys { gap: 9px; }
  .disc-info { gap: 6px; }
  .disc-icon { width: 24px; }
  #pages:not([hidden]) ~ .keys { display: none; }
}
@media (pointer: coarse) {
  .keys { display: none; }
  #pages { margin-left: auto; }
}
