/* EIN PUZZLE No.35-42. New classes only; existing games not affected. */
/* EIN PUZZLE No.27-34: selectors are namespaced; no old assets modified */
.p6-board{display:flex;flex-direction:column;align-items:center;gap:14px;justify-content:center;min-height:190px;width:100%;margin:17px 0}.p6-extra{margin:10px auto;text-align:center;font-weight:750;color:#34694d;min-height:27px}.p6-grid{display:grid;width:min(100%,520px);aspect-ratio:1;gap:4px;padding:7px;border-radius:14px;background:#e0ece4}.p6-cell{min-width:0;min-height:0;aspect-ratio:1;display:grid;place-items:center;border:1px solid #aacaba;border-radius:7px;background:white;color:#245c43;font-weight:800;font-size:clamp(16px,4vw,25px);cursor:pointer;touch-action:manipulation}.p6-cell.active{background:#fbe5ad;box-shadow:inset 0 0 0 2px #edb05d}.p6-cell.done{background:#c8e9d5}.p6-cell.obstacle{background:#5c7669;color:white}.p6-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px}.p6-action{min-width:49px;min-height:46px;border-radius:10px;border:1px solid #a7c9b4;background:#eaf5ed;color:#2e654a;font-size:18px;font-weight:800;padding:9px 15px;cursor:pointer;touch-action:manipulation}.p6-action.primary{background:#3b9672;color:#fff}.p6-note{text-align:center;color:#557660;font-size:14px}.p6-big{font-size:clamp(20px,4vw,32px);font-weight:850;color:#25583e}.p6-target{border:2px solid #b5dcc3;background:#eaf6ed;border-radius:14px;padding:11px 17px;text-align:center;font-weight:800;color:#285e44}.p6-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center}.p6-input{width:65px;min-height:58px;text-align:center;border:2px solid #b9d6c7;border-radius:10px;font-size:25px;font-weight:850;color:#2d664b}.p6-chip{padding:9px 13px;background:white;border:1px solid #b1d2be;border-radius:9px;font-size:20px;font-weight:800}.p6-chip.sel{background:#ffe8ba;border-color:#d5a657}.p6-scheme{display:grid;gap:8px;width:min(100%,620px)}.p6-equation{background:#f0f8f2;border:1px solid #d3e5d7;border-radius:10px;padding:11px 16px;text-align:center;font-size:21px;font-weight:800}.p6-points{position:relative;width:min(100%,510px);aspect-ratio:1;border-radius:17px;background:#e8f2eb;touch-action:manipulation}.p6-points svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.p6-point{position:absolute;transform:translate(-50%,-50%);width:45px;height:45px;border:3px solid white;border-radius:50%;color:#fff;background:#379471;font-size:20px;font-weight:850;box-shadow:0 3px 9px #0002;cursor:pointer}.p6-point.sel{background:#e1a546}.p6-dicefaces{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.p6-die{background:#fff;border:2px solid #b7d4c3;border-radius:12px;padding:12px 18px;text-align:center;min-width:85px;color:#255a41}.p6-die strong{display:block;font-size:34px}.p6-coin{padding:12px 16px;min-width:77px;border-radius:50px;background:#f8e1a2;border:3px solid #ceac51;color:#674e17;font-size:21px;font-weight:850;cursor:pointer}.p6-coin:disabled{opacity:.4}.p6-coin small{display:block;font-size:11px}.p6-cipher{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;max-width:570px}.p6-symbol{width:43px;min-height:66px;border:2px solid #b5d5c1;border-radius:8px;background:#fff;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:2px;cursor:pointer;font-weight:850}.p6-symbol small{font-size:13px;color:#70887a}.p6-symbol.sel{border-color:#dd9f49;background:#fff1d0}.p6-symbol .p6-answer{font-size:24px;color:#236346}.p6-symbol.space{background:transparent;border:0;pointer-events:none;width:20px}.p6-blockboard{position:relative;aspect-ratio:1;width:min(100%,520px);border-radius:14px;background:#dcebe2;border:6px solid #bad3c4;overflow:hidden;touch-action:manipulation}.p6-car{position:absolute;border-radius:10px;border:3px solid #ffffff80;display:grid;place-items:center;font-weight:900;color:#fff;font-size:clamp(15px,4vw,24px);cursor:pointer;touch-action:manipulation}.p6-car.active{outline:4px solid #efa54a;outline-offset:-2px}.p6-laser{position:relative}.p6-laser::after{content:' ';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 3px #f4d77b}.p6-light{background:#fff7d0;border-color:#e7bd60}.p6-arrow-sky{font-size:clamp(15px,4vw,27px)}
.p6-action:focus-visible,.p6-cell:focus-visible,.p6-point:focus-visible,.p6-car:focus-visible,.p6-symbol:focus-visible,.p6-coin:focus-visible{outline:3px solid #e9a94f;outline-offset:3px}
@media(max-width:500px){.p6-grid{gap:2px;padding:4px}.p6-cell{border-radius:4px}.p6-blockboard{border-width:3px}.p6-coin{min-width:60px;padding:10px 8px;font-size:17px}.p6-point{width:37px;height:37px}}

.p6-tubes{display:flex;align-items:end;gap:12px;flex-wrap:wrap;justify-content:center;padding:16px 0;width:100%}.p6-tube{width:clamp(51px,12vw,82px);min-height:185px;display:flex;flex-direction:column-reverse;align-items:center;justify-content:flex-start;padding:9px 6px 6px;border:3px solid #93b9a3;border-top:0;border-radius:0 0 26px 26px;background:#f7fbf8;gap:3px;cursor:pointer}.p6-tube.selected{background:#fff4d9;border-color:#d7a14a}.p6-ball{width:clamp(35px,9vw,59px);height:35px;border-radius:50%;border:2px solid #fff6;box-shadow:inset -6px -6px 9px #0002,0 2px 3px #0001}.p6-bottlelabel{font-weight:700;font-size:13px;margin-top:5px;color:#497358}.p6-robot{width:min(100%,580px)}.p6-boardgrid{display:grid;gap:3px;width:min(100%,520px);aspect-ratio:1;background:#deece3;padding:7px;border-radius:14px}.p6-robotcell{display:grid;place-items:center;border-radius:5px;min-width:0;font-size:clamp(17px,5vw,30px);background:white}.p6-robotcell.wall{background:#799787}.p6-robotcell.exit{background:#ffebc5}.p6-robotcell.player{background:#c9eddb}.p6-controls{display:grid;grid-template-columns:repeat(3,60px);gap:5px;justify-content:center}.p6-controls button{height:51px}.p6-shadows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;width:min(100%,560px)}.p6-shadowcard{display:grid;place-items:center;min-height:140px;background:#fff;border:2px solid #bad4c3;border-radius:14px;padding:10px;cursor:pointer}.p6-shadowcard svg{width:110px;max-width:100%;height:100px}.p6-shadowsample{background:#e4f3e9;border-radius:14px;padding:12px;text-align:center}.p6-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;width:min(100%,560px)}.p6-weekdays button{min-height:55px;min-width:0;padding:6px 1px;font-size:clamp(13px,3vw,20px)}.p6-gearlist{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.p6-gear{width:clamp(55px,13vw,86px);height:clamp(55px,13vw,86px);border-radius:50%;border:5px dashed #abcbb7;background:#e9f6ee;font-size:35px;font-weight:900;color:#2c7051;cursor:pointer;display:grid;place-items:center}.p6-gear.correct{border-color:#4ba783;background:#d0f2de}.p6-ring{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:min(100%,490px)}.p6-ringbutton{height:70px;font-size:27px}.p6-ringbutton.chosen{background:#fff0ce;border-color:#daa958}.p6-rectgrid{display:grid;gap:3px;width:min(100%,520px);aspect-ratio:1;background:#dfebe1;padding:7px;border-radius:12px}.p6-rectcell{min-width:0;border-radius:5px;border:1px solid #b5d0bd;display:grid;place-items:center;font-size:clamp(10px,2.4vw,18px);font-weight:850;background:white}.p6-answerlist{display:flex;flex-wrap:wrap;gap:9px;justify-content:center}.p6-answerlist button{min-width:66px}.p6-overlay-cell{border-radius:4px;border:1px solid #ffffff55;min-width:0}.p6-nice{font-size:clamp(22px,5vw,42px);color:#2b684b;font-weight:850}.p6-helper{font-size:14px;color:#637d6c;text-align:center;max-width:540px}.p6-shadowcard:focus-visible,.p6-tube:focus-visible,.p6-gear:focus-visible{outline:3px solid orange;outline-offset:3px}@media(max-width:480px){.p6-tubes{gap:7px}.p6-tube{min-height:160px;padding:6px 4px}.p6-ball{height:29px}.p6-shadows{gap:7px}.p6-shadowcard{min-height:100px}.p6-shadowcard svg{height:75px}.p6-ringbutton{height:58px}.p6-boardgrid,.p6-rectgrid{padding:4px;gap:2px}}
