/* 暗室谜踪 —— 移动端微恐解谜 */
:root {
  --orange: #FF8A3D;
  --orange-soft: #FFB15E;
  --orange-deep: #B4541C;
  --cream: #F3E7D3;
  --cream-dim: #C9BDAD;
  --muted: #8D8173;
  --ink: #070B0C;
  --panel: #100D0A;
  --line: rgba(255, 154, 82, .2);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #05090a;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, #132528 0%, #05090a 62%, #030606 100%);
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 3px;
}

.mp-icon { pointer-events: none; }

.stage {
  position: relative;
  outline: none;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 34%, #1a2c2f 0%, #0d181a 55%, #060a0b 100%);
  box-shadow: 0 0 90px rgba(0, 0, 0, .85);
  isolation: isolate;
}

/* ---------- 场景 ---------- */
.scene {
  position: absolute;
  inset: 0;
  transition: filter 1s ease;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 138, 61, .07), transparent 54%),
    linear-gradient(180deg, rgba(15, 42, 45, .2) 0%, transparent 38%, rgba(7, 10, 8, .16) 72%, rgba(2, 4, 5, .3) 100%);
  mix-blend-mode: soft-light;
}

.stage:not(.started) .scene {
  filter: blur(.7px) brightness(.5) saturate(.78);
}

.room {
  position: absolute;
  left: 50%;
  top: 0;
  display: block;
  width: max(100%, 46.2vh);
  width: max(100%, 46.2dvh);
  height: auto;
  transform: translateX(-50%);
  font-family: var(--sans);
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 43%, transparent 30%, rgba(2, 5, 6, .32) 62%, rgba(1, 3, 4, .92) 100%),
    linear-gradient(180deg, rgba(2, 5, 6, .42) 0%, transparent 17%, transparent 67%, rgba(2, 4, 5, .86) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

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

.mote {
  position: absolute;
  bottom: -8px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffcf9a;
  box-shadow: 0 0 5px rgba(255, 177, 94, .7);
  animation: moteUp linear infinite;
}

@keyframes moteUp {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: var(--o, .35); }
  82% { opacity: var(--o, .35); }
  100% { transform: translate3d(var(--drift, 10px), -92vh, 0); opacity: 0; }
}

/* ---------- 场景动效 ---------- */
.rain line {
  animation: rainFall 2.8s linear infinite;
}

.lightning {
  animation: lightning 19s linear infinite;
  pointer-events: none;
}

@keyframes lightning {
  0%, 90.4%, 93%, 100% { opacity: 0; }
  90.8% { opacity: .34; }
  91.2% { opacity: .04; }
  91.9% { opacity: .42; }
  92.3% { opacity: 0; }
}

@keyframes rainFall {
  0% { transform: translateY(-10px); opacity: 0; }
  18% { opacity: .35; }
  82% { opacity: .2; }
  100% { transform: translateY(32px); opacity: 0; }
}

.flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flameDance 1.7s ease-in-out infinite;
}

.flame.f2 { animation-delay: -.45s; animation-duration: 1.45s; }
.flame.f3 { animation-delay: -1.05s; animation-duration: 1.9s; }

@keyframes flameDance {
  0%, 100% { transform: scale(1, 1) rotate(0deg); opacity: 1; }
  22% { transform: scale(.9, 1.1) rotate(-2.5deg); opacity: .92; }
  48% { transform: scale(1.06, .94) rotate(1.8deg); opacity: 1; }
  72% { transform: scale(.95, 1.05) rotate(-1deg); opacity: .94; }
}

.candle-glow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: glowBreathe 3.6s ease-in-out infinite;
}

.smoke {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: smokeRise 8s ease-in-out infinite;
}

@keyframes smokeRise {
  0%, 100% { opacity: .32; transform: translateY(5px) scaleX(1); }
  42% { opacity: .13; transform: translateY(-8px) scaleX(1.07); }
  70% { opacity: .2; transform: translateY(-3px) scaleX(.97); }
}

