:root {
  color-scheme: dark;
  --ink: #f7f1e7;
  --muted: #c9bda9;
  --soft: rgba(255, 248, 236, 0.72);
  --line: rgba(233, 210, 170, 0.24);
  --panel: rgba(24, 25, 21, 0.78);
  --panel-strong: rgba(13, 14, 12, 0.9);
  --gold: #d6aa62;
  --dark: #10120f;
}

.testing-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f8efe1;
}

.testing-panel.is-open {
  width: min(300px, calc(100vw - 32px));
  border: 1px solid rgba(214, 189, 145, 0.32);
  border-radius: 8px;
  background: rgba(18, 16, 13, 0.9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.testing-panel-toggle {
  min-height: 36px;
  border: 1px solid rgba(214, 189, 145, 0.34);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(18, 16, 13, 0.62);
  color: rgba(248, 239, 225, 0.82);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.testing-panel.is-open .testing-panel-toggle {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(214, 189, 145, 0.18);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.06);
}

.testing-panel-body {
  padding: 14px;
}

.testing-panel-kicker,
.testing-panel-note,
.testing-panel-actor {
  margin: 0;
  color: rgba(248, 239, 225, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testing-panel h2 {
  margin: 4px 0 8px;
  color: #fff8ec;
  font-size: 1rem;
  letter-spacing: 0;
}

.testing-panel-note,
.testing-panel-actor {
  margin-top: 6px;
  letter-spacing: 0;
  text-transform: none;
}

.testing-panel-actions {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.testing-panel-actions button {
  min-height: 32px;
  border: 1px solid rgba(248, 239, 225, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ec;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.testing-panel-actions button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.testing-panel-actions button.danger {
  border-color: rgba(218, 93, 79, 0.55);
  color: #ffd9d4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(16, 18, 15, 0.62), rgba(16, 18, 15, 0.96)),
    radial-gradient(circle at 30% 15%, rgba(214, 170, 98, 0.2), transparent 36%),
    #10120f;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.studio-card,
.director-brief,
.makeup-board,
.back-studio-stage,
.conversation-set,
.pmx-page {
  width: min(920px, 100%);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.entrance-card {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px;
  background:
    linear-gradient(180deg, rgba(12, 13, 11, 0.22), rgba(12, 13, 11, 0.92)),
    radial-gradient(circle at 28% 20%, rgba(245, 214, 162, 0.32), transparent 30%),
    var(--panel-strong);
}

.compact-card {
  max-width: 560px;
  padding: 42px;
}

.casting-card {
  gap: 22px;
}

.landing-card {
  justify-content: center;
  gap: 0;
}

.landing-card h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 5.8vw, 6.2rem);
}

.landing-subtitle {
  max-width: 760px;
  margin: 24px 0 0;
  color: #fff4df;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.55;
  font-weight: 720;
}

.landing-body {
  max-width: 720px;
  margin: 28px 0 0;
}

.landing-invitation {
  max-width: 660px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(214, 170, 98, 0.28);
}

.landing-invitation p {
  margin: 0;
}

.landing-invitation p + p {
  margin-top: 6px;
  color: rgba(255, 248, 236, 0.86);
}

.casting-qr {
  position: relative;
  width: min(240px, 46vw);
  aspect-ratio: 1;
  margin: 28px 0 4px;
  display: grid;
  place-items: center;
  color: var(--dark);
  background:
    linear-gradient(90deg, #f4ead8 0 18%, transparent 18% 30%, #f4ead8 30% 48%, transparent 48% 62%, #f4ead8 62% 100%),
    linear-gradient(0deg, transparent 0 15%, #111 15% 24%, transparent 24% 38%, #111 38% 47%, transparent 47% 64%, #111 64% 74%, transparent 74% 100%),
    #f4ead8;
  border: 10px solid rgba(255, 246, 225, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.casting-qr span {
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  border: 9px solid #111;
  background: #f4ead8;
}

.casting-qr span:nth-child(1) {
  left: 9%;
  top: 9%;
}

.casting-qr span:nth-child(2) {
  right: 9%;
  top: 9%;
}

.casting-qr span:nth-child(3) {
  left: 9%;
  bottom: 9%;
}

.casting-qr strong {
  position: relative;
  z-index: 1;
  width: 28%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #111;
  background: rgba(244, 234, 216, 0.92);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.registration-card h1,
.cast-profile-card h1,
.privacy-card h1 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
}

.privacy-card {
  max-width: 680px;
}

.privacy-body {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(214, 170, 98, 0.26);
}

.privacy-body p {
  margin: 0;
  color: rgba(255, 248, 236, 0.88);
}

.brand-mark {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2,
h3,
p {
  letter-spacing: 0;
}

p {
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.primary,
.secondary {
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 0 24px;
  cursor: pointer;
}

.primary {
  margin-top: 28px;
  background: var(--ink);
  color: var(--dark);
  font-weight: 800;
}

.secondary {
  background: transparent;
  color: var(--ink);
}

.primary:disabled,
.secondary:disabled {
  cursor: default;
  opacity: 0.42;
}

.stack-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

label,
dt {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 16px 18px;
  outline: none;
}

fieldset {
  border: 1px solid var(--line);
  margin: 4px 0;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

legend {
  padding: 0 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-transform: none;
  font-size: 0.98rem;
  font-weight: 650;
}

fieldset input {
  width: auto;
}

.field-note {
  margin: -6px 0 2px;
  color: rgba(255, 248, 236, 0.62);
  font-size: 0.9rem;
}

.profile-actions {
  display: flex;
  justify-content: stretch;
}

.profile-actions .primary {
  flex: 1;
  min-height: 54px;
  font-size: 1.02rem;
}

textarea {
  resize: vertical;
}

.director-brief,
.makeup-board {
  padding: 58px;
}

.golden-beat-screen {
  padding: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.12), rgba(7, 7, 6, 0.9)),
    #080806;
}

.golden-beat-stage {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px);
  animation: pageIn 520ms ease both;
}

.golden-beat-visual {
  position: absolute;
  inset: 0;
  margin: 0;
}

.golden-beat-frame {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.08), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 58% 28%, rgba(214, 170, 98, 0.22), transparent 32%),
    #11120f;
}

.golden-beat-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.96;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1);
  transform-origin: center center;
}

.shot-seat-invitation .golden-beat-frame,
.shot-cast-page .golden-beat-frame,
.shot-script-forward .golden-beat-frame,
.shot-initiator-note .golden-beat-frame,
.shot-emotional-card .golden-beat-frame,
.shot-relationship-view .golden-beat-frame,
.shot-character-ready .golden-beat-frame {
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.14), rgba(0, 0, 0, 0.58)),
    #17140f;
}

.shot-seat-invitation .golden-beat-frame img,
.shot-cast-page .golden-beat-frame img,
.shot-script-forward .golden-beat-frame img,
.shot-initiator-note .golden-beat-frame img,
.shot-emotional-card .golden-beat-frame img,
.shot-relationship-view .golden-beat-frame img,
.shot-character-ready .golden-beat-frame img {
  filter: brightness(1.12) saturate(0.96) contrast(0.98);
}

.shot-seat-invitation .golden-beat-frame img {
  object-position: 50% 50%;
}

.shot-cast-page .golden-beat-frame img {
  object-position: 42% 48%;
  transform: scale(1.06);
}

.shot-script-forward .golden-beat-frame img {
  object-position: 54% 54%;
  transform: scale(1.1);
}

.shot-initiator-note .golden-beat-frame img {
  object-position: 48% 44%;
  transform: scale(1.04);
}

.shot-scene-cards .golden-beat-frame img {
  object-position: 58% 50%;
  transform: scale(1.08);
}

.shot-goal-page .golden-beat-frame img {
  object-position: 46% 52%;
  transform: scale(1.07);
}

.shot-conflict-close .golden-beat-frame img {
  object-position: 52% 46%;
  transform: scale(1.12);
}

.shot-emotional-card .golden-beat-frame img {
  object-position: 44% 50%;
  transform: scale(1.09);
}

.shot-relationship-view .golden-beat-frame img {
  object-position: 56% 48%;
  transform: scale(1.13);
}

.golden-beat-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.34), rgba(5, 5, 4, 0.04) 48%, rgba(5, 5, 4, 0.42)),
    linear-gradient(180deg, rgba(5, 5, 4, 0.08), rgba(5, 5, 4, 0.62));
  pointer-events: none;
}

.shot-seat-invitation .golden-beat-frame::after,
.shot-cast-page .golden-beat-frame::after,
.shot-script-forward .golden-beat-frame::after,
.shot-initiator-note .golden-beat-frame::after,
.shot-emotional-card .golden-beat-frame::after,
.shot-relationship-view .golden-beat-frame::after,
.shot-character-ready .golden-beat-frame::after {
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.18), rgba(5, 5, 4, 0.02) 48%, rgba(5, 5, 4, 0.24)),
    linear-gradient(180deg, rgba(255, 248, 236, 0.06), rgba(5, 5, 4, 0.42));
}

.golden-beat-frame.is-missing .cinematic-placeholder {
  display: block;
}

