/* Wordmark font: Shantell Sans (SIL OFL 1.1, public/fonts/OFL.txt), variable wght 300-800, INFM, BNCE */
@font-face { font-family: "Shantell Sans"; src: url("../fonts/shantell-sans-latin-var.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
:root {
  --bg: #0b0920; --bg2: #171233; --glass: rgba(255,255,255,.07); --glass2: rgba(255,255,255,.12);
  --ink: #f4f1ff; --cobalt: #4a6cf0; --orange: #ff6a2b; --yellow: #ffd23f; --muted: rgba(244,241,255,.68);
  --lilac: #b69cff; --pink: #ff7ad9; --peach: #ffb37a; --mint: #8af5dc; --sky: #7ec8ff;
  --line: rgba(255,255,255,.18); --line2: rgba(255,255,255,.32);
  --grad: linear-gradient(135deg, var(--lilac), var(--pink) 55%, var(--peach));
  --glow: 0 30px 90px rgba(182,156,255,.28), 0 10px 30px rgba(255,122,217,.18);
  --phone-w: 420px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: "Sora", system-ui, sans-serif; color: var(--ink); background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(182,156,255,.35), transparent 60%),
    radial-gradient(ellipse 50% 45% at 90% 20%, rgba(255,122,217,.28), transparent 60%),
    radial-gradient(ellipse 55% 50% at 80% 90%, rgba(126,200,255,.22), transparent 60%),
    radial-gradient(ellipse 45% 40% at 15% 90%, rgba(255,179,122,.18), transparent 60%);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
  min-height: 100dvh; padding: 24px; overflow: hidden;
}
body::before { /* stars */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 77% 35%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 55%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 52% 48%, #fff 50%, transparent 51%);
}

/* ---------- side panels (desktop only) ---------- */
.side { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.side-l { justify-self: end; }
.side-r { justify-self: start; position: relative; height: 320px; width: 260px; }
.logo { font-family: "Gabarito", "Sora", sans-serif; font-weight: 800; font-size: 30px; text-decoration: none; color: var(--ink); letter-spacing: -.015em; display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.logo-img { display: block; height: 40px; width: auto; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.logo:hover .logo-img { transform: translateY(-3px) rotate(-1.2deg); }
@media (max-width: 600px) { .logo-img { height: 32px; } }
@media (prefers-reduced-motion: reduce) { .logo:hover .logo-img { transform: none; } }
.lm { display: block; flex: none; }
.logo { position: relative; }
.side h1 { font-size: 60px; line-height: .95; margin: 6px 0 0; letter-spacing: -.035em; font-weight: 700; }
.side h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side p { font-size: 17px; margin: 0; color: var(--muted); line-height: 1.5; }
.keys { display: flex; flex-wrap: wrap; gap: 10px; font-family: "DM Mono", monospace; font-size: 12px; color: var(--muted); }
kbd { border: 1px solid var(--line2); border-radius: 6px; padding: 1px 7px; background: var(--glass); font: inherit; color: var(--ink); }
.pill {
  align-self: flex-start; background: var(--grad); color: #1a1030; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(255,122,217,.35); transition: transform .15s, box-shadow .15s;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,122,217,.45); }
.sticker {
  position: absolute; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: "DM Mono", monospace; font-size: 12px; background: var(--glass); white-space: nowrap; color: var(--ink);
}
.s1 { left: 0; top: 20px; transform: rotate(-6deg); box-shadow: 0 0 30px rgba(138,245,220,.25); }
.s2 { left: 40px; top: 120px; transform: rotate(4deg); box-shadow: 0 0 30px rgba(126,200,255,.25); }
.s3 { left: 10px; top: 220px; transform: rotate(-2deg); box-shadow: 0 0 30px rgba(255,122,217,.25); }

/* ---------- the phone ---------- */
.phone {
  position: relative; width: var(--phone-w); height: min(92dvh, 880px); aspect-ratio: 9 / 19;
  background: #000; color: #fff; border: 1px solid var(--line2); border-radius: 44px; box-shadow: var(--glow), inset 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden; display: flex; flex-direction: column; isolation: isolate;
}
.phone-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none;
}
.phone-top > * { pointer-events: auto; }
.tabs { display: flex; gap: 18px; }
.tab { background: none; border: 0; color: rgba(255,255,255,.55); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; padding: 4px 0; position: relative; }
.tab.on { color: #fff; }
.tab.on::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -4px; height: 3px; background: var(--grad); border-radius: 3px; }
.streak, .sound {
  font: inherit; font-size: 13px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid var(--line2); border-radius: 999px;
  padding: 5px 11px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer;
}
.streak b { font-family: "DM Mono", monospace; font-weight: 500; }
.streak.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.25) rotate(-6deg); background: var(--pink); } }
.progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 6; background: rgba(255,255,255,.12); }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .25s; }

