:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #f5f5f7;
  background: #080d19;
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button { font: inherit; letter-spacing: 0; }
[hidden] { display: none !important; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #fff4c8; outline-offset: 5px; }
::selection { background: #d4b45f; color: #080d19; }
.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.scene picture { display: block; width: 100%; height: 100%; }
.scene-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 80% 35%;
  animation: lounge-drift 18s ease-in-out infinite alternate;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(4 10 24 / 84%) 0%, rgb(4 10 24 / 62%) 32%, rgb(4 10 24 / 16%) 58%, transparent 77%), linear-gradient(0deg, rgb(4 9 19 / 60%), transparent 35%, transparent 80%, rgb(4 9 19 / 35%));
}
.masthead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
  gap: 16px;
}
.identity { display: flex; align-items: center; gap: 10px; color: #e2d4af; font-size: 12px; }
.identity img { display: block; width: 32px; height: 32px; object-fit: contain; border-radius: 50%; }
.motion-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #917741;
  border-radius: 50%;
  color: #e8c977;
  background: rgb(7 16 35 / 72%);
  cursor: pointer;
}
.motion-toggle:hover { background: #142746; border-color: #f0d995; }
main { position: relative; z-index: 1; min-height: calc(100svh - 92px); display: flex; align-items: center; padding: 30px 64px 64px; }
.portal { width: min(100%, 600px); }
.crest { display: flex; width: 326px; max-width: 100%; align-items: center; gap: 11px; color: #d9b86c; margin-bottom: 17px; }
.crest > span:not(.theme) { height: 1px; background: linear-gradient(90deg, transparent, #ae8d4e); flex: 1; }
.crest > span:last-child { background: linear-gradient(90deg, #ae8d4e, transparent); }
.crest b { font-size: 17px; font-weight: 400; }
.theme { font-size: 13px; }
h1 { margin: 0; font-family: "STSong", "SimSun", "Songti SC", serif; font-size: 60px; font-weight: 700; line-height: 1.25; color: #edd191; text-shadow: 0 3px 18px #02040c; }
.intro { font-size: 16px; line-height: 1.8; color: #d6d8e0; margin: 15px 0 29px; }
.links { display: grid; gap: 13px; }
.links button {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  padding: 12px 23px;
  text-align: left;
  border: 1px solid #9e804a;
  border-left: 3px solid #d4b778;
  border-radius: 6px;
  background: linear-gradient(100deg, rgb(9 17 36 / 94%), rgb(13 36 67 / 80%), rgb(9 17 36 / 88%));
  box-shadow: inset 0 1px 0 rgb(255 235 176 / 7%), 0 4px 16px rgb(0 0 0 / 17%);
  color: #fff;
  font-size: 19px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.links button:hover { border-color: #f0d68b; background: #163356; box-shadow: inset 0 0 15px rgb(130 174 219 / 9%), 0 0 18px rgb(221 182 93 / 12%); }
.links button:active { background: #224369; }
.links button:disabled { cursor: wait; opacity: .65; }
.key-number { border: 1px solid #816a42; border-radius: 2px; text-align: center; padding: 3px 0; color: #d4b56c; font-family: Georgia, serif; font-size: 12px; }
.arrow { color: #e8c77b; text-align: right; font-size: 24px; }
#nav-status { margin: 18px 0 0; padding: 12px 15px; background: #281719; border-left: 3px solid #e8b877; color: #fff1de; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.closing-rule { display: flex; align-items: center; gap: 9px; margin-top: 27px; color: #aa8949; font-size: 9px; }
.closing-rule::after { content: ""; width: 84px; height: 1px; background: linear-gradient(90deg, #ad8a44, transparent); }
@keyframes lounge-drift {
  from { transform: scale(1.005) translateX(0); }
  to { transform: scale(1.023) translateX(-3px); }
}
html[data-motion="paused"] .scene-art,
html[data-motion="hidden"] .scene-art { animation-play-state: paused; }
@media (min-width: 641px) and (max-width: 1050px) {
  main { padding: 28px 38px 50px; }
  .portal { width: 53%; }
  h1 { font-size: 44px; }
  .links button { gap: 12px; padding-inline: 16px; font-size: 17px; }
  .scene-art { object-position: 67% center; }
}
@media (max-width: 640px) {
  .masthead { padding: 16px 20px; }
  .identity { gap: 8px; font-size: 11px; }
  .identity img { width: 28px; height: 28px; }
  .scene-art { object-position: 86% top; transform-origin: 70% 20%; }
  .scene::after { background: linear-gradient(0deg, rgb(4 10 24 / 90%), rgb(4 10 24 / 74%) 43%, rgb(4 10 24 / 18%) 72%, rgb(4 10 24 / 12%)); }
  main { display: block; min-height: calc(100svh - 76px); padding: 177px 22px 26px; }
  .portal { width: 100%; }
  .crest { width: 238px; margin-bottom: 10px; gap: 8px; }
  .theme { font-size: 12px; }
  h1 { font-size: 38px; line-height: 1.3; }
  .intro { font-size: 13px; margin: 10px 0 20px; }
  .links { gap: 10px; }
  .links button { min-height: 56px; grid-template-columns: 30px minmax(0, 1fr) 21px; gap: 13px; padding: 11px 15px; font-size: 17px; background: linear-gradient(95deg, rgb(7 17 36 / 89%), rgb(12 36 68 / 77%), rgb(7 17 36 / 86%)); }
  .closing-rule { margin-top: 20px; }
}
@media (max-width: 350px) {
  .masthead { padding-inline: 16px; }
  main { padding: 152px 18px 24px; }
  h1 { font-size: 34px; }
  .intro { font-size: 12px; }
  .links button { gap: 10px; font-size: 16px; padding-inline: 12px; }
}
