.stage-entry {
  --entry-deep: #123a34;
  --entry-mid: #245648;
  --entry-accent: #e8cd83;
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-items: center;
  justify-items: center;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
  background: radial-gradient(ellipse at center, #101e1b54, #101e1b12 86%);
}
.stage-entry[data-stage="lesson"] {
  --entry-deep: #203b36;
  --entry-mid: #38604b;
  --entry-accent: #e8dba0;
}
.stage-entry[data-stage="standard"] {
  --entry-deep: #122e3e;
  --entry-mid: #285061;
  --entry-accent: #b7ddde;
}
.stage-entry[data-stage="all"] {
  --entry-deep: #3d3029;
  --entry-mid: #675036;
  --entry-accent: #f1ce7e;
}
.stage-entry-panel {
  position: relative;
  width: min(94%, 68rem);
  min-height: clamp(8.5rem, 24dvh, 14rem);
  padding: clamp(14px, 2.4dvh, 25px) clamp(13px, 4vw, 54px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, .9dvh, 10px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  color: #fff9e9;
  background: linear-gradient(105deg, var(--entry-deep) 0%, var(--entry-mid) 58%, var(--entry-deep));
  border-block: 2px solid var(--entry-accent);
  box-shadow: 0 0 0 1px #19282080, 0 8px 30px #1018194d;
}
.stage-entry-panel::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  z-index: -1;
  border-block: 1px solid color-mix(in srgb, var(--entry-accent) 48%, transparent);
  background: linear-gradient(115deg, #fff6cb12, transparent 27%, transparent 77%, #111e1b20);
}
.stage-entry-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 54%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  opacity: .45;
  mask-image: linear-gradient(90deg, transparent, #0007 32%, #000 86%);
}
.stage-entry-number {
  display: flex;
  align-items: center;
  gap: .72em;
  color: var(--entry-accent);
  font: 750 clamp(13px, 2.6vw, 19px)/1.2 "Yu Gothic UI", Meiryo, sans-serif;
  letter-spacing: .1em;
}
.stage-entry-number::before, .stage-entry-number::after {
  content: "";
  width: clamp(22px, 5.5vw, 56px);
  height: 1px;
  background: currentColor;
}
.stage-entry-title {
  max-width: 100%;
  font: 800 clamp(40px, 11vw, 76px)/1.16 "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  letter-spacing: .035em;
  text-wrap: balance;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 6px #0b1b19a1;
}
.stage-entry[data-stage="standard"] .stage-entry-title {font-size: clamp(28px, 8.75vw, 65px);}
.stage-entry[data-stage="chapter"] .stage-entry-title {font-size: clamp(26px, 6.8vw, 58px);}
.stage-entry[data-stage="chapter"] .stage-entry-short {font-size: clamp(40px, 11vw, 65px);}
.stage-entry-chapter {
  max-width: 100%;
  color: #f8edcf;
  font: 600 clamp(14px, 2.7vw, 22px)/1.35 "Yu Gothic UI", Meiryo, sans-serif;
  text-wrap: balance;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
@media (max-height: 450px) {
  .stage-entry-panel {min-height: 6.5rem; padding-block: 10px; gap: 3px;}
  .stage-entry .stage-entry-title {font-size: clamp(28px, 8dvh, 40px);}
}
@media (prefers-reduced-motion: no-preference) {
  .stage-entry {animation: stage-entry-fade 1s ease-out both;}
  .stage-entry-panel {animation: stage-entry-open .32s cubic-bezier(.18,.74,.24,1) both;}
  .stage-entry-title {animation: stage-entry-type .3s ease-out both;}
}
@keyframes stage-entry-fade {
  0% {opacity: 0;}
  12%, 77% {opacity: 1;}
  100% {opacity: 0;}
}
@keyframes stage-entry-open {
  from {clip-path: inset(0 93% 0 0);}
  to {clip-path: inset(0);}
}
@keyframes stage-entry-type {
  from {transform: translateX(-12px);}
  to {transform: none;}
}
