:root {
  --green: #76b900;
  --green-soft: rgba(118, 185, 0, 0.18);
  --ink: #05070a;
  --panel: rgba(8, 12, 16, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --text: #e9eef2;
  --muted: #8b97a3;
  --gold: #ffc247;
  --red: #ff4d57;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: "Avenir Next Condensed", "DIN Condensed", "Arial Narrow", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  font: 700 13px/1 var(--sans);
}

#view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.screen,
.modal,
#dialogue,
#hud-buttons,
#skip {
  pointer-events: auto;
}

/* ───── 电影遮幅 / 淡入淡出 ───── */

.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: #000;
  transition: height 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 3;
}

#letterbox-top {
  top: 0;
}

#letterbox-bottom {
  bottom: 0;
}

body.cine .letterbox {
  height: 11vh;
}

#fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 40;
}

#fade.on {
  opacity: 1;
}

#vignette-alert {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px 40px rgba(255, 40, 50, 0.55);
  opacity: 0;
  transition: opacity 0.2s linear;
  z-index: 2;
}

/* ───── 按钮 ───── */

.btn {
  padding: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: all 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--green);
  background: var(--green-soft);
  outline: none;
  transform: translateX(4px);
}

.btn--primary {
  border-color: var(--green);
  background: var(--green);
  color: #0a1200;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #8fdc00;
}

.iconbtn {
  min-width: 44px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 15px;
}

.iconbtn:hover {
  border-color: var(--green);
}

.iconbtn b {
  color: var(--green);
  font-size: 13px;
}

/* ───── 加载 / 标题 ───── */

.screen {
  position: absolute;
  inset: 0;
  z-index: 30;
}

#loading {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--ink);
}

.loading__logo {
  font: 800 44px/1 var(--display);
  letter-spacing: 0.3em;
  color: var(--green);
}

.loading__bar {
  width: 280px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.loading__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 0.3s ease;
}

.loading__text {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2em;
}

#title {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.94) 0%, rgba(5, 7, 10, 0.72) 38%, rgba(5, 7, 10, 0) 72%);
}

.title__body {
  width: min(560px, 92vw);
  margin-left: clamp(24px, 7vw, 110px);
}

.title__kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.32em;
}

.title__name {
  margin: 0;
  font: 800 clamp(58px, 9vw, 118px) / 0.92 var(--display);
  letter-spacing: 0.04em;
  text-shadow: 0 0 60px rgba(118, 185, 0, 0.35);
}

.title__cn {
  margin: 10px 0 4px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.5em;
}

.title__chapter {
  margin: 0 0 34px;
  color: var(--muted);
  letter-spacing: 0.3em;
  font-size: 14px;
}

.title__actions {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.title__actions .btn {
  min-width: 220px;
  text-align: left;
}

.title__disclaimer {
  margin: 34px 0 0;
  max-width: 460px;
  color: #66717c;
  font-size: 12px;
  line-height: 1.8;
}

/* ───── 过场：新闻 / 名牌 / 大标题 / 字幕 ───── */

#news {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.news__live {
  position: absolute;
  top: 13vh;
  left: 4vw;
  padding: 4px 12px;
  background: #d00018;
  font: 800 14px/1.4 var(--display);
  letter-spacing: 0.2em;
  animation: live 1s steps(2) infinite;
}

@keyframes live {
  50% {
    opacity: 0.55;
  }
}

.news__lower {
  position: absolute;
  left: 4vw;
  right: 4vw;
  bottom: 21vh;
  animation: slide-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.news__tag {
  display: inline-block;
  padding: 5px 14px;
  background: #d00018;
  font: 800 15px/1.3 var(--display);
  letter-spacing: 0.16em;
}

.news__headline {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #0b0d10;
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.3;
}

.news__ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14.5vh;
  height: 34px;
  overflow: hidden;
  background: rgba(6, 10, 30, 0.92);
  border-top: 2px solid #d00018;
  font: 600 14px/32px var(--sans);
  white-space: nowrap;
}

.news__ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 22s linear infinite;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
}

