@charset "UTF-8";
:root{--page:#f7f5ee;--paper:#fffdf7;--ink:#243a33;--muted:#62685f;--forest:#233f36;--rust:#a64730;--line:#dad7c9;--serif:"Baskervville","Georgia","Times New Roman",serif;--sans:"DM Sans","Segoe UI",Arial,sans-serif;--olive:#e6e9dc;--glyph:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--page) url(../assets/grain.svg);color:var(--ink);font:15px/1.45 var(--sans)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:disabled{cursor:default;opacity:.49}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #bf6639;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:500}h2{font-size:clamp(27px,2.1vw,34px);letter-spacing:-1px}h3{font-size:23px;letter-spacing:-.6px}svg.ico{width:19px;height:19px;display:inline-block;flex:none;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}.skip-link:focus{position:fixed;z-index:8;background:white;padding:10px}
.mast{height:66px;background:#203a32;color:#faf7e9}.mast-inner,.hero-inner,.workspace,footer{width:min(1256px,calc(100% - 100px));margin:auto}.mast-inner{height:100%;display:flex;align-items:center;gap:58px}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;white-space:nowrap;font-family:var(--serif);font-weight:600;font-size:25px;letter-spacing:-.9px}.brand img{width:34px;height:34px}.mast nav{display:flex;align-items:stretch;gap:12px;height:100%}.mast nav button{position:relative;color:#d6dfd2;display:flex;align-items:center;gap:8px;padding:0 13px;font-size:14px;font-weight:550}.mast nav .nav-active{color:#fff5d8}.mast nav .nav-active:after{content:"";position:absolute;bottom:0;height:3px;border-radius:2px 2px 0 0;background:#e4be8c;left:12px;right:12px}.mast nav svg{width:16px;height:16px}.header-tools{margin-left:auto;display:flex;gap:7px}.icon-btn{height:42px;width:42px;border-radius:6px;display:inline-grid;place-items:center}.mast button:hover{background:#ffffff0e}.hero{isolation:isolate;position:relative;overflow:hidden;border-bottom:1px solid #c8c8b7;background:#efeada url(../assets/grain.svg)}.hero-art{z-index:-1;position:absolute;inset:0 0 0 35%;background:url(../assets/mountains.webp) right 50%/cover no-repeat;mask-image:linear-gradient(to right,transparent,#000 28%);mix-blend-mode:multiply}.hero-inner{padding:25px 0 23px;position:relative}.overline,.rank-labels,.step-counter,.choice-label{font-size:10px;font-weight:750;letter-spacing:1.9px;line-height:1.3}.origin{display:flex;align-items:center;gap:9px;color:#92432f}.origin span{height:2px;width:23px;background:#aa5238}.titleline{display:flex;align-items:center;gap:16px;margin:2px 0 0}.titleline h1{font-size:clamp(64px,5.4vw,82px);line-height:1.04;letter-spacing:-4px;color:#1f372e}.name-seal{border:2px solid #a74f36;border-radius:4px;padding:2px 1px;display:flex;flex-direction:column;transform:rotate(4deg);color:#a74f36;margin-top:6px}.glyph{display:block;background:currentColor;mask:var(--glyph) center/contain no-repeat}.name-seal .glyph{width:18px;height:18px}.hero-tag{font:italic 21px/1.35 var(--serif);color:#444d40;margin:2px 0 12px}.game-meta,.game-meta span{display:flex;align-items:center}.game-meta{gap:13px;font-size:12px;color:#4e574b}.game-meta span{gap:6px}.game-meta svg{width:15px;height:15px}.game-meta b{height:11px;width:1px;background:#999d8d}
.workspace{display:grid;grid-template-columns:minmax(0,2.13fr) minmax(280px,1fr);align-items:start;gap:27px;padding:28px 0 36px}.play-column,aside{min-width:0}.section-title,.section-title>div,.panel-title,.rank-head,.turn-strip,.turn-strip>div,.board-caption,.legend,.legend span,.guide-top,.guide-commands,.outline,.primary,.ghost-light,.link-btn,.text-action,.choice,.capture-row,.chip-btn{display:flex;align-items:center}.section-title{justify-content:space-between;gap:10px;margin-bottom:14px;min-height:39px}.section-title>div{gap:13px}.mode-pill,.count{font-size:11px;line-height:1;background:var(--olive);color:#405345;border:1px solid #ccd4bf;padding:5px 9px;border-radius:4px;font-weight:650}.outline,.primary,.ghost-light{border-radius:6px;justify-content:center;gap:8px;min-height:43px;padding:9px 17px;font-size:13px;font-weight:650}.outline{border:1px solid #bfc3b4;background:#faf9f2}.outline:hover{background:#e9ebdf;border-color:#929e8d}.compact{min-height:35px;padding:6px 12px;font-size:12px}.compact svg{width:15px;height:15px}.primary{background:var(--forest);color:#fff9ea}.primary:hover{background:#345546}.board-card,.paper-box{border:1px solid #d3d1c2;border-radius:10px;background:var(--paper) url(../assets/grain.svg)}.board-card{overflow:hidden;box-shadow:0 3px 6px #30311c09}.turn-strip{padding:12px 17px;justify-content:space-between;gap:12px;background:#f0f0e6;color:#4c5a4c;font-size:12px}.turn-strip>div{gap:9px}.turn-strip strong{font-size:14px;color:#273d32}.turn-mark,.legend b{display:inline-block;border-radius:50%;flex:none}.turn-mark{width:12px;height:12px;background:#ac4832;outline:1px solid #ad624f;outline-offset:2px;margin:0 3px}.turn-mark.black,.legend-black{clip-path:polygon(29% 0,71% 0,100% 29%,100% 71%,71% 100%,29% 100%,0 71%,0 29%);background:#263932}.turn-mark.unknown{background:#947756;outline-color:#947756}
.wood-board{position:relative;padding:16px 18px 25px 30px;background-image:url(../assets/grain.svg),repeating-linear-gradient(2deg,transparent 0 4px,#8d5b2112 5px,transparent 6px 18px),linear-gradient(110deg,#e4c99b,#e9d2ab 49%,#d9bb89);border-top:1px solid #bca47e;border-bottom:1px solid #b09b78;box-shadow:inset 0 1px #fff7da,inset 0 -3px 0 #c8ae83}.board-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border:1.5px solid #8b734e;box-shadow:0 0 0 3px #e7cfaa,0 0 0 4px #997e59;background:#f3dfb8 url(../assets/grain.svg);position:relative;touch-action:manipulation}.cell{position:relative;display:grid;place-items:center;padding:0;min-width:0;aspect-ratio:1.03;isolation:isolate;background:linear-gradient(115deg,#80572004,#fff3d426);border-radius:0;border-right:1px solid #a98f6a;border-bottom:1px solid #a98f6a;user-select:none;-webkit-user-select:none}.cell:nth-child(8n){border-right:none}.cell:nth-child(n+25){border-bottom:none}.cell:nth-child(2n){background-color:#d1aa6a12}.cell:hover{background-color:#fff5d066}.cell:focus-visible{z-index:2;outline-offset:-4px}.cell.last:after,.cell.selected:after,.cell.hint:after{content:"";position:absolute;inset:2px;border:2px solid #687b7780;pointer-events:none;border-radius:2px}.cell.selected:after{border-color:#24629b;background:#4d83ab16}.cell.hint:after{border:2px dashed #a45632;background:#fef0a326}.cell.point:before{content:"";width:18%;height:18%;position:absolute;border-radius:50%;background:#507852;z-index:1}.cell.target .disc{outline:3px dashed #b27718;outline-offset:2px}.cell.arrow:before{content:"↓";position:absolute;top:0;right:1px;background:#a7472e;color:white;z-index:4;font-size:15px;padding:0 4px}.board-rows,.board-cols{position:absolute;display:grid;color:#705b3d;font:11px var(--sans)}.board-rows{left:0;width:27px;top:16px;bottom:25px;grid-template-rows:repeat(4,1fr)}.board-cols{left:30px;right:18px;bottom:4px;grid-template-columns:repeat(8,1fr)}.board-rows b,.board-cols b{display:grid;place-items:center;font-weight:650}
.disc{position:relative;z-index:1;width:80%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 0 #805b3e,0 4px 5px #55391d47,inset 0 1px 2px #fff8dd;pointer-events:none}.disc.red{color:#a5422b;background:radial-gradient(at 38% 24%,#fff6dc,#f7e8c6 76%,#dcc491);border:1px solid #a78556}.disc.red:before,.mini-piece.red:before{content:"";position:absolute;inset:7%;border:2px solid currentColor;border-radius:50%;box-shadow:inset 0 0 0 2px #f9eacc,inset 0 0 0 3px #ac6546}.disc.black{color:#f4ebcf;background:radial-gradient(at 35% 20%,#48504a,#28332f 68%,#1c2420);border:1px solid #1e2a23;box-shadow:0 3px 0 #18241d,0 4px 5px #4a342753,inset 0 1px 0 #758070}.disc.black:before,.mini-piece.black:before{content:"";position:absolute;inset:8%;background:currentColor;clip-path:polygon(evenodd,30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%,30% 0,31% 3%,3% 31%,3% 69%,31% 97%,69% 97%,97% 69%,97% 31%,69% 3%,31% 3%);opacity:.85}.disc .glyph{width:63%;height:63%;z-index:1}.disc small{position:absolute;top:0;right:0;color:var(--ink);background:#f8ebcf;border:1px solid #968668;border-radius:50%;font-size:clamp(9px,.78vw,12px);font-weight:700;line-height:1.35;min-width:1.4em;text-align:center;z-index:2}.disc.black small{border-color:#60675d;background:#334039;color:#f2e6c9}.disc.back{background:radial-gradient(at 35% 20%,#aa835a,#89633e);border:1px solid #795531}.disc.back:before{content:"";position:absolute;inset:9%;border:2px solid #6e4c31;border-radius:50%;box-shadow:0 0 0 1px #c7a477,inset 0 0 0 2px #bc9267;background:repeating-linear-gradient(45deg,transparent 0 5px,#6b492674 5px 7px),repeating-linear-gradient(-45deg,transparent 0 5px,#6b492674 5px 7px)}.board-caption{justify-content:space-between;padding:12px 16px;gap:8px;font-size:11px;color:#616757}.legend{gap:17px}.legend span{gap:6px}.legend b{width:10px;height:10px}.legend-red{background:#ab4930;border:2px solid #f9e4c4;outline:1px solid #b37351}.legend-hidden{background:repeating-linear-gradient(45deg,#a08158 0 2px,#745634 2px 3px);border:1px solid #886947}#moveCount{font-variant-numeric:tabular-nums}
aside{display:grid;gap:17px}.guide-card{position:relative;overflow:hidden;background:var(--forest);border:1px solid #254236;border-radius:10px;padding:20px 23px 18px;color:#f8f3df;box-shadow:0 3px 8px #132c2010}.guide-card:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 100% 0, #b4c18620,transparent 60%),url(../assets/grain.svg);pointer-events:none}.guide-card>*{position:relative}.guide-top{justify-content:space-between;color:#e0caa3}.guide-top .overline{display:flex;gap:8px;align-items:center;letter-spacing:1.6px}.guide-top svg{width:16px;height:16px}.step-counter{font-size:10px;color:#d9dfce;background:#ffffff0d;border:1px solid #ffffff27;padding:4px 7px;border-radius:4px;letter-spacing:.7px}.step-track{display:flex;gap:5px;margin:12px 0 16px}.step-track b{flex:1;height:3px;background:#617568;border-radius:2px}.step-track b.on{background:#dec194}.guide-card h2{font-size:29px;line-height:1.17;letter-spacing:-.9px}.guide-copy{color:#e1e7d9;font-size:14px;margin:8px 0 18px;line-height:1.5}.guide-commands{gap:12px;justify-content:space-between}.guide-card .primary{background:#f3e6c9;color:#2f3c2e;min-height:38px;padding:8px 13px}.guide-card .primary:hover{background:#fff3df}.guide-card .link-btn,.ghost-light{color:#e7eddf;font-size:12px;padding:6px 0;gap:6px}.guide-card .link-btn:hover{text-decoration:underline}.link-btn svg,.guide-card .primary svg{width:15px;height:15px}.guide-back{border:1px solid #839486;border-radius:5px;color:#f7efd9;min-width:34px;height:36px}.guide-commands .guide-back+.primary{margin-right:auto}.rank-card{padding:18px 21px 13px}.rank-head{justify-content:space-between}.panel-title{gap:9px}.small-icon{color:#936348;display:flex;align-items:center}.small-icon svg{width:19px;height:19px}.text-action{width:34px;height:34px;justify-content:center;border-radius:5px}.text-action:hover{background:#e9eadd}.rank-labels{display:flex;justify-content:space-between;color:#777b70;font-size:9px;letter-spacing:1.5px;margin:15px 0 4px}.rank-row{display:flex;align-items:center;gap:11px;width:100%;padding:5px 0;border-top:1px solid #e4e2d6;font-size:13px;font-weight:550;text-align:left}.rank-row:hover{background:#ecece1}.rank-number{margin-left:auto;color:#536051;font:italic 15px var(--serif)}.mini-piece{width:25px;height:25px;background:#f3e6c9;border:1px solid #c59f75;border-radius:50%;color:#9e432f;position:relative;display:inline-grid;place-items:center;vertical-align:middle;flex:none}.mini-piece.red:before{inset:7%;border-width:1px;box-shadow:none}.mini-piece.black{background:#344038;border-color:#26332c;color:#f5ecd8}.mini-piece .glyph{width:72%;height:72%}
#notice:not(:empty){margin:10px 0 0;padding:8px 12px;border-left:3px solid #a8613e;background:#eeeade;color:#3b463c;font-size:13px}.below-board{display:grid;grid-template-columns:1.22fr 1fr;gap:15px;margin-top:17px}.below-board .paper-box{padding:14px 17px 13px}.below-board h3{font-size:21px}.panel-title>.count{margin-left:auto;border:0;padding:5px 7px}.pool-row{display:grid;grid-template-columns:26px repeat(7,1fr);align-items:center;gap:1px;margin-top:7px}.pool-row>span,.capture-row>span{font-size:10px;color:var(--muted)}.pool-button{padding:3px 0;display:flex;align-items:center;flex-direction:column;gap:1px;font-size:10px}.pool-button .mini-piece{width:21px;height:21px}.pool-button.depleted{opacity:.48}.pool-button:hover,.pool-button.active{background:#e5e8da;border-radius:4px}.pool-chance{font-size:11px;color:#555e52;margin-top:6px}.capture-row{gap:8px;padding-top:9px;flex-wrap:wrap}.capture-row>span{min-width:24px}.capture-types{color:#515c4d;font-size:11px;display:flex;gap:4px;flex-wrap:wrap}.capture-group{display:flex;gap:2px;align-items:center}.capture-group .mini-piece{width:19px;height:19px}.lastline{margin-top:12px;font-size:12px;color:var(--muted)}footer{display:flex;align-items:center;gap:9px;padding:18px 0 23px;border-top:1px solid var(--line);font-size:11px;color:#6c7367}.footer-mark{width:9px;height:9px;background:var(--rust);transform:rotate(45deg)}footer button{margin-left:auto;font-size:12px}footer svg.ico{width:13px;height:13px}
dialog{border:1px solid #bfc4b1;padding:0;border-radius:12px;background:var(--paper);color:var(--ink);width:min(510px,calc(100vw - 24px));max-height:88dvh;box-shadow:0 25px 90px #17251e55}dialog::backdrop{background:#172b25a8;backdrop-filter:blur(3px)}.dialog-inner{position:relative;padding:29px}.dialog-close{position:absolute;right:8px;top:8px}.dialog-close:hover{background:#ecece2}.dialog-inner h2{margin:2px 30px 15px 0;font-size:32px}.dialog-inner .overline{color:var(--rust);margin:0 30px 8px 0}.dialog-inner p{font-size:14px;color:#515c50;margin:11px 0}.dialog-inner h3{font-size:22px;margin:18px 0 8px}.choice{width:100%;text-align:left;border:1px solid var(--line);border-radius:7px;padding:13px 14px;gap:13px;margin:8px 0;background:#f6f5ec}.choice:hover{border-color:#9eac92;background:#ebeee1}.choice span{flex:1}.choice strong,.choice small{display:block}.choice small{font-size:12px;color:var(--muted);font-weight:400;margin-top:3px}.choice>svg:first-child{width:24px;height:24px;color:#8f583b}.choice>svg:last-child{width:15px;height:15px}.choice-label{display:block;margin:17px 0 7px;font-size:10px;color:#636b5e;text-transform:uppercase;letter-spacing:1.3px}.segmented{display:flex;gap:5px}.segmented button{padding:9px 5px;border:1px solid var(--line);border-radius:5px;flex:1;font-size:13px}.segmented button[aria-pressed=true]{background:var(--forest);color:#fff9e8;border-color:var(--forest)}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px;border-bottom:1px solid var(--line);font-size:14px}.setting-row input{width:19px;height:19px;accent-color:var(--forest)}.rule-list{margin:0;padding-left:19px;color:#485447;font-size:14px}.rule-list li{margin:7px 0}.rule-table{width:100%;text-align:center;border-collapse:collapse;font-size:12px}.rule-table td,.rule-table th{border:1px solid var(--line);padding:4px 1px}.rule-table thead,.rule-table th{background:var(--olive)}.rule-table th:first-child{padding-left:4px;text-align:left}.rule-table .yes{color:#395d3f;font-weight:700}.rule-table .jump{color:var(--rust)}.field{width:100%;padding:9px 10px;border:1px solid #b7bdac;border-radius:5px}.code-value{font:30px var(--serif);letter-spacing:5px}.dialog-inner .error{color:#954128}.piece-intro{display:flex;gap:12px;align-items:center}.piece-intro .mini-piece{width:46px;height:46px}.visually-muted{color:var(--muted)}.guide-card.playing .guide-top{margin-bottom:11px}.guide-card.playing .guide-commands{justify-content:flex-start;gap:20px}
@media(min-width:1550px){.hero-inner{padding-top:31px;padding-bottom:28px}}
@media(max-width:1050px){.mast-inner,.hero-inner,.workspace,footer{width:calc(100% - 48px)}.workspace{grid-template-columns:minmax(0,1.9fr) minmax(249px,1fr);gap:17px}.guide-card{padding:16px}.rank-card{padding:15px}.below-board{grid-template-columns:1fr}.below-board .paper-box{padding:13px 16px}.mast-inner{gap:35px}.guide-card h2{font-size:26px}}
@media(max-width:760px){.mast-inner,.hero-inner,.workspace,footer{width:calc(100% - 28px)}.mast{height:56px}.mast-inner{gap:20px}.brand{font-size:21px;gap:7px}.brand img{width:30px;height:30px}.mast nav{gap:0}.mast nav button{padding:0 8px;font-size:12px;gap:5px}.mast nav svg{display:none}.header-tools{gap:0}.icon-btn{width:35px}.hero-inner{padding:18px 0}.hero-art{left:28%;background-position:65% 50%;opacity:.85}.titleline h1{font-size:61px}.hero-tag{font-size:18px;margin:0 0 8px}.workspace{display:flex;flex-direction:column;gap:15px;padding-top:17px}.play-column,aside{width:100%}.below-board{display:none}.workspace.mobile-extras .below-board{display:grid}.section-title{margin:0 0 10px}.turn-strip{padding:9px 12px}.rank-row{min-height:44px}.guide-card{padding:17px 19px}.step-track{margin:9px 0 12px}.rank-card{padding:15px 18px}.guide-copy{margin:6px 0 13px}.board-caption{padding:9px 12px}.board-cols{bottom:4px}.board-rows{width:17px}.board-cols{left:19px;right:9px}.wood-board{padding:9px 9px 21px 19px}.board-rows{top:9px;bottom:21px}.disc{width:83%}.guide-commands .primary,.compact,.link-btn{min-height:44px}.header-tools .icon-btn{min-height:44px}.pool-row{margin-top:4px}.pool-button{min-height:44px}.mobile-details{display:flex!important}.overline{font-size:9px}.game-meta{font-size:11px}}
@media(max-width:480px){.mast-inner{gap:12px}.mast nav button{padding:0 7px}.header-tools .icon-btn{width:32px}.hero-inner{padding:15px 0}.titleline h1{font-size:56px}.hero-art{left:27%;opacity:.72}.origin{font-size:8px}.game-meta{gap:8px}.name-seal .glyph{width:14px;height:14px}.titleline{gap:12px}h2{font-size:26px}.workspace{width:calc(100% - 14px)}.section-title{padding:0 3px}.section-title>div{gap:8px}.wood-board{padding:8px 5px 20px 13px}.board-rows{width:12px;top:8px;bottom:20px;font-size:9px}.board-cols{left:13px;right:5px;font-size:9px}.cell{aspect-ratio:1}.disc{width:83%}.disc.red:before{border-width:1px;box-shadow:inset 0 0 0 1px #f9eacc,inset 0 0 0 2px #ac6546}.turn-strip{font-size:11px}.board-caption{font-size:10px}.board-grid{box-shadow:0 0 0 1px #e7cfaa,0 0 0 2px #997e59}.legend{gap:11px}.rank-card,.guide-card{border-radius:8px}.dialog-inner{padding:23px 18px}.mast nav button[data-act=about]{display:none}}
@media(max-width:480px){.workspace{width:calc(100% - 4px)}.wood-board{padding-left:10px;padding-right:3px}.board-rows{width:9px}.board-cols{left:10px;right:3px}.section-title,aside{padding-left:5px;padding-right:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation-duration:.001ms!important;transition-duration:.001ms!important}.mobile-details{display:none;align-items:center;gap:6px;color:#566454;font-size:11px}.mobile-details svg{width:12px;height:12px}.cell.hint .disc{filter:drop-shadow(0 0 2px #c99546)}.guide-card button:focus-visible{outline-color:#f1d2a2}
