*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%}body{color:#1c1917;min-height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#fffbeb;margin:0;font-family:system-ui,sans-serif}main{text-align:center;max-width:560px;margin:0 auto;padding:16px}main.wide{max-width:960px}h1{margin:0 0 12px;font-size:clamp(24px,7vw,36px)}h2{margin:0 0 4px;font-size:20px}p{margin:8px 0}input,button{font:inherit;border:2px solid #1c1917;border-radius:10px;min-height:48px;padding:10px 16px;font-size:16px}input{width:100%;margin-bottom:8px}button{color:inherit;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;background:#f59e0b;font-weight:700}button.ghost{background:0 0}button:disabled{opacity:.5;cursor:default}button.bingo{width:100%;min-height:64px;margin-bottom:8px;font-size:24px}.stack{gap:8px;margin-bottom:20px;display:grid}.row{flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0;display:flex}.row button{flex:140px}.err{color:#b91c1c;font-weight:600}.code{letter-spacing:.12em;font-size:clamp(48px,18vw,80px);font-weight:800;line-height:1.1}.big{font-size:clamp(64px,24vw,120px);font-weight:800;line-height:1}.hist{color:#78716c;min-height:1.5em}.players{flex-wrap:wrap;justify-content:center;gap:8px;padding:0;list-style:none;display:flex}.players li{background:#fde68a;border-radius:99px;padding:6px 12px}.board{grid-template-columns:repeat(auto-fill,minmax(30px,1fr));gap:3px;margin-top:16px;font-size:13px;display:grid}.board span{background:#e7e5e4;border-radius:4px;padding:5px 0}.board span.on{background:#f59e0b;font-weight:700}.card{grid-template-columns:repeat(5,1fr);gap:clamp(3px,1.5vw,8px);margin:12px 0;display:grid}.card>*{aspect-ratio:1;min-height:0;color:inherit;background:#fff;border:2px solid #1c1917;border-radius:10px;place-items:center;padding:0;font-size:clamp(18px,6.5vw,30px);font-weight:700;display:grid}.card>.head{aspect-ratio:auto;color:#fffbeb;background:#1c1917;border-radius:8px;padding:4px 0}.card>.on,.card>.ok{background:#f59e0b;box-shadow:inset 0 0 0 4px #fff}.card>.ok{background:#86efac}.card>.bad{background:#fca5a5;text-decoration:line-through}.claim{background:#fff;border:3px solid #f59e0b;border-radius:14px;max-width:420px;margin:16px auto;padding:12px}@media (width>=900px){main.wide .board{grid-template-columns:repeat(15,1fr);font-size:18px}}@media (height<=500px) and (orientation:landscape){.big{font-size:56px}.code{font-size:44px}}.paper-check{text-align:left;max-width:420px;margin:12px auto}.paper-check summary{cursor:pointer;padding:8px 0;font-weight:700}.print-root{background:#fff}.print-root label{text-align:left;gap:4px;font-weight:600;display:grid}.print-root select{font:inherit;border:2px solid #1c1917;border-radius:10px;min-height:48px;padding:0 12px;font-size:16px}.sheet{aspect-ratio:195/250;background:#fff;border:1px dashed #a8a29e;width:min(100%,195mm);margin:16px auto;display:grid}.slot{border:1px dashed #a8a29e;place-items:center;display:grid;container-type:inline-size}.paper-card{max-width:100%;container-type:inline-size}.paper-title{justify-content:space-between;align-items:baseline;margin-bottom:1mm;font-size:9mm;line-height:1;display:flex}.paper-title span{color:#57534e;font-size:4mm}.paper-card .card{gap:1.2mm;margin:0}.paper-card .card>*{border-width:.4mm;border-radius:1.5mm;font-size:8cqw}.paper-card .card>.head{font-size:6cqw}@media print{@page{margin:10mm}body{background:#fff}.no-print{display:none}.sheet{aspect-ratio:auto;break-after:page;border:0;width:195mm;height:250mm;margin:0}.sheet:last-child{break-after:auto}.slot{border:.2mm dashed #78716c}.paper-card .card>*{box-shadow:none;background:#fff}.paper-card .card>.head{color:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#000}}
