:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #071c3c;
  background: #edf3fc;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.page {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  margin: auto;
  background: #fff;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.scene {
  position: relative;
  width: 100%;
  /* Supplied layers share the same 7370 × 14174 design canvas. */
  aspect-ratio: 7370 / 14174;
  margin: auto;
  isolation: isolate;
}
.artwork { position: absolute; inset: 0; pointer-events: none; }
.artwork img { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry {
  position: absolute;
  width: 42.3%;
  height: 20.9%;
  border-radius: 7%;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.entry-live, .entry-results { left: 6.45%; }
.entry-photo { left: 51.75%; }
.entry-replay { left: 51.4%; }
.entry-live, .entry-photo { top: 40.07%; }
.entry-results, .entry-replay { top: 62.95%; }
.entry:active { background: #284bbe12; }
.entry:focus-visible, button:focus-visible { outline: 3px solid #254ac0; outline-offset: 3px; }
.badge {
  position: absolute;
  top: 7%;
  right: 7%;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 10px;
  background: #e5ecff;
  color: #254ac0;
}
.entry[href] .badge { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.error-note { padding: 0 24px; font-size: 13px; color: #a43d32; }
dialog {
  width: calc(100% - 48px);
  max-width: 340px;
  padding: 28px;
  border: 0;
  border-radius: 20px;
  color: #071c3c;
  text-align: center;
  box-shadow: 0 20px 80px #071c3c30;
}
dialog::backdrop { background: #071c3c66; }
dialog h2 { font-size: 19px; margin: 0 0 10px; }
dialog p { font-size: 13px; line-height: 1.8; margin: 0 0 24px; }
dialog button {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 13px;
  background: #254ac0;
  color: white;
  font: inherit;
  cursor: pointer;
}
@media (orientation: portrait) and (min-aspect-ratio: 7370/14174) {
  .scene { width: calc((100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 7370 / 14174); max-width: 100%; }
}
@media (hover: hover) and (pointer: fine) {
  .entry:hover { background: #284bbe09; box-shadow: inset 0 0 0 2px #254ac033; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
