:root {
  color-scheme: dark;
  --ink: #f8f7f2;
  --muted: #b8b2a7;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(18, 20, 25, 0.84);
  --panel-strong: #17191f;
  --accent: #ff5a7a;
  --accent-2: #40d6b0;
  --accent-3: #f2c94c;
  --deep: #0b0d12;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

body[data-theme="light"] {
  color-scheme: light;
  --ink: #15151a;
  --muted: #615c55;
  --line: rgba(15, 17, 22, 0.14);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --deep: #f3f1eb;
  --shadow: 0 24px 70px rgba(80, 70, 54, 0.18);
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 90, 122, 0.18), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(64, 214, 176, 0.16), transparent 24%),
    linear-gradient(135deg, #fffaf2, #ecf7f0 55%, #fff3f6);
}

body[data-theme="light"] .top-bar,
body[data-theme="light"] .bottom-nav {
  background: rgba(243, 241, 235, 0.94);
}

body[data-theme="light"] .nav-item.active,
body[data-theme="light"] .icon-button,
body[data-theme="light"] .action-button {
  background: rgba(15, 17, 22, 0.08);
}

body[data-theme="light"] input,
body[data-theme="light"] textarea,
body[data-theme="light"] select,
body[data-theme="light"] .file-picker,
body[data-theme="light"] .secondary-button,
body[data-theme="light"] .tag-button {
  background: rgba(15, 17, 22, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 90, 122, 0.22), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(64, 214, 176, 0.2), transparent 24%),
    linear-gradient(135deg, #15151a, #090b10 55%, #171a16);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--deep);
  border: 0;
  box-shadow: none;
}

.app-screen {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.top-bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 12px;
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(18px);
  z-index: 3;
}

.top-bar h1,
.profile-card h2,
.modal-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.top-bar h1 {
  font-size: 24px;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.icon-button,
.close-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.has-dot {
  position: relative;
}

.has-dot::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.notification-count {
  display: none;
}

#notification-count:not(:empty) {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
  background: rgba(11, 13, 18, 0.88);
  z-index: 2;
}

.chip,
.secondary-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  min-height: 36px;
  padding: 0 14px;
  white-space: nowrap;
}

.settings-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.full-width {
  width: 100%;
}

.chip.active {
  background: var(--ink);
  color: #111318;
  border-color: var(--ink);
}

.view {
  min-height: 0;
  overflow-y: auto;
  display: none;
  padding: 0 14px 22px;
}

.view.active {
  display: block;
}

.feed {
  display: grid;
  gap: 18px;
  width: min(100%, 520px);
  margin: 0 auto;
  padding-bottom: 12px;
}

.post {
  position: relative;
  height: clamp(300px, 62vh, 520px);
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
  isolation: isolate;
}

.post img,
.post video,
.post .audio-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.04);
  background: #111318;
}

.post video {
  background: #111318;
}

.audio-art {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 20%, rgba(64, 214, 176, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(255, 90, 122, 0.75), rgba(17, 19, 24, 0.96));
}

.audio-art strong {
  font-size: 28px;
}

.audio-art audio {
  width: min(100%, 320px);
}

.media-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.boost-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  margin-left: 6px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(242, 201, 76, 0.18);
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 900;
}

.post::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), transparent 44%, rgba(0, 0, 0, 0.18));
  z-index: 1;
}

.post-content {
  position: absolute;
  left: 12px;
  right: 72px;
  bottom: 14px;
  z-index: 2;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(11, 13, 18, 0.86);
  backdrop-filter: blur(14px);
}

.post-content h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: 0;
}

.post-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.42;
}

.post-actions {
  position: absolute;
  right: 12px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.action-button {
  width: 48px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.action-button span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
}

.action-symbol {
  font-size: 22px;
  font-weight: 900;
}

.action-symbol span {
  font-size: 10px;
}

.action-button.saved {
  background: rgba(255, 90, 122, 0.86);
}

.action-button.boosted {
  background: rgba(242, 201, 76, 0.86);
  color: #15120a;
}

.creator-row,
.creator-meta,
.artist-card,
.message-card,
.job-card,
.admin-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.creator-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.creator-meta button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.play-state {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.44);
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
}

.post.is-playing .play-state {
  background: rgba(64, 214, 176, 0.88);
  color: #08100d;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.creator-row strong,
.artist-card strong,
.message-card strong,
.job-card strong {
  display: block;
}

.creator-row span,
.artist-card span,
.message-card span,
.job-card span,
.admin-list span,
.profile-main p,
.profile-stats span {
  color: var(--muted);
  font-size: 13px;
}

.primary-button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-button.compact {
  min-height: 38px;
  padding: 0 14px;
}

.search-panel,
.creation-form,
.commission-summary,
.profile-card,
.admin-grid article,
.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-panel,
.creation-form,
.profile-card,
.modal-card {
  padding: 14px;
}

.search-box,
.creation-form label,
.modal-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
}

