@charset "UTF-8";
:root {
  --nezha: url("assets/pixel/nezha-states.png");
}
.avatar.magic {
  background-image: var(--nezha);
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.magic-option {
  display: flex;
  gap: 17px;
  align-items: center;
  border: 1px solid #665064;
  padding: 15px;
  margin-bottom: 20px;
  background: #222035;
}
.magic-option p {
  flex: 1;
  margin: 0;
}
.magic-option p b {
  display: block;
  color: var(--orange);
  font-size: 14px;
  margin-bottom: 5px;
}
.magic-option p span {
  font-size: 11px;
  color: #b6a2be;
  line-height: 1.8;
}
#magic-preview {
  width: 78px;
  height: 78px;
}
.magic-option .secondary {
  font-size: 11px;
  padding: 8px 12px;
}
@media (max-width: 560px) {
  .magic-option {
    gap: 10px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .magic-option p {
    min-width: 145px;
  }
  .magic-option p span {
    font-size: 10px;
  }
  #magic-preview {
    width: 62px;
    height: 62px;
  }
  .magic-option .secondary {
    margin-left: auto;
  }
}
:root {
  --bg: #101321;
  --panel: #1a1d2e;
  --line: #353549;
  --muted: #9794aa;
  --cream: #f2e3cc;
  --orange: #efaf7b;
  --green: #92b9a0;
  --purple: #c4b0de;
  --effy: url("assets/pixel/effy-states.png");
  --cast: url("assets/pixel/cast.png");
  --photo: url("assets/photo/effy-cutout.png");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font:
    14px/1.65 "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(#a59abb 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: -1;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
.hidden {
  display: none !important;
}
button:hover {
  color: #fff;
}
#app {
  max-width: 1512px;
  padding: 0 40px;
  margin: auto;
}
.masthead {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--cream);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font: 9px/1.9 monospace;
  letter-spacing: 2.3px;
  color: var(--muted);
}
.brand-mark {
  font-family: serif;
  font-size: 25px;
  color: var(--bg);
  background: var(--orange);
  padding: 0 6px;
  box-shadow: 4px 4px 0 #6b4c49;
  clip-path: polygon(
    0 5px,
    5px 5px,
    5px 0,
    calc(100% - 5px) 0,
    calc(100% - 5px) 5px,
    100% 5px,
    100% calc(100% - 5px),
    calc(100% - 5px) calc(100% - 5px),
    calc(100% - 5px) 100%,
    5px 100%,
    5px calc(100% - 5px),
    0 calc(100% - 5px)
  );
}
nav {
  display: flex;
  gap: 28px;
}
nav button {
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
nav em {
  font: 10px monospace;
  margin-right: 6px;
  opacity: 0.5;
}
nav .active {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}
.edition {
  font: 11px monospace;
  letter-spacing: 1px;
  color: var(--green);
}
.edition i,
.dot,
.game-footer > span i,
#live-badge i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  margin-right: 8px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 22px;
  align-items: start;
}
.game-window {
  border: 1px solid #494153;
  background: #151827;
  box-shadow:
    0 8px 0 #0c0e19,
    0 16px 35px #090b1344;
  min-width: 0;
}
.windowbar {
  height: 45px;
  background: #222133;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  font-size: 11px;
  color: #c0b5c5;
  border-bottom: 1px solid #494153;
}
.windowbar .dot {
  background: var(--orange);
  width: 5px;
  height: 5px;
}
.window-actions {
  display: flex;
  gap: 16px;
}
.window-actions button {
  font-size: 11px;
  padding: 5px 0;
  color: #c0b5c5;
}
.window-actions button:hover {
  color: var(--orange);
}
#scene {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  isolation: isolate;
  background: #141523;
  cursor: pointer;
}
#stage {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
#scene-top {
  position: absolute;
  top: 20px;
  left: 23px;
  right: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
  font: 10px monospace;
  letter-spacing: 1px;
  color: var(--cream);
}
#chapter-tag {
  background: #171521cc;
  border: 1px solid #80708360;
  padding: 5px 10px;
}
#live-badge {
  font: 11px/1.6 monospace;
  text-shadow: 1px 1px #111;
}
#live-badge i {
  background: #e98c87;
  box-shadow: 0 0 10px #e98c8766;
}
#title {
  position: absolute;
  inset: 0;
  padding: 12% 5.5% 4%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  cursor: default;
  z-index: 3;
}
.eyebrow {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 2px;
}
h1 {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: clamp(29px, 3.6vw, 56px);
  line-height: 1.25;
  margin: 18px 0 13px;
  letter-spacing: 6px;
  font-weight: 900;
  text-shadow: 3px 3px 0 #725058;
}
h1 span {
  display: block;
  font-size: 0.53em;
  letter-spacing: 7px;
  margin-top: 9px;
  color: #e4c3bd;
  text-shadow: 2px 2px 0 #5b3c50;
}
#title p {
  font-size: 12px;
  line-height: 1.9;
  color: #c3b0bc;
  margin: 0 0 22px;
}
.title-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.primary,
.secondary {
  font-size: 12px;
  letter-spacing: 1px;
  padding: 11px 17px;
  border: 1px solid #f5c698;
  box-shadow: 3px 3px 0 #6d4545;
  transition: transform 0.15s;
  background: var(--orange);
  color: #2a2432;
  font-weight: bold;
}
.primary:hover {
  background: #ffd2a4;
  color: #1d1a29;
  transform: translateY(-2px);
}
.primary b {
  margin-left: 18px;
}
.secondary {
  background: #242335dd;
  color: var(--cream);
  border-color: #716079;
  box-shadow: 3px 3px 0 #10111d;
}
.secondary:hover {
  background: #37304a;
}
.title-meta {
  font: 10px/1.6 monospace;
  color: #9b8b9c;
  margin-top: 20px;
}
.title-meta i {
  margin: 0 7px;
  color: var(--orange);
}
#action-label {
  position: absolute;
  right: 5%;
  bottom: 17px;
  font: 11px monospace;
  letter-spacing: 2px;
  padding: 5px 12px;
  background: #111522c9;
  border-left: 2px solid var(--orange);
  color: #dfc0a1;
  pointer-events: none;
}
#danmaku {
  position: absolute;
  inset: 65px 0 45%;
  pointer-events: none;
  overflow: hidden;
}
.dm {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  font-size: 12px;
  color: #f9e5d8;
  background: #17152388;
  padding: 3px 10px;
  border: 1px solid #77607866;
  animation: fly 10s linear forwards;
  text-shadow: 1px 1px #16121e;
}
@keyframes fly {
  to {
    transform: translateX(calc(-1100px - 100%));
  }
}
#dialogue {
  min-height: 169px;
  display: flex;
  gap: 18px;
  padding: 24px;
  background: #1a1b2c;
  border-top: 2px solid #b0887c;
  position: relative;
}
#dialogue::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 24px;
  width: 40px;
  height: 6px;
  background: var(--orange);
}
.avatar {
  width: 72px;
  height: 86px;
  flex: none;
  background-color: #101321;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  border: 1px solid #655262;
  box-shadow: 3px 3px 0 #0f111d;
}
.avatar.effy {
  background-image: var(--effy);
  background-size: 300% 200%;
  background-position: 0 0;
}
.avatar.cast {
  background-image: var(--cast);
  background-size: 300% 200%;
}
.avatar.photo {
  background-image: var(--photo);
  background-size: 112% auto;
  background-position: 55% 12%;
  image-rendering: auto;
  transform-origin: 50% 100%;
  animation: photo-breathe 3.4s ease-in-out infinite;
}
.avatar.photo[data-speaking="true"] {
  animation: photo-speaking 0.32s ease-in-out infinite alternate;
}
@keyframes photo-breathe {
  50% {
    transform: translateY(-1px) rotate(0.6deg);
  }
}
@keyframes photo-speaking {
  to {
    transform: translateY(-2px) rotate(-1.2deg);
  }
}
.dialogue-body {
  flex: 1;
  min-width: 0;
}
.speaker-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.speaker-line b {
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 1px;
}
.speaker-line > span {
  font: 9px monospace;
  color: #7e788e;
  letter-spacing: 1px;
}
#dialog {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0;
  min-height: 64px;
  position: relative;
  cursor: pointer;
}
#text {
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.5px;
  color: #ded3d3;
  display: block;
  padding-bottom: 22px;
}
#hint {
  position: absolute;
  right: 0;
  bottom: 0;
  font: 9px/1.6 monospace;
  color: #8b8097;
  letter-spacing: 1px;
}
#choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}
#choices:empty {
  display: none;
}
.choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: 10px 13px;
  background: #262439;
  border: 1px solid #514058;
  color: #e5d4cc;
  font-size: 12px;
  transition: 0.15s;
}
.choice span {
  color: #ab97bb;
  font: 10px monospace;
  white-space: nowrap;
  margin-left: 8px;
}
.choice:hover {
  border-color: var(--orange);
  background: #3a2e43;
  transform: translateX(3px);
}
.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 18px;
  border-top: 1px solid #343044;
  background: #181927;
  color: #837e94;
  font: 10px monospace;
}
.game-footer > span i {
  width: 4px;
  height: 4px;
}
.game-footer > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.game-footer button {
  padding: 0;
  font-size: 10px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel {
  border: 1px solid var(--line);
  padding: 19px;
  background: var(--panel);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.panel-heading h2 {
  font-size: 12px;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 500;
}
.panel-heading > span {
  font: 8px monospace;
  letter-spacing: 1px;
  color: #817a91;
}
.stat-row {
  display: grid;
  grid-template-columns: 48px 1fr 23px;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
  font-size: 11px;
  color: #bfb3c4;
}
.stat-row b {
  text-align: right;
  font: 12px monospace;
  color: var(--cream);
}
.stat-track {
  height: 5px;
  background: #303043;
}
.stat-track i {
  display: block;
  height: 100%;
  background: var(--orange);
  transition: width 0.4s;
}
.stat-row:nth-child(2) i {
  background: var(--purple);
}
.stat-row:nth-child(3) i {
  background: var(--green);
}
.stat-row.changed b {
  color: var(--orange);
}
.collect-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #454053;
  padding-top: 14px;
  margin-top: 18px;
  font-size: 10px;
  color: #b5a9bc;
}
.collect-strip b {
  font: 18px monospace;
  color: var(--orange);
}
.collect-strip small {
  font-size: 10px;
  color: #797387;
}
.mini-progress {
  height: 3px;
  background: #333042;
  margin-top: 11px;
}
.mini-progress i {
  height: 100%;
  display: block;
  background: var(--orange);
  transition: width 0.3s;
}
.journey-panel {
  padding-bottom: 7px;
}
#chapters {
  list-style: none;
  padding: 0;
  margin: 0;
}
#chapters li {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 19px;
  color: #7f798e;
}
#chapters li:not(:last-child)::after {
  content: "";
  width: 1px;
  background: #3a354c;
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 4px;
}
#chapters i {
  font: 9px/24px monospace;
  flex: none;
  text-align: center;
  width: 24px;
  height: 24px;
  background: #252439;
  border: 1px solid #454058;
}
#chapters span {
  font-size: 11px;
}
#chapters small {
  display: block;
  font-size: 9px;
  color: #716c81;
  margin-top: 2px;
}
#chapters li.current {
  color: var(--orange);
}
#chapters li.current i {
  background: #443141;
  border-color: #b68571;
  color: var(--orange);
}
#chapters li.current small {
  color: #a78d9b;
}
#chapters li.done i {
  color: var(--green);
  border-color: #5c7d72;
}
.chat-panel {
  padding-bottom: 0;
}
.chat-panel .dot {
  width: 5px;
  height: 5px;
  background: #bca1d4;
}
.chat-panel .panel-heading {
  margin-bottom: 13px;
}
#chat-feed {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 134px;
  max-height: 168px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #514253 transparent;
}
.chat-message {
  font-size: 11px;
  color: #cac0d0;
  line-height: 1.7;
}
.chat-message b {
  color: #ad97bd;
  font-weight: normal;
  margin-right: 8px;
}
.chat-message:nth-child(even) b {
  color: #97b7a6;
}
.chat-note {
  font-size: 9px;
  border-top: 1px solid #353044;
  padding: 12px 0;
  color: #777185;
  margin-top: 15px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0;
  font-size: 9px;
  letter-spacing: 1px;
  color: #736c83;
}
.page-footer i {
  color: #c99e7d;
  font-style: normal;
  margin: 0 10px;
}
#battle-hud {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  pointer-events: none;
}
.fighter {
  width: 38%;
  font: 11px monospace;
  text-shadow: 1px 1px #111;
}
.fighter small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #b8a1c4;
}
.fighter b {
  font-size: 15px;
  display: block;
  margin: 4px 0;
  color: var(--cream);
}
.fighter.enemy {
  text-align: right;
}
.hp-track {
  height: 9px;
  background: #10131fe6;
  padding: 2px;
  box-shadow: 0 0 0 1px #755e79;
  margin: 7px 0;
}
.hp-track i {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 0.3s;
}
.enemy .hp-track i {
  background: #d58b85;
}
.versus {
  font: italic bold 21px monospace;
  color: var(--orange);
}
#battle-impact {
  position: absolute;
  top: 54%;
  width: 100%;
  text-align: center;
  pointer-events: none;
  font: 900 21px monospace;
  color: var(--orange);
  text-shadow: 2px 2px #141421;
}
#battle-skills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.skill {
  padding: 10px 9px;
  background: #282438;
  border: 1px solid #5c465b;
  text-align: left;
  font-size: 11px;
  color: var(--cream);
}
.skill b {
  display: block;
  color: var(--orange);
  font-size: 12px;
}
.skill small {
  display: block;
  color: #a394ad;
  font-size: 9px;
  margin-top: 5px;
  line-height: 1.6;
}
.skill:hover {
  background: #3c2d43;
  border-color: var(--orange);
}
#endscreen {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #111522ed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 25px 9%;
  cursor: default;
}
#end-icon {
  font-size: 25px;
  color: var(--orange);
  margin: 10px 0 0;
}
#end-title {
  font-size: 29px;
  letter-spacing: 4px;
  margin: 8px 0;
}
#end-quote {
  color: var(--orange);
  font-size: 13px;
  margin: 0 0 10px;
}
#end-text {
  font-size: 12px;
  line-height: 1.9;
  color: #b9abbf;
  margin: 0 0 12px;
}
#end-collected {
  font: 10px monospace;
  color: #95839e;
  margin-bottom: 16px;
}
.modal {
  background: #1b1c2e;
  color: var(--cream);
  border: 1px solid #87677c;
  box-shadow: 7px 7px 0 #0a0d19;
  max-width: 920px;
  width: calc(100% - 40px);
  max-height: 85dvh;
  padding: 28px;
  scrollbar-width: thin;
  scrollbar-color: #796078 #1b1c2e;
}
.modal::backdrop {
  background: #080b15dd;
  backdrop-filter: blur(4px);
}
.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #4d3c55;
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.modal header small {
  font: 9px monospace;
  letter-spacing: 2px;
  color: var(--orange);
}
.modal h2 {
  font-size: 23px;
  letter-spacing: 2px;
  margin: 5px 0 0;
}
.modal header button {
  font-size: 20px;
  color: #b69ac0;
}
.modal-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 20px;
  font-size: 11px;
  color: #b7a9c1;
}
.modal-toolbar input {
  accent-color: var(--orange);
}
#gallery-grid,
#cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.qcard {
  background: #272337;
  padding: 17px;
  border: 1px solid #52425c;
  min-height: 140px;
}
.qcard .qhead {
  font: 10px monospace;
  color: var(--orange);
  margin-bottom: 12px;
}
.qbody {
  font-size: 12px;
  line-height: 1.9;
  color: #d2c3d1;
}
.qcard.locked {
  opacity: 0.55;
  border-style: dashed;
}
.qcard small {
  font-size: 9px;
  color: #a48aaa;
  display: block;
  margin-top: 12px;
}
.cast-card {
  border: 1px solid #514059;
  background: #161827;
  padding: 12px;
}
.cast-art {
  aspect-ratio: 1;
  background-size: 300% 200%;
  background-image: var(--cast);
  image-rendering: pixelated;
}
.cast-card h3 {
  font-size: 13px;
  color: var(--orange);
  margin: 10px 0 5px;
}
.cast-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #ab9bb8;
  margin: 0;
}
.modal-note {
  font-size: 11px;
  color: #a18bae;
  margin-top: 22px;
}
#backlog p {
  font-size: 13px;
  line-height: 1.9;
  border-bottom: 1px solid #383045;
  padding: 10px 0;
}
#backlog b {
  display: block;
  color: var(--orange);
  font-size: 11px;
}
.compact {
  max-width: 440px;
}
.compact p {
  color: #b9adc2;
  font-size: 13px;
  margin-bottom: 24px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 100px);
  opacity: 0;
  transition: 0.25s;
  background: #34283d;
  color: var(--cream);
  border: 1px solid var(--orange);
  padding: 11px 22px;
  font-size: 12px;
  z-index: 100;
  pointer-events: none;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.reduced-motion *,
