/* V3.4: reference-led ink plaques, crisp outlined text, acoustic samples, unobtrusive episode tails.
   Presentation only. Reduced-motion keeps text but disables shake and travel. */
.hud-bottom{--hud-bottom-height:calc(78px + env(safe-area-inset-bottom));height:var(--hud-bottom-height)}
.hud-bottom:before{display:none}
.chapter-line,#mediaKind{display:none!important}
.hud-top{height:calc(88px + env(safe-area-inset-top))}
.hero-name b,.hero-name span,.daoji-text,.daoji-text b,.hud-medal span,.game-notice,.game-notice b,.game-notice strong,.favor-received-value{font-family:"ZiYuKangSong","STKaiti","KaiTi",serif;font-weight:400}
.hero-name b{font-size:19px;letter-spacing:1px}
.hero-name span{font-size:11px;letter-spacing:.5px;color:#f3d89c}
.hero-name{margin-bottom:6px}
.daoji-bar{height:17px;width:124px;overflow:hidden}
.daoji-text{inset:0 4px;font-size:13px;line-height:15px;padding-top:1px;letter-spacing:.3px;gap:4px;color:#fff9e9;text-shadow:0 1px 2px #082b27,0 -1px 1px #082b27,1px 0 1px #082b27,-1px 0 1px #082b27;-webkit-text-stroke:.2px currentColor}
.daoji-text b{font-size:13px;line-height:15px}
.hud-top .hud-medal{gap:6px;min-width:56px;min-height:72px}
.hud-medal span{font-size:15px;letter-spacing:1px}
.hud-medal svg{width:40px;height:40px}
.hero-avatar img,.favor-avatar img{object-position:50% 50%;display:block}
.hero-info{min-width:142px}

/* Focus indicator belongs to the thumb, never a rectangle around the 44px hit area. */
.seek-slider:focus,.seek-slider:focus-visible{outline:none!important;box-shadow:none!important;border:0!important}
.seek-slider:focus-visible:not([data-scrubbing])::-webkit-slider-thumb{outline:2px solid #fff5db;outline-offset:3px}
.seek-slider:focus-visible:not([data-scrubbing])::-moz-range-thumb{outline:2px solid #fff5db;outline-offset:3px}
.seek-slider[data-scrubbing]::-webkit-slider-thumb{outline:none;box-shadow:0 0 10px #ffe7a1}
.seek-slider[data-scrubbing]::-moz-range-thumb{outline:none;box-shadow:0 0 10px #ffe7a1}

/* User's brush reference: generated transparent black ink, wiped on left-to-right.
   Keep the current typeface; only RED fill + BLACK outline for losses, no plaque/glow. */
.game-notice{position:absolute;left:8px;top:104px;z-index:11;pointer-events:none;display:flex;align-items:center;justify-content:center;gap:8px;width:280px;max-width:calc(100% - 16px);height:66px;padding:8px 44px 8px 16px;color:#fff1d0;isolation:isolate}
.game-notice:before{content:"";position:absolute;inset:0;z-index:-1;background:url('./assets/ui/ink-brush-v8.png') center/100% 100% no-repeat;animation:ink-sweep 340ms cubic-bezier(.18,.65,.28,1) both}
@keyframes ink-sweep{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.game-notice>div,.game-notice>img{animation:ink-label 220ms 120ms both}
@keyframes ink-label{from{opacity:0}to{opacity:1}}
.notice-content{min-width:0;display:flex;flex-direction:column;justify-content:center}
.notice-main{display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.game-notice b,.game-notice strong{font-size:28px;font-weight:400;line-height:1.2;letter-spacing:.4px;color:#fff1d0;paint-order:stroke fill;-webkit-text-stroke:2px #000;text-shadow:none}
.game-notice strong{font-size:30px;letter-spacing:0}
.game-notice.is-loss b,.game-notice.is-loss strong,.game-notice[data-kind="loss"] b,.game-notice[data-kind="loss"] strong{color:#ff7269;-webkit-text-stroke:2px #000;text-shadow:none}
.notice-context{display:block;margin:0 0 1px;font-size:14px;line-height:1.1;letter-spacing:1px;font-weight:600;color:#fff1cd;text-shadow:0 1px 1px #000}
.game-notice p{display:flex;align-items:center;gap:4px;margin:0}
.game-notice img{display:block;flex:none;width:40px;height:40px;object-fit:cover;object-position:center;border-radius:50%;border:1.5px solid #cebb86;box-shadow:0 0 0 1px #071511}
.favor-sigil{display:block;flex:none;width:18px;height:18px;fill:#e43b5e;stroke:#ffe2e8;stroke-width:1.4}
.favor-flight{width:310px;height:76px;padding-right:40px;transform:translate(-50%,-50%)}
.favor-flight b{font-size:25px}
.favor-flight strong{font-size:28px}
/* Only an inline footer message for approved next-episode tails; never a result overlay. */
#nextEpisodeCountdown{position:absolute;left:16px;right:16px;top:27px;margin:0;text-align:right;font:400 12px/1.4 "ZiYuKangSong","STKaiti",serif;letter-spacing:.3px;color:#fff1d0;text-shadow:0 1px 2px #000;pointer-events:none}
#nextEpisodeCountdown[hidden]{display:none}
.hud-bottom:has(#nextEpisodeCountdown:not([hidden])) .seek-time{display:none}
.game-stage[data-node-type="result"] .caption-layer{display:none}
/* One impact, not a flashing strobe. Whole player-frame shake is driven by WAAPI. */
.daoji-float{display:none}
.daoji-bar.is-hit{animation:hp-impact 650ms ease-out}
.hero-card:has(.is-hit) .hero-avatar{animation:avatar-impact 650ms ease-out}
.damage-vignette{position:absolute;inset:0;z-index:6;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 58px 12px #cf302680;animation:damage-wash 650ms ease-out both}
.damage-feedback{animation:damage-number 2200ms both;transform-origin:24px 50%}
@keyframes hp-impact{0%,100%{filter:none}20%{filter:brightness(1.8);box-shadow:0 0 20px #ff6655}}
@keyframes avatar-impact{20%{box-shadow:0 0 25px 6px #ff645eaa}100%{box-shadow:0 0 0 1px #3a273399,0 0 14px #e6c98366,0 3px 10px #0008}}
@keyframes damage-wash{0%{opacity:0}20%{opacity:1}100%{opacity:0}}
@keyframes damage-number{0%,78%{opacity:1}100%{opacity:0}}

/* Absorption lands at the actual heart icon center, then leaves a brief receipt. */
.hud-medal{position:relative}
.favor-received-value{position:absolute;right:-1px;top:-6px;min-width:30px;padding:3px 5px;border:1px solid #d3ab62;border-radius:5px;font-size:18px;line-height:1;font-style:normal;color:#b33d51;background:#fff0e5;box-shadow:0 2px 8px #0008;pointer-events:none}
.favor-received-value[data-kind="gain"]{color:#267a67}
.hud-medal.is-received svg{animation:heart-receive 650ms ease-out}
@keyframes heart-receive{0%{transform:scale(.85)}35%{transform:scale(1.22);box-shadow:0 0 0 2px #ffe9b5,0 0 26px 7px #f3bfcb99}65%{transform:scale(.96)}100%{transform:scale(1)}}
@container(max-width:380px){.hero-name b{font-size:17px}.hero-name span{font-size:10px}.hero-info{min-width:112px;padding-right:8px}.daoji-bar{width:96px}.hud-top .hud-medal{min-width:48px}.hud-medal span{font-size:14px;letter-spacing:.5px}.hud-medal svg{width:36px;height:36px}.hud-top{padding-inline:12px;gap:5px}}
@container(max-width:310px){.hero-avatar{width:46px;height:46px}.hero-info{min-width:100px;padding-left:15px}.daoji-bar{width:84px}.hero-name{gap:5px}.hud-top .hud-medal{min-width:45px}.hud-medal span{font-size:13px}.hud-medal svg{width:34px;height:34px}.hud-top{padding-inline:10px;gap:3px}.favor-flight{gap:6px;padding-inline:12px 30px}.favor-flight b{font-size:23px}.favor-flight strong{font-size:26px}.favor-flight img{width:36px;height:36px}.notice-main{gap:6px}}
@media(prefers-reduced-motion:reduce){.damage-vignette{display:none}.damage-feedback,.game-notice:before,.game-notice>div,.game-notice>img{animation:none}.hero-card:has(.is-hit) .hero-avatar,.daoji-bar.is-hit,.hud-medal.is-received svg{animation:none}}
