.scene-page {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: var(--dark);
  color: #f6f2e9;
  font-size: 13px;
  letter-spacing: 0;
}

.scene-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,7,5,.72), rgba(4,7,5,.14) 58%, rgba(0,0,0,.22));
  pointer-events: none;
}

.film-grain {
  position: absolute;
  inset: 0;
  opacity: .03;
  background: repeating-linear-gradient(112deg, transparent 0, transparent 4px, #fff 5px);
  pointer-events: none;
}

.hud {
  position: absolute;
  z-index: 20;
  top: max(8px, env(safe-area-inset-top));
  right: max(100px, env(safe-area-inset-right));
  left: max(14px, env(safe-area-inset-left));
  display: grid;
  min-width: 0;
  height: 44px;
  grid-template-columns: minmax(180px,1fr) auto minmax(140px,1fr);
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.17);
}

.hud-left {
  display: flex;
  min-width: 0;
  align-items: center;
}

.hud-back {
  display: flex;
  width: 34px;
  height: 34px;
  min-width: 34px;
  max-width: 34px;
  flex: 0 0 34px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(0,0,0,.3);
  font-size: 22px;
  line-height: 30px;
  margin: 0;
}

.hud-chapter {
  display: flex;
  min-width: 0;
  margin-left: 10px;
  flex-direction: column;
}

.hud-chapter-code {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
}

.hud-chapter-title {
  overflow: hidden;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 800;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-center {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 18px;
}

.objective-dots {
  display: flex;
  gap: 5px;
}

.objective-dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
}

.objective-dot.done {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 7px var(--accent);
}

.hud-right {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  gap: 24px;
}

.hud-stat {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.hud-stat-label {
  color: rgba(255,255,255,.5);
  font-size: 10px;
  line-height: 13px;
}

.hud-stat-value {
  margin-top: 1px;
  font-size: 14px;
  font-weight: 900;
  line-height: 18px;
}

.hud-right .danger {
  color: #ff786d;
}

.layer {
  position: absolute;
  z-index: 4;
  top: 60px;
  right: 20px;
  bottom: 12px;
  left: 20px;
  overflow: hidden;
}

.briefing-layer {
  display: flex;
  width: min(520px, 58%);
  max-height: 100%;
  justify-content: center;
  margin-left: 24px;
  flex-direction: column;
}

.kicker {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
}

.brief-title {
  display: block;
  margin-top: 6px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.brief-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--glow);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.brief-rule {
  width: 48px;
  height: 3px;
  margin: 10px 0;
  background: var(--accent);
}

.brief-body {
  display: block;
  max-width: 560px;
  color: rgba(255,255,255,.74);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  line-height: 15px;
}

.metal-button {
  display: flex;
  width: 220px;
  min-height: 40px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 6px 14px;
  border-left: 4px solid var(--glow);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  flex-shrink: 0;
}

.metal-label,
.metal-tail {
  min-width: 0;
  white-space: nowrap;
}

.metal-tail {
  flex-shrink: 0;
  margin-left: 10px;
  font-weight: 600;
}

.intro-layer {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  padding-bottom: 18px;
}

.intro-index {
  position: absolute;
  top: 4px;
  right: 0;
  display: flex;
  gap: 14px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  line-height: 18px;
}

.transcript {
  width: min(720px,70%);
  padding: 14px 0 14px 18px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, rgba(0,0,0,.5), transparent);
}

.history-line {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.47);
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: break-word;
}

.active-line {
  min-height: 34px;
  font-size: 20px;
  font-weight: 800;
  line-height: 30px;
  overflow-wrap: break-word;
}

.caret {
  color: var(--accent);
  animation: blink .8s steps(1) infinite;
}

.skip-button {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 106px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.28);
  font-size: 13px;
  line-height: 38px;
}

.operation-layer {
  position: absolute;
  z-index: 4;
  top: 56px;
  right: 14px;
  bottom: 10px;
  left: 14px;
  overflow: hidden;
}

.operation-head {
  position: absolute;
  z-index: 9;
  top: 8px;
  left: 8px;
  display: flex;
  width: min(320px,40%);
  min-width: 0;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: rgba(7,11,9,.78);
  flex-direction: column;
  pointer-events: none;
}

.operation-title {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
  overflow-wrap: break-word;
}

.operation-instruction {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.66);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.operation-board {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(7,11,9,.66);
  box-shadow: inset 0 0 70px rgba(0,0,0,.52), 0 12px 40px rgba(0,0,0,.22);
}

.signal-game,
.patrol-game {
  position: absolute;
  inset: 0;
}

