:root{font-family:ui-sans-serif,system-ui,-apple-system,sans-serif;color:#302938;background:#f6f2e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}main{max-width:1120px;margin:auto;padding:28px}header{display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow,.step-label{font-size:11px;font-weight:800;letter-spacing:2px;color:#777064}h1{font-family:Georgia,serif;font-size:44px;font-weight:500;margin:12px 0;letter-spacing:-1.5px}h1 span{display:block;font:15px system-ui;letter-spacing:0;color:#777064;margin-top:8px}.score{border-left:1px solid #cec7bb;padding:10px 24px;display:grid;text-align:center}.score strong{font-size:40px;font-weight:500}.score span{font-size:12px;color:#777064}.prototype{font-size:12px;border-top:1px solid #dcd5c9;padding:14px 0;margin-top:24px;color:#736d62}a{color:#5c4579}.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px}.board-panel{background:#eae4d8;border:1px solid #d9d0c1;border-radius:20px;overflow:hidden;min-width:0}.board-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;color:#6c6258;font-size:12px}.board-toolbar button{padding:4px;min-width:40px;min-height:40px;background:#f6f2e9;border-color:#d5cabc}#board{display:block;width:100%;height:440px;touch-action:none;user-select:none}.board-foot{text-align:center;font-size:11px;color:#786f64;padding:8px 12px 16px;margin:0}.controls{padding:16px 0}h2{font-size:21px;font-weight:600;line-height:1.3;margin:8px 0 16px}.dice{display:flex;gap:10px}.die{width:70px;min-height:62px;display:grid;place-content:center;gap:3px;font-size:12px;position:relative}.die b{font-size:22px}.die[aria-pressed=true]{outline:3px solid #715490;outline-offset:2px}.die:disabled{opacity:.38}.help{font-size:12px;color:#6c6258;line-height:1.5;min-height:36px}label{display:block;font-size:12px;font-weight:700;margin:12px 0 6px}select,input{width:100%;font:inherit;font-size:14px;min-height:44px;border:1px solid #bcb1a3;background:#fffdf7;border-radius:8px;padding:8px;color:inherit}.hint{background:#eae4d8;padding:12px;border-radius:8px;font-size:13px;line-height:1.5;min-height:60px}#selection{font-size:12px;color:#6c6258}.row{display:flex;gap:8px;flex-wrap:wrap}button{font:inherit;font-size:13px;font-weight:600;color:#44384f;background:#fffcf5;border:1px solid #cfc4b5;border-radius:9px;padding:10px 14px;min-height:44px;cursor:pointer}button:hover{filter:brightness(.97)}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #906bab;outline-offset:2px}button:disabled{opacity:.4;cursor:default}.primary{background:#58416f;color:#fff;border-color:#58416f}.wide{width:100%}.text-button{border:0;background:transparent;font-size:12px;padding-left:0;margin-top:12px}#message{font-size:13px;line-height:1.5;margin-top:14px;color:#654a7a}footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0;font-size:12px;color:#766b60}details{border-top:1px solid #d8cfc1;padding:18px 0;font-size:14px;line-height:1.6;color:#61564c}summary{font-weight:600;cursor:pointer}#restart-panel{padding:20px;background:#eae4d8;border-radius:14px;margin-bottom:20px}#restart-panel .row{margin-top:15px}[hidden]{display:none!important}.hex{cursor:pointer}.hex:focus{outline:none}.hex:focus polygon{stroke:#a465c7;stroke-width:5}.hex text{pointer-events:none;font-size:15px;font-weight:800;dominant-baseline:central;text-anchor:middle}.hex.legal polygon{stroke:#8261a0;stroke-width:4}.hex.selected polygon{stroke:#e69b2b;stroke-width:4}.hex.empty polygon{fill:#f7f0e5;stroke:#927da3;stroke-dasharray:5 4;stroke-width:2}.hex.empty text{fill:#927da3}.hex:not(.legal){cursor:default}#creation{margin-top:6px}@media(max-width:760px){main{padding:18px 14px}h1{font-size:35px}.score{padding:8px 14px}.layout{display:flex;flex-direction:column;gap:10px}.board-panel{border-radius:14px}#board{height:330px}.controls{padding:10px 4px}.prototype{line-height:1.7;margin-top:16px}.board-foot{font-size:10px}.board-toolbar{padding:8px 10px}.hint{min-height:0}.help{min-height:0}.dice{gap:12px}.die{flex:1;max-width:100px}footer{align-items:flex-start;flex-direction:column;gap:8px}footer p{margin:0}.step-label{margin-top:4px}}

#goal-progress{padding:12px 16px 16px;border-top:1px solid #d5c8b4;background:#f6f2e9}#goal-title{font-size:16px;margin:0 0 6px}.goal-rule,#goal-status{font-size:12px;line-height:1.5;margin:5px 0}#goal-status{font-weight:600;color:#58416f}#goal-colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:12px 0 0}#goal-colors li{display:grid;align-content:start;gap:5px;padding:8px;background:#fffcf5;border:1px solid #d5c8b4;border-radius:8px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}#goal-colors strong{display:flex;align-items:center;gap:5px;font-size:12px}.goal-dot{width:10px;height:10px;flex:0 0 10px;border:1px solid #8c8177;border-radius:50%}.goal-detail{color:#61564c}#goal-colors [data-ready=true]{border-color:#6a8953}#goal-colors [data-absent=true]{background:transparent}@media(max-width:1000px){#goal-colors{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){#goal-progress{padding:12px 10px}}

#goal-colors .group-lens{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:44px;padding:5px 3px;font-size:12px}#goal-colors .group-lens[aria-pressed=true]{outline:2px solid #58416f;outline-offset:1px;background:#eee3f4}

.practice-pack{margin:0 0 18px;padding:14px 16px;background:#eee7f2;border:1px solid #d5c8df;border-radius:12px}.practice-pack h2{font-size:17px;margin:0 0 6px}.practice-pack p{font-size:13px;line-height:1.5;margin:6px 0}.practice-pack nav{display:flex;flex-wrap:wrap;gap:8px}.practice-pack a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #b9a7c8;border-radius:8px;background:#fffcf5;font-size:13px}.practice-pack a[aria-current=page]{background:#58416f;color:white}.practice-pack a:focus-visible{outline:3px solid #906bab;outline-offset:2px}#return-main{margin-top:8px}.practice-pack details{padding:10px 0 0;margin-top:10px}.practice-pack summary{min-height:44px;align-content:center}

/* Keep the same draft controls beside the phone board, with no overlay. */
#choose-targets{margin-top:10px}
@media(max-width:760px){
 .board-panel.targeting #board{height:clamp(170px,calc(100svh - 340px),330px)}
 #board-draft #draft-controls{padding:0 10px 10px;background:#f6f2e9;border-top:1px solid #d5c8b4}
 #board-draft .hint{margin:8px 0;padding:6px 0;background:transparent;font-size:12px}
 #board-draft #selection{margin:6px 0;font-size:11px}
 #board-draft .row{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 #board-draft #commit{grid-column:1/-1}
 #board-draft button{padding:8px;font-size:12px}
 .targeting .board-foot{padding:7px 10px}
}
