@font-face{font-family:Shoulders;src:url(fonts/shoulders-700.ttf);font-weight:700;font-display:swap}
@font-face{font-family:Park;src:url(fonts/park-400.ttf);font-display:swap}
@font-face{font-family:Park;src:url(fonts/park-700.ttf);font-weight:700;font-display:swap}
@font-face{font-family:JBM;src:url(fonts/jbm-700.ttf);font-weight:700;font-display:swap}
:root{color-scheme:dark;--night:#101d20;--panel:#17292a;--line:#384c45;--cream:#fff0ce;--gold:#f2c777;--dim:#b5c2ae;--mint:#90c9a2}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 45% 18%,#21352f 0,#142427 49%,#0e191d 100%);min-height:100vh;color:var(--cream);font:16px/1.4 Park,system-ui,sans-serif}.wrap{width:min(1220px,calc(100% - clamp(28px,7vw,110px)));margin:auto}
header{border-bottom:1px solid var(--line);background:#101d20}.mast,nav,.heading,.stage-bar,.log-title,.brand,.progress,#seals,footer,#actions{display:flex;align-items:center}.mast,.heading,.stage-bar{justify-content:space-between}.mast{min-height:56px}.brand{gap:10px;font-weight:700;letter-spacing:.04em}.brand-mark{color:var(--gold);font-size:25px}nav{gap:18px}a,button{font:inherit}nav a,nav button{color:var(--dim);background:none;border:0;padding:7px 0;text-decoration:none;font-size:14px}button{cursor:pointer}a:hover,nav button:hover{color:#fff}
.heading{padding:clamp(19px,3.2vw,43px) 0 clamp(18px,2.4vw,30px);gap:18px}.kicker,.stage-bar,.progress,.log-mark{font:700 12px/1.4 JBM,monospace;letter-spacing:.12em;text-transform:uppercase}.kicker{color:var(--gold);margin:0 0 4px}h1,h2,p{margin:0}h1{font:700 clamp(44px,5.3vw,78px)/.95 Shoulders,Impact,sans-serif;letter-spacing:.005em;text-transform:uppercase}.progress{align-items:flex-end;flex-direction:column;gap:10px;color:var(--dim);font-size:12px}.progress i{width:10px;height:10px;border:1px solid #7b856b;background:#192525;transform:rotate(45deg)}#seals{gap:9px;padding:0 2px}.progress .earned{background:var(--gold);border-color:var(--gold)}
.layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(209px,23%,270px);gap:18px;align-items:start}.console,aside{border:1px solid var(--line);background:var(--panel);box-shadow:0 5px 15px #07121355;border-radius:5px;overflow:hidden}.stage-bar{padding:10px 16px;color:#d6ddc7;font-size:12px;background:#1a2c2b}.stage-bar span:last-child{color:var(--gold);font:400 14px/1.2 Park,sans-serif;letter-spacing:0;text-transform:none}.screen{border-block:1px solid #51614f;background:#132128}.screen canvas{width:100%;height:auto;display:block;image-rendering:pixelated;cursor:crosshair;touch-action:manipulation}.controls{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;min-height:104px}.info{flex:1;min-width:0}.info h2,.log-title h2{font:700 29px/1.05 Shoulders,Impact,sans-serif;letter-spacing:.01em}.info .kicker{font-size:11px;color:var(--gold);margin-bottom:4px}#message{color:var(--dim);font-size:15px;line-height:1.35;margin-top:5px}#actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.action{border:1px solid #718976;border-bottom:3px solid #102019;border-radius:4px;padding:8px 12px;min-height:40px;background:#304d43;color:#ffefd0;font:700 15px Park,sans-serif;white-space:nowrap}.action.primary{background:var(--gold);border-color:#f0d497;border-bottom-color:#956735;color:#202a22}.action:hover:enabled{filter:brightness(1.12)}.action:disabled{opacity:.48;cursor:default}.action kbd{border:0;padding:0;background:transparent;opacity:.8;color:inherit;font-size:11px;margin-right:5px}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #f7d64b;outline-offset:-3px}#health{font:700 12px JBM,monospace;color:#eec989;margin-top:8px}
.log-title{padding:15px 17px;border-bottom:1px solid var(--line);gap:9px}.log-mark{color:var(--gold)}.log-title h2{font-size:25px}ol{margin:0;padding:0;list-style:none}li{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid #31423c;color:#b6c2b5;font-size:15px;line-height:1.2;min-height:41px}li:first-child{border:0}.stop-num{font:700 11px JBM,monospace;color:#94a492;text-align:center;min-width:24px}.stop-state{margin-left:auto;color:#899b88;font:700 13px JBM,monospace}.current{background:#394132;box-shadow:inset 3px 0 var(--gold);color:#fff1cd}.current .stop-num,.current .stop-state{color:var(--gold)}.cleared .stop-state,.cleared .stop-num{color:var(--mint)}footer{gap:19px;flex-wrap:wrap;color:#abb9aa;padding:15px 0 23px;font-size:14px}kbd{font:700 11px JBM,monospace;background:#20302e;color:#d9decb;border:1px solid #48584d;border-radius:3px;padding:2px 4px}
@media(max-width:980px){.controls{flex-wrap:wrap}.controls .info{flex-basis:100%}#actions{justify-content:flex-start}.layout{gap:12px}}
@media(max-width:680px){.wrap{width:calc(100% - 22px)}.mast{min-height:44px}.brand{font-size:14px;gap:5px}.brand-mark{font-size:20px}nav{gap:13px}.heading{padding:18px 0 14px;align-items:flex-end}.heading h1{font-size:clamp(35px,8vw,49px)}.heading .kicker{font-size:10px}.progress{font-size:10px;letter-spacing:.03em;gap:5px}#seals{gap:4px}.progress i{width:6px;height:6px}.layout{grid-template-columns:1fr}.controls{padding:12px;gap:9px;min-height:105px}.stage-bar{padding:7px 11px}.action{min-height:42px}.log-title{padding:10px 12px}ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}li{padding:6px;gap:4px;font-size:12px;min-height:39px;border:1px solid #31423c}li:first-child{border:1px solid #31423c}.stop-num{min-width:19px;font-size:9px}.stop-state{display:none}footer{gap:8px 14px;font-size:12px}.info h2{font-size:25px}.kicker{font-size:11px}}
@media(max-width:360px){.edition{display:none}.heading{align-items:flex-start;flex-direction:column}.progress{flex-direction:row;align-items:center}.brand{font-size:13px}}

.screen.reading{display:grid;align-items:center;isolation:isolate;position:relative;min-height:205px}
.screen.reading canvas{grid-area:1 / 1;align-self:stretch;height:100%;position:absolute;inset:0;opacity:.32;pointer-events:none}
#story-card{grid-area:1 / 1;position:relative;width:min(600px,calc(100% - 36px));margin:clamp(16px,3vw,36px) auto;padding:clamp(16px,2.3vw,28px);color:#332e20;background:#f2e4bf;border:1px solid #cea966;box-shadow:inset 0 0 0 4px #f2e4bf,inset 0 0 0 5px #bbab87,0 6px 18px #08111466}
.story-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:9px;border-bottom:1px solid #b8a37c}
.story-heading .kicker{color:#7b482c;font-size:11px}.story-heading h2{font:700 clamp(27px,3vw,39px)/1.05 Shoulders,Impact,sans-serif}.story-heading img{flex:none}
#story-text p{margin-top:.7em;font:clamp(16px,1.45vw,19px)/1.42 Georgia,serif;white-space:pre-line}
@media(max-width:680px){#story-card{width:calc(100% - 18px);margin:9px auto;padding:15px}.story-heading img{width:30px;height:35px}#story-text p{line-height:1.35}}

.screen canvas[hidden], #card-table[hidden], #trail-controls[hidden]{display:none}
#card-table{
  border:clamp(5px,1vw,10px) solid #594835;
  outline:1px solid #bc9a64;
  outline-offset:-5px;
  background:radial-gradient(ellipse at center,#325e49,#1b3b33 80%);
  color:#f5e8c5;
  text-align:center;
  padding:clamp(15px,2vw,26px) 12px;
}
.hand-label,.hand-cards,.table-rule{display:flex;align-items:center;justify-content:center}
.hand-label{gap:12px;font:700 15px Park,system-ui,sans-serif}
.hand-label span:last-child{color:#dbd5ae;font:700 12px JBM,monospace}
.hand-cards{gap:6px;flex-wrap:wrap;margin:8px 0 0;min-height:82px}
.playing-card{
  position:relative;display:inline-grid;place-items:center;
  width:clamp(44px,5vw,68px);height:clamp(65px,7.6vw,96px);
  border:1px solid #d6c8a8;border-radius:5px;background:#f6edda;color:#263535;
  box-shadow:0 3px 0 #10292180;
}
.playing-card b{position:absolute;top:2px;left:5px;font:700 16px Georgia,serif}
.playing-card span{font:clamp(27px,3.1vw,43px)/1 Georgia,serif}
.red-suit{color:#a1403e}
.face-down{
  background:repeating-linear-gradient(45deg,#82443c 0 3px,#6e332e 3px 6px);
  border:4px double #ddc499;
}
.face-down::after{content:"✦";font-size:30px;color:#f0d19b}
.table-rule{gap:12px;width:min(300px,80%);margin:12px auto;color:#d8b980}
.table-rule::before,.table-rule::after{content:"";height:1px;background:#829171;flex:1}
@media(max-width:680px){.hand-cards{min-height:65px}.table-rule{margin:8px auto}}