@keyframes glowBreathe {
  0%, 100% { opacity: .54; transform: scale(1); }
  38% { opacity: .68; transform: scale(1.035); }
  60% { opacity: .58; transform: scale(.99); }
}

.mirror-ghost {
  opacity: 0;
  transition: opacity .38s ease;
}

.stage.ghost .mirror-ghost { opacity: .92; }

.stage.all-clues .lock-plate {
  animation: lockPulse 2.2s ease-in-out infinite;
}

.stage.flicker .scene {
  animation: sceneFlicker .55s steps(2, end);
}

@keyframes sceneFlicker {
  0%, 100% { opacity: 1; }
  18% { opacity: .5; }
  30% { opacity: .95; }
  52% { opacity: .34; }
  68% { opacity: .88; }
}

@keyframes lockPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 138, 61, 0)); }
  50% { filter: drop-shadow(0 0 7px rgba(255, 138, 61, .55)); }
}

/* ---------- 热点 ---------- */
.hotspot {
  cursor: pointer;
  outline: none;
}

.hs-hit { fill: transparent; }

.hs-halo {
  fill: url(#hotHalo);
  animation: haloBreathe 2.9s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hs-ring {
  fill: none;
  stroke: #ff9a52;
  stroke-width: 1.6;
  opacity: .85;
  animation: ringPulse 2.9s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hs-core {
  fill: #ffe0bb;
  filter: drop-shadow(0 0 2px rgba(255, 138, 61, .9));
  animation: corePulse 2.9s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(.86); opacity: .45; }
  50% { transform: scale(1.12); opacity: .95; }
}

@keyframes haloBreathe {
  0%, 100% { opacity: .45; transform: scale(.9); }
  50% { opacity: .9; transform: scale(1.15); }
}

@keyframes corePulse {
  0%, 100% { opacity: .8; }
  50% { opacity: 1; }
}

.hotspot:hover .hs-ring,
.hotspot:focus .hs-ring {
  stroke: #ffe0bb;
  stroke-width: 2.6;
  opacity: 1;
}

.hotspot:active .hs-core { fill: #fff; }

.hotspot.found .hs-halo,
.hotspot.found .hs-ring { animation: none; opacity: .1; }
.hotspot.found .hs-core {
  fill: #8e6241;
  filter: none;
  animation: none;
}

.hs-tag {
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.hs-tag rect {
  fill: #090e0f;
  fill-opacity: .88;
  stroke: rgba(255, 154, 82, .28);
  stroke-width: .8;
}

.hs-tag text {
  fill: #e6cbb1;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-family: var(--sans);
}

.stage.show-tags .hs-tag,
.hotspot:hover .hs-tag,
.hotspot:focus .hs-tag { opacity: 1; pointer-events: auto; }

.stage.show-tags .hotspot.found .hs-tag { opacity: .32; }

/* ---------- 浮层控件 ---------- */
.top-ui {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease, visibility .5s;
  top: calc(12px + env(safe-area-inset-top));
  right: 16px;
  z-index: 24;
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 14, 15, .55);
  border: 1px solid rgba(255, 190, 140, .14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e8d5c1;
  transition: transform .16s ease, background .16s ease, opacity .4s ease;
}

.icon-btn .mp-icon { width: 21px; height: 21px; }
.icon-btn:active { transform: scale(.92); background: rgba(255, 138, 61, .16); }

.sound-btn .icon-off { display: none; }
.sound-btn.off .icon-on { display: none; }
.sound-btn.off .icon-off { display: inline-flex; }
.sound-btn.off { color: #88786a; }

.hint-btn {
  position: absolute;
  left: 16px;
  top: calc(12px + env(safe-area-inset-top));
  z-index: 24;
  width: auto;
  height: 44px;
  padding: 0 14px 0 11px;
  gap: 6px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: #e3cdb7;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease, background .16s ease;
}

.hint-btn .mp-icon { width: 18px; height: 18px; opacity: .82; }

.stage.started .top-ui {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: .35s;
}

.stage.started .hint-btn {
  opacity: .9;
  transform: none;
  pointer-events: auto;
  transition-delay: .55s;
}

.hint-btn:active { transform: scale(.92); }

.toast {
  position: absolute;
  left: 50%;
  top: calc(58px + env(safe-area-inset-top));
  z-index: 30;
  max-width: calc(100% - 130px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(8, 13, 14, .84);
  border: 1px solid rgba(255, 154, 82, .22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ecd8c4;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .08em;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 调查手记 ---------- */
.journal {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 20;
  padding: 11px 12px 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(34, 26, 20, .94) 0%, rgba(13, 11, 9, .97) 100%);
  border: 1px solid rgba(255, 160, 90, .2);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, .72),
    inset 0 1px rgba(255, 224, 190, .08),
    inset 0 -1px rgba(0, 0, 0, .6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}

.stage.started .journal {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: .3s;
}

.journal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at 12% 0%, rgba(255, 154, 82, .1), transparent 55%);
}

.journal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.journal-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .24em;
  color: #d3ae89;
}

.journal-title i {
  width: 5px;
  height: 5px;
  background: var(--orange);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(255, 138, 61, .8);
}

.journal-count {
  font-size: 10px;
  letter-spacing: .14em;
  color: #8e7d6c;
}

.journal-count b {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--orange-soft);
  margin: 0 1px;
}

.journal-bar {
  position: relative;
  z-index: 1;
  height: 2px;
  margin: -3px 0 9px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .055);
}

.journal-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f3f16, var(--orange) 58%, #ffd4a6);
  box-shadow: 0 0 10px rgba(255, 138, 61, .7);
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.journal.complete .journal-bar i {
  animation: barGlow 2.4s ease-in-out infinite;
}

@keyframes barGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 138, 61, .5); }
  50% { box-shadow: 0 0 16px rgba(255, 168, 96, .95); }
}

