:root {
  --theme-color: #ff3b6b;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; height:100%; background:#000; color:#fff; font-family:-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }

/* Phone frame wrapper - full-bleed on mobile, centered "app" frame on desktop */
.phone-frame {
  position:relative;
  width:100%;
  background:#000;
}

/* Header */
.site-header {
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 20px; background:linear-gradient(to bottom, rgba(0,0,0,.65), transparent);
}
.brand { display:flex; align-items:center; gap:8px; font-weight:800; font-size:18px; }
.brand-logo { width:32px; height:32px; border-radius:8px; object-fit:cover; }
.main-nav { display:flex; gap:20px; font-size:14px; }
.main-nav a:hover { color: var(--theme-color); }
.nav-toggle { display:none; background:none; border:none; color:#fff; font-size:22px; cursor:pointer; }

@media (max-width:700px) {
  .main-nav { position:fixed; top:56px; right:0; background:#111; flex-direction:column; padding:16px 24px; border-radius:0 0 0 12px; display:none; gap:14px; }
  .main-nav.open { display:flex; }
  .nav-toggle { display:block; }
}

/* Story feed - vertical swipe, one screen per slide, snaps like TikTok/Stories */
.story-feed {
  height:100vh;
  overflow-y:scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}
.slide {
  height:100vh;
  width:100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#000;
  overflow:hidden;
}
.slide img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.slide-overlay {
  position:absolute;
  left:0; right:0; bottom:0;
  padding:24px 20px 90px;
  background:linear-gradient(to top, rgba(0,0,0,.75), transparent 70%);
}
.slide-brand { display:flex; align-items:center; gap:8px; font-weight:700; margin-bottom:8px; }
.slide-logo { width:28px; height:28px; border-radius:6px; object-fit:cover; }
.slide-caption { font-size:15px; line-height:1.4; max-width:90%; }

.slide-actions {
  position:absolute;
  right:14px; bottom:110px;
  display:flex; flex-direction:column; gap:22px; align-items:center;
}
.action-btn {
  background:rgba(0,0,0,.35);
  border:none; color:#fff; font-size:24px;
  width:48px; height:48px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.action-btn:active { transform: scale(0.92); }

/* Ad slots */
.ad-slot { display:flex; justify-content:center; align-items:center; padding:10px 16px; background:#0d0d0d; }
.slide-ad { background:#0d0d0d; }
.slide-ad .ad-slot { width:100%; height:100%; }

/* Empty state */
.empty-state { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:40px 20px; }
.empty-state h1 { font-size:32px; margin-bottom:8px; }
.muted-txt { color:#999; font-size:14px; max-width:420px; }
.muted-txt code { background:#222; padding:2px 6px; border-radius:4px; }
.muted-txt a { color: var(--theme-color); text-decoration:underline; }

/* Desktop: show the feed inside a centered mobile-app style frame instead of full-bleed */
@media (min-width: 860px) {
  body.has-frame {
    background:#0e0e12;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .phone-frame {
    width:420px;
    max-width:92vw;
    height:88vh;
    max-height:900px;
    min-height:560px;
    margin:5vh auto 0;
    border-radius:32px;
    overflow:hidden;
    box-shadow:0 30px 80px rgba(0,0,0,.55), 0 0 0 8px #17181f, 0 0 0 10px #2c2e3a;
    /* creates a containing block so the fixed header/story-feed are
       positioned relative to the frame, not the whole browser window */
    transform: translateZ(0);
  }
  .phone-frame .story-feed,
  .phone-frame .slide {
    height:100%;
  }
  .phone-frame .site-header {
    border-radius:32px 32px 0 0;
  }
  .phone-frame .empty-state {
    min-height:100%;
    height:100%;
  }
  .site-footer {
    width:100%;
  }
}

/* Footer */
.site-footer { background:#0a0a0a; padding:40px 20px 30px; }
.footer-inner { max-width:800px; margin:0 auto; text-align:center; }
.footer-heading { font-size:20px; margin-bottom:10px; }
.footer-text { color:#999; font-size:13px; line-height:1.7; margin-bottom:20px; }
.footer-links { display:flex; flex-wrap:wrap; gap:16px; justify-content:center; font-size:13px; margin-bottom:16px; }
.footer-links a:hover { color: var(--theme-color); }
.footer-socials { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; font-size:13px; margin-bottom:16px; color:#bbb; }
.footer-socials a:hover { color: var(--theme-color); }
.copyright { color:#666; font-size:12px; }

/* Legal / static pages */
.static-page { max-width:760px; margin:100px auto 60px; padding:0 20px; color:#eee; line-height:1.8; }
.static-page h2 { color:#fff; margin-top:0; }
.static-page h3 { color: var(--theme-color); margin-top:28px; }
.static-page a { color: var(--theme-color); text-decoration:underline; }
.static-page ul { padding-left:22px; }