.golden-beat-hud {
  position: absolute;
  inset: clamp(18px, 4vw, 42px) clamp(18px, 4vw, 42px) auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.golden-beat-hud .brand-mark {
  margin: 0;
  color: rgba(247, 241, 231, 0.78);
}

.caption-toggle {
  min-width: 56px;
  min-height: 36px;
  border: 1px solid rgba(247, 241, 231, 0.38);
  background: rgba(6, 6, 5, 0.36);
  color: var(--ink);
  cursor: pointer;
}

.caption-toggle[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.golden-beat-voice {
  width: min(520px, calc(100% - 56px));
  position: absolute;
  left: clamp(28px, 6vw, 72px);
  bottom: clamp(28px, 6vw, 72px);
  z-index: 1;
}

.voice-state {
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  border: 1px solid rgba(247, 241, 231, 0.32);
  background: rgba(6, 6, 5, 0.36);
  padding: 9px 13px;
  color: rgba(247, 241, 231, 0.76);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.golden-caption {
  margin-bottom: 18px;
  background: rgba(6, 6, 5, 0.48);
  border-left: 2px solid var(--gold);
  padding: 14px 18px;
}

.golden-caption p {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.golden-beat-voice .primary {
  margin-top: 0;
}

.golden-beat-review-layer {
  position: absolute;
  inset: auto clamp(22px, 5vw, 64px) clamp(22px, 5vw, 64px);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 18px;
  pointer-events: none;
}

.golden-dialogue-subtitle {
  width: min(860px, 100%);
  padding: 8px 14px;
  background: rgba(6, 6, 5, 0.24);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.golden-dialogue-subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.golden-dialogue-subtitle p,
.golden-action-response p {
  margin: 0;
  color: rgba(247, 241, 231, 0.9);
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
  line-height: 1.45;
}

.golden-dialogue-subtitle p {
  white-space: normal;
}

.golden-choice-grid,
.golden-input-form,
.golden-scene-input,
.golden-reference-interface,
.golden-action-button,
.golden-action-response {
  pointer-events: auto;
}

.golden-choice-grid {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.golden-choice-scene {
  width: min(720px, 100%);
  color: rgba(247, 241, 231, 0.92);
  text-align: center;
}

.golden-choice-scene p {
  margin: 0;
  font-size: clamp(0.95rem, 1.45vw, 1.25rem);
}

.golden-text-choice-grid {
  width: min(920px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.golden-prop-choice-grid {
  width: min(420px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.golden-prop-choice-grid.golden-choice-count-3 {
  width: min(720px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.golden-choice {
  min-height: 52px;
  border: 1px solid rgba(247, 241, 231, 0.34);
  background: rgba(6, 6, 5, 0.46);
  color: var(--ink);
  cursor: pointer;
}

.golden-text-choice-card {
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 36px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(6, 6, 5, 0.52);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  font-size: clamp(0.82rem, 1.05vw, 0.96rem);
  font-weight: 700;
}

.golden-prop-card {
  min-height: 92px;
  border: 1px solid rgba(84, 57, 27, 0.44);
  background:
    linear-gradient(180deg, rgba(236, 213, 175, 0.96), rgba(196, 157, 104, 0.94));
  color: #1c1610;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 800;
}

.golden-image-choice-card {
  min-height: 178px;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: 0;
  background: rgba(23, 17, 12, 0.76);
  color: rgba(247, 241, 231, 0.94);
}

.golden-image-choice-card img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  display: block;
}

.golden-image-choice-card span {
  display: block;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(24, 18, 13, 0.72), rgba(8, 7, 6, 0.94));
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
}

.golden-choice:hover,
.golden-choice:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.golden-text-choice-card:hover,
.golden-text-choice-card:focus-visible {
  background: rgba(6, 6, 5, 0.76);
}

.golden-prop-card:hover,
.golden-prop-card:focus-visible {
  border-color: rgba(247, 241, 231, 0.76);
  color: #1c1610;
  transform: translateY(-1px);
}

.cinematic-hold {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.08), rgba(7, 7, 6, 0.86)),
    radial-gradient(circle at 52% 28%, rgba(214, 170, 98, 0.2), transparent 34%),
    #090a08;
}

.golden-input-form,
.golden-scene-input,
.golden-reference-interface {
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid rgba(247, 241, 231, 0.24);
  background: rgba(6, 6, 5, 0.42);
  padding: 16px;
}

.golden-scene-input {
  width: min(560px, 100%);
  grid-template-columns: 1fr;
  border-color: rgba(84, 57, 27, 0.36);
  background: transparent;
  padding: 0;
}

.shot-character-name .golden-scene-input {
  width: min(380px, calc(100vw - 44px));
}

.shot-character-name .golden-script-input-card {
  min-height: 92px;
}

.golden-script-input-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(84, 57, 27, 0.44);
  background:
    linear-gradient(180deg, rgba(236, 213, 175, 0.96), rgba(196, 157, 104, 0.94));
  color: #1c1610;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  padding: 16px;
  font-weight: 800;
}

.golden-script-input-card textarea,
.golden-script-input-card input {
  width: 100%;
  resize: none;
  border: 1px solid rgba(28, 22, 16, 0.32);
  background: rgba(255, 250, 238, 0.42);
  color: #1c1610;
  font: inherit;
  font-weight: 500;
  padding: 10px 12px;
}

.golden-script-input-card textarea::placeholder,
.golden-script-input-card input::placeholder {
  color: rgba(28, 22, 16, 0.54);
}

.golden-script-submit-card {
  justify-self: end;
  min-width: 148px;
  border: 1px solid rgba(84, 57, 27, 0.48);
  background:
    linear-gradient(180deg, rgba(240, 220, 183, 0.96), rgba(204, 164, 105, 0.94));
  color: #1c1610;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  padding: 12px 18px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.golden-script-submit-card:hover,
.golden-script-submit-card:focus-visible {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgba(250, 232, 195, 0.98), rgba(216, 177, 118, 0.96));
}

.golden-reference-interface input {
  background: rgba(255, 255, 255, 0.06);
}

.golden-action-response {
  width: min(520px, 100%);
  border: 1px solid rgba(247, 241, 231, 0.22);
  background: rgba(6, 6, 5, 0.48);
  padding: 16px 18px;
}

.golden-action-button {
  margin-top: 0;
}

.beat-card {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  animation: pageIn 360ms ease both;
}

.beat-card h1 {
  max-width: 720px;
}

.beat-dialogue {
  margin-top: 8px;
}

.beat-response {
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.07);
  padding: 18px;
}

.beat-visual-reference {
  width: min(680px, 100%);
  margin: 22px 0 0;
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.05);
  overflow: hidden;
}

.beat-response p {
  margin: 0 0 8px;
}

.beat-visual-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.08), rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at 62% 28%, rgba(214, 170, 98, 0.2), transparent 34%),
    #11120f;
}

.beat-visual-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cinematic-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(11, 12, 10, 0.18), rgba(11, 12, 10, 0.84)),
    radial-gradient(circle at 46% 30%, rgba(247, 241, 231, 0.16), transparent 28%),
    linear-gradient(120deg, rgba(37, 34, 27, 0.88), rgba(10, 11, 9, 0.96));
}

.beat-visual-frame.is-missing .cinematic-placeholder {
  display: block;
}

.beat-response {
  max-width: 680px;
  margin-top: 10px;
}

.beat-response .shot-label {
  margin-top: 14px;
}

.beat-response .shot-label:first-child {
  margin-top: 0;
}

.beat-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.beat-input-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.beat-input-form .primary {
  justify-self: start;
}

.director-brief > p,
.makeup-board p,
.makeup-board blockquote {
  max-width: 680px;
}

.sequence-subtitle {
  margin: 14px 0 0;
  color: var(--gold);
  font-size: 1.2rem;
}

.sequence-goal {
  margin: 34px 0;
  border-left: 2px solid var(--gold);
  padding-left: 22px;
}

.sequence-goal p {
  margin: 0 0 6px;
  color: var(--ink);
}

.picture-lock-board {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.picture-lock-shot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.shot-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shot-action p,
.director-lines p {
  margin: 0 0 6px;
}

.shot-action p {
  color: var(--muted);
  font-size: 0.95rem;
}

.director-lines {
  margin-top: 14px;
  padding: 18px;
  background: rgba(255, 248, 236, 0.08);
}

.director-lines p {
  color: var(--ink);
  font-size: 1.08rem;
}

.director-commentary {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.makeup-board dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0;
}

.media-translation-shot {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.media-translation-shot > p {
  max-width: 760px;
}

.back-studio-screen {
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.18), rgba(8, 9, 8, 0.86)),
    radial-gradient(circle at 62% 22%, rgba(255, 231, 185, 0.24), transparent 34%),
    linear-gradient(120deg, rgba(29, 34, 28, 0.92), rgba(9, 10, 9, 0.98));
}

.back-studio-stage {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px;
  overflow: hidden;
  position: relative;
  animation: pageIn 520ms ease both;
}

.back-studio-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: slowPush 8s ease-in-out both;
}

.back-studio-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.82)),
    linear-gradient(90deg, rgba(5, 5, 5, 0.66), transparent 58%);
  pointer-events: none;
}

.back-studio-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 248, 236, 0.08) 18% 19%, transparent 19% 100%),
    radial-gradient(circle at 74% 20%, rgba(255, 248, 236, 0.2), transparent 18%);
  opacity: 0.72;
  transform: scale(1.04);
  animation: slowPush 8s ease-in-out both;
  pointer-events: none;
}

.back-studio-stage > * {
  position: relative;
  z-index: 1;
}

.back-studio-stage h1 {
  max-width: 620px;
}

.shot-action-single {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--ink);
}

.action-lines {
  max-width: 520px;
}

.camera-quiet {
  background: #050505;
  box-shadow: none;
}

.camera-quiet::before,
.camera-quiet .back-studio-image,
.camera-quiet .back-studio-shade {
  display: none;
}

.action-gate {
  min-height: 54vh;
  display: grid;
  place-items: center;
}

.enter-lens-button {
  min-width: min(360px, 72vw);
  min-height: 72px;
  border: 1px solid rgba(247, 241, 231, 0.72);
  background: var(--ink);
  color: var(--dark);
  font-size: 1.45rem;
  font-weight: 900;
  cursor: pointer;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.choice-card {
  min-height: 112px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.08);
  color: var(--ink);
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.choice-card:hover,
.choice-card:focus {
  border-color: var(--gold);
  outline: none;
}

.makeup-wardrobe-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
}

.makeup-wardrobe-card {
  min-height: clamp(280px, 28vw, 390px);
  padding: 0;
  overflow: hidden;
}

.makeup-wardrobe-card img {
  width: 100%;
  height: clamp(232px, 24vw, 332px);
  object-fit: contain;
  object-position: center;
  background: rgba(255, 248, 236, 0.08);
  display: block;
}

.makeup-wardrobe-card span {
  display: block;
  padding: 10px 12px 12px;
}

.reference-interface {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.still-generation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.still-frame {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.14), rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 50% 30%, rgba(214, 170, 98, 0.28), transparent 36%);
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 800;
}

.still-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.still-card {
  aspect-ratio: 4 / 5;
  display: flex;
  position: relative;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.08), rgba(0, 0, 0, 0.56)),
    radial-gradient(circle at 50% 26%, rgba(214, 170, 98, 0.22), transparent 32%);
}

.still-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(10, 8, 6, 0.32);
}

.still-card span {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  padding: 34px 12px 12px;
  font-weight: 800;
}

.makeup-board dl div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
}

blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.6;
}

.conversation-set {
  display: grid;
  grid-template-rows: auto minmax(280px, 50vh) auto auto;
  gap: 22px;
  padding: 34px;
}

.conversation-set header h1 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  padding-right: 8px;
}

.quiet-cue {
  align-self: center;
  margin: auto;
  color: var(--muted);
  font-size: 1.5rem;
}

.line {
  width: min(78%, 680px);
  padding: 18px 20px;
  border: 1px solid var(--line);
}

.line span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.line p {
  margin: 0;
  color: var(--ink);
}

.user-line {
  align-self: flex-end;
  background: rgba(255, 248, 236, 0.12);
}

.actor-line {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.22);
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.composer-actions {
  display: flex;
  gap: 10px;
}

.composer-actions .primary {
  margin-top: 0;
}

.voice-button {
  min-width: 64px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.08);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.end-button {
  width: 100%;
}

.runtime-conversation-screen {
  display: block;
  width: 100vw;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #050505;
}

.runtime-scene {
  position: relative;
  width: 100%;
  min-width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.runtime-scene > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}

.runtime-scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.12) 56%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.14));
  pointer-events: none;
}

