:root{color-scheme:light;--ink:#392b24;--muted:#706558;--paper:#f8f4e9;--card:#fcf9f0;--line:#d9cdb8;--rust:#a1472d;--heading:"Baskerville","Baskerville Old Face","Palatino Linotype",Georgia,serif;--text:"Instrument Sans","Segoe UI",Arial,sans-serif;font-family:var(--text);color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background-image:url("assets/grain.svg")}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.47}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #27827b;outline-offset:3px}a{color:inherit}.icon{width:1.15rem;height:1.15rem;display:inline-block;flex:none}i[data-icon]{display:inline-flex;font-style:normal}button{touch-action:manipulation}.mast{background:#372923;color:#f9edda;border-bottom:3px solid #b48a53}.mast-inner,.page{max-width:1264px;padding-inline:46px;margin:auto}.mast-inner{height:65px;display:flex;align-items:center;gap:60px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font:600 27px/1 var(--heading);letter-spacing:-.7px;white-space:nowrap}.brand img{height:37px;width:37px}.mast nav{display:flex;align-items:stretch;height:100%;gap:26px;margin-left:auto}.mast nav button,.mast-tools button{background:none;border:0;color:#e1d4bf}.mast nav button{display:flex;align-items:center;gap:8px;font-size:14px;position:relative;padding:0 3px}.mast nav button.active{color:white}.mast nav button.active:after{content:"";position:absolute;bottom:0;left:0;right:0;background:#e1b97b;height:3px}.mast nav button:hover,.mast-tools button:hover{color:#fff}.mast-tools{display:flex;gap:4px;border-left:1px solid #776150;padding-left:15px;margin-left:-34px}.icon-button{width:36px;height:36px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:transparent}.icon-button:hover{background:#ebdfc9}.hero{display:flex;position:relative;align-items:center;justify-content:space-between;isolation:isolate;min-height:208px;margin:0 0 16px;border-bottom:1px solid #cebea6;padding:26px 0 22px}.hero-copy{position:relative;z-index:1;flex-shrink:0}.eyebrow,.small-label,.mode-label,.stats-head,.turn-label{font-size:12px;line-height:1.4;font-weight:700;text-transform:uppercase;letter-spacing:1.65px}.eyebrow{color:#945239;display:flex;align-items:center;gap:12px}.orn-rule{width:27px;height:1px;background:#ad7050;position:relative}.orn-rule:after{content:"";position:absolute;width:5px;height:5px;transform:rotate(45deg);background:#ad7050;right:0;top:-2px}h1,h2,h3,p{margin:0}.hero h1{font:600 clamp(46px,5.2vw,75px)/1.04 var(--heading);letter-spacing:-3.3px;margin:7px 0 4px}.hero-copy>p{font:italic 23px/1.32 var(--heading);color:#6f5e4b}.metadata{display:flex;align-items:center;gap:12px;color:#695d50;margin-top:16px;font-size:13px}.metadata span{display:flex;align-items:center;gap:6px}.metadata .icon{width:15px;height:15px}.metadata b{height:3px;width:3px;border-radius:50%;background:#a38c73}.hero-art{width:46%;max-width:550px;height:198px;object-fit:contain;mix-blend-mode:multiply;margin:-20px 4px -15px 0;pointer-events:none}
.table-layout{display:grid;grid-template-columns:minmax(0,1.93fr) minmax(290px,1fr);gap:22px;align-items:start}.board-card,.panel{border:1px solid #cfc3af;border-radius:9px;background:var(--card);box-shadow:0 2px 5px #513a1d0a;overflow:hidden}.board-bar{display:flex;align-items:center;justify-content:space-between;padding:11px 16px 11px 21px;min-height:56px;border-bottom:1px solid var(--line)}.board-bar h2,.panel h2{font:600 25px/1.1 var(--heading);letter-spacing:-.65px}.board-bar h2,.panel-heading{display:flex;align-items:center;gap:10px}.board-bar h2 .icon{width:21px;height:21px;color:#7e5d42}.board-tools{display:flex;align-items:center;gap:11px}.mode-label{display:inline-flex;align-items:center;gap:6px;font-size:10px;letter-spacing:1.2px;background:#eee6d6;color:#675741;border:1px solid #d7c9b1;border-radius:4px;padding:4px 8px}.mode-label .icon{width:13px;height:13px}.board-tools .icon-button{border:0;width:30px;height:30px}
.slab{margin:13px 13px 0;padding:7px;background:#69503a;border:1px solid #594330;border-radius:5px;box-shadow:inset 0 0 0 2px #99734f,inset 0 0 0 4px #6e5037;position:relative}.board-mat{isolation:isolate;position:relative;background-color:#dfc79b;background-image:url("assets/grain.svg"),radial-gradient(ellipse at 45% 35%,#edd9b3 0%,#dfc79e 70%,#d1b38a 100%);border:1px solid #493421;box-shadow:inset 0 1px 7px #81614162}.board-mat:before,.board-mat:after{content:"";position:absolute;inset:9px;border:1px solid #8e6f46;pointer-events:none}.board-mat:after{inset:13px;border-color:#aa8a60}.mat-corners{position:absolute;inset:17px;pointer-events:none;background:var(--corner) left top/35px no-repeat,var(--corner2) right top/35px no-repeat,var(--corner2) left bottom/35px no-repeat,var(--corner) right bottom/35px no-repeat;--corner:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%2392734e' stroke-width='1.4'%3E%3Cpath d='M1 41V1h40M5 28V5h23M7 7q18-3 14 14Q4 25 7 7Z'/%3E%3Cpath d='m9 9 17 17m-13-13 3 1-1 3Z'/%3E%3C/g%3E%3C/svg%3E");--corner2:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg transform='translate(44 0) scale(-1 1)' fill='none' stroke='%2392734e' stroke-width='1.4'%3E%3Cpath d='M1 41V1h40M5 28V5h23M7 7q18-3 14 14Q4 25 7 7Z'/%3E%3Cpath d='m9 9 17 17'/%3E%3C/g%3E%3C/svg%3E")}
.board-svg{display:block;width:100%;height:clamp(338px,35vw,463px);position:relative;z-index:1;user-select:none;-webkit-user-select:none;touch-action:pan-y}.board-svg .spot{cursor:pointer;outline:none}.spot .focus{opacity:0}.spot:focus-visible .focus,.spot:hover .focus{opacity:1}.legend{display:flex;justify-content:center;align-items:center;gap:23px;padding:11px 8px 12px;font-size:13px;color:#685b4e}.legend span{display:flex;gap:5px;align-items:center}.mini{display:inline-flex;width:21px;height:21px}.mini svg{width:100%;height:100%}.open-point{height:8px;width:8px;border-radius:50%;background:#6b523a;box-shadow:0 0 0 2px #e2d0ae;margin-inline:5px}
#sidebar{display:grid;gap:13px}.panel{padding:19px 21px}.panel-heading{justify-content:space-between}.heading-with-icon{display:flex;align-items:center;gap:9px}.heading-with-icon>.icon{width:20px;height:20px;color:var(--rust)}.step-counter{font-size:12px;color:#86513c;font-weight:600;white-space:nowrap}.progress{display:flex;gap:5px;margin:13px 0 17px}.progress span{height:3px;flex:1;background:#e6ddca;border-radius:2px}.progress span.on{background:#ab5838}.lesson-title,.turn-title{font:600 29px/1.12 var(--heading);letter-spacing:-.5px}.lesson-text,.turn-hint{font-size:15px;line-height:1.5;color:#6b5e50;margin:6px 0 15px}.action-row{display:flex;gap:9px;align-items:center;justify-content:space-between}.btn{min-height:40px;border-radius:5px;border:1px solid #cbbcaa;background:#f8f2e5;padding:8px 15px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{background:#eee3d1}.primary{background:var(--rust);border-color:#89402d;color:#fff8e9;box-shadow:inset 0 1px #ffffff20}.primary:hover{background:#893b25}.action-row>.primary{min-width:105px}.text-btn{border:0;background:none;padding:8px 0;font-size:13px;color:#725f4f;text-decoration:underline;text-underline-offset:3px}.text-btn:hover{color:#873923}.stats-head{display:flex;gap:9px;align-items:center;color:#79624e;font-size:11px;margin-bottom:12px}.stats-head .icon{width:16px;height:16px}.stat-row{display:flex;align-items:center;gap:11px;margin-top:13px}.stat-name{flex:1;font-size:14px;color:#645447}.stat-value{font:600 24px/1 var(--heading);font-variant-numeric:tabular-nums}.stat-value small{font:normal 14px var(--text);color:#7a6a58}.status-rule{height:1px;background:var(--line);margin:14px 0}.capture-strip{display:flex;gap:5px;margin-left:0}.capture-strip span{width:10px;height:10px;border:1px solid #b1a28c;transform:rotate(45deg);border-radius:2px}.capture-strip .on{background:#a14e30;border-color:#a14e30}.objective{padding:17px 21px;background:#f1eadb}.objective-row{display:flex;align-items:center;gap:10px;margin-top:9px;color:#675747;font-size:14px}.objective-row strong{color:#443528;font-weight:600}.objective-row .mini{width:26px;height:26px;flex:none}.turn-strip{display:flex;align-items:center;gap:11px;margin:7px 0 11px}.badge-piece{display:grid;place-items:center;width:49px;height:49px}.badge-piece svg{width:100%;height:100%}.turn-label{font-size:10px;letter-spacing:1.3px;color:#975338}.turn-title{font-size:25px}.panel .full{width:100%;margin-top:10px}.board-card.expanded{position:fixed;inset:2vh 4vw;z-index:9;display:flex;flex-direction:column;background:var(--card);box-shadow:0 0 0 10vmax #292019b8}.expanded .slab{min-height:0;flex:1;display:flex}.expanded .board-mat{width:100%}.expanded .board-svg{height:100%}.expanded .legend{flex-shrink:0}.focus-token{animation:glow 1.8s ease-in-out infinite}.enter-piece{transform-box:fill-box;transform-origin:center;animation:place .16s ease-out}@keyframes place{from{opacity:.4;scale:.78}}@keyframes glow{50%{opacity:.4}}footer{display:flex;align-items:center;gap:11px;margin:22px 0 18px;color:#a58663}.footer-rule{height:1px;background:#d4c7b1;flex:1}.flourish{font-size:9px;font-style:normal}
dialog{padding:0;border:1px solid #b6a387;background:var(--card);color:var(--ink);border-radius:10px;max-height:88dvh;max-width:calc(100% - 24px);width:450px;box-shadow:0 15px 50px #33251d44}dialog::backdrop{background:#30241c68}#modal-body{padding:24px}.modal-top{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:18px}.modal-top h2{font:600 31px/1.1 var(--heading);letter-spacing:-.8px}.modal-top .icon-button{border:0}.modal-copy{font-size:16px;line-height:1.55;color:#655747;margin:10px 0 18px}.mode-choice{width:100%;display:flex;align-items:center;gap:12px;text-align:left;min-height:52px;margin:7px 0}.mode-choice .icon{color:#955131}.field{border:0;margin:16px 0;padding:0}.field legend,.field-label{font-size:14px;font-weight:600;margin-bottom:7px}.choice-group{display:flex;gap:5px}.choice-group .btn{flex:1}.choice-group .chosen{background:#f2dfc4;color:#763b26;border-color:#9e6445}.setting-line{display:flex;justify-content:space-between;align-items:center;margin:10px 0;min-height:40px}.switch{padding:5px 13px;border:1px solid #b8a994;border-radius:20px;background:#eee6d7}.switch[aria-checked=true]{background:#645b44;color:#fff9ed}.input{width:100%;border:1px solid #c7b8a1;font-size:15px;border-radius:4px;background:#fffaf0;color:var(--ink);padding:10px}.dialog-buttons{display:flex;gap:8px;margin-top:17px;justify-content:flex-end}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.note{font-size:14px;color:#91603d;margin:8px 0;line-height:1.45}.action-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding-top:12px}.active-indicator{display:inline-block;width:8px;height:8px;border-radius:50%;background:#6a7c54}
@media(min-width:1450px){.hero{min-height:225px}.board-svg{height:480px}}
@media(max-width:920px){.mast-inner,.page{padding-inline:24px}.mast-inner{gap:35px}.mast-tools{margin-left:-20px}.hero{min-height:190px}.hero h1{font-size:56px}.hero-art{width:43%}.table-layout{grid-template-columns:minmax(0,1.6fr) minmax(265px,1fr);gap:13px}.panel{padding:16px}.board-bar{padding-left:13px}.slab{margin:8px 8px 0}.board-svg{height:clamp(340px,44vw,430px)}.board-mat:after{inset:9px}.board-mat:before{inset:6px}.mat-corners{inset:11px}.legend{gap:14px}.mast nav{gap:16px}}
@media(max-width:700px){.mast-inner,.page{padding-inline:15px}.mast-inner{height:56px;gap:12px}.brand{font-size:22px;gap:6px}.brand img{width:29px;height:29px}.mast nav{gap:4px}.mast nav button{width:36px;justify-content:center}.mast nav span{display:none}.mast-tools{margin-left:0;gap:0;padding-left:5px}.icon-button{width:33px}.hero{min-height:149px;margin:0 0 12px;padding:20px 0 16px;overflow:hidden}.hero h1{font-size:clamp(36px,8vw,52px);letter-spacing:-1.7px;margin:5px 0}.hero-copy>p{font-size:17px}.metadata{font-size:12px;gap:7px;margin-top:10px}.eyebrow{font-size:9px;letter-spacing:1.3px;gap:7px}.orn-rule{width:16px}.hero-art{width:34%;margin:0 -1% 0 0;height:auto}.table-layout{grid-template-columns:1fr;gap:12px}.board-svg{height:auto;aspect-ratio:1.44}.board-bar{min-height:43px;padding:4px 10px}.board-bar h2,.panel h2{font-size:21px}.legend{font-size:12px;padding:6px;gap:19px}.board-tools{gap:5px}.slab{padding:4px}.board-mat:before{inset:4px}.board-mat:after{inset:7px}.mat-corners{inset:8px;background-size:19px}.panel{padding:16px}.lesson-text,.turn-hint{margin-bottom:12px}.progress{margin:10px 0 12px}#sidebar{gap:10px}.legend .mini{width:18px;height:18px}.board-card.expanded{inset:7vh 1vw}.expanded .board-svg{aspect-ratio:auto}}
@media(max-width:420px){.page{padding-inline:9px}.mast-inner{padding-inline:10px}.mast nav{gap:0}.mast-tools{padding-left:3px}.mast-inner{gap:7px}.mast nav button{width:29px}.mast-tools .icon-button{width:29px}.hero-art{position:absolute;right:-4px;bottom:10px;width:33%;z-index:-1}.hero{min-height:142px}.hero-copy>p{font-size:16px}.hero h1{font-size:38px}.board-svg{aspect-ratio:1.27}.slab{margin:6px 6px 0}}
.hero{isolation:auto}.hero-art{filter:brightness(1.13);mix-blend-mode:multiply}.mat-corners{background:var(--corner) left top/35px no-repeat,var(--corner2) right top/35px no-repeat}.mat-corners:after{content:"";position:absolute;inset:0;transform:rotate(180deg);background:inherit}
@media(max-width:700px){.board-svg{aspect-ratio:1000/1020}.mat-corners{background-size:20px}.hero-art{z-index:0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
