body[data-ui="falling-blocks"] .shell{max-width:1080px;padding-bottom:60px}
body[data-ui="falling-blocks"] .top .mark{overflow:hidden;padding:0}
body[data-ui="falling-blocks"] .top .mark img{display:block;width:100%;height:100%}
body[data-ui="falling-blocks"] .intro{max-width:760px;margin-inline:auto}
.falling-stage{max-width:730px;margin:0 auto;padding:22px;border-radius:20px;background:#f4b95d;color:#203640;box-shadow:0 18px 34px rgba(26,71,75,.2)}
.falling-topline{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:0 0 18px}
.falling-topline>div{min-width:0;padding:9px 12px;border-radius:11px;background:#fff9e9;box-shadow:0 4px 10px rgba(109,66,17,.12)}
.falling-topline span{display:block;margin-bottom:2px;color:#45605b;font-size:11px;font-weight:1000;letter-spacing:.07em;text-transform:uppercase}
.falling-topline strong{display:block;overflow:hidden;font-size:clamp(19px,3vw,26px);line-height:1.15;font-variant-numeric:tabular-nums;text-overflow:ellipsis}
.falling-layout{display:flex;align-items:start;justify-content:center;gap:18px}
.falling-well{width:min(100%,310px);flex:0 0 auto}
.falling-board-wrap{position:relative;width:100%;aspect-ratio:1/2;padding:5px;border-radius:13px;background:#183c4b;box-shadow:0 8px 0 #10303f,0 14px 25px rgba(20,49,58,.25)}
#board{display:block;width:100%;height:100%;border-radius:7px;background:#102c3a;touch-action:none;outline:none}
#board:focus-visible{outline:4px solid #fff5cb;outline-offset:3px}
.falling-overlay{position:absolute;inset:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px;text-align:center;border-radius:7px;background:rgba(14,42,56,.94);color:#fffdf6}
.falling-overlay[hidden]{display:none}
.falling-overlay h2{max-width:13ch;margin:20px 0 7px;color:#fff9df;font-size:clamp(25px,5vw,31px);line-height:1.06;letter-spacing:-.025em}
.falling-overlay p{max-width:24ch;margin:0;color:#d7e9e6;font-size:14px;line-height:1.48}
.falling-overlay button{min-width:160px;min-height:46px;margin-top:22px;padding:10px 18px;border:0;border-radius:10px;background:#30c6bc;color:#143742;font:1000 15px 'Nunito Sans',sans-serif;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.2)}
.falling-overlay button:hover{background:#60ded3}
.falling-overlay-art{display:grid;grid-template-columns:repeat(4,17px);grid-template-rows:repeat(3,17px);gap:3px;transform:rotate(-8deg)}
.falling-overlay-art i{border-radius:3px;background:#f7c05f;box-shadow:inset 2px 2px rgba(255,255,255,.45),inset -2px -2px rgba(59,47,68,.18)}
.falling-overlay-art i:nth-child(1),.falling-overlay-art i:nth-child(5),.falling-overlay-art i:nth-child(8){visibility:hidden}
.falling-overlay-art i:nth-child(3),.falling-overlay-art i:nth-child(7){background:#e57985}
.falling-overlay-art i:nth-child(4),.falling-overlay-art i:nth-child(6){background:#57c6cb}
.falling-status{min-height:21px;margin:20px 0 0;text-align:center;color:#284b4b;font-size:13px;font-weight:900}
.falling-sidebar{display:grid;width:170px;gap:12px}
.falling-preview{padding:13px;border-radius:13px;background:#fff9ed;box-shadow:0 4px 10px rgba(109,66,17,.12)}
.falling-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#325552;font-size:12px;text-transform:uppercase;letter-spacing:.035em}
.falling-preview-heading span{font-size:20px;line-height:1}
.falling-preview canvas{display:block;width:120px;max-width:100%;margin:6px auto 0;border-radius:8px;background:#173848}
.falling-held button{width:100%;min-height:36px;margin-top:9px;padding:5px 8px;border:0;border-radius:8px;background:#dff3ef;color:#1b5153;font:900 13px 'Nunito Sans',sans-serif;cursor:pointer}
.falling-held button:disabled{opacity:.5;cursor:default}
.falling-side-actions{display:grid;gap:8px}
.falling-side-actions button{min-height:41px;padding:8px;border:1px solid #8cb7a8;border-radius:9px;background:#fff9ed;color:#224b50;font:900 13px 'Nunito Sans',sans-serif;cursor:pointer}
.falling-side-actions button:hover:not(:disabled),.falling-held button:hover:not(:disabled){background:#d3eee7}
.falling-side-actions button:disabled{opacity:.5;cursor:default}
.falling-controls{display:flex;justify-content:center;gap:6px;margin-top:12px}
.falling-controls button{min-width:43px;min-height:49px;padding:6px 7px;border:0;border-radius:11px;background:#fff9ed;color:#163e4b;font:1000 26px 'Nunito Sans',sans-serif;touch-action:none;cursor:pointer;box-shadow:0 4px 9px rgba(108,66,17,.17)}
.falling-controls button:active{transform:translateY(2px);box-shadow:0 2px 5px rgba(108,66,17,.2)}
body[data-ui="falling-blocks"] .game-guide{max-width:760px;margin-inline:auto}
body[data-ui="falling-blocks"] button:focus-visible{outline:3px solid #17616a;outline-offset:3px}
body[data-ui="falling-blocks"] ::selection{background:#2fc6bd;color:#142e3e}
@media(max-width:620px){.falling-stage{padding:12px}.falling-topline{gap:5px;margin-bottom:11px}.falling-topline>div{padding:7px 8px}.falling-topline span{font-size:11px}.falling-topline strong{font-size:19px}.falling-layout{gap:10px}.falling-well{width:min(100%,300px)}.falling-sidebar{width:112px;gap:7px}.falling-preview{padding:7px}.falling-preview-heading{font-size:11px}.falling-preview canvas{width:100%}.falling-side-actions button{font-size:11px;min-height:36px}}
@media(max-width:470px){body[data-ui="falling-blocks"] .shell{width:min(100% - 18px,1080px)}.falling-layout{flex-direction:column;align-items:center}.falling-well{width:min(100%,280px)}.falling-sidebar{width:min(100%,360px);display:grid;grid-template-columns:1fr 1fr;align-items:start}.falling-preview{min-height:104px}.falling-preview canvas{width:100%;max-height:76px;object-fit:contain}.falling-held canvas{max-height:42px}.falling-side-actions{grid-column:1/-1;display:flex}.falling-side-actions button{flex:1}.falling-controls{gap:5px}.falling-controls button{min-width:40px;min-height:45px;font-size:22px}}
@media(prefers-reduced-motion:reduce){.falling-controls button:active{transform:none}}