.runtime-actor-subtitle {
  position: absolute;
  left: clamp(18px, 14vw, 220px);
  right: clamp(18px, 14vw, 220px);
  bottom: clamp(188px, 25vh, 300px);
  z-index: 2;
  display: flex;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.runtime-actor-subtitle p {
  max-width: min(920px, 100%);
  margin: 0;
  border-radius: 4px;
  background: rgba(10, 10, 9, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  color: rgba(255, 251, 242, 0.96);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.36;
  padding: 12px 18px;
}

.runtime-composer {
  position: absolute;
  left: clamp(16px, 8vw, 140px);
  right: clamp(16px, 8vw, 140px);
  bottom: clamp(14px, 3vh, 34px);
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.runtime-voice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.runtime-voice-button,
.runtime-text-toggle,
.runtime-send-button,
.runtime-end-button {
  border: 1px solid rgba(238, 203, 143, 0.46);
  border-radius: 999px;
  background: rgba(9, 8, 6, 0.58);
  color: rgba(255, 246, 225, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.runtime-voice-button,
.runtime-text-toggle {
  min-height: 42px;
  padding: 9px 18px;
}

.runtime-voice-button {
  display: inline-flex;
  min-height: 52px;
  min-width: 178px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 800;
}

.runtime-voice-button:disabled,
.runtime-send-button:disabled,
.runtime-end-button:disabled {
  cursor: default;
  opacity: 0.48;
}

.runtime-mic-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.runtime-text-toggle {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.88rem;
  font-weight: 800;
}

.runtime-input-status {
  margin: 0;
  color: rgba(255, 246, 225, 0.78);
  font-size: 0.86rem;
  text-align: center;
}

.runtime-text-entry {
  display: none;
  width: min(620px, 100%);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.runtime-text-entry.active {
  display: grid;
}

.runtime-text-entry textarea {
  min-height: 46px;
  max-height: 92px;
  resize: vertical;
  border: 1px solid rgba(238, 203, 143, 0.36);
  border-radius: 12px;
  background: rgba(255, 247, 230, 0.9);
  color: #17130e;
  font-size: 0.98rem;
  line-height: 1.35;
  padding: 12px 14px;
}

.runtime-send-button {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
}

.runtime-end-button {
  position: absolute;
  right: clamp(16px, 4vw, 58px);
  bottom: clamp(26px, 6vh, 66px);
  z-index: 3;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.82rem;
}

.pmx-screen {
  background: #090907;
  display: grid;
  padding: 0;
  place-items: center;
}

.pmx-page {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  min-height: 0;
  overflow: hidden;
  padding: 0;
  animation: pageIn 420ms ease both;
}

.pmx-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(214, 170, 98, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(10, 9, 7, 0.18), rgba(3, 3, 3, 0.84)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.56), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.62));
  z-index: 1;
  pointer-events: none;
}

.pmx-dynamic-source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pmx-page-title {
  margin-bottom: clamp(10px, 1.8vh, 22px);
}

.pmx-page-title p,
.pmx-page-title small {
  margin: 0;
}

.pmx-page-title p {
  color: #20170f;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(0.96rem, 1.42vw, 1.5rem);
  line-height: 1.08;
}

.pmx-page-title small {
  display: block;
  margin-top: 5px;
  color: rgba(86, 61, 34, 0.72);
  font-size: clamp(0.58rem, 0.68vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pmx-single-note {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 0.35em 0.7em;
  align-items: start;
}

.pmx-single-note span {
  grid-row: span 3;
  color: #83551f;
  font-size: clamp(1.2rem, 2.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.pmx-single-note h2 {
  margin: 0;
  color: rgba(24, 17, 12, 0.98);
  font-size: clamp(0.88rem, 1.06vw, 1.16rem);
  line-height: 1.22;
}

.pmx-single-note p,
.pmx-single-note small {
  margin: 0;
  color: rgba(31, 22, 15, 0.96);
  font-size: clamp(0.74rem, 0.82vw, 0.9rem);
  line-height: 1.46;
}

.pmx-single-note small {
  color: rgba(31, 22, 15, 0.88);
}

.pmx-office {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 76px);
  background:
    linear-gradient(180deg, rgba(46, 33, 22, 0.22), rgba(5, 4, 3, 0.82)),
    radial-gradient(circle at 19% 18%, rgba(255, 215, 145, 0.2), transparent 17%),
    radial-gradient(circle at 77% 21%, rgba(255, 224, 163, 0.12), transparent 16%),
    linear-gradient(90deg, #18110d 0 12%, #2a1c13 12% 22%, #392719 22% 23%, #17110e 23% 78%, #2a1b12 78% 100%);
}

.pmx-office::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  height: 34%;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(50, 28, 15, 0.88), rgba(113, 72, 39, 0.96), rgba(54, 31, 18, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 22px);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.12);
  transform: perspective(900px) rotateX(55deg);
  transform-origin: bottom;
}

.pmx-office::after {
  content: "";
  position: absolute;
  left: 16%;
  top: 12%;
  width: 16%;
  height: 32%;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255, 225, 166, 0.22), transparent 12% 24%, rgba(255, 225, 166, 0.18) 24% 34%, transparent 34%),
    rgba(255, 245, 220, 0.08);
  box-shadow: 0 0 90px rgba(221, 170, 92, 0.24);
}

.pmx-letter-paper,
.pmx-open-notebook,
.pmx-closed-notebook {
  position: relative;
  z-index: 2;
  color: #2b2117;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.46);
}

.pmx-letter-paper {
  width: min(620px, 76vw);
  min-height: min(620px, 66vh);
  padding: clamp(34px, 5vw, 72px);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 252, 239, 0.96), rgba(231, 215, 183, 0.96)),
    repeating-linear-gradient(0deg, rgba(80, 58, 34, 0.05) 0 1px, transparent 1px 31px);
  animation: pmxLetterIn 700ms ease both;
}

.pmx-letter-content p {
  margin: 0 0 1em;
  color: #2b2117;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(1rem, 1.32vw, 1.22rem);
  line-height: 1.78;
}

.signature {
  color: #6f4b22;
  font-family: "Songti SC", "STSong", serif;
  text-align: right;
}

.pmx-side-label {
  position: absolute;
  left: clamp(22px, 4vw, 64px);
  top: clamp(24px, 5vh, 70px);
  z-index: 3;
  display: grid;
  gap: 8px;
  color: rgba(255, 241, 212, 0.9);
  letter-spacing: 0;
}

.pmx-side-label span {
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: var(--gold);
}

.pmx-side-label strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.pmx-pen {
  position: absolute;
  z-index: 3;
  width: 210px;
  height: 9px;
  right: 28%;
  bottom: 22%;
  border-radius: 999px;
  background: linear-gradient(90deg, #17120c, #caa46b 18%, #19140f 72%, #d8c08a 72% 75%, #16110c 75%);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.32);
  transform: rotate(-13deg);
}

.pmx-open-notebook {
  width: min(920px, 84vw);
  min-height: min(540px, 62vh);
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: clamp(22px, 4vw, 46px);
  padding: clamp(26px, 4vw, 54px);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(238, 224, 195, 0.96) 0 49%, rgba(114, 79, 44, 0.28) 49% 50.5%, rgba(243, 230, 203, 0.96) 50.5% 100%);
  animation: pmxPageTurn 620ms ease both;
}

.pmx-open-notebook header {
  align-self: start;
}

.pmx-open-notebook header p,
.pmx-closed-notebook p {
  margin: 0 0 10px;
  color: #7b5529;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.pmx-open-notebook h1,
.pmx-closed-notebook h1 {
  margin: 0;
  color: #2a2018;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(1.9rem, 4vw, 4rem);
}

.pmx-notes-list {
  display: grid;
  gap: 15px;
}

.pmx-notes-list section {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(70, 49, 28, 0.18);
}

.pmx-notes-list span {
  grid-row: span 3;
  color: #9a6d36;
  font-weight: 800;
}

.pmx-notes-list h2 {
  margin: 0;
  color: #2b2117;
  font-size: clamp(1rem, 1.35vw, 1.24rem);
}

.pmx-notes-list p,
.pmx-notes-list small {
  margin: 0;
  color: #3e3024;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.55;
}

.relationship-book {
  grid-template-columns: 1fr;
  place-items: stretch;
}

.relationship-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: clamp(8px, 1.5vw, 18px) 0 clamp(10px, 1.7vw, 20px);
  padding: 0;
  list-style: none;
}

.relationship-track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45em;
  color: rgba(42, 32, 24, 0.55);
  font-size: clamp(0.68rem, 0.78vw, 0.86rem);
}

.relationship-track li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(83, 60, 36, 0.25);
  z-index: 0;
}

.relationship-track span {
  position: relative;
  z-index: 1;
  width: clamp(14px, 1.25vw, 21px);
  height: clamp(14px, 1.25vw, 21px);
  border-radius: 50%;
  border: 1px solid rgba(83, 60, 36, 0.34);
  background: #ead9b9;
}

.relationship-track li.current {
  color: #2a2018;
}

.relationship-track li.current span {
  border-color: rgba(166, 116, 48, 0.86);
  background: #c99849;
  box-shadow: 0 0 0 9px rgba(201, 152, 73, 0.17), 0 0 28px rgba(201, 152, 73, 0.38);
  animation: relationshipGlow 1800ms ease-in-out infinite alternate;
}

.relationship-summary,
.relationship-footer {
  max-width: 64%;
  margin: 0 auto;
  color: #21170f;
  text-align: center;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(0.9rem, 1.22vw, 1.35rem);
  line-height: 1.5;
  font-weight: 700;
}

.relationship-footer {
  margin-top: 18px;
  color: rgba(52, 39, 28, 0.68);
  font-size: 0.95rem;
}

.pmx-closed-notebook {
  width: min(560px, 70vw);
  min-height: min(360px, 46vh);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 46px;
  border-radius: 9px;
  background:
    linear-gradient(145deg, #211812, #4a321f 42%, #17110c),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  color: #e9d4a2;
  transform: rotate(-2deg);
  animation: pmxNotebookClose 760ms ease both;
}

.pmx-closed-notebook h1,
.pmx-closed-notebook p {
  color: #e8c988;
}

.empty-director-chair {
  position: absolute;
  z-index: 1;
  top: 17%;
  left: 50%;
  width: 170px;
  height: 230px;
  border: 2px solid rgba(229, 196, 129, 0.24);
  border-radius: 12px 12px 4px 4px;
  transform: translateX(-50%);
  opacity: 0.42;
}

.empty-director-chair::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -36px;
  height: 46px;
  border-radius: 10px;
  background: rgba(20, 13, 8, 0.58);
}

.pmx-bottom-actions {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 5vh, 58px);
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 12px;
  width: min(760px, calc(100% - 36px));
  transform: translateX(-50%);
}

.pmx-light-button {
  min-height: 40px;
  border: 1px solid rgba(229, 196, 129, 0.48);
  border-radius: 8px;
  background: rgba(15, 12, 9, 0.54);
  color: rgba(255, 239, 204, 0.95);
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.pmx-light-button:hover {
  background: rgba(214, 170, 98, 0.2);
  border-color: rgba(229, 196, 129, 0.72);
}

.pmx-paper-write-layer,
.pmx-notebook-write-layer {
  isolation: isolate;
}

.pmx-paper-write-layer::before,
.pmx-notebook-write-layer::before {
  content: "";
  position: absolute;
  inset: -2.5%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(232, 211, 176, 0.96), rgba(216, 190, 145, 0.96)),
    repeating-linear-gradient(0deg, rgba(76, 53, 31, 0.04) 0 1px, transparent 1px 30px);
  border-radius: 2px;
  box-shadow: none;
}

.pmx-notes-left,
.pmx-notes-right {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.3vh, 14px);
  min-width: 0;
}

.pmx-note-section {
  color: #21160d;
  border-bottom: 1px solid rgba(60, 38, 19, 0.34);
  padding-bottom: clamp(6px, 0.9vh, 10px);
}

.pmx-note-section h2 {
  display: inline-block;
  margin: 0 0 0.38em;
  color: #21160d;
  border-bottom: 2px solid rgba(78, 44, 20, 0.64);
  font-size: clamp(0.95rem, 1.45vw, 1.72rem);
  line-height: 1.1;
  font-weight: 800;
}

.pmx-note-section p {
  margin: 0 0 0.35em;
  color: #21160d;
  font-size: clamp(0.72rem, 1.02vw, 1.14rem);
  line-height: 1.48;
  font-weight: 650;
}

