.atlas-opening {
  --sheet: #f4efe6;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--black);
  overscroll-behavior: contain;
}
.atlas-opening[open] { display: grid; place-items: center; }
.atlas-opening::backdrop { background: transparent; backdrop-filter: none; }
html:has(.atlas-opening[open]) { overflow: hidden; }
.opening-paper { position: absolute; inset-block: 0; width: calc(50% + 1px); background: var(--sheet); }
.opening-left { left: 0; }
.opening-right { right: 0; }
.opening-contours { position: absolute; inset: 0; width: 100%; height: 100%; color: #cbb89d; pointer-events: none; }
.opening-figure { position: relative; display: grid; justify-items: center; margin-top: -3vh; }
.opening-relief { display: block; width: clamp(178px, 30vmin, 305px); height: auto; }
.opening-type { display: grid; justify-items: center; gap: clamp(7px, 1.25vmin, 12px); margin-top: 0; }
.opening-chinese { display: block; width: clamp(165px, 27vmin, 275px); }
.opening-english { display: block; width: clamp(86px, 14.3vmin, 146px); }
.atlas-opening .opening-skip {
  position: absolute;
  right: max(5%, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #67594b;
  font: 13px/1.4 var(--book);
}
.atlas-opening .opening-skip span { color: var(--wine); }
.atlas-opening .opening-skip:hover { color: var(--wine); }
.opening-skip:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.home-index .opening-replay {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 2px;
  color: #655747;
  font: 13px/1.2 var(--book);
}
.opening-replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media(max-height: 420px) {
  .opening-relief { width: 134px; }
  .opening-chinese { width: 130px; }
  .opening-english { width: 75px; }
}
