/* Opening ③ only. The underlying homepage retains its existing layout. */
.site-opening[hidden] { display: none !important; }
.site-opening[open] {
  --tottoko-opening-ready: 1;
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b1bb9;
  overflow: hidden;
  touch-action: none;
  font: inherit;
}
.site-opening::backdrop { background: transparent; }
.site-opening-sheet {
  position: absolute;
  inset: 0;
  background: #fff;
  will-change: clip-path;
}
.site-opening-brand {
  position: absolute;
  top: 37%;
  left: 50%;
  width: min(70%, 620px);
  transform: translate(-50%, -50%);
  text-align: center;
}
.site-opening-brand img { display: block; width: 100%; height: auto; }
.site-opening-brand p {
  margin: 13px 0 0;
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .12em;
}
.site-opening-copy {
  position: absolute;
  top: 55%;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0 12px;
  text-align: center;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .03em;
}
.site-opening-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 17%;
  background: #f5f0fc;
  clip-path: polygon(0 20%,8% 8%,17% 22%,26% 5%,35% 20%,44% 8%,53% 24%,62% 7%,71% 19%,80% 5%,89% 23%,100% 9%,100% 100%,0 100%);
}
.site-opening-actor {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(112px, 32.8vw, 160px);
  height: clamp(112px, 32.8vw, 160px);
  will-change: transform, opacity;
}
.site-opening-art {
  width: 100%;
  height: 100%;
  background-image: url('assets/hamster-run.webp');
  background-repeat: no-repeat;
  background-size: 300% 200%;
}
.site-opening-dust {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 4px;
  border-radius: 20px;
  background: #dfca9a;
  opacity: 0;
  will-change: transform, opacity;
}
.site-opening-dust::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 8px;
  width: 13px;
  height: 3px;
  background: #dfca9a;
  border-radius: 10px;
}
.site-opening-skip {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  min-width: 88px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #e8e0f1;
  border-radius: 24px;
  background: #fffffff2;
  color: #5b1bb9;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
.site-opening-skip:focus-visible { outline: 2px solid #5b1bb9; outline-offset: 3px; }
@media (max-height: 500px) {
  .site-opening-brand { width: min(54vw, 420px, 70vh); width: min(54vw, 420px, 70dvh); }
  .site-opening-brand p { margin-top: 6px; font-size: 12px; }
  .site-opening-copy { top: 56%; font-size: 14px; }
  .site-opening-actor { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-opening-actor, .site-opening-dust { display: none; }
}