.pmx-note-section-arrow h2::after {
  content: " →";
  color: #7e2f1f;
}

.pmx-keyword-note {
  margin-top: auto;
  width: 78%;
  align-self: center;
  padding: clamp(9px, 1.2vw, 16px) clamp(13px, 1.6vw, 22px);
  color: #24180f;
  background: rgba(195, 159, 99, 0.9);
  transform: rotate(-1.6deg);
  box-shadow: 0 6px 18px rgba(70, 35, 10, 0.12);
}

.pmx-keyword-note span,
.pmx-keyword-note strong {
  display: block;
  font-size: clamp(0.78rem, 1.02vw, 1.14rem);
  line-height: 1.45;
}

.pmx-keyword-note strong {
  margin-top: 0.3em;
  font-size: clamp(0.9rem, 1.35vw, 1.55rem);
}

.pmx-handdrawn-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 clamp(28px, 5vh, 64px);
  padding: 0;
}

.pmx-handdrawn-track::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: clamp(10px, 1.4vw, 18px);
  height: 3px;
  background: rgba(36, 26, 18, 0.72);
  transform: rotate(-1deg);
}

.pmx-handdrawn-track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.34em;
  color: #21160d;
  text-align: center;
  font-size: clamp(0.68rem, 0.92vw, 1.05rem);
}

.pmx-handdrawn-track li::before {
  display: none;
}

.pmx-handdrawn-track span {
  position: relative;
  z-index: 1;
  width: clamp(15px, 1.5vw, 24px);
  height: clamp(15px, 1.5vw, 24px);
  border: 3px solid rgba(24, 18, 13, 0.86);
  background: rgba(225, 202, 160, 0.98);
}

.pmx-handdrawn-track strong {
  font-size: clamp(0.8rem, 1.08vw, 1.28rem);
}

.pmx-handdrawn-track small {
  color: #2a1b10;
  font-size: clamp(0.6rem, 0.8vw, 0.94rem);
  line-height: 1.32;
}

.pmx-handdrawn-track li.current span {
  border-color: #315d35;
  background: #c89c55;
  box-shadow: 0 0 0 9px rgba(74, 117, 57, 0.2);
}

.pmx-handdrawn-track li.current strong {
  color: #315d35;
}

.pmx-journey-reading {
  width: 52%;
  color: #21160d;
}

.pmx-journey-reading h3 {
  display: inline-block;
  margin: 0 0 0.42em;
  border-bottom: 2px solid rgba(49, 93, 53, 0.66);
  font-size: clamp(0.95rem, 1.42vw, 1.62rem);
}

.pmx-journey-reading p {
  margin: 0;
  font-size: clamp(0.82rem, 1.15vw, 1.36rem);
  line-height: 1.62;
  font-weight: 700;
}

  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.6vh, 18px);
  width: min(32vw, 500px);
}

.pmx-next-action {
  min-height: clamp(54px, 7.5vh, 92px);
  border: 1px solid rgba(231, 194, 126, 0.74);
  border-radius: 8px;
  background: rgba(150, 103, 42, 0.9);
  color: #fff7e8;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(1.1rem, 2vw, 2.25rem);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 248, 225, 0.24);
}

.pmx-next-action.primary {
  background: rgba(16, 50, 75, 0.92);
  box-shadow: 0 0 28px rgba(151, 196, 219, 0.26), 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* PMX Visual Recovery: Clean Plate Architecture */
.pmx-clean-page {
  background:
    radial-gradient(circle at 72% 13%, rgba(226, 174, 85, 0.34), transparent 16%),
    radial-gradient(circle at 35% 12%, rgba(255, 211, 137, 0.14), transparent 26%),
    linear-gradient(180deg, #1b120c 0%, #140d09 45%, #0a0705 100%);
}

.pmx-clean-page::before {
  background:
    linear-gradient(180deg, rgba(6, 4, 3, 0.02), rgba(6, 4, 3, 0.18)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.42));
}

.pmx-room-set {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pmx-table {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -8%;
  height: 46%;
  background:
    linear-gradient(90deg, rgba(44, 24, 12, 0.96), rgba(119, 73, 33, 0.98), rgba(49, 27, 14, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 237, 191, 0.06) 0 1px, transparent 1px 30px);
  transform: perspective(1200px) rotateX(58deg);
  transform-origin: bottom;
  box-shadow: inset 0 2px rgba(255, 236, 188, 0.16), 0 -34px 90px rgba(0, 0, 0, 0.28);
}

.pmx-sofa {
  position: absolute;
  left: 11%;
  top: 17%;
  width: 32%;
  height: 22%;
  border-radius: 24px 24px 8px 8px;
  background:
    linear-gradient(180deg, rgba(93, 69, 49, 0.66), rgba(48, 34, 25, 0.78)),
    linear-gradient(90deg, transparent 0 30%, rgba(255, 236, 190, 0.06) 30% 31%, transparent 31% 63%, rgba(255, 236, 190, 0.05) 63% 64%, transparent 64%);
  filter: blur(0.7px);
  opacity: 0.72;
}

.pmx-lamp {
  position: absolute;
  left: 64%;
  top: 5%;
  width: 9%;
  height: 23%;
  opacity: 0.9;
}

.pmx-lamp::before {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: 0;
  height: 44%;
  border-radius: 50% 50% 16% 16%;
  background: linear-gradient(180deg, #f4c879, #8b5426);
  box-shadow: 0 0 72px rgba(229, 166, 78, 0.52);
}

.pmx-lamp span {
  position: absolute;
  left: 47%;
  top: 38%;
  width: 6%;
  height: 62%;
  background: rgba(116, 78, 42, 0.7);
}

.pmx-bookshelf {
  position: absolute;
  right: 7%;
  top: 13%;
  width: 21%;
  height: 29%;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(86, 54, 28, 0.66) 0 8px, rgba(27, 17, 10, 0.7) 8px 15px, rgba(132, 87, 42, 0.5) 15px 23px),
    linear-gradient(180deg, rgba(45, 30, 18, 0.76), rgba(18, 12, 8, 0.82));
  box-shadow: inset 0 0 0 8px rgba(30, 20, 12, 0.48);
  filter: blur(0.5px);
  opacity: 0.58;
}

.pmx-clean-title {
  position: absolute;
  left: clamp(42px, 4.4vw, 84px);
  top: clamp(28px, 5.6vh, 70px);
  z-index: 4;
  color: #f1c477;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.pmx-clean-title h1 {
  margin: 0;
  color: #f1c477;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(2rem, 3.4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.pmx-clean-title p {
  margin: 0.28em 0 0;
  color: rgba(255, 226, 171, 0.92);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.55vw, 1.9rem);
  line-height: 1.08;
}

.pmx-letter-surface {
  position: absolute;
  left: 28%;
  top: 9.4%;
  z-index: 3;
  width: 30.5%;
  max-height: 78%;
  box-sizing: border-box;
  aspect-ratio: 0.62 / 1;
  padding: clamp(28px, 3.5vw, 62px) clamp(30px, 3.8vw, 70px);
  color: #24170e;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 252, 230, 0.38), transparent 23%),
    linear-gradient(180deg, #dec99b, #d6bd88);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(93, 59, 28, 0.16);
  transform: perspective(1100px) rotateX(2deg) rotateZ(-3deg);
  transform-origin: center;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  animation: pmxLetterIn 650ms ease both;
  overflow: hidden;
}

.pmx-letter-page::after {
  content: "";
  position: absolute;
  left: 27.2%;
  top: 73.4%;
  z-index: 2;
  width: clamp(46px, 5.2vw, 86px);
  aspect-ratio: 0.74;
  border-radius: 50% 42% 54% 46%;
  background:
    linear-gradient(145deg, #bf8762, #d7aa82 54%, #ae7959);
  box-shadow:
    10px -6px 0 -13px rgba(203, 145, 104, 0.7),
    inset -10px -14px 22px rgba(88, 49, 30, 0.22),
    0 14px 24px rgba(0, 0, 0, 0.22);
  filter: saturate(0.66);
  opacity: 0.86;
  transform: rotate(-8deg);
  pointer-events: none;
}

.pmx-letter-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(88, 55, 29, 0.055) 30px 31px),
    radial-gradient(circle at 80% 8%, rgba(70, 43, 22, 0.08), transparent 18%);
  pointer-events: none;
}

.pmx-letter-greeting,
.pmx-letter-surface .signature,
.pmx-letter-surface .pmx-letter-content {
  position: relative;
  z-index: 1;
}

.pmx-letter-greeting {
  margin: 0 0 clamp(12px, 2vh, 24px);
  font-size: clamp(1.12rem, 1.58vw, 1.76rem);
  line-height: 1.22;
  font-weight: 800;
}

.pmx-letter-surface .pmx-letter-content {
  max-height: 72%;
  overflow: hidden;
}

.pmx-letter-surface .pmx-letter-content p {
  margin: 0 0 0.7em;
  color: #24170e;
  font-size: clamp(0.92rem, 1.18vw, 1.42rem);
  line-height: 1.62;
  font-weight: 650;
}

.pmx-letter-surface .signature {
  margin: clamp(8px, 1.4vh, 16px) 0 0;
  text-align: right;
  font-size: clamp(0.98rem, 1.28vw, 1.5rem);
  font-weight: 800;
}

.pmx-desk-props {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pmx-prop-mug {
  position: absolute;
  left: 12%;
  bottom: 28%;
  width: clamp(46px, 5vw, 76px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #1a120d 0 34%, #5b3b22 35% 56%, #20140c 57%);
  box-shadow: 0 11px 25px rgba(0, 0, 0, 0.32);
}

.pmx-prop-pen {
  position: absolute;
  right: 20%;
  bottom: 24%;
  width: clamp(130px, 15vw, 230px);
  height: clamp(7px, 0.75vw, 12px);
  border-radius: 999px;
  background: linear-gradient(90deg, #100d0b, #d8b06a 14%, #111 22% 74%, #d9b36c 74% 78%, #111 78%);
  transform: rotate(-14deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.pmx-prop-notebook {
  position: absolute;
  right: 16%;
  bottom: 25%;
  width: clamp(170px, 21vw, 340px);
  height: clamp(120px, 15vw, 230px);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #18100b, #4b301d 52%, #100b08),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 16px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36), inset 0 0 0 2px rgba(226, 174, 85, 0.16);
  transform: rotate(3deg);
}

.pmx-prop-notebook::after {
  content: "导演\A手记";
  white-space: pre;
  position: absolute;
  inset: 35% 12% auto;
  color: rgba(231, 188, 104, 0.86);
  text-align: center;
  font-family: Georgia, serif;
  font-size: clamp(0.78rem, 1.2vw, 1.55rem);
  letter-spacing: 0.03em;
}

.pmx-prop-envelope {
  position: absolute;
  right: 23%;
  bottom: 43%;
  width: clamp(160px, 18vw, 300px);
  height: clamp(74px, 8.3vw, 142px);
  background: linear-gradient(180deg, #d8c196, #bfa576);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(73, 45, 22, 0.14);
  transform: rotate(-2deg);
}

.pmx-prop-envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(32deg, transparent 49%, rgba(87, 54, 27, 0.22) 50%, transparent 51%),
    linear-gradient(-32deg, transparent 49%, rgba(87, 54, 27, 0.22) 50%, transparent 51%);
}

.pmx-desk-props-next .pmx-prop-mug {
  left: auto;
  right: 8%;
  bottom: 27%;
}

.pmx-desk-props-next .pmx-prop-notebook {
  right: 23%;
  bottom: 18%;
}

.pmx-desk-props-next .pmx-prop-envelope {
  right: 34%;
  bottom: 39%;
}

.pmx-notebook-surface {
  position: absolute;
  left: 18%;
  top: 18%;
  z-index: 3;
  width: 64%;
  height: 68%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5.7vw, 96px);
  padding: clamp(24px, 3.4vw, 58px) clamp(38px, 4.8vw, 84px);
  color: #25180d;
  background:
    linear-gradient(90deg, #d8c18f 0 49.2%, #6f4b28 49.2% 50.8%, #dbc493 50.8% 100%);
  border-radius: 8px;
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(76, 48, 24, 0.16);
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  animation: pmxPageTurn 620ms ease both;
  overflow: hidden;
}

.pmx-notebook-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(83, 53, 28, 0.07) 29px 30px),
    radial-gradient(circle at 20% 16%, rgba(255, 247, 218, 0.22), transparent 23%),
    radial-gradient(circle at 80% 16%, rgba(255, 247, 218, 0.18), transparent 25%);
  pointer-events: none;
}

.pmx-notebook-rings {
  position: absolute;
  left: 50%;
  top: 9%;
  bottom: 9%;
  z-index: 1;
  width: clamp(16px, 1.8vw, 28px);
  transform: translateX(-50%);
  background:
    radial-gradient(circle, #2f241a 0 34%, transparent 35%) center 6% / 100% 15% repeat-y;
  opacity: 0.92;
}

.pmx-notes-left,
.pmx-notes-right,
.pmx-journey-surface > h2,
.pmx-journey-surface > ol,
.pmx-journey-reading {
  position: relative;
  z-index: 2;
}

.pmx-notes-left,
.pmx-notes-right {
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 1.1vh, 13px);
  min-width: 0;
  overflow: hidden;
}

.pmx-note-section {
  min-height: 0;
  padding-bottom: clamp(5px, 0.7vh, 9px);
  border-bottom: 1px solid rgba(68, 43, 22, 0.32);
}

.pmx-note-section h2 {
  display: inline-block;
  margin: 0 0 0.28em;
  color: #21150c;
  border-bottom: 2px solid rgba(74, 42, 20, 0.7);
  font-size: clamp(0.88rem, 1.28vw, 1.56rem);
  line-height: 1.1;
  font-weight: 850;
}

.pmx-note-section p {
  display: -webkit-box;
  margin: 0 0 0.3em;
  overflow: hidden;
  color: #24170e;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: clamp(0.66rem, 0.94vw, 1.06rem);
  line-height: 1.42;
  font-weight: 650;
}

.pmx-note-section-arrow h2::after {
  content: " →";
  color: #7e2f1f;
}

.pmx-keyword-note {
  margin-top: auto;
  align-self: center;
  width: min(86%, 360px);
  padding: clamp(8px, 1vw, 14px) clamp(12px, 1.4vw, 20px);
  color: #24170e;
  background: #c7a466;
  box-shadow: 0 8px 20px rgba(72, 42, 18, 0.18);
  transform: rotate(-1.4deg);
}

.pmx-keyword-note span,
.pmx-keyword-note strong {
  display: block;
  font-size: clamp(0.7rem, 0.95vw, 1.1rem);
  line-height: 1.36;
}

.pmx-keyword-note strong {
  margin-top: 0.25em;
  font-size: clamp(0.82rem, 1.18vw, 1.38rem);
}

.pmx-journey-surface {
  grid-template-columns: 1fr;
  gap: 0;
}

.pmx-journey-surface h2 {
  margin: 0 0 clamp(20px, 4vh, 50px);
  color: #1f140b;
  text-align: center;
  font-size: clamp(1.35rem, 2.45vw, 3.2rem);
  line-height: 1.08;
  font-weight: 850;
}

.pmx-handdrawn-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto clamp(24px, 4vh, 54px);
  width: 92%;
  padding: 0;
  list-style: none;
}

.pmx-handdrawn-track::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: clamp(12px, 1.45vw, 20px);
  height: 3px;
  background: rgba(35, 25, 16, 0.72);
  transform: rotate(-1deg);
}

.pmx-handdrawn-track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35em;
  color: #281b10;
  text-align: center;
  font-size: clamp(0.66rem, 0.9vw, 1.04rem);
}

.pmx-handdrawn-track span {
  position: relative;
  z-index: 1;
  width: clamp(16px, 1.55vw, 25px);
  height: clamp(16px, 1.55vw, 25px);
  border: 3px solid rgba(31, 22, 14, 0.85);
  border-radius: 50%;
  background: #ddc592;
}

.pmx-handdrawn-track strong {
  font-size: clamp(0.8rem, 1.08vw, 1.3rem);
  font-weight: 850;
}

.pmx-handdrawn-track small {
  color: #2b1d12;
  font-size: clamp(0.58rem, 0.78vw, 0.9rem);
  line-height: 1.3;
}

.pmx-handdrawn-track li.current span {
  border-color: #315d35;
  background: #c99a4d;
  box-shadow: 0 0 0 9px rgba(74, 117, 57, 0.22), 0 0 28px rgba(105, 142, 66, 0.32);
  animation: relationshipGlow 1900ms ease-in-out infinite alternate;
}

.pmx-handdrawn-track li.current strong {
  color: #315d35;
}

.pmx-journey-reading {
  width: min(58%, 720px);
  color: #21150c;
}

.pmx-journey-reading h3 {
  display: inline-block;
  margin: 0 0 0.45em;
  border-bottom: 2px solid rgba(49, 93, 53, 0.66);
  color: #21150c;
  font-size: clamp(0.92rem, 1.28vw, 1.55rem);
  line-height: 1.18;
}

.pmx-journey-reading p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #24170e;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: clamp(0.8rem, 1.08vw, 1.34rem);
  line-height: 1.56;
  font-weight: 700;
}

