.home-gallery { padding-inline:16px; }
.home-page .home-gallery h2 { margin-bottom:10px; }
.home-gallery > p { color:var(--muted); font-size:.97rem; margin:0 auto 31px; }
.message-wall {
  --wall-gap:clamp(9px,1.1vw,16px);
  --wall-columns:5;
  width:min(100%,1152px);
  margin-inline:auto;
  columns:var(--wall-columns);
  column-gap:var(--wall-gap);
  text-align:left;
}
.wall-tile {
  display:block;
  break-inside:avoid;
  margin-bottom:var(--wall-gap);
  overflow:hidden;
  border-radius:12px;
  background:var(--surface);
  box-shadow:0 0 0 1px #2a1e3010,0 2px 4px #2a1e3010;
  cursor:zoom-in;
}
.wall-tile img { display:block; width:100%; height:auto; }
.wall-tile:focus-visible { outline:3px solid var(--prune); outline-offset:2px; }
.message-wall.wall-animated {
  display:grid;
  grid-template-columns:repeat(var(--wall-columns),minmax(0,1fr));
  gap:var(--wall-gap);
  height:clamp(570px,54vw,745px);
  overflow:hidden;
  padding:1px 3px;
  mask-image:linear-gradient(transparent,#000 5%,#000 92%,transparent);
}
.wall-animated .wall-tile { margin:0; }
.wall-column { min-width:0; }
.wall-track { animation:wall-scroll 104.4s linear infinite; }
.wall-run { display:grid; gap:var(--wall-gap); padding-bottom:var(--wall-gap); }
.wall-column:nth-child(2) .wall-track { animation-direction:reverse; animation-duration:80.4s; animation-delay:-7s; }
.wall-column:nth-child(3) .wall-track { animation-duration:117.6s; animation-delay:-4s; }
.wall-column:nth-child(4) .wall-track { animation-direction:reverse; animation-duration:92.4s; animation-delay:-13s; }
.wall-column:nth-child(5) .wall-track { animation-duration:111s; animation-delay:-3s; }
.wall-animated:is(:focus-within,.wall-reading,.motion-paused) .wall-track { animation-play-state:paused; }
@media(hover:hover) and (pointer:fine) {
  .wall-animated:hover .wall-track { animation-play-state:paused; }
}
@media(prefers-reduced-motion:no-preference) {
  .wall-dialog[open] { animation:wall-open 210ms cubic-bezier(.18,.77,.26,1); }
  .wall-dialog[open]::backdrop { animation:wall-dim 170ms ease-out; }
  @keyframes wall-open { from { opacity:.2; translate:0 12px; scale:.975; } }
  @keyframes wall-dim { from { opacity:0; } }
}
@keyframes wall-scroll { to { transform:translateY(-50%); } }
.wall-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 21px; margin-top:19px; }
.wall-toggle,.wall-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:7px 0; color:var(--ink); font-size:.92rem; font-weight:600; }
.wall-toggle { border:0; background:none; color:var(--prune); text-decoration:underline; text-underline-offset:.22em; }
.wall-link { text-decoration:none; }
.wall-link:hover { text-decoration:underline; }
.wall-dialog {
  width:min(440px,calc(100% - 24px));
  max-width:calc(100% - 24px);
  max-height:min(92dvh,900px);
  padding:0;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 16px 90px #21162648;
  text-align:left;
}
.wall-dialog[open] { display:flex; flex-direction:column; }
.wall-dialog::backdrop { background:rgb(20 15 24 / 66%); }
.wall-toolbar,.wall-nav { display:flex; align-items:center; flex:none; gap:10px; padding:7px 12px; }
.wall-toolbar { justify-content:space-between; border-bottom:1px solid var(--edge); }
.home-page .wall-toolbar h2 { margin:0; font:650 15px/1.35 var(--ui); letter-spacing:0; }
.wall-icon { display:grid; place-items:center; min-width:44px; min-height:44px; border:0; border-radius:50%; background:transparent; color:var(--ink); }
.wall-icon:hover { background:var(--lilac); }
.wall-icon img,.wall-icon svg { width:20px; height:20px; }
.wall-dialog-content { overflow:auto; min-height:0; overscroll-behavior:contain; }
.wall-full { display:block; margin:auto; width:100%; height:auto; }
.wall-transcript { padding:8px 15px 11px; color:var(--muted); font:400 .86rem/1.5 var(--ui); }
.wall-transcript summary { cursor:pointer; min-height:35px; align-content:center; }
.wall-transcript p { margin:4px 0 8px; white-space:pre-line; }
.wall-nav { justify-content:center; border-top:1px solid var(--edge); }
.wall-nav span { min-width:66px; text-align:center; font:600 13px var(--ui); font-variant-numeric:tabular-nums; }
@media(max-width:950px) { .message-wall { --wall-columns:3; } }
@media(max-width:650px) {
  .home-block.home-gallery { padding-inline:13px; }
  .home-gallery > p { max-width:32ch; padding-inline:4px; margin-bottom:21px; line-height:1.45; }
  .wall-column:first-child .wall-track { animation-duration:261s; }
  .wall-column:nth-child(2) .wall-track { animation-duration:201s; }
  .message-wall { --wall-columns:2; --wall-gap:8px; }
  .message-wall.wall-animated { height:clamp(470px,145vw,650px); }
  .wall-tile { border-radius:9px; }
  .wall-actions { gap:0 16px; margin-top:10px; }
  .wall-dialog { width:min(400px,calc(100% - 16px)); max-width:calc(100% - 16px); max-height:94dvh; }
}
@media(prefers-reduced-motion:reduce) { .wall-track { animation:none; } }