.signal-grid {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 36px 36px;
}

.signal-source,
.signal-target {
  position: absolute;
  z-index: 4;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 50%;
  background: #111a16;
  transform: translate(-50%,-50%);
}

.signal-source {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(208,68,62,.24);
}

.node-code {
  font-size: 18px;
  font-weight: 900;
}

.node-label {
  position: absolute;
  top: 54px;
  width: 112px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  white-space: normal;
}

.signal-target .node-label {
  top: auto;
  right: 56px;
  width: 116px;
  text-align: right;
}

.signal-target.completed,
.signal-source.completed {
  border-color: #59c9a0;
  background: #16382d;
  color: #a9e7cf;
}

.node-pulse {
  position: absolute;
  inset: -10px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .25;
  animation: pulse 1.7s ease-out infinite;
}

.completed .node-pulse {
  display: none;
}

.interference {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(231,84,74,.58);
  border-radius: 50%;
  background: rgba(139,38,31,.27);
  transform: translate(-50%,-50%);
}

.interference-label {
  color: #f28b82;
  font-size: 11px;
}

.interference-ring {
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(231,84,74,.4);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.cable {
  position: absolute;
  z-index: 2;
  height: 3px;
  background: #f1cc76;
  box-shadow: 0 0 9px rgba(241,204,118,.45);
  transform-origin: left center;
}

.cable.draft {
  background: #fff;
}

.cable.blocked {
  background: #ff6f64;
  box-shadow: 0 0 10px #ff6f64;
}

.cable-1 {
  background: #67c8ac;
}

.cable-2 {
  background: #e1a45a;
}

.signal-core {
  position: absolute;
  top: 50%;
  left: 51%;
  z-index: 5;
  display: flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(4,7,5,.92);
  color: #ed746b;
  font-size: 11px;
  transform: translate(-50%,-50%);
}

.signal-bars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.signal-bar {
  width: 7px;
  height: 18px;
  background: #3f4542;
}

.signal-bar.on {
  background: #58c29c;
  box-shadow: 0 0 7px #58c29c;
}

.signal-core.online {
  border-color: #58c29c;
  color: #83ddb9;
  box-shadow: 0 0 30px rgba(88,194,156,.2);
}

.patrol-game {
  background: linear-gradient(#302f27 0 69%, #171713 69%);
}

.room-wall {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 20%;
}

.room-window {
  position: absolute;
  top: 13%;
  left: 7%;
  width: 21%;
  height: 26%;
  border: 9px solid #11120f;
  background: rgba(242,213,150,.18);
}

.room-window-bars::before,
.room-window-bars::after {
  position: absolute;
  background: #11120f;
  content: '';
}

.room-window-bars::before { top: 48%; width: 100%; height: 6px; }
.room-window-bars::after { left: 48%; width: 6px; height: 100%; }

.room-light {
  position: absolute;
  top: 7%;
  left: 44%;
  width: 18%;
  height: 10px;
  background: var(--glow);
  box-shadow: 0 0 50px 15px rgba(242,213,150,.25);
}

.bed-one,
.bed-two {
  position: absolute;
  bottom: 9%;
  width: 31%;
  height: 14%;
  border: 8px solid #11120f;
  background: #4a493d;
  transform: skewX(-8deg);
}

.bed-one { left: 7%; }
.bed-two { left: 42%; }

.pillow {
  position: absolute;
  top: 9%;
  left: 6%;
  width: 22%;
  height: 43%;
  border-radius: 3px;
  background: #b4ad90;
}

.mess {
  position: absolute;
  top: -12%;
  right: 9%;
  width: 48%;
  height: 84%;
  background: #6c6651;
  clip-path: polygon(0 13%,23% 0,42% 24%,65% 7%,100% 32%,88% 100%,13% 81%);
}

.neat {
  position: absolute;
  right: 4%;
  width: 62%;
  height: 70%;
  border: 2px solid #85806c;
  background: repeating-linear-gradient(90deg,#68634f 0,#68634f 12%,#77715a 13%,#77715a 25%);
}

.locker {
  position: absolute;
  right: 21%;
  bottom: 9%;
  width: 17%;
  height: 58%;
  border: 1px solid #555345;
  background: #1b1b17;
}

.locker-door {
  position: absolute;
  inset: 3%;
  border: 1px solid #444339;
}

.file-stack {
  position: absolute;
  top: 32%;
  left: -13%;
  width: 48%;
  height: 7%;
  background: #d1b76f;
  box-shadow: 0 4px 0 #837348, 0 8px 0 #b9a361;
  transform: rotate(8deg);
}

.desk {
  position: absolute;
  right: 3%;
  bottom: 21%;
  width: 16%;
  height: 4%;
  background: #171814;
  box-shadow: 0 106px 0 -50px #141511;
}

.cup {
  position: absolute;
  bottom: 100%;
  left: 15%;
  width: 20px;
  height: 34px;
  border: 1px solid #aaa38a;
  background: #3d4037;
}

.power {
  position: absolute;
  right: 5%;
  bottom: 100%;
  width: 42px;
  height: 16px;
  background: #ddd7bf;
  box-shadow: 0 0 16px rgba(229,91,67,.7);
}

.cap-object {
  position: absolute;
  top: 26%;
  left: 54%;
  display: flex;
  width: 54px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 15% 15%;
  background: #27332c;
  color: rgba(255,255,255,.5);
  font-size: 11px;
}

.risk-hotspot,
.decoy-zone {
  position: absolute;
  z-index: 6;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(230,162,72,.78);
  border-radius: 50%;
  background: rgba(0,0,0,.48);
  transform: translate(-50%,-50%);
}

.risk-pulse {
  position: absolute;
  inset: -8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s ease-out infinite;
}

.risk-code {
  font-size: 14px;
  font-weight: 900;
}

.risk-label {
  position: absolute;
  top: 54px;
  width: 100px;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  white-space: normal;
}

.risk-hotspot.resolved {
  border-color: #56c49d;
  background: #26624f;
}

.risk-hotspot.resolved .risk-pulse {
  display: none;
}

.decoy-zone {
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
}

.decoy-zone.checked::after {
  color: rgba(255,255,255,.48);
  content: '正常';
  font-size: 10px;
}

.patrol-scanner {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.54);
  font-size: 11px;
}

.scanner-bars {
  display: flex;
  gap: 4px;
}

.scanner-bar {
  width: 7px;
  height: 18px;
  background: #4b4d48;
}

.scanner-bar.on {
  background: #5dc7a1;
  box-shadow: 0 0 7px #5dc7a1;
}

.operation-feedback {
  position: absolute;
  z-index: 12;
  right: 16px;
  bottom: 16px;
  display: flex;
  max-width: min(430px, 48%);
  min-height: 48px;
  align-items: center;
  padding: 9px 14px;
  background: rgba(11,15,13,.95);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.feedback-symbol,
.feedback-message {
  min-width: 0;
  overflow-wrap: break-word;
}

.feedback-symbol {
  display: flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.operation-feedback.success {
  border-left: 4px solid #56c49d;
  color: #b3e8d2;
}

.operation-feedback.warning {
  border-left: 4px solid #dc554c;
  color: #f3aca6;
}

.checkpoint-mask {
  position: absolute;
  z-index: 30;
  inset: 0;
  background: rgba(2,4,3,.82);
  backdrop-filter: blur(4px);
}

.checkpoint-panel {
  position: absolute;
  z-index: 31;
  top: 50%;
  left: 50%;
  display: grid;
  overflow: hidden;
  width: min(820px, calc(100% - 80px));
  max-height: calc(100% - 24px);
  height: auto;
  grid-template-columns: 110px minmax(0,1fr);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 6px;
  background: #111713;
  box-shadow: 0 16px 50px rgba(0,0,0,.72);
  transform: translate(-50%,-50%);
}

.checkpoint-side {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  padding: 14px 10px;
  background: var(--base);
  color: rgba(255,255,255,.62);
}

.checkpoint-brand {
  display: flex;
  width: 100%;
  flex-direction: column;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
}

.checkpoint-number {
  color: var(--accent);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.checkpoint-readiness {
  display: flex;
  width: 100%;
  flex-direction: column;
  font-size: 10px;
  line-height: 14px;
}

.checkpoint-readiness-value {
  margin-top: 2px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
}

.checkpoint-main {
  position: relative;
  display: flex;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: calc(100% - 24px);
  padding: 12px 16px;
  flex-direction: column;
}

.checkpoint-tag {
  display: block;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
}

.checkpoint-question {
  display: block;
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.checkpoint-options {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  flex: 1;
}

.checkpoint-option {
  display: grid;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  flex: 1;
  max-height: 48px;
  grid-template-columns: 26px minmax(0,1fr) 20px;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(255,255,255,.035);
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  align-self: stretch;
  margin: 0;
}

.checkpoint-option-part {
  min-width: 0;
  overflow-wrap: break-word;
}

.checkpoint-option-letter {
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: var(--glow);
  font-size: 10px;
}

.checkpoint-option-status {
  text-align: center;
}

.checkpoint-option.correct {
  border-color: #4eb58f;
  background: rgba(44,128,97,.2);
}

.checkpoint-option.wrong {
  border-color: #d85047;
  background: rgba(158,55,48,.22);
}

.checkpoint-option-hover {
  border-color: var(--accent);
  background: rgba(255,255,255,.08);
}

.checkpoint-feedback {
  display: grid;
  min-width: 0;
  flex-shrink: 0;
  grid-template-columns: 80px minmax(0,1fr);
  gap: 8px;
  margin-top: 6px;
  padding: 6px 8px;
  border-left: 3px solid #4eb58f;
  background: rgba(255,255,255,.045);
  font-size: 11px;
  line-height: 1.35;
}

.checkpoint-feedback-part {
  min-width: 0;
  overflow-wrap: break-word;
}

.checkpoint-feedback-state {
  color: #82d9b9;
  font-weight: 800;
}

.checkpoint-feedback.wrong {
  border-left-color: #d85047;
}

.checkpoint-feedback.wrong .checkpoint-feedback-state {
  color: #f0968f;
}

.checkpoint-continue {
  display: block;
  width: min(260px,100%);
  min-height: 36px;
  flex-shrink: 0;
  margin: 8px 0 0 auto;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

.result-layer {
  display: grid;
  min-width: 0;
  max-height: 100%;
  grid-template-columns: 150px minmax(0,1fr);
  grid-template-rows: minmax(0,1fr) auto;
  gap: 12px 20px;
  align-items: center;
  overflow: hidden;
}

.rating {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
}

.rating-grade {
  display: flex;
  width: 110px;
  height: 110px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: rgba(0,0,0,.38);
  color: var(--accent);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.025), 0 0 30px rgba(0,0,0,.4);
}

.rating-label {
  margin-top: 6px;
  color: rgba(255,255,255,.5);
  font-size: 10px;
  line-height: 14px;
}

.result-copy {
  min-width: 0;
  align-self: end;
  padding-bottom: 4px;
}

.result-title {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.result-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,.07);
  color: var(--glow);
  font-size: 11px;
  line-height: 15px;
}

.result-body {
  display: block;
  max-width: 670px;
  margin-top: 6px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.result-data {
  display: grid;
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(3,minmax(0,1fr));
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.result-stat {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.11);
}

.result-stat:last-child {
  border-right: 0;
}

.result-stat-value {
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
}

.result-stat-label {
  margin-top: 2px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

.result-actions {
  display: flex;
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  flex-direction: column;
  gap: 6px;
}

.result-actions .metal-button {
  width: 150px;
  margin: 0;
  min-height: 36px;
  font-size: 12px;
}

.ghost-button {
  width: 150px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.28);
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
}

@media (max-width: 980px) {
  .hud {
    grid-template-columns: minmax(160px,1fr) auto minmax(120px,1fr);
  }

  .hud-objective-label {
    display: none;
  }

  .operation-head {
    width: 280px;
  }

  .checkpoint-panel {
    width: calc(100% - 60px);
    grid-template-columns: 90px minmax(0,1fr);
  }

  .brief-title {
    font-size: 30px;
  }
}

@media (max-height: 400px) {
  .brief-title {
    font-size: 28px;
  }

  .brief-body {
    font-size: 12px;
    line-height: 1.35;
  }

  .metal-button {
    min-height: 34px;
    margin-top: 8px;
    font-size: 12px;
  }



  .checkpoint-number {
    font-size: 36px;
  }

  .checkpoint-question {
    font-size: 14px;
  }

  .checkpoint-option {
    max-height: 40px;
    font-size: 11px;
  }

  .rating-grade {
    width: 88px;
    height: 88px;
    font-size: 44px;
  }

  .result-title {
    font-size: 20px;
  }

  .result-body {
    font-size: 11px;
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  from { opacity: .6; transform: scale(.72); }
  to { opacity: 0; transform: scale(1.35); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.checkpoint-buddy {
  display: block;
  margin-top: calc(16 * var(--rpx));
}
.result-buddy {
  display: block;
  margin: calc(8 * var(--rpx)) 0 calc(18 * var(--rpx));
}

/* level-buddy layout */

.inline-buddy,
.checkpoint-buddy,
.result-buddy,
.quiz-buddy,
.scenario-buddy,
.daily-buddy,
.game-buddy,
.ship-buddy,
.failure-buddy,
.campaign-buddy {
  display: block;
  margin-top: calc(8 * var(--rpx));
  margin-bottom: calc(4 * var(--rpx));
  max-width: 100%;
}

