:root {
  --bg: #090914;
  --bg-soft: #111125;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --panel-solid: #121225;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f3ff;
  --text-soft: #beb9df;
  --text-muted: #8d88ae;
  --primary: #ff5f98;
  --primary-soft: rgba(255, 95, 152, 0.14);
  --secondary: #7b68ff;
  --secondary-soft: rgba(123, 104, 255, 0.16);
  --accent: #ffb84d;
  --success: #63d3a5;
  --danger: #ff7b7b;
  --gradient: linear-gradient(135deg, #ff5f98 0%, #7b68ff 55%, #ffb84d 100%);
  --gradient-soft: linear-gradient(135deg, rgba(255, 95, 152, 0.18), rgba(123, 104, 255, 0.16));
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --site-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 95, 152, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(123, 104, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #0a0a16 0%, #090913 100%);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: rgba(255, 95, 152, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(255, 95, 152, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: #fff;
  color: #111;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.18;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-1 {
  top: -12rem;
  left: -8rem;
  width: 30rem;
  height: 30rem;
  background: rgba(255, 95, 152, 0.75);
}

.orb-2 {
  right: -7rem;
  bottom: -10rem;
  width: 27rem;
  height: 27rem;
  background: rgba(123, 104, 255, 0.7);
  animation-delay: -8s;
}

.orb-3 {
  top: 30%;
  left: 45%;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 184, 77, 0.22);
  opacity: 0.08;
  animation-delay: -4s;
}

@keyframes orbFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2rem, 1.5rem, 0) scale(1.08);
  }
}

