/* A travelling bestiary: ink, oak and worn brass, laid over the same dungeon. */



.field-notes-backdrop{position:fixed;inset:0 0 var(--ad-space);z-index:88;display:grid;place-items:center;overflow:auto;padding:16px max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left));background:radial-gradient(ellipse at 50% 35%,#111d19de,#040b0bf4 75%);animation:notes-arrive .24s ease-out both}
.field-notes{position:relative;isolation:isolate;width:min(530px,100%);max-height:100%;overflow:auto;padding:24px 24px 18px;color:#e8d9b7;border:0;border-top:4px ridge #bfa06b;border-bottom:5px ridge #6c4d31;background:linear-gradient(160deg,#27342b 0%,#1b2826 44%,#1a2222 100%);box-shadow:0 0 0 3px #25190f,0 0 0 5px #77613e,0 12px 60px #020807,inset 0 0 38px #060b08b8;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
.field-notes:before{content:'';position:absolute;inset:8px;z-index:-1;border:1px solid #98784d72;pointer-events:none;clip-path:inherit}
.field-notes>.eyebrow{text-align:center;color:#bfaa7d;font:8px 'Knightle Quill';letter-spacing:2px;margin:0 0 5px}
.field-notes h2{text-align:center;font:700 clamp(27px,7vw,36px)/1.1 'Knightle Herald',Georgia;color:#f4dcaa;margin:0;text-shadow:2px 3px #101b18,0 0 20px #dbb66b4a}
.notes-lead{text-align:center;margin:5px 0 18px;color:#c6baa1;font:italic 13px Georgia}
.notes-close{position:absolute;top:8px;right:12px;width:39px;height:39px;border:0;background:transparent;color:#ddc592;font:28px Georgia}
.notes-close:hover,.notes-close:focus-visible{color:#fff2c6;outline:1px solid #d8bb7f}
.notes-roster{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 16px}
.notes-roster button{min-width:0;min-height:58px;display:grid;place-items:center;background:linear-gradient(#18211def,#222c24);border:1px solid #746046;box-shadow:inset 0 0 0 2px #12201d,0 3px #0b1513;clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px);cursor:pointer}
.notes-roster button.selected{background:radial-gradient(ellipse at 50% 36%,#6b603c,#28372d 75%);border-color:#dec27d;box-shadow:inset 0 0 8px #dbb97455,0 3px #33291d}
.notes-roster button:hover,.notes-roster button:focus-visible{outline:2px solid #edcf8f;outline-offset:2px}
.notes-roster canvas{width:44px;height:44px;image-rendering:pixelated;filter:drop-shadow(1px 2px #08110e)}
.notes-entry{display:flex;align-items:center;gap:13px;min-height:114px;padding:11px 9px;background:linear-gradient(90deg,#3945337c,#202d296a);border-top:1px solid #a4936080;border-bottom:1px solid #736a4b91}
.notes-portrait{width:96px;height:90px;flex:none;display:grid;place-items:center;background:radial-gradient(ellipse,#6170596b,#19231e77 70%);border:1px solid #92784e55}
.notes-portrait canvas{width:86px;height:86px;image-rendering:pixelated;filter:drop-shadow(2px 4px 1px #07100d)}
.notes-dossier small,.notes-rule small{display:block;color:#b4a178;font:7px/1.5 'Knightle Quill';letter-spacing:1px}
.notes-dossier h3{font:700 24px/1.2 'Knightle Herald';color:#f2dcae;margin:7px 0 6px;text-shadow:1px 2px #0b1514}
.notes-dossier>span{font:8px/1.5 'Knightle Quill';color:#e7ba82;letter-spacing:.4px}
.notes-rule{padding:15px 3px 13px;min-height:111px}
.notes-rule h4{margin:5px 0 6px;color:#dbc585;font:13px/1.3 'Knightle Quill';letter-spacing:.4px}
.notes-rule p{margin:0;color:#d1c8ae;font:14px/1.43 Georgia}
.notes-rule .notes-live{margin-top:12px;padding:7px 9px;border-left:3px solid #bba56a;background:#56604730;color:#ebddba;font:italic 12px/1.35 Georgia}
.notes-footer{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;border-top:1px solid #8779536b;padding:12px 2px 7px;color:#b9ae8b;font:7px/1.5 'Knightle Quill';letter-spacing:.5px}
.notes-return{display:block;min-height:44px;margin:7px auto 0;width:min(300px,100%)}
.quest-ledger{position:relative;max-width:800px;margin:27px auto;padding:22px 23px 25px;background:linear-gradient(140deg,#283127dc,#172521ed);border:3px solid #6a5536;box-shadow:0 0 0 1px #bca46d,inset 0 0 0 2px #111c19,0 18px 35px #081210a8;clip-path:polygon(9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%,0 9px)}
.quest-ledger h2{font:700 24px 'Knightle Herald';color:#e8cf98;margin:0 0 5px;letter-spacing:1px}
.quest-ledger>p{font:italic 13px Georgia;color:#c1b99e;margin:0 0 15px;line-height:1.5}
.ledger-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ledger-entry{display:grid;grid-template-columns:80px 1fr;gap:3px 9px;padding:10px 12px;background:linear-gradient(100deg,#383f31a8,#1d2a2566);border-left:3px solid #786b53;border-bottom:1px solid #675d468c;color:#ded4b9}
.ledger-entry.win{border-left-color:#cfb874}.ledger-entry.loss{border-left-color:#ad6a5c}.ledger-entry time{font:7px 'Knightle Quill';color:#c5b894;white-space:nowrap;align-self:center}
.ledger-entry strong{font:8px 'Knightle Quill';color:#ead49d}.ledger-entry.loss strong{color:#dba999}.ledger-entry span{grid-column:2;font:italic 12px/1.35 Georgia;color:#bdbca8}
.ledger-empty{grid-column:1/-1;padding:25px;text-align:center;color:#bfb397;font:italic 14px Georgia}
.motion-options{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.motion-choice{min-height:40px;min-width:88px;padding:8px 10px;color:#d8c9a3;background:linear-gradient(#374332,#222d27);border:1px solid #968358;box-shadow:0 3px #141c18;font:8px 'Knightle Quill';letter-spacing:.7px;clip-path:polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px)}
.motion-choice.chosen{color:#fff0c4;background:linear-gradient(#725e39,#384631);border-color:#e3ca86}.motion-choice:focus-visible{outline:2px solid #f3d38c;outline-offset:3px}
@keyframes notes-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:700px){.field-notes{padding:19px 16px 15px}.notes-roster{gap:4px}.notes-roster button{min-height:51px}.notes-roster canvas{width:38px;height:38px}.notes-entry{min-height:98px}.notes-portrait{width:78px;height:77px}.notes-portrait canvas{width:72px;height:72px}.notes-dossier h3{font-size:20px}.ledger-pages{grid-template-columns:1fr}.quest-ledger{padding:17px 14px 20px}}
@media(max-width:370px){.field-notes{padding-left:12px;padding-right:12px}.notes-roster canvas{width:35px;height:35px}.notes-roster button{min-height:48px}.notes-dossier small{font-size:6px}.notes-dossier>span{font-size:7px}.notes-footer{font-size:6px}}
@media(prefers-reduced-motion:reduce){.field-notes-backdrop{animation:none}}

/* The existing ability seal is the doorway into this foe's rules. */
button.trait-emblem{pointer-events:auto;cursor:pointer;min-width:48px;min-height:52px;touch-action:manipulation;border-radius:0;transition:filter .15s}
button.trait-emblem:hover:not(:disabled){filter:drop-shadow(0 0 5px #eac58280)}
button.trait-emblem:focus-visible{outline:2px solid #e4c384;outline-offset:4px}
button.trait-emblem:disabled{cursor:default;opacity:1}
.notes-roster[hidden]{display:none}
.enemy-notes .notes-lead{margin-bottom:14px}