.feed { flex: 1; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.feed:focus-visible { outline: 2px solid var(--lilac); outline-offset: -2px; }
.feed::-webkit-scrollbar { display: none; }

.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--bg2); }
.media { position: absolute; inset: 0; display: grid; place-items: center; }
.media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 70px 0 200px; }
.media model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.shade { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(5,4,16,.85)); pointer-events: none; }

/* slide flavours */
.slide.model .media {
  background: radial-gradient(ellipse 70% 55% at 50% 40%, rgba(182,156,255,.55), transparent 70%),
              radial-gradient(ellipse 60% 50% at 30% 80%, rgba(255,122,217,.35), transparent 70%), var(--bg2);
}
.slide.cardish .media { padding: 76px 22px 215px; }
.slide.cardish .big {
  width: 100%; height: 100%; border: 1px solid var(--line2); border-radius: 30px; background: var(--glass2); color: var(--ink); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; position: relative; overflow: hidden;
}
.big::before { content: ""; position: absolute; inset: -40%; background: var(--tint, var(--grad)); opacity: .35; filter: blur(60px); z-index: -1; }
.big .emoji { font-size: 120px; line-height: 1; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.big h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.big .tag { border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.25); font-family: "DM Mono", monospace; }
.big .sample { font-family: "DM Mono", monospace; font-size: 11px; color: var(--muted); margin-top: 6px; }