#namecard {
  position: absolute;
  left: 6vw;
  bottom: 24vh;
  z-index: 5;
  padding-left: 16px;
  border-left: 4px solid var(--green);
  animation: slide-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#namecard b {
  display: block;
  font: 800 clamp(30px, 4.4vw, 56px) / 1 var(--display);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 20px #000;
}

#namecard span {
  display: block;
  margin-top: 8px;
  color: #cfd8df;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-shadow: 0 1px 8px #000;
}

#bigtitle {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  animation: big-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#bigtitle small {
  color: var(--gold);
  font: 800 clamp(16px, 2vw, 24px) / 1 var(--display);
  letter-spacing: 0.5em;
}

#bigtitle strong {
  font: 800 clamp(48px, 9vw, 120px) / 1 var(--display);
  letter-spacing: 0.1em;
  text-shadow: 0 0 70px rgba(118, 185, 0, 0.6), 0 4px 30px #000;
}

#bigtitle em {
  font-style: normal;
  color: #cfd8df;
  letter-spacing: 0.4em;
  font-size: clamp(14px, 1.6vw, 20px);
  text-shadow: 0 1px 10px #000;
}

@keyframes big-in {
  from {
    opacity: 0;
    transform: scale(1.12);
    letter-spacing: 0.3em;
  }
}

#caption {
  position: absolute;
  top: 14vh;
  left: 6vw;
  z-index: 5;
  color: #cfd8df;
  font: 600 15px/1.6 var(--sans);
  letter-spacing: 0.3em;
  text-shadow: 0 1px 10px #000;
  animation: slide-in 0.6s ease both;
}

#skip {
  position: absolute;
  right: 3vw;
  bottom: 3.2vh;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

#skip i {
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--green) var(--p, 0%), rgba(255, 255, 255, 0.15) var(--p, 0%));
}

#subtitle {
  position: absolute;
  left: 50%;
  bottom: 13.5vh;
  z-index: 7;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  text-align: center;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.6;
  text-shadow: 0 2px 4px #000, 0 0 18px rgba(0, 0, 0, 0.9);
}

#subtitle b {
  margin-right: 10px;
  color: var(--green);
}

/* ───── HUD ───── */

#hud {
  position: absolute;
  inset: 0;
}

#objective {
  position: absolute;
  top: 18px;
  left: 18px;
  width: min(340px, 44vw);
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: linear-gradient(90deg, var(--panel), rgba(8, 12, 16, 0));
  transition: opacity 0.4s ease;
}

body.cine #objective,
body.cine #marker,
body.cine #prompt,
body.cine #hint,
body.cine #hud-buttons {
  opacity: 0;
  pointer-events: none;
}

.objective__chapter {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.objective__title {
  margin: 5px 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#objective.flash .objective__title {
  animation: objective-flash 1.2s ease;
}

@keyframes objective-flash {
  0% {
    color: var(--green);
    transform: translateX(10px);
  }
}

#objective-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
  font-size: 13px;
  color: #b9c3cc;
}

#objective-steps li::before {
  content: "◇ ";
  color: var(--muted);
}

#objective-steps li.done {
  color: #6f7a84;
  text-decoration: line-through;
}

#objective-steps li.done::before {
  content: "◆ ";
  color: var(--green);
}

#objective-steps li.optional::after {
  content: "　可选";
  color: var(--muted);
  font-size: 11px;
}

/* 右侧一列：数值 → 逃脱面板 → 提示条，遮幅出现时整体下移 */
body {
  --right-col: 18px;
  --stats-h: 124px;
  --escape-h: 70px;
}

body.cine {
  --right-col: calc(11vh + 12px);
}

#stats {
  position: absolute;
  top: var(--right-col);
  right: 18px;
  display: grid;
  grid-template-columns: repeat(2, 132px);
  gap: 6px;
  transition: top 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.statcard {
  padding: 7px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.statcard__label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.statcard__value {
  font: 800 22px/1.15 var(--display);
  font-variant-numeric: tabular-nums;
}

.statcard.good .statcard__value {
  color: #8fdc00;
}

.statcard.bad .statcard__value {
  color: var(--red);
}

.statcard.bump {
  animation: bump 0.9s ease;
}

@keyframes bump {
  0% {
    transform: scale(1.14);
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(255, 194, 71, 0.5);
  }
}

#escape {
  position: absolute;
  top: calc(var(--right-col) + var(--stats-h) + 8px);
  right: 18px;
  transition: top 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 270px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 77, 87, 0.5);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  gap: 8px;
  font-size: 12px;
}