.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  position: relative;
  z-index: 1;
}

.slot {
  height: 56px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px rgba(255, 255, 255, .03);
  transition: transform .15s ease, background .3s ease, border-color .3s ease;
}

.slot:active { transform: scale(.96); }

.slot-name {
  font-size: 9.5px;
  letter-spacing: .12em;
  color: #8f8172;
  transition: color .3s ease;
}

.slot-val {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  color: #5f5549;
  transition: color .3s ease, text-shadow .3s ease;
}

.slot.found {
  background: linear-gradient(180deg, rgba(255, 138, 61, .17), rgba(255, 138, 61, .035));
  border-color: rgba(255, 138, 61, .32);
  box-shadow: inset 0 0 18px rgba(255, 138, 61, .07), 0 0 14px rgba(255, 138, 61, .05);
}

.slot.found .slot-name { color: #e3c2a2; }
.slot.found .slot-val {
  color: var(--orange-soft);
  text-shadow: 0 0 12px rgba(255, 138, 61, .55);
  animation: digitPop .4s cubic-bezier(.2, 1.5, .4, 1);
}

@keyframes digitPop {
  0% { transform: scale(.55); opacity: .2; }
  70% { transform: scale(1.16); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- 闪屏 ---------- */
.flash {
  position: absolute;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  background: #ff8a3d;
}

.flash.dim { animation: dimFlash .5s ease both; }
.flash.red { background: #7d1a12; animation: redFlash .42s ease both; }
.flash.warm { background: #ffd7a3; animation: warmFlash .9s ease both; }

@keyframes dimFlash {
  0% { opacity: 0; }
  18% { opacity: .2; }
  28% { opacity: .03; }
  40% { opacity: .14; }
  100% { opacity: 0; }
}

@keyframes redFlash {
  0% { opacity: 0; }
  20% { opacity: .28; }
  100% { opacity: 0; }
}

@keyframes warmFlash {
  0% { opacity: 0; }
  14% { opacity: .75; }
  100% { opacity: 0; }
}

/* ---------- 遮罩与抽屉 ---------- */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(2, 5, 6, .64);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.scrim.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px calc(22px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(255, 154, 82, .11), transparent 42%),
    linear-gradient(180deg, #1b1511 0%, #0f0c09 52%, #0a0806 100%);
  border-top: 1px solid rgba(255, 163, 96, .28);
  box-shadow: 0 -32px 90px rgba(0, 0, 0, .82), inset 0 1px rgba(255, 220, 180, .08);
  transform: translateY(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1), visibility .42s;
}

.sheet.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 177, 94, .4), transparent);
  pointer-events: none;
}

.sheet-grip {
  width: 38px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 4px;
  background: rgba(255, 205, 160, .22);
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  color: #c9b8a6;
  transition: transform .15s ease, background .2s ease;
}

.sheet-close .mp-icon { width: 19px; height: 19px; }
.sheet-close:active { transform: scale(.9); background: rgba(255, 138, 61, .16); }

/* ---------- 线索抽屉 ---------- */
.clue-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2px 0 18px;
  padding-right: 34px;
}

.clue-photo {
  position: relative;
  flex: 0 0 108px;
  width: 108px;
  height: 136px;
  border-radius: 10px;
  overflow: hidden;
  background: #05090a;
  border: 1px solid rgba(255, 177, 94, .4);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .55),
    0 0 0 3px rgba(10, 8, 6, .55),
    inset 0 0 24px rgba(0, 0, 0, .6);
  transform: rotate(-1.4deg);
}

