/* 长明 · 三维园区 */
.park-body {
  margin: 0;
  background: #1b211c;
  color: #e9e4d6;
  font-family: "Inter", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.park-body.is-fallback { overflow: auto; background: #f5f2ea; color: #1b1e22; user-select: text; -webkit-user-select: text; }

.park-stage { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
.park-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.park-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .18; 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='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.park-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 50% 48%, transparent 46%, rgba(12,16,13,.34) 100%); }

/* HUD */
.hud { position: absolute; z-index: 4; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-tl {
  top: max(18px, env(safe-area-inset-top)); left: max(20px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 8px;
}
.park-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.park-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #e9e4d6; opacity: .92; }
.park-mark svg { width: 100%; height: 100%; }
.park-brand-text { display: flex; flex-direction: column; line-height: 1; }
.park-brand-text b { font-family: var(--serif, "Songti SC", "Noto Serif SC", serif); font-size: 20px; letter-spacing: .34em; font-weight: 600; }
.park-brand-text i { font-style: normal; font-size: 8px; letter-spacing: .34em; opacity: .55; margin-top: 5px; }
.park-status { font-size: 11px; letter-spacing: .16em; opacity: .62; display: flex; align-items: center; gap: 8px; padding-left: 2px; }
.hud-sep { opacity: .5; }

.hud-tr { top: max(18px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); display: flex; gap: 6px; align-items: center; }
.hud-btn {
  appearance: none; border: 1px solid rgba(233,228,214,.2); background: rgba(22,28,23,.3);
  color: #e9e4d6; font: inherit; font-size: 12px; letter-spacing: .08em;
  padding: 7px 11px; border-radius: 2px; cursor: pointer; text-decoration: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.hud-btn:hover { background: rgba(233,228,214,.14); border-color: rgba(233,228,214,.4); }
.hud-btn-soft { opacity: .7; }
.hud-user { position: relative; }
.hud-user summary { list-style: none; }
.hud-user summary::-webkit-details-marker { display: none; }
.hud-user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px;
  background: rgba(24,30,25,.94); border: 1px solid rgba(233,228,214,.16); border-radius: 3px;
  display: grid; gap: 2px; backdrop-filter: blur(10px);
}
.hud-user-menu a, .hud-user-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none; color: #e9e4d6;
  font: inherit; font-size: 12px; padding: 8px 10px; text-decoration: none; cursor: pointer; border-radius: 2px;
}
.hud-user-menu a:hover, .hud-user-menu button:hover { background: rgba(233,228,214,.1); }

.hud-bl { bottom: max(20px, env(safe-area-inset-bottom)); left: max(22px, env(safe-area-inset-left)); display: grid; gap: 4px; }
.hud-hint { margin: 0; font-size: 11px; letter-spacing: .12em; opacity: .6; transition: opacity 1.2s; }
.hud-hint-sub { opacity: .4; font-size: 10.5px; }
.hud-br { bottom: max(20px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); display: flex; gap: 6px; }

/* 墓位面板：桌面右侧卡片，手机底部抽屉 */
.grave-panel {
  position: absolute; z-index: 7; top: 50%; right: max(18px, env(safe-area-inset-right));
  transform: translateY(-50%) translateX(18px);
  width: min(398px, calc(100vw - 36px)); max-height: min(76vh, 760px);
  display: flex; flex-direction: column;
  background: rgba(19,24,20,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(233,228,214,.18); border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); opacity: 0; pointer-events: none;
  transition: opacity .34s ease, transform .34s ease;
}
.grave-panel[hidden] { display: none; }
.grave-panel.is-visible { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }
.gp-drag { display: none; }
.gp-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 12px; }
.gp-title { flex: 1; min-width: 0; }
.gp-zone { font-size: 9.5px; letter-spacing: .2em; opacity: .5; }
.gp-zone .gp-sample { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid rgba(233,228,214,.28); border-radius: 1px; font-size: 9px; letter-spacing: .1em; opacity: .8; }
.gp-title h2 { margin: 6px 0 0; font-family: var(--serif, "Songti SC", serif); font-size: 23px; letter-spacing: .2em; font-weight: 500; }
.gp-dates { margin: 5px 0 0; font-size: 11px; letter-spacing: .1em; opacity: .55; }
.gp-epitaph { margin: 9px 0 0; font-family: var(--serif, "Songti SC", serif); font-size: 12.5px; line-height: 1.75; opacity: .8; }
.gp-anniv { margin: 8px 0 0; padding: 5px 8px; font-size: 10.5px; letter-spacing: .06em; color: #efe4c4; background: rgba(210,180,110,.14); border-left: 2px solid rgba(210,180,110,.6); }
.gp-close { appearance: none; border: 0; background: none; color: inherit; font: inherit; font-size: 10.5px; letter-spacing: .1em; opacity: .45; cursor: pointer; padding: 2px 0; }
.gp-close:hover { opacity: .9; }
.gp-counts { display: flex; gap: 16px; padding: 0 18px 12px; font-size: 10.5px; letter-spacing: .05em; opacity: .6; }
.gp-counts b { font-weight: 500; color: #f2ecda; }
.gp-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 18px 12px; }
.gp-actions button {
  appearance: none; border: 1px solid rgba(233,228,214,.18); background: transparent; color: #e9e4d6;
  font: inherit; font-size: 11px; letter-spacing: .04em; padding: 8px 2px; border-radius: 2px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: background .2s, border-color .2s, opacity .2s;
}
.gp-actions button b { font-weight: 400; font-size: 10px; opacity: .55; }
.gp-actions button:hover { background: rgba(233,228,214,.1); border-color: rgba(233,228,214,.4); }
.gp-actions button:disabled { opacity: .4; cursor: default; }
.gp-actions button.is-done { opacity: .5; }
.gp-form { padding: 0 18px 10px; border-bottom: 1px solid rgba(233,228,214,.1); }
.gp-form textarea {
  width: 100%; box-sizing: border-box; resize: none; border: 1px solid rgba(233,228,214,.16);
  background: rgba(233,228,214,.05); color: #efeadd; font: inherit; font-size: 12.5px; line-height: 1.6;
  padding: 9px 10px; border-radius: 2px; outline: none;
}
.gp-form textarea:focus { border-color: rgba(233,228,214,.42); background: rgba(233,228,214,.08); }
.gp-form-row { display: flex; gap: 6px; margin-top: 6px; }
.gp-form-row input {
  flex: 1; min-width: 0; border: 1px solid rgba(233,228,214,.14); background: rgba(233,228,214,.04);
  color: #efeadd; font: inherit; font-size: 11.5px; padding: 7px 9px; border-radius: 2px; outline: none;
}
.gp-form-row input:focus { border-color: rgba(233,228,214,.38); }
.gp-form-row button {
  appearance: none; border: 1px solid rgba(233,228,214,.28); background: rgba(233,228,214,.1); color: #f2eddf;
  font: inherit; font-size: 11.5px; letter-spacing: .12em; padding: 7px 14px; border-radius: 2px; cursor: pointer;
}
.gp-form-row button:hover { background: rgba(233,228,214,.18); }
.gp-form-row button:disabled { opacity: .45; cursor: default; }
.gp-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 0; min-height: 96px; }
.gp-list::-webkit-scrollbar { width: 3px; }
.gp-list::-webkit-scrollbar-thumb { background: rgba(233,228,214,.24); }
.gp-msg { padding: 10px 0; border-bottom: 1px solid rgba(233,228,214,.07); }
.gp-msg:last-child { border-bottom: 0; }
.gp-msg-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.gp-msg-name { font-size: 11px; letter-spacing: .06em; color: #ded6c2; }
.gp-msg-time { font-size: 9.5px; opacity: .38; letter-spacing: .04em; white-space: nowrap; }
.gp-msg-text { margin: 5px 0 0; font-size: 12.5px; line-height: 1.72; color: #e6e0d2; word-break: break-word; }
.gp-msg.is-new { animation: gpIn .5s ease; }
@keyframes gpIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.gp-empty { padding: 20px 4px; text-align: center; }
.gp-empty p { margin: 0; font-family: var(--serif, "Songti SC", serif); font-size: 12.5px; line-height: 1.9; opacity: .62; }
.gp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px 14px; border-top: 1px solid rgba(233,228,214,.1); }
.gp-more { appearance: none; border: 0; background: none; color: inherit; font: inherit; font-size: 10.5px; letter-spacing: .1em; opacity: .55; cursor: pointer; }
.gp-more:hover { opacity: .95; }
.gp-link { font-size: 10.5px; letter-spacing: .1em; color: #e9e4d6; text-decoration: none; border-bottom: 1px solid rgba(233,228,214,.28); padding-bottom: 1px; }
.gp-link:hover { border-color: rgba(233,228,214,.7); }

/* 进门领香 */
.entry-incense {
  position: absolute; z-index: 7; left: 50%; bottom: max(74px, calc(env(safe-area-inset-bottom) + 66px));
  transform: translate(-50%, 8px); appearance: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid rgba(233,228,214,.3); border-radius: 2px;
  background: rgba(19,24,20,.86); color: #f0ead9; font: inherit; font-size: 12px; letter-spacing: .1em;
  backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.entry-incense.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.entry-incense[hidden] { display: none; }
.entry-incense span { font-size: 10px; opacity: .5; }
/* 长亭石凳：走近提示，坐下后变“起身” */
.sit-btn { bottom: max(126px, calc(env(safe-area-inset-bottom) + 118px)); }
.sit-btn:not([hidden]) { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sit-btn.is-on { border-color: rgba(233,228,214,.6); background: rgba(30,36,30,.92); }
.hud-season { margin: 2px 0 0; font-size: 10.5px; letter-spacing: .1em; opacity: .42; font-style: italic; }

/* 三十秒立碑 */
.quick-form { display: grid; gap: 10px; }
.quick-photo {
  display: flex; align-items: center; justify-content: center; min-height: 92px; cursor: pointer;
  border: 1px dashed rgba(233,228,214,.26); border-radius: 2px; background: rgba(233,228,214,.03);
  color: inherit; font-size: 11px; letter-spacing: .08em; opacity: .8; overflow: hidden; position: relative;
}
.quick-photo img { width: 100%; height: 132px; object-fit: cover; display: block; }
.quick-field { display: grid; gap: 5px; font-size: 10px; letter-spacing: .14em; opacity: .85; }
.quick-field input {
  border: 1px solid rgba(233,228,214,.18); background: rgba(233,228,214,.05); color: #f0ead9;
  font: inherit; font-size: 13px; padding: 9px 11px; border-radius: 2px; outline: none;
}
.quick-field input:focus { border-color: rgba(233,228,214,.45); }
.quick-submit {
  appearance: none; border: 1px solid rgba(233,228,214,.34); background: rgba(233,228,214,.12);
  color: #f3eee0; font: inherit; font-size: 12.5px; letter-spacing: .2em; padding: 11px; border-radius: 2px; cursor: pointer;
}
.quick-submit:hover { background: rgba(233,228,214,.2); }
.quick-submit:disabled { opacity: .5; cursor: default; }
.quick-msg { margin: 0; font-size: 11px; letter-spacing: .05em; opacity: .7; }

.ra { width: 12px; height: 12px; display: inline-block; border: 1px solid currentColor; border-radius: 50%; opacity: .8; }
.ra-candle { border-radius: 2px; border-width: 0 0 0 1px; height: 13px; }
.ra-incense { border: 0; width: 10px; border-top: 1px solid currentColor; border-radius: 0; }
.ra-bow { border: 0; width: 12px; height: 6px; border-bottom: 1px solid currentColor; border-radius: 0 0 12px 12px; }
.ra-flower { border-radius: 50% 0 50% 50%; }
.ra-write { width: 12px; height: 8px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; }

/* 碑前动作条：走近浮现，离开淡出 */
.ritual-bar {
  position: absolute; z-index: 7; left: 50%; bottom: max(178px, calc(env(safe-area-inset-bottom) + 170px));
  transform: translate(-50%, 10px); width: min(520px, calc(100vw - 28px));
  padding: 10px 12px 11px; border: 1px solid rgba(233,228,214,.26); border-radius: 3px;
  background: rgba(19,24,20,.9); color: #f0ead9; backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .28s, transform .28s;
}
.ritual-bar.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ritual-bar[hidden] { display: none; }
.rb-name { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .16em; opacity: .55; text-align: center; }
.rb-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.rb-row button {
  appearance: none; cursor: pointer; min-height: 52px; padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  border: 1px solid rgba(233,228,214,.2); border-radius: 2px;
  background: rgba(233,228,214,.05); color: #f0ead9; font: inherit; font-size: 12px; letter-spacing: .08em;
  transition: background .2s, border-color .2s, opacity .2s;
}
.rb-row button:hover { background: rgba(233,228,214,.13); border-color: rgba(233,228,214,.44); }
.rb-row button:disabled { opacity: .38; cursor: default; }
.rb-row button.is-done { opacity: .5; }
.rb-row kbd {
  font: inherit; font-size: 9px; letter-spacing: .06em; opacity: .5;
  border: 1px solid rgba(233,228,214,.24); border-radius: 2px; padding: 1px 4px;
}

/* 操作说明 */
.help-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.help-list li { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start; font-size: 12.5px; line-height: 1.75; }
.help-list b { font-family: var(--serif, "Songti SC", serif); font-size: 15px; font-weight: 500; opacity: .9; }
.help-list span { opacity: .72; }
.help-list kbd {
  font: inherit; font-size: 10px; border: 1px solid rgba(233,228,214,.3); border-radius: 2px;
  padding: 1px 4px; margin: 0 1px; opacity: .85;
}

/* toast */
.park-toast {
  position: absolute; z-index: 8; left: 50%; bottom: max(200px, calc(env(safe-area-inset-bottom) + 190px));
  transform: translate(-50%, 8px); padding: 9px 16px; font-size: 12px; letter-spacing: .1em;
  background: rgba(20,26,21,.86); border: 1px solid rgba(233,228,214,.22); border-radius: 2px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; white-space: nowrap;
}
.park-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 面板 */
.park-modal { position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(10,14,11,.5); backdrop-filter: blur(3px); }
.park-modal[hidden] { display: none; }
.park-modal-card { width: min(520px, 100%); padding: 22px; background: rgba(24,30,25,.96); border: 1px solid rgba(233,228,214,.18); border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.park-modal-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.park-modal-head h3 { margin: 0; font-family: var(--serif, "Songti SC", serif); font-size: 18px; letter-spacing: .2em; font-weight: 500; }
.park-modal-head button { appearance: none; border: 0; background: none; color: inherit; font: inherit; font-size: 11px; opacity: .5; cursor: pointer; letter-spacing: .1em; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-spot {
  appearance: none; text-align: left; border: 1px solid rgba(233,228,214,.16); background: rgba(233,228,214,.03);
  color: inherit; font: inherit; padding: 12px 14px; border-radius: 2px; cursor: pointer; transition: background .2s, border-color .2s;
}
.map-spot:hover { background: rgba(233,228,214,.1); border-color: rgba(233,228,214,.36); }
.map-spot b { display: block; font-family: var(--serif, "Songti SC", serif); font-size: 14px; letter-spacing: .16em; font-weight: 500; }
.map-spot span { display: block; margin-top: 5px; font-size: 10px; letter-spacing: .06em; opacity: .5; }
.park-modal-note { margin: 14px 0 0; font-size: 10.5px; line-height: 1.7; opacity: .45; letter-spacing: .04em; }
.park-modal-label { margin: 16px 0 8px; font-size: 10px; letter-spacing: .2em; opacity: .45; }
.look-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.look-row button {
  appearance: none; border: 1px solid rgba(233,228,214,.18); background: transparent; color: inherit;
  font: inherit; font-size: 11px; letter-spacing: .1em; padding: 9px 4px; border-radius: 2px; cursor: pointer;
  display: grid; gap: 6px; justify-items: center; transition: background .2s, border-color .2s;
}
.look-row button i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw, #ccc); display: block; }
.look-row button.is-on { background: rgba(233,228,214,.14); border-color: rgba(233,228,214,.5); }
#look-bodies { grid-template-columns: repeat(3, 1fr); }

/* 加载页 */
.park-loading {
  position: fixed; z-index: 40; inset: 0; display: grid; place-items: center;
  background: #161b17; color: #e9e4d6; transition: opacity .9s ease, visibility .9s;
}
.park-loading.is-done { opacity: 0; visibility: hidden; }
.loading-inner { display: grid; justify-items: center; gap: 14px; }
.loading-mark { width: 38px; height: 38px; opacity: .7; }
.loading-mark svg { width: 100%; height: 100%; }
.loading-name { margin: 0; font-family: var(--serif, "Songti SC", serif); font-size: 26px; letter-spacing: .5em; text-indent: .5em; }
.loading-bar { width: 160px; height: 1px; background: rgba(233,228,214,.18); overflow: hidden; }
.loading-bar i { display: block; height: 100%; width: 0; background: #e9e4d6; transition: width .3s ease; }
.loading-text { margin: 0; font-size: 10px; letter-spacing: .2em; opacity: .45; }

/* 离园页 */
.park-exit {
  position: fixed; z-index: 30; inset: 0; display: grid; place-items: center;
  background: #161b17; color: #e9e4d6; opacity: 0; transition: opacity 1.2s ease;
}
.park-exit.is-on { opacity: 1; }
.park-exit[hidden] { display: none; }
.exit-inner { text-align: center; display: grid; gap: 10px; justify-items: center; }
.exit-line { margin: 0; font-family: var(--serif, "Songti SC", serif); font-size: 22px; letter-spacing: .3em; }
.exit-sub { margin: 0; font-size: 11px; letter-spacing: .2em; opacity: .45; }
.btn-exit { margin-top: 22px; color: #e9e4d6; border: 1px solid rgba(233,228,214,.28); padding: 9px 18px; font-size: 11px; letter-spacing: .18em; text-decoration: none; }

/* 静态降级 */
.fallback { display: none; }
.park-body.is-fallback .fallback { display: block; }
.park-body.is-fallback .park-stage { display: none; }
.fallback { max-width: 1180px; margin: 0 auto; padding: 40px 24px 80px; }
.fallback-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.fallback-art { aspect-ratio: 12 / 7; overflow: hidden; border: 1px solid rgba(27,30,34,.14); }
.fallback-art svg { width: 100%; height: 100%; display: block; }
.fallback-copy .eyebrow { font-size: 10px; letter-spacing: .26em; color: #7d8478; }
.fallback-copy h1 { font-family: var(--serif, "Songti SC", serif); font-size: 42px; letter-spacing: .2em; margin: 14px 0 0; font-weight: 500; }
.fallback-copy .lede { font-size: 13.5px; line-height: 1.9; color: #545a50; margin: 16px 0 0; }
.fallback-actions { display: flex; gap: 10px; margin-top: 24px; }
.fallback-actions .btn { text-decoration: none; display: inline-flex; align-items: center; padding: 10px 18px; font-size: 12px; letter-spacing: .1em; border-radius: 2px; }
.fallback-actions .btn-primary { background: #1b1e22; color: #f5f2ea; }
.fallback-actions .btn-ghost { border: 1px solid rgba(27,30,34,.24); color: #1b1e22; background: none; cursor: pointer; }
.fallback-zones { margin-top: 54px; display: grid; gap: 34px; }
.fallback-zone { border-top: 1px solid rgba(27,30,34,.12); padding-top: 20px; }
.fallback-zone-head { display: grid; gap: 6px; }
.fallback-zone-head h2 { font-family: var(--serif, "Songti SC", serif); font-size: 24px; letter-spacing: .16em; margin: 0; font-weight: 500; }
.fallback-zone-head .eyebrow { font-size: 9.5px; letter-spacing: .24em; color: #8d9387; }
.fallback-zone-head .small { font-size: 12px; color: #6a7064; margin: 0; }
.fallback-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 16px; }
.fallback-slot { border: 1px solid rgba(27,30,34,.14); padding: 12px 14px; text-decoration: none; color: inherit; display: grid; gap: 4px; background: rgba(255,255,255,.35); }
.fallback-slot b { font-family: var(--serif, "Songti SC", serif); font-size: 15px; letter-spacing: .12em; font-weight: 500; }
.fallback-slot span { font-size: 10px; letter-spacing: .08em; color: #7b8177; }
.fallback-slot i { font-style: normal; font-size: 10.5px; color: #8b9186; }
.fallback-names { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.fallback-names a { font-size: 12px; color: #3b4239; text-decoration: none; border-bottom: 1px solid rgba(59,66,57,.2); padding-bottom: 2px; }
.fallback-names a span { color: #8a9086; font-size: 10.5px; margin-left: 4px; }
.fallback-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(27,30,34,.12); }
.fallback-foot .small { color: #8a9086; font-size: 11px; }
.fallback .link-arrow { font-size: 12px; color: #1b1e22; text-decoration: none; border-bottom: 1px solid rgba(27,30,34,.3); padding-bottom: 2px; }
.noscript-note { padding: 20px; text-align: center; font-size: 13px; background: #f5f2ea; color: #1b1e22; }

@media (max-width: 760px) {
  .hud-tl { top: max(12px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
  .park-brand-text b { font-size: 17px; }
  .hud-tr { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); gap: 4px; }
  .hud-btn { font-size: 11px; padding: 6px 8px; }
  .hud-btn-soft { display: none; }
  .hud-bl { left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .hud-hint { font-size: 10px; }
  .hud-hint-sub { display: none; }
  .hud-br { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .grave-panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 78vh;
    border-radius: 12px 12px 0 0; border-bottom: 0;
    transform: translateY(102%); padding-bottom: env(safe-area-inset-bottom);
  }
  .grave-panel.is-visible { transform: translateY(0); }
  .gp-drag { display: block; width: 38px; height: 3px; margin: 8px auto 0; border-radius: 2px; background: rgba(233,228,214,.28); }
  .gp-head { padding: 10px 16px 10px; }
  .gp-title h2 { font-size: 20px; }
  .gp-counts, .gp-actions, .gp-form, .gp-list { padding-left: 16px; padding-right: 16px; }
  .gp-list { max-height: 40vh; }
  .gp-foot { padding: 9px 16px calc(12px + env(safe-area-inset-bottom)); }
  .entry-incense { bottom: max(88px, calc(env(safe-area-inset-bottom) + 78px)); font-size: 11px; padding: 9px 14px; }
  .ritual-bar {
    bottom: max(96px, calc(env(safe-area-inset-bottom) + 88px));
    left: 10px; right: 10px; width: auto; transform: translateY(10px);
    padding: 9px 9px 10px;
  }
  .ritual-bar.is-on { transform: translateY(0); }
  .rb-row { gap: 6px; }
  .rb-row button { min-height: 58px; font-size: 12.5px; } /* 手指大小的点击区 */
  .rb-row kbd { display: none; } /* 触屏不显示键位，避免误导 */
  .sit-btn { bottom: max(176px, calc(env(safe-area-inset-bottom) + 168px)); }
  .hud-season { display: none; }
  .park-toast { bottom: max(120px, calc(env(safe-area-inset-bottom) + 110px)); font-size: 11px; }
  .park-modal-card { padding: 16px; }
  .map-grid { grid-template-columns: 1fr; }
  .look-row { grid-template-columns: repeat(4, 1fr); }
  .fallback { padding: 24px 16px 60px; }
  .fallback-hero { grid-template-columns: 1fr; gap: 20px; }
  .fallback-copy h1 { font-size: 30px; }
  .fallback-foot { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .park-loading, .park-exit { transition-duration: .01s; }
}