.escape__row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.escape__bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.escape__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--red));
}

#lockdown-timer {
  justify-self: end;
  font: 800 20px/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

#lockdown-timer.low {
  color: var(--red);
  animation: live 0.6s steps(2) infinite;
}

#marker {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  transform: translate(-50%, -100%);
  will-change: transform;
}

#marker i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--green);
  background: rgba(118, 185, 0, 0.35);
  transform: rotate(45deg);
  box-shadow: 0 0 14px var(--green);
  animation: marker 1.4s ease-in-out infinite;
}

@keyframes marker {
  50% {
    transform: rotate(45deg) scale(1.3);
  }
}

#marker span {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 11px;
  color: #d5efa0;
  white-space: nowrap;
}

#prompt {
  position: absolute;
  left: 50%;
  bottom: 17vh;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 10px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--panel);
  font-size: 15px;
  font-weight: 600;
  animation: prompt-in 0.2s ease both;
}

#prompt kbd {
  border-color: var(--green);
  background: var(--green);
  color: #0a1200;
}

@keyframes prompt-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

#hint {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: 440px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: #c5ced6;
  font-size: 13px;
  line-height: 1.8;
}

#hint kbd {
  min-width: 22px;
  height: 22px;
  font-size: 11px;
}

#hud-buttons {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

#lock-hint {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #c5ced6;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ───── 对话 ───── */

#dialogue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12.5vh;
  z-index: 9;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 16px;
}

.dialogue__box {
  position: relative;
  width: min(880px, 100%);
  min-height: 108px;
  padding: 14px 22px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--who, var(--green));
  border-radius: 6px;
  background: var(--panel);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.dialogue__speaker {
  min-height: 20px;
  color: var(--who, var(--green));
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.dialogue__text {
  margin: 6px 0 0;
  font-size: 19px;
  line-height: 1.75;
}

.dialogue__more {
  position: absolute;
  right: 14px;
  bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  animation: live 1s steps(2) infinite;
}

.dialogue__choices {
  width: min(880px, 100%);
  display: grid;
  gap: 8px;
}

.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  text-align: left;
  border: 1px solid rgba(118, 185, 0, 0.45);
  border-radius: 6px;
  background: rgba(8, 12, 16, 0.93);
  font-size: 16px;
  line-height: 1.5;
  transition: all 0.12s ease;
}

.choice:hover,
.choice.sel {
  border-color: var(--green);
  background: rgba(30, 46, 6, 0.95);
  transform: translateX(6px);
}

.choice kbd {
  border-color: var(--green);
  color: var(--green);
}

.choice small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

/* ───── 弹窗 ───── */

.modal {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 4, 6, 0.72);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}

.sheet {
  width: min(640px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1014;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: sheet-in 0.25s ease both;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.sheet h2 {
  margin: 0 0 4px;
  font: 800 26px/1.2 var(--display);
  letter-spacing: 0.1em;
}

.sheet h2 small {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.3em;
}

.sheet p {
  line-height: 1.8;
  color: #c5ced6;
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sheet__actions .btn:hover {
  transform: none;
}

/* 文件 */

.paper {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 34px 38px 26px;
  background: #f1ece0;
  color: #1b1b1b;
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  font: 15px/1.9 "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  animation: sheet-in 0.25s ease both;
}

.paper--receipt {
  width: min(340px, 100%);
  font: 14px/1.8 "Menlo", "Courier New", monospace;
  background: #fbfbf6;
}

.paper--screen {
  background: #061006;
  color: #b9f27a;
  font: 14px/1.9 "Menlo", "Courier New", monospace;
  border: 1px solid var(--green);
  border-radius: 8px;
}

.paper h3 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.paper pre {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
}

.paper .stamp {
  position: absolute;
  top: 26px;
  right: 24px;
  padding: 3px 10px;
  border: 3px solid #b3121d;
  color: #b3121d;
  font: 800 17px/1.3 var(--sans);
  letter-spacing: 0.2em;
  transform: rotate(9deg);
  opacity: 0.85;
}

.paper .fiction {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.3);
  color: #7a6f5c;
  font: 12px/1.6 var(--sans);
}

.paper--screen .fiction {
  border-color: rgba(118, 185, 0, 0.4);
  color: #6f9a3a;
}

.paper .doodle {
  font-size: 34px;
  text-align: right;
}

.paper__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--sans);
}