.pmx-next-layout {
  position: absolute;
  inset: clamp(36px, 6vh, 72px) clamp(44px, 5vw, 92px) clamp(34px, 5vh, 70px);
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: stretch;
}

.pmx-next-main,
.pmx-studio-panel {
  min-height: 0;
  border: 1px solid rgba(238, 198, 126, 0.28);
  border-radius: 10px;
  background: rgba(10, 8, 6, 0.54);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(9px);
}

.pmx-next-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(18px, 3vh, 40px);
  padding: clamp(28px, 4.6vw, 74px);
}

.pmx-next-title h1 {
  margin: 0;
  color: #fff7e8;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(2.8rem, 5vw, 6.2rem);
  line-height: 0.98;
}

.pmx-next-title p {
  margin: 0.32em 0 0;
  color: #d9ad65;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 2.4rem);
}

.pmx-next-main blockquote {
  align-self: center;
  margin: 0;
  max-width: 760px;
}

.pmx-next-main blockquote::before {
  content: "“";
  display: block;
  color: rgba(218, 174, 96, 0.9);
  font-size: clamp(3.5rem, 7vw, 8rem);
  line-height: 0.55;
}

.pmx-next-main blockquote p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff8ec;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(1.45rem, 2.35vw, 3.2rem);
  line-height: 1.32;
  font-weight: 850;
}

.pmx-next-main cite {
  display: block;
  margin-top: 0.8em;
  color: #d9ad65;
  font-size: clamp(1rem, 1.3vw, 1.5rem);
  font-style: normal;
  text-align: right;
}

.pmx-next-actions {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
  width: 100%;
  animation: none;
}

.pmx-next-action {
  min-height: clamp(62px, 8vh, 94px);
  border: 1px solid rgba(231, 194, 126, 0.74);
  border-radius: 10px;
  background: rgba(150, 103, 42, 0.92);
  color: #fff7e8;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(1.25rem, 2vw, 2.35rem);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 248, 225, 0.24);
}

.pmx-next-action.primary {
  background: rgba(17, 55, 78, 0.94);
}

.pmx-studio-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(16px, 2.4vh, 28px);
  padding: clamp(22px, 3vw, 44px);
}

.pmx-work-notice {
  display: grid;
  gap: clamp(12px, 1.8vh, 22px);
  padding: clamp(18px, 2.4vw, 34px);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(235, 207, 152, 0.14), rgba(255, 255, 255, 0.04));
  color: #fff7e8;
}

.pmx-work-notice p {
  margin: 0;
  color: #fff7e8;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(1.28rem, 1.8vw, 2.2rem);
  line-height: 1.24;
  font-weight: 850;
}

.pmx-work-notice button,
.pmx-studio-nav button {
  min-height: 44px;
  border: 1px solid rgba(231, 194, 126, 0.42);
  border-radius: 8px;
  background: rgba(11, 9, 7, 0.5);
  color: rgba(255, 242, 215, 0.96);
  font-size: clamp(0.92rem, 1.08vw, 1.12rem);
  font-weight: 800;
  cursor: pointer;
}

.pmx-work-notice button {
  justify-self: start;
  padding: 0 18px;
}

.pmx-studio-nav {
  display: grid;
  align-content: end;
  gap: 10px;
}

.pmx-bottom-actions {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4.3vh, 50px);
  z-index: 6;
  width: min(560px, calc(100% - 48px));
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.pmx-light-button {
  min-width: min(320px, 100%);
  min-height: clamp(42px, 5.2vh, 58px);
  border: 1px solid rgba(229, 196, 129, 0.62);
  border-radius: 9px;
  background: rgba(15, 12, 9, 0.72);
  color: rgba(255, 239, 204, 0.98);
  padding: 9px 22px;
  font-size: clamp(0.96rem, 1.15vw, 1.18rem);
  font-weight: 850;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.second-visit-screen {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #050505;
}

.studio-arrival-screen {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #050505;
}

.studio-arrival-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #050505;
}

.studio-arrival-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.03);
  animation: studioArrivalPush 5200ms ease-out both;
}

.studio-arrival-stage.is-exterior img {
  object-position: center;
}

.studio-arrival-stage.is-lobby img {
  object-position: center;
  animation-duration: 1800ms;
}

.studio-arrival-stage.is-corridor img {
  animation-duration: 5000ms;
}

.studio-arrival-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.36)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.studio-arrival-pause {
  left: clamp(26px, 5vw, 72px);
  right: auto;
}

.second-visit-home,
.second-director-room,
.second-visit-studio-entrance,
.studio-gallery-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.second-visit-home img,
.second-director-room img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.03);
}

.second-visit-home::after,
.second-director-room::after,
.studio-gallery-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 34%, transparent 70%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.second-visit-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  animation: secondVisitFade 1200ms ease both;
}

.second-visit-studio-entrance {
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.42)),
    linear-gradient(180deg, rgba(237, 230, 215, 0.96), rgba(222, 214, 198, 0.9));
}

.studio-entrance-light {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0 34%, transparent 34% 38%, rgba(255, 255, 255, 0.34) 38% 62%, transparent 62%),
    repeating-linear-gradient(90deg, rgba(186, 168, 135, 0.18) 0 1px, transparent 1px 180px);
}

