* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #f1efe9; }
body {
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--top) env(safe-area-inset-right, 0px) var(--bottom) env(safe-area-inset-left, 0px);
  display: grid;
  place-items: center;
  color: #342b32;
  font: 16px "Microsoft YaHei", "PingFang SC", sans-serif;
}
#stage {
  position: relative;
  width: min(100%, 56.25vh);
  width: min(100%, calc((100dvh - var(--top) - var(--bottom)) * .5625));
  aspect-ratio: 9 / 16;
  container-type: inline-size;
  overflow: hidden;
}
#board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
#actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  display: flex;
  justify-content: center;
  gap: max(9px, 1.6cqw);
}
button {
  border: 1px solid #928d82;
  border-radius: max(8px, 1.6cqw);
  min-height: max(44px, 6.8cqw);
  padding: 0 max(13px, 2.3cqw);
  background: #f6f3ec;
  color: #4c4740;
  font: inherit;
  font-size: max(12px, 2.45cqw);
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible { outline: 2px solid #4f983a; outline-offset: 3px; }
#next { background: #eaf2e4; border-color: #87a37a; color: #3a6732; }
#advance-mark {
  position: absolute;
  left: 37%;
  top: 45%;
  width: 26%;
  height: 15%;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.sr-only {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
