/* KONK! — THE WALL: the full-screen gallery of the people behind the game, and the portrait plates it hangs. */
.wall {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--wall-raise-2) transparent;
  color: var(--wall-warm); background: var(--wall-ground); font-family: var(--font-body);
}
/* Fill backwards only: a transform left on the dialog after the animation would make it the containing block for the fixed Close button, which then scrolls away with the page. */
.wall[open] { animation: wall-in 420ms var(--wall-ease) backwards; }
.wall::backdrop { background: var(--wall-ground); }
@keyframes wall-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wall button { margin: 0; color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
.wall :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wall [hidden] { display: none !important; }
.wall-gallery, .wall-profile {
  box-sizing: border-box; width: min(1360px, 100%); margin: 0 auto;
  padding: max(clamp(20px, 5vw, 64px), env(safe-area-inset-top)) max(clamp(18px, 5vw, 72px), env(safe-area-inset-right)) max(72px, env(safe-area-inset-bottom)) max(clamp(18px, 5vw, 72px), env(safe-area-inset-left));
}
.wall-close {
  position: fixed; z-index: 3; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); min-width: 76px; min-height: 44px; padding: 0 16px !important;
  background: rgb(28 29 26 / .72); border: 1px solid var(--wall-hair); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  font: 700 12px var(--font-body) !important; letter-spacing: .12em; text-transform: uppercase; transition: transform 120ms var(--ease-out), color 160ms ease, border-color 160ms ease;
}
.wall-close:hover { color: var(--yellow); border-color: var(--yellow); }
.wall-close:active { transform: scale(.96); }

/* Masthead: the name of the room, set as large as the wall allows. */
.wall-masthead { padding-top: clamp(24px, 5vh, 56px); }
.wall-kicker { margin: 0 0 clamp(8px, 1.4vw, 18px); color: var(--yellow); font: 700 12px/1 var(--font-body); letter-spacing: .34em; }
.wall-title { margin: 0 0 0 -.04em; font: 400 clamp(72px, 13vw, 188px)/.82 var(--font-display); letter-spacing: -.012em; text-transform: uppercase; }
.wall-statement { margin: clamp(14px, 2vw, 26px) 0 0; color: var(--wall-muted); font: 600 clamp(11px, 1.25vw, 15px)/1.4 var(--font-body); letter-spacing: .34em; text-transform: uppercase; }

.wall-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(26px, 3.6vw, 48px); padding-bottom: 14px; border-bottom: 1px solid var(--wall-hair); }
.wall-search { flex: 1 1 220px; max-width: 380px; }
.wall-search-input { box-sizing: border-box; width: 100%; height: 48px; padding: 0; color: var(--wall-warm); background: none; border: 0; border-radius: 0; font: 500 18px/1 var(--font-body); appearance: none; }
.wall-search-input::placeholder { color: var(--wall-muted); opacity: 1; }
.wall-search-input:focus-visible { outline: 0; box-shadow: 0 2px 0 var(--yellow); }
.wall-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.wall-filter { min-height: 44px; padding: 0 18px !important; background: none; border: 1px solid var(--wall-hair); font: 700 12px var(--font-body) !important; letter-spacing: .12em; text-transform: uppercase; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms var(--ease-out); }
.wall-filter:hover { border-color: var(--wall-warm); }
.wall-filter:active { transform: scale(.96); }
.wall-filter.is-on { color: var(--wall-ground) !important; background: var(--wall-warm); border-color: var(--wall-warm); }

