/* Creative Wall — true 128px Kick emote stages */
.wall {
  position: relative;
  min-height: calc(100dvh - var(--nav-h) - var(--bottom-nav-h));
  padding: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.wall-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 8px 4px 16px;
}
.wall-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  color: var(--ink-strong);
  text-wrap: balance;
}
.wall-head p {
  margin: 8px 0 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 15px;
}
.wall-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wall-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.wall-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--tile-accent, #7dd3fc) 18%, transparent), transparent 60%),
    var(--bg-card);
  text-align: left;
  color: inherit;
  padding: 0;
  font: inherit;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s;
  view-transition-name: var(--vt-name, none);
}

.wall-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px 12px;
  min-height: 180px;
  background:
    repeating-conic-gradient(#101218 0% 25%, #0c0d12 0% 50%) 50% 40% / 12px 12px;
}

.wall-emote-128 {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 16px 40px rgba(0, 0, 0, 0.45);
  background: #0a0a0c;
  image-rendering: auto;
}

.wall-chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--hairline);
  font-size: 11px;
  color: var(--ink-soft);
}
.wall-chat-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;
}
.wall-chat-chip .chip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.wall-tile-info {
  position: relative;
  z-index: 2;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 20%, rgba(0, 0, 0, 0.72));
  border-top: 1px solid var(--hairline);
}
.wall-tile-info h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: #fff;
}
.wall-tile-info .count {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wall-tile-stats {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s var(--ease-out), margin 0.3s;
}
.wall-tile-stats dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 10px 0 0;
  font-size: 12px;
}
.wall-tile-stats dt { color: rgba(255, 255, 255, 0.45); }
.wall-tile-stats dd { margin: 0; color: rgba(255, 255, 255, 0.9); }
.wall-palette {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.wall-palette i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wall-tile:hover,
.wall-tile:focus-visible {
  transform: translateY(-3px);
  z-index: 3;
  box-shadow: var(--shadow-glow);
  border-color: color-mix(in srgb, var(--tile-accent, #7dd3fc) 45%, var(--hairline));
}
.wall-tile:hover .wall-tile-stats,
.wall-tile:focus-visible .wall-tile-stats {
  max-height: 240px;
  opacity: 1;
  margin-top: 4px;
}

.wall-activity {
  margin-top: 28px;
  padding: 20px 4px 40px;
}
.wall-activity h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-strong);
  letter-spacing: -0.03em;
}
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--hairline);
  font-size: 13px;
}
.activity-item time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .wall-mosaic {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
  }
  .wall-tile {
    flex: 0 0 min(86vw, 320px);
    scroll-snap-align: center;
    min-height: 320px;
  }
  .wall-tile-stats {
    max-height: 180px;
    opacity: 1;
  }
}
