@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Varela+Round&display=swap");

:root {
  color-scheme: dark;
  --bg: #040200;
  --loader-bg: #000000;
  --panel: #1d1b19;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --font-content: "Varela Round", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html,
body {
  margin: 0;
  background: var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-content);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html.is-page-loading,
body.is-page-loading,
.app.is-page-loading {
  background: var(--loader-bg) !important;
  background-color: var(--loader-bg) !important;
  background-image: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.app {
  min-height: 100vh;
  background: var(--bg);
  background-color: var(--bg);
}

.fullscreen-loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  min-height: 100vh;
  width: 100vw;
  background: var(--loader-bg) !important;
  background-color: var(--loader-bg) !important;
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  overflow: hidden;
}

.fullscreen-loader-backdrop {
  position: fixed;
  inset: 0;
  background: var(--loader-bg) !important;
  z-index: 0;
}

.fullscreen-loader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fullscreen-loader-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.fullscreen-loader-progress {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.fullscreen-loader-progress.is-visible {
  opacity: 1;
}

.fullscreen-loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0.35;
  transform: translateY(0);
  animation: loader-dot-bounce 0.9s ease-in-out infinite;
}

.fullscreen-loader-dot:nth-child(2) {
  animation-delay: 0.12s;
}

.fullscreen-loader-dot:nth-child(3) {
  animation-delay: 0.24s;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 2, 0, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.top-header-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  min-height: 64px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-header-logo {
  height: 38px;
  width: auto;
}

.download-app-button {
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: linear-gradient(to bottom, #a6a7fd, #898afc);
  color: #141319;
  font-family: var(--font-content);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  touch-action: manipulation;
}

.post-main {
  display: flex;
  justify-content: center;
  padding: 10px 0 22px;
}

.post-card {
  width: 100%;
  max-width: 470px;
}

.post-card-header {
  padding: 10px 12px;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar-link {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  touch-action: pan-y;
}

.avatar-shell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #494949;
}

.author-handle {
  font-size: 16px; /* TextStyles.smaller.bold */
  font-weight: 700;
}

.author-handle-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: pan-y;
}

.post-media-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  border: 0;
  padding: 0;
  background: var(--panel);
  touch-action: pan-y;
}

.post-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-media-premium-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(218, 165, 32, 0.5);
  z-index: 3;
}

.post-media-premium-badge {
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
}

.post-actions {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.interaction {
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  touch-action: pan-y;
}

.interaction-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.2;
}

.interaction-count {
  font-size: 16px; /* TextStyles.smaller.bold */
  line-height: 1;
  font-weight: 700;
}

.post-caption {
  margin: 0;
  padding: 0 12px;
  font-size: 16px; /* TextStyles.smaller */
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
}

.caption-handle {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: pan-y;
  color: #ffffff;
}

.caption-mention {
  border: 0;
  background: transparent;
  color: #8cc5ff;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: pan-y;
}

.post-time {
  margin: 8px 0 0;
  padding: 0 12px;
  font-size: 14px; /* TextStyles.extraSmall */
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
}

.page-state-wrap {
  padding: 36px 10px;
  display: flex;
  justify-content: center;
}

.page-state {
  width: 100%;
  max-width: 470px;
  border-radius: 12px;
  padding: 20px;
  background: var(--panel);
  text-align: center;
}

.page-state-title {
  margin: 0;
  font-size: 22px;
}

.page-state-text {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.4;
}

.js-sheen-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.42) 45%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translateX(-140%);
  animation: sheen-slide 1.9s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.js-sheen-image {
  opacity: 0;
  transition: opacity 180ms ease-in-out;
}

.js-sheen-shell.is-loaded::before {
  animation: none;
  opacity: 0;
}

.js-sheen-shell.is-loaded .js-sheen-image {
  opacity: 1;
}

@keyframes sheen-slide {
  to {
    transform: translateX(140%);
  }
}

@keyframes loader-dot-bounce {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.homepage-body {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  background-color: var(--bg);
}

.homepage-app {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background: transparent;
  background-color: transparent;
}

.homepage-bg-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

.homepage-post-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  align-items: center;
  padding: 0;
}

.homepage-app.is-page-loading .homepage-post-main {
  visibility: hidden;
}

.homepage-post-container {
  width: 100%;
  max-width: 470px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  background-color: var(--bg);
  box-shadow: none;
  padding: 8px 0;
}

.homepage-inline-download {
  margin-left: auto;
}

.homepage-author-row {
  width: 100%;
}

.homepage-footer-links-row {
  margin-top: 10px;
  padding: 0 12px 12px;
  display: flex;
  justify-content: flex-start;
}

.homepage-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.homepage-footer-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.homepage-footer-link:hover,
.homepage-footer-link:focus-visible {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: underline;
}