.clue-photo svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(.9) brightness(.94) contrast(1.07);
}

.clue-photo-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(2, 5, 6, .55) 100%),
    linear-gradient(180deg, rgba(2, 5, 6, .15), transparent 34%, rgba(2, 5, 6, .55));
  box-shadow: inset 0 0 28px rgba(0, 0, 0, .7);
}

.clue-photo-mark {
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 177, 94, .34);
  border-radius: 4px;
  pointer-events: none;
}

.clue-photo-mark::before,
.clue-photo-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 200, 150, .55);
}

.clue-photo-mark::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.clue-photo-mark::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.clue-headtext {
  min-width: 0;
  flex: 1;
}

.clue-photo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 10px;
  letter-spacing: .1em;
  color: #9c8167;
  white-space: nowrap;
}

.clue-photo-tag::before {
  content: "";
  width: 12px;
  height: 1px;
  background: rgba(255, 154, 82, .55);
}

.clue-medallion {
  width: 70px;
  height: 70px;
  margin: 2px 0 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-soft);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 177, 94, .2), rgba(255, 138, 61, .04) 62%, transparent 70%),
    rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 163, 96, .28);
  box-shadow: inset 0 0 22px rgba(255, 138, 61, .12), 0 10px 24px rgba(0, 0, 0, .3);
}

.clue-medallion .mp-icon { width: 31px; height: 31px; }

.clue-kicker {
  margin: 0 0 7px;
  font-size: 10px;
  letter-spacing: .26em;
  color: #b38763;
}

.clue-title {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #f5e9d8;
}

.clue-copy {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #c7bbad;
  letter-spacing: .02em;
}

.clue-copy em {
  color: var(--orange-soft);
  font-style: normal;
}

.clue-digit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 138, 61, .09), rgba(255, 138, 61, .02));
  border: 1px solid rgba(255, 163, 96, .22);
}

.clue-digit-label {
  font-size: 11px;
  letter-spacing: .12em;
  color: #cba888;
}

.clue-digit {
  font-family: var(--serif);
  font-size: 46px;
  line-height: .9;
  color: var(--orange-soft);
  text-shadow: 0 0 24px rgba(255, 138, 61, .55);
}

.clue-foot {
  margin: 15px 0 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: .2em;
  color: #75695d;
}

/* ---------- 门锁抽屉 ---------- */
.door-sheet {
  padding-top: 18px;
}

.door-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
  padding-right: 44px;
}

.door-medallion {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-soft);
  background: rgba(255, 138, 61, .09);
  border: 1px solid rgba(255, 163, 96, .27);
  box-shadow: inset 0 0 14px rgba(255, 138, 61, .1);
}

.door-medallion .mp-icon { width: 23px; height: 23px; }

.door-head .clue-kicker { margin-bottom: 3px; }

.door-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #f4e7d5;
}

