/* Ashen Oath — dark parchment + brass UI */
@font-face { font-family: 'AOSerif'; src: url('fonts/aoserif.woff2') format('woff2'); font-display: swap; }
:root {
  --brass: #c9a35c; --brass-l: #f0d79a; --brass-d: #6e4f22; --ink: #f1e6cf; --ink-d: #b9a888; --ember: #ff8a2e; --blood: #c8352a;
  --parch: #2a2017; --parch-d: #17110c; --u: min(1vh, 0.5vw); --sat: env(safe-area-inset-top, 0px); --sar: env(safe-area-inset-right, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px);
  --serif: 'AOSerif', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif; --sans: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0c0907; color: var(--ink); font-family: var(--sans); overscroll-behavior: none; touch-action: none; position: fixed; inset: 0; }
#app { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font-family: var(--serif); color: var(--ink); cursor: pointer; touch-action: manipulation; }
.parch, .panel, #quest, #dialog, .toast, #hint {
  background: radial-gradient(120% 140% at 20% 0%, rgba(70,52,34,.96), rgba(34,25,17,.96) 60%, rgba(20,14,10,.97)),
              repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, rgba(0,0,0,.02) 2px 4px);
  border: 1.5px solid var(--brass); box-shadow: inset 0 0 0 1px rgba(20,12,6,.9), inset 0 0 0 3px rgba(201,163,92,.22), 0 6px 18px rgba(0,0,0,.55);
}
/* ---------- HUD */
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud > * { pointer-events: none; }
#status { position: absolute; left: calc(10px + var(--sal)); top: calc(8px + var(--sat)); display: flex; align-items: center; gap: 8px; }
.portrait { position: relative; width: clamp(46px, 12vmin, 74px); height: clamp(46px, 12vmin, 74px); border-radius: 50%; border: 2px solid var(--brass); box-shadow: 0 0 0 2px #1a120a, 0 0 0 3.5px var(--brass-d), 0 3px 10px rgba(0,0,0,.6); overflow: hidden; background: #2a1e18; flex: none; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
#lvl { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); font: 700 clamp(9px, 2.4vmin, 12px) var(--serif); background: linear-gradient(#5a3f1c, #2a1c0c); border: 1px solid var(--brass); padding: 0 5px; border-radius: 6px; color: var(--brass-l); white-space: nowrap; }
.bars { display: flex; flex-direction: column; gap: 3px; width: clamp(150px, 38vmin, 270px); }
.pname { font: 600 clamp(10px, 2.6vmin, 13px) var(--serif); color: var(--brass-l); text-shadow: 0 1px 2px #000; letter-spacing: .05em; }
.bar { position: relative; height: clamp(9px, 2.6vmin, 14px); background: #120c08; border: 1px solid var(--brass-d); border-radius: 2px; overflow: hidden; box-shadow: inset 0 1px 3px #000; }
.bar i, .bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transition: width .08s linear; }
.bar.hp i { background: linear-gradient(#e85a40, #a82418 60%, #7a1810); }
.bar.hp b { background: #f3d0a0; opacity: .55; }
.bar.hp span { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 600 clamp(8px, 2.1vmin, 10px) var(--sans); color: #fff; text-shadow: 0 1px 1px #000; }
.bar.ember { height: clamp(6px, 1.8vmin, 9px); }
.bar.ember i { background: linear-gradient(90deg, #8a3a10, #ff8a2e 70%, #ffd080); box-shadow: 0 0 8px #ff7a2a; }
.bar.ember .ticks { position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(25% - 1px), rgba(0,0,0,.7) 25%, transparent calc(25% + 1px), transparent calc(50% - 1px), rgba(0,0,0,.7) 50%, transparent calc(50% + 1px), transparent calc(75% - 1px), rgba(0,0,0,.7) 75%, transparent calc(75% + 1px)); }
.bar.ember.full i { animation: emberPulse 1.2s ease-in-out infinite; }
@keyframes emberPulse { 50% { filter: brightness(1.4); } }
.bar.xp { height: 4px; border: 0; background: rgba(0,0,0,.55); }
.bar.xp i { background: linear-gradient(90deg, #6aa0ff, #c8e0ff); }
#hud.lowhp #vignette { opacity: 1; }
#vignette { position: absolute; inset: 0; box-shadow: inset 0 0 18vmin rgba(160,10,0,.55); opacity: 0; transition: opacity .4s; animation: beat 1.1s infinite; }
@keyframes beat { 50% { box-shadow: inset 0 0 12vmin rgba(160,10,0,.35); } }
#quest { position: absolute; left: calc(10px + var(--sal)); top: calc(clamp(46px, 12vmin, 74px) + 18px + var(--sat)); max-width: clamp(170px, 34vw, 300px); padding: 6px 10px 7px; border-radius: 3px; transition: transform .3s; }
#quest.pulse { animation: qpulse .9s ease-out; }
@keyframes qpulse { 0% { transform: scale(1.06); box-shadow: 0 0 22px rgba(255,180,90,.6); } }
.qt-title { font: 700 clamp(10px, 2.7vmin, 13px) var(--serif); color: var(--brass-l); letter-spacing: .06em; border-bottom: 1px solid rgba(201,163,92,.35); padding-bottom: 3px; margin-bottom: 3px; }
#qList { list-style: none; margin: 0; padding: 0; }
#qList li { display: flex; gap: 6px; align-items: flex-start; font: 500 clamp(10px, 2.6vmin, 13px)/1.35 var(--sans); color: var(--ink); margin-top: 2px; }
#qList li i { flex: none; width: .72em; height: .72em; margin-top: .3em; border: 1.5px solid var(--brass); transform: rotate(45deg); }
#qList li.done { color: var(--ink-d); text-decoration: line-through; text-decoration-color: rgba(201,163,92,.6); }
#qList li.done i { background: var(--brass); }
#boss { position: absolute; left: 50%; bottom: calc(10px + var(--sab)); transform: translateX(-50%); width: min(40vw, 560px); opacity: 0; transition: opacity .5s; text-align: center; }
#boss.on { opacity: 1; }
.bname { font: 700 clamp(11px, 3vmin, 16px) var(--serif); color: #d8e8ff; text-shadow: 0 0 8px rgba(120,200,255,.6), 0 2px 2px #000; letter-spacing: .12em; margin-bottom: 3px; }
.bbar { position: relative; height: clamp(8px, 2.2vmin, 12px); background: #0b0a0c; border: 1px solid var(--brass); box-shadow: 0 0 0 2px #120c06, inset 0 1px 3px #000; }
.bbar i, .bbar b { position: absolute; left: 0; top: 0; bottom: 0; }
.bbar i { background: linear-gradient(#a8c8e0, #5a7088 60%, #2e3c4c); }
.bbar b { background: #e8d0a0; opacity: .5; }
#boss.p2 .bbar i { background: linear-gradient(#bff0ff, #4aa8d8 60%, #1a4a6a); box-shadow: 0 0 10px #6ad0ff; }
#topRight { position: absolute; right: calc(10px + var(--sar)); top: calc(8px + var(--sat)); display: flex; gap: 8px; pointer-events: auto !important; }
.ib { pointer-events: auto; width: clamp(34px, 9vmin, 46px); height: clamp(34px, 9vmin, 46px); border-radius: 50%; border: 1.5px solid var(--brass); background: radial-gradient(circle at 40% 30%, #4a3826, #1c140d); color: var(--brass-l); font-size: clamp(13px, 3.6vmin, 18px); box-shadow: 0 3px 8px rgba(0,0,0,.6); display: grid; place-items: center; padding: 0; }
#toast { position: absolute; left: 50%; top: calc(16% + var(--sat)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.toast { font: 500 clamp(11px, 3vmin, 15px) var(--sans); padding: 6px 16px; border-radius: 3px; white-space: nowrap; animation: tin .35s ease-out; color: var(--ink); }
.toast b { color: var(--brass-l); font-family: var(--serif); }
.toast.lvl { border-color: #ffd080; box-shadow: 0 0 18px rgba(255,200,100,.5), inset 0 0 0 1px #000; }
.toast.item b { color: #ffb070; }
.toast.bark { border-color: #8fd8ff; color: #dff4ff; }
.toast.bark b { color: #9fe8ff; }
.toast.out { opacity: 0; transform: translateY(-10px); transition: all .5s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px) scale(.96); } }
#areaTitle { position: absolute; left: 0; right: 0; top: 24%; text-align: center; opacity: 0; }
#areaTitle.show { animation: area 4.2s ease-in-out forwards; }
.at-sub { font: 500 clamp(11px, 2.8vmin, 15px) var(--serif); color: var(--brass); letter-spacing: .4em; }
.at-main { font: 700 clamp(28px, 9vmin, 56px) var(--serif); color: var(--ink); letter-spacing: .35em; text-shadow: 0 0 20px rgba(255,140,60,.45), 0 3px 4px #000; margin: 4px 0; padding-left: .35em; }
.at-line { width: min(40vw, 340px); height: 1px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--brass), transparent); }
@keyframes area { 0% { opacity: 0; transform: translateY(8px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#hint { position: absolute; left: 50%; bottom: calc(26% + var(--sab)); transform: translate(-50%, 10px); max-width: min(62vw, 560px); padding: 7px 16px; border-radius: 3px; font: 500 clamp(11px, 3vmin, 15px)/1.45 var(--sans); text-align: center; opacity: 0; transition: all .35s; }
#hint b { color: var(--brass-l); font-family: var(--serif); }
#hint.show { opacity: 1; transform: translate(-50%, 0); }
#plates { position: absolute; inset: 0; }
.plate { position: absolute; left: 0; top: 0; width: clamp(38px, 9vmin, 56px); height: 5px; background: rgba(0,0,0,.7); border: 1px solid rgba(0,0,0,.9); }
.plate i { display: block; height: 100%; background: linear-gradient(#ff7a4a, #b52a1a); }
#nums { position: absolute; inset: 0; overflow: hidden; }
.num { position: absolute; left: 0; top: 0; font: 800 clamp(14px, 4.4vmin, 24px) var(--serif); color: #fff; text-shadow: 0 0 2px #000, 0 2px 3px #000; white-space: nowrap; will-change: transform; }
.num.crit { color: #ffd166; font-size: clamp(18px, 5.6vmin, 30px); }
.num.emb { color: #ff9a3a; }
.num.pl { color: #ff5a4a; }
.num.xp { color: #a8c8ff; font-size: clamp(11px, 3vmin, 15px); font-weight: 600; }
.num.miss { color: #d8d0c0; font-size: clamp(12px, 3.4vmin, 17px); }
.num.parry { color: #fff4c8; text-shadow: 0 0 10px #ffb040, 0 2px 3px #000; }
.num.big { font-size: clamp(18px, 5.4vmin, 28px); }
/* ---------- touch controls */
#touch { position: absolute; inset: 0; pointer-events: none; display: none; }
body.touch #touch { display: block; }
body.cine #touch, body.cine #quest, body.cine #status, body.cine #topRight .ib:first-child { opacity: 0; pointer-events: none !important; }
body.cine #touch * { pointer-events: none !important; }
#joy { position: absolute; width: calc(var(--jr) * 2); height: calc(var(--jr) * 2); margin: calc(var(--jr) * -1) 0 0 calc(var(--jr) * -1); border-radius: 50%; border: 2px solid rgba(201,163,92,.55); background: radial-gradient(circle, rgba(40,28,18,.35), rgba(20,14,10,.15)); opacity: 0; transition: opacity .15s; --jr: clamp(38px, 13vmin, 70px); }
#joy.on { opacity: 1; }
#joyKnob { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #f0d79a, #8a6a34 70%); box-shadow: 0 2px 6px rgba(0,0,0,.6); transform: translate(-50%,-50%); }
.ab { position: absolute; pointer-events: auto; border-radius: 50%; border: 2px solid var(--brass); background: radial-gradient(circle at 40% 30%, rgba(78,58,36,.92), rgba(24,17,11,.92)); box-shadow: 0 0 0 2px rgba(10,6,3,.8), 0 4px 10px rgba(0,0,0,.55), inset 0 0 12px rgba(0,0,0,.6); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; color: var(--ink); width: var(--sz); height: var(--sz); --sz: clamp(46px, 12.5vmin, 80px); --cd: 0; }
.ab span { font: 700 calc(var(--sz) * .38) var(--serif); line-height: 1; color: var(--brass-l); text-shadow: 0 1px 2px #000; }
.ab small { font: 500 calc(var(--sz) * .15) var(--sans); color: var(--ink-d); margin-top: 2px; }
.ab.big { --sz: clamp(66px, 19vmin, 118px); background: radial-gradient(circle at 40% 30%, rgba(120,50,30,.95), rgba(40,14,10,.95)); }
.ab.big span { color: #ffe0b0; }
.ab.sm { --sz: clamp(36px, 9.5vmin, 58px); }
.ab.down { transform: scale(.92); filter: brightness(1.35); }
.ab::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: conic-gradient(rgba(0,0,0,.72) calc(var(--cd) * 360deg), transparent 0); pointer-events: none; }
.ab.sk.ready { box-shadow: 0 0 0 2px rgba(10,6,3,.8), 0 0 14px rgba(255,140,50,.75), inset 0 0 12px rgba(0,0,0,.6); }
.ab.dim span { color: #8a7a60; }
.ab.locked { filter: grayscale(1) brightness(.55); }
.ab.locked::before { content: '🔒'; position: absolute; font-size: calc(var(--sz) * .26); top: -4px; right: -4px; }
.ab.active { border-color: #ff8a4a; box-shadow: 0 0 12px rgba(255,120,60,.8); }
/* ---------- dialogue */
#dialog { z-index: 5; position: absolute; left: 50%; bottom: calc(10px + var(--sab)); transform: translate(-50%, 20px); width: min(76vw, 860px); min-height: clamp(70px, 21vmin, 130px); display: flex; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#dialog.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dl-por { flex: none; width: clamp(58px, 17vmin, 108px); height: clamp(58px, 17vmin, 108px); border: 2px solid var(--brass); box-shadow: 0 0 0 2px #120c06, inset 0 0 10px #000; background: #1a120c; align-self: center; }
.dl-por img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-body { flex: 1; min-width: 0; }
.dl-name { font: 700 clamp(12px, 3.3vmin, 17px) var(--serif); color: var(--brass-l); letter-spacing: .08em; margin-bottom: 4px; padding-bottom: 3px; border-bottom: 1px solid rgba(201,163,92,.3); }
#dialog.hero .dl-name { color: #ffb08a; } #dialog.hunter .dl-name { color: #b8d890; } #dialog.foe .dl-name { color: #9fe8ff; } #dialog.oath .dl-name { color: #c8d8ff; } #dialog.sys .dl-name { color: #ffd080; }
#dialog.foe { border-color: #6aa8c8; }
.dl-text { font: 500 clamp(12px, 3.4vmin, 17px)/1.6 var(--sans); color: var(--ink); }
.dl-text b { color: #ff8a5a; }
#dlgNext { position: absolute; right: 12px; bottom: 6px; color: var(--brass); font-size: 12px; opacity: 0; }
#dlgNext.on { opacity: 1; animation: bob .8s infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }
/* ---------- letterbox / fade */
#letterbox i { position: fixed; left: 0; right: 0; height: 0; background: #000; transition: height .5s; z-index: 2; pointer-events: none; }
#letterbox i:first-child { top: 0; } #letterbox i:nth-child(2) { bottom: 0; }
#letterbox.on i { height: 9vh; }
#btnSkip { position: fixed; right: calc(14px + var(--sar)); top: calc(2vh + var(--sat)); z-index: 3; background: rgba(0,0,0,.4); border: 1px solid rgba(201,163,92,.6); border-radius: 14px; padding: 4px 12px; font-size: clamp(11px, 2.8vmin, 14px); color: var(--brass-l); display: none; }
#letterbox.on #btnSkip { display: block; }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .8s; z-index: 20; }
#fade.on { opacity: 1; }
/* ---------- overlays */
.overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 10; background: rgba(6,4,3,.55); backdrop-filter: blur(2px); }
.overlay.on { display: flex; }
.panel { min-width: min(70vw, 360px); max-width: 92vw; max-height: 92vh; overflow: auto; padding: 14px 22px 16px; border-radius: 4px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.panel h2 { margin: 0 0 4px; font: 700 clamp(18px, 5vmin, 26px) var(--serif); color: var(--brass-l); letter-spacing: .4em; padding-left: .4em; }
.pb { pointer-events: auto; font: 600 clamp(13px, 3.6vmin, 17px) var(--serif); padding: clamp(6px, 1.8vmin, 10px) 18px; border: 1.5px solid var(--brass); border-radius: 3px; background: linear-gradient(#5a4126, #2c1f13); box-shadow: inset 0 1px 0 rgba(255,220,150,.25), 0 3px 8px rgba(0,0,0,.5); color: var(--ink); letter-spacing: .12em; }
.pb:active { filter: brightness(1.3); }
.pb.big { font-size: clamp(16px, 4.8vmin, 24px); padding: clamp(9px, 2.6vmin, 14px) 40px; background: linear-gradient(#8a3a1e, #44170c); border-color: #e0b066; }
.pb.ghost { background: transparent; border-color: rgba(201,163,92,.5); }
.pb.sm { flex: 1; font-size: clamp(12px, 3.2vmin, 15px); }
.row { display: flex; gap: 6px; align-items: center; justify-content: center; font: 500 clamp(12px, 3.2vmin, 15px) var(--serif); color: var(--ink-d); }
.qb { pointer-events: auto; padding: 4px 10px; border: 1px solid var(--brass-d); background: #1c140d; border-radius: 3px; font-size: clamp(12px, 3.2vmin, 15px); }
.qb.on { border-color: var(--brass-l); background: #5a4126; color: var(--brass-l); }
#help { display: none; text-align: left; font: 400 clamp(11px, 2.9vmin, 13px)/1.55 var(--sans); color: var(--ink-d); border-top: 1px solid rgba(201,163,92,.3); padding-top: 6px; }
#help.on { display: block; }
#help b { color: var(--brass-l); }
.panel.death { border-color: #a03a2a; }
.panel.death h2 { color: #ff8a6a; }
.panel.death p { margin: 0 0 6px; font: 500 clamp(12px, 3.2vmin, 15px) var(--serif); color: var(--ink-d); }
#title { background: radial-gradient(ellipse at 50% 60%, rgba(60,20,8,.25), rgba(4,3,2,.82) 75%); backdrop-filter: none; }
.ttl { text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 2vmin, 12px); }
.ttl-sub { font: 600 clamp(11px, 3vmin, 15px) var(--serif); letter-spacing: .8em; color: var(--brass); padding-left: .8em; }
.ttl h1 { margin: 0; font: 900 clamp(46px, 17vmin, 120px) var(--serif); letter-spacing: .18em; padding-left: .18em; color: #f6e8cc; text-shadow: 0 0 28px rgba(255,120,40,.55), 0 0 4px rgba(255,180,90,.6), 0 4px 6px #000;
  background: linear-gradient(#fff4dc, #e8c890 55%, #b07a3a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 18px rgba(255,110,30,.45)); }
.ttl-pro { font: 600 clamp(14px, 4.4vmin, 22px) var(--serif); color: var(--ink); letter-spacing: .5em; padding-left: .5em; margin-bottom: clamp(4px, 2vmin, 14px); }
.ttl-tip { font: 400 clamp(10px, 2.6vmin, 13px) var(--sans); color: var(--ink-d); margin-top: 6px; }
#ending { background: #000; }
.end-next { font: 600 clamp(14px, 4.2vmin, 21px) var(--serif); color: var(--brass-l); letter-spacing: .2em; margin-top: 4px; }
.end-next span { color: var(--ink-d); }
#endStats { font: 400 clamp(11px, 2.8vmin, 14px) var(--sans); color: var(--ink-d); margin: 6px 0 4px; }
.ttl.end h1 { animation: endIn 3s ease-out; }
@keyframes endIn { from { opacity: 0; letter-spacing: .6em; } }
#loading { position: fixed; inset: 0; z-index: 30; background: radial-gradient(ellipse at 50% 55%, #2a140a, #070504 70%); display: flex; align-items: center; justify-content: center; transition: opacity .6s; }
#loading.done { opacity: 0; pointer-events: none; }
.ld { width: min(70vw, 460px); text-align: center; }
.ld-title { font: 900 clamp(30px, 10vmin, 64px) var(--serif); letter-spacing: .3em; padding-left: .3em; color: #f0dcb0; text-shadow: 0 0 22px rgba(255,120,40,.5); margin-bottom: 18px; }
.ld-bar { height: 6px; border: 1px solid var(--brass-d); background: #120c08; box-shadow: 0 0 0 2px #0a0604; }
.ld-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8a3a10, #ff8a2e, #ffd080); box-shadow: 0 0 10px #ff7a2a; transition: width .2s; }
#loadText { margin-top: 10px; font: 400 clamp(11px, 3vmin, 14px) var(--serif); color: var(--ink-d); letter-spacing: .1em; }
#rotate { position: fixed; inset: 0; z-index: 40; background: #0c0907; display: none; align-items: center; justify-content: center; text-align: center; font: 600 18px var(--serif); color: var(--brass-l); }
.rt-icon { font-size: 54px; animation: rot 2s ease-in-out infinite; margin-bottom: 12px; }
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(90deg); } }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: flex; } }
@media (max-height: 430px) { #quest { max-width: 30vw; } }

body.menu #hud, body.menu #touch { display: none !important; }

body.cine #boss { opacity: 0 !important; }

#bark { position: absolute; left: 50%; top: calc(8px + var(--sat)); transform: translate(-50%, -12px); display: flex; align-items: center; gap: 8px; max-width: min(52vw, 520px); padding: 5px 12px 5px 5px; border-radius: 3px; opacity: 0; transition: all .3s;
  background: linear-gradient(90deg, rgba(34,25,17,.94), rgba(24,17,11,.9)); border: 1px solid var(--brass); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
#bark.show { opacity: 1; transform: translate(-50%, 0); }
#bark img { width: clamp(30px, 8.5vmin, 46px); height: clamp(30px, 8.5vmin, 46px); border: 1px solid var(--brass); object-fit: cover; flex: none; }
#bark b { display: block; font: 700 clamp(10px, 2.6vmin, 13px) var(--serif); color: #b8d890; }
#bark span { font: 500 clamp(11px, 2.9vmin, 14px)/1.4 var(--sans); color: var(--ink); }
#bark.foe b { color: #9fe8ff; } #bark.oath b { color: #c8d8ff; }
/* r4: execution prompt on the attack button, dialogue emphasis */
.ab.big.exec { border-color: #ffd28a; animation: execPulse .7s ease-in-out infinite alternate; }
.ab.big.exec small { color: #ffd28a; font-weight: 700; }
@keyframes execPulse { from { box-shadow: 0 0 0 2px rgba(10,6,3,.8), 0 0 8px rgba(255,190,90,.5); } to { box-shadow: 0 0 0 2px rgba(10,6,3,.8), 0 0 22px rgba(255,190,90,.95); } }
.dl-text b { color: var(--brass-l); font-weight: 700; }
/* r4: title screen — left-aligned brass/parchment block, the live dusk vista (beacon on the ridge) stays visible on the right */
#title { justify-content: flex-start; background: linear-gradient(90deg, rgba(8,5,3,.86) 0%, rgba(8,5,3,.62) 34%, rgba(8,5,3,.12) 62%, rgba(8,5,3,0) 78%), radial-gradient(ellipse at 70% 45%, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%); }
#title .ttl { align-items: flex-start; text-align: left; margin-left: calc(max(5vw, 22px) + var(--sal, 0px)); gap: clamp(5px, 1.6vmin, 10px); }
#title .ttl-sub { padding-left: 0; letter-spacing: .62em; }
#title .ttl h1 { padding-left: 0; letter-spacing: .1em; font-size: clamp(44px, 15vmin, 112px); }
#title .ttl-pro { padding-left: 0; letter-spacing: .38em; position: relative; padding-top: clamp(6px, 1.6vmin, 10px); }
#title .ttl-pro::before { content: ''; position: absolute; left: 0; top: 0; width: clamp(120px, 34vmin, 260px); height: 1px; background: linear-gradient(90deg, var(--brass-l), rgba(200,150,80,0)); }
#title .ttl-tip { max-width: 46vw; line-height: 1.5; }
#title #btnStart { min-width: clamp(170px, 42vmin, 260px); }
#title #btnFullTitle { min-width: clamp(170px, 42vmin, 260px); }
/* r4: tablets (iPad landscape 1180×820 / 1366×1024) — HUD was clamped at phone sizes and looked lost in the corners */
@media (min-height: 700px) and (min-width: 1000px) {
  #status { transform: scale(1.28); transform-origin: 0 0; }
  #quest { top: calc(clamp(46px, 12vmin, 74px) + 44px + var(--sat)); transform: scale(1.22); transform-origin: 0 0; max-width: 300px; }
  #quest.pulse { animation: none; }
  #topRight { transform: scale(1.2); transform-origin: 100% 0; }
  #dialog { width: min(68vw, 900px); }
  .dl-text { font-size: 19px !important; }
  #hint { font-size: 17px; bottom: calc(24% + var(--sab)); }
  #bark { max-width: min(46vw, 560px); }
  #boss { width: min(46vw, 620px); }
}
