:root {
  color-scheme: dark;
  --bg: #090808;
  --panel: #111013;
  --panel-2: #181519;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f0ea;
  --muted: rgba(245, 240, 234, 0.6);
  --accent: #ff2b8a;
  --acid: #f0e64c;
  --shadow: rgba(0, 0, 0, 0.56);
  --radius: 22px;
  --max-mobile: 420px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 43, 138, 0.15), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 43, 138, 0.08), transparent 20%),
    linear-gradient(180deg, #0d0b0d 0%, #070707 100%);
  font-family: "Arial Narrow", "Helvetica Neue", "Inter", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

body.is-upload-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100dvh;
}

.screen__content {
  width: min(var(--max-mobile), calc(100vw - 24px));
  margin: 0 auto;
  padding: 14px 0 calc(32px + env(safe-area-inset-bottom));
}

.screen--wall,
.screen--search {
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: calc(58px + env(safe-area-inset-top));
  padding:
    calc(10px + env(safe-area-inset-top))
    12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(8, 7, 8, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.topbar-spacer {
  height: 1px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand__mark {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 43, 138, 0.35);
}

.brand__text {
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.topbar__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  cursor: pointer;
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.topbar__icon:hover,
.topbar__icon:active,
.topbar__action:active,
.topbar__action:hover {
  background: rgba(255, 43, 138, 0.14);
  border-color: rgba(255, 43, 138, 0.45);
}

.topbar__action.is-disabled {
  opacity: 0.55;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero {
  padding: 10px 2px 2px;
}

.home-stage {
  display: grid;
  min-height: calc(100dvh - 59px - env(safe-area-inset-top));
  grid-template-rows: auto minmax(0, 1fr);
}

.hero--wall-first {
  padding: 14px 12px 8px;
}

.hero h1,
.placeholder-page h1,
.success-page h1,
.detail-panel h1,
.archive-teaser h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.08em;
  line-height: 0.92;
  font-weight: 900;
  font-stretch: condensed;
}

.hero h1 {
  text-transform: none;
  margin-top: 8px;
  font-size: clamp(4.4rem, 15vw, 5.7rem);
  text-shadow: 0 4px 0 rgba(255, 43, 138, 0.16);
}

.hero__lede {
  margin: 10px 0 0;
  max-width: 18ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero__note {
  margin: 10px 0 0;
  max-width: 20ch;
  color: rgba(245, 240, 234, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.hero__actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.hero__cta {
  width: 100%;
}

.hero__secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 900;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 36px var(--shadow);
  backdrop-filter: blur(18px);
}

.home-stage .wall-shell {
  align-self: stretch;
  min-height: 0;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.home-stage .wall {
  min-height: 100%;
}

.upload-form {
  display: grid;
  gap: 12px;
  padding: 16px 14px 18px;
  position: relative;
  z-index: 1;
}

.upload-form__file {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.dropzone {
  width: 100%;
  min-height: 128px;
  padding: 18px 16px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  display: grid;
  gap: 6px;
  place-items: center;
  text-align: center;
  cursor: pointer;
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: rgba(255, 43, 138, 0.12);
}

.dropzone__kicker {
  display: block;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
}

.dropzone__helper {
  color: var(--muted);
  font-size: 0.92rem;
}

.dropzone__hint {
  color: rgba(245, 240, 234, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.share-card input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 240, 234, 0.34);
}

.field input:focus,
.field textarea:focus,
.share-card input:focus {
  border-color: rgba(255, 43, 138, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 43, 138, 0.16);
}

.field__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.field__count {
  color: rgba(245, 240, 234, 0.44);
  white-space: nowrap;
}

.field-error,
.form-status {
  margin: 0;
  min-height: 18px;
  color: var(--accent);
  font-size: 0.84rem;
  line-height: 1.2;
}

.cta {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(255, 43, 138, 0.22);
  cursor: pointer;
}

.cta:active {
  transform: translateY(1px);
}

.cta[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.scroll-cue {
  margin: 20px auto 0;
  width: min(var(--max-mobile), calc(100vw - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.scroll-cue__arrow {
  color: var(--accent);
  font-size: 1.4rem;
}

.archive-teaser {
  width: min(var(--max-mobile), calc(100vw - 24px));
  margin: 16px auto 0;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.archive-teaser__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.archive-teaser__head a {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 900;
}

.archive-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.archive-teaser .tile {
  min-height: 100px;
  aspect-ratio: 1;
  border-radius: 14px;
}

.wall-shell {
  width: 100%;
  padding: 0 0 calc(32px + env(safe-area-inset-bottom));
}

.wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #151215;
}

.tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(1.05) contrast(1.02);
}

.tile__overlay {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.76));
}

.tile__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 7px;
  font-size: 0.72rem;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  word-break: break-word;
}

.tile--placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 43, 138, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tile--placeholder .tile__caption {
  color: rgba(245, 240, 234, 0.48);
  letter-spacing: 0.16em;
  font-size: 0.54rem;
}

.tile--tone-1 {
  background:
    linear-gradient(135deg, rgba(255, 43, 138, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
}

.tile--tone-2 {
  background:
    linear-gradient(135deg, rgba(240, 230, 76, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
}

.tile--tone-3 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 43, 138, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
}

.tile--tone-4 {
  background:
    linear-gradient(135deg, rgba(110, 196, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
}

.tile--tone-5 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 43, 138, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12));
}

.wall-empty {
  grid-column: 1 / -1;
  padding: 22px 16px 24px;
  background: var(--panel);
}

.wall-empty h2,
.archive-teaser h2 {
  font-size: 2.5rem;
  line-height: 0.95;
}

.wall-loading {
  width: 100%;
  padding: 14px 16px 18px;
  text-align: center;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #080707;
}

.wall-loading__blocks {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 8px;
}

.wall-loading__blocks span {
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.wall-sentinel {
  height: 1px;
}

.upload-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: start center;
  padding:
    calc(env(safe-area-inset-top) + 8px)
    12px
    calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.upload-layer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.upload-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.66);
  opacity: 0;
  transition: opacity 180ms ease;
  cursor: pointer;
}

.upload-layer.is-open .upload-backdrop {
  opacity: 1;
}

.upload-console {
  position: relative;
  width: min(560px, calc(100vw - 24px));
  max-height: 85dvh;
  transform: translateY(-18px);
  transition: transform 220ms ease;
  overflow: hidden;
}

.upload-layer.is-open .upload-console {
  transform: translateY(0);
}

.upload-console__sheet {
  background: var(--panel);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62);
  max-height: 85dvh;
  overflow: auto;
  overscroll-behavior: contain;
}

.upload-console__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 0;
}

.upload-console__title {
  margin: 2px 0 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
}

.upload-console__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.detail-page,
.success-page,
.placeholder-page {
  width: min(var(--max-mobile), calc(100vw - 24px));
  margin: 0 auto;
  padding: 10px 0 34px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.detail-media {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: #151215;
  border: 1px solid var(--border);
}

.detail-media__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  opacity: 1;
  transition: opacity 180ms ease;
}

.detail-media__placeholder.is-loaded {
  opacity: 0;
}

.detail-media__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.detail-panel,
.share-card {
  margin-top: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 18px 36px var(--shadow);
}

.detail-panel {
  padding: 14px;
}

.detail-meta {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}

.detail-meta__avatar {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-meta__body {
  min-width: 0;
}

.detail-meta__name,
.detail-meta__line {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.detail-meta__name {
  color: var(--accent);
  font-weight: 900;
}

.detail-meta__line {
  color: var(--muted);
  margin-top: 3px;
}

.icon-button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 900;
}

.icon-button--ghost {
  color: rgba(255, 255, 255, 0.45);
}

.detail-quote {
  margin: 18px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-size: 2rem;
  line-height: 0.95;
  font-style: italic;
  letter-spacing: -0.06em;
}

.detail-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--acid);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.88rem;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.detail-stats div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.detail-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}

.success-page {
  text-align: center;
}

.success-mark {
  width: 110px;
  height: 110px;
  margin: 18px auto 10px;
  position: relative;
}

.success-mark span:first-child {
  position: absolute;
  inset: 10px 0 0 10px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(5deg);
}

.success-mark span:last-child {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
  box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.08);
}

.success-page h1 {
  margin-top: 12px;
  font-size: clamp(3rem, 12vw, 4.8rem);
}

.success-page__lede {
  margin: 12px auto 0;
  max-width: 24ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.success-page__primary,
.success-page__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.success-page__primary {
  background: #fff;
  color: #111;
}

.success-page__secondary {
  background: rgba(255, 255, 255, 0.03);
}

.share-card {
  margin-top: 20px;
  padding: 14px;
}

.share-card p {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 900;
}

.share-card__row {
  display: grid;
  gap: 10px;
}

.share-card__row button {
  min-height: 48px;
  border: 1px solid rgba(255, 43, 138, 0.45);
  background: rgba(255, 43, 138, 0.14);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.placeholder-page {
  padding-top: 18px;
  text-align: center;
}

.placeholder-page h1 {
  margin-top: 10px;
  font-size: clamp(2.4rem, 11vw, 4.2rem);
}

.placeholder-page p:last-child {
  color: var(--muted);
}

.archive-teaser__empty p:last-child,
.placeholder-page p:last-child,
.hero__lede,
.hero__note,
.detail-link,
.field-error,
.form-status {
  word-break: break-word;
}

@media (min-width: 768px) {
  .screen__content,
  .scroll-cue,
  .archive-teaser,
  .detail-page,
  .success-page,
  .placeholder-page {
    width: min(480px, calc(100vw - 48px));
  }

  .wall {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .home-stage {
    min-height: calc(100dvh - 59px - env(safe-area-inset-top));
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: 1fr;
    align-items: stretch;
  }

  .hero--wall-first {
    padding: 22px 16px 24px 24px;
    align-self: center;
  }

  .home-stage .wall-shell {
    padding: 8px 10px 0 0;
  }

  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, max-content));
    align-items: center;
    justify-content: start;
  }

  .hero__cta {
    width: auto;
    min-width: 174px;
  }

  .hero__secondary {
    min-width: 180px;
  }
}

@media (min-width: 1024px) {
  .wall {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }

  .tile--wide {
    grid-column: span 2;
  }

  .tile--tall {
    grid-row: span 2;
  }

  .screen--wall .wall-shell {
    padding-inline: 0;
  }

  .upload-console {
    width: min(560px, 100vw - 48px);
  }
}

@media (min-width: 1280px) {
  .screen__content,
  .scroll-cue,
  .archive-teaser,
  .detail-page,
  .success-page,
  .placeholder-page {
    width: min(520px, calc(100vw - 64px));
  }
}