@keyframes splashFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes splashLoad {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.site-shell,
.page-shell {
  position: relative;
  z-index: 1;
}

.page-shell.is-intro-loading {
  opacity: 0;
}

.page-shell.is-ready {
  opacity: 1;
  transition: opacity 0.45s ease;
}

.container {
  width: min(calc(100% - 2rem), var(--site-width));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 95, 152, 0.32);
  border-radius: 999px;
  background: rgba(255, 95, 152, 0.09);
  color: #ff9ec1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading h1,
.section-heading h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede,
.section-heading p,
.page-intro {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  max-width: 42rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(9, 9, 20, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav-inner {
  width: min(calc(100% - 2rem), var(--site-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  box-shadow: 0 10px 28px rgba(255, 95, 152, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav-links .nav-cta,
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 24px rgba(123, 104, 255, 0.18);
}

.nav-links .nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-secondary,
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 95, 152, 0.22), transparent 28%),
    radial-gradient(circle at 80% 75%, rgba(123, 104, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(8, 8, 18, 0.96), rgba(8, 8, 18, 0.98));
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-card {
  width: min(100%, 34rem);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.splash-card::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto -10%;
  height: 12rem;
  background: linear-gradient(90deg, rgba(255, 95, 152, 0.26), rgba(123, 104, 255, 0.12), transparent);
  transform: rotate(-12deg);
  filter: blur(18px);
  pointer-events: none;
}

.splash-card > * {
  position: relative;
}

.splash-logo {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.35rem;
  padding: 0.9rem;
  border-radius: 1.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 40px rgba(255, 95, 152, 0.18);
  animation: splashFloat 2.8s ease-in-out infinite;
}

.splash-overline {
  margin: 0 0 0.8rem;
  color: #ffb6d0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.splash-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.splash-copy {
  margin: 1rem auto 0;
  max-width: 26rem;
  color: var(--text-soft);
  font-size: 1rem;
}

.splash-progress {
  width: min(100%, 16rem);
  height: 0.32rem;
  margin: 1.5rem auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.splash-progress-bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: var(--gradient);
  animation: splashLoad 1.8s ease forwards;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: 4.5rem 0 4rem;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy p {
  margin: 0 0 1.6rem;
  max-width: 38rem;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-panel,
.panel-card,
.story-card,
.team-card,
.prompt-card,
.feature-card,
.install-card,
.info-card,
.cta-card,
.collection-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
}

.hero-panel::before,
.panel-card::before,
.story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 95, 152, 0.11), transparent 45%, rgba(123, 104, 255, 0.08));
  opacity: 0.8;
  pointer-events: none;
}

.hero-panel > *,
.panel-card > *,
.story-card > * {
  position: relative;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.stat-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(6, 6, 12, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.hero-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.prompt-card,
.feature-card,
.team-card,
.info-card,
.collection-card {
  padding: 1.45rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.prompt-card:hover,
.feature-card:hover,
.team-card:hover,
.story-card:hover,
.collection-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
}

.icon-badge {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 24px rgba(123, 104, 255, 0.2);
}

.prompt-card h3,
.feature-card h3,
.team-card h3,
.collection-card h3,
.story-card h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

.prompt-card p,
.feature-card p,
.team-card p,
.collection-card p,
.muted {
  margin: 0;
  color: var(--text-soft);
}

.band {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.community-layout,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1.5rem;
  align-items: center;
}

.social-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-pill,
.member-chip,
.social-chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.86rem;
}

.social-pill:hover,
.member-chip:hover,
.social-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-header-card {
  padding: 2rem;
}

.story-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tab-btn,
.platform-btn,
.page-btn,
.action-btn,
.read-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab-btn,
.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.tab-btn:hover,
.platform-btn:hover,
.page-btn:hover,
.action-btn:hover,
.read-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.tab-btn.active,
.platform-btn.active,
.page-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.search-field {
  position: relative;
}

.search-field i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-field input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.search-field input::placeholder {
  color: var(--text-muted);
}

.story-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.story-archive-panel {
  display: none;
  padding: 0;
}

.story-archive-panel.active {
  display: block;
}

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.story-card.highlight {
  animation: storyHighlight 1.35s ease;
}

@keyframes storyHighlight {
  0% {
    box-shadow: 0 0 0 1px rgba(255, 95, 152, 0.7), 0 0 28px rgba(255, 95, 152, 0.45);
  }
  100% {
    box-shadow: var(--shadow-md);
  }
}

.card-body {
  padding: 1.4rem 1.4rem 0;
}

.card-kicker {
  color: #ff9ec1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-title {
  margin: 0.55rem 0 0.9rem;
}

.content-wrap {
  position: relative;
}

.story-content {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.78;
  white-space: normal;
  max-height: 15rem;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.story-content.expanded {
  max-height: 200rem;
}

.story-content p {
  margin: 0 0 0.9rem;
}

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

.story-content .translation-label {
  display: inline-block;
  margin: 0.85rem 0 0.45rem;
  color: #ffb6d0;
  font-weight: 700;
}

.story-content .meta-line {
  color: #d8d2ff;
  font-size: 0.87rem;
  font-weight: 500;
}

.story-content .dialogue-label {
  color: #fff;
  font-weight: 700;
}

.poem-block {
  white-space: pre-line;
}

.story-content .poem-body {
  white-space: pre-line;
}

.fade-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.4rem;
  background: linear-gradient(180deg, rgba(9, 9, 20, 0), rgba(9, 9, 20, 0.95));
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.fade-mask.hidden {
  opacity: 0;
}

.read-toggle {
  margin-top: 0.7rem;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
}

.card-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 1.1rem;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-info .name {
  font-size: 0.92rem;
  font-weight: 600;
}

.author-info .date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.card-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.consent-tag {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
}

.interaction-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1.4rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ibar-left,
.ibar-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.action-btn,
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.45rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.8rem;
}

.action-btn.liked {
  color: #ff9ec1;
  border-color: rgba(255, 95, 152, 0.35);
  background: rgba(255, 95, 152, 0.11);
}

.action-btn.disliked {
  color: #ad9fff;
  border-color: rgba(123, 104, 255, 0.32);
  background: rgba(123, 104, 255, 0.12);
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.empty-state i {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.page-grid {
  display: grid;
  gap: 1.2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.member-avatar {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.challenge-grid,
.install-grid {
  display: grid;
  gap: 1.2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.86rem;
}

.past-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.install-card {
  overflow: hidden;
}

.install-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.platform-icon {
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: var(--gradient);
  color: #fff;
  flex-shrink: 0;
}

.install-card-body {
  padding: 1.5rem;
}

.step-list {
  display: grid;
  gap: 0.9rem;
}

.step-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
  align-items: flex-start;
}

.step-num {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.url-pill {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(123, 104, 255, 0.12);
  color: #c1b8ff;
  font-family: monospace;
  font-size: 0.82rem;
}

.platform-panel {
  display: none;
}

.platform-panel.active {
  display: block;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0 2.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 16, 0.35);
}

.site-footer-inner {
  width: min(calc(100% - 2rem), var(--site-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: none;
  padding: 0.85rem 1.1rem;
  border-radius: 1rem;
  background: rgba(18, 32, 24, 0.95);
  border: 1px solid rgba(99, 211, 165, 0.35);
  color: #9ef0cb;
  font-size: 0.9rem;
  font-weight: 600;
}

.toast.error {
  background: rgba(54, 20, 20, 0.95);
  border-color: rgba(255, 123, 123, 0.35);
  color: #ffb2b2;
}

.not-found-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.not-found-card {
  width: min(100%, 680px);
  padding: 2.25rem;
  text-align: center;
}

.not-found-code {
  margin: 0 0 0.9rem;
  color: #ff9ec1;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.not-found-card h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.05em;
}

.not-found-card p {
  margin: 0 auto 1.4rem;
  max-width: 34rem;
  color: var(--text-soft);
}

.pill-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

.story-fragment {
  color: var(--text);
}

.story-fragment .story-card {
  padding: 0;
}

.story-fragment h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.story-fragment .story-body {
  color: var(--text-soft);
  line-height: 1.8;
}

.story-fragment .story-body p {
  margin: 0 0 0.9rem;
}

.story-fragment .story-body p:last-child {
  margin-bottom: 0;
}

.story-fragment .poem-body {
  white-space: pre-line;
}

.story-fragment .author,
.story-fragment .upload-date,
.story-fragment .consent-note {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
}

.story-fragment .author {
  color: var(--text);
  font-weight: 600;
}

.story-fragment .upload-date,
.story-fragment .consent-note {
  color: var(--text-muted);
}

.story-fragment .social-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.story-fragment .social-info a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .community-layout,
  .split-layout,
  .grid-2,
  .grid-3,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 3rem;
  }
}

@media (max-width: 720px) {
  .site-nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .section {
    padding: 3.4rem 0;
  }

  .page-hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .splash-card {
    padding: 2rem 1.4rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .button-row,
  .social-stack,
  .badge-row {
    align-items: stretch;
  }

  .button-row .btn,
  .social-stack a {
    width: 100%;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}