.riddle {
  padding: 13px 15px 12px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(255, 244, 224, .035);
  border-left: 2px solid rgba(255, 154, 82, .55);
  border-top: 1px solid rgba(255, 255, 255, .045);
  border-right: 1px solid rgba(255, 255, 255, .035);
  border-bottom: 1px solid rgba(255, 255, 255, .035);
}

.riddle-title {
  margin: 0 0 7px;
  font-size: 10px;
  letter-spacing: .16em;
  color: #a8886d;
}

.riddle-lines {
  margin: 0;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.75;
  letter-spacing: .1em;
  color: #e4d2bb;
}

.riddle-sub {
  margin: 7px 0 0;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: #8d7b69;
}

.door-clues {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 13px;
}

.mini-clue {
  min-width: 0;
  padding: 7px 4px 6px;
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, .028);
  border: 1px solid rgba(255, 255, 255, .06);
}

.mini-clue .mc-name {
  display: block;
  font-size: 9px;
  letter-spacing: .08em;
  color: #817465;
  white-space: nowrap;
}

.mini-clue .mc-digit {
  display: block;
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
  color: #5c5145;
}

.mini-clue.has {
  background: rgba(255, 138, 61, .07);
  border-color: rgba(255, 138, 61, .24);
}

.mini-clue.has .mc-name { color: #c9a584; }
.mini-clue.has .mc-digit { color: var(--orange-soft); text-shadow: 0 0 10px rgba(255, 138, 61, .4); }

.code-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 8px;
}

.code-box {
  width: 48px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 178, 120, .18);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5);
  font-family: var(--serif);
  font-size: 27px;
  color: var(--orange-soft);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.code-box.filled {
  background: rgba(255, 138, 61, .07);
  border-color: rgba(255, 163, 96, .42);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45), 0 0 14px rgba(255, 138, 61, .1);
}

.code-box.active {
  border-color: rgba(255, 177, 94, .72);
  box-shadow: 0 0 0 1px rgba(255, 177, 94, .18), 0 0 18px rgba(255, 138, 61, .16);
}

.code-box.correct {
  color: #ffd9a4;
  border-color: rgba(255, 190, 130, .85);
  box-shadow: 0 0 20px rgba(255, 138, 61, .3);
}

.code-display.wrong { animation: codeShake .42s ease; }

@keyframes codeShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  32% { transform: translateX(7px); }
  50% { transform: translateX(-5px); }
  68% { transform: translateX(4px); }
  84% { transform: translateX(-2px); }
}

.code-hint {
  min-height: 18px;
  margin: 0 0 11px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: .08em;
  color: #8d7d6d;
  transition: color .2s ease;
}

.code-hint.error { color: #df8a6c; }
.code-hint.ok { color: var(--orange-soft); }

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

.keypad button {
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .018));
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 3px 8px rgba(0, 0, 0, .18);
  font-family: var(--serif);
  font-size: 21px;
  color: #e8d8c5;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.keypad button:active {
  transform: scale(.95);
  background: rgba(255, 138, 61, .16);
  border-color: rgba(255, 163, 96, .35);
}

.keypad .key-clear {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .1em;
  color: #b39b85;
}

.keypad .key-back { color: #b39b85; }
.keypad .key-back .mp-icon { width: 20px; height: 20px; }

.unlock-btn {
  width: 100%;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffa45c 0%, #ff8a3d 48%, #d96a26 100%);
  box-shadow: 0 12px 26px rgba(255, 112, 36, .22), inset 0 1px rgba(255, 244, 226, .5);
  color: #2a1407;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .32em;
  text-indent: .32em;
  transition: transform .14s ease, opacity .2s ease, filter .2s ease;
}

.unlock-btn:active:not(:disabled) { transform: scale(.975); filter: brightness(.95); }
.unlock-btn:disabled { opacity: .32; box-shadow: none; }

/* ---------- 开场 ---------- */
.intro {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(38px + env(safe-area-inset-top)) 24px calc(16px + env(safe-area-inset-bottom));
  text-align: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity .9s ease, visibility .9s;
}

.intro.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* 背景：成品场景图 */
.intro-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 68% 42%, #162b2e 0%, #091314 52%, #040808 100%);
}

