@media (min-width: 631px) {
  .stage {
    width: min(100% - 64px, 880px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(30px, 8vw, 102px);
  }
}

.intro-disclaimer, .story-intro .intro-disclaimer {
  margin: 5px 0 14px;
  color: #486569;
  font-size: 10px;
  line-height: 1.35;
}

.profile-cover .intro-disclaimer {
  margin: -3px 0 0;
}

.screen, .message.latest, .wake-memory, .chat-picture img, .post-image img {
  animation: none;
}

.story-weather {
  display: grid;
  width: fit-content;
  margin: 12px auto 0;
  padding: 10px 15px;
  gap: 4px;
  border: 1px solid #e7eee6;
  border-radius: 18px;
  background: #fbfff0cc;
  color: #31535a;
}

.story-weather strong { font: 500 36px/1 system-ui, sans-serif; }
.story-weather span { font-size: 12px; }
.page-footer { justify-content: flex-end; }

.island-activity {
  position: absolute;
  left: 13px;
  top: 4px;
  color: #f6f2ea;
  font-size: 9px;
}

.island[data-activity="call"] { box-shadow: inset 3px 0 #79a986; }

.wake-weibo-guide, .home-story-guide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  margin: 0 0 10px;
  border-radius: 9px;
  background: #fff2dbed;
  color: #79482c;
  font-size: 12px;
}

.wake-weibo-guide svg { width: 15px; height: 15px; }

.chapter-saves {
  margin: 12px 0;
  padding: 11px 14px;
  border-radius: 13px;
  background: #f2efe3;
  color: #393a31;
}

.chapter-saves h3 { margin: 0 0 5px; font-size: 15px; }
.chapter-saves button, .post-ending-next {
  min-height: 35px;
  padding: 5px 3px;
  color: #2b685e;
  font-size: 12px;
  font-weight: 620;
  text-align: left;
}

.chapter-save-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-top: 1px solid #d9ded1;
  gap: 3px 10px;
  padding: 5px 0;
  font-size: 12px;
}