select option {
  background: var(--panel-strong);
  color: var(--ink);
}

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

.skill-tags,
.artist-list,
.message-list,
.board,
.admin-list {
  display: grid;
  gap: 10px;
}

.skill-tags {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
}

.tag-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.artist-list,
.message-list,
.board,
.admin-list {
  margin-top: 14px;
}

.artist-card,
.message-card,
.job-card,
.admin-list article {
  padding: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-card {
  cursor: pointer;
}

.upload-preview {
  display: grid;
  gap: 12px;
}

.preview-art {
  aspect-ratio: 4 / 5;
  max-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 90, 122, 0.8), transparent 42%),
    linear-gradient(45deg, transparent, rgba(64, 214, 176, 0.9)),
    url("https://images.unsplash.com/photo-1452860606245-08befc0ff44b?auto=format&fit=crop&w=900&q=80") center / cover;
}

.preview-art.has-upload {
  display: grid;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.preview-art img,
.preview-art video,
.preview-art .audio-art {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.preview-art .audio-art {
  min-height: 220px;
}

.creation-form {
  gap: 14px;
  display: grid;
}

.file-picker {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 900;
  overflow: hidden;
}

.file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.media-options {
  display: flex;
  gap: 8px;
}

.toggle-row,
.commission-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  display: block;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  transition: transform 180ms ease;
}

.switch input:checked + span {
  background: var(--accent-2);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.commission-summary {
  padding: 14px;
}

.commission-summary strong {
  font-size: 26px;
}

.profile-hero {
  height: 150px;
  margin: -14px -14px 0;
  border-radius: 8px 8px 0 0;
  background: url("https://images.unsplash.com/photo-1541961017774-22349e4a1262?auto=format&fit=crop&w=900&q=80") center / cover;
}

.profile-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: -28px;
  align-items: end;
}

.profile-main img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--panel-strong);
}

.profile-main p {
  margin: 6px 0 0;
  line-height: 1.4;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.profile-stats span {
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.profile-stats strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.crown-strip {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.crown-badge {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 201, 76, 0.34);
  border-radius: 8px;
  background: rgba(242, 201, 76, 0.13);
}

.crown-badge strong {
  color: var(--accent-3);
}

.crown-badge span {
  color: var(--muted);
  font-size: 13px;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.rating-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.rating-panel strong {
  display: block;
}

.rating-panel span {
  color: var(--muted);
  font-size: 13px;
}

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.rating-buttons button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(242, 201, 76, 0.14);
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 900;
}

.follow-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--deep);
  font-weight: 900;
}

.follow-button.following {
  background: rgba(64, 214, 176, 0.16);
  color: var(--accent-2);
}

.portfolio-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.portfolio-tile {
  border: 0;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-strong);
  cursor: pointer;
}

.portfolio-grid img,
.portfolio-grid video,
.portfolio-grid .audio-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.profile-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px 0 0;
  scrollbar-width: none;
}

.commission-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.commission-section {
  display: none;
}

.commission-section.active {
  display: block;
}

.social-list {
  display: none;
  gap: 10px;
  margin-top: 14px;
}

.social-list.active {
  display: grid;
}

.saved-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.saved-post-card {
  position: relative;
  height: clamp(180px, 30vw, 260px);
  min-height: 180px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #222;
  color: white;
  text-align: left;
}

.saved-post-card img,
.saved-post-card video,
.saved-post-card .audio-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111318;
}

.saved-post-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  font-weight: 900;
}

.saved-post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 54%);
}

.chat-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.chat-header h2 {
  margin: 0;
  font-size: 20px;
}

.chat-thread {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  line-height: 1.35;
}

