:root {
  --amber: #ff8a3d;
  --amber-soft: #ffb46b;
  --amber-pale: #ffe0bd;
  --cream: #f7ecda;
  --muted: #a99b89;
  --ink: #0b111a;
  --panel: rgba(16, 21, 29, .82);
  --panel-line: rgba(255, 178, 116, .2);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #070b12;
  color: var(--cream);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
}

button { font-family: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--amber-soft); outline-offset: 2px; }

.game {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #070b12;
  touch-action: manipulation;
}

.scene-wrap { position: absolute; inset: 0; }
.scene { display: block; width: 100%; height: 100%; }

.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 44%, rgba(3, 6, 10, .5) 100%),
    linear-gradient(180deg, rgba(3, 6, 10, .34) 0%, transparent 16%, transparent 74%, rgba(3, 6, 10, .6) 100%);
}

.dawn-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.4s ease;
  background:
    radial-gradient(ellipse at 38% 58%, rgba(255, 196, 128, .3), transparent 56%),
    linear-gradient(180deg, rgba(255, 179, 110, .18), rgba(255, 196, 128, .04) 55%, transparent);
}

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

/* ---------- 场景动效 ---------- */

.rain-a { animation: rainfall 1.7s linear infinite; }
.rain-b { animation: rainfall 2.35s linear infinite; animation-delay: -.8s; }
.rain-c { animation: rainfall 3.15s linear infinite; animation-delay: -1.5s; }

@keyframes rainfall {
  from { transform: translateY(-72px); }
  to { transform: translateY(74px); }
}

.lightning { animation: lightning 17s linear infinite; }
@keyframes lightning {
  0%, 88%, 90.6%, 93.8%, 100% { opacity: 0; }
  89% { opacity: .13; }
  89.5% { opacity: .02; }
  90% { opacity: .2; }
  91.2% { opacity: .03; }
  93% { opacity: .1; }
}

.steam path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: steamRise 3.6s ease-in-out infinite;
}
.steam .s1 { animation-delay: 0s; }
.steam .s2 { animation-delay: 1.1s; }
.steam .s3 { animation-delay: 2.1s; }

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(6px) scaleX(.78); }
  25% { opacity: .42; }
  65% { opacity: .22; }
  100% { opacity: 0; transform: translateY(-15px) scaleX(1.18); }
}

.motes circle {
  transform-box: fill-box;
  animation: moteFloat 8s ease-in-out infinite;
}
.motes circle:nth-child(2n) { animation-duration: 10s; animation-delay: -3s; }
.motes circle:nth-child(3n) { animation-duration: 6.5s; animation-delay: -1.4s; }

@keyframes moteFloat {
  0%, 100% { opacity: .12; transform: translate(0, 0); }
  50% { opacity: .55; transform: translate(4px, -14px); }
}

.lamp-a > ellipse:last-of-type { animation: lampBreathe 6s ease-in-out infinite; }
@keyframes lampBreathe {
  0%, 100% { opacity: .3; }
  46% { opacity: .44; }
  51% { opacity: .34; }
  62% { opacity: .46; }
}

.sill-cat { transform-box: fill-box; transform-origin: 50% 100%; animation: catBreathe 5.2s ease-in-out infinite; }
@keyframes catBreathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.025); }
}

.neon-main { animation: neonFlicker 9s steps(1, end) infinite; }
.neon-glow { animation: neonBreathe 6s ease-in-out infinite; }
@keyframes neonFlicker {
  0%, 82%, 84.5%, 92%, 100% { opacity: 1; }
  83% { opacity: .42; }
  84% { opacity: .78; }
  91% { opacity: .58; }
  91.5% { opacity: .95; }
}
@keyframes neonBreathe {
  0%, 100% { opacity: .72; }
  50% { opacity: .95; }
}

/* ---------- 顶部信息 ---------- */

