/* Qoop marketing — custom layer on Tailwind */
:root {
  --lime: #b1f801;
  --ink: #0b0b0b;
  --paper: #f3f1ea;
  --mute: #6a6a66;
  --line: rgba(11, 11, 11, 0.08);
  --glow: rgba(177, 248, 1, 0.42);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.geo-blob {
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  filter: blur(40px);
  pointer-events: none;
}

.device {
  width: 280px;
  height: 572px;
  background: #0a0a0a;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 0 80px var(--glow);
  position: relative;
}

.device-sm { width: 220px; height: 450px; border-radius: 36px; padding: 8px; }

.device-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 4;
}

.device-sm .device-notch { width: 74px; height: 18px; top: 14px; }

.device-screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #070707;
  color: #f5f5f5;
  position: relative;
  font-family: Inter, system-ui, sans-serif;
}

.device-sm .device-screen { border-radius: 28px; }

.feed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 16px 10px;
}

.feed-logo {
  font-weight: 800;
  letter-spacing: -0.08em;
  font-size: 1.15rem;
}

.stories {
  display: flex;
  gap: 10px;
  padding: 0 14px 12px;
  overflow: hidden;
}

.story {
  width: 44px;
  flex-shrink: 0;
  text-align: center;
}

.story i {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #b1f801, #3ee0ff, #8b5cf6, #b1f801);
  padding: 2px;
}

.story i span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111;
}

.story small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  color: #9a9a9a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post {
  margin: 0 12px 12px;
  border-radius: 18px;
  overflow: hidden;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-media {
  height: 168px;
  background:
    radial-gradient(circle at 20% 20%, rgba(177, 248, 1, 0.55), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(62, 224, 255, 0.45), transparent 40%),
    linear-gradient(160deg, #1a1a1a, #0d0d0d);
  position: relative;
}

.post-media.alt {
  background:
    radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.5), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(177, 248, 1, 0.35), transparent 40%),
    linear-gradient(160deg, #161616, #0c0c0c);
}

.post-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 999px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 12px;
  font-size: 11px;
}

.like {
  color: #b1f801;
  font-weight: 600;
}

.clan-head {
  padding: 40px 16px 12px;
}

.clan-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.clan-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; }

.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #121212;
}

.rank-row.me {
  background: rgba(177, 248, 1, 0.1);
  border: 1px solid rgba(177, 248, 1, 0.28);
}

.rank-n {
  width: 22px;
  font-size: 11px;
  font-weight: 700;
  color: #b1f801;
}

.rank-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.quest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
}

.quest {
  background: #121212;
  border-radius: 16px;
  padding: 12px 10px;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.quest b { display: block; font-size: 11px; margin-top: 8px; }
.quest span { display: block; font-size: 9px; color: #8a8a8a; margin-top: 3px; }

.qoin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #141414;
  border: 1px solid rgba(177, 248, 1, 0.25);
  color: #b1f801;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 48px;
  border-radius: 16px;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
}

.tabbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3a;
}

.tabbar i.on { background: #b1f801; width: 18px; border-radius: 6px; }

.profile-cover {
  height: 120px;
  background:
    linear-gradient(135deg, rgba(177, 248, 1, 0.35), rgba(62, 224, 255, 0.25) 45%, rgba(139, 92, 246, 0.4));
}

.profile-av {
  width: 64px;
  height: 64px;
  border-radius: 22%;
  margin: -28px 16px 0;
  border: 3px solid #070707;
  background: #111 url("/logo.png") center / cover;
}

.gallery-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 8vw 28px;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-item {
  scroll-snap-align: center;
  flex-shrink: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.lang-dd { position: relative; }

.lang-dd-btn {
  appearance: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 2.7rem;
  height: 2.1rem;
  cursor: pointer;
}

.lang-dd-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 9rem;
  flex-direction: column;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.lang-dd.is-open .lang-dd-menu { display: flex; }

.lang-dd-menu a {
  color: #555 !important;
  font-size: 0.82rem;
  text-decoration: none !important;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
}

.lang-dd-menu a:hover,
.lang-dd-menu a.is-active {
  color: #111 !important;
  background: #f4f4f0;
}

.nav-open .mobile-panel { display: flex; }

.tour {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tour.is-open { display: flex; }

html.deeplink body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060d18;
  color: #eef3fb;
  padding: 20px;
}
html.deeplink body::before { display: none; }
html.deeplink #site,
html.deeplink #tour { display: none !important; }
html:not(.deeplink) #deeplink { display: none !important; }
#deeplink { width: 100%; max-width: 400px; position: relative; z-index: 1; }
#deeplink .dl-card {
  background: rgba(18, 32, 56, 0.92);
  border: 1px solid rgba(126, 184, 255, 0.18);
  border-radius: 28px;
  padding: 36px 28px 28px;
  text-align: center;
}
#deeplink .dl-logo { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 22px; overflow: hidden; }
#deeplink .dl-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#deeplink h1 { font-size: 1.65rem; font-weight: 700; margin-bottom: 10px; }
#deeplink .lead { color: #8fa3bf; font-size: 0.95rem; line-height: 1.55; margin-bottom: 22px; }
#deeplink .path-hint { font-size: 0.82rem; color: #7eb8ff; background: rgba(26, 51, 88, 0.65); border: 1px solid rgba(126, 184, 255, 0.18); border-radius: 14px; padding: 12px 14px; margin-bottom: 22px; text-align: left; }
#deeplink .actions { display: flex; flex-direction: column; gap: 11px; }
#deeplink .btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 15px 18px; border-radius: 14px; font-size: 0.95rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-family: inherit; color: #fff; }
#deeplink .btn-primary { background: linear-gradient(135deg, #4a8fd4, #0f2240); }
#deeplink .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#deeplink .btn-store { background: rgba(15, 34, 64, 0.6); border: 1px solid rgba(126, 184, 255, 0.18); color: #eef3fb; }
#deeplink .footnote { margin-top: 18px; font-size: 0.72rem; color: #8fa3bf; }
#deeplink .lang-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }
#deeplink .lang-select { appearance: none; background: rgba(15, 34, 64, 0.85); border: 1px solid rgba(126, 184, 255, 0.18); color: #8fa3bf; font: inherit; font-size: 0.75rem; padding: 8px 28px 8px 12px; border-radius: 10px; }
#deeplink .hidden { display: none !important; }
#deeplink .btn-disabled { opacity: 0.4; pointer-events: none; }