.bubble.me {
  justify-self: end;
  background: var(--accent);
  color: white;
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.brief-specs {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.delete-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.brief-specs div {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.delete-list div {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.brief-specs strong {
  display: block;
  margin-bottom: 3px;
}

.delete-list strong {
  display: block;
  margin-bottom: 3px;
}

.delete-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.post-detail-card img,
.post-detail-card video,
.post-detail-card .audio-art {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin: 10px 0;
}

.post-detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.comment-thread {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.comment-row {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.comment-row strong {
  display: block;
  margin-bottom: 4px;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.boost-summary {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.boost-summary div {
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.boost-summary strong {
  display: block;
  margin-bottom: 3px;
}

.boost-pick-list {
  display: grid;
  gap: 8px;
}

.boost-pick {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  text-align: left;
}

.boost-pick img,
.boost-pick video,
.boost-pick .audio-art {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.boost-pick strong {
  color: var(--accent-3);
}

.boost-pick.boosted {
  opacity: 0.72;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.admin-grid article {
  padding: 14px;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.setting-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.profile-edit-card {
  grid-template-columns: 1fr;
}

.inline-edit-form {
  display: grid;
  gap: 8px;
}

.file-action {
  position: relative;
  overflow: hidden;
}

.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.setting-card strong {
  display: block;
}

.setting-card span {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(64, 214, 176, 0.16);
  color: var(--accent-2) !important;
  font-weight: 900;
}

.admin-grid strong {
  display: block;
  font-size: 26px;
}

.bottom-nav {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 0.7fr 1.18fr 0.88fr 0.88fr;
  gap: 4px;
  padding: 9px 12px 12px;
  border-top: 1px solid var(--line);
  background: rgba(11, 13, 18, 0.96);
}

.nav-item {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.events-hero,
.event-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.events-hero {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 16px;
  background:
    linear-gradient(to top, rgba(11, 13, 18, 0.9), rgba(11, 13, 18, 0.2)),
    url("https://images.unsplash.com/photo-1513364776144-60967b0f800f?auto=format&fit=crop&w=900&q=80") center / cover;
}

.events-hero h2,
.event-section h3 {
  margin: 0;
}

.events-hero span,
.event-copy {
  color: var(--muted);
  line-height: 1.45;
}

.tournament-countdown {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(242, 201, 76, 0.12);
  color: var(--accent-3);
  font-weight: 900;
}

.event-section {
  margin-top: 12px;
  padding: 14px;
}

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

.challenge-grid,
.crown-grid {
  display: grid;
  gap: 10px;
}

.challenge-card,
.crown-card,
.leader-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 12px;
}

.challenge-card strong,
.crown-card strong,
.leader-row strong {
  display: block;
}

.challenge-card span,
.crown-card span,
.leader-row span {
  color: var(--muted);
  font-size: 13px;
}

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

.leader-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(242, 201, 76, 0.16);
  color: var(--accent-3);
  font-weight: 900;
}

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

.nav-item.create {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 28px;
  line-height: 1;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
  z-index: 10;
}

.modal.open {
  display: grid;
}

.modal.auth-gate {
  place-items: stretch;
  padding: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 90, 122, 0.2), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(64, 214, 176, 0.16), transparent 26%),
    var(--deep);
}

.modal.auth-gate .modal-card {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  align-content: center;
  justify-self: stretch;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(24px, 7vw, 72px);
}

.modal.auth-gate .stack-form,
.modal.auth-gate .modal-copy,
.modal.auth-gate .policy-links,
.modal.auth-gate h2,
.modal.auth-gate .eyebrow {
  width: min(100%, 480px);
  margin-left: auto;
  margin-right: auto;
}

.modal-card {
  position: relative;
  width: min(100%, 410px);
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.stack-form {
  display: grid;
  gap: 12px;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.policy-links,
.setting-actions,
.blocked-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-links a {
  color: var(--accent-2);
  font-weight: 900;
}

.danger {
  border-color: rgba(255, 90, 122, 0.42);
  color: #ff8fa4;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.empty-state span {
  color: var(--muted);
}

.close-button {
  position: absolute;
  right: 12px;
  top: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120px);
  width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8f7f2;
  color: #111318;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
  z-index: 20;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 720px) {
  .phone-shell {
    border-radius: 0;
  }

  #feed-view {
    padding-inline: 24px;
  }

  .feed {
    width: min(100%, 1120px);
    gap: 22px;
  }

  .post {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(320px, 1fr);
    height: auto;
    min-height: 360px;
    background: var(--panel);
    border: 1px solid var(--line);
  }

  .post::after {
    display: none;
  }

  .post img,
  .post video,
  .post .audio-art {
    position: static;
    width: 100%;
    height: 100%;
    min-height: 360px;
    max-height: 520px;
    object-fit: contain;
    background: #111318;
  }

  .post-content {
    position: static;
    display: grid;
    align-content: center;
    min-height: 280px;
    padding: 24px 24px 16px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .post-content h2 {
    font-size: 26px;
  }

  .post-content p {
    color: var(--muted);
    font-size: 16px;
  }

  .post-actions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-self: end;
    gap: 10px;
    padding: 0 24px 24px;
    grid-column: 2;
  }

  .action-button {
    width: auto;
    min-width: 76px;
    min-height: 46px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.07);
  }

  .play-state {
    left: 18px;
    top: 18px;
  }
}

@media (max-width: 430px) {
  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 0;
    border: 0;
  }

  .post {
    height: min(500px, calc(100vh - 210px));
    min-height: 300px;
  }
}
