:root {
  --void: #f7f9fc;
  --ink: #17324d;
  --intel: #176bff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #f3f6fa;
  overflow: hidden;
  color: var(--ink);
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Heiti SC", sans-serif;
}

.frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.stage {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  background: #f3f6fa;
  overflow: hidden;
}

.sandbox-bg,
.screen-layer,
.words,
.rail,
.title,
.grain,
.vignette,
.guide,
.map-ask,
.p4,
.p6,
.p8,
.p9,
.p10,
.p11 {
  position: absolute;
}

.sandbox-bg {
  inset: 0;
  z-index: 1;
  overflow: visible;
  transform-origin: 50% 46%;
}

.sandbox-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.sandbox-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.map-check,
.map-pin {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.map-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.32);
}

.map-check::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 7px;
  height: 12px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(40deg);
}

.map-pin {
  width: 22px;
  height: 28px;
  perspective: 240px;
}

.map-pin.is-up .pin-cone {
  border-top: 0;
  border-bottom: 18px solid #176bff;
  transform: rotateX(-22deg);
  animation-name: pin-float-up;
}

@keyframes pin-float-up {
  0%,
  100% {
    transform: rotateX(-22deg) translateY(0);
  }
  50% {
    transform: rotateX(-22deg) translateY(8px);
  }
}

.sandbox-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(243, 246, 250, 0.22) 0%, rgba(243, 246, 250, 0.62) 58%, rgba(243, 246, 250, 0.88) 100%),
    linear-gradient(180deg, rgba(247, 249, 252, 0.35) 0%, transparent 38%, transparent 62%, rgba(243, 246, 250, 0.45) 100%);
}

.pin {
  position: absolute;
  left: 21.5%;
  top: 11%;
  z-index: 2;
  width: 22px;
  height: 28px;
  opacity: 0;
  pointer-events: none;
  perspective: 240px;
}

.pin-cone {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 18px solid #176bff;
  filter: drop-shadow(0 5px 8px rgba(23, 107, 255, 0.35));
  transform: rotateX(22deg);
  animation: pin-float 1.7s ease-in-out infinite;
}

@keyframes pin-float {
  0%,
  100% {
    transform: rotateX(22deg) translateY(0);
  }
  50% {
    transform: rotateX(22deg) translateY(-8px);
  }
}

