/* スマホで開くビンゴカード（#546）。列の色は抽選機（bingo-machine）と同じ */
.tool-hero{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;padding:2.2rem 0;text-align:center}
.tool-hero h1,.tool-hero p,.bc-panel h2,.bc-actions button,.bc-start button,.how-to-section h2,.how-to-section h3,.faq-section h2,.faq-section summary,.related-tools h2,.rt-name,.rt-desc,.bc-status{word-break:keep-all;overflow-wrap:anywhere}
.tool-area{padding:1.6rem 0 2.4rem}
.bc-wrap{max-width:520px;margin:0 auto}
.bc-panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 10px 28px rgba(15,23,42,.08);padding:1.25rem;box-sizing:border-box}
.bc-panel h2{font-size:1.15rem;margin:0 0 .5rem;color:#1e293b}
.bc-lead{margin:0 0 1rem;color:#475569;font-size:.92rem;line-height:1.7}
.bc-start{display:grid;grid-template-columns:minmax(0,1fr);gap:1.1rem}
.bc-start>*,.bc-open-row>*{min-width:0}
.bc-primary{font-size:1.15rem;font-weight:800;padding:.9rem 1rem;border:0;border-radius:999px;background:#f59e0b;color:#1f2937;cursor:pointer;box-shadow:0 5px 0 #b45309;width:100%}
.bc-primary:active{transform:translateY(3px);box-shadow:0 2px 0 #b45309}
.bc-divider{display:flex;align-items:center;gap:.6rem;color:#94a3b8;font-size:.82rem;margin:0}
.bc-divider::before,.bc-divider::after{content:"";flex:1;height:1px;background:#e2e8f0}
.bc-open label{display:block;font-weight:700;font-size:.85rem;color:#475569;margin-bottom:.35rem}
.bc-open-row{display:flex;gap:.5rem}
.bc-open input{flex:1;min-width:0;width:100%;font-size:1.3rem;letter-spacing:.12em;padding:.55rem .75rem;border:1px solid #cbd5e1;border-radius:10px;font-variant-numeric:tabular-nums;box-sizing:border-box}
.bc-open button{flex:none;font-size:1rem;font-weight:700;padding:.55rem 1.1rem;border-radius:10px;border:1px solid #4f46e5;background:#4f46e5;color:#fff;cursor:pointer;white-space:nowrap}
.bc-error{color:#b91c1c;font-size:.85rem;margin:.35rem 0 0;min-height:1.2em}
.bc-code{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:wrap;margin-bottom:.75rem}
.bc-code-label{font-size:.8rem;color:#64748b;font-weight:700}
.bc-code-value{font-size:1.6rem;font-weight:900;letter-spacing:.08em;color:#1e293b;font-variant-numeric:tabular-nums}
.bc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;user-select:none;-webkit-user-select:none}
.bc-head{display:flex;align-items:center;justify-content:center;height:2.4rem;border-radius:8px;font-weight:900;font-size:1.35rem;color:#fff}
.bc-col-0{background:#2563eb}.bc-col-1{background:#dc2626}.bc-col-2{background:#e2e8f0;color:#334155}.bc-col-3{background:#16a34a}.bc-col-4{background:#f59e0b;color:#1f2937}
.bc-cell{position:relative;aspect-ratio:1;min-width:0;border:2px solid #cbd5e1;border-radius:10px;background:#fffdf7;color:#1e293b;font-size:clamp(1.15rem,6vw,1.7rem);font-weight:800;font-variant-numeric:tabular-nums;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent;overflow:hidden}
.bc-cell:focus-visible{outline:3px solid #4f46e5;outline-offset:2px}
.bc-num{position:relative;z-index:1}
/* 開けたマス: 紙に丸い穴が開いたように、中を濃く抜いて縁に影を付ける */
.bc-cell::before{content:"";position:absolute;inset:14%;border-radius:50%;background:radial-gradient(circle at 50% 42%,#334155 0 55%,#1e293b 100%);box-shadow:inset 0 3px 6px rgba(0,0,0,.55),0 0 0 2px #e2e8f0;transform:scale(0);transition:transform .16s ease-out}
.bc-cell.open::before{transform:scale(1)}
.bc-cell.open .bc-num{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.bc-cell.free{background:#fef3c7;border-color:#f59e0b;cursor:default}
.bc-cell.free .bc-num{font-size:clamp(.72rem,3.4vw,.95rem);letter-spacing:.04em}
.bc-cell.line{border-color:#f59e0b;box-shadow:0 0 0 2px #fde68a}
.bc-cell.line::before{background:radial-gradient(circle at 50% 42%,#b45309 0 55%,#78350f 100%)}
.bc-status{margin:.9rem 0 0;padding:.65rem .85rem;border-radius:10px;font-weight:700;font-size:.95rem;text-align:center;background:#f1f5f9;color:#334155}
.bc-status[data-state=reach]{background:#fef3c7;color:#92400e}
.bc-status[data-state=bingo]{background:#fee2e2;color:#991b1b}
.bc-banner{margin:.75rem 0 0;text-align:center;font-size:2.6rem;font-weight:900;letter-spacing:.12em;color:#dc2626;line-height:1.1}
.bc-banner.pop{animation:bc-pop .5s ease-out}
@keyframes bc-pop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.18);opacity:1}100%{transform:scale(1)}}
.bc-actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin-top:1rem}
.bc-actions button{font-size:.88rem;font-weight:700;padding:.5rem .9rem;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:#334155;cursor:pointer;white-space:nowrap}
.bc-actions button[aria-pressed=true]{background:#e0e7ff;border-color:#6366f1;color:#3730a3}
.bc-actions button.armed{background:#b91c1c;border-color:#b91c1c;color:#fff}
.bc-actions button:disabled{opacity:.5;cursor:default}
.bc-actions button:focus-visible,.bc-primary:focus-visible,.bc-open button:focus-visible{outline:3px solid #4f46e5;outline-offset:2px}
.bc-note{margin:.75rem 0 0;color:#64748b;font-size:.8rem;text-align:center;line-height:1.6}
.bc-copy-note{margin:.4rem 0 0;color:#166534;font-size:.82rem;text-align:center;min-height:1.2em}
@media(max-width:420px){.bc-panel{padding:.9rem}.bc-grid{gap:4px}.bc-head{height:2.1rem;font-size:1.15rem}}
@media(prefers-reduced-motion:reduce){.bc-cell::before{transition:none}.bc-banner.pop{animation:none}}