.intro-art-img {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  object-position: 66% 48%;
  filter: brightness(.8) saturate(1.04) contrast(1.02);
  transform: scale(1.02);
  animation: introDrift 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes introDrift {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.4%, -1%, 0); }
}

.intro-art-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 74% 41%, rgba(255, 138, 61, .14) 0%, rgba(255, 138, 61, .03) 28%, transparent 46%),
    radial-gradient(ellipse at 50% 48%, transparent 24%, rgba(2, 5, 6, .34) 62%, rgba(1, 3, 4, .88) 100%),
    linear-gradient(180deg,
      rgba(2, 5, 6, .9) 0%,
      rgba(2, 5, 6, .42) 17%,
      rgba(2, 5, 6, .08) 38%,
      rgba(2, 5, 6, .2) 56%,
      rgba(2, 5, 6, .78) 78%,
      rgba(2, 4, 5, .96) 100%);
}

.intro-art-ember {
  position: absolute;
  right: 13%;
  top: 46%;
  width: 190px;
  height: 190px;
  margin: -95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 74, .26) 0%, rgba(255, 120, 40, .08) 42%, transparent 68%);
  filter: blur(10px);
  animation: emberBreathe 5.2s ease-in-out infinite;
}

@keyframes emberBreathe {
  0%, 100% { opacity: .58; transform: scale(.94); }
  38% { opacity: .95; transform: scale(1.06); }
  62% { opacity: .7; transform: scale(1); }
  76% { opacity: .88; transform: scale(1.03); }
}

.intro-embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: #ffc27d;
  box-shadow: 0 0 7px rgba(255, 138, 61, .9), 0 0 14px rgba(255, 110, 30, .35);
  opacity: 0;
  animation: emberRise linear infinite;
}

@keyframes emberRise {
  0% { transform: translate3d(0, 0, 0) scale(.5); opacity: 0; }
  12% { opacity: var(--eo, .55); }
  68% { opacity: calc(var(--eo, .55) * .62); }
  100% { transform: translate3d(var(--ex, 14px), -74vh, 0) scale(1.15); opacity: 0; }
}

/* 取景框 */
.intro-frame {
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 1px solid rgba(255, 186, 132, .15);
  border-radius: 22px;
  pointer-events: none;
}

.intro-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 186, 132, .06);
  border-radius: 18px;
}

.frame-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid rgba(255, 198, 152, .55);
}

.frame-corner.tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; border-top-left-radius: 22px; }
.frame-corner.tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; border-top-right-radius: 22px; }
.frame-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; border-bottom-left-radius: 22px; }
.frame-corner.br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 22px; }

/* 上半部标题 */
.intro-top {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: introDown 1.2s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes introDown {
  0% { opacity: 0; transform: translateY(-12px); }
  100% { opacity: 1; transform: none; }
}

.intro-overline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  font-size: 10px;
  letter-spacing: .3em;
  color: #c79a74;
  text-indent: .3em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}

.intro-overline span {
  display: block;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 154, 82, .58));
}

.intro-overline span:last-child {
  background: linear-gradient(90deg, rgba(255, 154, 82, .58), transparent);
}

.sigil {
  width: 48px;
  height: 52px;
  margin-bottom: 6px;
  color: var(--orange);
  filter: drop-shadow(0 0 18px rgba(255, 138, 61, .34));
  animation: sigilGlow 4s ease-in-out infinite;
}

.sigil svg { width: 100%; height: 100%; display: block; }

@keyframes sigilGlow {
  0%, 100% { opacity: .78; filter: drop-shadow(0 0 10px rgba(255, 138, 61, .2)); }
  50% { opacity: 1; filter: drop-shadow(0 0 22px rgba(255, 138, 61, .46)); }
}

.intro-en {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: .52em;
  text-indent: .52em;
  color: rgba(212, 166, 127, .64);
  text-transform: uppercase;
}

