:root {
  --bg: #05070a;
  --panel: rgba(8, 11, 16, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f9ff;
  --muted: #aab5c7;
  --soft: #dce4f2;
  --accent: #41e88e;
  --blue: #72a4ff;
  --bad: #ff6570;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --feed-height: 100vh;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #05070a;
  color: var(--text);
}

@supports (height: 100dvh) {
  :root {
    --feed-height: 100dvh;
  }
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr minmax(11rem, 18rem) 1fr;
  align-items: start;
  gap: 1rem;
  padding: 0.78rem clamp(0.8rem, 3vw, 2rem);
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  width: fit-content;
  color: #fff;
  font-weight: 900;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 16px rgba(0, 0, 0, 0.7);
}

.feed-picker {
  justify-self: center;
  width: 100%;
}

.feed-picker select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 0;
  padding: 0.25rem 0.3rem;
  background: transparent;
  color: #fff;
  text-align: center;
  text-align-last: center;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0 0 12px rgba(0, 0, 0, 0.9);
}

.feed-picker option {
  background: #080b10;
  color: #fff;
}

.top-actions {
  justify-self: end;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.submit-link,
.me-button {
  display: grid;
  place-items: center;
  min-width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.68rem;
  background: rgba(5, 7, 10, 0.42);
  color: #fff;
  font-weight: 900;
  text-shadow: 0 1px 2px #000;
  backdrop-filter: blur(16px);
}

.submit-link {
  padding: 0 0.82rem;
}

.me-button {
  width: 2.65rem;
  background: #f7f9ff;
  color: #05070a;
  text-shadow: none;
}

.profile-glyph {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.profile-glyph::before,
.profile-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #05070a;
}

.profile-glyph::before {
  top: 0.05rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
}

.profile-glyph::after {
  bottom: 0.05rem;
  width: 1.05rem;
  height: 0.58rem;
  border-radius: 0.5rem 0.5rem 0.25rem 0.25rem;
}

.screen {
  min-height: var(--feed-height);
}

.feed-screen {
  position: relative;
  height: var(--feed-height);
  overflow: hidden;
}

.feed-shell {
  width: min(100vw, 540px);
  height: var(--feed-height);
  margin: 0 auto;
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
  background: #05070a;
  box-shadow: var(--shadow);
}

.feed-stack {
  height: var(--feed-height);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.feed-stack::-webkit-scrollbar,
.project-pages::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  height: var(--feed-height);
  min-height: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #080c12;
  isolation: isolate;
}

.project-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.42), rgba(5, 7, 10, 0.36) 34%, rgba(5, 7, 10, 0.84) 100%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.55), rgba(5, 7, 10, 0.08));
}