/* Portrait plates. With a photograph it is the photograph; without one, the creator's name is the picture. */
.creator-plate { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wall-raise); container-type: inline-size; }
.creator-plate[data-tone="1"] { background: #24211b; }
.creator-plate[data-tone="2"] { background: #1a1f1d; }
.creator-plate-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.creator-plate-name { position: absolute; left: 6cqw; bottom: 3cqw; color: var(--wall-warm); font: 400 calc(150cqw / var(--name-length, 6))/.84 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.creator-plate-ring { position: absolute; top: 7cqw; right: 7cqw; width: 20cqw; height: 20cqw; color: rgb(236 229 211 / .3); }
.creator-plate-credit { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; color: var(--wall-warm); background: rgb(18 19 17 / .7); font: 500 10px/1.4 var(--font-body); }

/* Whoever leads the wall. */
.wall-featured { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 5vw, 80px); align-items: start; width: 100%; margin-top: clamp(28px, 5vw, 72px) !important; padding: 0; text-align: left; background: none; border: 0; animation: wall-rise 620ms var(--wall-ease) both; }
.wall-featured-words { display: grid; gap: 10px; min-width: 0; padding-top: clamp(0px, 1.6vw, 22px); }
.wall-featured-reason, .wall-tile-discipline, .wall-featured-discipline { color: var(--wall-muted); font: 700 12px/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.wall-featured-reason.is-live { color: var(--yellow); }
.wall-featured-reason.is-live::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 9px; background: var(--yellow); border-radius: 50%; vertical-align: 1px; }
.wall-featured-name { font: 400 clamp(60px, 11.5vw, 176px)/.84 var(--font-display); letter-spacing: -.012em; text-transform: uppercase; overflow-wrap: anywhere; }
.wall-featured-discipline { margin-top: 6px; }
.wall-featured-track, .wall-featured-headline { color: var(--wall-warm); font: 500 clamp(15px, 1.5vw, 19px)/1.4 var(--font-body); }
.wall-featured-cta { justify-self: start; margin-top: clamp(8px, 1.6vw, 22px); padding-bottom: 5px; border-bottom: 2px solid var(--wall-warm); font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; transition: color 180ms ease, border-color 180ms ease; }
.wall-featured:hover .wall-featured-cta { color: var(--yellow); border-color: var(--yellow); }

.wall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 4vw, 64px) clamp(16px, 3vw, 44px); margin-top: clamp(44px, 7vw, 104px); }
.wall-tile { display: grid; gap: 14px; padding: 0; text-align: left; background: none; border: 0; animation: wall-rise 560ms var(--wall-ease) both; animation-delay: calc(var(--order, 0) * 45ms + 80ms); }
.wall-tile-caption { display: grid; gap: 6px; }
.wall-tile-name { font: 400 clamp(26px, 3vw, 40px)/.95 var(--font-display); text-transform: uppercase; transition: color 180ms ease; }
.wall-tile .creator-plate > *, .wall-featured .creator-plate > * { transition: transform 600ms var(--wall-ease); }
.wall-tile:hover .wall-tile-name { color: var(--yellow); }
.wall-tile:hover .creator-plate-image, .wall-featured:hover .creator-plate-image { transform: scale(1.03); }
.wall-tile:hover .creator-plate-name, .wall-featured:hover .creator-plate-name { transform: translateY(-1.5cqw); }
.wall-tile:active .creator-plate, .wall-featured:active .creator-plate { transform: scale(.985); transition: transform 120ms var(--ease-out); }
@keyframes wall-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.wall-empty { display: grid; justify-items: start; gap: 10px; padding: clamp(48px, 10vw, 120px) 0; }
.wall-empty-title { margin: 0; font: 400 clamp(30px, 5vw, 56px)/1 var(--font-display); text-transform: uppercase; }
.wall-empty-copy { margin: 0; color: var(--wall-muted); font: 500 16px/1.5 var(--font-body); }
.wall-empty-reset { min-height: 44px; margin-top: 10px !important; padding: 0 18px !important; color: var(--wall-ground) !important; background: var(--wall-warm); border: 0; font: 700 12px var(--font-body) !important; letter-spacing: .12em; text-transform: uppercase; }
.wall-footnote { max-width: 60ch; margin: clamp(56px, 9vw, 128px) 0 0; padding-top: 18px; border-top: 1px solid var(--wall-hair); color: var(--wall-muted); font: 500 13px/1.6 var(--font-body); }
.wall-credits-link { display: none; min-height: 44px; padding: 0 !important; color: var(--wall-warm) !important; background: none; border: 0; font: 700 13px var(--font-body) !important; text-decoration: underline; text-underline-offset: 3px; }
.wall[data-from="title"] .wall-credits-link { display: block; margin-top: 4px !important; }
.wall-credits-link:hover { color: var(--yellow) !important; }
.credits-wall-link { padding: 0; color: inherit; background: none; border: 0; border-bottom: 2px solid currentColor; font: 700 inherit; cursor: pointer; min-height: 32px; }

@media (max-width: 900px) { .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) and (orientation: portrait) {
  .wall-featured { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .wall-tools { flex-direction: column; align-items: stretch; }
  .wall-search { flex: none; max-width: none; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .wall-masthead { padding-top: 6px; }
  .wall-title { font-size: clamp(64px, 26vh, 120px); }
  .wall-featured { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
  .wall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
::view-transition-group(wall-portrait) { animation-duration: 480ms; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  .wall[open], .wall-featured, .wall-tile { animation: none; }
  .wall *, .wall *::before { transition-duration: 0s !important; }
  .wall-tile:hover .creator-plate > *, .wall-featured:hover .creator-plate > * { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .wall-close { background: var(--wall-raise); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) {
  .wall { --wall-muted: var(--wall-warm); --wall-hair: var(--wall-warm); }
  .wall-close { background: var(--wall-ground); backdrop-filter: none; }
}