.paper .btn {
  border-color: rgba(0, 0, 0, 0.35);
  color: #1b1b1b;
  background: rgba(0, 0, 0, 0.05);
}

.paper--screen .btn {
  border-color: var(--green);
  color: #b9f27a;
}

.paper .btn:hover {
  transform: none;
  background: var(--green);
  color: #0a1200;
}

/* 密码终端 */

.pad {
  width: 300px;
  padding: 20px;
  border: 1px solid var(--green);
  border-radius: 12px;
  background: #060b06;
  text-align: center;
  animation: sheet-in 0.25s ease both;
}

.pad.shake {
  animation: shake 0.35s linear;
}

@keyframes shake {
  25% {
    transform: translateX(-9px);
  }
  50% {
    transform: translateX(8px);
  }
  75% {
    transform: translateX(-5px);
  }
}

.pad__title {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.pad__hint {
  min-height: 34px;
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pad__display {
  height: 54px;
  margin-bottom: 14px;
  border: 1px solid rgba(118, 185, 0, 0.5);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font: 700 30px/1 "Menlo", monospace;
  letter-spacing: 0.5em;
  color: #b9f27a;
  text-indent: 0.5em;
}

.pad__keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pad__keys button {
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font: 700 20px/1 "Menlo", monospace;
}

.pad__keys button:hover,
.pad__keys button:active {
  border-color: var(--green);
  background: var(--green-soft);
}

/* 线索册 */

.journal__grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.entry {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.entry i {
  font-style: normal;
  font-size: 24px;
}

.entry b {
  display: block;
  font-size: 14px;
}

.entry span {
  font-size: 12.5px;
  color: #aab4bd;
  line-height: 1.6;
}

.entry.locked {
  opacity: 0.4;
}

.sheet h4 {
  margin: 18px 0 0;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.24em;
}

.keys {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 14px 0 0;
  font-size: 14px;
  color: #c5ced6;
}

/* 结算 */

.result__rank {
  float: right;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font: 800 46px/1 var(--display);
  transform: rotate(8deg);
}

.result__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.result__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: #c5ced6;
  line-height: 1.6;
}

.result__list li {
  padding-left: 14px;
  border-left: 2px solid var(--green);
}

.result__list b {
  color: var(--text);
}

.sheet--fail {
  border-color: rgba(255, 77, 87, 0.6);
}

.sheet--fail h2 small {
  color: var(--red);
}

/* 提示条 */

#toasts {
  position: absolute;
  top: calc(var(--right-col) + var(--stats-h) + 8px);
  right: 18px;
  max-width: 340px;
  z-index: 15;
  display: grid;
  gap: 6px;
  justify-items: end;
  transition: top 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.escaping #toasts {
  top: calc(var(--right-col) + var(--stats-h) + var(--escape-h) + 16px);
}

.toast {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  animation: toast-in 0.25s ease both;
  transition: opacity 0.4s ease;
}

.toast b {
  color: var(--green);
}

.toast.bad b {
  color: var(--red);
}

.toast.clue {
  border-color: rgba(255, 194, 71, 0.6);
}

.toast.clue b {
  color: var(--gold);
}

.toast.out {
  opacity: 0;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
}

@media (max-width: 760px) {
  #stats {
    grid-template-columns: repeat(2, 104px);
  }

  .statcard__value {
    font-size: 18px;
  }

  #objective {
    width: 46vw;
  }

  .result__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
  }
}
