:root {
  --ink: #eaf4f6;
  --muted: #9cb1bb;
  --cyan: #69d4e2;
  --cyan-soft: rgba(105, 212, 226, .24);
  --amber: #f0ba67;
  --night: #050b12;
  --panel: rgba(4, 13, 23, .84);
  --line: rgba(165, 222, 229, .2);
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  --literary: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--night);
}

.is-hidden { display: none !important; }

.title-background,
.background-layer,
.cg-layer,
.breathing-layer {
  position: absolute;
  inset: -2.5%;
  background-position: center;
  background-size: cover;
}

.title-background {
  background-image: url("assets/backgrounds/platform_rain.png");
  filter: blur(4px) saturate(.8) brightness(.48);
  transform: scale(1.04);
  animation: titleDrift 14s ease-in-out infinite alternate;
}

.title-vignette,
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 7, 12, .78) 0%, rgba(3, 10, 18, .35) 45%, rgba(3, 9, 16, .58) 100%),
    linear-gradient(0deg, rgba(2, 7, 12, .82) 0%, transparent 45%, rgba(2, 7, 12, .26) 100%);
}

.title-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(620px, 58vw);
  height: 100%;
  padding: 5vh 0 7vh clamp(34px, 8vw, 138px);
}

.title-kicker,
.modal-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.title-content h1 {
  margin: 0;
  font: 300 148px/.95 var(--literary);
  letter-spacing: .02em;
  text-shadow: 0 0 36px rgba(87, 202, 216, .22);
}

.title-clock {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 5vh 5px;
  color: var(--amber);
  font: 500 18px/1 "SFMono-Regular", Consolas, monospace;
}

.title-clock i {
  font-style: normal;
  animation: clockBlink 1s steps(1) infinite;
}

.title-clock small {
  margin-left: 13px;
  color: var(--muted);
  font: 600 9px/1 sans-serif;
  letter-spacing: .22em;
}

.title-menu {
  display: grid;
  width: min(320px, 76vw);
  gap: 5px;
}

.menu-button {
  position: relative;
  min-height: 43px;
  padding: 0 18px;
  border: 0;
  border-left: 2px solid rgba(124, 205, 216, .3);
  border-radius: 0;
  background: rgba(6, 17, 28, .2);
  color: #cadade;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, padding .2s ease, border-color .2s ease;
}

.menu-button:hover,
.menu-button:focus-visible,
.menu-button.primary:hover {
  padding-left: 27px;
  outline: none;
  border-color: var(--cyan);
  background: linear-gradient(90deg, rgba(83, 190, 207, .22), transparent);
  color: #fff;
}

.menu-button.primary { color: var(--cyan); }
.menu-button:disabled { opacity: .35; cursor: not-allowed; }
.menu-button:disabled:hover { padding-left: 18px; border-color: rgba(124, 205, 216, .3); background: transparent; }

.title-footer {
  position: absolute;
  z-index: 3;
  right: 4vw;
  bottom: 3vh;
  color: rgba(221, 237, 239, .45);
  font-size: 10px;
  letter-spacing: .16em;
}

.game-screen {
  --sprite-top: calc(max(14px, env(safe-area-inset-top)) + 44px + 16px);
  --sprite-bottom: clamp(118px, 17vh, 178px);
  cursor: pointer;
}

.background-layer {
  background-image: url("assets/backgrounds/platform_rain.png");
  filter: saturate(.82) brightness(.74);
  transition: opacity 1s ease, filter 1s ease;
}

.cg-layer {
  z-index: 2;
  opacity: 0;
  transition: opacity 1.3s ease;
}

.cg-layer.is-visible { opacity: 1; }

.breathing-layer {
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(1, 8, 15, .24);
  animation: breathe 9s ease-in-out infinite alternate;
}

.rain {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .55;
}

.drop {
  position: absolute;
  top: -16vh;
  width: 1px;
  height: var(--length);
  background: linear-gradient(transparent, rgba(179, 226, 235, .76));
  transform: rotate(12deg);
  animation: fall var(--duration) linear var(--delay) infinite;
}

.train-flash {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(242, 220, 165, .52) 48%, transparent 76%);
  transform: translateX(-110%);
}

