:root{--ui-radius-panel:16px;--ui-radius-control:10px;--ui-radius-small:6px}
/* Reference direction: ink, parchment, copper. Shared by both 3D scenes. */
:root {
  --dsh-ink: #e8d8bc; --dsh-ink-dim: #baaa92; --dsh-gold: #dcc39e;
  --dsh-gold-soft: #c7aa7c; --dsh-line: #c7aa7c45;
  --dsh-panel: #1c1c19ed; --dsh-panel-bg: #1c1c19ed; --dsh-panel-line: #c7aa7c45;
  --dsh-serif: 'STKaiti','KaiTi','Kaiti SC','Songti SC','SimSun',serif;
  color: var(--dsh-ink); font-family: var(--dsh-serif); background: #171815;
}
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 7;
  background: linear-gradient(#141511b3, transparent 25%, transparent 68%, #141511db); }
body::after { content: ''; position: fixed; inset: 20px; border: 1px solid #d8bc8f1c; pointer-events: none; z-index: 8; }
header { top: 34px; left: 46px; right: 42px; z-index: 75; align-items: flex-start; }
.brand,.identity { position: relative; display: flex; gap: 11px; align-items: flex-start; flex-direction: row-reverse; }
.brand>div,.identity>div { display: flex; flex-direction: column-reverse; }
h1 { font: 400 49px/1.15 var(--dsh-serif); letter-spacing: 3px; color: #efddc1; text-shadow: 0 2px 14px #0009; }
.brand p,.identity .eyebrow { margin: 10px 0 0; font: 13px/1.4 var(--dsh-serif); letter-spacing: 3px; color: #d1bb97; }
.seal { margin-top: 10px; padding: 4px 3px; border: 1px solid #cd70544d; border-radius:var(--ui-radius-small); background: #973d2a; color: #eac8a5; font: 10px/1.12 var(--dsh-serif); }
.dsh-tools { gap: 12px; max-width: none; flex-wrap: nowrap; padding-top: 7px; }
.dsh-btn,.dsh-tools .dsh-btn,#lights,#walk { font-family: var(--dsh-serif); font-size: 14px; letter-spacing: 2px; border: 1px solid var(--dsh-line); border-radius:var(--ui-radius-control); background: #1c1c196b; padding: 12px 19px; color: var(--dsh-ink); }
.dsh-btn:hover:not(:disabled),#lights:hover:not(:disabled),#walk:hover:not(:disabled) { background: #c5a77520; border-color: #d5ae75a3; color: #ffecd0; }
.dsh-tools #lights,.dsh-tools #to-study { border-color: transparent; background: transparent; backdrop-filter: none; padding: 12px 8px; }
#lights i { width: 5px; height: 5px; background: #ebc297; margin-right: 8px; }
#fullscreen,#help { display: grid; place-items: center; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; backdrop-filter: none; }
.ui-icon { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible,input:focus-visible { outline: 2px solid #f2c88a; outline-offset: 5px; }
.ui-mode { position: fixed; left: 50%; top: 48px; transform: translateX(-50%); z-index: 8; font: 19px var(--dsh-serif); letter-spacing: 4px; text-shadow: 0 2px 8px #000; pointer-events: none; }
.ui-mode::before { content: ''; position: absolute; width: 72px; height: 34px; border-top: 1px solid #cbb28a; border-radius: 50%; top: -22px; left: 50%; transform: translateX(-50%); }
.ui-mode::after { content: ''; position: absolute; left: -57px; right: -53px; top: 12px; height: 1px; z-index: -1; background: linear-gradient(90deg, transparent, #bda17b 15%, transparent 25%, transparent 75%, #bda17b 85%, transparent); }
.ui-mode .ui-roam { display: none; }
body.walking .ui-mode .ui-orbit,body.mode-fps .ui-mode .ui-orbit { display: none; }
body.walking .ui-mode .ui-roam,body.mode-fps .ui-mode .ui-roam { display: inline; }
.caption,.scene-caption { display: none; }
.dsh-rail { top: 149px; right: 38px; z-index: 70; flex-direction: row; gap: 14px; }
.dsh-rail__panel { border: 1px solid var(--dsh-line); border-radius:var(--ui-radius-panel); padding: 21px 17px; background: #191a17ef; box-shadow: 0 15px 40px #0004; max-height: calc(100dvh - 320px); }
.dsh-rail__title { font: 13px var(--dsh-serif); margin-bottom: 14px; letter-spacing: 3px; color: #b9a88e; }
.dsh-rail__item { width: 155px; font: 15px var(--dsh-serif); padding: 13px 9px; color: #dcc9aa; border-radius:var(--ui-radius-control); }
.dsh-rail__item i { font: 10px Georgia,serif; color: #9c896c; width: 26px; }
.dsh-rail__item[aria-pressed=true] { background: #bb955d20; color: #ffe3b9; box-shadow: inset 2px 0 #d8b485; }
.dsh-rail__item[aria-pressed=true] i { color: #d2aa76; }
.dsh-rail__item:hover { background: #b7966726; }
.dsh-rail__handle { position: relative; width: 44px; min-height: 130px; padding: 0 12px; border: 0; background: transparent; backdrop-filter: none; border-radius:var(--ui-radius-control); }
.dsh-rail__handle:hover { background: none; color: #ffe0ae; }
.dsh-rail__handle b { font: 15px var(--dsh-serif); writing-mode: vertical-rl; letter-spacing: 6px; }
.dsh-rail__handle em { display: none; }
.dsh-rail__handle::before { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; top: 61px; background: #ffd7a9; box-shadow: 0 0 10px 2px #d8904a8a; }
.dsh-rail__handle::after { content: ''; position: absolute; top: 77px; bottom: 0; width: 1px; background: linear-gradient(#c7a77f, transparent); }
.dsh-rail[data-open=false] .dsh-rail__panel { visibility: hidden; }
.dsh-foot { left: 50%; bottom: 53px; transform: translateX(-50%); width: min(580px,55vw); text-align: center; align-items: center; gap: 11px; }
.ui-guidance { margin: 0; color: #e9d7b8; font: 24px/1.4 var(--dsh-serif); letter-spacing: 4px; position: relative; }
.ui-guidance::before,.ui-guidance::after { content: ''; position: absolute; top: 50%; width: 73px; height: 1px; background: linear-gradient(90deg,transparent,#bc9968); }
.ui-guidance::before { right: calc(100% + 24px); }
.ui-guidance::after { left: calc(100% + 24px); transform: rotate(180deg); }
.hint,.dsh-hint { color: #c6b69d; font: 13px/1.7 var(--dsh-serif); letter-spacing: 2px; padding: 0; text-align: center; }
.hint span { margin: 0; }
.dsh-chapter { position: fixed; bottom: 31px; left: 46px; z-index: 60; margin: 0; text-align: left; font: 12px var(--dsh-serif); letter-spacing: 3px; color: #bba98c; }
.dsh-actions { right: 42px; bottom: 30px; gap: 10px; }
.dsh-actions .dsh-btn,#walk { padding: 10px 16px; font-size: 13px; }
#music { position: fixed; right: 44px; bottom: 113px; width: 58px; height: 58px; padding: 15px; border-radius: 50%; border: 1px solid #d0a87985; border-left: 2px solid #e9ac70; background: #1c1c1977; box-shadow: -5px 0 18px #bd732a24; }
#music span { display: none; }
#music::before { content: '‹'; position: absolute; left: -19px; top: 17px; color: #d3b58e; font: 19px serif; }
#music.is-playing::after { position: absolute; bottom: 5px; right: 5px; margin: 0; background: #eac390; }
#walk-tip { top: auto; bottom: 111px; max-width: 80vw; border: 0; padding: 0; background: transparent; backdrop-filter: none; text-shadow: 0 2px 9px #000; color: #d7c4a3; font: 13px var(--dsh-serif); }
#walk-tip.aim { color: #ffdc9d; }
body.walking .ui-guidance--orbit { display: none; }
.ui-guidance--walk { display: none; }
body.walking .ui-guidance--walk { display: block; }
body.walking .dsh-foot .hint { display: none; }
#crosshair { width: 5px; height: 5px; border: 1px solid #ecd2a1; border-radius: 50%; font-size: 0; box-shadow: 0 0 8px #ffba7250; }
.compass { top: 40px; border: 0; border-radius:var(--ui-radius-control); background: transparent; backdrop-filter: none; padding: 0 0 9px; border-bottom: 1px solid #c0a17a66; }
.compass canvas { width: 264px; height: 34px; }
.compass b { display: none; }
body.mode-fps .ui-mode { display: none; }
#minimap-panel { top: 144px; left: 45px; right: auto; bottom: auto; border: 1px solid #c2a98499; border-radius: 50%; width: 142px; height: 142px; padding: 5px; background: #1b1b18a6; box-shadow: none; transform: none; }
#minimap-panel canvas { width: 130px; height: 130px; border-radius: 50%; filter: sepia(.6); }
.map-legend { position: absolute; top: 146px; left: 0; width: 100%; justify-content: center; font-size: 9px; color: #c2b193; }
.map-legend i { width: 4px; height: 4px; }
#where { left: 46px; bottom: 90px; border: 0; padding: 0; background: transparent; backdrop-filter: none; }
#where b { font: 17px var(--dsh-serif); letter-spacing: 2px; color: #e5cfad; }
#where small { color: #b5a389; font: 12px var(--dsh-serif); margin-top: 7px; }
#visit-count { top: 323px; left: 46px; right: auto; bottom: auto; padding: 0; border: 0; background: transparent; backdrop-filter: none; font-size: 11px; color: #bfac8e; }
#prompt { top: auto; bottom: 137px; background: transparent; border: 0; border-radius:var(--ui-radius-control); box-shadow: none; backdrop-filter: none; font: 21px var(--dsh-serif); }
#prompt kbd { width: 36px; height: 36px; border-radius: 50%; border-color: #edb679; background: #2b251b66; font: 20px Georgia,serif; box-shadow: -3px 0 13px #d58e4a40; }
#edge-hint { bottom: 184px; }
.ui-help { width: min(414px,calc(100vw - 36px)); max-height: calc(100dvh - 48px); padding: 34px; border: 1px solid #bca380; border-radius:var(--ui-radius-panel); color: #493d2e; background: radial-gradient(ellipse at top left,#f1e4cd,transparent 80%),#d8c5a7; box-shadow: 0 0 0 5px #c7b18b23,0 28px 90px #0008; font-family: var(--dsh-serif); color-scheme: light; }
.ui-help::backdrop { background: #11120fd1; backdrop-filter: blur(5px); }
.ui-help h2 { font: 30px var(--dsh-serif); letter-spacing: 5px; margin: 0 0 8px; }
.ui-help__sub { margin: 0 0 24px; color: #78664d; font-size: 13px; letter-spacing: 2px; }
.ui-help [data-close] { position: absolute; top: 17px; right: 17px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: #544431; }
.ui-help dl { display: grid; grid-template-columns: 112px 1fr; gap: 17px 12px; margin: 22px 0 28px; font-size: 15px; }
.ui-help dt,.ui-help dd { margin: 0; line-height: 1.6; }
.ui-help kbd { display: inline-block; border: 1px solid #948064; min-width: 27px; padding: 0 5px; text-align: center; font: 13px/1.7 Georgia,serif; border-radius:var(--ui-radius-small); }
.ui-settings { border-top: 1px solid #9b816b4d; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.ui-settings .dsh-btn { background: #a58b6212; border: 1px solid #9b816b66; color: #55422b; backdrop-filter: none; font-size: 13px; padding: 10px 13px; letter-spacing: 1px; }
.ui-settings .dsh-btn:hover { background: #a58b6233; color: #382919; }
.ui-help footer { position: static; display: block; margin-top: 22px; border-top: 1px solid #9b816b4d; padding-top: 18px; font-size: 12px; letter-spacing: 2px; color: #7b6548; }
.dsh-music { right: 43px; top: auto; bottom: 188px; width: 312px; padding: 24px; color: #dcc9aa; border: 1px solid #c9a77b70; border-radius:var(--ui-radius-panel); background: #20211dec; transform-origin: bottom right; max-height: calc(100dvh - 235px); }
.dsh-music:not([data-open=true]) { visibility: hidden; }
.dsh-music__head { margin-bottom: 18px; gap: 12px; }
.dsh-music__head b { font: 18px var(--dsh-serif); letter-spacing: 3px; }
.dsh-music__now { font: 12px var(--dsh-serif); color: #baa789; }
.dsh-music__btn { color: #dbc6a5; padding: 6px; min-width: 30px; min-height: 30px; }
.dsh-music__btn:hover,.dsh-music__item:hover { background: #bc986c1a; }
.dsh-music__item { padding: 12px 8px; border-bottom: 1px solid #cbb0851a; color: #d7c6aa; }
.dsh-music__item b { font: 15px/1.5 var(--dsh-serif); }
.dsh-music__item i { color: #a99476; }
.dsh-music__item[aria-pressed=true] { background: #c9a9791a; color: #f3d5ab; }
.dsh-music__item[aria-pressed=true] i,.dsh-music__item[aria-pressed=true] em { color: #c29d6d; }
.dsh-music__bars s { background: #eac899; }
.dsh-music__vol { border-top: 1px solid #cbb08533; margin-top: 18px; padding-top: 16px; }
.dsh-music__hint { color: #b6a58d; font: 12px/1.7 var(--dsh-serif); }
.dsh-music__pct { color: #c3b192; }
.ui-player-art { width: 56px; height: 56px; object-fit: cover; border: 1px solid #bea07055; border-radius:var(--ui-radius-small); }
.ui-player-title { display: flex; align-items: center; gap: 15px; margin: 3px 0 14px; }
.ui-player-title strong { font: 20px var(--dsh-serif); }
.ui-player-title small { display: block; font-size: 12px; color: #ad9b7f; margin-top: 8px; }
.ui-seek { width: 100%; accent-color: #d9b48a; height: 18px; margin: 0; cursor: pointer; }
.ui-seek { appearance: none; background: transparent; }
.ui-seek::-webkit-slider-runnable-track,.dsh-music__vol input[type=range]::-webkit-slider-runnable-track { height: 2px; background: #b69c754d; }
.ui-seek::-webkit-slider-thumb { appearance: none; width: 9px; height: 9px; border-radius: 50%; background: #e3bc8f; margin-top: -3.5px; border: 0; }
.ui-seek::-moz-range-track { height: 2px; background: #b69c754d; }
.ui-seek::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #e3bc8f; border: 0; }
.ui-transport .dsh-music__btn,.dsh-music__vol .dsh-music__btn { display: grid; place-items: center; }
.ui-transport .ui-icon { width: 21px; height: 21px; }
.dsh-music__head #music-rescan { margin-left: auto; }
.dsh-music__head b { white-space: nowrap; font-size: 16px; }
.ui-player-title>div { min-width: 0; }.ui-player-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.ui-time { display: flex; justify-content: space-between; font: 11px Georgia,serif; color: #b6a181; }
.ui-help { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23856843' opacity='.1' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"),radial-gradient(ellipse at top left,#f1e4cd,transparent 80%); }
.ui-settings:empty { display: none; }
body.walking .dsh-foot { bottom: 65px; }
body.walking #walk-tip { bottom: 35px; }
.ui-transport { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 10px 0 18px; }
.ui-transport #music-play { border: 1px solid #d8b78b; border-radius: 50%; width: 43px; height: 43px; }
.ui-tracklist summary { cursor: pointer; font-size: 12px; letter-spacing: 2px; padding: 8px 0; color: #b9a685; }
#start.curtain { background: #121410bd; backdrop-filter: blur(6px); z-index: 85; }
#start .card { border-radius:var(--ui-radius-panel); border: 1px solid #b99c7166; background: #1d1e19eb; padding: 45px; text-align: center; }
#start h2 { font: 32px/1.6 var(--dsh-serif); }
#start .overline { color: #b6a180; font-size: 12px; }
#start .primary { border-radius:var(--ui-radius-control); background: #c5a37324; color: #ecd3ac; font-family: var(--dsh-serif); }
#to-study-start { margin-top: 12px; width: 100%; }
body.town-embedded::before,body.town-embedded::after,body.town-embedded>.ui-mode,body.town-embedded>.dsh-chapter,body.town-embedded>#dsh-music { display: none; }
@media(max-width:1000px) { .ui-mode { top: 45px; font-size: 16px; } h1 { font-size: 40px; } .brand p,.identity .eyebrow { font-size: 11px; letter-spacing: 2px; } .ui-guidance { font-size: 21px; } .ui-guidance::before,.ui-guidance::after { width: 36px; } .compass { top: 43px; } }
@media(max-width:700px) {
  body::after { inset: 10px; } header { top: 25px; left: 24px; right: 19px; } h1 { font-size: 33px; letter-spacing: 1px; }
  .brand,.identity { gap: 5px; } .brand p,.identity .eyebrow { font-size: 10px; letter-spacing: 1px; margin-top: 7px; }
  .seal { font-size: 8px; margin-top: 5px; } .dsh-tools { gap: 2px; padding-top: 0; }
  #fullscreen,#help { width: 35px; height: 38px; padding: 8px; } #lights { font-size: 11px; letter-spacing: 0; } #lights i { display: none; }
  .dsh-tools #to-study { font-size: 11px; letter-spacing: 0; padding: 9px 4px; }
  .ui-mode { top: 123px; font-size: 15px; } .ui-mode::before { width: 48px; top: -16px; }
  .dsh-rail { top: 191px; right: 13px; gap: 3px; } .dsh-rail__panel { max-height: calc(100dvh - 340px); padding: 16px 12px; }
  .dsh-rail__item { width: 145px; font-size: 14px; } .dsh-rail__handle { width: 35px; }
  .dsh-foot { bottom: 108px; width: calc(100vw - 56px); } .ui-guidance { font-size: 19px; letter-spacing: 2px; }
  .ui-guidance::before,.ui-guidance::after { width: 24px; } .ui-guidance::before { right: calc(100% + 12px); } .ui-guidance::after { left: calc(100% + 12px); }
  .hint,.dsh-hint { font-size: 11px; letter-spacing: 1px; }
  .dsh-chapter { display: block; left: 24px; bottom: 29px; font-size: 10px; letter-spacing: 1px; }
  .dsh-actions { right: 24px; bottom: 56px; gap: 7px; max-width: 100%; } .dsh-actions .dsh-btn,#walk { font-size: 12px; padding: 9px 11px; letter-spacing: 1px; }
  #music { bottom: 174px; right: 24px; width: 48px; height: 48px; padding: 11px; } #music::before { top: 12px; }
  .dsh-music { top: auto; bottom: 230px; right: 24px; left: auto; width: min(312px,calc(100vw - 48px)); max-height: calc(100dvh - 260px); padding: 20px; }
  #walk-tip { bottom: 151px; font-size: 11px; max-width: 75vw; line-height: 1.6; }
  body.walking .dsh-foot { bottom: 127px; } body.walking #walk-tip { bottom: 93px; }
  .compass { top: 109px; transform: translateX(-50%) scale(.8); }
  #minimap-panel { top: 173px; left: 24px; width: 102px; height: 102px; padding: 4px; }
  #minimap-panel canvas { width: 92px; height: 92px; } .map-legend { top: 110px; font-size: 8px; gap: 2px; }
  #visit-count { top: 305px; left: 24px; font-size: 10px; } #where { left: 24px; bottom: 185px; }
  #where b { font-size: 15px; } #where small { font-size: 10px; } #prompt { bottom: 230px; font-size: 17px; }
  #edge-hint { bottom: 280px; } .ui-help { padding: 28px; } .ui-help dl { grid-template-columns: 98px 1fr; font-size: 14px; gap: 13px 8px; }
  #touch-walk { left: 20px; bottom: 215px; } #touch-walk button { width: 36px; height: 36px; background: #1c1c1980; }
  #start .card { padding: 28px; } #start h2 { font-size: 26px; }
}
@media(max-height:570px) { .dsh-foot { bottom: 36px; } .dsh-chapter { bottom: 17px; } #walk-tip { bottom: 93px; } #minimap-panel { top: 119px; width: 110px; height: 110px; } #minimap-panel canvas { width: 98px; height: 98px; } .map-legend { top: 115px; } #visit-count { top: 261px; } .dsh-rail { top: 120px; } .dsh-rail__panel { max-height: calc(100dvh - 150px); } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none!important; transition: none!important; } }

/* 拖动进度条时滑块放大一点，手感更明确 */
.ui-seek.is-scrubbing { cursor: grabbing; }
.ui-seek.is-scrubbing::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -5.5px; }
.ui-seek.is-scrubbing::-moz-range-thumb { width: 13px; height: 13px; }

/* Shared rounded surfaces in the study and water-town scenes. */
body :where(button,summary,select,input:not([type=range]):not([type=color])){border-radius:var(--ui-radius-control)}
body :is(.dsh-rail__panel,.dsh-music,.ui-help,#start .card,#pause .card,#anchor-panel){border-radius:var(--ui-radius-panel)}
body :is(#where,#visit-count,#perf,#prompt,#edge-hint,#toast,#walk-tip,.hotspot){border-radius:var(--ui-radius-control)}
body :is(.dsh-seal,.seal,kbd,.ui-player-art){border-radius:var(--ui-radius-small)}

/* Feedback stays on the UI; object grips never move away from the material. */
body :is(button,summary):not(.process-grip,.winding-ring,.hand-end,.placement-grip,.join-grip,.tie-node,.clamp-handle,.carry-wave,.carry-inspect,.mobile-interact,.paint-colors>button,.sheet-heading button){transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease,box-shadow 180ms ease,opacity 180ms ease,translate 140ms ease,scale 90ms ease;touch-action:manipulation}
body :is(button,summary):not(.process-grip,.winding-ring,.hand-end,.placement-grip,.join-grip,.tie-node,.clamp-handle,.carry-wave,.carry-inspect,.mobile-interact,.paint-colors>button,.sheet-heading button):hover:not(:disabled){translate:0 -1px;border-color:#e5c58a9c;box-shadow:inset 0 1px 0 #fff1cd16,0 3px 9px #0b100e24}
body :is(button,summary):not(.process-grip,.winding-ring,.hand-end,.placement-grip,.join-grip,.tie-node,.clamp-handle,.carry-wave,.carry-inspect,.mobile-interact,.paint-colors>button,.sheet-heading button):active:not(:disabled){translate:0 0;scale:.97;box-shadow:inset 0 1px 5px #100e0929}
body :is(button,summary,select,input):focus-visible{outline:2px solid #efd69b;outline-offset:3px;box-shadow:0 0 0 5px #edcc8326}
@keyframes ui-panel-reveal{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){body :is(button,summary):not(.process-grip,.winding-ring,.hand-end,.placement-grip,.join-grip,.tie-node,.clamp-handle,.carry-wave,.carry-inspect,.mobile-interact,.paint-colors>button,.sheet-heading button){transition:none!important;translate:none!important;scale:none!important}}
body :is(.dsh-music[data-open=true],.ui-help[open],#view-rail[data-open=true] .dsh-rail__panel,.town-menu[open] .town-menu-panel){animation:ui-panel-reveal 180ms ease-out both}
body .dsh-rail__item[aria-pressed=true]{box-shadow:inset 2px 0 #d8b485,0 0 0 1px #d5b88222}
@media(prefers-reduced-motion:reduce){body :is(.tool-dialog,.workshop-menu-panel,.task-detail,.craft-settings,.paint-settings,.finish-detail,.dsh-music,.ui-help,.dsh-rail__panel,.town-menu-panel){animation:none}}
@media(hover:none){body :is(button,summary):not(.process-grip,.winding-ring,.hand-end,.placement-grip,.join-grip,.tie-node,.clamp-handle,.carry-wave,.carry-inspect,.mobile-interact,.paint-colors>button,.sheet-heading button):hover:not(:disabled){translate:none}}

/* 手机端：上面 ≤1000px / ≤700px 的放大规则是给工坊与水乡的触摸界面用的，
   书房沿用桌面尺度即可；否则手机上书房标题(33px)比桌面(26px)还大，整屏 UI 都偏大。 */
@media(max-width:1000px){
 body.study-scene h1{font-size:23px;letter-spacing:5px}
 body.study-scene .brand p{font-size:7px;letter-spacing:2px;margin-bottom:6px}
 body.study-scene .seal{font-size:13px;padding:4px 7px}
 body.study-scene .ui-mode{top:30px;font-size:12px}
 body.study-scene .ui-guidance{font-size:13px}
 body.study-scene .ui-guidance::before,body.study-scene .ui-guidance::after{width:20px}
 body.study-scene .compass{top:30px}
 body.study-scene #lights{font-size:11px;padding:9px 13px}
}
@media(max-width:700px){
 body.study-scene header{top:14px;left:18px;right:16px}
 body.study-scene h1{font-size:19px;letter-spacing:3px}
 body.study-scene .brand{gap:8px}
 body.study-scene .brand p{font-size:6px;letter-spacing:1.3px;margin-bottom:5px}
 body.study-scene .seal{font-size:12px;padding:3px 6px}
 body.study-scene footer{left:16px;right:16px;bottom:12px}
 body.study-scene nav button{padding:9px 9px;font-size:9px}
 body.study-scene nav span{font-size:9px;margin-left:4px}
 body.study-scene #walk{padding:11px 14px;font-size:10px}
 body.study-scene #walk-tip{top:74px;font-size:10px;padding:8px 12px;width:min(86vw,320px)}
 body.study-scene #lights{font-size:10px;padding:8px 11px}
 body.study-scene #lights i{margin-right:6px}
}
