/* INPUT: index.html 中声明的游戏 UI 结构、视口尺寸及浏览器交互状态。 */
/* OUTPUT: 覆盖桌面与移动端的克制米白、湖绿、暖金游戏界面。 */
/* POS: 一汀 STILLWATER 页面样式；主要作用于全景 Canvas 上的状态、切换器与弹窗。 */
/* PROTOCOL: 修改样式与 HTML 状态约定时同步检查本说明、页面入口及所属目录文档。 */
@charset "UTF-8";

:root {
  color-scheme: light;
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --ink: #243630;
  --ink-soft: #52625a;
  --paper: #fffdf5;
  --paper-warm: #f7f3e8;
  --green: #426550;
  --green-dark: #294637;
  --sage: #879b7a;
  --gold: #c5934e;
  --gold-light: #edd69a;
  --ui-shadow: 0 14px 42px rgba(35, 47, 37, .11), 0 2px 8px rgba(35, 47, 37, .055);
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { width: 100%; height: 100%; min-width: 320px; margin: 0; overflow: hidden; }

body { background: #99a68f; color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; user-select: none; -webkit-tap-highlight-color: transparent; }

button { color: inherit; font: inherit; }

button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

[hidden] { display: none !important; }

.game { --cast-bottom: clamp(105px,14vh,137px); --cast-height: 53px; position: relative; width: 100%; height: 100%; min-height: 380px; isolation: isolate; overflow: hidden; }

.world { position: absolute; inset: 0; display: block; width: 100%; height: 100%; z-index: -3; outline: none; }

.scene-grain, .scene-shade { position: absolute; z-index: -2; inset: 0; pointer-events: none; }

.scene-grain { opacity: .16; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.2' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }

.scene-shade { z-index: -1; background: linear-gradient(180deg, rgba(32, 43, 33, .25) 0%, rgba(32,43,33,.065) 11%, transparent 24%, transparent 70%, rgba(24,37,31,.09) 100%), linear-gradient(90deg, rgba(25,37,31,.13) 0%, transparent 26%, transparent 76%, rgba(25,37,31,.08) 100%); }

.topbar { position: absolute; inset: max(env(safe-area-inset-top), 26px) clamp(24px, 4.25vw, 68px) auto; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }

.brand-lockup, .topbar-tools { pointer-events: auto; }
.brand-lockup { text-decoration: none; }
.brand-lockup:focus-visible { outline: 2px solid #fff3ce; outline-offset: 5px; }
html[lang="en"] .brand-lockup .brand-divider,
html[lang="en"] .brand-lockup .brand-caption { display: none; }
html[lang="en"] .brand-title { font-size: clamp(19px, 4vw, 33px); letter-spacing: 0; }
.game-noscript { position: absolute; z-index: 6; inset: 25% 16px auto; padding: 15px; text-align: center; background: var(--paper); border-radius: 10px; }

.brand-lockup { display: inline-flex; align-items: center; gap: 15px; color: #fffcf3; filter: drop-shadow(0 1px 7px rgba(23,34,27,.27)); }

.brand-title { font: 400 33px/.9 var(--serif); letter-spacing: .08em; white-space: nowrap; }

.brand-waterline { margin-left: 2px; }

.brand-divider { height: 32px; width: 1px; background: rgba(255,252,243,.57); }

.brand-caption { display: grid; gap: 6px; font-size: 10px; font-weight: 500; letter-spacing: .21em; white-space: nowrap; }

.brand-edition { font-size: 8px; font-weight: 400; letter-spacing: .24em; opacity: .74; }

.topbar-tools { display: flex; align-items: center; gap: 7px; padding: 6px; border: 1px solid rgba(255,253,246,.34); border-radius: 14px; background: rgba(249,247,237,.15); box-shadow: 0 2px 15px rgba(34,42,34,.075); color: #fffdf5; backdrop-filter: blur(16px) saturate(108%); -webkit-backdrop-filter: blur(16px) saturate(108%); }

.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 39px; height: 37px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: inherit; cursor: pointer; transition: background .2s ease, transform .2s ease, color .2s ease; }

.icon-button svg { width: 19px; height: 19px; flex: 0 0 auto; }

.icon-button:hover { transform: translateY(-1px); background: rgba(255,252,242,.17); }

.icon-button:active { transform: translateY(0) scale(.96); }

.tool-caption { font-size: 11px; letter-spacing: .055em; white-space: nowrap; }

.tool-count { position: absolute; right: 4px; top: 1px; display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid rgba(255,252,243,.42); border-radius: 50%; background: rgba(43,68,49,.48); font-size: 9px; font-variant-numeric: tabular-nums; }

.journal-button { width: auto; min-width: 89px; padding: 0 9px; }
.scenic-button { width: auto; padding: 0 9px; }
.scenic-caption { font-size: 11px; white-space: nowrap; }

.tools-rule { width: 1px; height: 18px; margin: 0 3px; background: rgba(255,253,246,.34); }

.location-card { position: absolute; top: clamp(108px, 15vh, 157px); left: clamp(27px, 5.4vw, 87px); width: 245px; padding: 19px 22px 16px; border: 1px solid rgba(255, 251, 236, .44); border-radius: 4px 15px 15px 15px; background: linear-gradient(138deg, rgba(250, 249, 239, .75), rgba(250, 247, 234, .54)); box-shadow: 0 9px 35px rgba(42,52,41,.075), inset 0 1px rgba(255,255,255,.65); backdrop-filter: blur(15px) saturate(113%); -webkit-backdrop-filter: blur(15px) saturate(113%); animation: card-arrive .85s both cubic-bezier(.2,.72,.28,1); }

.location-kicker { display: flex; align-items: center; gap: 8px; color: #596a59; font-size: 10px; letter-spacing: .095em; }

.location-pin { width: 6px; height: 6px; border: 1px solid var(--green); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

.location-card h1 { margin: 10px 0 3px; color: #34483b; font: 400 29px/1.2 var(--serif); letter-spacing: .08em; }

.location-period { padding-left: 2px; color: #be9258; }

.location-en { color: #788275; font-size: 8px; letter-spacing: .2em; }

.location-rule { display: block; width: 27px; height: 1px; margin: 14px 0 11px; background: #a7af93; }

.weather-line { display: flex; align-items: center; gap: 7px; color: #56644f; font-size: 10px; letter-spacing: .04em; }

.weather-line svg { width: 15px; height: 15px; }

.weather-separator { padding: 0 3px; color: #a28d63; }

.weather-time { margin-left: auto; color: #5e6959; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }

.weather-time span { padding: 0 1px; color: #b58b50; }

.location-note { margin: 11px 0 0; color: #777b6d; font-family: var(--serif); font-size: 11px; letter-spacing: .025em; }

.game-status { position: absolute; top: 40%; left: 50%; display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 12px; min-width: 270px; max-width: min(430px, 68vw); padding: 11px 16px; border: 1px solid rgba(255,251,238,.52); border-radius: 10px; background: rgba(250,248,238,.76); box-shadow: 0 10px 32px rgba(36,49,39,.07), inset 0 1px rgba(255,255,255,.65); transform: translateX(-50%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }

.status-indicator { display: block; width: 7px; height: 7px; border-radius: 50%; background: #88a17b; box-shadow: 0 0 0 3px rgba(123,155,111,.16); animation: quiet-pulse 2.5s ease-in-out infinite; }

.status-copy { display: grid; gap: 4px; min-width: 0; }

.status-copy strong { overflow: hidden; color: #34443a; font-family: var(--serif); font-size: 12px; font-weight: 400; letter-spacing: .065em; text-overflow: ellipsis; white-space: nowrap; }

.status-copy > span { color: #7b7b6e; font-size: 10px; letter-spacing: .035em; }

.status-chip { display: inline-grid; min-width: 37px; place-items: center; padding: 4px 7px; border: 1px solid rgba(92,112,84,.16); border-radius: 20px; background: rgba(133,158,116,.12); color: #607357; font-size: 9px; letter-spacing: .1em; }

.status-indicator.is-bite { background: #dc9865; box-shadow: 0 0 0 4px rgba(225,153,92,.18), 0 0 18px rgba(238,179,106,.55); animation: bite-pulse .65s ease-in-out infinite alternate; }

.status-chip.is-bite { border-color: rgba(208,143,85,.38); background: rgba(227,177,112,.2); color: #905e39; }

.taunt { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255,250,237,.65); border-radius: 22px 22px 22px 4px; background: rgba(255,250,237,.89); box-shadow: 0 8px 24px rgba(30,45,34,.12); color: #52684f; font: 11px/1.4 var(--serif); letter-spacing: .04em; animation: taunt-appear .3s both; pointer-events: none; }

.taunt-symbol { color: #c08b4c; font-size: 13px; }

.meters, .fight-panel { position: absolute; right: clamp(23px, 4.6vw, 76px); bottom: 142px; width: min(228px, 35vw); padding: 13px 15px 12px; border: 1px solid rgba(255,249,233,.54); border-radius: 11px; background: rgba(250,248,238,.79); box-shadow: 0 9px 29px rgba(36,49,39,.08); backdrop-filter: blur(13px); -webkit-backdrop-filter: blur(13px); }

.cast-meter { display: grid; grid-template-columns: auto 1fr 28px; align-items: center; gap: 9px; }

.meter-label { color: #66705d; font-size: 10px; white-space: nowrap; }

.cast-track, .fight-track { position: relative; display: block; height: 4px; overflow: hidden; border-radius: 5px; background: rgba(87,101,79,.14); }

.cast-fill, .tension-fill, .stamina-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #a3ae85, #cfaa68); transition: width .12s ease-out; }

.meter-numeral { color: #89907b; font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }

.fight-panel { right: 50%; bottom: 145px; width: min(248px, 65vw); transform: translateX(50%); }

.fight-heading { display: flex; justify-content: space-between; margin-bottom: 10px; color: #576655; font-size: 10px; letter-spacing: .06em; }

.fight-heading > span:first-child { font-family: var(--serif); font-size: 12px; }

.fight-heading > span:last-child { color: #828274; font-size: 9px; }

.fight-row { display: flex; align-items: center; gap: 9px; }

.fight-row + .fight-row { margin-top: 7px; }

.fight-icon { width: 12px; color: #919681; font-size: 12px; text-align: center; }

.fight-icon-tension { color: #8a795e; font-size: 15px; }

.tension-fill { background: linear-gradient(90deg, #a6b480, #c19a59); }

.tension-fill.is-danger { background: linear-gradient(90deg, #c19a59, #ba7559); }

.stamina-fill { background: linear-gradient(90deg, #93ada2, #8395a0); }

.fight-footnote { margin: 10px 0 0 21px; color: #8b8879; font-size: 9px; letter-spacing: .035em; }

.cast-control { position: absolute; right: clamp(24px, 5.5vw, 90px); bottom: var(--cast-bottom); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }

.cast-instructions { display: flex; align-items: center; gap: 6px; color: #fff9eb; filter: drop-shadow(0 1px 4px rgba(22,32,25,.37)); font-size: 10px; letter-spacing: .045em; }

.cast-instruction-icon { color: #f3daa1; font-size: 14px; }

.instruction-divider { padding: 0 4px; color: rgba(255,250,237,.6); }

.action-button { position: relative; display: flex; align-items: center; width: 150px; height: 53px; padding: 0; overflow: hidden; border: 1px solid rgba(255,244,216,.67); border-radius: 10px; background: linear-gradient(136deg, #f1e4bd 0%, #dbca9e 100%); box-shadow: 0 6px 20px rgba(25,37,28,.2), inset 0 1px rgba(255,255,255,.8); color: #38493b; cursor: pointer; pointer-events: auto; transition: background .2s, box-shadow .2s, transform .16s; touch-action: none; -webkit-user-select: none; user-select: none; }

.action-button:hover { box-shadow: 0 9px 27px rgba(25,37,28,.25), inset 0 1px rgba(255,255,255,.95); filter: brightness(1.045); transform: translateY(-1px); }

.action-button:active, .action-button.is-pressed { transform: translateY(1px) scale(.988); background: linear-gradient(136deg, #e8d6a6, #c7b17e); box-shadow: 0 2px 8px rgba(25,37,28,.16), inset 0 2px 5px rgba(56,67,48,.12); }

.action-button.is-pressed { border-color: rgba(240,214,156,.95); }

.action-button:focus-visible { outline-color: #fff3ce; }

.action-button-inner { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: center; gap: 6px; padding-left: 8px; font-family: var(--serif); font-size: 14px; letter-spacing: .04em; }
.action-button-inner > span:first-child { white-space: nowrap; }

.action-key { padding: 3px 5px; border: 1px solid rgba(81,88,66,.22); border-radius: 4px; color: #767765; font-size: 8px; line-height: 1.2; font-family: var(--serif); letter-spacing: .1em; }

.action-button > svg { width: 16px; height: 16px; margin-right: 14px; color: #697b67; transition: transform .2s; }

.action-button:hover > svg { transform: translateX(3px); }

.action-button-shine { position: absolute; inset: -70% auto -70% -30%; width: 32%; transform: rotate(20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.23), transparent); animation: sheen 6s ease-in-out 2s infinite; }

.bottom-bar { position: absolute; inset: auto clamp(24px, 4.25vw, 68px) max(env(safe-area-inset-bottom), 25px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; min-height: 47px; pointer-events: none; }

.field-notes, .view-switcher, .controls-hint { pointer-events: auto; }

.field-notes { display: flex; align-items: center; justify-self: start; gap: 14px; min-height: 45px; padding: 7px 13px 7px 11px; border: 1px solid rgba(255,250,237,.29); border-radius: 9px; background: rgba(42,53,43,.25); color: #fffaf0; box-shadow: 0 3px 15px rgba(25,36,28,.07); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.field-icon { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255,249,231,.27); border-radius: 50%; color: #e3d2a8; }

.field-icon svg { width: 16px; height: 16px; }

.field-stat { display: grid; gap: 3px; min-width: 31px; }

.field-stat > strong { font-family: var(--serif); font-size: 15px; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1; }

.field-stat > span, .record-stat > span { color: rgba(255,250,240,.72); font-size: 8px; letter-spacing: .075em; white-space: nowrap; }

.stat-slash { font: 9px Arial,sans-serif; opacity: .77; }

.field-divider { display: block; width: 1px; height: 20px; background: rgba(255,249,236,.3); }

.record-stat { display: grid; gap: 3px; min-width: 45px; }

.record-stat > strong { font-family: var(--serif); font-size: 12px; font-weight: 400; line-height: 1; }

.record-stat small { color: rgba(255,249,236,.75); font-size: 8px; }

.view-switcher { display: flex; align-items: center; justify-self: center; min-height: 47px; gap: 4px; padding: 5px; border: 1px solid rgba(255,251,239,.54); border-radius: 12px; background: rgba(248,246,235,.83); box-shadow: var(--ui-shadow), inset 0 1px rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(112%); -webkit-backdrop-filter: blur(16px) saturate(112%); }

.view-button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 35px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #657165; cursor: pointer; font-family: var(--serif); font-size: 11px; letter-spacing: .035em; white-space: nowrap; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }

.view-button svg { width: 19px; height: 19px; opacity: .79; transition: opacity .2s, transform .3s; }

.view-button kbd { display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border: 1px solid #e3ded1; border-radius: 4px; color: #8a877a; font: 8px/1 Arial,sans-serif; letter-spacing: .02em; }

.view-button:hover { background: rgba(91,116,82,.07); color: #465a48; }

.view-button:hover svg { opacity: 1; transform: translateY(-1px); }

.view-button.is-active { border-color: rgba(89,110,79,.13); background: linear-gradient(140deg,#61775d,#455f4c); box-shadow: 0 2px 7px rgba(44,65,46,.15), inset 0 1px rgba(255,255,255,.1); color: #fffbee; }

.view-button.is-active svg { opacity: .94; }

.view-button.is-active kbd { border-color: rgba(255,249,231,.2); background: rgba(255,252,237,.13); color: rgba(255,251,238,.8); }

.switcher-divider { width: 1px; height: 19px; margin: 0 1px; background: #ddd9cd; }

.controls-hint { display: flex; align-items: center; justify-self: end; gap: 9px; min-height: 36px; padding: 0 2px; color: #fffaf0; filter: drop-shadow(0 1px 4px rgba(22,32,25,.3)); }

.control-hint { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

.control-hint kbd { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid rgba(255,252,239,.48); border-radius: 5px; background: rgba(246,242,226,.13); color: #fffaf0; font: 9px/1 Arial,sans-serif; }

.control-hint > span { font-size: 9px; letter-spacing: .035em; }

.hint-separator { color: rgba(255,250,237,.6); font-size: 12px; }

.toast { position: absolute; z-index: 6; top: 19%; left: 50%; max-width: min(410px, calc(100% - 38px)); padding: 11px 18px; border: 1px solid rgba(255,252,241,.73); border-radius: 8px; background: rgba(250,248,239,.93); box-shadow: 0 7px 28px rgba(29,41,32,.12); color: #435344; font: 12px/1.5 var(--serif); letter-spacing: .06em; text-align: center; transform: translateX(-50%); animation: toast-arrive .28s both; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: none; }

.loading { position: fixed; z-index: 30; inset: auto auto 25px 50%; display: flex; align-items: center; gap: 10px; min-width: 177px; padding: 10px 14px; transform: translateX(-50%); border: 1px solid rgba(255,252,241,.65); border-radius: 8px; background: rgba(250,248,239,.92); box-shadow: 0 5px 22px rgba(29,41,32,.1); transition: opacity .48s ease, transform .48s ease; pointer-events: none; }

.loading.is-done { opacity: 0; transform: translate(-50%, 7px); }

.loading-mark { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(113,135,101,.34); border-radius: 50%; }

.loading-mark span { display: block; width: 9px; height: 9px; border: 1px solid #859779; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); animation: leaf-turn 2.8s ease-in-out infinite; }

.loading-copy { display: grid; gap: 3px; }

.loading-title { color: #53634f; font-family: var(--serif); font-size: 10px; letter-spacing: .08em; }

.loading-subtitle { color: #909182; font-size: 7px; letter-spacing: .19em; }

.paper-dialog, .catch-dialog { position: fixed; max-width: calc(100vw - 30px); max-height: min(760px, calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.72); border-radius: 6px; background: #f7f4e9; color: var(--ink); box-shadow: 0 26px 100px rgba(22,34,24,.3), 0 5px 18px rgba(22,34,24,.15), inset 0 0 0 5px rgba(170,158,129,.09); scrollbar-color: #a3aa91 transparent; scrollbar-width: thin; overscroll-behavior: contain; }

.paper-dialog { width: min(510px, calc(100vw - 34px)); }

.paper-dialog::backdrop, .catch-dialog::backdrop { background: rgba(25,37,29,.37); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }

.paper-dialog[open], .catch-dialog[open] { animation: dialog-arrive .3s cubic-bezier(.22,.72,.3,1); }

.dialog-topline, .dialog-bottomline { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin: 0 27px; }

.dialog-topline { border-bottom: 1px solid rgba(86,104,78,.16); }

.dialog-kicker, .dialog-bottomline { color: #788071; font-size: 8px; letter-spacing: .14em; }

.dialog-close { display: flex; align-items: center; gap: 7px; padding: 6px; border: 0; background: transparent; color: #6d7567; cursor: pointer; font-size: 10px; letter-spacing: .04em; }

.dialog-close > span { font: 19px/1 Arial,sans-serif; }

.dialog-close:hover { color: #334a39; }

.dialog-content { min-height: 145px; padding: 28px 30px 33px; }

.dialog-content h2 { margin: 0 0 19px; color: #34483a; font: 400 27px/1.3 var(--serif); letter-spacing: .08em; }

.dialog-content h3 { margin: 22px 0 8px; color: #52644e; font: 400 14px var(--serif); letter-spacing: .075em; }

.dialog-content p, .dialog-content li { color: #697367; font-size: 12px; line-height: 1.95; letter-spacing: .025em; }

.dialog-content ul { margin: 6px 0 0; padding-left: 18px; }

.dialog-bottomline { min-height: 37px; border-top: 1px solid rgba(86,104,78,.14); font-size: 8px; }

.catch-dialog { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1fr); width: min(648px, calc(100vw - 38px)); overflow: hidden; border-radius: 9px; }
.catch-dialog:not([open]) { display: none; }

.catch-close { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255,255,255,.56); border-radius: 50%; background: rgba(247,244,233,.84); color: #5d6956; cursor: pointer; font: 20px/1 Arial,sans-serif; backdrop-filter: blur(10px); }

.catch-close:hover { background: #fffdf6; }

.catch-image-frame { position: relative; display: flex; min-height: 310px; overflow: hidden; background: linear-gradient(156deg,#d7dfce,#98ac96); }

#catch-art { width: 100%; height: 100%; min-height: 310px; object-fit: contain; }

.catch-image-frame::after { position: absolute; inset: 42% 0 0; background: linear-gradient(180deg,transparent,rgba(24,38,30,.22)); content: ""; pointer-events: none; }

.catch-image-label, .catch-image-index { position: absolute; z-index: 1; bottom: 15px; color: rgba(255,252,239,.89); text-shadow: 0 1px 5px rgba(23,36,27,.45); font-size: 7px; letter-spacing: .17em; }

.catch-image-label { left: 16px; }

.catch-image-index { right: 15px; font-variant-numeric: tabular-nums; }

.catch-description { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 35px 27px 24px; }

.catch-kicker { color: #879078; font-size: 8px; letter-spacing: .13em; }

.catch-rarity { margin-top: 25px; padding: 4px 9px; border: 1px solid rgba(192,154,94,.35); border-radius: 20px; background: rgba(213,187,129,.12); color: #947244; font-size: 9px; letter-spacing: .1em; }

.catch-title { margin: 9px 0 4px; color: #354a3a; font: 400 23px/1.45 var(--serif); letter-spacing: .075em; }

.catch-latin { color: #86887a; font: italic 10px/1.5 Georgia,serif; letter-spacing: .04em; }

.catch-measurements { display: flex; gap: 29px; width: 100%; margin-top: 24px; padding: 15px 0; border-block: 1px solid rgba(86,104,78,.15); }

.catch-measurements > span { display: grid; gap: 6px; }

.catch-measurements small { color: #8a897b; font-size: 8px; letter-spacing: .11em; }

.catch-measurements strong { color: #465541; font: 400 17px var(--serif); font-variant-numeric: tabular-nums; }

.catch-note { margin: 15px 0 19px; color: #76796c; font: 11px/1.7 var(--serif); }

.release-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 41px; padding: 0 13px; border: 1px solid rgba(75,103,77,.33); border-radius: 6px; background: rgba(91,120,87,.065); color: #52694f; cursor: pointer; font-family: var(--serif); font-size: 11px; letter-spacing: .08em; transition: background .2s, border-color .2s; }

.release-button:hover { border-color: rgba(75,103,77,.56); background: rgba(91,120,87,.12); }

.release-arrow { font-size: 14px; transition: transform .2s; }

.release-button:hover .release-arrow { transform: translate(2px,-2px); }

@keyframes quiet-pulse { 0%, 100% { opacity: .76; box-shadow: 0 0 0 3px rgba(123,155,111,.13); } 50% { opacity: 1; box-shadow: 0 0 0 5px rgba(123,155,111,.06); } }
@keyframes bite-pulse { from { transform: scale(.89); } to { transform: scale(1.2); } }
@keyframes card-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes taunt-appear { from { opacity: 0; transform: translateY(5px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-arrive { from { opacity: 0; margin-top: -5px; } to { opacity: 1; margin-top: 0; } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(8px) scale(.988); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sheen { 0%, 19%, 100% { transform: translateX(-30%) rotate(20deg); } 36% { transform: translateX(540%) rotate(20deg); } }
@keyframes leaf-turn { 0%, 100% { transform: rotate(-45deg); opacity: .6; } 45% { transform: rotate(100deg); opacity: 1; } 74% { transform: rotate(220deg); opacity: .72; } }

@media (min-width: 1500px) {
  .game-status { top: 42%; }
  .location-card { top: 16vh; }
}

@media (max-width: 800px) {
  .game { --cast-bottom: 115px; --cast-height: 47px; }
  .topbar { right: 19px; left: 23px; }
  .brand-lockup { gap: 11px; }
  .brand-title { font-size: 29px; }
  .brand-caption { font-size: 9px; }
  .brand-edition { font-size: 7px; }
  .location-card { top: 111px; left: 26px; width: 212px; padding: 16px 18px 14px; }
  .location-card h1 { font-size: 25px; }
  .game-status { top: 41%; }
  .bottom-bar { right: 17px; left: 17px; grid-template-columns: 1fr auto; row-gap: 9px; }
  .field-notes { grid-column: 1; grid-row: 1; min-height: 37px; padding: 5px 9px; gap: 9px; }
  .field-icon { width: 21px; height: 21px; }
  .field-icon svg { width: 14px; height: 14px; }
  .field-stat > strong { font-size: 13px; }
  .field-divider { height: 17px; }
  .record-stat { display: none; }
  .field-divider-record { display: none; }
  .view-switcher { grid-column: 1 / -1; grid-row: 2; }
  .controls-hint { grid-column: 2; grid-row: 1; gap: 6px; }
  .controls-hint .control-hint:first-child { display: none; }
  .cast-control { right: 25px; }
  .action-button { width: 127px; height: 47px; }
  .action-button-inner { font-size: 13px; }
  .cast-instructions { font-size: 9px; }
  .meters { right: 19px; bottom: 178px; width: 211px; }
  .fight-panel { bottom: 182px; }
}

@media (max-width: 480px) {
  .game { min-height: 390px; --cast-bottom: 104px; --cast-height: 42px; }
  .topbar { top: max(env(safe-area-inset-top), 15px); right: 12px; left: 17px; }
  .brand-lockup { gap: 8px; }
  .brand-title { font-size: 27px; }
  .brand-divider { height: 26px; }
  .brand-caption { gap: 4px; font-size: 8px; letter-spacing: .15em; }
  .brand-edition { font-size: 6px; letter-spacing: .13em; }
  .topbar-tools { gap: 2px; padding: 4px; border-radius: 11px; }
  .journal-button { width: 38px; min-width: 38px; }
  .journal-button .tool-caption, .journal-button .tool-count, .tools-rule, .fullscreen-button { display: none; }
  .compact-button { width: 34px; height: 34px; }
  .scenic-button { width: 34px; padding: 0; }
  .scenic-caption { display: none; }
  .compact-button svg { width: 18px; height: 18px; }
  .location-card { top: 92px; left: 16px; width: 188px; padding: 13px 15px 11px; border-radius: 4px 12px 12px 12px; }
  .location-card h1 { margin-top: 8px; font-size: 23px; }
  .location-kicker { font-size: 9px; }
  .location-en { font-size: 7px; }
  .location-rule { margin: 10px 0 8px; }
  .weather-line, .weather-time { font-size: 9px; }
  .weather-line svg { width: 13px; height: 13px; }
  .location-note { margin-top: 8px; font-size: 10px; }
  .game-status { top: 37%; max-width: calc(100% - 40px); min-width: 0; width: min(310px, calc(100% - 40px)); padding: 9px 12px; gap: 9px; }
  .status-copy strong { font-size: 11px; }
  .status-copy > span { font-size: 9px; }
  .status-chip { min-width: 31px; padding: 4px 5px; font-size: 8px; }
  .bottom-bar { right: 10px; left: 10px; bottom: max(env(safe-area-inset-bottom), 11px); row-gap: 7px; }
  .field-notes { gap: 8px; min-height: 33px; padding: 4px 8px; border-radius: 7px; }
  .field-stat { gap: 2px; min-width: 24px; }
  .field-stat > strong { font-size: 12px; }
  .field-stat > span { font-size: 7px; }
  .stat-slash { font-size: 8px; }
  .field-divider { height: 15px; }
  .field-icon { width: 19px; height: 19px; }
  .field-icon svg { width: 13px; height: 13px; }
  .controls-hint { min-height: 30px; }
  .controls-hint .control-hint:first-child, .controls-hint .hint-separator { display: none; }
  .control-hint { gap: 4px; }
  .control-hint kbd { width: 18px; height: 18px; font-size: 8px; }
  .control-hint > span { font-size: 8px; }
  .view-switcher { min-height: 43px; width: max-content; max-width: 100%; justify-self: center; padding: 4px; border-radius: 10px; }
  .view-button { height: 33px; gap: 5px; padding: 0 9px; font-size: 10px; }
  .view-button svg { width: 16px; height: 16px; }
  .view-button kbd { min-width: 16px; height: 16px; font-size: 7px; }
  .switcher-divider { height: 16px; }
  .cast-control { right: 16px; gap: 7px; }
  .action-button { width: 111px; height: 42px; border-radius: 8px; }
  .action-button-inner { gap: 6px; padding-left: 6px; font-size: 12px; }
  .action-key { display: none; }
  .action-button > svg { width: 14px; height: 14px; margin-right: 10px; }
  .cast-instructions { font-size: 8px; }
  .meters { right: 13px; bottom: 154px; width: min(205px, 61vw); padding: 11px; }
  .fight-panel { right: 50%; bottom: 154px; }
  .toast { top: 24%; }
  .loading { bottom: max(env(safe-area-inset-bottom), 84px); }
  .catch-dialog { grid-template-columns: 1fr; grid-template-rows: minmax(155px, 29vh) 1fr; width: min(390px, calc(100vw - 28px)); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; }
  .catch-image-frame { min-height: 155px; max-height: 215px; }
  #catch-art { min-height: 155px; }
  .catch-description { padding: 19px 22px 17px; }
  .catch-rarity { margin-top: 11px; }
  .catch-title { margin-top: 5px; font-size: 19px; }
  .catch-measurements { gap: 24px; margin-top: 14px; padding: 10px 0; }
  .catch-note { margin: 10px 0; }
}

@media (max-width: 350px) {
  .game { --cast-bottom: 99px; }
  .brand-edition { display: none; }
  .brand-divider { height: 20px; }
  .topbar-tools .compact-button:last-of-type { display: none; }
  .location-card { top: 82px; left: 12px; width: 170px; }
  .location-card h1 { font-size: 21px; }
  .location-en { letter-spacing: .125em; }
  .game-status { top: 35%; }
  .view-button { gap: 4px; padding: 0 7px; font-size: 9px; }
  .field-notes { gap: 6px; }
  .cast-control { right: 12px; }
}

@media (max-height: 560px) and (min-width: 481px) {
  .game { --cast-bottom: 91px; }
  .location-card { top: 91px; width: 199px; padding: 13px 16px 11px; }
  .location-card h1 { margin-top: 6px; font-size: 23px; }
  .location-rule { margin: 8px 0 6px; }
  .location-note { margin-top: 6px; }
  .game-status { top: 35%; }
  .meters, .fight-panel { bottom: 102px; }
  .bottom-bar { bottom: max(env(safe-area-inset-bottom), 13px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dynamic state and field journal. */
.world { touch-action: none; cursor: crosshair; }
.action-button { touch-action: none; }
.location-card, .game-status { pointer-events: none; }
.action-button:disabled { cursor: default; opacity: .65; }
.sound-icon .sound-wave { opacity: .25; }
#sound-btn.is-active .sound-wave { opacity: 1; }
body[data-view="underwater"] .location-card { background: rgba(224,242,219,.66); }
body[data-view="underwater"] .location-kicker { color: #3b6554; }
body[data-phase="bite"] .game-status { background: #fff1c8; box-shadow: 0 0 35px #e8c87855; }
body[data-phase="bite"] .status-indicator { background: #d57c31; }
body[data-phase="fighting"] .game-status { top: 28%; }
body.paused .scene-shade { background: #102b2b55; }
.journal-dialog { width: min(720px, calc(100vw - 28px)); }
.journal-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.journal-entry { position: relative; padding: 8px; border: 1px solid #75806329; border-radius: 4px; text-align: center; background: #ebeadd70; }
.journal-entry canvas { display: block; width: 100%; height: 90px; object-fit: contain; }
.journal-entry.undiscovered canvas { filter: grayscale(.8); opacity: .32; }
.journal-entry h3 { margin: 0 0 6px; font-size: 13px; }
.journal-entry p { margin: 7px 0 3px; font-size: 9px; line-height: 1.5; }
.journal-number { position: absolute; left: 8px; top: 6px; color: #7e8b76; font: 9px Georgia,serif; }
.journal-rarity { color: #8c7549; font-size: 9px; }
.journal-intro { margin: -9px 0 20px; }
.journal-footer { margin-bottom: 0; font-size: 10px !important; }
.help-steps { padding-left: 22px; }
.help-steps li { padding-left: 5px; margin-bottom: 14px; }
.help-steps strong { display: block; font-weight: 600; color: #405240; }
.assist-setting { display: flex; align-items: center; gap: 13px; padding: 13px; background: #dfe5d65c; border: 1px solid #667c5230; border-radius: 5px; cursor: pointer; }
.assist-setting input { accent-color: #526c48; width: 17px; height: 17px; }
.assist-setting strong { display: block; font-size: 12px; }
.assist-setting small { display: block; margin-top: 5px; color: #6a7862; font-size: 10px; }
.help-caption { font-size: 10px !important; }
.debug-panel { position: fixed; top: 90px; right: 20px; z-index: 100; background: #06251aeb; color: #cbedd0; padding: 15px; font: 11px/1.45 monospace; pointer-events: none; }
@media(max-width:600px) { .journal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .dialog-content { padding: 22px 20px; } .journal-entry canvas { height: 85px; } }
@media(max-width:480px) { .location-card { width: 156px; padding: 12px; } .location-note,.location-rule,.weather-line { display: none; } .location-card h1 { font-size: 22px; } .game-status { top: 28%; } body[data-phase="fighting"] .game-status { top: 28%; } }
@media(max-height:500px) { .location-card { display: none; } .game-status { top: 19%; } body[data-phase="fighting"] .game-status { top: 19%; } }
.action-button { height: var(--cast-height); }
.meters { bottom: calc(var(--cast-bottom) + var(--cast-height) + 12px); }
@media(max-width:800px) { .fight-panel { bottom: calc(var(--cast-bottom) + var(--cast-height) + 12px); } }

/* 纯享只保留场景层；隐藏的界面同时设为 inert，避免键盘焦点进入。 */
body.scenic-mode #game > :not(#world):not(.scene-grain):not(.scene-shade),
body.scenic-mode .debug-panel { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
body.scenic-mode .world { cursor: none; }
body.scenic-mode .world:focus { outline: none; }
body.scenic-mode.paused .scene-shade { background: none; }
@media(max-width:380px) { .brand-caption, .brand-divider { display: none; } }
@media(min-width:481px) and (max-width:600px) {
  .scenic-caption, .tool-caption, .tool-count, .tools-rule { display: none; }
  .scenic-button, .journal-button { width: 39px; min-width: 39px; padding: 0; }
}

html[lang="en"] .action-button { width: clamp(140px, 20vw, 164px); }