.project-pages {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.project-page {
  position: relative;
  display: flex;
  height: var(--feed-height);
  min-height: 0;
  overflow: hidden;
  scroll-snap-align: start;
  padding: 4.9rem 4.7rem 1.2rem 1.15rem;
}

.project-page-inner {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  height: calc(var(--feed-height) - 6.1rem);
  min-height: 0;
  width: 100%;
}

.project-title {
  max-width: 25rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.8rem, 7vw, 3.3rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.tagline {
  max-width: 28rem;
  margin: 0.75rem auto 0;
  color: var(--soft);
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.45;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.88);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.visit-row {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
}

.visit-button,
.primary-button {
  border: 0;
  border-radius: 0.72rem;
  padding: 0.86rem 1.05rem;
  background: var(--accent);
  color: #06110b;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(65, 232, 142, 0.22);
}

.need-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.6rem;
  padding: 0.45rem 0.58rem;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  text-shadow: 0 1px 2px #000;
  backdrop-filter: blur(12px);
}

.owner-row {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-top: 0.85rem;
}

.avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.avatar {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0.82rem;
  color: #05070a;
  background: linear-gradient(135deg, #ffffff, #aeb8c9);
  font-weight: 950;
  overflow: hidden;
}

.avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-button {
  border: 0;
  padding: 0;
  background: transparent;
}

.follow-toggle {
  position: absolute;
  right: -0.4rem;
  bottom: -0.4rem;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid #05070a;
  border-radius: 0.42rem;
  background: #fff;
  color: #05070a;
  font-weight: 950;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.follow-toggle.followed {
  background: var(--accent);
}

.follow-toggle.pop {
  animation: check-pop 520ms cubic-bezier(0.2, 1.7, 0.3, 1);
}

@keyframes check-pop {
  0% {
    transform: scale(0.72) rotate(-12deg);
  }
  52% {
    transform: scale(1.38) rotate(8deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.owner-meta strong {
  display: block;
}

.owner-meta span,
.muted {
  color: var(--muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.meta-block {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.65rem;
  padding: 0.62rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.meta-block span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.meta-block strong {
  display: block;
  margin-top: 0.2rem;
  color: #fff;
  font-size: clamp(0.78rem, 2.6vw, 0.95rem);
  overflow-wrap: anywhere;
}

.action-rail {
  position: absolute;
  right: 0.62rem;
  bottom: 8.2rem;
  display: grid;
  gap: 0.6rem;
  z-index: 4;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 3.18rem;
  min-height: 3.18rem;
  border: 1px solid var(--line);
  border-radius: 0.82rem;
  background: rgba(5, 7, 10, 0.58);
  color: var(--text);
  backdrop-filter: blur(16px);
}

.icon-button svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.icon-button span {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.icon-button.active[data-kind="up"],
.icon-button[data-kind="up"]:hover {
  color: var(--accent);
}

.icon-button.active[data-kind="down"],
.icon-button[data-kind="down"]:hover {
  color: var(--bad);
}

.page-dots {
  position: absolute;
  left: 50%;
  bottom: 0.62rem;
  display: flex;
  gap: 0.35rem;
  transform: translateX(-50%);
  z-index: 4;
}

.page-dots span {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.page-dots span.active {
  width: 1.2rem;
  background: #fff;
}

.detail-panel {
  align-self: center;
  width: 100%;
  max-height: calc(var(--feed-height) - 6.1rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.2rem;
  background: rgba(5, 7, 10, 0.64);
  backdrop-filter: blur(20px);
}

.detail-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.45rem;
}

.detail-panel p {
  color: var(--soft);
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.onboarding-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.onboarding-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 0;
}

.desktop-nav {
  position: fixed;
  z-index: 22;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.78rem;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 950;
  text-shadow: 0 1px 2px #000;
  backdrop-filter: blur(14px);
}

.desktop-nav-up {
  top: 3.8rem;
  left: 50%;
  transform: translateX(-50%);
}

.desktop-nav-down {
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.desktop-nav-left {
  top: 50%;
  left: calc(50% - min(50vw, 270px) - 3.8rem);
  transform: translateY(-50%);
}

.desktop-nav-right {
  top: 50%;
  right: calc(50% - min(50vw, 270px) - 3.8rem);
  transform: translateY(-50%);
}

.app-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(65, 232, 142, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(114, 164, 255, 0.13), transparent 24rem),
    linear-gradient(145deg, #05070a, #0a0f16 52%, #05070a);
}

.submit-screen,
.profile-screen {
  display: flex;
  align-items: center;
  padding: 6rem clamp(1rem, 4vw, 3rem) 3rem;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h1,
.profile-name {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.project-form,
.profile-card,
.comment-panel {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(12, 16, 23, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.project-form {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--soft);
  font-weight: 750;
}

label.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.7rem;
  padding: 0.82rem 0.9rem;
  background: #080c12;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

#formStatus {
  margin: 0;
  color: var(--accent);
}

.profile-card {
  overflow: hidden;
}

.profile-header {
  height: 15rem;
  background-size: cover;
  background-position: center;
}

.profile-main {
  display: grid;
  justify-items: center;
  padding: 0 1.25rem 1.25rem;
  text-align: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  margin-top: -3.5rem;
  border: 4px solid #0b0f16;
  border-radius: 1.35rem;
  background: #fff;
  color: #05070a;
  font-size: 2rem;
  font-weight: 950;
  overflow: hidden;
}

.profile-handle {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.profile-url {
  margin-top: 0.8rem;
  color: var(--accent);
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-tab {
  border: 0;
  padding: 0.95rem;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.profile-tab.active {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--accent);
}

.profile-tab-panel {
  padding: 1.1rem;
}

.profile-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.85rem;
}

.profile-project {
  min-height: 10rem;
  display: flex;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 0.78rem;
  padding: 0.85rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.profile-project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.profile-project strong {
  position: relative;
  z-index: 1;
}

.profile-project-stats span {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.42rem;
  padding: 0.22rem 0.38rem;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
}

.profile-project-stats {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 850;
  text-shadow: 0 1px 3px #000;
}

.upload-row input[type="file"] {
  padding: 0.72rem;
  background: rgba(65, 232, 142, 0.08);
  border-style: dashed;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.7rem;
}

.stat-block {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
}

.stat-block span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.stat-block strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 1.35rem;
}

.comment-drawer {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: end;
  background: rgba(0, 0, 0, 0.42);
}

.comment-drawer.open {
  display: flex;
}

.comment-panel {
  width: min(540px, 100%);
  max-height: 78vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1rem;
  border-radius: 1rem 1rem 0 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.comment-header h2 {
  margin: 0;
}

.comment-list {
  overflow: auto;
  padding: 0.85rem 0;
}

.comment-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
}

.comment-item strong {
  display: block;
}

.comment-item p {
  margin: 0.35rem 0 0;
  color: var(--soft);
}

.comment-form {
  display: grid;
  gap: 0.7rem;
}

.ghost-button {
  border: 1px solid var(--line);
  border-radius: 0.62rem;
  padding: 0.62rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
}

.confetti {
  position: fixed;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 0.12rem;
  pointer-events: none;
  z-index: 80;
  animation: confetti-flight 700ms ease-out forwards;
}

@keyframes confetti-flight {
  to {
    transform: translate(var(--x), var(--y)) rotate(460deg);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    font-size: 0.9rem;
  }

  .project-page {
    padding-right: 4.55rem;
  }

  .desktop-nav {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

body.feed-active {
  overflow: hidden;
}

.brand {
  border: 0;
  background: transparent;
  padding: 0;
}

.app-view {
  display: none;
}

.app-view.active {
  display: flex;
}

#feedView.app-view.active {
  display: block;
}

.submit-link {
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.action-rail {
  bottom: 6.4rem;
}

.profile-main {
  position: relative;
}

.profile-bio {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: var(--soft);
  line-height: 1.5;
}

.profile-edit-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.profile-logout-button {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.profile-editor {
  border-top: 1px solid var(--line);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.profile-tab {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.profile-tab span {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  background: rgba(65, 232, 142, 0.16);
  color: var(--accent);
}

.profile-project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
}

.profile-project {
  width: 100%;
  border: 0;
  border-radius: 0;
  color: #fff;
  text-align: left;
}

.profile-project-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem;
}

.profile-project-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-projects {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
}

.comment-panel {
  max-height: 86vh;
}

.comment-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-avatar {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  background: #fff;
  color: #05070a;
  font-size: 0.82rem;
  font-weight: 950;
}

.comment-body {
  min-width: 0;
}

.comment-form {
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.comment-actions button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.comment-actions button.active {
  color: var(--accent);
}

.comment-replies {
  margin-top: 0.6rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.comment-sticker {
  display: inline-flex;
  margin-top: 0.5rem;
  border: 1px solid rgba(65, 232, 142, 0.35);
  border-radius: 0.65rem;
  padding: 0.45rem 0.6rem;
  background: rgba(65, 232, 142, 0.14);
  color: #eafff2;
  font-weight: 950;
}

.reply-context {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  border-radius: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.86rem;
}

.reply-context button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 850;
}

.sticker-tray {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.sticker-tray button {
  flex: 0 0 auto;
  border: 1px solid rgba(65, 232, 142, 0.35);
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: rgba(65, 232, 142, 0.12);
  color: #fff;
  font-weight: 900;
}

.comment-input-bar {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.comment-input-bar input {
  border-radius: 999px;
  padding: 0.78rem 1rem;
}

.comment-tool,
.comment-send {
  display: grid;
  place-items: center;
  min-width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 900;
}

.comment-send {
  border: 0;
  background: var(--accent);
  color: #06110b;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding-top: 1rem;
}

.share-options a,
.share-options button {
  display: grid;
  place-items: center;
  min-height: 3.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.submit-screen {
  justify-content: center;
  padding: 5rem clamp(0.7rem, 3vw, 2rem) 1.25rem;
}

.project-stepper {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(90vw, 980px);
  height: min(70vh, 720px);
  min-height: 34rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(12, 16, 23, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.stepper-header,
.stepper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.stepper-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.stepper-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.25rem);
}

.stepper-body {
  min-height: 0;
  overflow: auto;
  padding: 1rem;
}

.step-panel {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.step-panel.active {
  display: grid;
}

.step-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.step-buttons button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 900;
}

.step-buttons button.active {
  background: var(--accent);
  color: #06110b;
}

.inline-action {
  align-self: end;
  width: fit-content;
}

.detail-panel h2:not(:first-of-type),
.detail-panel h3 {
  margin-top: 1rem;
}

.media-page-panel {
  display: grid;
  gap: 0.85rem;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.media-feature {
  min-height: 0;
}

.media-large,
.media-thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0;
  background: #05070a;
  color: #fff;
}

.media-large {
  width: 100%;
  height: min(36vh, 20rem);
  height: min(36dvh, 20rem);
  min-height: 0;
}

.media-large img,
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.media-thumb {
  flex: 0 0 5.2rem;
  height: 4rem;
}

.video-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: rgba(65, 232, 142, 0.12);
  font-weight: 900;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.74);
}

.media-modal[hidden] {
  display: none;
}

.media-modal-content {
  display: grid;
  place-items: center;
  width: min(90vw, 1100px);
  height: min(90vh, 820px);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #05070a;
  overflow: hidden;
}

.media-modal-content img,
.media-modal-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-close,
.media-cycle {
  position: fixed;
  z-index: 91;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 950;
}

.media-close {
  top: 1rem;
  right: 1rem;
}

.media-prev {
  left: 1rem;
  top: 50%;
}

.media-next {
  right: 1rem;
  top: 50%;
}

@media (max-width: 760px) {
  .project-stepper {
    width: 94vw;
    height: 78vh;
    min-height: 0;
  }

  .step-panel {
    grid-template-columns: 1fr;
  }

  .stepper-footer {
    align-items: stretch;
    flex-wrap: wrap;
  }

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

.promoted-card {
  outline: 3px solid rgba(255, 214, 92, 0.82);
  outline-offset: -3px;
}

.profile-project-stats {
  display: flex;
  gap: 0.32rem;
  align-items: center;
  justify-items: initial;
}

.profile-image-edit,
.profile-image-promote,
.profile-project-credits {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.profile-image-edit {
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.38rem 0.55rem;
}

.profile-image-promote {
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.45rem 0.65rem;
}

.profile-image-promote.disabled {
  opacity: 0.45;
}

.profile-project-credits {
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  padding: 0.4rem 0.55rem;
  white-space: nowrap;
}

.profile-credit-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding: 0.9rem;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.auth-gate[hidden] {
  display: none;
}

.auth-card {
  display: grid;
  gap: 0.85rem;
  width: min(92vw, 28rem);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.2rem;
  background: rgba(12, 16, 23, 0.96);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0;
}

.terms-card {
  width: min(92vw, 44rem);
  max-height: 86vh;
}

.terms-content {
  max-height: 52vh;
  overflow: auto;
  display: grid;
  gap: 0.7rem;
  padding-right: 0.35rem;
  color: var(--soft);
  line-height: 1.48;
}

.terms-content p,
.terms-date {
  margin: 0;
}

.terms-date {
  color: var(--muted);
  font-weight: 800;
}

.terms-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.credit-packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.credit-packages button {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 900;
}

.credit-packages button:disabled {
  opacity: 0.35;
}

.credit-packages.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
