:root {
  color-scheme: dark;
  --bg: #050807;
  --panel: #0c1210;
  --panel-2: #111a16;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4fbf4;
  --muted: #9ba9a0;
  --soft: #d8eadc;
  --accent: #86f28b;
  --accent-2: #ffcf67;
  --danger: #ff7a90;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(circle at 18% 0%, rgba(134, 242, 139, 0.13), transparent 31rem),
    linear-gradient(135deg, #050807 0%, #101410 48%, #060908 100%);
  color: var(--text);
  letter-spacing: 0;
}

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

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

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

.auth-screen {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 18px;
  overflow: hidden;
}

.auth-visual {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 7, 0.12), #050807 74%);
}

.auth-photo-stack {
  position: absolute;
  inset: 0;
}

.auth-photo-stack img {
  position: absolute;
  width: 58vw;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
  animation: drift 9s ease-in-out infinite alternate;
}

.auth-photo-stack img:nth-child(1) {
  top: 5%;
  left: -10%;
  transform: rotate(-10deg);
}

.auth-photo-stack img:nth-child(2) {
  top: 9%;
  right: -12%;
  transform: rotate(9deg);
  animation-delay: -2s;
}

.auth-photo-stack img:nth-child(3) {
  top: 23%;
  left: 23%;
  transform: rotate(2deg);
  animation-delay: -5s;
}

@keyframes drift {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -18px;
  }
}

.auth-panel {
  position: relative;
  z-index: 1;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(9, 14, 12, 0.76);
  backdrop-filter: blur(24px);
  border-radius: 32px;
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.eyebrow,
.topbar p,
.explore-hero p,
.taste-card p,
.detail-title p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0;
  font-size: clamp(3.3rem, 20vw, 6.5rem);
  line-height: 0.9;
}

.auth-copy {
  max-width: 28rem;
  color: var(--soft);
  font-size: 1.1rem;
  line-height: 1.45;
}

.auth-actions,
.live-actions {
  display: grid;
  gap: 10px;
}

.primary,
.secondary,
.quiet-action {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 850;
}

.primary {
  background: var(--accent);
  color: #061007;
}

.secondary,
.quiet-action {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.taste-preview {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}

.taste-preview span,
small,
.mini-meter span {
  color: var(--muted);
}

.app-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  padding: 16px 14px 94px;
  animation: rise 420ms ease both;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 14px;
  background: linear-gradient(180deg, rgba(5, 8, 7, 0.96) 65%, rgba(5, 8, 7, 0));
}

.topbar h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.avatar-button,
.story,
.user-row,
.person-row > button:first-child {
  background: transparent;
  padding: 0;
}

.avatar-button img,
.story img,
.user-row img,
.person-row img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72px;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 16px;
  scrollbar-width: none;
}

.story {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--soft);
}

.story span {
  font-size: 0.76rem;
}

.live-dot {
  min-height: 70px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 122, 144, 0.85), rgba(255, 207, 103, 0.75));
  color: #170909;
  align-content: center;
}

.match-banner,
.cred-card,
.taste-card,
.explore-hero,
.reputation-board,
.rules-list,
.composer,
.people-panel {
  border: 1px solid var(--line);
  background: rgba(13, 20, 17, 0.72);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.match-banner {
  display: grid;
  gap: 5px;
  padding: 16px;
  margin-bottom: 14px;
}

.match-banner span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.post {
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 11, 0.88);
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.post.featured {
  box-shadow: 0 26px 80px rgba(72, 171, 92, 0.14);
}

.media-wrap {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.media-wrap img,
.detail-hero img,
.live-room > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-wrap img {
  position: absolute;
  inset: 0;
  transition: scale 500ms ease;
}

.post:hover .media-wrap img {
  scale: 1.035;
}

.media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.media-badges,
.play-chip {
  position: absolute;
  z-index: 1;
}

.media-badges {
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.media-badges span,
.tag-row span,
.badge-cloud span,
.mood-tags button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: var(--soft);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.74rem;
  font-weight: 800;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  min-width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #081009;
  font-weight: 900;
}

.post-body {
  padding: 15px;
}

.post-head,
.action-row,
.detail-top,
.profile-stats,
.section-head,
.person-row,
.tabs,
.stepper,
.live-overlay header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.user-row,
.person-row > button:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-width: 0;
}

.user-row span,
.person-row span {
  display: grid;
}

.score-ring,
.cred-orb {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071108;
  background: conic-gradient(var(--accent), var(--accent-2), var(--accent));
  font-weight: 950;
}

.score-ring {
  width: 50px;
  height: 50px;
}

.post-title {
  display: grid;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  text-align: left;
  background: transparent;
}

.post-title span {
  font-size: 1.45rem;
  font-weight: 920;
}

.review-copy {
  color: var(--soft);
  line-height: 1.45;
}

.tag-row,
.badge-cloud,
.mood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meter-grid,
.slider-stack {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.mini-meter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  overflow: hidden;
  padding-bottom: 10px;
}

.mini-meter i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--value), rgba(255, 255, 255, 0.1) var(--value));
}

.action-row {
  overflow-x: auto;
  scrollbar-width: none;
}

