.wall-game { border-top:1px solid var(--line); padding:28px 0 48px; scroll-margin-top:24px; }
.wall-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.wall-heading p { margin-top:6px; color:var(--muted); }
.wall-language { color:var(--accent); font-size:14px; }
#wall-play { max-width:800px; margin:20px auto 0; }
#wall-load { margin-block:24px; }
.wall-toolbar,.wall-options { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; }
.wall-toolbar { justify-content:space-between; padding-bottom:12px; border-bottom:1px solid var(--line); }
#wall-progress { font-size:14px; color:var(--muted); font-variant-numeric:tabular-nums; }
.wall-options { gap:8px; }
.wall-options label { display:flex; align-items:center; gap:6px; min-height:44px; padding-inline:4px; font-size:14px; cursor:pointer; }
.game-page .wall-options input { min-height:18px; width:18px; height:18px; padding:0; accent-color:var(--accent); }
.game-page .wall-options button { font-size:14px; }
.wall-prompt { padding-block:20px 14px; }
.wall-prompt p { font-size:14px; color:var(--muted); margin-bottom:4px; }
.wall-prompt h3 { font:400 clamp(24px,3vw,32px)/1.3 var(--serif); letter-spacing:-.025em; text-wrap:balance; }
.wall-answer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; min-height:80px; padding-block:12px; border-bottom:1px solid var(--line); }
#wall-built,#wall-answer-measure { grid-area:1 / 1; font:400 clamp(22px,2.6vw,28px)/1.35 var(--serif); color:var(--accent); }
#wall-built:empty::before { content:'Your sentence…'; color:var(--muted); }
#wall-piece-count { color:var(--muted); font-size:13px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.wall-guide { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-block:12px; }
.wall-how { font-size:14px; color:var(--muted); }
.wall-arena { position:relative; isolation:isolate; }
.wall-bricks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding-inline:16px; }
.game-page .wall-brick { position:relative; min-width:0; min-height:76px; padding:14px 8px; border-radius:4px; border:1px solid var(--muted); background:var(--soft); color:var(--ink); font:400 23px/1.2 var(--serif); overflow-wrap:anywhere; box-shadow:0 6px 12px -9px rgb(0 0 0 / .55); }
.wall-brick:nth-child(n+4):nth-child(-n+6) { transform:translateX(12px); }
.game-page .wall-brick:hover:not(:disabled),.game-page .wall-brick:focus-visible { border-color:var(--accent); background:var(--surface); }
.game-page .wall-brick[data-state="collected"] { background:transparent; color:var(--muted); border:1px dashed var(--line); box-shadow:none; }
.wall-brick[data-state="collected"] span { visibility:hidden; }
.wall-brick[data-state="hint"] { border:2px solid var(--accent); background:var(--surface); }
.wall-launchpad { position:relative; height:84px; }
.wall-launcher { position:absolute; width:56px; height:56px; bottom:6px; left:calc(50% - 28px); }
.wall-barrel { position:absolute; width:18px; height:42px; left:19px; bottom:13px; border:2px solid var(--accent); border-radius:5px 5px 2px 2px; background:var(--soft); transform-origin:center 36px; transform:rotate(var(--aim,0deg)); }
.wall-base { position:absolute; width:48px; height:25px; left:4px; bottom:0; border:2px solid var(--accent); border-radius:24px 24px 4px 4px; background:var(--surface); }
.wall-ground { position:absolute; bottom:5px; width:110px; height:1px; background:var(--line); left:calc(50% - 55px); }
.wall-effects { position:absolute; inset:-8px; pointer-events:none; overflow:hidden; z-index:2; }
.wall-shot { position:absolute; width:10px; height:24px; border:2px solid var(--ink); border-radius:6px; background:var(--accent); }
.wall-chip { position:absolute; width:10px; height:8px; background:var(--accent); border:1px solid var(--ink); }
.wall-feedback { min-height:52px; margin-top:8px; font-size:15px; }
.wall-feedback[data-result="retry"] { color:var(--game-error); }
.wall-actions { display:flex; flex-shrink:0; gap:12px; align-items:center; }
.game-page .wall-actions button { font-size:14px; }
@media(max-width:767px) {
  .wall-heading { align-items:flex-start; }
  .wall-heading p { font-size:15px; }
  .wall-toolbar { gap:4px; }
  .wall-toolbar > p { width:100%; }
  .wall-options { width:100%; }
  .wall-options button { margin-left:auto; }
  #wall-play { margin-top:12px; }
  .wall-prompt { padding-block:12px; }
  .wall-answer { min-height:66px; }
  .wall-bricks { padding-inline:0 8px; gap:6px; }
  .game-page .wall-brick { font-size:19px; min-height:66px; padding:12px 5px; }
  .wall-brick:nth-child(n+4):nth-child(-n+6) { transform:translateX(8px); }
  .wall-launchpad { height:58px; }
  .wall-feedback { min-height:48px; }
}
@media(prefers-reduced-motion:reduce) { .wall-shot,.wall-chip { display:none; } }

#wall-answer-measure { visibility:hidden; pointer-events:none; }
