@font-face{font-family:Pretendard;src:url(Pretendard.ttf)}*{box-sizing:border-box}body{margin:0;background:#f1f5fa;color:#182e49;font-family:Pretendard,system-ui,sans-serif}button,a{font:inherit}button{cursor:pointer;border:1px solid #b9c9dc;border-radius:12px;background:white;color:#173454;padding:12px 15px;font-weight:700}button:hover{background:#e6f1ff}button:focus-visible,a:focus-visible{outline:4px solid #e7a825;outline-offset:3px}button:disabled{cursor:default;opacity:.4}header{height:76px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:850}.brand small{font-size:12px;display:block;color:#596f85;margin-top:3px}.logo{background:#246eda;color:#fff;border-radius:12px;padding:4px 10px;font-size:34px;box-shadow:0 4px #164780}.header-actions{display:flex;align-items:center;gap:10px}a{color:#375574;font-size:14px}main{display:grid;grid-template-columns:minmax(235px,1fr) minmax(0,auto) minmax(245px,1fr);gap:24px;padding:0 28px;align-items:center;min-height:calc(100dvh - 108px)}.instructions,.pieces{width:100%;max-width:380px;margin:auto}.eyebrow{font-size:13px;font-weight:800;color:#356aa8;letter-spacing:.09em}h1{font-size:clamp(25px,2.25vw,44px);line-height:1.25;letter-spacing:-.045em;margin:14px 0}h1 em{font-style:normal;color:#1965c9}.rule{font-size:clamp(16px,1.15vw,21px);line-height:1.8;color:#42586d}.goal{margin:28px 0;background:#fff;border:1px solid #d7e3ef;border-radius:20px;padding:20px}.goal>span{font-size:15px;font-weight:700}.goal strong{display:block;font-size:54px;margin:8px 0}.goal-total{font-size:24px;color:#667b8e}progress{width:100%;height:12px;accent-color:#226bd0}.steps p{display:flex;align-items:center;gap:10px;font-size:16px;color:#54687c;padding:12px 6px;border-radius:12px}.steps p.active{background:#dceaff;color:#124b96;font-weight:800}.steps b{display:grid;place-items:center;width:28px;height:28px;border:1px solid currentColor;border-radius:50%}.tips,.keyboard{font-size:14px;line-height:1.7;color:#53677a}.text-button{margin-top:16px;font-size:13px;background:transparent}.play{width:min(calc(100dvh - 188px),calc(100vw - 610px));min-width:260px}.board-heading{min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:800;font-size:18px;color:#194b85}.board-frame{padding:10px;background:#142338;border-radius:20px;box-shadow:0 8px 0 #bac9da;position:relative}#board{aspect-ratio:1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));gap:5px}.cell{border:1px solid #52677e;background:#293d54;border-radius:8px;padding:0;position:relative;min-width:0;min-height:0;transition:background .12s}.cell:hover{background:#344e6a}.cell.filled{background:var(--color);border-color:#ffffff75;box-shadow:inset 0 -5px #00000024,inset 0 2px #ffffff35}.cell.target{border:3px dashed #fff4ba;background:#5b5f48}.cell.target::after{content:'↓';color:#fff1b4;font-size:clamp(18px,2vw,30px);font-weight:900}.cell.ghost{background:var(--color);opacity:.8;outline:3px solid white;outline-offset:-4px}.cell.bad{background:#ac344a;outline:3px dashed #ffd7df;outline-offset:-5px}.cell.will-clear{box-shadow:inset 0 0 0 4px #fff3a4;filter:brightness(1.2)}.cell.clearing{animation:clear .28s ease forwards}@keyframes clear{50%{transform:scale(.83);background:#fff6ad}100%{transform:scale(.2);opacity:0}}.legend{display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;color:#41576d;margin:14px 0 0}.legend i{width:13px;height:13px;background:#293d54;display:inline-block;border-radius:3px;margin-left:10px}.legend .occupied{background:#387ef0}.legend .preview{background:#387ef0;outline:2px solid #224265;outline-offset:2px}.pieces h2{font-size:24px;letter-spacing:-.04em;margin:10px 0}.pieces>div>p{font-size:15px;color:#546c84;margin:0 0 14px}#tray{display:grid;gap:14px}.piece{height:clamp(110px,18vh,185px);position:relative;border:2px solid #c6d4e4;border-radius:18px;display:flex;align-items:center;justify-content:center;touch-action:none}.piece.selected{border:4px solid #1c64d4;background:#e4efff;box-shadow:0 0 0 4px #c7dcff}.piece .number{position:absolute;top:10px;left:12px;font-size:14px;color:#466887}.mini{display:grid;gap:4px;pointer-events:none}.mini i{width:var(--mini-size);height:var(--mini-size);background:var(--color);border-radius:6px;box-shadow:inset 0 -4px #00000022}.mini i.blank{visibility:hidden}.used{color:#8095a9;font-size:14px}.actions{display:flex;gap:8px;margin-top:20px}.actions button{flex:1;font-size:14px}.test-note{border-top:1px solid #ccdae8;padding-top:15px;font-size:13px;color:#47617a;line-height:1.7}.test-note span{color:#63798d}footer{height:32px;padding:5px 28px;display:flex;justify-content:space-between;font-size:12px;color:#5a7188}dialog{border:0;border-radius:24px;padding:36px;max-width:460px;width:calc(100% - 32px);text-align:center;color:#18364f;box-shadow:0 20px 80px #0e233e40}dialog::backdrop{background:#122138b8}.dialog-icon{font-size:42px;color:#176ed0}dialog h2{font-size:29px}dialog p{font-size:18px;line-height:1.6}.primary{background:#226bd0;color:white;border:0;width:100%;font-size:19px}.primary:hover{background:#174f9d}#celebrate{position:absolute;inset:30% 0 auto;text-align:center;font-size:clamp(30px,4vw,64px);font-weight:900;color:#fff6a1;text-shadow:0 3px 10px #182738;pointer-events:none}body.dragging{cursor:grabbing} @media(min-width:1800px){.play{width:min(calc(100dvh - 188px),calc(100vw - 830px))}}@media(max-width:1050px){header{height:62px;padding:8px 14px}.brand{font-size:18px}.header-actions{gap:6px}.header-actions button{padding:8px;font-size:12px}.header-actions a{font-size:11px}main{gap:12px;padding:0 14px;grid-template-columns:190px minmax(0,1fr) 190px}.play{width:100%;min-width:0}.rule{font-size:14px}h1{font-size:24px}.goal{padding:12px;margin:12px 0}.goal strong{font-size:36px}.steps p{font-size:13px;padding:5px}.tips,.keyboard{font-size:11px}.pieces h2{font-size:19px}.piece{height:120px}.actions{flex-wrap:wrap}.board-heading{font-size:14px}.legend{font-size:10px;gap:3px}.test-note{display:none}footer{padding:5px 14px}}@media(max-width:720px){main{display:flex;flex-direction:column;gap:12px;min-height:auto}.instructions{max-width:none;display:grid;grid-template-columns:1fr auto;gap:0 12px}.eyebrow,.instructions .rule,.instructions .steps,.instructions .tips,.instructions .text-button{display:none}h1{font-size:21px;line-height:1.3;margin:8px 0}.goal{margin:0;padding:8px 14px;min-width:110px;align-self:center}.goal>span{font-size:11px}.goal strong{font-size:28px;margin:2px 0}.goal-total{font-size:16px}progress{height:7px}.play{width:min(100%,calc(100dvh - 340px));max-width:560px}.board-frame{padding:7px;border-radius:14px}#board{gap:3px}.cell{border-radius:5px}.board-heading{min-height:35px;font-size:14px}.legend{margin-top:10px}.pieces{max-width:560px}.pieces h2{font-size:16px;margin:2px 0 8px}.pieces>div>p,.keyboard{display:none}#tray{grid-template-columns:repeat(3,1fr);gap:8px}.piece{height:105px;border-radius:12px}.piece .number{top:5px;left:6px}.mini{gap:3px}.actions{margin:10px 0}.actions button{padding:9px}footer{height:auto;min-height:26px;font-size:10px}.header-actions a{display:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.scores{display:flex;gap:24px;color:#51667b;font-size:13px}.scores strong{display:block;font-size:28px;color:#1c477d;margin-top:4px}#combo{font-size:13px;color:#195dab;font-weight:700}.compact-rule{text-align:center;font-size:12px;color:#34516c;margin:12px 0 0}@media(max-width:720px){.scores{grid-column:1/-1;justify-content:space-between;gap:8px}.scores span{display:flex;align-items:center;gap:8px}.scores strong{font-size:20px;margin:0}#combo{grid-column:1/-1;margin:4px 0 0;font-size:11px}.legend{display:none}.compact-rule{font-size:11px}.play{width:min(100%,calc(100dvh - 385px))}}
