/* Shared, content-first layouts. Keep release content independent of dev builds. */
.release-status-line { flex-basis: 100%; margin: 0; color: #65675d; font-size: 13px; }
.hero-actions { flex-wrap: wrap; }
.hero-actions .app-store-button, .hero-version { flex-shrink: 0; }
.changelog-preview-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 16px; margin: 24px 0; }
.changelog-preview-gallery img { display: block; width: 100%; height: auto; border-radius: 14px; }
.unified-site-header { gap: 20px; }
.unified-site-header .site-nav { gap: 20px; }
.tags-page .tags-hero { padding-top: 36px; padding-bottom: 18px; }
.tags-page .tags-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.06; }
.tags-page .tags-hero-copy { display: none; }
.tags-page .catalog-search { margin-top: 22px; }
.tag-browser .tag-directory { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; }
.tag-browser .directory-tag { width: auto; min-width: 0; padding: 10px 14px; }
.tag-browser details { margin-top: 12px; }
.tag-browser summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.tag-browser details .tag-directory { margin-top: 10px; }
.creator-summary { margin-top: 20px; }
.creator-summary > summary { cursor: pointer; font-size: 18px; font-weight: 650; padding: 18px 0; }
.creator-summary .creator-game-card { margin-bottom: 20px; }
.upload-panel > summary { cursor: pointer; padding: 20px; border-radius: 18px; background: #dfff4f; color: #121410; font-weight: 700; }
.upload-panel { margin-top: 28px; scroll-margin-top: 24px; }
.upload-panel .upload-workspace { margin-top: 20px; }
.changelog-hero { padding-top: 40px; padding-bottom: 30px; }
.changelog-hero h1 { font-size: clamp(36px, 5vw, 64px); }
@media (max-width: 760px) {
  .unified-site-header { gap: 12px; }
  .unified-site-header .header-actions { display: none; }
  .tags-page .tags-hero { padding-top: 24px; }
  .tags-page .tags-hero h1 { font-size: 36px; }
  .tag-browser .tag-directory { overflow: visible; max-height: none; }
  .creator-header { padding-top: 24px; }
}

/* Meme Reels entry points: hero CTA and an always-visible phone header button. */
.hero-reels-link { min-height: 62px; padding: 0 22px 0 14px; display: inline-flex; align-items: center; gap: 11px; border: 1px solid rgba(23,23,19,.18); border-radius: 999px; background: rgba(255,255,255,.62); color: var(--ink); font-family: Manrope,sans-serif; transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s ease, background .2s ease; }
.hero-reels-link > span:last-child { display: grid; gap: 3px; }
.hero-reels-link b { font-size: 16px; line-height: 1; letter-spacing: -.02em; }
.hero-reels-link small { color: #65675d; font-size: 11px; line-height: 1; }
.hero-reels-link:hover { border-color: var(--ink); background: var(--lime); transform: translateY(-2px); }
.hero-reels-link:focus-visible { outline: 3px solid rgba(215,255,57,.6); outline-offset: 3px; }
.mobile-reels-button { display: none; }
@media (max-width: 760px) {
  .hero-reels-link { min-height: 62px; padding: 0 16px 0 10px; }
  .hero-reels-link small { display: none; }
  .hero-reels-link b { font-size: 14px; }
  .mobile-reels-button { height: 42px; margin-left: auto; padding: 4px 13px 4px 4px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 700 11px/1 Manrope,sans-serif; box-shadow: 0 6px 18px rgba(23,23,19,.1); }
  .mobile-reels-button + .mobile-site-menu { margin-left: 0; }
}

/* Free plan has its own way into the funnel. */
.plan-free-link { margin-top: 26px; min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font: 700 13px/1 Manrope,sans-serif; }
.plan-free-link:hover { background: var(--ink); color: white; }

/* Phones: two clips per row keeps a 1000+ clip catalog scannable. */
@media (max-width: 480px) {
  .tags-page .clip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 10px; }
  .tags-page .clip-card-copy h3 { font-size: 13px; }
  .tags-page .clip-play { display: none; }
}

/* "What's new" card: breathing room after the dark community band, highlights instead of filler copy. */
.clip-library + .app-story { margin-top: 110px; }
.story-highlights { margin: 0 0 6px; padding: 0; display: grid; gap: 10px; list-style: none; }
.story-highlights li { padding: 16px 18px; display: grid; gap: 4px; border: 1px solid #34342f; border-radius: 16px; background: #20201d; }
.story-highlights b { color: var(--lime); font: 700 16px/1.1 Manrope,sans-serif; letter-spacing: -.01em; }
.story-highlights span { color: #b3b2aa; font-size: 14px; line-height: 1.4; }
@media (max-width: 760px) {
  .clip-library + .app-story { margin-top: 40px; }
  .story-highlights { margin-top: 24px; }
}

/* "Use in Memeclip": clip page button and the /use/clip landing page. */
.use-in-app-button { background: var(--lime); color: var(--ink); }
.use-in-app-button svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.use-page { width: min(1080px,calc(100% - 48px)); margin: 0 auto; padding: 56px 0 96px; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: clamp(32px,6vw,80px); align-items: center; }
.use-media { position: relative; overflow: hidden; border-radius: 28px; background: #121210; box-shadow: 0 30px 70px rgba(23,23,19,.22); }
.use-media video { display: block; width: 100%; max-height: 640px; object-fit: contain; background: #121210; }
.use-media span { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(18,18,16,.8); color: #fff; font: 700 12px/1 Manrope,sans-serif; }
.use-copy h1 { margin: 14px 0 16px; font: 700 clamp(38px,5vw,64px)/.95 Manrope,sans-serif; letter-spacing: -.05em; }
.use-copy > p:not(.section-kicker) { max-width: 460px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.use-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.use-actions .primary-button:not(.app-store-button) { min-height: 62px; padding-inline: 26px; background: var(--lime); color: var(--ink); }
.use-steps { margin: 30px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; counter-reset: step; }
.use-steps li { position: relative; padding: 14px 16px 14px 56px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 16px; background: #fff; counter-increment: step; }
.use-steps li::before { content: counter(step); position: absolute; left: 16px; top: 50%; width: 28px; height: 28px; display: grid; place-items: center; transform: translateY(-50%); border-radius: 50%; background: var(--ink); color: var(--lime); font: 800 13px/1 Manrope,sans-serif; }
.use-steps b { font: 700 15px/1.2 Manrope,sans-serif; }
.use-steps span { color: var(--muted); font-size: 13px; }
.use-back { display: inline-block; margin-top: 22px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .use-page { width: calc(100% - 32px); padding: 18px 0 64px; grid-template-columns: 1fr; gap: 24px; }
  .use-media video { max-height: 52vh; }
  .use-actions { display: grid; grid-template-columns: 1fr; }
  .use-actions .primary-button { width: 100%; justify-content: center; }
}

/* Community templates page. */
.use-media img { display: block; width: 100%; max-height: 640px; object-fit: contain; }
.templates-page { width: min(1180px,calc(100% - 48px)); margin: 0 auto; padding: 48px 0 96px; }
.templates-hero h1 { margin: 14px 0 16px; font: 700 clamp(42px,6vw,80px)/.92 Manrope,sans-serif; letter-spacing: -.055em; }
.templates-hero h1 em { color: var(--blue); font-style: normal; }
.templates-hero > p:not(.section-kicker) { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.templates-legend { margin: 22px 0 0; padding: 0; display: flex; gap: 18px; list-style: none; color: var(--muted); font-size: 13px; }
.templates-legend li { display: flex; align-items: center; gap: 8px; }
.templates-legend i, .template-strip span { border-radius: 6px; }
.templates-legend i { width: 22px; height: 12px; }
.is-slot { background: repeating-linear-gradient(135deg,#d7dcff 0 6px,#c3cbff 6px 12px); color: var(--blue); }
.is-meme { background: var(--lime); color: var(--ink); }
.template-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 22px; }
.template-card { display: grid; gap: 12px; padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(23,23,19,.06); }
.template-poster { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #171713; }
.template-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.template-card:hover .template-poster img { transform: scale(1.04); }
.template-duration { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(18,18,16,.8); color: #fff; font: 700 11px/1 Manrope,sans-serif; }
.template-strip { display: flex; gap: 4px; height: 26px; }
.template-strip span { min-width: 34px; display: grid; place-items: center; overflow: hidden; font: 800 10px/1 Manrope,sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.template-copy h2 { margin: 2px 0 2px; font: 700 18px/1.2 Manrope,sans-serif; letter-spacing: -.02em; }
.template-copy small { color: var(--muted); font-size: 13px; }
.template-use { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--lime); font: 700 14px/1 Manrope,sans-serif; }
.template-use:hover { background: var(--blue); color: #fff; }
@media (max-width: 760px) {
  .templates-page { width: calc(100% - 32px); padding: 24px 0 64px; }
  .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
  .template-card { padding: 8px 8px 10px; border-radius: 16px; gap: 9px; }
  .template-copy h2 { font-size: 14px; }
  .template-copy small { font-size: 11px; }
  .template-strip { height: 20px; }
  .template-strip span { min-width: 0; font-size: 8px; }
  .template-use { min-height: 38px; padding: 0 12px; font-size: 12px; }
}
