:root {
  color-scheme: dark;
  --bg: #000000;
  --muted: #7c7a83;
  --white-80: rgba(255, 255, 255, 0.8);
  --white-50: rgba(255, 255, 255, 0.5);
  --toolbar-button: rgba(255, 255, 255, 0.2);
  --tabbar-bg: rgba(255, 255, 255, 0.09);
  --safe-top: max(env(safe-area-inset-top, 0px), 24px);
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), 12px);
  --edge-padding: clamp(16px, 4vw, 24px);
  --toolbar-height: 44px;
  --toolbar-button-size: clamp(32px, 8.5vw, 40px);
  --toolbar-icon-size: clamp(16px, 4.2vw, 18px);
  --content-gap: clamp(8px, 1.2vh, 12px);
  --tabbar-side-padding: clamp(24px, 8vw, 36px);
  --font-display: "Alimama ShuHeiTi", "Alibaba Sans", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-ui: "PingFang SC", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-number: "Montserrat", "SF Pro Display", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  font-family: var(--font-ui);
}

body {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

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

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

.viewport {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  background: var(--bg);
}

.phone {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.status-safe-area {
  height: var(--safe-top);
  flex-shrink: 0;
}

.toolbar {
  height: var(--toolbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge-padding);
  flex-shrink: 0;
}

.icon-button {
  width: var(--toolbar-button-size);
  height: var(--toolbar-button-size);
  border-radius: 999px;
  background: var(--toolbar-button);
  display: grid;
  place-items: center;
}

.icon-button img {
  width: var(--toolbar-icon-size);
  height: var(--toolbar-icon-size);
}

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

.brand-logo {
  width: clamp(28px, 7vw, 32px);
  height: clamp(28px, 7vw, 32px);
}

.brand-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(15px, 3.8vw, 17px);
  font-weight: 700;
  line-height: 1.3;
}

.app-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.screen {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.screen[hidden] {
  display: none !important;
}

.screen-treasure {
  display: flex;
  flex-direction: column;
}

.screen-publish {
  display: flex;
  flex-direction: column;
  background: #000000;
  color: #ffffff;
  padding: 0;
  overflow: hidden;
}

.publish-camera-layout {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 120ms ease, transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.publish-camera-layout.is-launching {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
}

.publish-camera-layout[hidden],
.publish-match-layout[hidden] {
  display: none !important;
}

.publish-camera-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 18px;
}

.publish-coin-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 20px;
  background: #45431e;
}

.publish-coin-value {
  color: #ffe4a4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.publish-camera-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.publish-camera-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  background: #171717;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.publish-camera-frame.is-voice-mode {
  background: #50557b;
  box-shadow: none;
}

.publish-camera-video,
.publish-camera-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.publish-camera-video[hidden],
.publish-camera-photo[hidden],
.publish-flight-card[hidden],
.publish-camera-empty[hidden] {
  display: none !important;
}

.publish-camera-video,
.publish-camera-photo,
.publish-flight-card,
.publish-camera-empty,
.publish-voice-stage {
  position: absolute;
  inset: 0;
}

.publish-camera-video {
  background: #0b0b0b;
}

.publish-flight-card {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-origin: center center;
  pointer-events: none;
  opacity: 0;
  z-index: 6;
  will-change: transform, opacity, filter;
}

.publish-flight-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.publish-camera-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.publish-voice-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  background: transparent;
}

.publish-voice-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.publish-voice-empty[hidden] {
  display: none !important;
}

.publish-voice-stage-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 120px;
  width: min(100%, 220px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.publish-voice-stage.has-content .publish-voice-stage-wave {
  opacity: 1;
  transform: translateY(0);
}

.publish-voice-stage.is-recording .publish-voice-stage-wave span {
  animation: publish-voice-bar 960ms ease-in-out infinite alternate;
}

.publish-voice-stage.is-recording .publish-voice-stage-wave span:nth-child(2) { animation-delay: 90ms; }
.publish-voice-stage.is-recording .publish-voice-stage-wave span:nth-child(3) { animation-delay: 180ms; }
.publish-voice-stage.is-recording .publish-voice-stage-wave span:nth-child(4) { animation-delay: 240ms; }
.publish-voice-stage.is-recording .publish-voice-stage-wave span:nth-child(5) { animation-delay: 140ms; }
.publish-voice-stage.is-recording .publish-voice-stage-wave span:nth-child(6) { animation-delay: 320ms; }
.publish-voice-stage.is-recording .publish-voice-stage-wave span:nth-child(7) { animation-delay: 200ms; }

.publish-voice-stage-wave span {
  display: block;
  flex: 1 1 0;
  min-width: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 240, 156, 0.96) 0%, rgba(178, 241, 255, 0.92) 100%);
  transform-origin: center bottom;
}