.train-flash.run { animation: trainPass 1.8s ease-in-out; }

.hud {
  position: absolute;
  z-index: 20;
  top: max(14px, env(safe-area-inset-top));
  right: clamp(15px, 3vw, 52px);
  left: clamp(15px, 3vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scene-time {
  padding: 7px 11px;
  border-left: 2px solid var(--amber);
  background: rgba(3, 11, 18, .42);
  color: #e7d3ad;
  font: 600 13px/1 "SFMono-Regular", Consolas, monospace;
  backdrop-filter: blur(8px);
}

.hud-controls { display: flex; gap: 5px; }

.hud-button {
  min-width: 49px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(159, 213, 220, .2);
  border-radius: 4px;
  background: rgba(3, 11, 18, .58);
  color: rgba(230, 243, 245, .76);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s, color .2s;
}

.hud-button:hover,
.hud-button.is-active {
  border-color: rgba(105, 212, 226, .72);
  background: rgba(27, 93, 105, .5);
  color: #fff;
}

.icon-button { min-width: 36px; padding: 0; font-size: 15px; }

.character-sprite {
  position: absolute;
  z-index: 8;
  right: clamp(1vw, 5vw, 9vw);
  bottom: var(--sprite-bottom);
  width: min(58vw, 660px);
  /* Reserve the toolbar and breathing animation's travel before sizing the art. */
  height: min(940px, max(0px, calc(100% - var(--sprite-top) - var(--sprite-bottom))));
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .48));
  transform-origin: bottom center;
  animation: spriteIn .65s ease both, spriteBreath 6.4s ease-in-out .65s infinite alternate;
  pointer-events: none;
}

.choices {
  position: absolute;
  z-index: 30;
  inset: 12vh 0 25vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(2, 8, 14, .23);
}

.choice-button {
  width: min(560px, 84vw);
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid rgba(141, 213, 222, .32);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(5, 18, 29, .91), rgba(9, 28, 42, .76));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  color: #e7f1f3;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transform: translateY(8px);
  opacity: 0;
  animation: choiceIn .35s ease forwards;
  transition: transform .18s, border-color .18s, background .18s;
}

.choice-button::before { content: "›"; margin-right: 12px; color: var(--cyan); }
.choice-button:hover,
.choice-button:focus-visible {
  outline: none;
  transform: translateX(6px);
  border-color: var(--cyan);
  background: linear-gradient(90deg, rgba(17, 69, 81, .94), rgba(8, 30, 44, .86));
}

.dialogue-box {
  position: absolute;
  z-index: 25;
  right: clamp(18px, 5vw, 92px);
  bottom: var(--safe-bottom);
  left: clamp(18px, 5vw, 92px);
  min-height: clamp(124px, 18vh, 174px);
  padding: 28px clamp(28px, 4vw, 58px) 29px;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(105, 212, 226, .75);
  border-radius: 6px;
  background:
    linear-gradient(115deg, rgba(4, 13, 23, .93), rgba(4, 18, 29, .78)),
    var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .42);
  backdrop-filter: blur(16px) saturate(1.2);
  cursor: pointer;
}

.speaker-name {
  position: absolute;
  top: -16px;
  left: 27px;
  min-width: 96px;
  height: 31px;
  padding: 7px 19px;
  border: 1px solid rgba(113, 204, 215, .3);
  border-radius: 4px;
  background: rgba(5, 22, 34, .92);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .26);
}

.speaker-name:empty { visibility: hidden; }

.dialogue-text {
  margin: 0;
  min-height: 3.5em;
  color: #ecf4f5;
  font-size: 18px;
  line-height: 1.82;
  white-space: pre-line;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.dialogue-text.fade { animation: textIn .25s ease; }

.next-hint {
  position: absolute;
  right: 20px;
  bottom: 12px;
  color: rgba(183, 216, 220, .55);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}

.next-hint span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  animation: hintPulse 1s ease-in-out infinite;
}

.ending-card {
  position: absolute;
  z-index: 24;
  top: 13%;
  left: 4%;
  padding-left: 18px;
  border-left: 2px solid var(--amber);
  text-shadow: 0 3px 16px #000;
  animation: endingIn 1.2s ease both;
}