.intro-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 13.4vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .12em;
  text-indent: .12em;
  color: #f4e7d3;
  background: linear-gradient(180deg, #fff8ec 2%, #f5e1c6 44%, #d6a171 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 2px 5px rgba(0, 0, 0, .55))
    drop-shadow(0 0 28px rgba(255, 138, 61, .24));
  animation: titleBreathe 7s linear infinite;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .intro-title {
    color: #f4e7d3;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

@keyframes titleBreathe {
  0%, 91%, 94%, 100% { opacity: 1; }
  92% { opacity: .86; }
  96% { opacity: .93; }
}

.intro-rule {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 11px 0 0;
  width: 184px;
}

.intro-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 154, 82, .42));
}

.intro-rule span:last-child {
  background: linear-gradient(90deg, rgba(255, 154, 82, .42), transparent);
}

.intro-rule i {
  width: 5px;
  height: 5px;
  background: rgba(255, 172, 104, .9);
  transform: rotate(45deg);
  box-shadow: 0 0 9px rgba(255, 138, 61, .8);
}

/* 下半部行动区 */
.intro-bottom {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: introUp 1.2s cubic-bezier(.2, .8, .2, 1) .12s both;
}

@keyframes introUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: none; }
}

.intro-sub {
  max-width: 310px;
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: .05em;
  color: #c9bbaa;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
}

.start-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 288px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffb56c 0%, #ff8a3d 50%, #df6b24 100%);
  box-shadow:
    0 18px 38px rgba(255, 98, 24, .3),
    0 0 34px rgba(255, 138, 61, .12),
    inset 0 1px 0 rgba(255, 252, 244, .48),
    inset 0 0 0 1px rgba(255, 214, 172, .24);
  color: #2a1407;
  transition: transform .16s ease, filter .2s ease, box-shadow .2s ease;
}

.start-btn:active {
  transform: scale(.972);
  filter: brightness(.96);
  box-shadow:
    0 10px 22px rgba(255, 98, 24, .24),
    inset 0 1px 0 rgba(255, 252, 244, .36);
}

.start-btn-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: btnSheen 6.5s ease-in-out 1.6s infinite;
}

@keyframes btnSheen {
  0%, 52% { transform: translateX(-130%); }
  74%, 100% { transform: translateX(130%); }
}

.start-btn-icon,
.start-btn-text,
.start-btn-arrow { position: relative; z-index: 1; }

.start-btn-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(58, 24, 4, .15);
  border: 1px solid rgba(66, 27, 4, .2);
  box-shadow: inset 0 1px rgba(255, 255, 255, .16);
}

.start-btn-icon .mp-icon { width: 15px; height: 15px; }

.start-btn-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .26em;
  text-indent: .26em;
}

.start-btn-arrow {
  width: 17px !important;
  height: 17px !important;
  margin-left: 1px;
  opacity: .62;
}

.intro-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: .13em;
  color: #8d7d6d;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

.intro-tip .mp-icon { width: 13px; height: 13px; opacity: .72; }

.intro-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 13px;
  font-size: 9.5px;
  letter-spacing: .18em;
  color: #93806d;
}

.intro-meta span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.intro-meta b {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: #d8a678;
}

.intro-meta i {
  width: 3px;
  height: 3px;
  background: rgba(255, 177, 120, .42);
  transform: rotate(45deg);
}

.intro-foot {
  margin: 11px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: .28em;
  text-indent: .28em;
  color: rgba(214, 180, 147, .38);
}

/* ---------- 结局 ---------- */
.ending {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 26px calc(30px + env(safe-area-inset-bottom));
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(255, 138, 61, .16) 0%, transparent 52%),
    linear-gradient(180deg, rgba(5, 9, 10, .968) 0%, rgba(3, 6, 7, .985) 60%, rgba(2, 5, 6, .998) 100%);
  backdrop-filter: blur(3px) brightness(.72);
  -webkit-backdrop-filter: blur(3px) brightness(.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}

.ending.show {
  opacity: 1;
  visibility: visible;
}