.slide.cta .media { overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(182,156,255,.5), transparent 65%),
              radial-gradient(ellipse 70% 50% at 70% 90%, rgba(255,179,122,.3), transparent 65%), var(--bg);
  padding: 80px 22px 190px;
}
.slide.cta .meta { bottom: 92px; }
.slide.cta .shade { display: none; }
.slide.cta .rail { display: none; }
.cta-box { text-align: center; width: 100%; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.cta-box h2 { font-size: clamp(30px, 10dvh, 42px); line-height: .98; margin: 0; letter-spacing: -.04em; }
.cta-box .under { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-box .fake-prompt {
  width: 100%; background: var(--glass2); border: 1px solid var(--line2); border-radius: 22px; padding: 10px 10px 10px 16px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.2); text-align: left;
  display: flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink);
}
.fake-prompt .ph { flex: 1; color: var(--muted); font-size: 16px; }
.fake-prompt .ph::after { content: "|"; animation: blink 1s steps(1) infinite; color: var(--ink); }
@keyframes blink { 50% { opacity: 0; } }
.fake-prompt .go { background: var(--grad); color: #1a1030; border-radius: 14px; padding: 11px 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 24px rgba(255,122,217,.4); }
.cta-box .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.cta-box .chips a { font-size: 12px; font-weight: 500; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; color: var(--ink); text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cta-box .chips a:hover { background: var(--glass2); border-color: var(--line2); }

/* a landscape clip is shown whole on black; a photo fills the slide */
.slide.wide .media { background: #000; }
.slide.wide .media video { object-fit: contain; }
.slide.photo .media img { object-fit: cover; padding: 0; }

/* video placeholder when the clip did not load */
.slide.missing .media video { display: none; }
.placeholder a { color: var(--ink); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 40px 28px 170px;
  background: radial-gradient(ellipse 70% 50% at 50% 35%, rgba(126,200,255,.25), transparent 70%), var(--bg2);
}
.placeholder .film { font-size: 72px; filter: drop-shadow(0 10px 30px rgba(126,200,255,.5)); }
.placeholder h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.placeholder p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.placeholder code { font-family: "DM Mono", monospace; background: var(--glass2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.slide:not(.missing) .placeholder { display: none; }

/* right rail */
.rail { position: absolute; right: 10px; bottom: 100px; z-index: 3; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.avatar {
  position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); border: 2px solid #fff; display: grid; place-items: center; font-size: 22px; text-decoration: none; margin-bottom: 6px;
}
.avatar i { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--pink); color: #1a1030; font-style: normal; font-size: 15px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.act { background: none; border: 0; color: #fff; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; text-decoration: none; padding: 0; }
.act .ic { font-size: 30px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); transition: transform .15s; }
.act:active .ic { transform: scale(.8); }
.act .n { font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.like.on .ic { animation: thump .4s; filter: drop-shadow(0 0 12px rgba(255,122,217,.9)); }
@keyframes thump { 30% { transform: scale(1.4); } 60% { transform: scale(.9); } }
.act.make .ic { background: var(--grad); border-radius: 14px; width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 24px rgba(255,122,217,.45); }

.heart-burst { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%) scale(0); font-size: 120px; z-index: 4; pointer-events: none; opacity: 0; filter: drop-shadow(0 0 30px rgba(255,122,217,.8)); }
.heart-burst.go { animation: burst .8s ease-out; }
@keyframes burst { 10% { opacity: 1; transform: translate(-50%,-50%) scale(1.1) rotate(-8deg); } 60% { opacity: 1; transform: translate(-50%,-60%) scale(1) rotate(6deg); } 100% { opacity: 0; transform: translate(-50%,-90%) scale(.9); } }

/* caption block */
.meta { position: absolute; left: 16px; right: 80px; bottom: 80px; z-index: 3; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.handle { font-weight: 700; font-size: 16px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.handle .badge { font-family: "DM Mono", monospace; font-size: 10px; font-weight: 400; padding: 2px 8px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--line2); text-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.caption { margin: 0 0 9px; font-size: 14.5px; line-height: 1.4; }
.prompt-line { display: flex; gap: 8px; align-items: baseline; margin-bottom: 9px; font-family: "DM Mono", monospace; font-size: 11.5px; }
.pl-tag { background: var(--grad); color: #1a1030; padding: 2px 8px; border-radius: 999px; text-shadow: none; white-space: nowrap; font-weight: 500; }
.pl-text { opacity: .95; }
.pl-text::before, .pl-text::after { content: "\""; }
.fine { font-family: "DM Mono", monospace; font-size: 10px; color: rgba(255,255,255,.5); margin-top: 6px; }
.fine a { color: rgba(255,255,255,.8); display: inline-block; padding: 16px 8px; margin: -16px -8px; } /* a 44 px target in a 10 px line */
.act.shop .n { background: var(--yellow); color: #1a1030; border-radius: 999px; padding: 1px 7px; text-shadow: none; }
.sound-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.85); }
.disc { display: inline-block; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.marquee { overflow: hidden; white-space: nowrap; max-width: 220px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-in { display: inline-block; padding-left: 100%; animation: slide 9s linear infinite; }
@keyframes slide { to { transform: translateX(-100%); } }

/* bottom nav */
.phone-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-around; align-items: center;
  padding: 8px 8px 14px; background: rgba(5,4,16,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.phone-nav a { color: rgba(255,255,255,.55); text-decoration: none; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone-nav a span { font-size: 20px; height: 24px; display: grid; place-items: center; }
.phone-nav a.on { color: #fff; }
.phone-nav .make span { background: var(--grad); color: #1a1030; border-radius: 12px; width: 46px; height: 32px; display: grid; place-items: center; font-size: 24px; line-height: 1; box-shadow: 0 6px 20px rgba(255,122,217,.4); }

.feed-title { font-weight: 700; font-size: 16px; }
.avatar .ini { font-weight: 800; font-size: 18px; color: #1a1030; }
.slide.empty-slide .media { padding: 80px 28px 200px; text-align: center; }
.empty-box { display: grid; gap: 14px; justify-items: center; }
.empty-box h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.empty-box p { margin: 0; color: var(--muted); }
.empty-box a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; background: var(--grad); color: #1a1030; font-weight: 700; text-decoration: none; }
.act.follow[aria-pressed="true"] .n { color: var(--mint); }

/* ---------- mobile: the phone IS the screen ---------- */
@media (max-width: 900px) {
  body { display: block; padding: 0; overflow: hidden; }
  .side { display: none; }
  .phone { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
  .phone-top { padding-top: max(16px, env(safe-area-inset-top)); }
  .phone-nav { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  /* thumb-sized targets (44 px) and room for the home indicator */
  .tab { min-height: 44px; padding: 0 4px; }
  .tab.on::after { bottom: 6px; }
  .streak, .sound { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .act { min-width: 48px; min-height: 48px; }
  .phone-nav a { min-width: 52px; min-height: 44px; justify-content: center; }
  .rail { bottom: calc(100px + env(safe-area-inset-bottom)); right: max(10px, env(safe-area-inset-right)); }
  .meta { bottom: calc(80px + env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); }
  .slide.cta .meta { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .slide { touch-action: pan-y; }
  .placeholder { padding-left: 72px; padding-right: 72px; } /* clear of the right rail */
}
@media (prefers-reduced-motion: reduce) {
  .disc, .marquee-in, .fake-prompt .ph::after { animation: none; }
  .feed { scroll-behavior: auto; }
  .heart-burst.go, .like.on .ic, .streak.pop, .sheet-card, .cta-box .fake-prompt .ph::after { animation: none; }
  .heart-burst.go { opacity: 0; }
  .toast, .progress span, .act .ic { transition: none; }
}