.reduced-motion *::before {
  animation: none !important;
  transition: none !important;
}
#app:fullscreen {
  background: #101321;
  max-width: none;
  overflow: auto;
  padding: 0 4vw;
}
#app:fullscreen .workspace {
  max-width: 1600px;
  margin: auto;
}
#app:fullscreen .masthead,
#app:fullscreen .page-footer {
  max-width: 1600px;
  margin: auto;
}
@media (min-width: 1500px) {
  #title {
    padding-top: 13%;
  }
  h1 {
    font-size: 56px;
  }
  .sidebar {
    gap: 20px;
  }
  .panel {
    padding: 22px;
  }
  .journey-panel {
    padding-bottom: 10px;
  }
  #chat-feed {
    min-height: 165px;
    max-height: 180px;
  }
  #dialogue {
    min-height: 181px;
  }
}
@media (max-width: 1150px) {
  #app {
    padding: 0 22px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 16px;
  }
  .masthead {
    height: 86px;
  }
  nav {
    gap: 17px;
  }
  .edition {
    display: none;
  }
  .panel {
    padding: 15px;
  }
  .title-meta {
    font-size: 8px;
    margin-top: 13px;
  }
  #title p {
    margin-bottom: 17px;
  }
  .title-actions {
    gap: 7px;
  }
  .primary,
  .secondary {
    padding: 9px 12px;
    font-size: 10px;
  }
  #title {
    padding-top: 11%;
  }
  .eyebrow {
    font-size: 9px;
  }
  #scene-top {
    top: 15px;
    left: 16px;
    right: 16px;
  }
  #chapter-tag {
    font-size: 8px;
  }
  #live-badge {
    font-size: 9px;
  }
  #dialogue {
    padding: 19px;
    gap: 14px;
  }
  .avatar {
    width: 62px;
    height: 75px;
  }
  .speaker-line > span {
    display: none;
  }
  .game-footer > div > span {
    display: none;
  }
  .fighter b {
    font-size: 12px;
  }
  #battle-hud {
    top: 62px;
  }
  #battle-skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #end-title {
    font-size: 23px;
  }
  #end-text {
    font-size: 11px;
  }
  #endscreen {
    padding: 15px 7%;
  }
  #end-icon {
    display: none;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .chat-panel {
    display: none;
  }
  .journey-panel {
    display: none;
  }
  .status-panel {
    grid-column: 1/-1;
    padding: 12px 19px;
  }
  .status-panel .panel-heading {
    display: none;
  }
  #stats {
    display: flex;
    gap: 26px;
  }
  .stat-row {
    flex: 1;
    margin: 4px 0;
  }
  .collect-strip,
  .mini-progress {
    display: none;
  }
  #title {
    padding-top: 12%;
  }
  h1 {
    font-size: clamp(30px, 6vw, 52px);
  }
  #title p {
    font-size: 13px;
  }
  .title-meta {
    font-size: 10px;
  }
  .primary,
  .secondary {
    padding: 11px 15px;
    font-size: 12px;
  }
  .page-footer {
    font-size: 8px;
    padding: 22px 0;
  }
  .page-footer span:last-child {
    max-width: 50%;
    text-align: right;
  }
}
@media (max-width: 560px) {
  #app {
    padding: 0 12px;
  }
  .masthead {
    height: 77px;
    gap: 8px;
  }
  .brand {
    font-size: 13px;
    gap: 9px;
    letter-spacing: 1px;
  }
  .brand-mark {
    font-size: 21px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  nav {
    gap: 12px;
  }
  nav em {
    display: none;
  }
  nav button {
    font-size: 10px;
    padding: 8px 0;
  }
  #nav-story {
    display: none;
  }
  .windowbar {
    height: 41px;
    padding: 0 11px;
    font-size: 9px;
  }
  .window-actions {
    gap: 10px;
  }
  .window-actions button {
    font-size: 9px;
  }
  #scene {
    aspect-ratio: 1.12;
  }
  #stage {
    object-fit: cover;
    object-position: 59% center;
  }
  #scene-top {
    left: 13px;
    right: 13px;
    top: 13px;
    font-size: 8px;
  }
  #chapter-tag {
    font-size: 8px;
    padding: 4px 6px;
  }
  #live-badge {
    font-size: 8px;
  }
  #title {
    padding: 23% 6% 6%;
    background: linear-gradient(90deg, #151221a8, transparent);
  }
  h1 {
    font-size: 36px;
    letter-spacing: 4px;
    margin: 14px 0;
  }
  h1 span {
    font-size: 20px;
    letter-spacing: 5px;
  }
  #title p {
    font-size: 11px;
    margin-bottom: 22px;
  }
  .title-meta {
    font-size: 8px;
    max-width: 230px;
    margin-top: 16px;
  }
  .title-actions {
    gap: 9px;
  }
  .primary,
  .secondary {
    font-size: 11px;
    padding: 10px 12px;
  }
  .primary b {
    margin-left: 8px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  #action-label {
    font-size: 9px;
    right: 13px;
    bottom: 12px;
  }
  #dialogue {
    padding: 18px 14px;
    gap: 12px;
    min-height: 178px;
  }
  .avatar {
    width: 48px;
    height: 62px;
  }
  #text {
    font-size: 12px;
    line-height: 1.9;
    letter-spacing: 0;
  }
  .speaker-line b {
    font-size: 12px;
  }
  #hint {
    font-size: 8px;
  }
  #dialog {
    min-height: 78px;
  }
  .choice {
    font-size: 11px;
    padding: 10px;
  }
  .choice span {
    font-size: 8px;
  }
  #choices {
    margin-left: -60px;
    margin-top: 15px;
  }
  .game-footer {
    font-size: 8px;
    padding: 10px;
    gap: 6px;
  }
  .game-footer button {
    font-size: 9px;
  }
  .game-footer > div {
    gap: 10px;
  }
  .game-footer > span {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .workspace {
    gap: 14px;
  }
  .stat-row {
    grid-template-columns: 28px 1fr 17px;
    gap: 5px;
    font-size: 10px;
  }
  #stats {
    gap: 17px;
  }
  .status-panel {
    padding: 10px 13px;
  }
  .stat-row b {
    font-size: 11px;
  }
  .page-footer {
    display: block;
    font-size: 8px;
    line-height: 1.9;
    padding: 18px 2px;
  }
  .page-footer span {
    display: block;
  }
  .page-footer span:last-child {
    max-width: none;
    text-align: left;
  }
  .page-footer i {
    margin: 0 6px;
  }
  #battle-hud {
    top: 59px;
    left: 6%;
    right: 6%;
    gap: 12px;
  }
  .fighter {
    width: 42%;
    font-size: 9px;
  }
  .fighter b {
    font-size: 12px;
  }
  .fighter small {
    font-size: 7px;
  }
  .versus {
    font-size: 15px;
  }
  #battle-skills {
    margin-left: -60px;
    gap: 7px;
  }
  .skill {
    font-size: 10px;
  }
  .skill b {
    font-size: 11px;
  }
  .skill small {
    font-size: 9px;
  }
  #battle-impact {
    top: 56%;
    font-size: 16px;
  }
  #endscreen {
    padding: 23px 7%;
  }
  #end-title {
    font-size: 24px;
    margin: 12px 0;
  }
  #end-quote {
    font-size: 11px;
  }
  #end-text {
    font-size: 11px;
    margin-bottom: 15px;
  }
  #end-collected {
    font-size: 9px;
  }
  .modal {
    padding: 19px;
    width: calc(100% - 28px);
  }
  .modal h2 {
    font-size: 18px;
  }
  .modal-toolbar {
    flex-wrap: wrap;
    font-size: 10px;
  }
  #gallery-grid,
  #cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .qcard {
    padding: 12px;
  }
  .qbody {
    font-size: 11px;
  }
  .cast-card {
    padding: 9px;
  }
  .cast-card p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    transition: none !important;
  }
}