.guide {
  left: 17%;
  top: 21%;
  z-index: 2;
  width: 36%;
  height: 2px;
  opacity: 0;
  transform-origin: left center;
  transform: scaleX(0.12);
  background: linear-gradient(90deg, rgba(23, 107, 255, 0), #176bff 35%, rgba(114, 199, 255, 0.2));
  pointer-events: none;
}

.screen-layer {
  inset: 0;
  z-index: 3;
  opacity: 0;
}

.screen-still {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  animation: screen-live 7s ease-in-out infinite;
}

@keyframes screen-live {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

.booklet {
  position: absolute;
  left: 37%;
  top: 21%;
  width: 26%;
  height: 56%;
  perspective: 1400px;
  transform-style: preserve-3d;
  transform-origin: center center;
  opacity: 0;
}

.booklet-leaf {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 10% 8%;
  background: #fbfcfe;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(23, 50, 77, 0.12);
  backface-visibility: hidden;
}

.booklet-leaf.inside strong {
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: 0.18em;
}

.booklet-leaf.inside strong::after {
  content: "";
  display: block;
  width: 42%;
  height: 2px;
  margin: 10px auto 0;
  background: var(--intel);
}

.booklet-leaf.cover {
  transform-origin: left center;
  gap: 10px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: clamp(13px, 1.25vw, 18px);
}

.sheet {
  position: absolute;
  left: 0;
  top: 0;
  height: 56%;
  width: auto;
  aspect-ratio: 210 / 297;
  perspective: 1600px;
  transform-style: preserve-3d;
  opacity: 0;
}

.sheet-leaf {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 50px rgba(23, 50, 77, 0.16);
  backface-visibility: hidden;
}

.sheet-leaf img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-leaf.page1 {
  transform-origin: left center;
}

.inks {
  position: absolute;
  inset: 0;
}

.ink {
  position: absolute;
  height: 0.45%;
  min-height: 2px;
  background: #dc2626;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}

.rail {
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  gap: 14px;
  padding: 7% 7% 5%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}

.rail-panel {
  min-height: 0;
  display: grid;
  place-items: center;
}

.rail-panel video {
  display: block;
  width: min(72%, 860px);
  max-height: 100%;
  border-radius: 10px;
  background: #17324d;
  box-shadow: 0 18px 48px rgba(23, 50, 77, 0.18);
  opacity: 0;
}

.rail-years {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
}

.rail-year {
  appearance: none;
  margin: 0;
  padding: 12px 8px 10px;
  border: 0;
  background: transparent;
  color: #17324d;
  cursor: pointer;
  text-align: left;
  font: inherit;
  overflow: visible;
  opacity: 0;
}

.rail-year-num,
.rail-year-text {
  opacity: 0;
}

.rail-axis {
  display: block;
  height: 2px;
  margin: 0 0 2px;
  background: linear-gradient(90deg, #176bff, rgba(23, 107, 255, 0));
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
}

.rail-year.is-on .rail-year-num {
  color: #176bff;
}

.rail-year:active {
  transform: translateY(1px);
}

.rail-year-num {
  display: block;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.rail-year-text {
  display: block;
  margin-top: 6px;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(23, 50, 77, 0.62);
  transform-origin: left center;
  will-change: transform, opacity;
}

.rail-note {
  margin: 4px 0 0;
  text-align: center;
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(23, 50, 77, 0.55);
  pointer-events: none;
  opacity: 0;
}

.rail-note.is-on {
  opacity: 1;
}

.title {
  inset: 0;
  z-index: 6;
  margin: 0;
  display: grid;
  place-content: center;
  gap: 22px;
  padding: 12% 10%;
  text-align: center;
  pointer-events: none;
  opacity: 1;
}

.title-main {
  font-size: clamp(22px, 3.1vw, 46px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: var(--ink);
  text-shadow: 0 0 10px #fff, 0 0 22px rgba(255, 255, 255, 0.9), 0 2px 8px #fff;
}

.title-date {
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(23, 50, 77, 0.55);
  text-shadow: 0 0 6px #fff, 0 1px 4px rgba(255, 255, 255, 0.75);
}

.title.is-off {
  opacity: 0;
}

.map-ask {
  right: 5%;
  bottom: 6%;
  z-index: 6;
  margin: 0;
  font-size: clamp(16px, 1.65vw, 24px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-align: right;
  text-shadow: 0 0 8px #fff, 0 1px 4px rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.p4 {
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.p4-bench {
  position: absolute;
  left: 14%;
  top: 14%;
  width: 72%;
  height: 72%;
  display: block;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image:
    linear-gradient(to right, transparent, #000 14%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.p4-task,
.p4-slot,
.p4-end {
  position: absolute;
  opacity: 0;
  color: var(--ink);
}

.p4-slot {
  z-index: 2;
}

.p4-slot.is-tl { left: 23%; top: 22%; }
.p4-slot.is-tr { left: calc(63% + 62px); top: 20%; }
.p4-slot.is-br { left: calc(64% + 62px); top: 60%; }
.p4-slot.is-bl { left: 22%; top: 61%; }

.p4-label {
  appearance: none;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #1256d6;
  color: #f7f9fc;
  box-shadow: 0 10px 22px rgba(18, 86, 214, 0.28);
  font: inherit;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
}

.p4-slot.is-ready .p4-label {
  pointer-events: auto;
  cursor: pointer;
}

.p4-slot.is-open .p4-label {
  background: #176bff;
}

.p4-task {
  right: 5%;
  top: 11.5%;
  left: auto;
  pointer-events: none;
  margin: 0;
  max-width: 42%;
  text-align: right;
  font-size: clamp(18px, 1.9vw, 28px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 0 8px #fff, 0 1px 4px #fff;
}

.p4-detail {
  position: absolute;
  top: calc(100% + 10px);
  width: min(34vw, 420px);
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: rgba(251, 252, 254, 0.96);
  box-shadow: 0 16px 36px rgba(23, 50, 77, 0.14);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(6px);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.p4-slot.is-left .p4-detail { right: 0; }
.p4-slot.is-right .p4-detail { left: 0; }

.p4-slot.is-open .p4-detail {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.p4-detail strong {
  display: block;
  font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: 0.08em;
}

.p4-detail em {
  display: block;
  margin: 6px 0 12px;
  font-style: normal;
  font-size: clamp(12px, 1.15vw, 15px);
  color: rgba(23, 50, 77, 0.58);
}

.p4-titles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p4-titles li {
  min-height: 2.4em;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(23, 107, 255, 0.06);
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.55;
}

.p4-titles li + li {
  margin-top: 6px;
}

.p4-titles li.is-typing::after {
  content: "▍";
  margin-left: 2px;
  color: #176bff;
}

.p4-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0;
}

.p4-cols p {
  margin: 0;
  padding-right: 14px;
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.55;
}

.p4-cols p + p {
  padding-right: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(23, 50, 77, 0.1);
}

.p4-cols b {
  display: block;
  margin-bottom: 6px;
  color: #176bff;
  font-size: 0.86em;
  letter-spacing: 0.08em;
}

.p4-person {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: center;
}

.p4-bust-wrap {
  width: 108px;
  height: 168px;
  overflow: hidden;
}

.p4-media {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.p4-bust {
  display: block;
  width: 108px;
  height: auto;
}

.p4-person-copy,
.p4-talk {
  display: grid;
  gap: 8px;
  align-content: start;
}

.p4-mood {
  margin: 0;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(23, 107, 255, 0.1);
  color: #176bff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.p4-detail blockquote {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(23, 107, 255, 0.06);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  line-height: 1.55;
}

.p4-talk blockquote {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.p4-choices {
  display: grid;
  gap: 8px;
}

.p4-choices button {
  appearance: none;
  padding: 10px 12px;
  border: 1px solid rgba(23, 50, 77, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-size: clamp(13px, 1.15vw, 15px);
  cursor: pointer;
}

.p4-choices button:active {
  transform: scale(0.98);
}

.p4-choices button.is-on {
  border-color: #176bff;
  color: #176bff;
  background: rgba(23, 107, 255, 0.06);
}

.p4-talk-reset {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #176bff;
  font: inherit;
  font-size: clamp(12px, 1.1vw, 14px);
  cursor: pointer;
}

.p4-end {
  left: 8%;
  right: 8%;
  bottom: 8%;
  pointer-events: none;
  margin: 0;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px #fff, 0 2px 8px #fff;
}

.p5-copy {
  position: absolute;
  left: 50%;
  top: calc(33.333% + 96px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  pointer-events: none;
  z-index: 3;
}

.p5-line {
  margin: 0;
  white-space: nowrap;
  color: var(--ink);
  font-size: clamp(20px, 2.25vw, 34px);
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  text-shadow: 0 0 8px #fff, 0 1px 4px #fff;
}

.p5-line strong {
  color: #e86a17;
  font-weight: 800;
}

.p6 {
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.p6-panel {
  position: absolute;
  left: 12%;
  top: 10%;
  width: 76%;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 36px 24px;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid rgba(23, 50, 77, 0.16);
  clip-path: inset(0 0 100% 0);
  overflow: hidden;
  transform-origin: 50% 8%;
}

.p6-title,
.p6-steps,
.p6-eq,
.p6-prompt,
.p6-stage,
.p6-choices,
.p6-note,
.p6-end {
  opacity: 0;
}

.p6-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.p6-title {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: baseline;
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.p6-title-pre {
  display: inline-block;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
}

.p6-steps {
  margin: 0;
  color: rgba(23, 50, 77, 0.28);
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.p6-steps i {
  font-style: normal;
  margin: 0 3px;
}

.p6-steps .is-on {
  color: #176bff;
}

.p6-eq {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.p6-mark.is-on {
  color: #176bff;
}

.p6-prompt {
  margin: 20px 0 0;
  color: rgba(23, 50, 77, 0.7);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p6-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(90%, 860px);
  margin-top: 28px;
}

.p6-pool,
.p6-hold {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
}

.p6-bit {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #176bff;
  box-shadow: 0 2px 8px rgba(23, 107, 255, 0.28);
  cursor: grab;
  touch-action: none;
}

.p6-bit.is-drag {
  cursor: grabbing;
  box-shadow: 0 10px 22px rgba(23, 107, 255, 0.35);
}

.p6-bit.is-bot {
  width: 16px;
  height: 26px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(#7eb6ff, #176bff);
}

.p6-zones {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.p6-pool.is-over,
.p6-zone.is-over {
  outline: 2px solid #176bff;
  outline-offset: 2px;
}

.p6-zone {
  min-height: 110px;
  padding: 12px 10px 10px;
  border-radius: 14px;
  border: 1px dashed rgba(23, 50, 77, 0.18);
  background: rgba(247, 249, 252, 0.8);
  text-align: center;
}

.p6-zones.is-team .p6-zone {
  border-style: solid;
  border-color: rgba(23, 107, 255, 0.22);
}

.p6-zone b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.p6-zone em {
  display: block;
  margin-top: 6px;
  min-height: 1.2em;
  color: #e86a17;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.p6-choices {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  pointer-events: none;
}

.p6-choices button {
  appearance: none;
  padding: 10px 18px;
  border: 1px solid rgba(23, 50, 77, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 700;
  cursor: pointer;
}

.p6-choices button:active {
  transform: scale(0.98);
}

.p6-choices button.is-on {
  border-color: #176bff;
  color: #176bff;
  background: rgba(23, 107, 255, 0.06);
}

.p6-note {
  margin: 0;
  min-height: 1.4em;
  color: rgba(23, 50, 77, 0.62);
  font-size: clamp(14px, 1.3vw, 18px);
}

.p6-end {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.p6-wipe {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

.p6-wipe-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #fff;
}

.p6-wipe-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  margin-left: -14px;
  background: linear-gradient(90deg, rgba(23, 50, 77, 0.04), #fff 36%, #fff 64%, rgba(23, 50, 77, 0.05));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}

.p6-boom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.p7 {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 76px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}

.p7-head,
.p7-foot {
  position: relative;
  flex: 0 0 90px;
  width: 100%;
  min-height: 90px;
  max-height: 90px;
}

.p7-foot {
  flex-basis: 56px;
  min-height: 56px;
  max-height: 56px;
}

.p7-card,
.p7-note,
.p7-maps,
.p7-solo,
.p7-pair {
  opacity: 0;
}

.p7-card {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  padding: 10px 22px 12px;
  border-radius: 12px;
  background: #eef4ff;
  box-shadow: 0 8px 20px rgba(23, 50, 77, 0.06);
  text-align: center;
  max-width: min(720px, 92%);
}

.p7-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.p7-card p {
  margin: 6px 0 0;
  color: rgba(23, 50, 77, 0.7);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 700;
}

.p7-note,
.p7-maps {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  margin: 0;
  text-align: center;
}

.p7-note {
  color: #e86a17;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
}

.p7-maps {
  color: var(--ink);
  font-size: clamp(15px, 1.55vw, 22px);
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.p7-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  contain: layout paint;
}

.p7-solo,
.p7-pair {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  contain: layout paint;
}

.p7-shot {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100%;
  margin: 0;
}

.p7-pair .p7-shot {
  flex: 1;
  min-width: 0;
}

.p7-frame {
  position: relative;
  height: 100%;
}

.p7-shot img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.p7-marks,
.p7-tag {
  position: absolute;
  pointer-events: none;
}

.p7-marks {
  inset: 0;
}

.p7-ring {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border: 2.5px solid #e86a17;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.p7-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: #176bff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translate(-50%, -120%);
  white-space: nowrap;
}

.p8 {
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
}

.p8-card,
.p8-end,
.p8-note {
  opacity: 0;
}

.p8-stage {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 16%;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.p8-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  width: min(840px, 100%);
}

.p8-card {
  padding: 18px 22px 16px;
  border-radius: 14px;
  background: #eef4ff;
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.07);
}

.p8-card strong {
  display: block;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.p8-card p {
  margin: 8px 0 0;
  color: rgba(23, 50, 77, 0.62);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.p8-card p b {
  color: #e86a17;
  font-weight: 800;
}

.p8-end,
.p8-note {
  margin: 0;
  text-align: center;
}

.p8-end {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.p8-note {
  padding: 12px 26px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #f7f9fc;
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.p9 {
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 8% 12%;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}

.p9-ask,
.p9-opts button,
.p9-feed,
.p9-end,
.p9-dir {
  opacity: 0;
}

.p9-ask {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.p9-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  width: min(880px, 100%);
}

.p9-opts button {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px 16px;
  border: 1.5px solid rgba(23, 50, 77, 0.12);
  border-radius: 14px;
  background: #eef4ff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.06);
}

.p9-opts button:disabled {
  cursor: default;
}

.p9-opts button strong {
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.p9-opts button span {
  color: rgba(23, 50, 77, 0.62);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 700;
  line-height: 1.45;
}

.p9-opts button.is-on {
  border-color: #176bff;
  box-shadow: 0 0 0 2px rgba(23, 107, 255, 0.16);
}

.p9-opts button.is-lit {
  border-color: #176bff;
}

.p9-feed {
  margin: 0;
  min-height: 1.6em;
  color: #e86a17;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  text-align: center;
}

.p9-end,
.p9-dir {
  margin: 0;
  padding: 10px 22px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: #f7f9fc;
  text-align: center;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.p9-end {
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.06em;
}

.p9-dir {
  font-size: clamp(18px, 1.7vw, 26px);
  letter-spacing: 0.06em;
}

.p10 {
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 8% 10%;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}

.p10-line,
.p10-box {
  opacity: 0;
}

.p10-line {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.p10-line strong {
  color: #e86a17;
  font-weight: 800;
}

.p10-box {
  width: min(920px, 100%);
  min-height: 7.4em;
  padding: 18px 22px 20px;
  border: 1.5px solid rgba(23, 50, 77, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.06);
}

.p10-type {
  margin: 0;
  min-height: 4.6em;
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.p10-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: #e86a17;
  animation: p10-blink 1s steps(1) infinite;
}

@keyframes p10-blink {
  50% {
    opacity: 0;
  }
}

.p11 {
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 6% 7%;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}

.p11-apps,
.p11-terms,
.p11-card,
.p11-skills b,
.p11-close {
  opacity: 0;
}

.p11-apps {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 14px 16px;
  width: min(1080px, 100%);
}

.p11-apps figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.p11-apps img {
  display: block;
  width: clamp(52px, 5.2vw, 68px);
  height: clamp(52px, 5.2vw, 68px);
  object-fit: cover;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 50, 77, 0.08);
}

.p11-apps figcaption {
  color: rgba(23, 50, 77, 0.62);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p11-more {
  align-self: center;
  color: rgba(23, 50, 77, 0.42);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding-bottom: 18px;
}

.p11-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 920px;
}

.p11-terms i {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: rgba(23, 50, 77, 0.62);
  font-style: normal;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.p11-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  align-self: center;
  flex-shrink: 0;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding: 26px 8vw 24px;
  border-radius: 0;
  background: #eef4ff;
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.06);
}

.p11-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.p11-skills b {
  padding: 10px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.p11-close {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 16px 22px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #f7f9fc;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.p11-close strong {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.p11-close span {
  white-space: nowrap;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.vignette,
.grain {
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.vignette {
  background: radial-gradient(ellipse at 50% 42%, transparent 68%, rgba(23, 50, 77, 0.04) 100%);
}

.grain {
  opacity: 0.016;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .title,
  .rail-year,
  .pin-cone,
  .screen-still,
  .p4-detail {
    transition: none;
    animation: none;
  }
}
