.tag-wall-page-shell {
  width: min(calc(100% - 24px), 1060px);
  margin: 0 auto;
  padding: 18px 0 70px;
}

.tag-wall-page-hero,
.tag-wall-page-footer {
  border: 1px solid var(--border, #5b3518);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 148, 31, 0.10),
      transparent 45%
    ),
    linear-gradient(
      180deg,
      rgba(31, 23, 17, 0.985),
      rgba(18, 14, 11, 0.985)
    );
  box-shadow: var(--shadow, 0 18px 50px rgba(0, 0, 0, 0.35));
}

.tag-wall-page-hero {
  padding: 18px;
}

.tag-wall-page-brand {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.tag-wall-page-brand img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 3px solid var(--orange, #ff941f);
  border-radius: 20px;
  background: #fff8ef;
}

.tag-wall-page-brand h1 {
  margin: 4px 0 5px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.tag-wall-page-brand p {
  margin: 0;
  color: var(--muted, #cdbeb1);
  font-size: 16px;
  line-height: 1.45;
}

.tag-wall-page-brand .tag-wall-kindness {
  margin-top: 7px;
  color: var(--orange-2, #ffb15c);
  font-size: 12px;
  font-weight: 850;
}

.tag-wall-page-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.tag-wall-page-nav a {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 10px;
  color: var(--text, #fff6ed);
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.tag-wall-page-nav a:hover {
  border-color: var(--orange, #ff941f);
  color: var(--orange-2, #ffb15c);
}

.tag-wall-standalone {
  margin-top: 12px;
  padding: clamp(16px, 3vw, 28px);
}

.tag-wall-standalone .tag-wall-title {
  font-size: clamp(27px, 4vw, 42px);
}

.tag-wall-standalone .tag-wall-list {
  max-height: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
}

.tag-wall-standalone .tag-wall-message {
  min-height: 112px;
  align-content: space-between;
}

.tag-wall-page-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 18px;
}

.tag-wall-page-footer strong {
  color: var(--orange-2, #ffb15c);
  letter-spacing: 0.08em;
}

.tag-wall-page-footer span {
  color: var(--muted, #cdbeb1);
}

.sphire-random-tag {
  position: relative;
  display: grid;
  gap: 6px;
  width: min(100%, 760px);
  margin: 14px auto;
  padding: 14px 18px 14px 22px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 15px;
  color: var(--text, #fff6ed);
  background:
    linear-gradient(
      135deg,
      rgba(255, 148, 31, 0.10),
      rgba(22, 15, 11, 0.98) 42%
    );
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
  text-decoration: none;
  opacity: 0.78;
  transform: rotate(-0.28deg);
  transition:
    opacity 150ms ease,
    transform 150ms ease,
    border-color 150ms ease;
}

.sphire-random-tag:nth-of-type(even) {
  transform: rotate(0.22deg);
}

.sphire-random-tag::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 8px;
  width: 4px;
  border-radius: 999px;
  background: var(--orange, #ff941f);
}

.sphire-random-tag:hover {
  border-color: var(--orange, #ff941f);
  opacity: 1;
  transform: rotate(0deg) translateY(-1px);
}

.sphire-random-tag.is-loaded {
  opacity: 1;
}

.sphire-random-tag-label {
  color: var(--orange-2, #ffb15c);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sphire-random-tag blockquote {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sphire-random-tag-name {
  color: var(--muted, #cdbeb1);
  font-size: 10px;
  font-weight: 850;
}

#beatBpmFilterPanel.is-near-native-filters {
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid var(--border, #5b3518);
  border-radius: 12px;
  background: rgba(255, 148, 31, 0.035);
}

.has-nearby-bpm-filter {
  margin-bottom: 0 !important;
}

@media (max-width: 760px) {
  .tag-wall-page-brand {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .tag-wall-page-brand img {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .tag-wall-page-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-wall-standalone .tag-wall-list {
    grid-template-columns: 1fr;
  }

  .tag-wall-page-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .tag-wall-page-brand {
    grid-template-columns: 1fr;
  }

  .tag-wall-page-brand img {
    width: 78px;
    height: 78px;
  }

  .sphire-random-tag {
    width: 100%;
    border-radius: 12px;
  }
}


/* CLICKABLE TAG WALL HEADER V1 */
.tag-wall-home-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 16px;
  transition:
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.tag-wall-home-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 148, 31, 0.035);
  box-shadow: 0 0 0 8px rgba(255, 148, 31, 0.035);
}

.tag-wall-home-link:focus-visible {
  outline: 3px solid rgba(255, 177, 92, 0.55);
  outline-offset: 7px;
}