.night-tag {
  position: absolute;
  z-index: 12;
  top: calc(9px + var(--safe-t));
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  max-width: calc(100vw - 116px);
  padding: 0 13px 0 5px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(246, 232, 210, .78);
  font-variant-numeric: tabular-nums;
  background: rgba(10, 15, 22, .46);
  border: 1px solid rgba(255, 200, 150, .16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 226, 195, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.night-tag .p-avatar {
  width: 28px; height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #ffd8a8;
  background: radial-gradient(circle at 34% 30%, #6b4326, #2a1a10);
  border: 1px solid rgba(255, 190, 140, .3);
  box-shadow: 0 0 10px rgba(255, 150, 77, .18);
}
.night-tag .p-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.night-tag .p-avatar .mp-icon { width: 15px; height: 15px; }
.night-tag .p-name {
  min-width: 0;
  max-width: 62px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #f7e8d4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
@keyframes dotPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

.hud {
  position: absolute;
  z-index: 12;
  top: calc(9px + var(--safe-t));
  right: 11px;
  display: flex;
  gap: 8px;
}
.hud-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: rgba(247, 236, 218, .88);
  background: rgba(10, 15, 22, .48);
  border: 1px solid rgba(255, 200, 150, .16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .15s ease, background .2s ease;
}
.hud-btn:active { transform: scale(.92); background: rgba(255, 138, 61, .24); }
.hud-btn .mp-icon { width: 19px; height: 19px; }

/* ---------- 提示与吐司 ---------- */

.hint {
  position: absolute;
  z-index: 13;
  left: 50%;
  bottom: calc(157px + var(--safe-b));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 233, 208, .92);
  font-size: 12px;
  letter-spacing: .02em;
  background: rgba(14, 19, 27, .62);
  border: 1px solid rgba(255, 178, 116, .17);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hint .mp-icon { width: 15px; height: 15px; color: var(--amber-soft); }
.hint.hide { opacity: 0; transform: translate(-50%, 8px); }

.toast {
  position: absolute;
  z-index: 21;
  left: 50%;
  bottom: calc(172px + var(--safe-b));
  transform: translate(-50%, 10px);
  max-width: calc(100vw - 44px);
  width: max-content;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: #ffe9d2;
  background: rgba(18, 23, 32, .92);
  border: 1px solid rgba(255, 178, 116, .24);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 底部暗号盘 ---------- */

.tray {
  position: absolute;
  z-index: 15;
  left: 12px;
  right: 12px;
  bottom: calc(10px + var(--safe-b));
  max-width: 430px;
  margin: 0 auto;
  padding: 11px 13px 13px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(28, 34, 45, .9), rgba(13, 18, 26, .94));
  border: 1px solid rgba(255, 184, 124, .2);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 224, 190, .08);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: border-color .4s ease, box-shadow .4s ease;
}
.tray.complete {
  border-color: rgba(255, 168, 94, .55);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 138, 61, .16),
    0 0 32px rgba(255, 138, 61, .17),
    inset 0 1px 0 rgba(255, 224, 190, .12);
}
.tray-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.tray-title { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #ffe4c6;
  white-space: nowrap;
}
.count {
  font-size: 11px;
  color: var(--amber-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}
.lock-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #2a1407;
  background: linear-gradient(180deg, #ffb266, #ff8a3d 55%, #ef7221);
  box-shadow: 0 5px 14px rgba(255, 122, 41, .32), inset 0 1px 0 rgba(255, 240, 220, .55);
  transition: transform .14s ease, filter .2s ease;
  flex: 0 0 auto;
}
.lock-btn .mp-icon { width: 15px; height: 15px; }
.lock-btn:active { transform: scale(.95); filter: brightness(.94); }
.lock-btn.ready { animation: lockReady 2.2s ease-in-out infinite; }
@keyframes lockReady {
  0%, 100% { box-shadow: 0 5px 14px rgba(255, 122, 41, .3), 0 0 0 0 rgba(255, 138, 61, .4); }
  50% { box-shadow: 0 5px 18px rgba(255, 122, 41, .4), 0 0 0 7px rgba(255, 138, 61, 0); }
}

.clue-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.clue {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  color: rgba(247, 236, 218, .62);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 190, 140, .11);
  overflow: hidden;
  transition: background .25s ease, border-color .25s ease, transform .14s ease;
}
.clue:active { transform: scale(.96); }
.clue .mp-icon { width: 15px; height: 15px; opacity: .72; flex: 0 0 auto; }
.clue .c-name { font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.clue .c-digit {
  margin-left: auto;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 217, 184, .3);
  font-variant-numeric: tabular-nums;
}
.clue.found {
  color: #fff1df;
  background: linear-gradient(180deg, rgba(255, 147, 68, .2), rgba(255, 138, 61, .09));
  border-color: rgba(255, 166, 92, .44);
}
.clue.found .mp-icon { color: var(--amber-soft); opacity: 1; }
.clue.found .c-digit { color: #ffcf9b; text-shadow: 0 0 14px rgba(255, 160, 84, .55); }
.clue.flash { animation: clueFlash 1s ease; }
@keyframes clueFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 150, 77, 0); }
  40% { box-shadow: 0 0 0 3px rgba(255, 150, 77, .34); background: rgba(255, 138, 61, .2); }
}