.studio-entrance-door {
  position: relative;
  z-index: 1;
  width: min(520px, 62vw);
  aspect-ratio: 1.45;
  border: 1px solid rgba(85, 68, 42, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(229, 218, 198, 0.62)),
    radial-gradient(circle at 72% 26%, rgba(214, 170, 98, 0.2), transparent 30%);
  box-shadow: 0 38px 100px rgba(60, 48, 30, 0.18);
  display: grid;
  place-items: center;
  color: rgba(40, 34, 24, 0.58);
  font-size: clamp(1.1rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.studio-gallery-stage {
  background: #090806;
  color: #262018;
}

.gallery-wall-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.02);
}

.gallery-pause-link {
  position: absolute;
  right: clamp(26px, 5vw, 72px);
  bottom: clamp(28px, 5vh, 54px);
  z-index: 3;
  border: 1px solid rgba(244, 218, 166, 0.42);
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.34);
  color: rgba(255, 239, 206, 0.9);
  padding: 9px 16px;
  font-size: clamp(0.86rem, 1vw, 1rem);
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.gallery-pause-link:hover {
  background: rgba(35, 25, 16, 0.52);
  border-color: rgba(244, 218, 166, 0.72);
}

.gallery-walk-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 28px);
  z-index: 2;
  width: min(220px, 26vw);
  height: 2px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 232, 188, 0.18);
}

.gallery-walk-cue::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: rgba(255, 225, 166, 0.48);
  animation: galleryWalkCue 5s linear both;
}

@keyframes galleryWalkCue {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes studioArrivalPush {
  from {
    transform: scale(1.015);
  }
  to {
    transform: scale(1.055);
  }
}

.gallery-movie-poster {
  position: relative;
  width: 100%;
  height: 100%;
  container-type: size;
  box-sizing: border-box;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 5, 4, 0.04), rgba(6, 5, 4, 0.14)),
    url("../assets/keyframes/movie_poster_template_v1/movie_poster_template_v1_clean.png") center / cover no-repeat,
    linear-gradient(145deg, #1b1815, #070606);
  color: rgba(253, 241, 211, 0.96);
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.72), 0 0 18px rgba(210, 161, 86, 0.22);
}

.gallery-movie-poster::before {
  content: "";
  position: absolute;
  inset: 2.5%;
  border: 1px solid rgba(232, 191, 124, 0.22);
  pointer-events: none;
}

.gallery-poster-brandline {
  position: absolute;
  z-index: 1;
  top: 2.3%;
  left: 7%;
  right: 7%;
  margin: 0;
  color: rgba(237, 210, 154, 0.94);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(0.42rem, 1.42cqw, 0.92rem);
  line-height: 1.1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.gallery-poster-runtime {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(8px, 1.4cqh, 20px);
  padding-top: 10.2%;
}

.gallery-poster-date {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(252, 226, 170, 0.94);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(0.72rem, 2.8cqw, 1.48rem);
  font-weight: 760;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.gallery-poster-brand {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50.8%;
  transform: translateX(-50%) rotate(-1deg);
  width: 38%;
  margin: 0;
  color: rgba(214, 165, 78, 0.78);
  font-size: clamp(0.34rem, 1.1cqw, 0.66rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  pointer-events: none;
}

.gallery-movie-poster h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(1.9rem, 9.4cqw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0.14em;
  max-width: 78%;
  color: rgba(255, 238, 190, 0.98);
}

.gallery-poster-rule {
  position: relative;
  width: 58%;
  height: 1px;
  margin: clamp(0px, 0.5cqh, 8px) 0;
  background: linear-gradient(90deg, transparent, rgba(230, 196, 126, 0.82), transparent);
}

.gallery-poster-rule span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(8px, 2.6cqw, 18px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(248, 225, 166, 0.98);
  box-shadow: 0 0 12px rgba(242, 200, 112, 0.52);
}

.gallery-poster-cast {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(5px, 0.8cqh, 12px);
  margin: 0 auto;
  width: 82%;
}

.gallery-poster-cast span {
  color: rgba(251, 229, 181, 0.94);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(0.72rem, 2.5cqw, 1.48rem);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.gallery-poster-cast p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  justify-content: center;
  gap: clamp(30px, 9cqw, 82px);
  margin: 0;
  color: rgba(255, 241, 205, 0.96);
}

.gallery-poster-cast strong,
.gallery-poster-cast em {
  min-width: 0;
  font-size: clamp(0.72rem, 2.8cqw, 1.65rem);
  font-style: normal;
  line-height: 1.18;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
}

.gallery-poster-cast strong {
  justify-self: end;
  text-align: right;
}

.gallery-poster-cast em {
  justify-self: start;
  text-align: left;
}

.gallery-poster-cast strong {
  color: rgba(255, 245, 221, 0.96);
  font-weight: 680;
}

.gallery-poster-credits {
  position: absolute;
  z-index: 1;
  left: 16%;
  right: 16%;
  bottom: 2.4%;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: clamp(8px, 2.5cqw, 24px);
  color: rgba(255, 236, 194, 0.78);
  font-family: "Songti SC", "Noto Serif SC", serif;
}

.gallery-poster-credits p {
  margin: 0;
  font-size: clamp(0.38rem, 1.05cqw, 0.68rem);
  font-weight: 520;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.gallery-poster-credits i {
  display: block;
  width: 1px;
  height: clamp(10px, 2.4cqh, 22px);
  background: rgba(246, 218, 169, 0.46);
}

.gallery-works-screen {
  background:
    radial-gradient(circle at 50% 20%, rgba(196, 146, 78, 0.16), transparent 34%),
    linear-gradient(145deg, #11100e, #050505 72%);
  color: rgba(255, 242, 216, 0.94);
}

.gallery-works-stage {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  gap: clamp(14px, 2vh, 24px);
  padding: clamp(24px, 5vh, 52px);
  box-sizing: border-box;
}

.gallery-works-header {
  text-align: center;
}

.gallery-works-header h1 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0;
}

.gallery-works-header p {
  margin: 4px 0 0;
  color: rgba(228, 190, 126, 0.86);
  font-size: clamp(0.95rem, 1.3vw, 1.25rem);
}

.gallery-works-poster-shell {
  width: min(360px, 40vw, 42vh);
  aspect-ratio: 2 / 3;
  padding: 10px;
  border: 1px solid rgba(219, 177, 105, 0.48);
  background:
    linear-gradient(135deg, #7a5736, #2b1b10 42%, #9a7045 55%, #382316);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.gallery-works-poster-shell .gallery-movie-poster h3 {
  font-size: clamp(1.4rem, 3.3vw, 2.6rem);
}

.gallery-works-poster-shell .gallery-poster-date,
.gallery-works-poster-shell .gallery-poster-brand {
  font-size: clamp(0.72rem, 1vw, 0.9rem);
}

.gallery-works-poster-shell .gallery-poster-cast span,
.gallery-works-poster-shell .gallery-poster-cast em {
  font-size: clamp(0.66rem, 1vw, 0.9rem);
}

.gallery-works-poster-shell .gallery-poster-cast strong {
  font-size: clamp(0.66rem, 1vw, 0.9rem);
}

.gallery-works-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 238, 206, 0.82);
}

.gallery-works-controls button,
.gallery-works-return {
  border: 1px solid rgba(229, 196, 129, 0.48);
  border-radius: 999px;
  background: rgba(18, 14, 10, 0.54);
  color: rgba(255, 239, 204, 0.95);
  padding: 9px 17px;
  font-size: 0.94rem;
  cursor: pointer;
}

.gallery-works-controls button:disabled {
  opacity: 0.36;
  cursor: default;
}

.gallery-works-return {
  min-width: 180px;
  background: rgba(180, 125, 48, 0.34);
}

.gallery-works-poster-button {
  appearance: none;
  display: block;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
}

.studio-nav-screen {
  overflow: auto;
}

.studio-nav-stage {
  position: relative;
  min-height: 100%;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(18px, 3vh, 34px);
  padding: clamp(24px, 5vh, 58px);
  box-sizing: border-box;
}

.studio-movie-groups,
.studio-awards-grid,
.studio-profile-form,
.studio-mail-letter,
.studio-detail-panel {
  width: min(1080px, calc(100vw - 40px));
}

.studio-movie-groups {
  display: grid;
  gap: 14px;
}

.studio-movie-group {
  border: 1px solid rgba(229, 196, 129, 0.24);
  border-radius: 12px;
  background: rgba(255, 248, 232, 0.05);
  overflow: hidden;
}

.studio-movie-group-title {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: rgba(9, 7, 5, 0.52);
  color: rgba(255, 242, 216, 0.96);
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.studio-movie-group-title small {
  color: rgba(231, 194, 126, 0.78);
  font-size: 0.82rem;
}

.studio-still-grid,
.studio-detail-stills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding: 18px;
}

.studio-asset-frame {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid rgba(229, 196, 129, 0.26);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(244, 223, 181, 0.12), rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 50% 32%, rgba(214, 170, 98, 0.16), transparent 38%);
}

.studio-asset-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: contain;
  object-position: center;
  background: rgba(10, 8, 6, 0.28);
}

.studio-asset-frame .cinematic-placeholder {
  display: none;
}

.studio-asset-frame.is-missing {
  display: grid;
  place-items: center;
}

.studio-asset-frame.is-missing .cinematic-placeholder {
  display: block;
}

.studio-still-button {
  appearance: none;
  padding: 0;
  cursor: pointer;
}

.studio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.82);
  padding: 32px;
}

.studio-lightbox button {
  position: absolute;
  top: 22px;
  right: 24px;
  border: 1px solid rgba(229, 196, 129, 0.42);
  border-radius: 999px;
  background: rgba(12, 10, 8, 0.72);
  color: rgba(255, 242, 216, 0.96);
  padding: 8px 16px;
  cursor: pointer;
}

.studio-lightbox .studio-asset-frame {
  width: min(86vw, 1180px);
  max-height: 82vh;
}

.studio-detail-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(229, 196, 129, 0.24);
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.06);
}

.studio-detail-poster {
  align-self: start;
  aspect-ratio: 2 / 3;
  padding: 8px;
  background: linear-gradient(135deg, #7a5736, #2b1b10 42%, #9a7045 55%, #382316);
}

.studio-detail-copy h2,
.studio-mail-letter h2,
.studio-award h2 {
  margin: 0;
  color: #fff7e8;
  font-family: "Songti SC", "STSong", serif;
  letter-spacing: 0;
}

.studio-detail-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 18px 0;
}

.studio-detail-copy dt {
  color: rgba(231, 194, 126, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
}

.studio-detail-copy dd {
  margin: 4px 0 0;
  color: rgba(255, 242, 216, 0.96);
  font-size: 1rem;
}

.studio-detail-notes {
  display: grid;
  gap: 8px;
}

.studio-detail-notes h3,
.studio-mail-letter h3 {
  margin: 10px 0 0;
  color: rgba(231, 194, 126, 0.9);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-detail-notes p,
.studio-mail-letter p,
.studio-empty-panel,
.studio-empty-copy,
.studio-profile-static {
  color: rgba(255, 242, 216, 0.84);
  line-height: 1.62;
}

.studio-detail-stills {
  grid-column: 1 / -1;
  padding: 0;
}

.studio-thumb-frame {
  min-height: 120px;
}

.studio-awards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.studio-award {
  min-height: 190px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(229, 196, 129, 0.2);
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.05);
  text-align: center;
  padding: 20px;
}

.studio-award.is-unlocked {
  background: linear-gradient(180deg, rgba(214, 170, 98, 0.22), rgba(255, 248, 232, 0.06));
}

.studio-award span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 196, 129, 0.5);
  border-radius: 50%;
  color: #e8bd74;
  font-weight: 900;
}

