/* Ring the Dead Home's type: dense inked headings, open rules, brass registration marks.
   Barlow by Jeremy Tribby. Self-hosted under assets/fonts/OFL.txt. */
@font-face{font-family:'Barlow Condensed';src:url('assets/fonts/BarlowCondensed-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Barlow Condensed';src:url('assets/fonts/BarlowCondensed-ExtraBold.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:'Barlow Semi Condensed';src:url('assets/fonts/BarlowSemiCondensed-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Barlow Semi Condensed';src:url('assets/fonts/BarlowSemiCondensed-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Barlow Semi Condensed';src:url('assets/fonts/BarlowSemiCondensed-SemiBold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Barlow Semi Condensed';src:url('assets/fonts/BarlowSemiCondensed-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}

:root{
  --font-display:'Barlow Condensed','Arial Narrow',sans-serif;
  --font-body:'Barlow Semi Condensed','Segoe UI',sans-serif;
  --serif:var(--font-display); /* Legacy components inherit the same game face. */
  --type-body:18px;--type-small:15px;--type-label:14px;
  --card-width:180px;--card-height:278px;
  font-family:var(--font-body);font-synthesis:none;text-size-adjust:100%;
}
body{font:400 var(--type-body)/1.5 var(--font-body)}
html:has(#app),body:has(#app),#app{overflow:clip}
button,input,select,textarea,summary{font-family:var(--font-body)}
h1,h2,h3{font-family:var(--font-display);font-weight:700;line-height:1.04;letter-spacing:.015em}
h3{font-size:20px;letter-spacing:.09em}
.small{font-size:var(--type-small)}
.eyebrow{font-size:var(--type-label);letter-spacing:.14em;font-weight:600}
.brand,.wordmark{font:800 28px/1 var(--font-display);letter-spacing:.075em}
/* Fine, static breaks in the ink, with the page visible through each scrape. */
:is(h1,h2,.hero-motto,.brand,.wordmark,.battle-place,.plate-heading){
  --ink-scrape-size:240px 128px;
  -webkit-mask-image:url('assets/ink-scrapes.svg');mask-image:url('assets/ink-scrapes.svg');
  -webkit-mask-size:var(--ink-scrape-size);mask-size:var(--ink-scrape-size);
  -webkit-mask-repeat:repeat;mask-repeat:repeat;
  -webkit-mask-position:7px 2px;mask-position:7px 2px;
}
:is(.brand,.wordmark,.battle-place,.plate-heading){--ink-scrape-size:160px 86px}
:is(.brand,.wordmark,.plate-heading):focus-visible{-webkit-mask-image:none;mask-image:none}
@media(forced-colors:active){
  :is(h1,h2,.hero-motto,.brand,.wordmark,.battle-place,.plate-heading){-webkit-mask-image:none;mask-image:none}
}
.btn,.btn.big{font-size:18px;font-weight:600;min-height:44px}
input{font-size:19px}
input::placeholder{opacity:1}
.tag{font-size:12px;padding:2px 6px}

/* The threshold and the gathering. */
.home-nav .brand{font-size:28px}
.home-nav .sound-toggle,.sound-toggle{font-size:16px}
.nav-note{font-size:13px;letter-spacing:.12em}
.hero .eyebrow{font-size:14px;letter-spacing:.12em}
.hero h1{font:800 clamp(86px,10vw,152px)/.9 var(--font-display);text-transform:uppercase;text-wrap:balance;letter-spacing:.005em;margin:22px 0 24px -2px}
.hero-motto{font:700 38px/1.12 var(--font-display);letter-spacing:.025em;text-transform:uppercase}
.hero-motto em{font-style:normal;font-weight:700}
.hero .tagline{font-size:21px;line-height:1.5}
.hero-meta{font-size:16px;gap:14px}
.home-entry{width:min(410px,100%);margin-top:80px}
.home-card h2{font-size:36px;line-height:1.02;max-width:95%;margin-bottom:8px}
.home-card label{font-size:14px;font-weight:600;letter-spacing:.10em}
.home-card .or{font-size:13px;letter-spacing:.045em}
.entry-note{font-size:15px;line-height:1.35}
.hm b{font:700 23px/1.1 var(--font-display);letter-spacing:.025em}
.hm span{font-size:15px;line-height:1.3}
.footer-note{font-size:12px;letter-spacing:.12em}
.preview-cards .card .cname{font-size:19px}
.preview-cards .card .cdesc{font-size:13px;line-height:1.2}
.preview-cards .card .ctype{font-size:10px}
.preview-cards .card .card-foot{font-size:9px}
.lobby-title h1{font-size:52px}.lobby-title p{font-size:18px}
.lobby-room{font-size:14px;letter-spacing:.07em}.code{font:600 22px var(--font-body);letter-spacing:.16em}
.lobby-head .btn{font-size:17px}.step{font:700 18px var(--font-display);width:29px;height:29px}
.lobby{padding-bottom:140px}
.lobby-start{position:fixed;z-index:10;right:3%;bottom:18px;width:280px;padding:14px;background:#142019f5;border:1px solid #9d875e80;box-shadow:0 8px 30px #0008}
.class-card .top b{font:700 29px/1.05 var(--font-display)}
.class-card .hp{font-size:15px}.class-card p{font-size:17px;line-height:1.4;margin:10px 0}
.class-card .tr{font-size:15px;line-height:1.4;padding-top:10px}.class-card .tr b{font-size:17px;font-weight:600}
.class-copy{padding:9px 14px 11px}.class-card{min-height:0}
.prow-l .nm{font-size:18px}.prow-l .muted,.prow-l.empty{font-size:15px}.prow-l{gap:8px;min-height:57px}
.party-promise{font:400 18px/1.4 var(--font-body)}
.mode-card b{font:700 27px/1.1 var(--font-display)}.mode-card .top span{font-size:16px;line-height:1.3}
.mode-card{min-height:100px}.timer-label{font-size:14px;letter-spacing:.09em}.timer-row .btn{font-size:16px}
.timer-row>.small,.start-row>.small{font-size:14px;line-height:1.4;letter-spacing:.04em}

/* Expedition and the rooms between fights. */
.topbar{min-height:72px}.topbar .brand{font-size:25px}.topbar .where{font-size:16px}
.topbar .btn{font-size:16px}.badge{font-size:15px}.stat{font-size:19px}.stat small{font-size:15px}
.clock,.tt{font-family:var(--font-body);font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.trinket-ic{width:34px;height:34px}.sp-head{font-size:18px}.sp-head .st{font-size:13px}.sp-meta{font-size:15px}
.hpbar{height:20px}.hpbar>span{font:600 14px/18px var(--font-body);font-variant-numeric:tabular-nums}
.screen h2{font-size:48px}.screen .sub{font-size:19px;line-height:1.5}.pill{font-size:17px}
.waiting{font:400 19px/1.5 var(--font-body)}
.choice b{font:700 27px/1.15 var(--font-display)}.choice span{font-size:18px;line-height:1.45}
.price{font-size:17px}.stats>div{font-size:17px}.stats strong{font-family:var(--font-display)}
.modal-head h2{font-size:38px}.modal-head .btn,.tabs .btn{font-size:17px}
.help p{font-size:19px;line-height:1.6;margin-bottom:20px}.help p>b:first-child{color:var(--accent2);font-weight:600}
.gloss{font-size:18px;line-height:1.5;gap:16px 22px}.gloss b{font:700 23px/1.2 var(--font-display)}
.logbox{font-size:18px;line-height:1.5;gap:10px}
#toast{font-size:18px;line-height:1.4}

/* Cards reserve a real rules area instead of shrinking the copy. */
.card .cname{font:700 23px/1.04 var(--font-display);letter-spacing:.01em;min-height:32px}
.card .cost{font:700 26px/1 var(--font-display)}
.card .ctype{font:600 12px/1.2 var(--font-body);letter-spacing:.07em}
.card .cdesc{font:500 16px/1.3 var(--font-body)}.card.text-long .cdesc{font-size:15px;line-height:1.25}
.card-copy{inset:56% 10px 28px;gap:5px}.card-foot{font-size:10px;letter-spacing:.06em}
.cdesc strong{font-weight:700}.card-grid .card{width:180px;height:278px}
.phase-combat .energy{font:700 38px var(--font-display)}.phase-combat .energy small{font:600 21px var(--font-body)}
.phase-combat .energy-label{font-size:13px;letter-spacing:.12em}
.phase-combat .pilebtn{font-size:15px;min-height:38px}.phase-combat .pilebtn b{font:700 22px var(--font-display)}
.phase-combat .endturn{font:700 clamp(18px,1.6vw,23px)/1.1 var(--font-display);letter-spacing:.045em;min-height:52px;white-space:nowrap}
.battle-bar{height:56px}.battle-place{font:700 26px/1 var(--font-display);letter-spacing:.025em}.battle-gold{font:600 20px var(--font-body)}
.battle-bar-actions button{width:44px;height:44px}
.phase-combat .encounter b{font:700 clamp(19px,1.6vw,27px)/1.1 var(--font-display)}
.phase-combat .turn-number{font:600 17px/1.2 var(--font-body)}.phase-combat .turn-number b{font:700 25px/1 var(--font-display)}
.phase-combat .fighter-caption{width:min(125%,200px);padding-top:6px}
.phase-combat .fighter-name{font:700 clamp(16px,1.45vw,22px)/1.05 var(--font-display);letter-spacing:.015em}
.phase-combat .fighter-name small{font:600 12px var(--font-body)}
.phase-combat .formation .fighter .hpbar{height:20px;max-width:142px}.phase-combat .fighter .hpbar>span{font:600 14px/18px var(--font-body)}
.fighter-state{font:600 14px/1.2 var(--font-body);padding:2px 5px}

/* Map labels and disclosures. */
.atlas-location p{font:600 14px/1.3 var(--font-body);letter-spacing:.11em}
.atlas-location h1{font:700 clamp(36px,3.9vw,66px)/1 var(--font-display);letter-spacing:.02em;text-transform:uppercase}
.atlas-notes{width:min(360px,calc(100vw - var(--inset)*2));padding:20px}
.atlas-warden b,.atlas-member b{font:700 25px/1.1 var(--font-display)}
.atlas-warden small,.atlas-member small,.atlas-run-info,.atlas-run-info .clock{font-size:15px;line-height:1.4}
.atlas-totals span,.atlas-key>div span{font-size:15px}.atlas-key>summary{font:600 18px var(--font-body)}
.atlas-actions button{font:500 17px var(--font-body);min-height:42px}

/* A Lantern note: printed stock, ink frame, and a brass index. */
#tip{--note-ink:#2d2a27;--note-gold:#815827;z-index:120;max-width:none;width:min(420px,calc(100vw - 24px));max-height:min(600px,calc(100dvh - 24px));overflow:auto;
  padding:20px 24px 24px;border:2px solid #3c342c;border-left:6px solid #bd913e;border-radius:2px 7px 2px 2px;
  background:linear-gradient(115deg,#f4e7ce,#e5d0a7);color:var(--note-ink);box-shadow:4px 4px 0 #181c1a,0 16px 48px #0007;
  font:400 19px/1.45 var(--font-body);white-space:normal;pointer-events:auto;overscroll-behavior:contain;scrollbar-width:thin;
  animation:lantern-note-in .14s ease-out}
#tip::before{content:'';position:absolute;left:10px;right:10px;top:10px;height:1px;background:#70502745;pointer-events:none}
.note-index{display:flex;align-items:center;gap:9px;color:var(--note-gold);font:700 14px/1.2 var(--font-display);letter-spacing:.15em;text-transform:uppercase;margin-bottom:14px}
.note-index>.icon{width:19px;height:24px}.note-kind{margin-left:auto;font:600 12px var(--font-body);letter-spacing:.09em}
.note-title{margin:0 0 10px;font:700 30px/1.05 var(--font-display);letter-spacing:.02em;color:var(--note-ink)}
.note-rule+.note-rule{margin-top:16px;padding-top:13px;border-top:1px solid #62482435}
.note-term{display:block;font:700 23px/1.1 var(--font-display);margin:0 0 5px;color:#61462a}
.note-rule p{margin:0;font-size:19px;line-height:1.45}.note-rule strong{font-weight:700}
[data-tip]:focus-visible{outline:2px solid #deb45c;outline-offset:4px}
@keyframes lantern-note-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}

/* The bestiary and creature workshop share the game's lettering. */
body:has(.plates){font-family:var(--font-body)}
body:has(.plates) header,body:has(.plates) footer,#bestiary-status{font-family:var(--font-body);font-size:16px}
body:has(.plates) header{height:88px}.intro .eyebrow{font:600 14px var(--font-body);letter-spacing:.12em}
.intro h1{font:800 clamp(58px,7.2vw,104px)/.95 var(--font-display);letter-spacing:.01em;text-transform:uppercase}
.intro .subline{font:400 22px/1.4 var(--font-body)}
#bestiary-pause{font:600 17px var(--font-body);min-height:44px}.plate-number{font:600 14px var(--font-body)}
.plate-heading{font:700 28px/1.05 var(--font-display);letter-spacing:.01em;padding:0 16px 20px}.plate-heading span{font-size:22px}
body:has(.plates) footer{font-size:13px;letter-spacing:.08em;gap:20px}
.creature-study .wordmark{font:800 28px/1 var(--font-display);letter-spacing:.075em}
.wordmark>span{font:600 13px var(--font-body);letter-spacing:.09em}
.back-link{font-size:17px}.study-layout{grid-template-columns:minmax(0,1fr) 320px;gap:30px}
.creature-study h1{font:800 clamp(64px,6.6vw,92px)/.92 var(--font-display);letter-spacing:.005em;text-transform:uppercase;margin:22px 0 18px}
.creature-study h1.long-title{font-size:clamp(48px,5.4vw,74px)}.creature-study h1 em{font-weight:800}
.study-description{font:400 21px/1.4 var(--font-body);margin-bottom:16px}
.stage-corner,.stage-number,.specimen-label,.specimen-label span{font:600 13px/1.3 var(--font-body);letter-spacing:.09em}
.stage-bottom,.quiet-button{font-size:15px;line-height:1.3}.quiet-button{min-height:42px}
.control-heading{font-size:14px;letter-spacing:.10em}.control-heading span{font-size:16px}
.clip{font-size:17px;padding:12px 10px;min-height:46px}
.playback-row label,.playback-row output,.playback-row button{font-size:15px}
.view-buttons{gap:22px;flex-wrap:wrap}.view,.jaw-label,.jaw-label output{font-size:16px}
.creature-picker,.rig-more,.rig-toggles,.model-spec{font-size:16px;line-height:1.45}
.creature-picker select{font-size:17px;min-height:44px}.creature-picker summary,.rig-more summary{padding-block:7px}
.download-model{font-size:17px;min-height:48px}.study-footer{font-size:12px;line-height:1.3;letter-spacing:.08em;gap:16px;min-height:52px}
.range{height:26px}.rig-toggles input{width:18px;height:18px}
.rig-lab-header h1{font-size:52px}.rig-lab-header p,.rig-lab-header .btn{font-size:18px}
.lab-stage-label{font-size:13px;letter-spacing:.12em}.lab-transport .btn{font-size:17px}
.lab-scrub label,.rig-angle-label,.rig-views{font-size:17px}.rig-inspector>label,.rig-metrics dt{font-size:14px}
.rig-inspector select{font:400 18px var(--font-body)}.rig-3d-link{font-size:16px}
.rig-metrics dd{font:700 32px var(--font-display)}.rig-detail{font-size:16px}.rig-lab-actions .btn{font-size:16px}.rig-key{font-size:15px}

@media(max-width:1100px){
  .hero-meta{font-size:15px}.nav-note{display:none}.home{gap:28px}.home-entry{width:100%}
  .class-card .top b{font-size:25px}.class-card .hp{font-size:14px}.class-card .top>.icon{display:none}
  .class-card p{font-size:16px}.class-card .tr{font-size:14px}.class-card .tr b{font-size:16px}
  .topbar .where{max-width:180px}.topbar{gap:9px}.topbar .brand{font-size:23px}
  .topbar .btn{font-size:15px}.study-layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px}
}
@media(max-width:760px){
  .hero h1{font-size:clamp(76px,15.5vw,112px)}.hero-motto{font-size:34px}.hero .tagline{font-size:20px}
  .hero .eyebrow{font-size:12px}.home-nav .brand{font-size:26px}.home-nav .sound-toggle{font-size:15px}
  .home-entry{width:min(410px,100%);margin-top:125px}.home-card h2{font-size:34px}
  .hero-meta{font-size:15px;flex-wrap:wrap}.home-modes{flex-wrap:wrap;gap:20px}.hm{min-width:135px}
  .hm b{font-size:24px}.hm span{font-size:15px;max-width:150px}.lobby-title h1{font-size:44px}
  .class-card .top b{font-size:29px}.class-card p{font-size:17px}.class-card .tr{font-size:15px}
  .mode-card b{font-size:27px}.mode-card .top span{font-size:17px}.lobby-head .btn{font-size:16px}
  .lobby-start{left:12px;right:12px;bottom:10px;width:auto;padding:10px 12px}.lobby-start .start-row{max-width:none;gap:7px}
  .lobby-start .start-row>.small{display:none}
  .lobby-room{font-size:15px}.topbar .brand{font-size:23px}.topbar .btn{font-size:15px}.topbar .gold-stat{font-size:18px}
  .screen h2{font-size:41px}.screen .sub{font-size:18px}.gloss{font-size:17px}.gloss b{font-size:22px}
  .battle-bar{height:52px}.battle-place{font-size:23px}.phase-combat .encounter b{font-size:19px}
  .phase-combat .turn-number{font-size:15px}.phase-combat .turn-number b{font-size:23px}
  .phase-combat .fighter-name{font-size:17px}.phase-combat .fighter-name small{font-size:11px}
  .phase-combat .formation .fighter .hpbar{height:18px}.phase-combat .fighter .hpbar>span{font-size:13px;line-height:16px}
  .phase-combat .energy{width:43px;height:43px;font-size:26px}.phase-combat .energy small{font-size:16px}
  .phase-combat .energy-label{display:none}.phase-combat .pilebtn{display:inline-flex;width:auto;min-height:40px;gap:5px;padding:5px}
  .phase-combat .pilebtn b{font-size:19px}.phase-combat .pilebtn>.icon{display:block}.phase-combat .pilebtn span{display:none}
  .phase-combat .br .endturn{font-size:20px;padding:9px 12px;min-height:44px;width:auto}.phase-combat .br .tt{font-size:16px}
  .atlas-location h1{font-size:40px}.atlas-location p{font-size:13px}
  .intro{flex-wrap:wrap;gap:16px}.intro h1{font-size:62px}.intro .subline{font-size:20px}.intro .eyebrow{font-size:12px}
  .plate-heading{font-size:25px;padding:0 12px 18px}.plate-number{font-size:13px}
  body:has(.plates) header{font-size:15px;gap:16px}.wordmark{font-size:26px}
  body:has(.plates) footer{font-size:12px}.creature-study .wordmark{font-size:26px}.wordmark>span{display:none}
  .study-layout{display:flex;flex-direction:column}.study-controls{width:100%}.creature-study h1,.creature-study h1.long-title{font-size:72px;line-height:1}
  .study-description{font-size:21px}.stage-corner,.stage-number,.specimen-label,.specimen-label span{font-size:12px}
  .stage-bottom{font-size:14px;gap:6px}.stage-bottom i{margin-inline:3px}.quiet-button{font-size:14px}
  .study-footer{font-size:12px;min-height:60px}.study-footer>span:first-child{max-width:60%}
  .rig-lab-grid{grid-template-columns:1fr}.rig-lab-header{align-items:flex-start;flex-wrap:wrap}.rig-lab-header h1{font-size:44px}
}
@media(max-width:420px){
  .class-copy{padding-inline:11px}.class-card .top b{font-size:25px}.class-card .hp{font-size:14px}
  .hero h1{font-size:clamp(69px,16vw,86px)}.hero-meta{gap:8px}.home-card{padding:25px 20px}
  .home-card .or{font-size:12px}.hero-motto{font-size:32px}.home-card h2{font-size:32px}
  .phase-combat .fighter-name{font-size:16px}.phase-combat .fighter-caption{max-width:145%}
  .phase-combat .encounter b{font-size:17px}
  .phase-combat .turn-number{font-size:14px}.phase-combat .pilebtn{gap:3px;padding:4px}
  .back-link{font-size:16px}.creature-study .wordmark{font-size:24px}.plate-heading{font-size:23px}
}
@media(prefers-reduced-motion:reduce){#tip{animation:none}}

/* Printed notes in the deck browser. */
.card-concept-slot{min-width:0;min-height:0;overflow:clip}
.card-concepts{display:block;width:100%;height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;
  padding:12px 14px;border:1px solid #887052;border-left:3px solid #bd913e;border-radius:2px;
  background:linear-gradient(115deg,#f1e3c9,#e5d0ab);color:#302b25;text-align:left}
.card-concepts[hidden]{display:none}
.card-concepts .note-term{font:700 23px/1.1 var(--font-display);letter-spacing:.015em;text-transform:none;margin:0 0 6px;color:#604628}
.card-concepts .note-rule p{font:400 17px/1.4 var(--font-body);overflow-wrap:anywhere}
.card-concepts .note-rule+.note-rule{margin-top:12px;padding-top:10px}
.card-concepts:focus-visible{outline:2px solid #be873a;outline-offset:-3px}
.card-browser{display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:20px;align-items:start}
.card-browser>.card-grid{min-width:0}
.card-browser>.card-concept-slot{height:278px;position:sticky;top:12px;margin-top:12px}
@media(max-width:1100px) and (min-width:761px){
  .card-browser{grid-template-columns:minmax(0,1fr) 228px;gap:14px}
}
@media(max-width:760px){
  .card-concepts{padding:10px}.card-concepts .note-term{font-size:22px}.card-concepts .note-rule p{font-size:16px;line-height:1.35}
  .card-browser{grid-template-columns:minmax(162px,1fr) minmax(0,200px);gap:8px}
  .card-browser>.card-grid{padding-inline:5px}
  .card-browser .card-grid .card{width:152px;height:236px}
  .card-browser .card .cname{font-size:20px}.card-browser .card .cdesc{font-size:15px;line-height:1.25}
  .card-browser .card.text-long .cdesc{font-size:14px;line-height:1.2}
  .card-browser>.card-concept-slot{height:236px}
}
@media(max-width:360px){
  .card-browser{grid-template-columns:minmax(0,1fr)}
  .card-browser>.card-grid{grid-area:2/1}
  .card-browser>.card-concept-slot{grid-area:1/1;position:static;height:auto;max-height:160px;margin:0}
  .card-browser .card-concepts{max-height:160px}
}