/* ---------- 场景热点 ---------- */

.hotspot { cursor: pointer; outline: none; }
.hs-ring {
  fill: rgba(255, 150, 77, .04);
  stroke: rgba(255, 182, 120, .55);
  stroke-width: 1.1;
  stroke-dasharray: 3 5;
  transform-box: fill-box;
  transform-origin: center;
  animation: hsPulse 3.4s ease-in-out infinite;
}
.hs-dot {
  fill: #ffd9a8;
  filter: drop-shadow(0 0 5px rgba(255, 150, 77, .95));
  animation: hsDot 3.4s ease-in-out infinite;
}
.hs-tag rect {
  fill: rgba(11, 16, 23, .58);
  stroke: rgba(255, 184, 124, .28);
  stroke-width: .8;
}
.hs-tag text {
  fill: #ffddba;
  font-size: 9px;
  font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  letter-spacing: 2px;
  text-anchor: middle;
}
.hotspot:hover .hs-ring, .hotspot:focus-visible .hs-ring { stroke: rgba(255, 204, 154, .9); }
.hotspot:active .hs-ring { stroke: #fff0dc; stroke-width: 1.8; }
.hotspot.found .hs-ring { opacity: .25; animation: none; stroke: rgba(255, 220, 180, .3); }
.hotspot.found .hs-dot { opacity: .35; animation: none; }
.hotspot.found .hs-tag { opacity: .45; }
.hotspot.flash .hs-ring { animation: hotspotFlash 1.1s ease; }
@keyframes hsPulse {
  0%, 100% { opacity: .35; transform: scale(.92); }
  50% { opacity: .9; transform: scale(1.04); }
}
@keyframes hsDot {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes hotspotFlash {
  0%, 100% { opacity: .5; stroke-width: 1.1; }
  40% { opacity: 1; stroke-width: 3; stroke: #ffd8a6; }
}

/* ---------- 弹层 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .28s ease, visibility .28s ease;
}
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 10, .68);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 18px calc(22px + var(--safe-b));
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 150, 77, .12), transparent 46%),
    linear-gradient(180deg, #1b222e, #111721 60%, #0d121a);
  border: 1px solid rgba(255, 184, 124, .2);
  border-bottom: 0;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 228, 198, .1);
  transform: translateY(26px);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.modal.open .sheet { transform: translateY(0); }
.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: rgba(247, 236, 218, .7);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 205, 160, .1);
  transition: transform .14s ease;
}
.sheet-close:active { transform: scale(.9); }
.sheet-close .mp-icon { width: 17px; height: 17px; }

.sheet-head { display: flex; align-items: center; gap: 11px; padding-right: 38px; margin-bottom: 14px; }
.sheet-icon {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--amber-soft);
  background: rgba(255, 138, 61, .11);
  border: 1px solid rgba(255, 178, 116, .22);
}
.sheet-icon .mp-icon { width: 21px; height: 21px; }
.sheet-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  letter-spacing: .2em;
  color: rgba(255, 184, 124, .7);
  text-transform: uppercase;
}
.sheet-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: .03em;
  color: #fff0dd;
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif;
}
.sheet-desc {
  margin: 13px 2px 15px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(224, 210, 191, .78);
}
.sheet-desc em { color: var(--amber-pale); font-style: normal; }

.art {
  position: relative;
  height: 238px;
  border-radius: 19px;
  overflow: hidden;
  border: 1px solid rgba(255, 196, 144, .13);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45);
  isolation: isolate;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(3, 6, 10, .42));
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .08em;
  color: #2a1407;
  background: linear-gradient(180deg, #ffb266, #ff8a3d 55%, #ef7221);
  box-shadow: 0 8px 20px rgba(255, 122, 41, .26), inset 0 1px 0 rgba(255, 242, 224, .55);
  transition: transform .14s ease, filter .2s ease;
}
.btn-primary:active { transform: scale(.985); filter: brightness(.94); }
.btn-primary:disabled { opacity: .42; filter: saturate(.5); box-shadow: none; }
.btn-primary .mp-icon { width: 17px; height: 17px; }
.btn-ghost {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 11px;
  border-radius: 12px;
  font-size: 12px;
  color: rgba(236, 220, 199, .6);
  letter-spacing: .05em;
  transition: background .2s ease;
}
.btn-ghost:active { background: rgba(255, 255, 255, .05); }

/* ---------- 雨窗特写 ---------- */

.art-window {
  background: linear-gradient(180deg, #071527 0%, #102740 55%, #1d3348 100%);
}
.art-window .bokeh {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  opacity: .75;
}
.art-window .b1 { width: 13px; height: 13px; left: 16%; top: 30%; background: #ffb56b; box-shadow: 0 0 22px 6px rgba(255, 170, 95, .35); }
.art-window .b2 { width: 8px; height: 8px; left: 72%; top: 22%; background: #ffd49a; box-shadow: 0 0 18px 5px rgba(255, 205, 145, .3); }
.art-window .b3 { width: 22px; height: 22px; left: 58%; top: 56%; background: rgba(133, 181, 218, .5); filter: blur(6px); }
.art-window .b4 { width: 5px; height: 5px; left: 32%; top: 66%; background: #ffc37e; box-shadow: 0 0 14px 4px rgba(255, 180, 110, .4); }
.art-window .b5 { width: 9px; height: 9px; left: 86%; top: 44%; background: rgba(255, 170, 95, .7); filter: blur(4px); }
.art-window .cityline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background:
    linear-gradient(90deg, transparent 0 3%, #08121f 3% 13%, transparent 13% 15%, #08121f 15% 23%, transparent 23% 25%, #08121f 25% 34%, transparent 34% 37%, #08121f 37% 46%, transparent 46% 49%, #08121f 49% 58%, transparent 58% 61%, #08121f 61% 69%, transparent 69% 72%, #08121f 72% 82%, transparent 82% 84%, #08121f 84% 94%, transparent 94%);
  opacity: .9;
}
.art-window .cityline::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 7% 22%, rgba(255, 190, 120, .9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 18% 40%, rgba(255, 190, 120, .8) 0 1.4px, transparent 2px),
    radial-gradient(circle at 29% 16%, rgba(255, 190, 120, .6) 0 1.2px, transparent 2px),
    radial-gradient(circle at 40% 48%, rgba(255, 190, 120, .8) 0 1.4px, transparent 2px),
    radial-gradient(circle at 52% 26%, rgba(255, 190, 120, .65) 0 1.2px, transparent 2px),
    radial-gradient(circle at 64% 54%, rgba(255, 190, 120, .9) 0 1.4px, transparent 2px),
    radial-gradient(circle at 76% 34%, rgba(255, 190, 120, .7) 0 1.2px, transparent 2px),
    radial-gradient(circle at 88% 18%, rgba(255, 190, 120, .8) 0 1.4px, transparent 2px),
    radial-gradient(circle at 94% 58%, rgba(255, 190, 120, .6) 0 1.2px, transparent 2px);
  opacity: .75;
}
.art-window .rain-sheet {
  position: absolute;
  inset: -20% -10%;
  background: repeating-linear-gradient(104deg, transparent 0 12px, rgba(180, 214, 240, .28) 12px 13px, transparent 13px 25px);
  opacity: .5;
  animation: rainSheet 1.2s linear infinite;
}
@keyframes rainSheet { from { transform: translateY(-18px); } to { transform: translateY(18px); } }
.glass {
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 5px solid #3b2418;
  border-radius: 9px;
  overflow: hidden;
  background: transparent;
  cursor: crosshair;
  touch-action: none;
  box-shadow: inset 0 0 30px rgba(6, 12, 20, .5);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(225, 238, 250, .5), transparent 46%),
    radial-gradient(ellipse at 80% 74%, rgba(215, 233, 248, .4), transparent 50%),
    linear-gradient(180deg, rgba(220, 235, 248, .16), rgba(220, 235, 248, .38));
  transition: opacity .5s ease;
}
.glass.wiped::before { opacity: .3; }
.glass .wipe {
  position: absolute;
  z-index: 2;
  width: 76px; height: 62px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(235, 244, 252, .62), rgba(225, 238, 250, .22) 55%, transparent 72%);
  filter: blur(1.5px);
  mix-blend-mode: screen;
  animation: wipeFade 1.6s ease forwards;
  pointer-events: none;
}
@keyframes wipeFade { 0% { opacity: .95; } 100% { opacity: .38; } }
.glass-digit {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding-bottom: 24px;
  display: grid;
  place-items: center;
  font-family: "Songti SC", "Noto Serif SC", "SimSun", serif;
  font-size: 104px;
  font-weight: 700;
  color: #ffe3b8;
  text-shadow: 0 0 20px rgba(255, 168, 90, .8), 0 0 52px rgba(255, 138, 61, .5);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .2, 1);
  pointer-events: none;
}
.glass-digit.show { opacity: 1; transform: scale(1); }
.wipe-meter {
  position: absolute;
  z-index: 3;
  left: 26px; right: 26px; bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(238, 245, 252, .72);
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.meter { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffd9a8, #ff8a3d); transition: width .35s ease; }

/* ---------- 咖啡杯特写 ---------- */

.art-cup {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 184, 116, .17), transparent 52%),
    radial-gradient(ellipse at 50% 66%, #2a1d13, #0d0907 78%);
  display: grid;
  place-items: center;
}
.cup-scene { position: relative; width: 220px; height: 200px; }
.cup-scene .table-glow {
  position: absolute; left: 8%; right: 8%; bottom: 8px; height: 66px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 164, 92, .24), transparent 68%);
  filter: blur(2px);
}
.saucer {
  position: absolute;
  left: 18px; bottom: 30px;
  width: 184px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f1e6d2, #c8b494 72%, #9c8768);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .4), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.saucer::after {
  content: "";
  position: absolute;
  inset: 7px 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ddcdb0, #efe3cd 70%);
  border: 1px solid rgba(140, 116, 82, .25);
}
.saucer-digit {
  position: absolute;
  z-index: 1;
  left: 50%; bottom: 39px;
  transform: translateX(-50%) scale(.7);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  color: #7b4a26;
  opacity: 0;
  transition: opacity .5s ease .18s, transform .5s cubic-bezier(.2, .9, .2, 1) .18s;
}
.cup-body {
  position: absolute;
  z-index: 2;
  left: 58px; bottom: 52px;
  width: 104px; height: 74px;
  border-radius: 12px 12px 40px 40px;
  background: linear-gradient(115deg, #fff8ea 0%, #f0e2c8 42%, #cfbb98 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28), inset -8px -8px 18px rgba(133, 107, 72, .22), inset 5px 4px 10px rgba(255, 255, 255, .55);
  transform-origin: 50% 82%;
  transition: transform .8s cubic-bezier(.18, .85, .24, 1);
}
.cup-body::before {
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: -2px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #6b4127 0 40%, #8f5b36 70%, #f0e2c8 72%);
  box-shadow: inset 0 2px 6px rgba(60, 34, 18, .55);
}
.cup-body::after {
  content: "";
  position: absolute;
  right: -27px; top: 20px;
  width: 34px; height: 35px;
  border: 8px solid #eadcc1;
  border-left: 0;
  border-radius: 0 20px 20px 0;
  box-shadow: inset -3px 0 5px rgba(130, 105, 70, .25);
}
.cup-scene.turned .cup-body { transform: translate(52px, -34px) rotate(16deg); }
.cup-scene.turned .saucer-digit { opacity: 1; transform: translateX(-50%) scale(1); }
.cup-steam {
  position: absolute;
  z-index: 3;
  left: 92px; bottom: 130px;
  width: 40px; height: 58px;
  pointer-events: none;
}
.cup-steam i {
  position: absolute;
  bottom: 0;
  width: 9px; height: 38px;
  border-left: 2px solid rgba(255, 239, 217, .5);
  border-radius: 50%;
  filter: blur(1.5px);
  animation: cupSteam 3.4s ease-in-out infinite;
}
.cup-steam i:nth-child(1) { left: 4px; animation-delay: 0s; }
.cup-steam i:nth-child(2) { left: 18px; height: 46px; animation-delay: .9s; }
.cup-steam i:nth-child(3) { left: 31px; height: 32px; animation-delay: 1.8s; }
@keyframes cupSteam {
  0% { opacity: 0; transform: translateY(10px) scaleX(.8); }
  30% { opacity: .8; }
  100% { opacity: 0; transform: translateY(-26px) scaleX(1.2); }
}

/* ---------- 挂钟特写 ---------- */

.art-clock {
  background:
    radial-gradient(ellipse at 50% 22%, rgba(255, 191, 126, .16), transparent 50%),
    linear-gradient(180deg, #1a1410, #0b0a09);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
}
.clock-wrap { position: relative; width: 190px; height: 222px; }
.clock-wrap svg { width: 168px; height: 168px; display: block; margin: 0 auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.clock-svg-face { transition: transform 1.4s cubic-bezier(.3, .8, .3, 1); transform-origin: 84px 84px; }
.clock-wrap.wound .clock-svg-face { transform: rotate(360deg); }
.pendulum {
  position: absolute;
  left: 50%; top: 152px;
  width: 2px; height: 56px;
  margin-left: -1px;
  background: linear-gradient(180deg, #c69a58, #7a5127);
  transform-origin: 50% 0;
  transition: transform 1.2s cubic-bezier(.3, .7, .3, 1);
}
.pendulum::after {
  content: "";
  position: absolute;
  left: -18px; top: 42px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffe4ae, #d7a25a 42%, #7a4c1d 88%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .5), inset 0 1px 2px rgba(255, 255, 255, .45);
}
.clock-wrap.wound .pendulum { animation: pendulumSwing 1.5s ease-in-out infinite; }
@keyframes pendulumSwing {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}
.bob-digit {
  position: absolute;
  z-index: 2;
  left: 50%; top: 197px;
  transform: translateX(-50%);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 23px;
  font-weight: 700;
  color: #2a170a;
  opacity: 0;
  transition: opacity .6s ease .5s;
  text-shadow: 0 1px 0 rgba(255, 240, 210, .5);
}
.clock-wrap.wound .bob-digit { opacity: 1; }

/* ---------- 唱片特写 ---------- */

.art-record {
  background:
    radial-gradient(ellipse at 50% 26%, rgba(255, 160, 83, .16), transparent 55%),
    linear-gradient(180deg, #191510, #0b0a09);
  display: grid;
  place-items: center;
}
.turntable {
  position: relative;
  width: 196px; height: 168px;
  border-radius: 14px;
  background: linear-gradient(160deg, #6b4327, #3a2415 60%, #24150c);
  border: 1px solid rgba(255, 204, 154, .2);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 220, 180, .16);
}
.disc {
  position: absolute;
  left: 17px; top: 22px;
  width: 124px; height: 124px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #10141a 0 2px, #171c23 2px 4px);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 8px 16px rgba(0, 0, 0, .4);
  animation: discSpin 5s linear infinite;
  animation-play-state: paused;
}
.disc::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .05);
  background: conic-gradient(from 20deg, transparent 0 18%, rgba(190, 215, 235, .08) 18% 24%, transparent 24% 55%, rgba(190, 215, 235, .06) 55% 61%, transparent 61%);
}
.art-record.playing .disc { animation-play-state: running; }
@keyframes discSpin { to { transform: rotate(360deg); } }
.disc-label {
  position: absolute;
  left: 50%; top: 50%;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffc37e, #c46f2e 58%, #7b3f18);
  border: 1px solid rgba(255, 225, 180, .4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #2a1407;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35);
}
.disc-label small { font-size: 7px; letter-spacing: .2em; opacity: .7; }
.disc-label strong { position: relative; font-size: 0; line-height: 1.05; font-family: "Songti SC", serif; color: #2a1407; }
.disc-label strong::before {
  content: "?";
  font-size: 19px;
  line-height: 1;
  color: #2a1407;
  opacity: .72;
}
.art-record.playing .disc-label strong { font-size: 20px; }
.art-record.playing .disc-label strong::before { display: none; }
.note-float { width: 16px; height: 16px; }
.tonearm {
  position: absolute;
  right: 19px; top: 24px;
  width: 3px; height: 82px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e3bc7c, #8a5a22);
  transform-origin: 50% 0;
  transform: rotate(24deg);
  transition: transform .8s ease;
}
.tonearm::after {
  content: "";
  position: absolute;
  left: -4px; bottom: -5px;
  width: 11px; height: 15px;
  border-radius: 2px;
  background: #c9a05e;
}
.art-record.playing .tonearm { transform: rotate(38deg); }
.note-float { position: absolute; color: var(--amber-soft); font-size: 18px; opacity: 0; }
.art-record.playing .note-float { animation: noteFloat 2.6s ease-out infinite; }
.art-record.playing .note-float:nth-child(2) { animation-delay: .9s; }
.art-record.playing .note-float:nth-child(3) { animation-delay: 1.7s; }
@keyframes noteFloat {
  0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); }
  25% { opacity: .8; }
  100% { opacity: 0; transform: translate(16px, -58px) rotate(10deg); }
}

/* ---------- 密码锁 ---------- */

.code-clues {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: -2px 0 13px;
}
.code-clues span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 56px;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(236, 219, 197, .66);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 190, 140, .12);
}
.code-clues b {
  font-size: 15px;
  color: #ffd5a3;
  font-variant-numeric: tabular-nums;
}
.code-clues .dim { opacity: .5; }
.code-clues .dim b { color: rgba(255, 210, 165, .45); }
.key-spacer { display: block; }
.code-display {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin: 4px 0 16px;
}
.code-slot {
  width: 54px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 28px;
  font-weight: 700;
  color: #ffd9a8;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 190, 140, .18);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .35);
  transition: border-color .2s ease, transform .2s ease;
}
.code-slot.filled { border-color: rgba(255, 166, 92, .5); background: rgba(255, 138, 61, .1); }
.code-display.shake { animation: codeShake .45s ease; }
@keyframes codeShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.key {
  height: 50px;
  border-radius: 13px;
  font-size: 20px;
  font-weight: 600;
  color: #f5e7d3;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 198, 148, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 3px 8px rgba(0, 0, 0, .2);
  transition: transform .1s ease, background .15s ease;
}
.key:active { transform: scale(.94); background: rgba(255, 138, 61, .22); }
.key.key-del { color: rgba(255, 196, 148, .85); }
.key.key-del .mp-icon { width: 21px; height: 21px; }
.key.key-clear { font-size: 14px; letter-spacing: .14em; color: rgba(255, 196, 148, .8); }
.keypad-msg {
  min-height: 20px;
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(220, 205, 186, .62);
}
.keypad-msg.bad { color: #ff9d7a; }
.keypad-msg.good { color: #ffd49a; }

/* ---------- 手记 ---------- */

.guest {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 190, 140, .1);
}
.guest-avatar {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #ffd8a8;
  background: radial-gradient(circle at 34% 30%, #6b4326, #2a1a10);
  border: 1px solid rgba(255, 190, 140, .26);
}
.guest-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guest-avatar .mp-icon { width: 19px; height: 19px; }
.guest-meta { min-width: 0; }
.guest-meta small { display: block; font-size: 9px; letter-spacing: .18em; color: rgba(255, 184, 124, .6); margin-bottom: 2px; }
.guest-meta strong { display: block; font-size: 13px; font-weight: 600; color: #f7e8d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-paper {
  position: relative;
  padding: 17px 16px 16px;
  margin: 4px 0 14px;
  border-radius: 4px 12px 12px 12px;
  background:
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(120, 88, 55, .13) 25px 26px),
    linear-gradient(160deg, #efe2c8, #e3d2b2);
  color: #4a3320;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
  transform: rotate(-.7deg);
}
.note-paper::before {
  content: "";
  position: absolute;
  top: -5px; left: 22px;
  width: 52px; height: 12px;
  background: rgba(255, 246, 226, .6);
  transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.note-paper p { margin: 0 0 7px; font-family: "Songti SC", "Noto Serif SC", serif; font-size: 13px; line-height: 26px; }
.note-paper p:last-child { margin-bottom: 0; }
.note-paper b { color: #a44f18; }
.how-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.how-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; color: rgba(228, 213, 194, .78); }
.how-list .n {
  flex: 0 0 auto;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 10px;
  color: #ffcf9b;
  background: rgba(255, 138, 61, .14);
  border: 1px solid rgba(255, 178, 116, .26);
  margin-top: 1px;
}

/* ---------- 结局 ---------- */

.ending {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px calc(24px + var(--safe-b));
  overflow: hidden;
}
.ending[hidden] { display: none; }
.ending-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(255, 176, 110, .16), transparent 56%),
    linear-gradient(180deg, rgba(8, 10, 15, .44) 0%, rgba(9, 11, 16, .26) 38%, rgba(7, 8, 12, .72) 100%);
  animation: dawnIn 1.1s ease both;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ending-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 34%, rgba(7, 8, 12, .4) 100%),
    linear-gradient(180deg, transparent 48%, rgba(7, 8, 12, .55));
}
@keyframes dawnIn { from { opacity: 0; } to { opacity: 1; } }
.ending-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 370px;
  padding: 26px 22px 20px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(24, 28, 36, .88), rgba(13, 16, 22, .94));
  border: 1px solid rgba(255, 204, 152, .28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 226, 192, .15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: endingUp .8s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes endingUp { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ending-mark {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #ffd9a8;
  background: radial-gradient(circle at 36% 30%, rgba(255, 187, 120, .32), rgba(255, 138, 61, .08));
  border: 1px solid rgba(255, 190, 140, .3);
  box-shadow: 0 0 26px rgba(255, 150, 77, .2);
}
.ending-mark .mp-icon { width: 24px; height: 24px; }
.ending-kicker { margin: 0 0 5px; font-size: 10px; letter-spacing: .4em; color: #ffc98f; text-indent: .4em; }
.ending-card h2 {
  margin: 0 0 12px;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff1dd;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .4);
}
.ending-copy { margin: 0 auto 16px; max-width: 290px; font-size: 13px; line-height: 1.8; color: rgba(236, 220, 199, .76); }
.ending-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 190, 140, .13);
  border-bottom: 1px solid rgba(255, 190, 140, .13);
}
.ending-stats .stat { flex: 1; padding: 0 6px; }
.ending-stats .stat + .stat { border-left: 1px solid rgba(255, 190, 140, .13); }
.ending-stats b { display: block; font-size: 17px; color: #ffd5a3; font-variant-numeric: tabular-nums; margin-bottom: 1px; }
.ending-stats span { font-size: 9px; letter-spacing: .14em; color: rgba(228, 210, 188, .5); }
.ending .btn-primary { margin-top: 17px; }
.ending .btn-ghost { color: rgba(236, 220, 199, .55); }

/* ---------- 通关后的场景 ---------- */

.game.solved .rain { opacity: 0; transition: opacity 2.6s ease; }
.game.solved .dawn-window { opacity: .5; transition: opacity 2.6s ease; }
.game.solved .dawn-glow { opacity: .85; transition: opacity 2.6s ease; }
.game.solved .dawn-overlay { opacity: 1; }
.game.solved .window .lightning { display: none; }
.game.solved .hotspot { opacity: .5; pointer-events: none; }
.game.solved .hs-ring { animation: none; }
.game.solved .night-tag .p-avatar { border-color: rgba(255, 220, 180, .5); box-shadow: 0 0 14px rgba(255, 190, 130, .35); }

.game.ending-open .tray,
.game.ending-open .hint,
.game.ending-open .hud,
.game.ending-open .night-tag,
.game.ending-open .toast {
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

/* ---------- 响应式 ---------- */

@media (max-height: 760px) {
  .scene {
    transform: scale(.9);
    transform-origin: 50% 0;
  }
  .scene-wrap { background: #101722; }
}

@media (max-height: 720px) {
  .tray { padding: 9px 11px 10px; border-radius: 19px; }
  .tray-head { margin-bottom: 7px; }
  .clue { height: 40px; }
  .clue .mp-icon { width: 14px; height: 14px; }
  .clue .c-digit { font-size: 17px; }
  .hint { bottom: calc(140px + var(--safe-b)); font-size: 11px; }
  .toast { bottom: calc(154px + var(--safe-b)); }
  .art { height: 214px; }
  .sheet { padding-top: 16px; }
}

@media (max-height: 640px) {
  .clue-row { gap: 5px; }
  .clue { height: 37px; padding: 0 6px; }
  .clue .c-name { font-size: 10px; }
  .clue .c-digit { font-size: 16px; }
  .hint { display: none; }
  .art { height: 196px; }
  .code-slot { height: 56px; width: 48px; font-size: 25px; }
  .key { height: 44px; }
}

.dawn-window, .dawn-glow { transition: opacity 2.6s ease; }

@media (max-width: 360px) {
  .clue { padding: 0 5px; gap: 3px; }
  .clue .mp-icon { width: 13px; height: 13px; }
  .clue .c-name { font-size: 10px; }
  .clue .c-digit { font-size: 17px; }
  .code-slot { width: 48px; height: 58px; }
  .code-clues span { min-width: 50px; padding: 6px 5px; }
}

/* 宽屏时由脚本把整页缩放成一部手机的大小，保持与移动端完全一致的构图 */
.game.staged {
  right: auto;
  bottom: auto;
  width: 390px;
  height: 844px;
  border-radius: 20px;
  overflow: hidden;
  transform-origin: center center;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, .72),
    0 0 0 1px rgba(255, 198, 148, .09),
    0 0 80px rgba(255, 138, 61, .06);
}
.game.staged .scene { transform: none; }
.game.staged .scene-wrap { background: transparent; }

@media (max-width: 350px) {
  .night-tag { max-width: calc(100vw - 104px); }
  .hud { gap: 6px; }
  .hud-btn { width: 35px; height: 35px; }
  .hud-btn .mp-icon { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .rain, .lightning, .steam path, .motes circle, .sill-cat, .hs-ring, .hs-dot,
  .disc, .cup-steam i, .pendulum, .note-float, .lamp-a > ellipse:last-of-type {
    animation: none !important;
  }
}
