.bt,.bt-dialog{
  --bt-ink:#13251e;--bt-panel:#172a22;--bt-panel2:#1c3027;--bt-line:#455043;--bt-gold:#d1ad70;--bt-paper:#f3ebd5;--bt-muted:#bdc0a9;--bt-serif:Baskervville,Georgia,"Times New Roman",serif;--bt-sans:"DM Sans",system-ui,sans-serif;
  color:var(--bt-paper);font-family:var(--bt-sans);font-size:16px;line-height:1.42;color-scheme:dark;
}
.bt *,.bt *::before,.bt *::after,.bt-dialog *{box-sizing:border-box}
.bt{min-height:100svh;background:radial-gradient(ellipse at 4% 0%,#32423630,transparent 50%),#102019;padding:clamp(.8rem,2.3vw,2.2rem);text-align:left}
.bt-frame{max-width:1430px;margin:0 auto}
.bt h1,.bt h2,.bt h3,.bt p,.bt-dialog h2,.bt-dialog h3,.bt-dialog p{margin:0;color:inherit}
.bt button,.bt-dialog button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
.bt button:disabled{cursor:default}
.bt button:focus-visible,.bt-dialog button:focus-visible,.bt-dialog summary:focus-visible{outline:3px solid #fff0bb;outline-offset:2px;z-index:8}
.bt-header,.bt-sectionhead,.bt-maphead,.bt-mapfoot,.bt-topbuttons,.bt-rollheading,.bt-poolhead,.bt-equation,.bt-dialog header{display:flex;align-items:center}
.bt-header,.bt-sectionhead,.bt-maphead,.bt-dialog header{justify-content:space-between;gap:.8rem}
.bt-header{margin:0 0 1.3rem;align-items:end;padding:0 0 1rem;border-bottom:1px solid var(--bt-line)}
.bt h1{font:normal clamp(2rem,4vw,3.65rem)/1.03 var(--bt-serif);letter-spacing:-.046em;margin:.32rem 0 0}
.bt h2,.bt-dialog h2{font:normal 1.36rem/1.13 var(--bt-serif);letter-spacing:-.02em}
.bt-kicker{display:inline-flex;align-items:center;gap:.47rem;font:650 .69rem/1.3 var(--bt-sans);text-transform:uppercase;letter-spacing:.17em;color:var(--bt-gold)}
.bt-kicker>span{color:#899179;font-weight:400}
.bt-kicker>i{width:.45rem;height:.45rem;background:#d2b67a;transform:rotate(45deg)}
.bt-topbuttons{gap:.45rem;flex-wrap:wrap}
.bt-button,.bt-text-button,.bt-chit,.bt-pointlist>button{border:1px solid var(--bt-line);border-radius:3px;background:#22362b;color:var(--bt-paper);display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.52rem .69rem;min-height:38px;font-size:.87rem!important;line-height:1.22;letter-spacing:.005em}
.bt-button:hover:not(:disabled),.bt-chit:hover,.bt-pointlist>button:hover,.bt-text-button:hover{background:#344a38;border-color:#859073}
.bt-button:active:not(:disabled){transform:translateY(1px)}
.bt-button.primary{background:#d2b27b;color:#1a261b!important;border-color:#debd85;font-weight:690;box-shadow:inset 0 1px #ffdea4}
.bt-button.primary:hover:not(:disabled){background:#edcf96}
.bt-button.chosen,.bt-button.objective-order{background:#354637;border-color:#bfa369;color:#f4d8a3}
.bt-button:disabled{opacity:.42}
.bt-button.wide{width:100%;margin-top:.7rem}
.bt-button.quiet,.bt-text-button{background:transparent;color:#d9d7c3}
.bt-text-button,.bt-sectionhead .bt-button.quiet{border:none;min-height:28px;padding:.2rem .25rem}
.bt-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,330px);gap:clamp(.9rem,1.55vw,1.7rem);align-items:start}
.bt-mapcol,.bt-rail{display:grid;gap:.7rem;min-width:0}
.bt-mapcol{gap:0;align-content:start}
.bt-maphead,.bt-mapfoot{border:1px solid #625f46;background:#1e3025;min-height:38px;padding:.47rem .78rem}
.bt-maphead{border-radius:4px 4px 0 0;border-bottom:0}
.bt-mapfoot{border-top:0;border-radius:0 0 4px 4px;gap:.82rem;color:#dcdbc2;min-height:31px;font-size:.73rem}
.bt-mapfoot>span{display:inline-flex;align-items:center;gap:.36rem}
.bt-size{margin-left:auto;letter-spacing:.13em;font-variant-numeric:tabular-nums}
.bt-legend-dot{width:.45rem;height:.45rem;border-radius:99px;background:#c6d69b}
.bt-legend-foe{display:inline-block;border:1.6px solid #e1a279;width:.5rem;height:.5rem;transform:rotate(45deg)}
.bt-mapfoot svg{color:#ead184}
.bt-scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:#7d7451 #28382b;border-inline:1px solid #625f46;background:#263629;overscroll-behavior-x:contain}
.bt-chart{position:relative;display:grid;grid-template-columns:1.18rem minmax(0,1fr);grid-template-rows:1.1rem minmax(0,1fr);padding-right:.28rem;padding-bottom:.28rem;min-width:0}
.bt-chart.bt-zoom{min-width:max(760px,125%)}
.bt-axis-x{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(var(--cols),1fr)}
.bt-axis-y{grid-column:1;grid-row:2;display:grid;grid-template-rows:repeat(var(--rows),1fr)}
.bt-axis-x>span,.bt-axis-y>span{display:grid;place-items:center;font:500 .64rem/1 var(--bt-sans);color:#cec7a4}
.bt-field{position:relative;isolation:isolate;grid-column:2;grid-row:2;background:#83885f center/100% 100% no-repeat;overflow:hidden;aspect-ratio:var(--cols)/var(--rows);box-shadow:0 0 0 1px #6a694c}
.bt-gridrow{display:contents}
.bt-grid,.bt-figures{position:absolute;inset:0}
.bt-grid{display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr)}
.bt button.bt-cell{border:0;border-radius:0;padding:0;min-width:0;min-height:0;margin:0;position:relative;background:transparent;box-shadow:inset 1px 0 #38462f41,inset 0 1px #38462f41;display:block}
.bt button.bt-cell:hover{box-shadow:inset 0 0 0 2px #f2e6a6;background:#f6e8ab29}
.bt button.bt-cell:focus-visible{outline-offset:-3px;outline-color:#fff0bd;z-index:2}
.bt button.bt-legal-move,.bt button.bt-legal-charge{background:#b9d38925;box-shadow:inset 0 0 0 1px #c8db9b69}
.bt-cellmark{position:absolute;left:50%;top:50%;width:8%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:#dfedb4;box-shadow:0 0 0 1px #435c3c}
.bt-legal-trip>.bt-cellmark,.bt-legal-attack>.bt-cellmark{inset:5%;width:auto;aspect-ratio:auto;border-radius:3px;border:2px solid #f2a07a;background:transparent;box-shadow:inset 0 0 0 1px #703a30,0 0 0 1px #703a30;transform:none}
.bt button.bt-active{box-shadow:inset 0 0 0 2px #ffe6a0;background:#f8de6a1d}
.bt button.bt-selected{box-shadow:inset 0 0 0 3px #faf2ae;background:#ffdf852c}
.bt-marker{display:grid;place-items:center;position:absolute;left:3%;top:4%;width:32%;height:32%;max-width:21px;max-height:21px;border-radius:2px;background:#382e1e;border:1px solid #e4c479;color:#f8d88a;z-index:1}
.bt-marker.exit{background:#263b31}
.bt-marker svg{max-width:90%;max-height:90%}
.bt-figures{z-index:3;pointer-events:none}
.bt-man{position:absolute;isolation:isolate;pointer-events:none;transform:translateZ(0)}
.bt-man .bt-sprite{position:absolute!important;left:0;top:-3%;height:100%;z-index:2;filter:drop-shadow(1px 2px 1px #263a29a6)}
.bt-base{position:absolute;inset:68% 11% 8%;border:1px solid #ba8a66;border-radius:50%;background:#784a36bd;box-shadow:inset 0 -2px #482f27,0 2px 2px #2639278c}
.bt-man.greenwood .bt-base{border-color:#c2dba1;background:#3d6848d9;box-shadow:inset 0 -2px #2e4732,0 2px 2px #2639278c}
.bt-man.current{z-index:2}
.bt-man.current .bt-base{outline:2px solid #fff0a7;outline-offset:1px;box-shadow:0 0 0 3px #765e37,0 0 8px #eed368aa}
.bt-team{position:absolute;top:5%;right:4%;height:22%;aspect-ratio:1;max-height:16px;display:grid;place-items:center;border-radius:50%;background:#6a372d;color:#ffe6cc;font:650 clamp(6px,.70vw,10px)/1 var(--bt-sans);border:1px solid #efb993;z-index:3}
.bt-man.greenwood .bt-team{background:#294d36;border-color:#c9d8a7;color:#f0f5d8}
.bt-life{position:absolute;bottom:1.5%;height:max(2px,5%);left:20%;width:60%;z-index:4;background:#302f23;outline:1px solid #403b2ae8}
.bt-life>i{display:block;height:100%;background:#c29779}
.bt-man.greenwood .bt-life>i{background:#d2de9d}
.bt-guard{position:absolute;right:3%;bottom:10%;border-radius:2px;z-index:4;color:#fff0b8;background:#3b4132}
.bt-outcome{position:absolute;top:1%;left:50%;transform:translate(-50%,-30%);padding:2px 4px;min-width:2em;text-align:center;white-space:nowrap;border:1px solid #cfa875;background:#2b3324;color:#fff3ce;font:700 clamp(10px,1vw,16px)/1.3 var(--bt-sans);z-index:8;box-shadow:0 2px 5px #17231577}
.bt-arrow{z-index:5;position:absolute;width:clamp(10px,2.2vw,28px);height:2px;background:#f2d18c;box-shadow:0 1px 1px #424330;transform-origin:center;pointer-events:none}
.bt-arrow:after{content:"";position:absolute;right:-1px;top:-2px;border-left:6px solid #eadab5;border-top:3px solid transparent;border-bottom:3px solid transparent}
.bt-arrow:before{content:"";position:absolute;left:-1px;top:-2px;height:5px;width:6px;background:#efe1b8;clip-path:polygon(0 0,56% 0,100% 50%,56% 100%,0 100%,38% 50%)}
.bt-orderline,.bt-ledger,.bt-objective,.bt-orders,.bt-initiative{border:1px solid var(--bt-line);background:var(--bt-panel);border-radius:4px}
.bt-orderline{display:flex;gap:.8rem;align-items:center;justify-content:space-between;margin:.7rem 0;padding:.68rem .85rem;min-height:64px}
.bt-orderline strong,.bt-orderline div>span,.bt-fighter small,.bt-fighter div>span{display:block}
.bt-orderline strong{font-size:.94rem;color:#ede4c9}
.bt-orderline div>span,.bt-fighter div>span,.bt-empty,.bt-math,.bt-chits{font-size:.82rem;color:var(--bt-muted)}
.bt-choices{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.3rem}
.bt-choices>button{white-space:nowrap}
.bt-ledger,.bt-objective,.bt-orders,.bt-initiative{padding:.95rem 1rem}
.bt-ledger>.bt-sectionhead{margin-bottom:.65rem}
.bt-sectionhead h2{display:flex;align-items:center;gap:.55rem}
.bt-sectionhead h2>svg{color:var(--bt-gold)}
.bt-objective{background:linear-gradient(110deg,#35402b,#25362a);border-left:3px solid #c2a060}
.bt-objective p{margin:.4rem 0;font:normal 1.02rem/1.42 var(--bt-serif);color:#f0e9ca}
.bt-pointlist{display:flex;gap:.34rem;flex-wrap:wrap}
.bt-pointlist>button{justify-content:flex-start;min-height:26px;padding:.18rem .37rem;font-size:.71rem!important;background:#182b2199;border-color:#6d705044;color:#dad9b8}
.bt-pointlist b{color:#e0bf80}
.bt-round{font-size:.78rem;color:#c0c2ab;white-space:nowrap}
.bt-round b{color:#f4e9c5}
.bt-fighter{display:flex;gap:.65rem;align-items:center;margin:.75rem 0}
.bt-portrait{background:radial-gradient(ellipse at 50% 80%,#6a7954,#364637);border:1px solid #6c7353;border-radius:2px;flex:0 0 56px;aspect-ratio:1;overflow:hidden}
.bt-portrait.sheriff{background:radial-gradient(ellipse at 50% 80%,#76614b,#493c30)}
.bt-fighter small{font:600 .65rem/1.25 var(--bt-sans);letter-spacing:.11em;text-transform:uppercase;color:#c2ba98}
.bt-fighter h2{font-size:1.45rem;margin:.12rem 0}
.bt-fighter div>span{font-size:.77rem}
.bt-budgets{display:flex;gap:.38rem;padding:.55rem 0 .68rem;border-top:1px solid #405041}
.bt-budgets span{display:flex;align-items:center;gap:.3rem;font-size:.76rem;color:#d9dfbf}
.bt-budgets b{display:grid;place-items:center;background:#354937;color:#e4e9c4;min-width:1.28rem;height:1.28rem;line-height:1;border-radius:2px}
.bt-budgets span+span{margin-left:.4rem}
.bt-budgets .spent{opacity:.5}
.bt-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.34rem}
.bt-actions .objective-order,.bt-actions .bt-button:nth-child(3):last-child{grid-column:1/-1}
.bt-extras{display:flex;align-items:center;gap:.3rem;margin-top:.35rem}
.bt-extras .bt-button{background:transparent;min-height:30px;padding:.27rem .4rem;font-size:.75rem!important}
.bt-chits{display:grid;gap:.25rem;margin-top:.65rem}
.bt-chit{position:relative;display:flex;min-height:28px;justify-content:flex-start;gap:.55rem;border:0;border-bottom:1px solid #44504277;border-radius:0;background:transparent;padding:.2rem .2rem;color:#d8dbc4;font-size:.8rem!important;text-align:left}
.bt-chit b{display:inline-grid;place-items:center;min-width:1.55rem;height:1.25rem;background:#3e5740;color:#c6d5a9;font-size:.65rem;letter-spacing:.07em;border-radius:1px}
.bt-chit.sheriff b{background:#674737;color:#e3bea0}
.bt-chit.current{color:#f6dfa0;font-weight:650}
.bt-chit.current:after{content:"";width:.4rem;height:.4rem;background:#ead085;transform:rotate(45deg);margin-left:auto;margin-right:.25rem}
.bt-chit.spent{opacity:.55}
.bt-rollheading{gap:.4rem;padding:0 0 .35rem;color:#e8dcba;font-size:.87rem}
.bt-rollheading>svg{color:var(--bt-gold)}
.bt-rollheading>small{margin-left:auto;color:var(--bt-muted);font-size:.75rem}
.bt-pools{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.42rem}
.bt-pool{background:#101f19;border:1px solid #405041;border-radius:2px;padding:.5rem .65rem;min-width:0}
.bt-poolhead{justify-content:space-between;gap:.3rem;color:#e4dfc7;font-size:.8rem}
.bt-poolhead span{color:var(--bt-gold);font-size:.69rem}
.bt-equation{justify-content:space-between;gap:.5rem;margin:.38rem 0}
.bt-faces{display:flex;gap:.27rem}
.bt-die{display:inline-grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:1px;place-items:center;background:linear-gradient(140deg,#fbebbf,#c6aa73);width:clamp(23px,2.45vw,34px);aspect-ratio:1;padding:3px;border:1px solid #e1c58c;border-radius:19%;box-shadow:0 2px 0 #685935,0 3px 4px #0004}
.bt-die i{width:100%;height:100%;aspect-ratio:1;max-width:6px;max-height:6px;border-radius:50%}
.bt-die i.on{background:#403625;box-shadow:inset 0 1px 1px #171c15}
.bt-total{font:normal 1.7rem/1 var(--bt-serif);color:#edce90}
.bt-math{font-size:.69rem;font-variant-numeric:tabular-nums}
.bt-rollresult{margin-top:.42rem;color:#d2d1b9;font-size:.81rem}
.bt-rollresult>b{color:#efd498}
.bt-throw{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#07100cb3;pointer-events:auto;padding:.9rem}
.bt-throwcard,.bt-dialog{width:min(31rem,100%);border:1px solid #bfa475;background:linear-gradient(140deg,#304135,#16271e);border-radius:5px;color:#f2e7cc;box-shadow:0 12px 80px #050b08b3}
.bt-throwcard{padding:1.15rem 1.25rem 1rem}
.bt-throwcard>.bt-kicker{margin-bottom:.7rem}
.bt-throwcard .bt-rollheading{font:normal 1.45rem/1.25 var(--bt-serif)}
.bt-throwcard .bt-rollresult{font-size:.95rem}
.bt-throwcard .bt-die{width:clamp(24px,4vw,38px)}
.bt-throwcard .bt-faces{animation:bt-dicerise .24s ease-out both}
@keyframes bt-dicerise{from{transform:translateY(-5px) rotate(-3deg);opacity:.4}to{transform:none;opacity:1}}
.bt-dialog{max-height:82svh;padding:0;margin:auto;z-index:1001}
.bt-dialog::backdrop{background:#07100cbf}
.bt-dialog article{padding:1.1rem 1.25rem 1.3rem}
.bt-dialog header{position:sticky;top:0;padding:.25rem 0 .65rem;background:#2a3b2f;border-bottom:1px solid var(--bt-line);z-index:1}
.bt-dialog h2{font-size:1.65rem}
.bt-dialog h3{font:normal 1.17rem/1.2 var(--bt-serif);margin:1rem 0 .35rem}
.bt-dialog p,.bt-dialog ol{font-size:.91rem;line-height:1.5;color:#dddcc8}
.bt-dialog p+p,.bt-dialog li+li{margin-top:.38rem}
.bt-dialog ol{padding-left:1.3rem;margin:.4rem 0}
.bt-loglist{margin:.6rem 0}
.bt-loglist details,.bt-loglist>p{padding:.45rem 0;border-bottom:1px solid #54604e;font-size:.82rem}
.bt-loglist>p>b{color:#d9b97f;font-size:.67rem}
.bt-loglist summary{cursor:pointer;color:#e5cf9f}
.bt-loglist details[open]>summary{margin-bottom:.55rem}
@media(min-width:1450px){.bt-layout{grid-template-columns:minmax(0,1fr) minmax(330px,370px)}}
@media(max-width:830px){
  .bt{padding:.75rem}.bt-header{align-items:center;margin-bottom:.75rem}.bt-layout{grid-template-columns:minmax(0,1fr) minmax(215px,26%);gap:.6rem}
  .bt-orders,.bt-objective,.bt-initiative,.bt-ledger{padding:.72rem}.bt-fighter{gap:.4rem}.bt-fighter h2{font-size:1.15rem}.bt-portrait{flex-basis:42px}
  .bt-topbuttons .bt-button{font-size:.76rem!important;min-height:34px;padding:.4rem .45rem}.bt-round{font-size:.71rem}
  .bt-actions .bt-button{padding:.4rem .3rem;font-size:.78rem!important}.bt-actions .bt-button svg{width:13px}
}
@media(max-width:650px){
  .bt{padding:.68rem .5rem 1rem}.bt-topbuttons{gap:.22rem}.bt-topbuttons .bt-button{padding:.35rem;font-size:.72rem!important}
  .bt-header{align-items:start;gap:.34rem}.bt h1{font-size:1.75rem}.bt-header .bt-kicker{font-size:.57rem;letter-spacing:.09em}.bt-header .bt-kicker>span{margin:0}
  .bt-layout{display:flex;flex-direction:column;align-items:stretch;gap:.53rem}
  .bt-mapcol,.bt-rail{display:contents}
  .bt-maphead{order:1;margin-bottom:-.53rem}.bt-scroll{order:2;margin-bottom:-.53rem}.bt-mapfoot{order:3}
  .bt-orderline{order:4;margin:0;padding:.48rem .58rem;min-height:53px}.bt-orders{order:5}.bt-objective{order:0}.bt-ledger{order:6}.bt-initiative{order:7}
  .bt-objective{padding:.5rem .68rem}.bt-objective p{font-size:.95rem;margin:.18rem 0}.bt-maphead{min-height:30px;padding:.2rem .5rem}
  .bt-pointlist{gap:.2rem}.bt-pointlist>button{min-height:22px}.bt-mapfoot{min-height:27px;font-size:.67rem;gap:.65rem}.bt-size{font-size:.6rem}
  .bt-chart{grid-template-columns:.82rem minmax(0,1fr);grid-template-rows:.86rem minmax(0,1fr);padding-right:.15rem;padding-bottom:.18rem}
  .bt-axis-x>span,.bt-axis-y>span{font-size:.52rem}.bt-team{font-size:6px}
  .bt-orders{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:.6rem}.bt-orders .bt-sectionhead{grid-column:1/-1}
  .bt-fighter{grid-column:1;margin:.4rem 0}.bt-budgets{grid-column:2;grid-row:2;align-items:center;justify-content:flex-end;border:0;gap:.16rem;padding:.2rem 0}.bt-budgets span{font-size:.65rem}.bt-budgets span+span{margin-left:.15rem}
  .bt-budgets b{min-width:1rem;height:1.1rem}.bt-actions{grid-column:1/-1;display:flex;flex-wrap:wrap}.bt-actions>.bt-button{flex:1 1 auto}
  .bt-extras{grid-column:1}.bt-orders>.wide{grid-column:2;margin-top:.35rem}.bt-orders>.wide:only-of-type{margin:0;align-self:end}
  .bt-portrait{flex-basis:36px}.bt-fighter h2{font-size:1.06rem}.bt-fighter small{font-size:.54rem}.bt-fighter div>span{font-size:.65rem}
  .bt-chits{grid-template-columns:repeat(2,minmax(0,1fr))}.bt-pools{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
}
@media(max-width:400px){.bt-topbuttons .bt-button{font-size:.67rem!important;gap:.15rem}.bt-topbuttons svg{width:12px}.bt-orderline{flex-wrap:wrap}.bt-choices{width:100%;justify-content:flex-start}.bt-orderline strong{font-size:.82rem}.bt-team{font-size:5.5px}}
@media(prefers-reduced-motion:reduce){.bt-throwcard .bt-faces{animation:none}}
.bt button.bt-path .bt-cellmark{width:20%;background:#f8ebad;box-shadow:0 0 0 1px #686338}