.chapter-save-row strong, .chapter-save-row small { grid-column: 1; }
.chapter-save-row small { color: #616255; font-size: 10px; }
.chapter-save-row button { grid-column: 2; grid-row: 1 / 3; }
.chapter-save-row button:disabled { opacity: .37; }
.chapter-save-feedback { margin: 1px 0 5px; font-size: 10px; color: #486b5a; }
.chapter-save-feedback:empty { display: none; }
.chapter-save-rule { margin: 3px 0 4px; color: #616255; font-size: 11px; }

.message-pair { display: contents; }
.character-popup-trigger { padding: 0; flex: none; align-self: flex-start; }
.chat-info section > .avatar { width: 53px; height: 53px; }

.chat-screen .choices {
  background: #fbfcf7;
  gap: 0;
  padding-block: 3px;
}

.chat-screen .choices button,
.chat-screen .choices .branch-reopen,
.branch-options .branch-option,
.call-answers button,
.comfort-options button {
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #6c83752d;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #274b3e;
  font-size: 12px;
  font-weight: 520;
  white-space: normal;
  text-align: left;
  animation: none;
}

.chat-screen .choices button:hover,
.branch-options .branch-option:hover,
.comfort-options button:hover,
.call-answers button:hover {
  background: #b2c8ac35;
}

.comfort-options { display: grid; margin: 3px 32px 8px; }
.branch-background { opacity: .49; }
.branch-screen::before { background: #f5f7e638; }
.branch-title { font-size: clamp(20px, 7cqw, 28px); }
.branch-copy { color: #2f463f; }
.narration-screen { background: #1c2524; color: #fff9ed; }
.narration-background { opacity: .46; }
.narration-screen::before { background: #14222021; }
.narration-content { min-height: 0; gap: 10px; padding-bottom: 7px; }
.narration-title { font-size: clamp(19px, 6cqw, 27px); text-shadow: 0 1px 10px #080f10d9; }
.narration-copy {
  max-width: 36ch;
  color: #fffcf4;
  font-size: clamp(12px, 3.9cqw, 15px);
  font-weight: 480;
  text-shadow: 0 1px 9px #101719e0;
  line-height: 1.75;
}
.narration-copy p {
  margin: 0 0 .8em;
  white-space: pre-wrap;
  animation: story-rise .65s cubic-bezier(.2,.6,.25,1) backwards;
  animation-delay: calc(var(--line-order, 0) * 160ms);
}
@keyframes story-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.narration-screen .branch-return {
  border-color: #f4fbeb6b;
  background: #172522ac;
  color: #fffaf0;
}
.scenic-story {
  background: #e8eee8;
  color: #253d39;
}
.scenic-story .narration-background {
  height: 71%;
  opacity: 1;
  object-position: center 42%;
  mask-image: linear-gradient(#000 0 69%, transparent 100%);
}
.scenic-story::before { background: transparent; }
.scenic-story .narration-content { align-content: safe end; }
.scenic-story .narration-title {
  padding: 5px 10px;
  border-radius: 9px;
  background: #f1f5eff0;
  text-shadow: none;
}
.scenic-story .narration-copy {
  padding: 10px 13px 5px;
  border-radius: 11px;
  background: #f1f5eff2;
  color: #263b38;
  text-shadow: none;
}
.story-motion-screen .narration-background { opacity: .67; }
.story-motion-screen .narration-content { align-content: start; }
.story-motion-screen .narration-copy {
  padding: 9px 11px 2px;
  border-radius: 9px;
  background: #23322ae8;
}
.story-motion-screen .branch-content > :first-child { margin-top: 0; }
.story-motion-screen .story-motion {
  position: relative;
  display: grid;
  justify-self: center;
  align-self: center;
  flex: none;
  height: clamp(144px, 40svh, 304px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 11px;
  background: #26352b;
}
.story-motion-screen .branch-content .story-motion { margin-bottom: 11px; }
.story-video { display: block; width: 100%; height: 100%; object-fit: contain; }
.story-video-retry {
  position: absolute;
  place-self: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f5f1e9;
  color: #243730;
}
.narration-screen .story-continue,
.cinematic .story-continue,
.chat-screen .choices .scene-next {
  z-index: 1;
  min-height: 38px;
  margin: 0 0 5px;
  padding: 4px 8px;
  justify-content: center;
  align-self: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff9f0;
  font-size: 11px;
  font-weight: 450;
  text-align: center;
  letter-spacing: .11em;
}
.chat-screen .choices .scene-next { color: #42695b; }
.narration-screen.scenic-story .story-continue { color: #304e47; }
.story-continue:hover, .story-continue:focus-visible { text-decoration: underline; }
.message .transfer-message { background: #e7ad72; color: #372617; }
.transfer-message small { display: block; margin: 2px 0; font-size: 10px; }

.voice-call { background: #182421; color: #fff9eb; }
.voice-call::before { background: #17252063; }
.voice-call-background { opacity: .59; }
.voice-call .call-video { z-index: -2; opacity: .75; }
.voice-call-status, .voice-call-duration, .voice-call-actions button { color: #f9f6ef; }
.voice-call-content { align-self: stretch; align-content: center; text-shadow: 0 1px 6px #17221d; }
.call-turns { width: 100%; max-height: 100%; overflow: auto; padding: 4px; }
.voice-call-content .voice-call-transcript, .call-player-line {
  border: 0;
  background: #11231cca;
  text-shadow: none;
  color: #fff9ed;
  text-align: left;
  font-size: 12px;
  line-height: 1.65;
}
.voice-call-content .call-player-line { margin: 5px 0; padding: 6px 9px; }
.call-answers { display: grid; margin: 7px 0; }
.call-answers button, .call-next { color: #fffbee; border-color: #f8fff244; text-shadow: 0 1px 5px #182721; }
.call-next { min-height: 32px; }
.moment-liked-by { color: #8b5353; }

.cinematic {
  isolation: isolate;
  background: #050607;
  color: #fbf8f0;
  text-align: center;
  padding: 38px 18px calc(24px + env(safe-area-inset-bottom));
}
.phone-screen[data-screen="cinematic"] .status-bar,
.phone-screen[data-screen="cinematic"] .island,
.phone-screen[data-screen="cinematic"] .home-indicator { visibility: hidden; }
.cinematic-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cinematic-river {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: clamp(12px, 2.5vh, 26px);
  padding-top: clamp(16px, 6vh, 56px);
  background: #172422;
}
.ending-portrait {
  display: block;
  align-self: center;
  justify-self: center;
  width: min(100%, 720px);
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.cinematic-river .cinematic-copy { align-self: center; }
.cinematic-blink .cinematic-image {
  top: 35%;
  left: 3%;
  width: 73%;
  height: 28%;
  mask-image: radial-gradient(ellipse at center, #000 47%, transparent 77%);
  animation: close-eyes 3.3s ease-in-out both;
}
.cinematic-copy {
  display: grid;
  place-content: center;
  gap: 10px;
  flex: 1;
  font: 500 15px/1.84 var(--serif);
  text-shadow: 0 1px 12px #000;
}
.cinematic-blink .cinematic-copy p { justify-self: end; margin-left: 8em; }
.cinematic-hotel .cinematic-image { opacity: .56; animation: wake-jolt 1.05s cubic-bezier(.18,.65,.22,1) both; }
.cinematic-hotel p { max-width: 25ch; }
.wake-character { animation: reveal-character .02s step-end both; animation-delay: var(--character-delay); }
@keyframes reveal-character { from { visibility: hidden; } to { visibility: visible; } }
@keyframes wake-jolt {
  0% { transform: scale(1.13) translateY(5%); }
  20% { transform: scale(1.08) translateY(-2%) rotate(.7deg); }
  43% { transform: scale(1.07) translateY(1.5%) rotate(-.55deg); }
  100% { transform: none; }
}
@keyframes close-eyes {
  0%, 24%, 49%, 76% { clip-path: ellipse(55% 57% at 50% 50%); }
  35%, 64% { clip-path: ellipse(50% 5% at 50% 50%); }
  100% { clip-path: ellipse(0% 0% at 50% 50%); }
}
.love-line {
  color: #fff0d2;
  font: 600 clamp(19px, 7cqw, 34px)/1.4 var(--serif);
  letter-spacing: .13em;
  text-shadow: 0 2px 12px #04070a;
  animation: river-word 3.4s ease-in-out infinite;
}
@keyframes river-word { 50% { transform: translateY(-5px); } }
.cinematic-feedback { margin: 0; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .narration-copy p, .cinematic-image, .love-line, .wake-character { animation: none; }
}

.game:has(.cinematic) .phone-wrap {
  position: fixed;
  z-index: 30;
  inset: 0;
  width: auto;
  min-width: 0;
}
.game:has(.cinematic) .phone {
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
}
.game:has(.cinematic) .phone-screen { border-radius: 0; }
.game:has(.cinematic) .edge-button { display: none; }
.cinematic-blink .cinematic-image {
  left: max(6%, calc(50% - 300px));
  width: min(72%, 510px);
  height: min(32%, 300px);
}
.cinematic-continue[hidden] { display: none; }
.post[data-item-id="m-concert"] .post-image img { aspect-ratio: 1; object-fit: contain; }

.chat-info .chat-album-picker { max-height: 75%; overflow: auto; }
.chat-album-picker .album-grid { margin-top: 9px; }

.report-sheet {
  align-self: center;
  width: min(100%, 350px);
  min-width: 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f5f2e6f2;
  color: #283c3a;
  text-align: left;
}

.report-sheet small { display: block; margin-top: 5px; color: #516460; font-size: 10px; }
.grade-report { width: 100%; border-collapse: collapse; font-size: 11px; line-height: 1.25; }
.grade-report caption { margin-bottom: 7px; color: #294c45; text-align: left; font-size: 12px; font-weight: 650; }
.grade-report th { color: #394f48; text-align: left; font-weight: 620; }
.grade-report th, .grade-report td { padding: 4px 5px; border-bottom: 1px solid #64796d35; }
.grade-report td:first-child { font-variant-numeric: tabular-nums; }
.grade-redacted span { display: inline-block; filter: blur(3px); opacity: .45; user-select: none; }
