:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #fafafa;
  background: #17181c;
  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; }
.scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.scene picture { display: block; width: 100%; height: 100%; }
.scene-art {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% center;
  animation: paddock-drift 18s ease-in-out infinite alternate;
  transform-origin: 30% 40%;
}
.scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 32%, #11121715 47%, #111217b8 100%), linear-gradient(0deg, #111217a8, transparent 65%);
}
@keyframes paddock-drift {
  from { transform: scale(1.008) translateX(0); }
  to { transform: scale(1.022) translateX(-4px); }
}
html[data-motion="paused"] .scene-art,
html[data-motion="hidden"] .scene-art { animation-play-state: paused; }
.page { position: relative; min-height: 100svh; padding: 28px 44px 52px; display: flex; flex-direction: column; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 15px 6px 8px; background: #17181ce8; border: 1px solid #ffffff26; border-radius: 30px; font-size: 13px; }
.identity img { object-fit: contain; flex: 0 0 32px; }
.motion-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid #ffffff40; background: #17181cea; color: #fff; cursor: pointer; }
.motion-toggle:hover { background: #34353a; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
main { display: flex; flex: 1; justify-content: flex-end; align-items: flex-end; padding-top: 150px; }
.pitboard { width: min(100%, 650px); }
.headline { text-align: right; margin-bottom: 27px; }
.circuit-mark { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.circuit-mark span { width: 42px; height: 12px; transform: skewX(-18deg); background: repeating-conic-gradient(#fff 0% 25%, transparent 0% 50%) 0 / 12px 12px; opacity: .85; }
.circuit-mark b { font-weight: 600; }
h1 { margin: 0; padding: 0 6px; font-size: 66px; line-height: 1.25; font-weight: 900; font-style: italic; text-shadow: 0 2px 14px #0009; }
h1 strong { color: #f24549; font-weight: 900; }
.headline p { margin: 14px 0 0; font-size: 14px; line-height: 1.8; color: #f1f1f3; text-shadow: 0 1px 5px #000; }
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.links button {
  --accent: #777981;
  position: relative; display: flex; align-items: center; gap: 14px;
  min-width: 0; min-height: 78px; padding: 15px 19px 15px 22px;
  border: 0; border-left: 5px solid var(--accent); border-radius: 0;
  color: #fff; text-align: left; cursor: pointer;
  background: repeating-linear-gradient(45deg, #ffffff03 0 2px, transparent 2px 6px), #16181eea;
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
  transition: background-color 160ms ease;
}
.links button:first-child, .links button:last-child { --accent: #ed3c44; }
.links button:nth-child(3) { --accent: #e9bb35; }
.links button:last-child { grid-column: 1 / -1; }
.links button:hover { background-color: #35363e; }
.links button:focus-visible { outline: none; box-shadow: inset 0 0 0 3px #fff; }
.links button:disabled { cursor: wait; opacity: .65; }
.position { flex: 0 0 34px; padding: 4px 5px; background: var(--accent); color: #fff; font: italic 800 12px/1.2 Arial, sans-serif; text-align: center; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.links button:nth-child(3) .position { color: #17181c; }
.entry-name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.arrow { margin-left: auto; flex: 0 0 20px; color: #bfc1c8; }
#nav-status { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid #ed3c44; background: #17181cf5; color: #fff; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
@media (min-width: 701px) and (max-width: 1050px) {
  .page { padding: 24px 28px 36px; }
  .pitboard { width: 58%; min-width: 440px; }
  h1 { font-size: 46px; }
  .links { gap: 10px; }
  .links button { padding: 14px 12px; gap: 8px; }
  .entry-name { font-size: 16px; }
}
@media (max-width: 700px) {
  .scene { position: absolute; height: 570px; }
  .scene picture { position: absolute; top: 65px; height: 465px; }
  .scene-art { object-position: 28% center; }
  .scene::after { background: linear-gradient(0deg, #17181c 0%, #17181ce8 13%, #17181c24 48%, transparent 75%); }
  .page { padding: 16px 18px 26px; }
  .identity { font-size: 12px; }
  main { padding-top: 285px; align-items: flex-start; }
  .pitboard { width: 100%; }
  .headline { margin-bottom: 18px; }
  .circuit-mark { margin-bottom: 8px; font-size: 12px; }
  h1 { font-size: 40px; padding-right: 5px; }
  .headline p { font-size: 12px; margin-top: 9px; }
  .links { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .links button { min-height: 59px; padding: 10px 17px; background-color: #25262de8; }
  .entry-name { font-size: 17px; }
}
@media (max-width: 350px) {
  .page { padding-inline: 14px; }
  main { padding-top: 260px; }
  h1 { font-size: 34px; }
  .headline p { max-width: 270px; margin-left: auto; }
}
