.worksheet-puzzle{margin-top:12px}
.worksheet-puzzle-board{width:min(100%,560px);margin:0 auto;touch-action:manipulation}
.worksheet-puzzle-help{margin:10px 0 0;color:#475569;font-size:12px;font-weight:700;text-align:center}
.worksheet-unsupported{padding:18px;border:1px dashed #94a3b8;border-radius:12px;background:#fff;color:#475569;text-align:center;font-weight:800}
.worksheet-number-grid{display:grid;width:min(100%,520px);margin:0 auto;border:2px solid #0f172a;background:#0f172a;gap:1px;aspect-ratio:1}
.worksheet-number-cell{min-width:0;min-height:0;border:0;border-radius:0!important;background:#fff!important;color:#0f172a!important;padding:0!important;text-align:center;font:900 clamp(15px,5vw,26px)/1 inherit!important}
.worksheet-number-cell.given{background:#e2e8f0!important;color:#0f172a!important}
.worksheet-number-cell.box-right{border-right:2px solid #0f172a}
.worksheet-number-cell.box-bottom{border-bottom:2px solid #0f172a}
.worksheet-star-grid{display:grid;width:min(100%,520px);margin:0 auto;border:3px solid #0f172a;background:#fff;aspect-ratio:1}
.worksheet-star-cell{min-width:0;min-height:0;border:solid #94a3b8;border-width:0 1px 1px 0;border-radius:0!important;background:#fff!important;color:#0f172a!important;padding:0!important;font:900 clamp(16px,5vw,27px)/1 inherit!important}
.worksheet-star-cell.is-star{color:#d97706!important;background:#fffbeb!important}
.worksheet-star-cell.is-cross{color:#64748b!important;background:#f8fafc!important}
.worksheet-kakuro-grid{display:grid;width:min(100%,520px);margin:0 auto;border:2px solid #0f172a;background:#0f172a;gap:1px}
.worksheet-kakuro-cell{position:relative;aspect-ratio:1;min-width:0;min-height:0}
.worksheet-kakuro-cell.white{background:#fff}
.worksheet-kakuro-cell.black{background:#1e293b;color:#fff}
.worksheet-kakuro-cell.black.has-clue:after{content:"";position:absolute;inset:0;background:linear-gradient(to top right,transparent 49%,#cbd5e1 49.5%,#cbd5e1 50.5%,transparent 51%)}
.worksheet-kakuro-input{position:absolute;inset:0;width:100%;height:100%;border:0!important;border-radius:0!important;background:transparent!important;color:#0f172a!important;padding:0!important;text-align:center;font:900 clamp(15px,5vw,25px)/1 inherit!important}
.worksheet-kakuro-input.given{background:#e2e8f0!important}
.worksheet-kakuro-clue{position:absolute;z-index:1;font-size:clamp(8px,2.5vw,13px);font-weight:900;line-height:1}
.worksheet-kakuro-clue.down{top:9%;right:9%}
.worksheet-kakuro-clue.right{bottom:9%;left:9%}
@media(max-width:480px){.worksheet-puzzle-board{width:100%}.worksheet-number-cell,.worksheet-star-cell{width:auto!important}}
@media(orientation:landscape) and (max-height:560px){.worksheet-puzzle-board{width:min(72vh,520px)}}