.action-row button,
.tabs button,
.stepper button,
.person-row > button:last-child,
.notif,
.strain-row,
.detail-top button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.action-row .hot,
.tabs .active,
.stepper .active,
.person-row .following {
  background: rgba(134, 242, 139, 0.18);
  color: var(--accent);
}

.bottom-nav {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 520px;
  margin: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(9, 14, 12, 0.86);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 50px;
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
}

.bottom-nav .active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.search-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.search-bar input,
label input,
label textarea,
label select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.explore-hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  margin: 14px 0;
}

.explore-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  opacity: 0.72;
}

.explore-hero div {
  position: absolute;
  inset: auto 16px 16px;
}

.explore-hero h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 0.98;
}

.strain-list,
.notif-list,
.comment-section,
.terp-section {
  display: grid;
  gap: 10px;
}

.strain-row,
.notif {
  width: 100%;
  height: auto;
  min-height: 66px;
  justify-content: space-between;
  display: flex;
  align-items: center;
  text-align: left;
  border-radius: 20px;
}

.strain-row span,
.notif b {
  display: grid;
  min-width: 0;
}

.strain-row i {
  color: var(--accent-2);
  font-style: normal;
}

.people-panel {
  margin-top: 14px;
  padding: 14px;
}

.person-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.person-row:first-of-type {
  border-top: 0;
}

.detail-top {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 12px 0;
  background: rgba(5, 8, 7, 0.9);
}

.detail-hero {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 34px;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

.detail-title {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.detail-title h1 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 0.95;
}

.cred-card,
.taste-card,
.reputation-board,
.rules-list {
  margin-top: 14px;
  padding: 16px;
}

.cred-card div {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
}

.cred-card > i {
  display: block;
  height: 8px;
  margin: 14px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--value), rgba(255, 255, 255, 0.1) var(--value));
}

.terp-section,
.comment-section {
  margin-top: 14px;
  padding: 4px;
}

.comment-section p,
.rules-list p {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
}

.profile-hero {
  padding: 28px 16px 18px;
  text-align: center;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 12px;
  border-radius: 34px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-hero h1 {
  margin: 0;
  font-size: 2.4rem;
}

.profile-hero p {
  color: var(--muted);
}

.profile-stats {
  margin: 20px 0;
}

.profile-stats span {
  display: grid;
  flex: 1;
  gap: 4px;
  color: var(--muted);
}

.profile-stats b {
  color: var(--text);
  font-size: 1.4rem;
}

.badge-cloud {
  justify-content: center;
  padding: 0 10px;
}

.composer {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.upload-zone {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.upload-zone img {
  width: 96px;
  height: 108px;
  border-radius: 18px;
  object-fit: cover;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

label input,
label textarea,
label select {
  min-height: 48px;
  padding: 0 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

label textarea {
  min-height: 110px;
  padding: 13px;
  resize: vertical;
}

.notif {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  border-radius: 20px;
}

.notif span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #071108;
  font-weight: 900;
}

.reputation-board {
  text-align: center;
}

.cred-orb {
  width: 136px;
  height: 136px;
  margin: 10px auto;
  font-size: 3.2rem;
}

.tabs {
  margin-bottom: 14px;
}

.live-room {
  position: fixed;
  inset: 0;
  background: #000;
}

.live-room > img {
  position: absolute;
  inset: 0;
}

.live-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  padding: 18px 16px 96px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 42%, rgba(0, 0, 0, 0.82));
}

.live-overlay header button,
.live-actions button {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.15);
}

.live-title h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 0.92;
}

.chat-stack {
  display: grid;
  gap: 8px;
}

.chat-stack p {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
}

.toast {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 88px;
  z-index: 30;
  max-width: 420px;
  margin: auto;
  padding: 13px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #061007;
  text-align: center;
  font-weight: 900;
  box-shadow: var(--shadow);
  animation: rise 220ms ease both;
}

.rail {
  display: none;
}

@media (min-width: 820px) {
  .app-shell {
    grid-template-columns: 240px minmax(390px, 520px) 240px;
    align-items: stretch;
    justify-content: center;
    gap: 26px;
    padding: 22px;
  }

  .phone-frame {
    min-height: calc(100svh - 44px);
    max-height: calc(100svh - 44px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 38px;
    background: rgba(5, 8, 7, 0.78);
    box-shadow: var(--shadow);
  }

  .bottom-nav {
    display: none;
  }

  .rail {
    position: sticky;
    top: 22px;
    display: grid;
    align-self: start;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(10, 15, 13, 0.78);
    backdrop-filter: blur(18px);
  }

  .brand-mark {
    margin-bottom: 10px;
    background: transparent;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 950;
  }

  .rail-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 16px;
    background: transparent;
    color: var(--muted);
  }

  .rail-link.active {
    background: rgba(134, 242, 139, 0.14);
    color: var(--accent);
  }

  .auth-screen {
    grid-template-columns: 1fr minmax(360px, 560px);
    align-items: center;
    padding: 54px;
  }

  .auth-panel {
    grid-column: 2;
  }

  .auth-photo-stack img:nth-child(1) {
    left: 6%;
  }

  .auth-photo-stack img:nth-child(2) {
    right: 38%;
  }

  .auth-photo-stack img:nth-child(3) {
    left: 33%;
  }
}
