body{margin:0;background:#eeeae2;font-family:'Microsoft YaHei',sans-serif;color:#204847}#mount{position:relative;width:min(100vw,1280px);height:min(62.5vw,800px);margin:auto}#loading{padding:32px;text-align:center;font-size:20px}#panel{max-width:1248px;margin:12px auto;padding:16px;background:#faf8f0;border:1px solid #acbcb3;font-size:15px;box-sizing:border-box}#panel summary{cursor:pointer;font-size:18px;min-height:32px}.controls{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-top:12px}.controls label{display:flex;flex-direction:column;gap:8px}.controls input{accent-color:#235958}.controls button,.controls select{font:inherit;min-height:44px;padding:8px 12px;background:white;color:#214b49;border:1px solid #789a8b;border-radius:5px}#panel p{line-height:1.6;margin:10px 0}.shapes-game{height:728px;position:relative;color:#204847;display:flex;flex-direction:column;padding:18px 30px;box-sizing:border-box;background:#f0ede5}.shapes-game .shape-head{height:42px;display:flex;justify-content:space-between;align-items:center;font-size:22px}.shapes-game h1{font-size:26px;margin:0}.shapes-game #board{display:block;width:100%;height:540px;flex:1;min-height:0}.shapes-game .shape-actions{display:flex;justify-content:center;gap:18px;min-height:60px;align-items:center}.shapes-game button{font:inherit;font-size:22px;min-height:52px;padding:10px 24px;border-radius:8px;border:1px solid #78988a;color:#234b48;background:#fffdf7;cursor:pointer}.shapes-game button.primary{background:#235958;color:white}.shapes-game button:disabled{opacity:.45;cursor:default}.shapes-game #message{text-align:center;margin:4px 0 8px;font-size:20px;min-height:28px}.shapes-game .tile{cursor:pointer;outline:none}.shapes-game .edge{stroke:#557b73;stroke-width:2;stroke-dasharray:7 6}.shapes-game .tile:hover .edge,.shapes-game .tile:focus .edge{stroke:#a37125;stroke-width:3;stroke-dasharray:7 6}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #ac722b;outline-offset:3px}[hidden]{display:none!important}@media(max-width:640px){#panel{margin:8px;padding:12px}.controls{gap:12px}.controls label{width:100%}}

/* Contain the previous transform during the ResizeObserver resize frame. */
#mount{overflow:hidden;contain:layout paint}
#panel{min-width:0;overflow-wrap:anywhere}.controls>*{min-width:0;max-width:100%}


/* Isolated layout comparison, public shell unchanged. */
.shapes-game{padding:24px 34px;background:#f0ede5;display:grid;gap:32px;grid-template-columns:680px 1fr;align-items:center}
.board-wrap{width:680px;height:680px;min-width:0;min-height:0}.shapes-game #board{width:100%;height:100%;display:block}
.game-info{min-width:0}.shapes-game .shape-head{height:auto;display:block}.shapes-game h1{font-size:42px;margin:0 0 8px}.shapes-game h2{font-size:28px;margin:0 0 16px;font-weight:500}.shapes-game #progress{font-size:18px;display:block}.shapes-game #message{text-align:left;font-size:23px;line-height:1.6;min-height:76px;margin:24px 0}.shapes-game .shape-actions{display:flex;flex-direction:column;gap:12px;align-items:stretch}.shapes-game button{min-height:62px;font-size:25px}
body[data-layout="E"] .shapes-game{display:flex;flex-direction:column;padding:16px 24px;gap:0;position:relative}
body[data-layout="E"] .board-wrap{width:1232px;height:550px;margin-top:60px}
body[data-layout="E"] .game-info{display:contents}
body[data-layout="E"] .shape-head{position:absolute;left:24px;right:24px;top:12px;display:flex;justify-content:center;gap:18px;align-items:baseline;height:46px}
body[data-layout="E"] .shapes-game h1{font-size:32px;margin:0}body[data-layout="E"] .shapes-game h2{font-size:25px;margin:0}
body[data-layout="E"] .shapes-game #message{position:absolute;top:52px;left:24px;right:24px;text-align:center;font-size:19px;min-height:0;margin:0}
body[data-layout="E"] .shape-actions{flex-direction:row;justify-content:center;gap:14px;min-height:70px;margin-top:12px;width:100%}
body[data-layout="E"] .shapes-game button{padding:10px 22px;min-width:205px}
#comparison{box-sizing:border-box;max-width:1280px;margin:14px auto;padding:18px 24px;background:#fffdf7;border:1px solid #b7c5bd;border-radius:10px}#comparison button,#comparison select{font:inherit;min-height:44px;padding:9px 16px;border-radius:6px;border:1px solid #789a8b;color:#214b49;background:white}#comparison button{cursor:pointer}#comparison button[aria-pressed="true"]{background:#235958;color:white}.layout-controls,.picture-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.picture-controls{margin-top:12px}#comparison p{font-size:14px;margin-bottom:0;line-height:1.6}#comparison button:disabled{opacity:.45;cursor:default}

#comparison{font-size:18px}#comparison p{font-size:16px}
/* F: composited board blends into one continuous warm canvas. */
body{background:#e4e1d8}
body[data-layout="E"] .shapes-game{background:#e4e1d8;border:0;box-shadow:none;border-radius:0}
body[data-layout="E"] .board-wrap{background:transparent;border:0;box-shadow:none;border-radius:0;isolation:isolate}
body[data-layout="E"] #board{mix-blend-mode:darken;background:transparent;border:0;box-shadow:none}
body[data-layout="E"] .shape-actions{background:transparent;border:0;box-shadow:none}
#comparison{background:transparent;border:0;border-top:1px solid #b7b9ae;border-radius:0}
/* Remove redundant heading; use the released space for larger artwork. */
body[data-layout="E"] .shape-head,body[data-layout="E"] #message{display:none}
body[data-layout="E"] .shapes-game{padding:8px 16px 12px}
body[data-layout="E"] .board-wrap{width:1248px;height:626px;margin-top:0;flex-shrink:0}
body[data-layout="E"] .shape-actions{margin-top:8px;min-height:70px}
body[data-layout="E"] #board{mix-blend-mode:normal}
