/* Connecting Wall */
.k-wall .st-in { height: 100%; margin: 0; gap: .4em; }
.st-wall { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: .3em; }
.st-wrow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3em; min-height: 0; }
.st-tile { font: inherit; color: var(--ink); min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; border-radius: .35em; border: .08em solid var(--line);
  background: var(--card); cursor: pointer; padding: 0; overflow: hidden; transition: background .15s, color .15s, transform .15s; }
.st-tile:hover { border-color: var(--ink); }
.st-tile .st-ck { display: block; width: 100%; padding: .15em .3em; font-weight: 800; font-family: var(--display); line-height: 1.12; text-align: center; overflow-wrap: normal; }
.st-tile.sel { background: var(--ink); color: var(--card); border-color: var(--ink); transform: scale(.97); }
.st-tile.solved { background: var(--gc); color: #fff; border-color: var(--gc); cursor: default; }
.st-tile.shake { animation: st-shake .45s ease; background: #c0392b; border-color: #c0392b; color: #fff; }
@keyframes st-shake { 20%, 60% { transform: translateX(-.25em); } 40%, 80% { transform: translateX(.25em); } }
.st-wrow.solved { grid-template-rows: minmax(0, 1fr) auto; row-gap: .15em; }
.st-wname { font-family: inherit; border: 0; cursor: pointer; grid-column: 1 / -1; justify-self: center; max-width: 100%; padding: .02em .8em; border-radius: 99px; background: var(--gc); color: #fff;
  font-weight: 800; font-size: max(12px, .5em); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-wrow.pop .st-tile { animation: bg-pop .45s cubic-bezier(.2,1.6,.4,1) both; }
.st-wacts { flex: none; display: flex; gap: .5em; justify-content: center; font-size: max(13px, .45em); }
.st-wacts .bg-btn.small { font-size: 1em; }
@media (prefers-reduced-motion: reduce) { .st-wrow.pop .st-tile, .st-tile.shake, .st-in.on .st-a, .st-clock.up .st-time { animation: none; } }

.k-wall .st-wname:hover { text-decoration: underline; }
.st-wall-note { max-width: min(36em, 90vw); padding: 1.5em; border-radius: 1em; border: 2px solid var(--rule); font-family: var(--body); background: var(--card); color: var(--ink); }
.st-wall-note::backdrop { background: rgb(0 0 0 / .5); }
.st-wall-note h2 { font-family: var(--head); margin: 0 0 .5em; }
.st-wall-note p { margin: 0 0 1em; }
