:root {
  --bg: #07060d;
  --text: #f4f2ff;
  --muted: #9b93b0;
  --orange: #ff7a2f;
  --orange-glow: rgba(255, 122, 47, 0.55);
  --blue: #2d6bff;
  --blue-glow: rgba(45, 107, 255, 0.5);
  --accent: #8ec5ff;
  --highlight: #ffc94a;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

/* Ambient scene */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(45, 107, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 80%, rgba(255, 122, 47, 0.12), transparent 50%),
    linear-gradient(180deg, #0c0a18 0%, #07060d 60%, #050408 100%);
}

.scene__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.scene__orb--1 {
  width: 280px;
  height: 280px;
  top: 5%;
  left: -10%;
  background: rgba(45, 107, 255, 0.25);
}

.scene__orb--2 {
  width: 220px;
  height: 220px;
  bottom: 20%;
  right: -8%;
  background: rgba(255, 122, 47, 0.18);
  animation-delay: -6s;
}

@keyframes orb-drift {
  to { transform: translate(30px, 20px) scale(1.08); }
}

/* Notice stack */
.notice-stack {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(360px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(12, 10, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  animation: notice-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both,
             notice-out 0.35s ease 3.2s both;
}

.notice__icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 2px;
}

.notice__content {
  flex: 1;
  min-width: 0;
}

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

.notice__user {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.notice__val {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--accent);
}

.notice__hook {
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
  margin: 0;
}

@keyframes notice-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes notice-out {
  to { opacity: 0; transform: translateY(-8px) scale(0.97); }
}

/* App shell */
.app {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  padding: 14px 16px calc(20px + var(--safe-bottom));
  min-height: 100dvh;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  animation: fade-up 0.6s ease forwards;
}

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

.brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #5b8fff);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px var(--blue-glow);
}

.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand__name span:last-child {
  color: var(--accent);
}

.top__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audience {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.audience__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Hero banner */
.hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(145deg, #1a3a8f 0%, #2d6bff 42%, #1e4fd4 100%);
  box-shadow:
    0 20px 50px rgba(45, 107, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: fade-up 0.65s ease 0.1s forwards;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 4s ease infinite;
  pointer-events: none;
}

.hero-banner__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(142, 197, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-banner__content {
  position: relative;
  padding: 26px 20px 24px;
  text-align: center;
}

.hero-banner__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.hero-banner__title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-banner__num {
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 15%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(142, 197, 255, 0.35));
}

.hero-banner__plus {
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-right: 4px;
}

.hero-banner__word {
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-banner__sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}

.hero-banner__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.hero-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* CTA row */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-bottom: 20px;
  animation: fade-up 0.65s ease 0.2s forwards;
}

.cta {
  position: relative;
  border: none;
  border-radius: 50px;
  padding: 14px 12px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.cta:active:not(.is-loading) {
  transform: scale(0.96);
}

.cta.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.cta--main {
  background: linear-gradient(135deg, #ff8c42, var(--orange));
  color: #fff;
  box-shadow: 0 6px 24px var(--orange-glow);
}

.cta--alt {
  background: linear-gradient(135deg, #3d7aff, var(--blue));
  color: #fff;
  box-shadow: 0 6px 28px var(--blue-glow);
  animation: cta-alt-pulse 2.8s ease-in-out infinite;
}

.cta--alt > span:not(.cta__shine) {
  position: relative;
  z-index: 1;
}

@keyframes cta-alt-pulse {
  0%, 100% {
    box-shadow: 0 6px 24px rgba(45, 107, 255, 0.45);
  }
  50% {
    box-shadow:
      0 10px 34px rgba(45, 107, 255, 0.72),
      0 0 0 2px rgba(255, 255, 255, 0.14),
      0 0 18px rgba(45, 107, 255, 0.22);
  }
}

.cta__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btn-shine 3s ease infinite;
}

@keyframes btn-shine {
  0%, 70% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Feed */
.feed {
  margin-bottom: 24px;
  animation: fade-up 0.65s ease 0.3s forwards;
}

.feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feed__title {
  font-size: 1rem;
  font-weight: 700;
}

.feed__badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #22c55e;
  animation: pulse-dot 2s ease infinite;
}

.feed__track-wrap {
  overflow: hidden;
  margin: 0 -16px;
  padding: 0 16px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.feed__track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
}

.tile {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 112px;
  height: 224px;
  padding: 8px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.tile.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.tile__thumb {
  flex-shrink: 0;
  width: 100%;
  height: 132px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
}

.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tile__img--blur {
  filter: blur(7px) saturate(1.05);
  transform: scale(1.12);
}

.tile__img--peek {
  clip-path: circle(28px at 50% 50%);
  -webkit-clip-path: circle(28px at 50% 50%);
  filter: none;
  transform: none;
  z-index: 1;
}

.tile__thumb::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.tile__eye {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

.tile__eye svg {
  width: 13px;
  height: 13px;
}

.tile__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding-top: 8px;
  min-height: 0;
}

.tile__rating {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
  line-height: 1;
}

.tile__rating-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.tile__stars {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
}

.tile__star {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.tile__star--on {
  color: var(--accent);
}

.tile__score {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  line-height: 1.1;
}

.tile__score-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(142, 197, 255, 0.6);
  flex-shrink: 0;
}

.tile__score-val {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.tile__audience {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 3px;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 999px;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  line-height: 1;
  margin: 0;
}

.tile__person {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

/* Legal */
.legal {
  animation: fade-up 0.65s ease 0.45s forwards;
  text-align: center;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  padding: 6px 14px;
  border: 2px solid rgba(239, 68, 68, 0.65);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.15),
    inset 0 0 12px rgba(239, 68, 68, 0.06);
}

.age-badge__text {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f87171;
  line-height: 1;
}

.legal p {
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(155, 147, 176, 0.7);
  margin-bottom: 6px;
}

.legal__en {
  margin: 0 auto;
  max-width: 320px;
}

.legal__en p {
  font-size: 0.58rem;
  line-height: 1.5;
  color: rgba(155, 147, 176, 0.55);
  text-align: center;
  margin-bottom: 8px;
}

.legal__en p:last-child {
  margin-bottom: 0;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
