/* A small provisions rail belongs to the inscription table, not the keyboard. */
.combat-controls{width:100%;max-width:540px;transform:none;margin:0 auto}
.combat-controls .key{font-size:18px}.combat-controls .key.wide{font-size:9px;min-width:46px}
.rune-board-controls{position:relative;width:max-content;max-width:100%;margin:0 auto}
.rune-board-controls .guess-board{margin:0}
.rune-board-controls .consumable-belt{left:calc(100% + 12px);top:20px;width:55px;min-height:142px}
.potion-feedback{position:absolute;right:0;bottom:100%;width:max-content;pointer-events:none;text-align:center;z-index:25;animation-delay:var(--potion-age,0ms)!important;text-shadow:1px 2px #07120c,0 0 7px #07120c}
.potion-empty{max-width:115px;font:italic 13px/1.4 Georgia;color:#f1d7a0;animation:pouch-whisper 2.6s ease both}
.potion-heal{font:bold 36px/1 'Knightle Herald';color:#c2ffb1;text-shadow:2px 3px #173b25,0 0 12px #92fba57a;animation:healing-blessing 2.2s ease-out both}
@keyframes pouch-whisper{0%{opacity:0;transform:translateY(10px)}12%,75%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-8px)}}
@keyframes healing-blessing{0%{opacity:0;transform:translateY(22px) scale(.6)}15%{opacity:1;transform:translateY(0) scale(1.28);color:#fff3a3}30%{transform:translateY(-8px) scale(1);color:#b4ffd3}75%{opacity:1;color:#9fe4ff}100%{opacity:0;transform:translateY(-55px) scale(1.08);color:#f2c0f6}}
/* Both the numeral and its corona share one mathematical center at every size. */
.ascension-emblem .ascension-halo{inset:auto;left:50%;top:50%;width:calc(100% + 80px);height:calc(100% + 80px);translate:-50% -50%;transform-origin:50% 50%;border-radius:50%;box-sizing:border-box}
.home .portrait-label{line-height:1}.home .portrait-label small{display:block;margin:0}
/* Keep the old ceremonial rhythm, with less waiting between rewards. */
.spoils-screen .chest-camera{transition-duration:.62s!important}.spoils-screen>h2{transition-duration:.62s}
.loot-opening .chest-object{animation-duration:.68s}.loot-opening .chest-flare,.loot-opening .rainbow-burst,.loot-opening .loot-rays{animation-duration:.68s}
.loot-revealed .treasure-item{animation-delay:calc(320ms + var(--order)*1000ms)!important;animation-duration:.5s}
/* The light is present on entry; it dies as the knight sinks to the ground. */
.death-spotlight{z-index:0;filter:blur(4px);background:linear-gradient(#f2e5bb88,#d9d5ad37 75%,transparent);animation:final-light 4.8s ease-out both}
.death-floor{z-index:0;animation:final-light 5.2s ease-out both}
.death-screen .death-scene{animation:last-kneel 7.5s ease both}
.death-veil{animation:chamber-extinguish 3s 2.2s ease forwards}
@keyframes final-light{0%,20%{opacity:1}50%{opacity:.72}100%{opacity:0}}
@keyframes last-kneel{0%,38%{opacity:1}75%{opacity:.6}100%{opacity:.15}}
/* A recoverable choice, before a defeat is written to the chronicle. */
.last-stand-backdrop{z-index:120;background:radial-gradient(ellipse at 50% 45%,#14261ae8,#050907f5);padding:24px 18px calc(var(--ad-space) + 20px);animation:last-chance-in .65s ease both}
.last-stand{position:relative;text-align:center;width:min(430px,100%);padding:29px 27px 22px;background:radial-gradient(ellipse at 50% 30%,#30402b66,transparent 65%);border:0;color:#d4c49c}
.last-stand:before,.last-stand:after{content:'◆';display:block;color:#a78b50;position:absolute;left:0;right:0;font-size:10px;text-shadow:22px 0 #806a3b,-22px 0 #806a3b}.last-stand:before{top:0}.last-stand:after{bottom:0}
.last-stand .eyebrow{font-size:7px;letter-spacing:2px;color:#bca575}
.revive-reliquary{width:130px;height:145px;display:grid;place-items:center;margin:16px auto 5px;background:radial-gradient(ellipse,#c4eb9e26,transparent 65%);animation:revive-glow 3s ease-in-out infinite}
.revive-reliquary canvas{width:90px;height:105px;filter:drop-shadow(0 0 16px #aadf8755)}
.last-stand h2{font:bold clamp(25px,6vw,35px)/1.4 'Knightle Herald';color:#ecdbad;margin:9px 0}
.last-stand>p:not(.eyebrow){font:italic 16px/1.6 Georgia;color:#bcb69e;margin:10px 0 17px}
.last-stand .revive-promise{font-size:14px!important;line-height:1.8!important}.revive-promise b{color:#c1e7b0;font-weight:normal}
.revive-use{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:71px;margin:23px 0 12px;background:linear-gradient(#3a442d,#222d20);border-color:#a98d57;color:#f0deaa}
.revive-use canvas{width:29px;height:35px}.revive-use span{display:flex;flex-direction:column;gap:8px;font-size:11px}.revive-use small{font:6px 'Knightle Quill';letter-spacing:1px;color:#c4bd92}
.revive-surrender{padding:13px 25px;border:0;background:none;font:8px 'Knightle Quill';letter-spacing:2px;color:#a2957c;text-decoration:underline;text-underline-offset:6px}
@keyframes last-chance-in{from{opacity:0}to{opacity:1}}@keyframes revive-glow{50%{filter:brightness(1.14);transform:translateY(-2px)}}
@media(max-width:850px){.combat-controls{width:100%;transform:none;max-width:480px}.rune-board-controls .consumable-belt{left:calc(100% + 3px)}}
@media(max-width:700px){.combat-controls .key{font-size:17px}.combat-controls .key.wide{min-width:40px;font-size:8px}.rune-board-controls .consumable-belt{left:calc(100% + 1px);top:13px;width:43px}.rune-board-controls{transform:translateX(-16px)}.rune-board-controls .draught-slot{min-width:42px}.rune-board-controls .draught-slot>.provision-icon{width:34px;height:40px}.potion-empty{font-size:11px;max-width:82px}.potion-heal{font-size:30px}.last-stand{padding:24px 15px 18px}.revive-reliquary{height:120px;margin-top:10px}}
@media(prefers-reduced-motion:reduce){.revive-reliquary{animation:none}.potion-feedback{animation:none;opacity:1}.death-spotlight{animation:none;opacity:.4}.death-screen .death-scene{animation:none;opacity:.8}.ascension-emblem .ascension-halo{animation:none}.last-stand-backdrop{animation-duration:.1s}}