.ending-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ending-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 48%;
  filter: blur(8px) brightness(.34) saturate(.72);
  transform: scale(1.12);
  opacity: .62;
}

.ending-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 138, 61, .08), transparent 52%),
    linear-gradient(180deg, rgba(3, 6, 7, .52) 0%, rgba(3, 6, 7, .42) 52%, rgba(2, 5, 6, .94) 100%);
}

.ending-door {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 148px;
  height: 440px;
  transform: translate(-50%, -50%);
  border-radius: 74px 74px 0 0;
  background: linear-gradient(180deg, rgba(255, 207, 150, .55) 0%, rgba(255, 138, 61, .22) 36%, rgba(255, 138, 61, .03) 78%, transparent 100%);
  filter: blur(22px);
  opacity: .65;
  pointer-events: none;
}

.ending-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 318px;
}

.ending-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: .32em;
  text-indent: .32em;
  color: #cf9a6f;
}

.ending-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 48px);
  font-weight: 600;
  letter-spacing: .1em;
  text-indent: .1em;
  color: #f6e9d6;
  text-shadow: 0 0 34px rgba(255, 138, 61, .24);
}

.ending-twist {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 2;
  letter-spacing: .04em;
  color: #b9aa99;
  opacity: 0;
}

.ending.show .ending-twist {
  animation: fadeUp .9s ease 1.2s both;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(9px); }
  100% { opacity: 1; transform: none; }
}

.ending-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 24px;
  border-top: 1px solid rgba(255, 163, 96, .16);
  border-bottom: 1px solid rgba(255, 163, 96, .16);
  width: 220px;
}

.ending-stats div {
  flex: 1;
  padding: 11px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ending-stats div + div { border-left: 1px solid rgba(255, 163, 96, .14); }

.ending-stats span {
  font-size: 9px;
  letter-spacing: .2em;
  color: #867464;
}

.ending-stats b {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: #e9cfb2;
}

.ghost-btn {
  max-width: 220px;
  background: linear-gradient(180deg, rgba(255, 177, 94, .18), rgba(255, 138, 61, .07));
  border: 1px solid rgba(255, 163, 96, .4);
  color: #f0d6bb;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 230, 200, .12);
}

/* ---------- 小屏适配 ---------- */
@media (max-height: 720px) {
  .journal { padding: 9px 10px 8px; }
  .journal-head { margin-bottom: 6px; }
  .slot { height: 50px; }
  .intro { padding-top: calc(26px + env(safe-area-inset-top)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .intro-overline { margin-bottom: 7px; }
  .sigil { width: 40px; height: 44px; margin-bottom: 4px; }
  .intro-en { margin-bottom: 5px; }
  .intro-title { font-size: 42px; }
  .intro-rule { margin-top: 8px; }
  .intro-sub { margin-bottom: 13px; font-size: 12.5px; line-height: 1.85; }
  .start-btn { height: 52px; }
  .intro-tip { margin-top: 9px; }
  .intro-meta { margin-top: 10px; }
  .intro-foot { display: none; }
  .sheet { max-height: 94dvh; }
  .keypad button { height: 44px; }
  .code-box { height: 52px; }
  .code-display { margin-top: 0; }
  .riddle { padding: 10px 13px; margin-bottom: 9px; }
  .riddle-lines { font-size: 14px; line-height: 1.6; }
  .clue-title { font-size: 25px; }
  .clue-medallion { width: 56px; height: 56px; margin-bottom: 10px; }
  .clue-head { gap: 13px; margin-bottom: 13px; }
  .clue-photo { flex-basis: 94px; width: 94px; height: 118px; }
  .clue-photo-tag { font-size: 9px; }
}

@media (max-height: 620px) {
  .sigil { display: none; }
  .intro-title { font-size: 38px; }
  .intro-sub { font-size: 12px; line-height: 1.8; }
  .intro-tip { display: none; }
  .intro-meta { margin-top: 8px; }
}

@media (min-width: 620px) {
  .stage {
    border-left: 1px solid rgba(255, 170, 110, .06);
    border-right: 1px solid rgba(255, 170, 110, .06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .mote { display: none; }
}