.studio-award p {
  margin: 0;
  color: rgba(255, 242, 216, 0.76);
}

.studio-profile-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: 18px 26px;
  align-items: start;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(229, 196, 129, 0.24);
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.06);
}

.studio-profile-avatar {
  display: grid;
  gap: 12px;
}

.studio-profile-avatar img,
.studio-avatar-placeholder {
  width: min(220px, 46vw);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(229, 196, 129, 0.36);
  background: rgba(8, 7, 5, 0.56);
}

.studio-avatar-placeholder {
  display: grid;
  place-items: center;
  color: #e8bd74;
  font-size: 3rem;
  font-weight: 900;
}

.studio-profile-avatar label,
.studio-field,
.studio-profile-options {
  display: grid;
  gap: 8px;
  color: rgba(255, 242, 216, 0.88);
  font-weight: 800;
}

.studio-profile-avatar input,
.studio-field input {
  border: 1px solid rgba(229, 196, 129, 0.28);
  border-radius: 10px;
  background: rgba(255, 248, 232, 0.9);
  color: #17130e;
  padding: 12px 14px;
  font-size: 1rem;
}

.studio-profile-options {
  border: 0;
  padding: 0;
}

.studio-profile-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px;
  color: rgba(255, 242, 216, 0.88);
}

.studio-profile-form .pmx-next-action {
  grid-column: 2;
  min-height: 50px;
  font-size: 1rem;
}

.studio-mail-letter {
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(229, 196, 129, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.92), rgba(236, 221, 196, 0.86));
  color: #24170e;
}

.studio-mail-letter h2,
.studio-mail-letter h3,
.studio-mail-letter p {
  color: #24170e;
}

.studio-mail-date {
  margin: 0 0 10px;
  color: rgba(74, 50, 28, 0.68);
  font-size: 0.86rem;
  font-weight: 850;
}

.studio-empty-panel {
  width: min(760px, calc(100vw - 40px));
  padding: 34px;
  border: 1px solid rgba(229, 196, 129, 0.2);
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.05);
  text-align: center;
}

.second-director-subtitle,
.second-visit-question {
  position: absolute;
  left: clamp(20px, 8vw, 120px);
  right: clamp(20px, 8vw, 120px);
  z-index: 3;
  display: flex;
  justify-content: center;
  text-align: center;
}

.second-director-subtitle {
  bottom: clamp(86px, 16vh, 150px);
}

.second-visit-question {
  bottom: clamp(118px, 19vh, 176px);
}

.second-director-subtitle p,
.second-visit-question p {
  max-width: min(760px, 100%);
  margin: 0;
  border-radius: 4px;
  background: rgba(10, 10, 9, 0.52);
  color: rgba(255, 247, 232, 0.96);
  padding: 12px 18px;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  line-height: 1.35;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

.second-visit-bottom-actions {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 5vh, 56px);
  z-index: 4;
  width: min(1040px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.second-visit-bottom-actions button,
.second-visit-input button {
  min-height: 38px;
  border: 1px solid rgba(229, 196, 129, 0.46);
  border-radius: 8px;
  background: rgba(13, 11, 9, 0.58);
  color: rgba(255, 239, 204, 0.96);
  padding: 8px 15px;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.second-visit-bottom-actions button:hover,
.second-visit-input button:hover {
  border-color: rgba(229, 196, 129, 0.82);
  background: rgba(214, 170, 98, 0.22);
}

.second-visit-return {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  top: clamp(18px, 3vh, 34px);
  z-index: 5;
  border: 1px solid rgba(255, 239, 204, 0.28);
  border-radius: 999px;
  background: rgba(8, 7, 6, 0.34);
  color: rgba(255, 247, 232, 0.86);
  padding: 7px 13px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.second-visit-return:hover {
  border-color: rgba(229, 196, 129, 0.66);
  background: rgba(214, 170, 98, 0.18);
  color: rgba(255, 247, 232, 0.98);
}

.golden-return {
  right: clamp(18px, 3vw, 42px);
  top: clamp(18px, 3vh, 34px);
}

.second-visit-input {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6vh, 64px);
  z-index: 4;
  width: min(680px, calc(100% - 36px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.second-visit-input textarea {
  min-height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(229, 196, 129, 0.38);
  background: rgba(14, 12, 10, 0.62);
  color: rgba(255, 247, 232, 0.96);
  resize: none;
  backdrop-filter: blur(10px);
}

.character-list-panel {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 6vh, 64px);
  z-index: 4;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.character-card {
  position: relative;
  min-height: 172px;
  display: grid;
  align-content: end;
  gap: 8px;
  border: 1px solid rgba(229, 196, 129, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 17, 13, 0.34), rgba(10, 9, 8, 0.72)),
    rgba(24, 20, 16, 0.56);
  color: rgba(255, 247, 232, 0.96);
  padding: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.character-card h2 {
  margin: 0;
  color: rgba(255, 244, 220, 0.98);
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
}

.character-role,
.character-last-scene {
  margin: 0;
  color: rgba(255, 239, 204, 0.78);
  font-size: 0.92rem;
  line-height: 1.45;
}

.character-last-scene span {
  color: rgba(229, 196, 129, 0.96);
  font-weight: 800;
}

.character-card > button {
  justify-self: start;
  min-height: 36px;
  margin-top: 4px;
  border: 1px solid rgba(229, 196, 129, 0.48);
  border-radius: 8px;
  background: rgba(13, 11, 9, 0.62);
  color: rgba(255, 239, 204, 0.96);
  padding: 7px 14px;
  font-weight: 800;
  cursor: pointer;
}

.character-rename-form {
  display: flex;
  width: min(100%, 320px);
  gap: 8px;
  align-items: center;
}

.character-rename-form input {
  min-width: 0;
  flex: 1;
  height: 34px;
  border: 1px solid rgba(229, 196, 129, 0.44);
  border-radius: 7px;
  background: rgba(8, 7, 6, 0.58);
  color: rgba(255, 247, 232, 0.96);
  padding: 0 10px;
  font: inherit;
}

.character-rename-form button {
  height: 34px;
  border: 1px solid rgba(229, 196, 129, 0.5);
  border-radius: 7px;
  background: rgba(229, 196, 129, 0.14);
  color: rgba(255, 239, 204, 0.96);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}

.character-card-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.character-card-menu::before {
  content: "……";
  position: absolute;
  right: 0;
  top: -24px;
  color: rgba(255, 239, 204, 0.74);
  letter-spacing: 0.08em;
}

.character-card-menu button {
  min-height: 28px;
  border: 1px solid rgba(229, 196, 129, 0.28);
  border-radius: 7px;
  background: rgba(11, 10, 9, 0.5);
  color: rgba(255, 239, 204, 0.82);
  padding: 4px 8px;
  font-size: 0.78rem;
  cursor: pointer;
}

.empty-character-card {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(520px, 100%);
}

@keyframes secondVisitFade {
  0% {
    opacity: 0;
  }
  32% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pmxLetterIn {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-1deg);
  }
}

@keyframes pmxPageTurn {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-7deg) translateY(18px);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(0) translateY(0);
  }
}

@keyframes pmxNotebookClose {
  from {
    opacity: 0.2;
    transform: perspective(800px) rotateX(14deg) rotate(-2deg) scale(1.04);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateX(0) rotate(-2deg) scale(1);
  }
}

@keyframes relationshipGlow {
  from {
    box-shadow: 0 0 0 6px rgba(201, 152, 73, 0.12), 0 0 20px rgba(201, 152, 73, 0.26);
  }
  to {
    box-shadow: 0 0 0 12px rgba(201, 152, 73, 0.2), 0 0 34px rgba(201, 152, 73, 0.42);
  }
}

.notes-list {
  display: grid;
  gap: 18px;
}

.notes-list article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.notes-list h2 {
  margin: 0;
  font-size: 1.35rem;
}

.error-line {
  position: fixed;
  left: 32px;
  right: 32px;
  bottom: 24px;
  margin: 0 auto;
  max-width: 680px;
  border: 1px solid rgba(214, 170, 98, 0.36);
  background: rgba(0, 0, 0, 0.74);
  padding: 14px 18px;
  color: var(--ink);
  text-align: center;
}

.frame021-screen,
.frame022-screen,
.frame022a-screen,
.movie-slate-screen {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #050505;
}

.frame021-world,
.frame022-world,
.frame022a-world,
.movie-slate-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.frame021-world img,
.frame022-world img,
.frame022a-world img,
.movie-slate-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}

.movie-slate-stage img {
  filter: saturate(0.96) contrast(1.06) sepia(0.04);
  animation: movieSlateIn 520ms cubic-bezier(0.2, 0.74, 0.32, 1) both;
}

.movie-slate-stage.clap img {
  animation: movieSlateClap 220ms cubic-bezier(0.12, 0.74, 0.2, 1) both;
}

.movie-slate-clean-board {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(76vw, 940px, calc(88vh * 1.44));
  aspect-ratio: 1.44 / 1;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(245, 241, 224, 0.12), rgba(20, 18, 16, 0.16) 27%, rgba(9, 8, 7, 0.96) 27.2%),
    radial-gradient(circle at 26% 38%, rgba(255, 247, 220, 0.13), transparent 32%),
    #0c0b0a;
  border: 1px solid rgba(238, 224, 186, 0.5);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.58),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%) rotate(-0.45deg);
  animation: movieSlateBoardIn 520ms cubic-bezier(0.2, 0.74, 0.32, 1) both;
  overflow: hidden;
}

.movie-slate-stage.clap .movie-slate-clean-board {
  animation: movieSlateBoardClap 220ms cubic-bezier(0.12, 0.74, 0.2, 1) both;
}

.movie-slate-hinge {
  position: absolute;
  left: 0;
  right: 0;
  top: 26.5%;
  height: 2px;
  background: rgba(236, 226, 198, 0.58);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
}

.movie-slate-stripes {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 0;
  height: 27%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  transform: skewX(-18deg);
  transform-origin: center;
}

.movie-slate-stripes span:nth-child(odd) {
  background: rgba(238, 232, 210, 0.92);
}

.movie-slate-stripes span:nth-child(even) {
  background: rgba(13, 12, 11, 0.98);
}

.movie-slate-dynamic-text {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 32%;
  bottom: 9%;
  z-index: 1;
  color: rgba(245, 241, 229, 0.92);
  text-align: left;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

.movie-slate-dynamic-text::before,
.movie-slate-dynamic-text::after {
  display: none;
}

.movie-slate-dynamic-text::before {
  top: 0;
  height: 12%;
}

.movie-slate-dynamic-text::after {
  bottom: 7%;
  height: 18%;
}

.movie-slate-brand,
.movie-slate-take-label,
.movie-slate-take-number,
.movie-slate-title {
  position: relative;
  z-index: 1;
}

.movie-slate-brand {
  font-size: clamp(16px, 2.1vw, 28px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  color: rgba(239, 228, 198, 0.92);
}

.movie-slate-field {
  border-bottom: 1px solid rgba(231, 220, 189, 0.5);
  padding: 1.1rem 0 0.7rem;
}

.movie-slate-field span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(11px, 1.1vw, 16px);
  letter-spacing: 0.14em;
  color: rgba(220, 204, 170, 0.72);
}

.movie-slate-field strong {
  display: block;
  color: rgba(244, 238, 220, 0.96);
}

.movie-slate-title-field strong {
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 1.04;
  font-family: "Kaiti SC", "STKaiti", "Songti SC", serif;
  text-align: center;
}

.movie-slate-meta-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
}

