:root {
  color-scheme: light;
  --ink: #1b1b1a;
  --muted-ink: #67655f;
  --paper: #f4f1e9;
  --paper-deep: #e5e1d8;
  --stage: #d9d7d0;
  --line: rgba(27, 27, 26, 0.2);
  --line-strong: rgba(27, 27, 26, 0.58);
  --red: #a32924;
  --red-soft: #f2dfda;
  --yellow: #e3d16a;
  --yellow-soft: #f4edbd;
  --yellow-ink: #6e6118;
  --white: #fffdfa;
  --shadow: 0 18px 42px rgba(27, 27, 26, 0.14);
  --serif: Georgia, "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #bebcb6;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #bebcb6;
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
.phone-scroll:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--red);
}

.game-root {
  min-height: 100vh;
  padding: 26px;
}

.game-shell {
  display: flex;
  flex-direction: column;
  width: min(1420px, 100%);
  min-height: calc(100vh - 58px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: grid;
  grid-template-columns: 76px minmax(170px, 260px) 1fr auto;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
  font-size: 12px;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.browser-tab {
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-bottom-color: var(--paper);
  background: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address-bar {
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--muted-ink);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-mode {
  white-space: nowrap;
  color: var(--red);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scene-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 30px 16px;
  border-bottom: 1px solid var(--line);
}

.scene-header p,
.scene-header h1 {
  margin: 0;
}

.scene-header p {
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-header h1 {
  max-width: 28ch;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.scene-header .scene-counter {
  align-self: flex-end;
  color: var(--muted-ink);
  white-space: nowrap;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  flex: 1;
  min-height: 560px;
}

.narrative {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(26px, 3vw, 40px) clamp(28px, 7vw, 108px) 20px 30px;
  border-right: 1px solid var(--line);
}

.narrative-main {
  width: 100%;
  min-width: 0;
  max-width: 66ch;
}

.narrative-main h2 {
  max-width: 17ch;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.narrative-main h2 em {
  color: var(--red);
  font-style: normal;
}

.narrative-main h2.handoff-title {
  max-width: 22ch;
}

.narrative-copy {
  min-width: 0;
  max-width: 60ch;
  color: #292826;
  font-family: var(--serif);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.66;
}

.narrative-copy p {
  margin: 0 0 11px;
}

.narrative-copy .quote {
  margin: 18px 0 16px;
  padding: 10px 0 10px 20px;
  border-left: 1px solid var(--red);
  color: var(--ink);
  font-size: clamp(20px, 1.65vw, 25px);
  line-height: 1.35;
}

.narrative-copy .quiet {
  color: var(--muted-ink);
  font-size: 0.88em;
}

.choices {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.choice-button,
.action-button,
.secondary-button {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.choice-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  padding: 8px 18px 8px 10px;
  font-family: var(--serif);
  font-size: 17px;
}

.choice-button .choice-index {
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
}

.choice-button:hover,
.choice-button:focus-visible,
.action-button:hover,
.action-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.choice-button:active,
.action-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.choice-button.is-selected {
  border-color: var(--red);
  background: var(--red-soft);
}

.choice-button.is-selected:hover,
.choice-button.is-selected:focus-visible {
  background: var(--red);
}

.choice-response {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.choice-response .speaker {
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-response p {
  max-width: 48ch;
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.65;
}

.paper-form {
  position: relative;
  max-width: 660px;
  margin-top: 26px;
  padding: 25px 26px 28px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 12px 14px 0 rgba(27, 27, 26, 0.05);
  transform: rotate(-0.4deg);
}

.paper-form::before {
  position: absolute;
  top: 14px;
  right: 22px;
  color: var(--muted-ink);
  content: "就业信息登记表";
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.resume-build-form {
  margin-top: 18px;
  padding-top: 20px;
  padding-bottom: 21px;
}

.resume-build-form h3 {
  margin-bottom: 16px;
}

.resume-build-form .form-row {
  min-height: 48px;
}

.resume-build-form .form-note {
  margin-top: 13px;
}

.resume-build-form .action-button {
  margin-top: 12px;
}

.paper-form h3 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 17px;
}

.form-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.form-row .form-value {
  min-height: 32px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-strong);
}

.form-row .is-empty {
  color: var(--muted-ink);
  letter-spacing: 0.16em;
}

.form-row .is-filled {
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.form-note {
  margin: 18px 0 0;
  color: var(--muted-ink);
  font-size: 12px;
  line-height: 1.7;
}

.action-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 17px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.action-button {
  margin-top: 18px;
  background: var(--ink);
  color: var(--white);
}

.action-button:hover,
.action-button:focus-visible {
  background: var(--red);
  border-color: var(--red);
}

.action-button[disabled],
.secondary-button[disabled] {
  cursor: not-allowed;
  opacity: 0.4;
}

.action-button[disabled]:hover,
.action-button[disabled]:focus-visible,
.secondary-button[disabled]:hover,
.secondary-button[disabled]:focus-visible {
  background: transparent;
  border-color: var(--line-strong);
  color: inherit;
}

.scene-note {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
}

.scene-note strong {
  color: var(--ink);
  font-weight: 400;
}

.world-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px 18px;
  background: #cfcdc6;
}

.world-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.placeholder-room {
  position: relative;
  flex: 1;
  min-height: 370px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #bbb9b3;
}

.placeholder-room .placeholder-label {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.room-window {
  position: absolute;
  top: 72px;
  right: 16%;
  width: 46%;
  height: 45%;
  border: 1px solid var(--line-strong);
  background: var(--stage);
}

.room-window::before,
.room-window::after {
  position: absolute;
  background: var(--line-strong);
  content: "";
}

.room-window::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.room-window::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.room-bed {
  position: absolute;
  right: 12%;
  bottom: 18%;
  left: 9%;
  height: 20%;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.room-bed::after {
  position: absolute;
  top: -18px;
  left: 8%;
  width: 24%;
  height: 18px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  content: "";
}

.room-caption {
  margin-top: 15px;
  color: var(--muted-ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
}

.mini-paper {
  position: relative;
  flex: 1;
  min-height: 390px;
  margin-top: 20px;
  padding: 27px 22px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 9px 12px 0 rgba(27, 27, 26, 0.05);
  transform: rotate(1.2deg);
}

.mini-paper.is-crumpled {
  min-height: 210px;
  align-self: center;
  width: 74%;
  margin: auto;
  padding: 21px 19px;
  transform: rotate(-8deg);
}

.mini-paper h3 {
  margin: 0 0 23px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.mini-paper p,
.mini-paper li {
  color: var(--muted-ink);
  font-family: var(--serif);
  line-height: 1.8;
}

.mini-paper p {
  margin: 0 0 15px;
}

.mini-paper ul {
  margin: 0;
  padding-left: 19px;
}

.mini-paper .paper-stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
}

.phone-frame {
  display: flex;
  flex-direction: column;
  width: min(100%, 306px);
  height: 450px;
  min-height: 450px;
  margin: 22px auto 0;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 10px 14px 0 rgba(27, 27, 26, 0.1);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
}

.phone-brand {
  font-family: var(--serif);
  font-size: 18px;
}

.phone-badge {
  color: var(--red);
}

.phone-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 17px 14px 19px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.phone-scroll::-webkit-scrollbar {
  width: 5px;
}

.phone-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

.phone-kicker {
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.phone-post h3 {
  margin: 15px 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

.phone-post p {
  margin: 0 0 16px;
  color: #393733;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.75;
}

.phone-post .phone-author {
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 10px;
}

.phone-post .phone-rule {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.comment-block {
  padding: 11px 0 5px;
  border-top: 1px solid var(--line);
}

.comment-block p {
  margin-bottom: 7px;
  font-size: 13px;
}

.comment-block .comment-no {
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
}

.phone-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 9px;
}

.handoff {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-strong);
}

.handoff p {
  max-width: 58ch;
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
}

.handoff .handoff-label {
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.handoff-steps {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.handoff-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
}

.handoff-steps li::before {
  color: var(--red);
  content: attr(data-step);
}

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 13px 30px;
  border-top: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.action-hint {
  min-width: 0;
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
}

.action-hint strong {
  color: var(--ink);
  font-weight: 400;
}

.action-bar .secondary-button {
  min-width: 124px;
  text-align: center;
}

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

.status-line {
  min-height: 22px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .game-root {
    padding: 12px;
  }

  .game-shell {
    min-height: calc(100vh - 24px);
  }

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

  .narrative {
    border-right: 0;
  }

  .world-panel {
    min-height: 530px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .browser-bar {
    grid-template-columns: 60px 1fr auto;
    gap: 8px;
    padding: 0 12px;
  }

  .address-bar {
    display: none;
  }

  .browser-mode {
    max-width: 58px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
  }

  .scene-header,
  .action-bar {
    padding-right: 18px;
    padding-left: 18px;
  }

  .scene-header {
    display: block;
  }

  .scene-header .scene-counter {
    display: block;
    margin-top: 10px;
  }

  .narrative {
    padding: 38px 18px 30px;
  }

  .narrative-main h2 {
    margin-bottom: 27px;
  }

  .paper-form {
    padding: 22px 17px 23px;
  }

  .paper-form::before {
    display: none;
  }

  .action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .action-bar .secondary-button,
  .action-bar .action-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.collection-status {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  max-width: 560px;
  margin-top: 22px;
  padding: 13px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
}

.collection-status span {
  color: var(--red);
}

.collection-status strong {
  font-size: 19px;
  font-weight: 400;
}

.collection-status small {
  justify-self: end;
  color: var(--muted-ink);
}

.knowledge-feedback,
.drop-feedback {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
}

.knowledge-phone {
  height: 500px;
  min-height: 500px;
}

.knowledge-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 15px 14px 18px;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.knowledge-scroll::-webkit-scrollbar {
  width: 5px;
}

.knowledge-scroll::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

.knowledge-search {
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
}

.knowledge-instruction {
  margin: 12px 0 15px;
  color: var(--muted-ink);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.65;
}

.knowledge-list {
  display: grid;
  gap: 10px;
}

.knowledge-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px 12px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.knowledge-card:hover,
.knowledge-card:focus-visible {
  border-color: var(--ink);
  background: #faf8f1;
}

.knowledge-card:active {
  transform: translateY(1px);
}

.knowledge-card.is-relevant {
  border-color: var(--yellow-ink);
  background: var(--yellow-soft);
}

.knowledge-card.is-relevant:hover,
.knowledge-card.is-relevant:focus-visible {
  border-color: var(--yellow-ink);
  background: var(--yellow);
}

.knowledge-card.is-learned {
  cursor: default;
  background: #e7e1b7;
  color: #4f481b;
}

.knowledge-card.is-learned:hover {
  transform: none;
}

.knowledge-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.knowledge-card strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.knowledge-card > span:not(.knowledge-card-top) {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.65;
}

.knowledge-card small {
  color: var(--yellow-ink);
  font-family: var(--mono);
  font-size: 9px;
}

.knowledge-card:not(.is-relevant) small {
  color: var(--muted-ink);
}

.document-sheet {
  position: relative;
  flex: 1;
  min-height: 390px;
  margin-top: 20px;
  padding: 25px 23px 29px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 9px 12px 0 rgba(27, 27, 26, 0.05);
  transform: rotate(0.7deg);
}

.document-top,
.screening-panel-top,
.drop-field-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.document-sheet h3 {
  margin: 26px 0 20px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.document-lead {
  margin: 0 0 22px;
  color: var(--muted-ink);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.document-row {
  display: grid;
  gap: 7px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
}

.document-row span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
}

.document-row strong {
  font-weight: 400;
}

.document-row.is-pending strong {
  color: var(--muted-ink);
  letter-spacing: 0.08em;
}

.dossier-document {
  min-height: 390px;
}

.dossier-line {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 14px;
}

.dossier-line span {
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 9px;
}

.dossier-line strong {
  font-weight: 400;
}

.attachment {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  background: var(--paper-deep);
}

.attachment span,
.attachment small {
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 9px;
}

.attachment strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
}

.attachment.is-attached {
  border-color: var(--yellow-ink);
  background: var(--yellow-soft);
}

.attachment.is-attached small {
  color: var(--yellow-ink);
}

.timejump-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.timejump-copy h2 {
  max-width: none;
  margin-top: 14px;
}

.timejump-label,
.reflection-label {
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.timejump-world {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 420px;
  margin-top: 20px;
  padding: 26px;
  border: 1px solid #61615c;
  background: #111;
  color: var(--paper);
}

.timejump-world span {
  color: #a8a69e;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.timejump-world strong {
  max-width: 12ch;
  margin-top: 17px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 400;
  line-height: 1.2;
}

.drop-score {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  max-width: 560px;
  margin-top: 23px;
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
}

.drop-score span {
  color: var(--red);
}

.drop-score strong {
  font-size: 20px;
  font-weight: 400;
}

.drop-score small {
  justify-self: end;
  color: var(--muted-ink);
}

.drop-help {
  max-width: 54ch;
  margin: 17px 0 0;
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
}

.drop-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 490px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  background: #bbb9b2;
}

.drop-zone {
  position: relative;
  flex: 1;
  min-height: 390px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #cfcdc6;
}

.drop-floor {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 1px;
  background: var(--line-strong);
}

.resume-token {
  position: absolute;
  top: -74px;
  left: var(--drop-x);
  z-index: 2;
  display: grid;
  width: 82px;
  min-height: 58px;
  padding: 9px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  transform: translateX(-50%);
  animation: resume-fall 6.2s linear calc(var(--drop-delay) - 1.4s) infinite;
}

.resume-token:hover,
.resume-token:focus-visible {
  z-index: 3;
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.resume-token.is-white {
  background: var(--white);
  color: var(--ink);
}

.resume-token.is-black {
  background: var(--ink);
  color: var(--white);
}

.resume-token span {
  font-family: var(--serif);
  font-size: 17px;
}

.resume-token small {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8px;
}

.resume-token.is-white small {
  color: var(--red);
}

.resume-token.is-black small {
  color: #bbb9b2;
}

.drop-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 12px;
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 9px;
}

.drop-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.drop-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
}

.drop-legend .legend-white {
  background: var(--white);
}

.drop-legend .legend-black {
  background: var(--ink);
}

@keyframes resume-fall {
  0% {
    top: -74px;
    transform: translateX(-50%) rotate(-3deg);
  }

  100% {
    top: calc(100% + 76px);
    transform: translateX(-50%) rotate(3deg);
  }
}

.question-box {
  max-width: 640px;
  margin-top: 26px;
  padding: 17px 18px 20px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.question-box span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.question-box p {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.55;
}

.screening-options {
  display: grid;
  gap: 9px;
  max-width: 640px;
  margin-top: 18px;
}

.screening-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 9px 14px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.screening-option:hover,
.screening-option:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.screening-option:active {
  transform: translateY(1px);
}

.screening-option span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
}

.screening-option strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.screening-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 390px;
  margin-top: 20px;
  padding: 24px 20px;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.screening-signal {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 11px;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 5px rgba(163, 41, 36, 0.28);
}

.screening-lines {
  display: grid;
  gap: 11px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 9px;
}

.screening-small {
  margin: 18px 0 0;
  color: var(--muted-ink);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
}

.reflection-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.reflection-copy h2 {
  max-width: none;
  margin-top: 15px;
}

.ghost-sentence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 17px;
  margin: 14px 0 24px;
  color: #c9c5bb;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-shadow: 2px 0 rgba(163, 41, 36, 0.58), -2px 0 rgba(224, 220, 207, 0.45);
}

.reflection-world {
  position: relative;
  flex: 1;
  min-height: 420px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #585752;
  background: #171717;
}

.ghost-word {
  position: absolute;
  color: #c8c5bc;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 43px);
  text-shadow: 3px 0 rgba(163, 41, 36, 0.72), -3px 0 rgba(235, 230, 216, 0.34);
}

.ghost-word-a {
  top: 14%;
  left: 19%;
}

.ghost-word-b {
  top: 24%;
  left: 46%;
  color: #a9a69d;
}

.ghost-word-c {
  top: 48%;
  left: 13%;
  color: #9d9a91;
}

.ghost-word-d {
  top: 58%;
  left: 52%;
  color: #d7d2c7;
}

.ghost-word-e {
  top: 75%;
  left: 22%;
  color: #a8a59c;
}

.ghost-word-f {
  top: 78%;
  left: 62%;
  color: #c5c1b6;
}

.blackout-world {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 420px;
  margin-top: 20px;
  border: 1px solid #353535;
  background: #050505;
  color: #8e8b84;
  font-family: var(--mono);
  font-size: 22px;
}

.blackout-copy h2 {
  color: var(--paper);
}

.epilogue-room {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 430px;
  margin-top: 20px;
}

.contract-paper {
  position: relative;
  width: min(100%, 310px);
  min-height: 315px;
  margin: 0 auto;
  padding: 24px 20px 27px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 9px 12px 0 rgba(27, 27, 26, 0.05);
  transform: rotate(-1.1deg);
}

.contract-paper h3 {
  margin: 31px 0 28px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.contract-status {
  margin: 10px 0;
  font-family: var(--serif);
  font-size: 20px;
}

.signature-line {
  display: grid;
  gap: 9px;
  margin-top: 30px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.signature-line span {
  color: var(--muted-ink);
  font-family: var(--mono);
  font-size: 9px;
}

.signature-line strong {
  min-height: 22px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}

.contract-paper.is-signed {
  border-color: var(--red);
}

.reward-item {
  display: grid;
  gap: 5px;
  width: min(100%, 310px);
  margin: 23px auto 0;
  padding: 13px 14px;
  border: 1px solid var(--yellow-ink);
  background: var(--yellow-soft);
}

.reward-item span,
.reward-item small {
  color: var(--yellow-ink);
  font-family: var(--mono);
  font-size: 9px;
}

.reward-item strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.game-shell.is-blackout {
  border-color: #4b4a46;
  background: #111;
}

.game-shell.is-blackout .browser-bar,
.game-shell.is-blackout .scene-header,
.game-shell.is-blackout .action-bar {
  border-color: #464540;
  background: #191919;
  color: var(--paper);
}

.game-shell.is-blackout .browser-tab {
  border-color: #464540;
  background: #111;
}

.game-shell.is-blackout .address-bar,
.game-shell.is-blackout .scene-header p,
.game-shell.is-blackout .scene-counter,
.game-shell.is-blackout .action-hint,
.game-shell.is-blackout .action-hint strong {
  color: #a8a59c;
}

.game-shell.is-blackout .narrative {
  border-color: #464540;
  background: #111;
  color: var(--paper);
}

.game-shell.is-blackout .world-panel {
  background: #191919;
}

.game-shell.is-blackout .world-meta {
  border-color: #464540;
  color: #a8a59c;
}

.game-shell.is-blackout .narrative-copy,
.game-shell.is-blackout .scene-note,
.game-shell.is-blackout .scene-note strong {
  color: #c9c5bb;
}

.game-shell.is-blackout .action-button {
  border-color: #c9c5bb;
  background: var(--paper);
  color: var(--ink);
}

.game-shell.is-blackout .action-button:hover,
.game-shell.is-blackout .action-button:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

@media (max-width: 960px) {
  .knowledge-phone {
    height: 490px;
    min-height: 490px;
  }

  .drop-field {
    min-height: 450px;
  }

  .drop-zone {
    min-height: 350px;
  }
}

@media (max-width: 620px) {
  .collection-status,
  .drop-score {
    grid-template-columns: auto auto;
  }

  .collection-status small,
  .drop-score small {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .knowledge-phone {
    height: 520px;
    min-height: 520px;
  }

  .document-sheet {
    min-height: 360px;
  }

  .timejump-world,
  .reflection-world,
  .blackout-world {
    min-height: 360px;
  }

  .drop-field {
    min-height: 430px;
  }

  .drop-zone {
    min-height: 320px;
  }

  .resume-token {
    width: 70px;
  }

  .question-box p {
    font-size: 19px;
  }
}
