/* まぎれこみ探しの見た目 */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  aspect-ratio: auto; max-height: none; padding: 14px 14px 18px; }
.hud { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.hud b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 1.15rem; margin: 0 2px; }
.timebar { width: 100%; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.timebar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; }
.board-wrap { position: relative; width: min(100%, 420px); }
.board { --n: 3; width: 100%; aspect-ratio: 1; display: grid; gap: 6px;
  grid-template-columns: repeat(var(--n), 1fr); grid-template-rows: repeat(var(--n), 1fr); }
.board.good { animation: pop 0.25s var(--ease); }
.board.locked .cell { pointer-events: none; opacity: 0.45; }
.cell { min-width: 0; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: calc(min(100vw - 60px, 400px) / var(--n) * 0.55); line-height: 1;
  cursor: pointer; touch-action: manipulation; user-select: none; display: grid; place-items: center; }
.cell.wrong { animation: shake 0.3s; border-color: oklch(72% 0.19 25); }
.board.locked .cell.reveal { opacity: 1; border: 2px solid var(--accent); box-shadow: var(--glow); }
.cover { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; }
.cover[hidden] { display: none; }
.cover p { margin: 0; color: var(--muted); }
.cover .sample { font-size: 2.6rem; letter-spacing: 0.15em; color: var(--text); }
.penalty { position: absolute; top: 46px; right: 16px; margin: 0; color: oklch(72% 0.19 25); font-weight: 800; opacity: 0; pointer-events: none; }
.penalty.show { animation: fade 0.8s var(--ease); }
.hint { margin: 0; color: var(--muted); font-size: 0.85rem; text-align: center; }
.best { text-align: center; color: var(--muted); }
@keyframes pop { from { transform: scale(0.96); } to { transform: none; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes fade { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