.ending-card p { margin: 0 0 5px; color: var(--amber); font-size: 10px; letter-spacing: .24em; }
.ending-card h2 { margin: 0; font: 400 38px/1.4 var(--literary); }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop { position: absolute; inset: 0; background: rgba(1, 5, 9, .78); backdrop-filter: blur(7px); }

.modal-panel {
  position: relative;
  width: min(720px, 94vw);
  max-height: min(76vh, 680px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(5, 16, 26, .95);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .58);
  overflow: hidden;
  animation: modalIn .25s ease both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.modal-header .modal-kicker { margin-bottom: 4px; font-size: 8px; }

.close-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
}
.close-button:hover { background: rgba(105, 212, 226, .09); color: #fff; }

.modal-content {
  max-height: calc(min(76vh, 680px) - 84px);
  padding: 22px 24px 26px;
  overflow: auto;
}

.log-entry { padding: 12px 0; border-bottom: 1px solid rgba(164, 219, 225, .1); color: #cbdadd; line-height: 1.65; }
.log-entry strong { display: block; margin-bottom: 3px; color: var(--cyan); font-size: 11px; }
.empty-note { color: var(--muted); text-align: center; padding: 42px 10px; }

.ending-list { display: grid; gap: 9px; }
.ending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 16px;
  border-left: 2px solid rgba(130, 196, 205, .25);
  background: rgba(146, 206, 214, .05);
  color: #879a9f;
  font-size: 13px;
  letter-spacing: .08em;
}
.ending-item.unlocked { border-color: var(--amber); color: #edf3f4; }
.ending-item small { color: #6e8187; letter-spacing: .12em; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  border-bottom: 1px solid rgba(164, 219, 225, .1);
  color: #d8e4e6;
}
.setting-row input[type="range"] { width: min(260px, 45vw); accent-color: var(--cyan); }
.setting-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.panel-button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(105, 212, 226, .28);
  border-radius: 4px;
  background: rgba(28, 83, 94, .2);
  color: #e2eff1;
  cursor: pointer;
}
.panel-button:hover { border-color: var(--cyan); background: rgba(28, 83, 94, .42); }
.panel-button.danger { border-color: rgba(220, 137, 128, .3); color: #eab3ae; }

.chapter-item { padding: 17px; border-left: 2px solid var(--cyan); background: rgba(105, 212, 226, .05); }
.chapter-item h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.chapter-item p { margin: 0 0 15px; color: var(--muted); font-size: 12px; }

.toast {
  position: fixed;
  z-index: 150;
  top: 18px;
  left: 50%;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(4, 16, 25, .92);
  color: #dcebed;
  font-size: 12px;
  transform: translateX(-50%);
  animation: toastIn .25s ease;
}

.screen.is-black .background-layer,
.screen.is-black .character-sprite,
.screen.is-black .rain,
.screen.is-black .vignette { opacity: 0; }
.screen.is-black { background: #000; }

@keyframes titleDrift { to { transform: scale(1.08) translate(-.7%, .4%); } }
@keyframes clockBlink { 50% { opacity: .15; } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.018); } }
@keyframes fall { to { transform: translate(9vw, 125vh) rotate(12deg); } }
@keyframes trainPass { 0% { opacity: 0; transform: translateX(-110%); } 20% { opacity: 1; } 75% { opacity: .62; } 100% { opacity: 0; transform: translateX(120%); } }
@keyframes spriteIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spriteBreath { from { transform: translateY(0) scale(1); } to { transform: translateY(-3px) scale(1.004); } }
@keyframes choiceIn { to { opacity: 1; transform: translateY(0); } }
@keyframes textIn { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hintPulse { 50% { opacity: .25; transform: translateY(3px) rotate(45deg); } }
@keyframes endingIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 720px) {
  .title-content { width: 100%; justify-content: flex-end; padding: 8vh 26px 9vh; }
  .title-content h1 { font-size: 92px; }
  .title-clock { margin-bottom: 4vh; }
  .title-menu { width: 100%; grid-template-columns: 1fr 1fr; }
  .menu-button { min-height: 48px; background: rgba(4, 14, 23, .48); }
  .menu-button.primary { grid-column: 1 / -1; }
  .title-footer { display: none; }
  .hud { right: 12px; left: 12px; }
  .scene-time { font-size: 11px; }
  .hud-button { min-width: 43px; height: 38px; padding: 0 7px; }
  .icon-button { min-width: 38px; }
  .character-sprite { right: -10vw; width: min(94vw, 540px); }
  .dialogue-box { right: 10px; bottom: var(--safe-bottom); left: 10px; min-height: 138px; padding: 25px 20px 28px; }
  .dialogue-text { font-size: 15px; line-height: 1.7; }
  .speaker-name { left: 17px; }
  .choices { inset: 10vh 0 23vh; padding: 14px; }
  .choice-button { width: 94vw; min-height: 54px; }
}

@media (max-width: 500px) {
  .hud-controls { gap: 3px; }
  .hud-button { min-width: 39px; font-size: 9px; }
  .icon-button { min-width: 36px; }
  .scene-time { padding: 6px 8px; }
  .character-sprite { width: 86vw; right: -15vw; }
  .modal { padding: 10px; }
  .modal-panel { width: 100%; max-height: 82vh; }
  .modal-content { max-height: calc(82vh - 84px); padding: 18px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .title-content { padding-top: 4vh; padding-bottom: 4vh; }
  .title-content h1 { font-size: 86px; }
  .title-clock { margin: 8px 0 2vh 4px; }
  .title-menu { grid-template-columns: 1fr 1fr; width: 380px; }
  .menu-button { min-height: 35px; }
  .dialogue-box { min-height: 100px; padding-top: 20px; padding-bottom: 20px; }
  .dialogue-text { font-size: 14px; line-height: 1.55; }
  .choices { inset: 10vh 0 29vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Chinese editorial typography and unobtrusive relationship HUD. */
#app *, #app *::before, #app *::after { letter-spacing: 0; }
.title-content { padding-top: 36px; padding-bottom: 36px; }
.title-kicker { font: 400 14px/1.8 var(--literary); color: #b6d0cf; margin-bottom: 22px; }
.title-clock { margin-bottom: 30px; }
.title-clock small { font: 400 12px/1.6 var(--literary); }
.title-content::after {
  content: "听一场雨，等一个人。";
  position: fixed; right: 9%; top: 28%; writing-mode: vertical-rl;
  font: 400 23px/2 var(--literary); color: #c8d9d8;
  border-left: 1px solid #8ab5ba55; padding-left: 20px;
}
.title-menu { gap: 4px; }
.menu-button { font: 400 19px/1.4 var(--literary); min-height: 47px; }
.menu-button.primary { color: #e5c898; }
.title-footer { font: 400 13px/1.6 var(--literary); }
.modal-kicker { font: 400 11px/1.6 var(--literary); }
.modal-header h2 { font: 400 24px/1.4 var(--literary); }
.scene-meta { display: flex; gap: 16px; align-items: center; }
#chapter-label { font: 400 12px/1.4 var(--literary); color: #c7d8d9; text-shadow: 0 1px 5px #000; }
.hud-button { font: 500 12px/1.4 sans-serif; min-height: 42px; }
.icon-button { font-size: 18px; }
.affection-panel {
  position: absolute; z-index: 21; left: clamp(15px, 3vw, 52px); top: 80px;
  width: 176px; padding: 10px 12px; border-left: 1px solid #ddb87680;
  background: #071119ad; backdrop-filter: blur(10px); pointer-events: none;
}
.affection-label { display: flex; justify-content: space-between; align-items: center; font: 400 16px/1.3 var(--literary); }
.affection-label small { font: 10px sans-serif; color: #9aafb2; }
#affection-stage { font-size: 12px; color: #e4c999; }
.affection-meter { height: 3px; background: #a3cfda22; margin-top: 9px; overflow: hidden; }
.affection-meter i { display: block; height: 100%; width: 0; background: #d8be8b; transition: width .65s ease; }
#affection-value { display: block; margin-top: 5px; font: 10px/1 monospace; text-align: right; color: #aac4c5; }
.speaker-name { font: 400 17px/1 var(--literary); }
.dialogue-box { height: 170px; min-height: 0; }
.dialogue-text { max-height: 105px; overflow-y: auto; overflow-wrap: anywhere; }
.choice-button { font-family: var(--literary); font-size: 17px; line-height: 1.6; }
.choice-button:disabled { color: #a6adae; border-color: #80949433; cursor: default; background: #111b21e8; }
.choice-button:disabled::before { content: "·"; color: #8a969a; }
.choices { bottom: 205px; background: transparent; }
.has-ending .choices { top: 35%; }
.has-ending .ending-card { top: 14%; max-width: 88%; }
.has-cg .rain { opacity: .14; }
.is-silent .drop { animation-play-state: paused; }
.screen.is-black .cg-layer { opacity: 0; }
.chapter-list { display: grid; gap: 10px; padding-top: 16px; }
.chapter-jump { text-align: left; font: 400 17px/1.6 var(--literary); padding-block: 10px; }
.panel-button:disabled { opacity: .4; cursor: default; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery-item { margin: 0; padding: 0; background: #08121b; color: #dce6e6; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; cursor: pointer; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-item span { display: block; padding: 12px; font: 400 16px/1.5 var(--literary); }
.gallery-item.locked { display: grid; place-items: center; min-height: 130px; cursor: default; color: #789196; }
.gallery-item:hover:not(.locked) { border-color: #d9bb7f; }
.gallery-full { display: block; width: 100%; max-height: 50vh; object-fit: contain; margin-bottom: 16px; }
.voice-samples { display: flex; flex-wrap: wrap; gap: 8px; }
.setting-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: #71c8ce; }
.setting-row { flex-wrap: wrap; padding-block: 10px; gap: 10px; }
button:focus-visible { outline: 2px solid #e8c180; outline-offset: 3px; }

@media (max-width: 950px) { #chapter-label { display: none; } .title-content::after { right: 8%; } }
@media (max-width: 720px) {
  .title-content { padding: 32px 26px max(36px, env(safe-area-inset-bottom)); justify-content: center; }
  .title-content::after { display: none; }
  .title-kicker { margin-bottom: 18px; font-size: 13px; }
  .title-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-button.primary { grid-column: auto; }
  .menu-button { font-size: 18px; min-height: 49px; }
  .title-clock { margin-bottom: 28px; }
  .hud { left: 10px; right: 10px; }
  .hud-controls { gap: 3px; }
  .hud-button { min-width: 39px; padding-inline: 6px; height: 44px; font-size: 11px; }
  .icon-button { min-width: 35px; font-size: 16px; }
  .scene-time { padding: 7px; }
  .affection-panel { top: 76px; left: 12px; width: 154px; padding: 9px 11px; }
  .dialogue-box { height: 184px; padding: 24px 20px 28px; }
  .dialogue-text { max-height: 124px; font-size: 16px; line-height: 1.75; }
  .choices { inset: 156px 0 218px; padding: 10px; gap: 8px; overflow-y: auto; justify-content: center; }
  .choice-button { flex-shrink: 0; width: 100%; min-height: 49px; padding: 10px 14px; font-size: 15px; }
  .game-screen { --sprite-bottom: 176px; }
  .ending-card h2 { font-size: 30px; }
  .ending-item { align-items: start; gap: 8px; font-size: 12px; }
  .ending-item small { white-space: nowrap; }
}
@media (max-height: 720px) and (orientation: portrait) {
  .choices { top: 139px; bottom: 216px; justify-content: flex-start; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .title-content { padding-block: 18px; }
  .title-kicker { margin-bottom: 8px; }
  .title-clock { margin-bottom: 10px; }
  .menu-button { min-height: 35px; font-size: 16px; }
  .affection-panel { top: 65px; width: 146px; padding: 6px 10px; }
  .dialogue-box { height: 104px; padding: 19px 22px 20px; }
  .dialogue-text { max-height: 62px; font-size: 14px; line-height: 1.55; }
  .choices { inset: 65px 20% 130px; gap: 5px; padding: 4px; overflow-y: auto; justify-content: flex-start; }
  .choice-button { flex-shrink: 0; width: 100%; min-height: 44px; padding: 7px 12px; font-size: 14px; }
  .has-ending .choices { top: 140px; }
  .game-screen { --sprite-bottom: 98px; }
}