.publish-voice-stage-wave span:nth-child(1) { height: 32px; }
.publish-voice-stage-wave span:nth-child(2) { height: 58px; }
.publish-voice-stage-wave span:nth-child(3) { height: 42px; }
.publish-voice-stage-wave span:nth-child(4) { height: 88px; }
.publish-voice-stage-wave span:nth-child(5) { height: 54px; }
.publish-voice-stage-wave span:nth-child(6) { height: 68px; }
.publish-voice-stage-wave span:nth-child(7) { height: 38px; }

.publish-voice-stage-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(100%, 260px);
  min-height: 86px;
  margin-top: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.publish-voice-stage-status {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
}

.publish-voice-stage.has-content .publish-voice-stage-meta {
  opacity: 1;
  transform: translateY(0);
}

.publish-voice-stage-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.publish-voice-stage-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 32px;
}

.publish-voice-stage-duration {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.publish-camera-empty-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  max-width: 280px;
}

.publish-camera-empty-button {
  min-width: 124px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
}

.publish-camera-empty-button[hidden] {
  display: none !important;
}

.publish-camera-input {
  display: none;
}

.publish-camera-actions {
  width: 100%;
  padding: 16px 12px 0;
  display: grid;
  min-height: 72px;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.publish-entry-switch {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0;
  margin-top: 0;
  padding: 4px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.publish-entry-tab {
  min-width: 56px;
  height: 32px;
  padding: 0 12px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
  transition: background 180ms ease, color 180ms ease;
}

.publish-entry-tab.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.publish-camera-controls,
.publish-result-actions {
  grid-area: 1 / 1;
  width: 100%;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

.publish-camera-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.publish-voice-controls,
.publish-voice-result-actions {
  grid-area: 1 / 1;
  width: 100%;
  box-sizing: border-box;
}

.publish-camera-controls[hidden],
.publish-result-actions[hidden],
.publish-voice-controls[hidden],
.publish-voice-result-actions[hidden],
.publish-entry-switch[hidden] {
  display: none !important;
}

.publish-voice-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 72px;
}

.publish-voice-button {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  background: #ffffff;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.publish-voice-button:active {
  transform: scale(0.97);
}

.publish-voice-button.is-recording {
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 0 32px rgba(255, 177, 159, 0.28);
}

.publish-voice-button-icon {
  width: 32px;
  height: 32px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 140ms ease, transform 140ms ease;
}

.publish-voice-button-stop {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 6px;
  background: #e75151;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 140ms ease, transform 140ms ease;
}

.publish-voice-button-stop[hidden] {
  display: none !important;
}

.publish-voice-button.is-recording .publish-voice-button-icon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
}

.publish-voice-result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
}

.publish-result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
}

.publish-camera-actions.is-result .publish-camera-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.96);
}

.publish-camera-actions.is-result .publish-result-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.publish-camera-actions.is-publishing .publish-result-actions {
  opacity: 0.5;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
}

