:root{color-scheme:light;--ink:#2c4036;--muted:#7a8274;--paper:#f2efe7;--green:#365d48;--line:#d8d8c9;--wood:#c4a77f;--shadow:0 18px 46px #594b3212}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 20% 0,#faf8ef 0,transparent 60%),var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}main{max-width:1140px;margin:auto;padding:28px 32px calc(20px + env(safe-area-inset-bottom))}button,input{font:inherit}button{color:inherit;background:#fcfaf3;border:1px solid var(--line);border-radius:9px;min-height:42px;padding:9px 14px;cursor:pointer;touch-action:manipulation;transition:background .15s,border-color .15s,transform .15s}button:hover{border-color:#728b74;background:#fffdf6}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,#board:focus-visible{outline:3px solid #a9bc8e;outline-offset:3px}button:disabled{opacity:.43;cursor:default}button.primary{background:var(--green);color:#fffbed;border-color:var(--green)}button.primary:hover{background:#284d3a}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.brand{font-size:29px;letter-spacing:4px;font-weight:650;color:inherit;text-decoration:none}.brand>span{font-weight:350}.brand small{display:block;font-size:8px;font-weight:550;letter-spacing:2.5px;margin-top:7px}.headright{display:flex;align-items:center;gap:22px}.verified{font-size:11px;letter-spacing:1px;color:#617459}.version{font-size:11px;color:#8b907f;letter-spacing:2px}nav{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:13px}nav button{border:0;background:transparent;min-height:36px;font-size:13px;padding:8px 16px}nav button[aria-current=page]{background:#e0e5d8;color:#294b36}.gamehead{display:flex;align-items:center;justify-content:space-between;margin:26px 0 22px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7c8b73;margin:0 0 10px}h1{font-size:28px;font-weight:500;letter-spacing:1px;margin:0}.calendar-controls{display:flex;gap:6px;align-items:center}.calendar-controls button{padding:6px 12px}.calendar-controls #prev,.calendar-controls #next{font-size:23px;width:38px;min-height:40px;padding:0}.calendar-controls input{min-height:40px;border:1px solid var(--line);border-radius:8px;background:#fcfaf3;padding:7px 10px;color:var(--ink);width:155px}.calendar-controls #today{font-size:12px}.workspace{display:grid;grid-template-columns:minmax(340px,1.1fr) minmax(320px,.9fr);gap:56px;max-width:990px;margin:auto}.board-column{min-width:0}.board-meta{display:flex;align-items:center;justify-content:space-between;margin:0 4px 12px;font-size:11px;color:#71806b}#targets{display:flex;gap:7px}#targets span{padding:5px 9px;background:#e4e8da;border-radius:5px;color:#52684c}#targets span:last-child{background:#dee7e9;color:#45606b}#progress{font-variant-numeric:tabular-nums;letter-spacing:1px}.woodframe{padding:14px 14px 8px;border:1px solid #b89b71;border-radius:18px;background:linear-gradient(104deg,#d3be9b,#bda07b 49%,#d2bb95);box-shadow:0 2px 1px #fff8 inset,0 -3px 1px #93774877 inset,var(--shadow)}#board{position:relative;width:100%;aspect-ratio:8/7;touch-action:none;border-radius:9px;overflow:hidden;background:#d6cab1;box-shadow:0 2px 4px #5a48372b inset;user-select:none;-webkit-user-select:none}#board svg{width:100%;height:100%;display:block;pointer-events:none}.board-bottom{display:flex;justify-content:space-between;font-size:9px;color:#735d40;padding:9px 3px 0;letter-spacing:1px}.feedback{display:flex;align-items:flex-start;gap:8px;margin-top:14px;min-height:46px}#status{font-size:12px;line-height:1.5;margin:0;flex:1}#saved{font-size:9px;white-space:nowrap;color:#89907f;padding-top:3px}.piece-column{padding-top:4px;min-width:0}.tray-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.tray-title h2{font-size:14px;font-weight:500;margin:0}.tray-title span{font-size:11px;color:#75856c}#tray{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.piece{height:85px;position:relative;padding:11px 15px;border-radius:11px;background:#faf8ef;box-shadow:0 2px 0 #e5e3d4;touch-action:none;user-select:none;-webkit-user-select:none}.piece svg{width:100%;height:100%;display:block;pointer-events:none}.piece .letter{position:absolute;top:5px;left:7px;font-size:9px;color:#67745f}.piece.selected{border-color:#365d48;box-shadow:0 0 0 2px #365d4833,0 2px 0 #cad3bd;background:#edf0e4}.piece.placed:not(.selected){background:#eaece2}.piece.placed svg{opacity:.38}.piece .tick{position:absolute;bottom:4px;right:7px;font-size:10px;color:#728167}.selection-tools,.actions{display:flex;gap:8px;margin-top:14px}.selection-tools button,.actions button{flex:1;font-size:12px;white-space:nowrap;padding:8px 7px}kbd{font:9px inherit;border:1px solid #d7dacb;border-radius:3px;padding:1px 3px;margin-left:6px;color:#929980}.secondary-actions{display:flex;justify-content:space-between;margin-top:10px}.secondary-actions button{border:0;background:transparent;color:#7e8775;font-size:11px;padding:4px 0;min-height:28px}.help{font-size:10px;line-height:1.8;color:#8a9181;margin:9px 0}.touch-help{display:none}#drag-ghost{position:fixed;z-index:12;pointer-events:none;opacity:.9;filter:drop-shadow(0 6px 6px #28342744)}#drag-ghost svg{width:100%;height:100%}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:20px;margin-top:30px;font-size:10px;letter-spacing:1px;color:#8c9382}.sectionhead{margin:30px 0 24px}.sectionhead p:not(.eyebrow){font-size:13px;color:var(--muted);line-height:1.7}.rulecards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.rulecards article{background:#fbf9f2;padding:22px;border-radius:12px}.rulecards h2{font-size:17px}.rulecards p{font-size:13px;line-height:1.9;color:#6e7c65}.rulecards a{color:var(--green);font-size:12px}dialog{max-width:360px;width:calc(100% - 36px);border:1px solid #c6cbb8;border-radius:17px;background:#f9f7ee;color:var(--ink);padding:26px;box-shadow:0 30px 80px #27392a33}dialog::backdrop{background:#25372d66;backdrop-filter:blur(3px)}dialog h2{font-weight:550;font-size:22px}dialog p{font-size:13px;line-height:1.8;color:#758068}dialog form>div{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}[hidden]{display:none!important}
@media(max-width:700px){main{padding:14px max(12px,env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom))}header{margin-bottom:12px}.brand{font-size:22px;letter-spacing:3px}.brand small{font-size:7px;letter-spacing:1.4px;margin-top:4px}.headright{gap:8px}.verified{font-size:9px;letter-spacing:0}.version{display:none}nav{padding-bottom:9px;gap:5px}nav button{font-size:12px;min-height:32px;padding:6px 12px}.gamehead{margin:10px 0;justify-content:center}.gamehead>div:first-child{display:none}.calendar-controls{width:100%;justify-content:center}.calendar-controls input{width:155px;min-height:36px;font-size:12px}.calendar-controls #prev,.calendar-controls #next{min-height:36px;width:35px}.calendar-controls #today{min-height:36px;padding:6px 12px}.workspace{display:block;max-width:410px;margin:auto}.board-column{max-width:340px;margin:auto}.board-meta{margin-bottom:7px;font-size:10px}#targets span{padding:4px 8px}.woodframe{padding:10px 10px 6px;border-radius:14px}.board-bottom{font-size:8px;padding-top:6px;letter-spacing:.6px}.feedback{margin-top:8px;min-height:32px;gap:6px}#status{font-size:11px}#saved{font-size:8px}.piece-column{padding-top:0}.tray-title{margin-bottom:7px}.tray-title h2{font-size:11px}.tray-title span{font-size:10px}#tray{grid-template-columns:repeat(6,1fr);gap:6px}.piece{height:45px;padding:6px 10px;border-radius:8px}.piece .letter{font-size:7px;left:4px;top:3px}.piece .tick{font-size:8px;right:4px;bottom:2px}.selection-tools,.actions{gap:6px;margin-top:8px}.selection-tools button,.actions button{min-height:38px;padding:7px 3px;font-size:11px}kbd{display:none}.secondary-actions{margin-top:4px}.secondary-actions button{min-height:26px;font-size:10px}.help{font-size:9px;margin:4px 0;line-height:1.6}.desktop-help{display:none}.touch-help{display:block}body:has(#game:not([hidden])) footer{display:none}.rulecards{grid-template-columns:1fr}.sectionhead h1{font-size:25px}.sectionhead{margin:22px 0}.rulecards article{padding:18px}}
@media(max-width:700px) and (max-height:760px){.board-column{max-width:280px}.piece{height:41px}.feedback{min-height:30px}}
@media(max-width:700px) and (max-height:690px){main{padding-top:8px}.brand small{display:none}header{margin-bottom:8px}.gamehead{margin:7px 0}.board-column{max-width:228px}.piece{height:38px}.selection-tools,.actions{margin-top:6px}.help{display:none}.board-bottom{font-size:7px}.feedback{min-height:30px}}
@media(orientation:landscape) and (max-height:540px){main{padding:10px 20px}.brand{font-size:20px}.brand small,.verified{display:none}header{margin-bottom:7px}nav{padding-bottom:6px}.gamehead{margin:8px 0}.gamehead>div:first-child{display:none}.gamehead{justify-content:center}.workspace{display:grid;grid-template-columns:minmax(210px,1fr) minmax(280px,1.2fr);gap:28px;max-width:850px}.board-column{max-width:280px;width:100%}.tray-title{margin-bottom:5px}#tray{grid-template-columns:repeat(6,1fr);gap:5px}.piece{height:46px;padding:6px 11px}.selection-tools,.actions{margin-top:7px}.selection-tools button,.actions button{min-height:35px;padding:6px 3px}.secondary-actions{margin-top:2px}.help,footer{display:none}.woodframe{padding:9px}.feedback{margin-top:6px;min-height:30px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media(hover:none){.desktop-help{display:none}.touch-help{display:block}button:hover{background:initial}.primary:hover{background:var(--green)}}
.piece{min-height:0}
@media(max-width:700px) and (max-height:690px){.board-column{max-width:216px}.selection-tools button,.actions button{min-height:36px}.tray-title{margin-bottom:5px}}
@media(min-width:701px) and (min-height:541px) and (max-height:780px){main{padding-top:18px}header{margin-bottom:14px}.brand{font-size:24px}nav{padding-bottom:9px}.gamehead{margin:17px 0}.gamehead h1{font-size:23px}.workspace{max-width:860px;gap:45px;grid-template-columns:1fr 1fr}.board-column{max-width:365px}.piece{height:64px;padding:8px 14px}.tray-title{margin-bottom:10px}.selection-tools,.actions{margin-top:10px}.help{margin-top:5px;font-size:9px}body:has(#game:not([hidden])) footer{display:none}}
@media(max-width:700px){.feedback{height:34px;overflow:hidden}#status{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}
@media(orientation:landscape) and (max-height:540px){header{display:none}nav{justify-content:center;padding-bottom:5px}nav button{min-height:30px;font-size:11px;padding:5px 12px}.gamehead{margin:6px 0}.calendar-controls input,.calendar-controls #prev,.calendar-controls #next,.calendar-controls #today{min-height:34px}.board-column{max-width:240px}.board-meta{margin-bottom:6px;font-size:10px}#targets span{padding:4px 7px}.board-bottom{font-size:8px;padding-top:6px}.feedback{height:32px;min-height:32px;overflow:hidden}#status{font-size:10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}#saved{font-size:8px}kbd{display:none}}
#guide-replay{margin-left:auto;color:#60775c}#guide{max-height:calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);overflow:auto}#guide h2{margin:12px 0}#guide ol{padding-left:22px;margin:16px 0;color:#426044}#guide li{padding:5px 0 8px;font-size:13px}#guide li b,#guide li span{display:block}#guide li span{font-size:12px;line-height:1.7;color:#758068;margin-top:4px}#guide .guide-footnote{font-size:11px}#guide form>div{margin-top:16px}#guide button{min-height:42px}
@media(max-width:700px){main{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-top:max(14px,env(safe-area-inset-top))}.board-column{max-width:calc(340px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#guide-replay{padding:6px 9px;font-size:11px}#guide{padding:22px}}
@media(max-width:700px) and (max-height:760px){.board-column{max-width:calc(280px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}
@media(max-width:700px) and (max-height:690px){main{padding-top:max(8px,env(safe-area-inset-top))}.board-column{max-width:calc(216px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}}
@media(orientation:landscape) and (max-height:540px){main{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}.board-column{max-width:240px}#guide-replay{margin-left:12px}}

.public-nav{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;margin-bottom:12px}.public-nav a{color:inherit}.public-nav select{max-width:135px;background:transparent;border:1px solid #bfb6a2;border-radius:6px;padding:4px}.verified{max-width:190px}.version{display:none}@media(max-width:700px){.public-nav{margin-bottom:6px}.selection-tools button,.actions button{font-size:11px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}.secondary-actions button{font-size:10px}.verified{font-size:9px;max-width:120px}.brand{font-size:22px}.gamehead{margin:6px 0}.guide-footnote{font-size:11px}}
@media(max-width:700px){.brand{letter-spacing:.03em;white-space:nowrap}.verified{display:none}}@media(max-width:700px) and (max-height:690px){.public-nav{margin-bottom:3px}.public-nav select{padding:2px}.feedback{min-height:26px}.board-column{max-width:218px}.board-bottom{display:none}}