.movie-slate-meta-row strong {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(34px, 5.8vw, 76px);
  line-height: 1;
}

.movie-slate-black {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.movie-slate-stage.black .movie-slate-black {
  opacity: 1;
}

.frame021-world img {
  filter: saturate(0.96) contrast(1.04) sepia(0.08);
}

.frame021-world::after,
.frame022-world::after,
.frame022a-world::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.frame021-world::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 34%, transparent 68%, rgba(0, 0, 0, 0.18));
}

@keyframes movieSlateIn {
  from {
    opacity: 0;
    transform: translateX(-7%) scale(1.04);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes movieSlateClap {
  0% {
    transform: translateX(0) scale(1);
    filter: saturate(0.96) contrast(1.06) sepia(0.04);
  }
  45% {
    transform: translateX(0) scale(1.012) rotate(-0.35deg);
    filter: saturate(0.9) contrast(1.18) brightness(1.06);
  }
  100% {
    transform: translateX(0) scale(1);
    filter: saturate(0.96) contrast(1.06) sepia(0.04);
  }
}

@keyframes movieSlateBoardIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-0.45deg) scale(1.04);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-0.45deg) scale(1);
  }
}

@keyframes movieSlateBoardClap {
  0% {
    transform: translate(-50%, -50%) rotate(-0.45deg) scale(1);
  }
  45% {
    transform: translate(-50%, -50%) scale(1.012) rotate(-0.35deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-0.45deg) scale(1);
  }
}

.frame021-subtitle,
.frame022-subtitle,
.frame022a-subtitle {
  position: absolute;
  left: clamp(18px, 8vw, 120px);
  right: clamp(18px, 8vw, 120px);
  bottom: clamp(28px, 8vh, 96px);
  z-index: 2;
  display: flex;
  justify-content: center;
  text-align: center;
}

.frame021-subtitle {
  flex-direction: row;
}

.frame021-subtitle p,
.frame022-subtitle p,
.frame022a-subtitle p {
  max-width: min(980px, 100%);
  margin: 0;
  border-radius: 4px;
  background: rgba(10, 10, 9, 0.58);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  color: rgba(255, 251, 242, 0.96);
  font-size: clamp(0.9rem, 1.55vw, 1.35rem);
  line-height: 1.35;
  padding: 16px 20px;
}

.frame022a-world img {
  filter: saturate(0.94) contrast(1.04) sepia(0.08);
}

.frame022a-world::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 32%, transparent 76%, rgba(0, 0, 0, 0.18));
}

.frame022a-world.hold img {
  animation: pageIn 480ms ease both;
}

.frame022a-world.cut img,
.frame022a-world.wrap img {
  animation: frame022aBreath 1200ms ease both;
}

.frame022a-black {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.frame022a-world.black .frame022a-black {
  opacity: 1;
}

@keyframes frame022aBreath {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.008);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowPush {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@media (max-width: 720px) {
  .screen {
    padding: 16px;
  }

  .entrance-card,
  .director-brief,
  .makeup-board,
  .back-studio-stage,
  .conversation-set,
  .compact-card {
    padding: 28px;
  }

  .pmx-screen,
  .pmx-page {
    padding: 0;
  }

  .makeup-board dl {
    grid-template-columns: 1fr;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .composer-actions {
    display: grid;
    grid-template-columns: 72px 1fr;
  }

  .choice-grid,
  .still-generation,
  .still-choice-grid {
    grid-template-columns: 1fr;
  }

  .golden-text-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(420px, 100%);
  }

  .golden-text-choice-card {
    min-width: 0;
    height: 36px;
    padding: 0 10px;
  }

  .pmx-bottom-actions,
  .second-visit-bottom-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pmx-note-section p,
  .pmx-journey-reading p {
    font-size: 0.58rem;
    line-height: 1.38;
  }

  .pmx-note-section h2,
  .pmx-journey-reading h3 {
    font-size: 0.72rem;
  }

  .pmx-next-action {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .second-visit-input {
    grid-template-columns: 1fr;
  }

  .line {
    width: 100%;
  }

  .runtime-conversation-screen {
    padding: 0;
  }

  .runtime-actor-subtitle {
    left: 18px;
    right: 18px;
    bottom: 168px;
  }

  .runtime-actor-subtitle p {
    font-size: 1rem;
    padding: 10px 14px;
  }

  .runtime-composer {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .runtime-voice-row {
    width: 100%;
  }

  .runtime-voice-button {
    min-width: 0;
    flex: 1;
  }

  .runtime-text-entry.active {
    grid-template-columns: 1fr;
  }

  .runtime-send-button {
    min-height: 38px;
  }

  .runtime-end-button {
    right: 16px;
    bottom: 92px;
  }
}

@media (max-aspect-ratio: 16 / 9), (max-width: 1280px) {
  .pmx-clean-title {
    left: 36px;
    top: 24px;
  }

  .pmx-clean-title h1 {
    font-size: clamp(1.55rem, 3vw, 2.5rem);
  }

  .pmx-clean-title p {
    font-size: clamp(0.82rem, 1.4vw, 1.2rem);
  }

  .pmx-letter-surface {
    left: 30%;
    top: 7.2%;
    width: 31.5%;
    max-height: 80%;
    aspect-ratio: 0.62 / 1;
    padding: 24px 30px;
  }

  .pmx-letter-surface .pmx-letter-content p {
    font-size: clamp(0.72rem, 1.18vw, 0.92rem);
    line-height: 1.48;
  }

  .pmx-letter-greeting,
  .pmx-letter-surface .signature {
    font-size: clamp(0.82rem, 1.3vw, 1rem);
  }

  .pmx-notebook-surface {
    left: 14%;
    top: 16%;
    width: 72%;
    height: 68%;
    gap: 48px;
    padding: 22px 40px;
  }

  .pmx-note-section h2 {
    font-size: clamp(0.68rem, 1.25vw, 0.92rem);
  }

  .pmx-note-section p {
    -webkit-line-clamp: 2;
    font-size: clamp(0.56rem, 1.05vw, 0.78rem);
    line-height: 1.32;
  }

  .pmx-keyword-note span,
  .pmx-keyword-note strong {
    font-size: clamp(0.58rem, 1vw, 0.78rem);
  }

  .pmx-journey-surface h2 {
    margin-bottom: 28px;
    font-size: clamp(1rem, 2.2vw, 1.7rem);
  }

  .pmx-handdrawn-track {
    margin-bottom: 30px;
  }

  .pmx-handdrawn-track strong {
    font-size: clamp(0.58rem, 1vw, 0.8rem);
  }

  .pmx-handdrawn-track small {
    font-size: clamp(0.48rem, 0.86vw, 0.66rem);
  }

  .pmx-journey-reading {
    width: 66%;
  }

  .pmx-journey-reading h3 {
    font-size: clamp(0.7rem, 1.14vw, 0.9rem);
  }

  .pmx-journey-reading p {
    font-size: clamp(0.6rem, 1.04vw, 0.82rem);
    line-height: 1.42;
  }

  .pmx-bottom-actions {
    bottom: 16px;
  }

  .pmx-light-button {
    min-height: 38px;
    font-size: 0.88rem;
  }

  .pmx-next-layout {
    inset: 34px 44px 34px;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }

  .pmx-next-main,
  .pmx-studio-panel {
    padding: 24px;
  }

  .pmx-next-title h1 {
    font-size: clamp(2rem, 4.2vw, 3.6rem);
  }

  .pmx-next-title p {
    font-size: clamp(0.9rem, 1.7vw, 1.3rem);
  }

  .pmx-next-main blockquote p {
    font-size: clamp(1rem, 1.9vw, 1.6rem);
  }

  .pmx-next-action {
    min-height: 52px;
    font-size: clamp(1rem, 1.65vw, 1.3rem);
  }

  .pmx-work-notice p {
    font-size: clamp(1rem, 1.55vw, 1.3rem);
  }

  .pmx-work-notice button,
  .pmx-studio-nav button {
    min-height: 36px;
    font-size: 0.84rem;
  }
}

@media (max-width: 720px) {
  .gallery-works-stage {
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 16px 14px 22px;
  }

  .gallery-works-header h1 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .gallery-works-header p {
    font-size: 0.9rem;
  }

  .gallery-works-poster-shell,
  .studio-detail-poster {
    width: min(92vw, 52vh);
    max-width: 420px;
  }

  .gallery-poster-cast p {
    gap: clamp(22px, 10cqw, 54px);
  }

  .gallery-poster-credits {
    left: 11%;
    right: 11%;
    bottom: 2.1%;
  }

  .second-director-room {
    min-height: 100dvh;
    overflow: hidden;
  }

  .second-director-room img {
    object-position: center;
  }

  .second-director-room::after {
    background:
      linear-gradient(180deg, rgba(4, 4, 4, 0.32), rgba(4, 4, 4, 0.08) 38%, rgba(4, 4, 4, 0.62)),
      radial-gradient(circle at 50% 24%, rgba(255, 218, 151, 0.1), transparent 44%);
  }

  .second-director-subtitle,
  .second-visit-question {
    left: 16px;
    right: 16px;
    top: max(74px, calc(env(safe-area-inset-top) + 58px));
    bottom: auto;
    transform: none;
  }

  .second-director-subtitle p,
  .second-visit-question p {
    width: 100%;
    max-width: none;
    padding: 11px 14px;
    font-size: clamp(1.08rem, 5.5vw, 1.46rem);
  }

  .second-visit-return {
    left: 16px;
    right: auto;
    top: max(14px, calc(env(safe-area-inset-top) + 10px));
    bottom: auto;
  }

  .second-visit-bottom-actions {
    left: 16px;
    right: 16px;
    bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
    width: auto;
    transform: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .second-visit-bottom-actions button {
    min-height: 50px;
    width: 100%;
    padding: 9px 14px;
    font-size: 1rem;
  }

  .pmx-next-page {
    min-height: 100dvh;
    overflow: auto;
  }

  .pmx-next-layout {
    position: relative;
    inset: auto;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    padding: max(18px, calc(env(safe-area-inset-top) + 14px)) 16px max(24px, calc(env(safe-area-inset-bottom) + 20px));
  }

  .pmx-next-main,
  .pmx-studio-panel {
    padding: 18px;
    border-radius: 8px;
  }

  .pmx-next-main {
    grid-template-rows: auto auto auto;
    gap: 16px;
  }

  .pmx-next-title h1 {
    font-size: clamp(2.1rem, 13vw, 3.4rem);
  }

  .pmx-next-title p {
    font-size: clamp(1rem, 5vw, 1.28rem);
  }

  .pmx-next-main blockquote {
    align-self: start;
  }

  .pmx-next-main blockquote::before {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .pmx-next-main blockquote p {
    -webkit-line-clamp: 4;
    font-size: clamp(1.12rem, 6vw, 1.42rem);
  }

  .pmx-next-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pmx-next-action {
    min-height: 50px;
    font-size: clamp(1rem, 5.6vw, 1.2rem);
  }

  .pmx-studio-panel {
    grid-template-rows: auto auto;
  }

  .pmx-work-notice {
    padding: 16px;
    gap: 10px;
  }

  .pmx-work-notice p {
    font-size: clamp(1.06rem, 5.2vw, 1.28rem);
  }

  .pmx-studio-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }
}
