/* A cold castle threshold, a warm thread of light, and the red of a travelling talisman. */
:root{--night:#101925;--night2:#202b39;--seal:#913f37;--silk:#dfbb82;--paper:#fcf0d7}
header{background:linear-gradient(90deg,#142130,#1e2936);box-shadow:inset 0 -1px #c8ad7747}.brand small{letter-spacing:.2em;color:#cbbd9f}.crest{background:linear-gradient(145deg,#be9759,#5f3b36 72%)}.tools button{background:#172631;border-color:#baab8375}
#app[data-screen="menu"] header{height:clamp(43px,6.5vh,62px)}
#menu{overflow:hidden;background:#101c2c}.coverArt{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:63% 44%;z-index:-2}#menu{isolation:isolate}#menu::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#101927e8 0%,#142132af 26%,#14213229 49%,transparent 66%),linear-gradient(0deg,#0e17297d,transparent 20%)}.titlecopy{padding:0 0 0 6.5%;max-width:49%;position:relative}.eyebrow{font:700 clamp(12px,1vw,15px) var(--serif);letter-spacing:.22em;color:#f1d39d;margin:0 0 13px}.eyebrow::before{content:"";width:28px;height:2px;background:#cc8665}h1{font-size:clamp(66px,7.7vw,120px);line-height:1.03;letter-spacing:.09em;text-shadow:0 3px 16px #10182559}h1 span{color:#f5d69e}.lede{white-space:pre-line;font-size:clamp(15px,1.2vw,19px);letter-spacing:.05em;line-height:1.8;color:#fff3db;margin:1.05em 0 1.35em}.primary{background:linear-gradient(115deg,#923f3a,#76332f);border:1px solid #f2c88c;color:#fff0d2;box-shadow:inset 0 0 0 3px #793630,inset 0 0 0 4px #ca975a8a,0 4px 14px #10182560;font:800 18px var(--serif);padding:13px 20px;min-width:170px}.primary b{color:#f8d799}.primary:hover,#choices button:first-child:hover{filter:brightness(1.12)}
.embers{position:absolute;inset:15% 10% 16% 48%;pointer-events:none}.embers::before,.embers::after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:#f3d7a4;box-shadow:78px 16px 3px #f3d7a4,142px 61px 2px #edc389,35px 97px 3px #efbc85;animation:mote 7s ease-in-out infinite}.embers::after{left:35%;top:53%;animation-delay:-2.4s}@keyframes mote{0%,100%{opacity:0;transform:translate(0,12px)}50%{opacity:.75}95%{transform:translate(16px,-18px)}}
#chapters{background:#151e2b;border-top:1px solid #b99c70;gap:clamp(10px,2vw,30px);padding:12px 4.5% max(12px,env(safe-area-inset-bottom))}.striplabel{font-size:16px}.striplabel small{font:12px var(--serif);letter-spacing:.04em;color:#c9bba7}#chapterList{gap:9px}#chapterList button{display:block;isolation:isolate;overflow:hidden;position:relative;background:#1e2833;min-height:66px;padding:9px 12px;border:1px solid #c5ab7659;transition:border-color .2s}#chapterList button[data-current=true]{border-color:#e5c08b}#chapterList button:hover{border-color:#ffdfae}#chapterList .chapterStill{position:absolute;inset:0 0 0 auto;width:78%;height:100%;object-fit:cover;z-index:-2;filter:saturate(.85)}#chapterList button::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#15212ded 0%,#15212dc9 33%,#15212d36 77%)}.chapterText{display:flex;flex-direction:column;gap:4px}#chapterList small{font:600 11px var(--serif);color:#e2cba4}#chapterList strong{font:700 clamp(15px,1.35vw,21px) var(--serif);color:#f8efd9}#chapterList [data-locked=true] .chapterStill{filter:saturate(.56) brightness(.89)}
#veil{background:linear-gradient(135deg,#0a1524a8,#0c1520c7);padding:clamp(10px,2.5vw,34px)}#card{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(300px,1.1fr);width:min(910px,100%);padding:0;color:#27313b;box-shadow:0 22px 80px #060c14b8;border:1px solid #c6ad79;max-height:96%;border-radius:2px;background:var(--paper)}#cut{position:relative;min-height:100%;margin:0;isolation:isolate;overflow:hidden;background:#253343;border-right:2px solid #ae8b54}#cut canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}#cut[data-cover=true]{background:center / cover url('art/oath.webp');background-position:71% 50%}#cut[data-cover=true] canvas{display:none}#cut::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#121a29d9,transparent 27%);pointer-events:none}#cutCaption{position:absolute;z-index:1;bottom:18px;left:18px;color:#ffeac1;font:700 14px var(--serif);letter-spacing:.17em;border-left:2px solid #d88f6c;padding-left:9px}.script{padding:clamp(21px,3vw,42px);background:linear-gradient(120deg,#fff4dc,#ebdbb8)}.rule{width:36px;background:#a0483c;margin-bottom:12px}#kicker{font:700 12px var(--serif);letter-spacing:.16em;color:#874b37}#cardTitle{font-size:clamp(29px,3.2vw,46px);line-height:1.15;margin:9px 0 15px}#cardBody p{font-size:16px;line-height:1.7}#cardBody p:nth-child(2):not(.cue){font:700 16px/1.65 var(--serif);color:#684737}#cardBody .cue{border-color:#a36d45;background:#ac8a5020}#choices button{background:#33424b;border-color:#495960}#choices button:first-child{background:#883b35;border-color:#874432}#card[data-kind=notes] .script{background:repeating-linear-gradient(transparent 0 28px,#675c4910 29px 30px),#eee2c4}#card[data-kind=retry] #cut canvas{filter:saturate(.5)}#card[data-kind=win] .rule{background:#a4843b}#card[data-kind=read] #cut{box-shadow:inset 0 0 28px #803e60}
#deck{background:linear-gradient(110deg,#1c2a36,#15212c);border-top-color:#a88a5e}#stageHud,#threat{background:linear-gradient(100deg,#152332eb,#1e263bbd)}#actions button{background:#273844}#actions #skill{background:#e5be82}
@media(max-width:680px) and (orientation:portrait){#app[data-screen=menu]{min-height:510px}#app[data-screen=menu] header{height:44px}#menu{align-items:flex-end}.coverArt{height:76%;object-position:73% 41%}#menu::before{background:linear-gradient(0deg,#101c2c 12%,#101c2cf0 28%,#101c2c70 47%,transparent 63%)}.titlecopy{padding:0 6% 5%;max-width:100%;width:100%}.eyebrow{font-size:11px;margin-bottom:4px}h1{font-size:clamp(43px,11.5vw,67px);margin:0;letter-spacing:.05em}h1 span{display:inline;font-size:.85em;margin-left:.12em;letter-spacing:.03em}.lede{font-size:14px;line-height:1.6;margin:9px 0 11px}.primary{padding:9px 16px;font-size:16px;min-width:150px}.embers{inset:8% 18% 50% 24%}#chapters{padding:8px 3% max(9px,env(safe-area-inset-bottom))}.striplabel{font-size:14px;display:flex;justify-content:space-between;align-items:center}.striplabel small{margin:0;font-size:11px}#chapterList{grid-template-columns:repeat(2,1fr);gap:5px}#chapterList button{min-height:43px;padding:4px 8px}#chapterList small{font-size:10px}#chapterList strong{font-size:15px}.chapterText{gap:1px}#card{display:block;max-height:96%;width:min(460px,100%)}#cut{min-height:0;height:clamp(82px,21vh,158px);border-right:0;border-bottom:2px solid #ae8b54}#cut canvas{object-position:50% 60%}#cut[data-cover=true]{background-position:69% 40%}#cutCaption{bottom:9px;left:12px;font-size:12px}.script{padding:17px 20px 20px}.rule{margin-bottom:7px}#cardTitle{margin:6px 0 10px;font-size:29px}#cardBody p{font-size:14px}#choices{margin-top:12px}#choices button{padding:9px 12px}}
@media(orientation:landscape) and (max-height:540px){#app[data-screen=menu] header{height:33px}.titlecopy{max-width:55%;padding:0 0 0 5%}.eyebrow{font-size:10px;margin:0}h1{font-size:clamp(33px,10vh,56px);margin:4px 0}h1 span{display:inline}.lede{font-size:12px;line-height:1.4;margin:4px 0 7px}.primary{padding:6px 12px;min-width:132px;font-size:14px}#chapters{padding:4px 2%}#chapterList button{min-height:36px;padding:4px 6px}#chapterList strong{font-size:13px}#chapterList small{font-size:9px}.chapterText{gap:0}.striplabel{font-size:12px}.striplabel small{font-size:9px}#card{grid-template-columns:.65fr 1.35fr;max-height:98%}.script{padding:12px 16px}.rule{margin-bottom:4px}#cardTitle{font-size:24px;margin:5px 0}#cardBody p,#cardBody p:nth-child(2):not(.cue){font-size:13px;line-height:1.4}#cardBody .cue{margin:6px 0;padding:4px 7px}#choices{margin-top:7px}#choices button{padding:6px 9px}}
@media(prefers-reduced-motion:reduce){.embers{display:none}#chapterList button{transition:none}}#tellMark{float:right;width:30px;height:30px;margin:1px 0 2px 7px}#tellMark[data-mark=""]{display:none}@media(max-width:680px){#tellMark{width:21px;height:21px;margin-left:3px}}
