.wall-game { max-width:560px; margin:20px auto 0; color:var(--ink); }
.wall-game [hidden] { display:none !important; }
.wall-level-title { margin:0 0 6px; font-size:20px; line-height:1.5; text-align:left; }
.wall-wall-count { margin:0 0 18px; color:var(--control-ink); font-size:14px; text-align:left; }
.wall-stage { display:grid; position:relative; grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-rows:repeat(6,minmax(0,1fr)); width:min(100%,360px); aspect-ratio:1; margin:auto; overflow:hidden; border-radius:12px; background:var(--surface-soft); box-shadow:0 0 0 1px var(--line); touch-action:none; user-select:none; cursor:ew-resize; }
.wall-stage:focus-visible { outline:3px solid var(--purple); outline-offset:4px; }
.wall-stage[data-passed="true"] { background:var(--accent-soft); box-shadow:0 0 0 2px var(--purple); cursor:default; }
.wall-cell { display:block; position:relative; min-width:0; min-height:0; border:1px solid color-mix(in srgb,var(--line) 50%,transparent); }
.wall-hole { position:absolute; inset:2px; border:2px dashed var(--purple); border-radius:4px; background:var(--accent-soft); }
.wall-unit { display:block; position:absolute; inset:6px; border:1px solid #786197; border-radius:5px; background:#c3afe8; box-shadow:inset 0 2px 0 #ffffff75,inset 0 -3px 0 #78619725; }
.wall-eyes { display:flex; justify-content:center; gap:5px; position:absolute; top:22%; left:0; right:0; }
.wall-eyes i { display:block; position:relative; width:10px; height:12px; border-radius:50%; background:#fffdfb; }
.wall-eyes i::after { position:absolute; top:3px; left:3px; width:5px; height:7px; border-radius:50%; background:#30253d; content:""; }
.wall-mouth { position:absolute; top:64%; left:50%; width:12px; height:6px; transform:translateX(-50%); border:2px solid #30253d; border-top:0; border-radius:0 0 10px 10px; }
.wall-cell.is-mismatch::after { position:absolute; inset:2px; border:2px solid var(--control-ink); border-radius:4px; background:repeating-linear-gradient(135deg,transparent 0 8px,color-mix(in srgb,var(--control-ink) 30%,transparent) 8px 11px); content:""; pointer-events:none; }
.wall-stage[data-passed="true"] .wall-hole { border-style:solid; }
.wall-count { margin:16px 0 6px; font-size:14px; font-weight:650; line-height:1.5; font-variant-numeric:tabular-nums; }
.wall-help { margin:0 0 16px; color:var(--control-ink); font-size:14px; line-height:1.6; }
.wall-transforms { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; width:min(100%,360px); margin:auto; }
.wall-transforms .game-button { min-width:44px; min-height:44px; padding:10px 8px; }
.wall-status { min-height:24px; margin:14px 0; color:var(--control-ink); font-size:14px; line-height:1.6; }
.wall-controls { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.wall-controls .game-button { min-width:44px; min-height:44px; }
@media (max-width:480px) {
  .wall-level-title { font-size:18px; }
  .wall-count, .wall-help { font-size:13px; }
  .wall-controls .game-button { padding:10px 12px; }
  .wall-eyes { gap:4px; }
  .wall-eyes i { width:9px; height:10px; }
  .wall-eyes i::after { top:2px; left:3px; width:4px; height:6px; }
  .wall-mouth { width:10px; height:5px; }
}