.publish-camera-side {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.publish-camera-side-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.publish-camera-shutter {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.publish-camera-shutter-core {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #ffffff;
}

.publish-result-button {
  height: 52px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
  min-width: 0;
  white-space: nowrap;
}

.publish-result-button:active {
  transform: scale(0.97);
}

.publish-result-button:disabled {
  opacity: 0.72;
}

.publish-result-button-secondary {
  flex: 0 0 auto;
  min-width: 96px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.publish-result-button-primary {
  flex: 1 1 auto;
  min-width: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f3ece3 100%);
  color: #111111;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.16);
}

.publish-toast {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -18px) scale(0.96);
  min-width: 132px;
  max-width: calc(100% - 48px);
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
  z-index: 5;
}

.publish-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.publish-toast[hidden] {
  display: none !important;
}

.publish-match-layout {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.publish-match-layout.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.publish-match-top {
  display: grid;
  grid-template-columns: minmax(0, 88px) 1fr minmax(0, 88px);
  align-items: start;
  gap: 8px;
  padding: 0 20px;
}

.publish-match-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.publish-match-thumb-shell {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: #1b1b1b;
  position: relative;
}

.publish-match-thumb-shell.is-mystery {
  background: #353535;
}

.publish-match-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.publish-match-thumb[hidden] {
  display: none !important;
}

.publish-match-thumb-shell.is-mystery.is-rotating .publish-match-thumb {
  animation: publish-match-carousel 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.publish-match-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.publish-match-search-pill {
  align-self: center;
  justify-self: center;
  height: 32px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.publish-match-search-label {
  color: #dfe8f5;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.publish-match-search-arrow {
  width: 12px;
  height: 12px;
  display: block;
}

.publish-match-sheet {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 20px;
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.13);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.publish-match-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.publish-match-heading-icon {
  width: 28px;
  height: 28px;
  display: block;
  opacity: 0.88;
}

.publish-match-heading-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.publish-match-heading-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.publish-match-ellipsis {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.publish-match-ellipsis-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: publish-match-dot 1.05s ease-in-out infinite;
}

.publish-match-ellipsis-dot:nth-child(2) {
  animation-delay: 120ms;
}

.publish-match-ellipsis-dot:nth-child(3) {
  animation-delay: 240ms;
}

.publish-match-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 2px;
}

.publish-match-row {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.publish-match-row.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.publish-match-row-thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.publish-match-row-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.publish-match-row-title {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.publish-match-row-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.2;
}

.publish-match-look {
  flex-shrink: 0;
  min-width: 70px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  line-height: 32px;
  text-align: center;
}

.publish-match-continue {
  flex-shrink: 0;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: #41390f;
  color: #fff09c;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 50px;
  text-align: center;
}

.publish-match-continue:active,
.publish-match-look:active {
  transform: scale(0.98);
}

.screen-square {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  background: #000000;
}

.screen-messages {
  display: flex;
  flex-direction: column;
  background: #000000;
  overflow: hidden;
}

.screen-profile {
  display: flex;
  flex-direction: column;
  background: #000000;
  overflow: hidden;
}

.profile-scroll {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.profile-subtabs {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding: 12px 15px 24px;
  background: rgba(0, 0, 0, 0.96);
}

.profile-subtab {
  justify-self: center;
  min-width: 32px;
  color: #94949f;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.profile-subtab.is-active {
  color: #ffffff;
  font-weight: 600;
}

.profile-subtab-indicator {
  position: absolute;
  left: 0;
  top: 36px;
  width: 32px;
  height: 2px;
  border-radius: 1px;
  background: #ff7300;
  transition: transform 220ms ease, width 220ms ease;
  pointer-events: none;
}

.profile-grid {
  display: flex;
  gap: 7px;
  padding: 0 8px 16px;
  align-items: start;
}

.profile-panel[hidden] {
  display: none !important;
}

.profile-panel.is-active {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 28px;
}

.profile-column {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  flex-direction: column;
  gap: 8px;
}

.profile-card,
.profile-draft-card {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.1);
}

.profile-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 176 / 200;
  object-fit: cover;
}

.profile-card-body {
  padding: 8px 8px 7px;
}

.profile-card-title {
  margin: 0;
  color: #ffffff;
  display: -webkit-box;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
}

.profile-card-user {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.profile-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-card-user-copy {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.profile-card-user-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.profile-card-user-name {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  line-height: 14px;
}

.profile-card .feed-badge {
  flex-shrink: 0;
  transform: scale(0.92);
  transform-origin: left center;
}

.profile-draft-card {
  position: relative;
  min-height: 80px;
  border-radius: 12px;
  isolation: isolate;
}

.profile-draft-image,
.profile-draft-frost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-draft-image {
  object-fit: cover;
}

.profile-draft-frost {
  background: rgba(172, 172, 172, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.profile-draft-content {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.profile-draft-icon {
  width: 20px;
  height: 20px;
}

.profile-draft-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.message-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  padding: 12px 32px 24px;
}

.message-tab {
  justify-self: center;
  color: #94949f;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.message-tab.is-active {
  color: #ffffff;
  font-weight: 600;
}

.message-tab-indicator {
  position: absolute;
  left: 0;
  top: 36px;
  width: 32px;
  height: 2px;
  border-radius: 1px;
  background: #ff7300;
  transition: transform 220ms ease, left 220ms ease;
  pointer-events: none;
}

.message-viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.message-panel {
  width: 100%;
  min-width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.message-list {
  padding: 0 0 16px;
}

.message-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.message-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 16px;
}

.message-chat-button {
  width: fit-content;
  min-width: 64px;
  height: 32px;
  padding: 0 12px;
  border-radius: 35px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  line-height: 12px;
}

.message-thumb {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.message-empty {
  padding: 48px 24px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.screen-detail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000000;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 5;
  overflow: hidden;
}

.screen-detail.is-visible {
  transform: translateX(0);
}

.screen-chat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000000;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 6;
}

.screen-chat.is-visible {
  transform: translateX(0);
}

.phone.is-detail-open .status-safe-area,
.phone.is-detail-open .toolbar,
.phone.is-detail-open .tabbar,
.phone.is-detail-open .app-body {
  display: none;
}

.phone.is-chat-open .status-safe-area,
.phone.is-chat-open .toolbar,
.phone.is-chat-open .tabbar,
.phone.is-chat-open .app-body {
  display: none;
}

.content-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  background: #000000;
  touch-action: pan-y;
}

.content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--content-gap) 0;
  transform-origin: center center;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  contain: layout paint style;
  backface-visibility: hidden;
}

.card-layer {
  position: absolute;
  inset: 0;
}

.content.no-transition {
  transition: none;
}

.card-layer.is-current {
  z-index: 2;
  transform: translate3d(0, 0, 0) scale(1);
}

.card-layer.is-next {
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.94);
}

.card-layer.exit-left {
  transform: translate3d(-104vw, 0, 0) rotate(-6deg) scale(1);
}

.card-layer.exit-right {
  transform: translate3d(104vw, 0, 0) rotate(6deg) scale(1);
}

.card-layer.is-stashed {
  opacity: 0;
  pointer-events: none;
}

.treasure-card {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  --treasure-card-radius: clamp(24px, 6.4vw, 32px);
}

.treasure-card-surface {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--treasure-card-radius);
  clip-path: inset(0 round var(--treasure-card-radius));
  isolation: isolate;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translateZ(0);
}

.treasure-card-frost {
  position: absolute;
  inset: 0;
  background: rgba(172, 172, 172, 0.05);
  -webkit-backdrop-filter: blur(100px);
  backdrop-filter: blur(100px);
}

.treasure-card-lock {
  position: absolute;
  left: 50%;
  top: calc(50% - 12px);
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.treasure-card-lock.is-audio {
  top: calc(50% - 35px);
}

.treasure-card-footer {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.treasure-card-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.treasure-card-user-row .avatar {
  width: 36px;
  height: 36px;
}

.treasure-card-user-row .user-copy {
  gap: 1px;
}

.treasure-card-user-row .user-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.treasure-card-caption {
  margin: 0;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.treasure-prompt {
  width: var(--prompt-size, 26px);
  height: var(--prompt-size, 26px);
  display: grid;
  margin-left: auto;
  place-items: center;
  flex-shrink: 0;
}

.treasure-prompt-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.treasure-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 4px;
  border-radius: 36px;
  background: rgba(0, 0, 0, 0.25);
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.treasure-bubble-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.treasure-bubble-copy {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  white-space: nowrap;
}

.treasure-bubble-main,
.treasure-bubble-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 16px;
}

.treasure-bubble-main {
  color: #ffffff;
}

.treasure-bubble-sub {
  color: rgba(255, 255, 255, 0.7);
}

.treasure-audio-pill {
  position: absolute;
  left: 50%;
  top: calc(50% + 17px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateX(-50%);
}

.treasure-audio-pill span {
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.treasure-audio-icon {
  width: 16px;
  height: 16px;
}

.avatar {
  width: clamp(34px, 9vw, 40px);
  height: clamp(34px, 9vw, 40px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-name {
  overflow: hidden;
  color: var(--white-80);
  font-size: clamp(12px, 3vw, 13px);
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px 1px 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.user-badge img {
  width: 14px;
  height: 14px;
}

.user-badge span {
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
}

.user-badge-female span {
  color: #ff6fad;
}

.user-badge-male span {
  color: #559cff;
}

.user-time {
  color: var(--white-50);
  font-size: clamp(12px, 3vw, 13px);
  line-height: 14px;
}

.divider {
  width: 100%;
  height: 2px;
  background: #000000;
  flex-shrink: 0;
}

.swap-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px 12px 18px;
  border-radius: 58px;
  background: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.swap-button span {
  color: #dfe8f5;
  font-family: var(--font-display);
  font-size: clamp(15px, 3.8vw, 17px);
  font-weight: 700;
  line-height: 1.2;
}

.swap-button img {
  width: 16px;
  height: 16px;
}

.vote-panel {
  display: flex;
  gap: 11px;
  padding: 14px var(--edge-padding);
  flex-shrink: 0;
}

.square-feed {
  padding: 0 16px 16px;
}

.detail-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--safe-top) + 44px);
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px calc(120px + var(--safe-bottom));
  overscroll-behavior: contain;
}

.detail-topbar {
  position: absolute;
  top: var(--safe-top);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0) 100%);
}

.detail-back {
  width: 32px;
  height: 32px;
}

.detail-title {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.detail-topbar-spacer {
  width: 32px;
  height: 32px;
}

.detail-post {
  padding-top: 0;
}

.detail-header {
  padding-top: 12px;
}

.detail-exchange {
  padding-top: 10px;
}

.detail-gallery {
  margin-bottom: 8px;
}

.detail-audio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-audio-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.detail-audio-toggle.is-playing {
  background: rgba(255, 228, 164, 0.18);
  color: #ffe4a4;
}

.detail-audio-wave {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
}

.detail-audio-wave span {
  flex: 1 1 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 240, 156, 0.92) 0%, rgba(178, 241, 255, 0.88) 100%);
}

.detail-audio-wave span:nth-child(1) { height: 14px; }
.detail-audio-wave span:nth-child(2) { height: 24px; }
.detail-audio-wave span:nth-child(3) { height: 18px; }
.detail-audio-wave span:nth-child(4) { height: 30px; }
.detail-audio-wave span:nth-child(5) { height: 22px; }
.detail-audio-wave span:nth-child(6) { height: 16px; }

.detail-audio-duration {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.detail-audio-element {
  display: none;
}

.detail-gallery-image-single {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.detail-gallery-image-single,
.detail-gallery-image-single img {
  border-radius: 12px;
}

.detail-comments {
  padding-top: 12px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 12px 0;
}

.detail-comment-count {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.detail-comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.detail-comment-body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.detail-comment-name {
  overflow: hidden;
  color: #808080;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-comment-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 21px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-comment-time {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 14px;
}

.detail-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-comment-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 16px;
}

.detail-comment-like-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.detail-comment-action.is-active {
  color: #e8579b;
}

.detail-reply-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-reply {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-reply-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-toggle-replies {
  align-self: flex-start;
  color: #9bdbea;
  font-size: 12px;
  line-height: 16px;
}

.detail-bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.detail-bottom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-comment-form {
  flex: 1 1 auto;
}

.detail-input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  padding: 0 14px;
  outline: none;
}

.detail-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.detail-want-button {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #41390f;
  color: #fff09c;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 40px;
}

.detail-manage-shell {
  position: relative;
  flex: 0 0 auto;
}

.detail-manage-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  min-width: 124px;
  flex-direction: column;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(24, 24, 24, 0.96);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-manage-menu[hidden] {
  display: none !important;
}

.detail-manage-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.detail-manage-menu.is-closing {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

.detail-manage-item {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  line-height: 42px;
  text-align: left;
}

.detail-manage-item-danger {
  color: #ff6b6b;
}

.chat-topbar {
  position: absolute;
  top: var(--safe-top);
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0) 100%);
}

.chat-back,
.chat-more {
  width: 32px;
  height: 32px;
}

.chat-title {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.chat-scroll {
  position: absolute;
  top: calc(var(--safe-top) + 44px + 80px);
  left: 0;
  right: 0;
  bottom: calc(58px + var(--safe-bottom));
  overflow-y: auto;
  padding-bottom: 16px;
}

.chat-exchange-bar {
  position: absolute;
  top: calc(var(--safe-top) + 44px);
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 12px;
  background: #0d0d0d;
}

.chat-exchange-col {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 136.5px;
}

.chat-exchange-col.is-self {
  justify-content: flex-end;
}

.chat-exchange-card {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-exchange-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-exchange-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-exchange-col.is-self .chat-exchange-copy {
  align-items: flex-end;
  text-align: right;
}

.chat-exchange-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.chat-exchange-owner {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 18px;
}

.chat-exchange-center {
  width: 78px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-exchange-icon {
  width: 78px;
  height: 44px;
  display: block;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 20px 0;
}

.chat-message {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: flex-start;
}

.chat-message.is-sent {
  justify-content: flex-end;
}

.chat-message.is-sent.is-full-card {
  justify-content: flex-start;
}

.chat-avatar,
.chat-avatar-spacer {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat-card-spacer {
  width: 0;
  height: 40px;
  flex-shrink: 0;
}

.chat-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.chat-bubble {
  width: 283px;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble.is-wide {
  width: 100%;
}

.chat-bubble.is-dark {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.chat-bubble.is-light {
  background: #ffe4be;
  color: #000000;
}

.chat-bubble-title {
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.chat-bubble-title.is-dark {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  color: #000000;
}

.chat-bubble-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-bubble-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-bubble-thumb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-bubble-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-bubble-owned-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
}

.chat-bubble-item-text {
  color: #ffffff;
  font-size: 14px;
  line-height: 22px;
}

.chat-bubble-item-text.is-dark {
  color: #000000;
}

.chat-bubble-divider {
  height: 22px;
  margin-left: 64px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.chat-bubble-divider.is-dark {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.chat-primary-action,
.chat-secondary-action,
.chat-status-action {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.chat-primary-action {
  background: #41390f;
  color: #fff09c;
}

.chat-secondary-action {
  background: #083640;
  color: #b2f1ff;
}

.chat-status-action {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.48);
}

.chat-text-bubble {
  max-width: 248px;
  padding: 9px 12px;
  font-size: 16px;
  line-height: 22px;
  word-break: break-word;
}

.chat-text-bubble.is-sent {
  border-radius: 12px 4px 12px 12px;
  background: #ffe2ba;
  color: #000000;
}

.chat-text-bubble.is-received {
  border-radius: 4px 12px 12px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.chat-system {
  align-self: center;
  color: #75757d;
  font-size: 11px;
  line-height: 20px;
}

.chat-input-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 20px calc(10px + var(--safe-bottom));
}

.chat-input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 10px 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.chat-input {
  flex: 1 1 auto;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  line-height: 22px;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chat-send {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.chat-send img {
  width: 28px;
  height: 28px;
  opacity: 1;
  transition: opacity 180ms ease;
}

.chat-send.is-disabled img {
  opacity: 0.3;
}

.feed-post {
  padding-top: 8px;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.feed-user-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.feed-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-user-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 14px;
}

.feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px 1px 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.feed-badge img {
  width: 14px;
  height: 14px;
}

.feed-badge span {
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
}

.feed-badge-female span {
  color: #ff6fad;
}

.feed-badge-male span {
  color: #559cff;
}

.feed-user-name {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-exchange {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 8px 42px;
}

.feed-exchange-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.feed-exchange-chip {
  width: 28px;
  height: 28px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.feed-exchange-chip-have {
  border: 1.5px solid #ffffff;
  color: #ffffff;
}

.feed-exchange-chip-want {
  border: 1.5px solid #ff8d2f;
  color: #ff8d2f;
}

.feed-exchange-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-gallery {
  position: relative;
  display: flex;
  gap: 3px;
  padding-left: 42px;
}

.feed-gallery-image {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  min-width: 0;
}

.feed-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-gallery-image-left,
.feed-gallery-image-left img {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.feed-gallery-image-right,
.feed-gallery-image-right img {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.feed-swap-pill {
  position: absolute;
  left: calc(50% + 21.5px);
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px 6px 6px;
  border-radius: 58px;
  background: #000000;
  color: #dfe8f5;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.feed-swap-pill img {
  width: 12px;
  height: 12px;
}

.feed-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 8px;
}

.feed-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 180ms ease, color 180ms ease;
}

.feed-action img {
  width: 24px;
  height: 24px;
  transition: transform 220ms ease;
}

.feed-action-icon {
  width: 24px;
  height: 24px;
  transition: transform 220ms ease;
}

.feed-action span {
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.feed-action-dislike.is-active {
  color: #4a9fe8;
}

.feed-action-like.is-active {
  color: #e8579b;
}

.feed-action.is-bouncing img,
.feed-action.is-bouncing .feed-action-icon {
  animation: feed-action-pop 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes feed-action-pop {
  0% {
    transform: scale(0.92) rotate(0deg);
  }

  45% {
    transform: scale(1.18) rotate(-10deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}


.vote-button {
  position: relative;
  flex: 1 1 0;
  height: 58px;
  border-radius: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.25, 1), filter 180ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.vote-yes {
  background: #41390f;
}

.vote-no {
  background: #083640;
}

.vote-button.is-pressed {
  transform: scale(0.965);
  filter: brightness(1.06);
}

.vote-label {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.5vw, 20px);
  font-weight: 700;
  line-height: 1.2;
}

.vote-yes .vote-label {
  color: #fff09c;
}

.vote-no .vote-label {
  color: #b2f1ff;
}

.vote-count {
  position: absolute;
  top: -9px;
  right: 0;
  padding: 3px 8px;
  border-radius: 10px;
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
}

.vote-yes .vote-count {
  background: #f4e490;
  color: #41390f;
}

.vote-no .vote-count {
  background: #9bdbea;
  color: #083640;
}

.tabbar {
  position: relative;
  height: calc(53px + var(--safe-bottom));
  background: var(--tabbar-bg);
  flex-shrink: 0;
}

.tabbar::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: var(--safe-bottom);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.tabbar-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4px var(--tabbar-side-padding) 0;
}

.tabbar-item {
  width: 32px;
  height: 53px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: #7c7a83;
}

.tabbar-icon {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.tabbar-label {
  margin-top: 0;
  font-size: 9px;
  line-height: 13px;
}

.tabbar-item.active {
  color: #ffffff;
}

.publish-modal {
  position: absolute;
  inset: 0;
  z-index: 8;
}

.publish-modal[hidden] {
  display: none !important;
}

.publish-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 240ms ease;
}

.publish-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(56vh, 520px);
  max-height: calc(100dvh - var(--safe-top) - 24px);
  padding: 10px 16px calc(20px + var(--safe-bottom));
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(156, 221, 255, 0.14), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(255, 240, 156, 0.1), transparent 30%),
    rgba(10, 10, 10, 0.96);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
  transform: translateY(104%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.publish-modal.is-open .publish-backdrop {
  opacity: 1;
}

.publish-modal.is-open .publish-sheet {
  transform: translateY(0);
}

.publish-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

.publish-eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publish-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.publish-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.publish-close img {
  width: 16px;
  height: 16px;
}

.publish-close span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
  line-height: 1;
}

.publish-mode-switch {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.publish-mode-chip {
  flex: 1 1 0;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.publish-mode-chip.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}

.publish-body {
  margin-top: 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.publish-panel {
  display: block;
}

.publish-hero {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.publish-hero-voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.publish-orb-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
}

.publish-voice-trigger {
  padding: 0;
}

.publish-orb-ring {
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.publish-orb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff7b5 0%, #f4e490 34%, #41390f 100%);
  box-shadow: 0 14px 32px rgba(244, 228, 144, 0.22);
}

.publish-orb-core {
  position: absolute;
  inset: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.publish-orb-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7b5 0%, #ffd17c 100%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.publish-hero-copy {
  text-align: center;
}

.publish-hero-title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.publish-hero-text {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.6;
}

.publish-voice-meters {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0 12px;
}

.publish-voice-meters span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff09c 0%, #b2f1ff 100%);
  transform-origin: center bottom;
}

.publish-voice-meters span:nth-child(1) { height: 18px; }
.publish-voice-meters span:nth-child(2) { height: 34px; }
.publish-voice-meters span:nth-child(3) { height: 24px; }
.publish-voice-meters span:nth-child(4) { height: 42px; }
.publish-voice-meters span:nth-child(5) { height: 28px; }
.publish-voice-meters span:nth-child(6) { height: 16px; }

.publish-modal.is-recording .publish-orb {
  animation: publish-voice-orb-pulse 1.2s ease-in-out infinite;
}

.publish-modal.is-recording .publish-orb-ring {
  border-color: rgba(255, 240, 156, 0.32);
  transform: scale(1.05);
  opacity: 0.96;
}

.publish-modal.is-recording .publish-orb-dot {
  background: linear-gradient(180deg, #ffb19f 0%, #ff6d52 100%);
  box-shadow: 0 0 18px rgba(255, 109, 82, 0.34);
}

.publish-modal.is-recording .publish-voice-meters span,
.publish-modal.is-recording .publish-sound-wave span {
  animation: publish-voice-bar 960ms ease-in-out infinite alternate;
}

.publish-modal.is-recording .publish-voice-meters span:nth-child(2),
.publish-modal.is-recording .publish-sound-wave span:nth-child(2) {
  animation-delay: 90ms;
}

.publish-modal.is-recording .publish-voice-meters span:nth-child(3),
.publish-modal.is-recording .publish-sound-wave span:nth-child(3) {
  animation-delay: 180ms;
}

.publish-modal.is-recording .publish-voice-meters span:nth-child(4),
.publish-modal.is-recording .publish-sound-wave span:nth-child(4) {
  animation-delay: 240ms;
}

.publish-modal.is-recording .publish-voice-meters span:nth-child(5),
.publish-modal.is-recording .publish-sound-wave span:nth-child(5) {
  animation-delay: 140ms;
}

.publish-modal.is-recording .publish-voice-meters span:nth-child(6),
.publish-modal.is-recording .publish-sound-wave span:nth-child(6) {
  animation-delay: 320ms;
}

.publish-modal.is-recorded .publish-orb-ring {
  border-color: rgba(178, 241, 255, 0.28);
}

.publish-modal.is-recorded .publish-orb-dot {
  background: linear-gradient(180deg, #b2f1ff 0%, #6ccde2 100%);
  box-shadow: 0 0 16px rgba(108, 205, 226, 0.24);
}

.publish-caption-card,
.publish-card,
.publish-sound-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.publish-caption-card {
  margin-top: 14px;
  padding: 14px 16px;
}

.publish-caption-label,
.publish-field-label {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.publish-caption-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
}

.publish-card {
  padding: 16px;
}

.publish-textarea {
  width: 100%;
  min-height: 156px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.7;
}

.publish-textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.publish-helper-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.publish-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publish-tag {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 28px;
}

.publish-counter {
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  line-height: 18px;
}

.publish-hero-sound {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.publish-sound-card {
  padding: 16px;
}

.publish-sound-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 58px;
  margin-bottom: 14px;
}

.publish-sound-wave span {
  flex: 1 1 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #9bdbea 0%, #083640 100%);
  transform-origin: center bottom;
}

.publish-sound-wave span:nth-child(1) { height: 22px; }
.publish-sound-wave span:nth-child(2) { height: 40px; }
.publish-sound-wave span:nth-child(3) { height: 28px; }
.publish-sound-wave span:nth-child(4) { height: 52px; }
.publish-sound-wave span:nth-child(5) { height: 34px; }
.publish-sound-wave span:nth-child(6) { height: 44px; }
.publish-sound-wave span:nth-child(7) { height: 20px; }

.publish-sound-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.publish-sound-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.publish-sound-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.publish-sound-duration {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.2;
}

.publish-upload-actions {
  display: flex;
  gap: 10px;
}

.publish-secondary,
.publish-draft {
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 40px;
}

.publish-draft img {
  width: 18px;
  height: 18px;
}

.publish-secondary-inline {
  flex-shrink: 0;
  min-width: 64px;
}

.publish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-shrink: 0;
}

.publish-submit {
  flex: 1 1 auto;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #41390f 0%, #083640 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 44px;
}

@keyframes publish-voice-bar {
  0% {
    transform: scaleY(0.62);
    opacity: 0.54;
  }

  100% {
    transform: scaleY(1.12);
    opacity: 1;
  }
}

@keyframes publish-match-dot {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0) scale(0.85);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
}

@keyframes publish-match-carousel {
  0% {
    opacity: 0.2;
    transform: scale(0.94);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes publish-voice-orb-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content,
  .vote-button,
  .treasure-bubble {
    transition: none;
    animation: none;
  }
}
