.sokoban-page{min-height:calc(100vh - 67px);padding:34px 18px 48px;background:radial-gradient(circle at 12% 0,#365b61 0,transparent 48%),#10232b;color:#eefcf8;font-family:system-ui,sans-serif}.sokoban-page *{box-sizing:border-box}.sokoban-wrap{max-width:900px;margin:0 auto}.sokoban-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.sokoban-eyebrow{font-size:11px;font-weight:800;letter-spacing:.2em;color:#fbbf24}.sokoban-header h1{margin:6px 0;font-size:clamp(30px,6vw,46px);letter-spacing:.04em;line-height:1.35}.sokoban-header p{margin:0;color:#b4d1cd;font-size:14px}.sokoban-back{color:#d7f3ed;font-size:12px;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}.sokoban-layout{display:grid;grid-template-columns:minmax(300px,640px) 210px;gap:18px;align-items:start}.sokoban-play{border:1px solid #35636a;border-radius:8px;padding:clamp(14px,3vw,26px);background:#1b3940;box-shadow:0 22px 60px #06131788}.sokoban-score-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}.sokoban-score-row div{display:flex;align-items:center;justify-content:space-between;padding:9px 13px;border-radius:8px;background:#142d34}.sokoban-score-row span{color:#a7c8c3;font-size:12px}.sokoban-score-row strong{color:#fbbf24;font-size:20px}.sokoban-intro{margin-bottom:12px;padding:11px 13px;border:1px solid #35636a;border-radius:8px;background:#19333a;color:#d9f2ed;font-size:12px}.sokoban-intro strong{color:#fbbf24}.sokoban-intro ol{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:7px 0 0;padding:0;list-style-position:inside;color:#c8e3df}.sokoban-intro p{margin:7px 0 0;color:#a7c8c3;font-size:11px;line-height:1.5}.sokoban-board{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:3px;aspect-ratio:9/7;padding:7px;border-radius:8px;background:#0b1d22;touch-action:none}.sokoban-cell{position:relative;display:grid;place-items:center;min-width:0;min-height:0;border-radius:4px;background:#18343a}.sokoban-cell.wall{background:linear-gradient(135deg,#294e52,#183338);box-shadow:inset 0 0 0 1px #477276}.sokoban-cell.floor{background:#20454a}.sokoban-cell.goal:before{content:"";width:48%;height:48%;border:2px dashed #e5bd43;border-radius:50%;opacity:.8}.sokoban-cell.box:after{content:"";position:absolute;width:62%;height:62%;border-radius:5px;background:#cc8537;box-shadow:inset 0 -3px #8c4e23,0 0 0 2px #f2bd56}.sokoban-cell.box.goal:after{background:#d89a39;box-shadow:inset 0 -3px #8c4e23,0 0 0 3px #f5d977}.sokoban-cell.player:after{content:"";position:absolute;width:48%;height:58%;border-radius:50% 50% 42% 42%;background:#6ee7c4;box-shadow:0 0 0 2px #c3fff0,0 5px 0 -1px #277e76}.sokoban-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 18px;margin:10px 0 0;color:#b4d1cd;font-size:11px}.sokoban-legend span{display:inline-flex;align-items:center;gap:5px}.sokoban-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;background:#cc8537}.sokoban-legend-goal{border:2px dashed #e5bd43;background:transparent!important;border-radius:50%!important}.sokoban-legend-player{border-radius:50%!important;background:#6ee7c4!important}.sokoban-touch{display:none;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.sokoban-touch button,.sokoban-button{border:1px solid #477276;border-radius:8px;padding:10px;background:#244b51;color:#eefcf8;font:inherit;font-size:12px;font-weight:800;cursor:pointer;touch-action:manipulation}.sokoban-touch button{grid-column:2}.sokoban-touch button:nth-child(2){grid-column:1;grid-row:2}.sokoban-touch button:nth-child(3){grid-column:2;grid-row:2}.sokoban-touch button:nth-child(4){grid-column:3;grid-row:2}.sokoban-button:hover:not(:disabled),.sokoban-button:focus-visible,.sokoban-touch button:focus-visible{border-color:#fbbf24;outline:none}.sokoban-message{min-height:1.5em;margin:15px 0 0;color:#b4d1cd;font-size:12px;text-align:center}.sokoban-side{display:flex;flex-direction:column;gap:10px;margin-bottom:80px}.sokoban-panel{padding:13px;border:1px solid #35636a;border-radius:8px;background:#183239e8}.sokoban-actions{display:grid;gap:8px}.sokoban-primary{border-color:#fbbf24;background:#fbbf24;color:#352605}.sokoban-stage h2,.sokoban-sound h2,.sokoban-help h2{margin:0 0 9px;color:#b4d1cd;font-size:11px;letter-spacing:.1em}.sokoban-stage-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.sokoban-stage-buttons button{padding:8px 3px}.sokoban-stage-buttons button.active{border-color:#fbbf24;color:#fbbf24}.sokoban-sound>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.sokoban-sound .sokoban-button{padding:6px 3px}.sokoban-sound label{display:grid;gap:4px;margin-top:10px;color:#b4d1cd;font-size:11px}.sokoban-sound input{width:100%;accent-color:#fbbf24}.sokoban-help ol{margin:0;padding-left:19px;color:#b4d1cd;font-size:11px;line-height:1.75}.sokoban-note{margin:15px 0 0;color:#7fa4a0;font-size:11px;text-align:center}.sokoban-result{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:20px;background:#07181dcc}.sokoban-result[hidden]{display:none}.sokoban-result-box{width:min(360px,100%);padding:28px;border:1px solid #477276;border-radius:8px;background:#1b3940;text-align:center;box-shadow:0 20px 70px #0008}.sokoban-result-box h2{margin:7px 0;color:#fbbf24;font-size:28px}.sokoban-result-box p{margin:0 0 20px;color:#b4d1cd;font-size:13px}.sokoban-page section{margin-bottom:10px}@media(min-width:1181px){.sokoban-page{padding-right:320px!important}}@media(max-width:720px){.sokoban-page{padding:22px 10px 38px}.sokoban-header{align-items:flex-start}.sokoban-layout{display:block}.sokoban-side{display:grid;grid-template-columns:1fr 1fr;margin:10px 0}.sokoban-actions,.sokoban-help{grid-column:1/-1}.sokoban-touch{display:grid}.sokoban-header p{font-size:13px}}@media(max-width:440px){.sokoban-board{gap:2px;padding:4px}.sokoban-score-row strong{font-size:17px}}
.sokoban-board{width:min(100%,var(--board-width,374px));margin-inline:auto;grid-template-columns:repeat(var(--board-cols,9),minmax(0,1fr))!important;aspect-ratio:auto!important}.sokoban-stage-list{display:grid;gap:8px}.sokoban-stage-group{padding-top:8px;border-top:1px solid #35636a}.sokoban-stage-group:first-child{padding-top:0;border-top:0}.sokoban-stage-group h3{margin:0 0 5px;color:#fbbf24;font-size:11px}.sokoban-stage-buttons{grid-template-columns:repeat(5,1fr)!important;margin-bottom:0!important}
