:root {
  color-scheme: dark;
  --ink: #21192d;
  --ink-soft: #3a2b48;
  --cream: #fff7ef;
  --cream-dim: #f8e9dc;
  --peach: #ffb39f;
  --rose: #ff7d9c;
  --rose-deep: #d84c78;
  --gold: #ffd17b;
  --lavender: #c8b6ff;
  --mint: #9fe2cb;
  --white: #fffdfb;
  --muted: #d9cadc;
  --glass: rgba(43, 31, 58, 0.76);
  --glass-soft: rgba(255, 248, 244, 0.09);
  --line: rgba(255, 255, 255, 0.17);
  --shadow: 0 24px 70px rgba(14, 8, 25, 0.34);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(20, 14, 34, 0.34), rgba(22, 15, 38, 0.94) 45%, #1b1427 100%),
    url("backgrounds/cat-universe-sunset-v1.jpg") center top / cover fixed no-repeat,
    #21172e;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Noto Sans TC", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 170, 183, 0.23), transparent 22%),
    radial-gradient(circle at 84% 24%, rgba(199, 181, 255, 0.2), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(255, 211, 128, 0.1), transparent 28%);
}

.star {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff5d5;
  box-shadow: 0 0 20px 5px rgba(255, 223, 155, 0.36);
  animation: twinkle 4s ease-in-out infinite;
}

.star-a { top: 16%; left: 9%; }
.star-b { top: 29%; right: 12%; animation-delay: -1.4s; }
.star-c { top: 67%; left: 20%; animation-delay: -2.6s; }

@keyframes twinkle {
  50% { opacity: 0.32; transform: scale(0.72); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 16px auto 0;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(31, 23, 44, 0.78);
  box-shadow: 0 14px 38px rgba(13, 7, 22, 0.18);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 153, 172, 0.44), rgba(165, 140, 244, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.16;
}

.brand strong {
  font-size: 0.94rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header nav a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #eadfeb;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
}

main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  min-height: calc(100svh - 104px);
  padding: clamp(70px, 10vw, 132px) 0 86px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #ffd5bd 0%, #ff88aa 48%, #ccbaff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 670px;
  margin: 30px 0 0;
  color: #f9edf7;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.82;
}

.hero-lead strong {
  color: var(--gold);
  font-size: 1.18em;
}

.hero-note {
  max-width: 630px;
  margin: 12px 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.filter-chip,
.text-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #2d2037;
  background: linear-gradient(135deg, #ffd296, #ff91ad);
  box-shadow: 0 14px 28px rgba(255, 121, 158, 0.24);
}

.button-primary:hover {
  box-shadow: 0 18px 38px rgba(255, 121, 158, 0.34);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.13);
}

.button-share {
  color: #ffe4b7;
  border-color: rgba(255, 211, 123, 0.32);
  background: rgba(255, 211, 123, 0.09);
}

.button-share:hover {
  border-color: rgba(255, 222, 157, 0.58);
  background: rgba(255, 211, 123, 0.16);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button-small {
  min-height: 44px;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.freshness {
  margin: 16px 0 0;
  color: #cbbbd0;
  font-size: 0.82rem;
}

.hero-constellation {
  position: relative;
  min-height: 500px;
}

.hero-orbit {
  position: absolute;
  inset: 18px 48px auto;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 205, 160, 0.24), transparent 38%),
    radial-gradient(circle, transparent 55%, rgba(205, 185, 255, 0.09) 56%, transparent 58%);
  box-shadow: inset 0 0 70px rgba(233, 175, 204, 0.08), 0 0 80px rgba(190, 157, 255, 0.12);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: scale(1.025); }
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: rotate(20deg);
}

.hero-orbit::after {
  inset: 28%;
  transform: rotate(-35deg);
}

.orbit-core {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 46px;
  color: #fff8e5;
  background: linear-gradient(145deg, rgba(255, 161, 178, 0.86), rgba(133, 102, 194, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 24px 54px rgba(23, 13, 40, 0.38);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.orbit-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(255, 210, 125, 0.76);
}

.orbit-dot-a { top: 11%; left: 25%; }
.orbit-dot-b { right: 8%; bottom: 36%; background: var(--rose); }
.orbit-dot-c { bottom: 10%; left: 22%; background: var(--lavender); }

.metric-grid {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(38, 28, 52, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.metric-card span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-card-waiting {
  border-color: rgba(255, 142, 169, 0.38);
  background: linear-gradient(145deg, rgba(100, 48, 76, 0.82), rgba(52, 33, 67, 0.86));
}

.metric-card-waiting strong {
  color: #ffc0ce;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.ethics-card h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.ethics-card > div > p:last-child {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.82;
}

.section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-heading-split > div {
  max-width: 760px;
}

.section-rescue {
  padding-top: 48px;
}

.rescue-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
  gap: 18px;
}

.rescue-card,
.rescue-side-note,
.ethics-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.rescue-card {
  position: relative;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 28px;
  min-height: 360px;
  padding: clamp(24px, 5vw, 50px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 207, 127, 0.19), transparent 26%),
    linear-gradient(145deg, rgba(65, 42, 75, 0.9), rgba(35, 27, 51, 0.91));
}

.rescue-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  bottom: -100px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.loading-orb {
  align-self: center;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 185, 165, 0.8), rgba(176, 151, 242, 0.76));
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.04), 0 24px 42px rgba(14, 7, 24, 0.25);
  animation: rescue-pulse 1.2s ease-in-out infinite;
}

@keyframes rescue-pulse {
  50% { transform: rotate(6deg) scale(1.04); }
}

.rescue-icon {
  width: 152px;
  height: 152px;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 38px;
  object-fit: cover;
  box-shadow: 0 22px 48px rgba(15, 7, 25, 0.32);
}

.rescue-content {
  position: relative;
  z-index: 1;
  align-self: center;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #e8dce9;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
}

.tag-waiting {
  color: #ffd7df;
  border-color: rgba(255, 135, 164, 0.33);
  background: rgba(203, 74, 113, 0.18);
}

.rescue-content h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.rescue-hook {
  margin: 15px 0 7px;
  color: #ffe0b2;
  font-size: 1.07rem;
  font-weight: 720;
}

.rescue-description {
  display: -webkit-box;
  max-width: 670px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.rescue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.rescue-permalink-note {
  max-width: 660px;
  margin: 13px 0 0;
  color: #cdbed1;
  font-size: 0.78rem;
  line-height: 1.65;
}

.rescue-complete-mark {
  align-self: center;
  color: var(--gold);
  font-size: 4rem;
  text-align: center;
}

.rescue-side-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 247, 239, 0.1);
}

.tiny-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.rescue-side-note h3 {
  margin: 12px 0;
  font-size: 1.55rem;
  line-height: 1.2;
}

.rescue-side-note p {
  margin: 0;
  color: var(--muted);
}

.text-button {
  align-self: flex-start;
  margin-top: 24px;
  padding: 0;
  color: #ffd69d;
  background: transparent;
  font-weight: 760;
  text-align: left;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--white);
}

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

.app-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(42, 31, 57, 0.79);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 16px 42px rgba(16, 8, 28, 0.16);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 206, 161, 0.36);
  background: rgba(48, 35, 64, 0.9);
}

.app-card-featured {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  min-height: 248px;
  padding: 24px;
  background:
    radial-gradient(circle at 95% 8%, rgba(255, 198, 146, 0.12), transparent 28%),
    rgba(44, 32, 59, 0.84);
}

.app-card-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(14, 7, 24, 0.26);
}

.app-card-featured .app-card-icon {
  width: 92px;
  height: 92px;
  border-radius: 27px;
}

.app-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.app-card-featured .app-card-top {
  display: block;
}

.app-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.13rem;
  line-height: 1.26;
}

.app-card-featured h3 {
  font-size: 1.32rem;
}

.app-card-meta,
.app-card-copy,
.app-card-hook {
  margin: 0;
}

.app-card-meta {
  margin-top: 5px;
  color: #baaabd;
  font-size: 0.78rem;
}

.app-card-hook {
  margin-top: 12px;
  color: #ffe0b0;
  font-size: 0.92rem;
  font-weight: 720;
}

.app-card-copy {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: #e9dae9;
  font-size: 0.8rem;
  font-weight: 690;
}

.rating-line-waiting {
  color: #ffc1cf;
}

.rating-spark {
  color: var(--gold);
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 17px;
}

.app-card-actions .button {
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 0.82rem;
}

.app-card-actions .button-share {
  flex: 1 1 auto;
}

.app-toolbar {
  position: sticky;
  top: 94px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(31, 23, 44, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 280px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  color: #cbbdce;
  background: rgba(255, 255, 255, 0.07);
}

.search-field:focus-within {
  border-color: rgba(255, 204, 148, 0.54);
  box-shadow: 0 0 0 3px rgba(255, 204, 148, 0.09);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

.search-field input::placeholder {
  color: #aa9bae;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-chip {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  color: #dfd2e1;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 720;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  color: #312239;
  border-color: transparent;
  background: linear-gradient(135deg, #ffd79f, #ff9eb3);
}

.results-status {
  min-height: 28px;
  margin: 0 0 14px;
  color: #cdbfd0;
  font-size: 0.84rem;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 54px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.ethics-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: clamp(32px, 7vw, 86px);
  padding: clamp(30px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 211, 127, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(70, 43, 71, 0.88), rgba(35, 27, 51, 0.9));
}

.ethics-list {
  margin: 0;
}

.ethics-list > div {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.ethics-list > div:last-child {
  border-bottom: 0;
}

.ethics-list dt {
  color: var(--gold);
  font-weight: 800;
}

.ethics-list dd {
  margin: 4px 0 0;
  color: var(--muted);
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  padding: 42px 0 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #c8b9cb;
}

footer strong {
  color: var(--white);
}

footer p {
  margin: 5px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: #d8cadb;
  text-decoration: none;
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(390px, calc(100% - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  color: var(--white);
  background: rgba(39, 29, 52, 0.95);
  box-shadow: 0 18px 40px rgba(10, 5, 18, 0.3);
}

.copy-panel {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 8, 22, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.copy-panel[hidden] {
  display: none;
}

.copy-panel-card {
  width: min(620px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--white);
  background: #30243f;
  box-shadow: var(--shadow);
}

.copy-panel-card strong {
  font-size: 1.25rem;
}

.copy-panel-card p {
  margin: 7px 0 18px;
  color: var(--muted);
}

.copy-panel-card input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.copy-panel-card .button {
  margin-top: 16px;
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  padding: 12px;
  border-radius: 12px;
  color: #3b273c;
  background: #ffe0ad;
  text-align: center;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 218, 151, 0.85);
  outline-offset: 3px;
}

.starfire-app-page {
  min-height: 100vh;
}

.app-share-main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 210px);
  margin: 0 auto;
  padding: 132px 0 76px;
}

.app-share-intro {
  max-width: 920px;
}

.app-share-kicker {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.app-share-intro h1 {
  max-width: 980px;
  margin: 14px 0 0;
  color: var(--white);
  font-size: 5.2rem;
  line-height: 1.02;
}

.app-share-intro > p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: #ffe1b2;
  font-size: 1.12rem;
  font-weight: 760;
  line-height: 1.65;
}

.app-share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  margin-top: 42px;
}

.app-share-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  min-width: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 191, 169, 0.16), transparent 30%),
    rgba(45, 32, 58, 0.9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-share-icon {
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 42px;
  object-fit: cover;
  box-shadow: 0 22px 48px rgba(15, 7, 24, 0.28);
}

.app-share-content {
  min-width: 0;
}

.app-share-description {
  display: -webkit-box;
  margin: 18px 0 0;
  overflow: hidden;
  color: #eadfea;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.app-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.app-share-actions .button {
  flex: 1 1 190px;
}

.app-share-ethics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background: rgba(124, 86, 107, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-share-ethics h2 {
  margin: 13px 0 0;
  color: var(--white);
  font-size: 2rem;
  line-height: 1.14;
}

.app-share-ethics > p:last-child {
  margin: 14px 0 0;
  color: #f0e4ec;
  line-height: 1.75;
}

.app-share-next {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 248, 244, 0.08);
}

.app-share-next p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header nav a:nth-child(2),
  .site-header nav a:nth-child(4) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 84px;
  }

  .hero-copy {
    max-width: 790px;
  }

  .hero-constellation {
    min-height: 530px;
  }

  .hero-orbit {
    width: min(470px, 82%);
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
  }

  .hero-orbit:hover {
    transform: translateX(-50%);
  }

  @keyframes breathe {
    50% { transform: translateX(-50%) scale(1.025); }
  }

  .rescue-stage,
  .ethics-card {
    grid-template-columns: 1fr;
  }

  .app-share-layout {
    grid-template-columns: 1fr;
  }

  .app-share-ethics {
    min-height: 220px;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    min-width: 0;
  }

  .filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 74px;
  }

  body {
    background-attachment: scroll;
  }

  .site-header {
    width: calc(100% - 20px);
    min-height: 60px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand small,
  .site-header nav a:not(:first-child) {
    display: none;
  }

  .site-header nav a {
    min-height: 42px;
    padding: 10px 12px;
  }

  main,
  footer {
    width: calc(100% - 24px);
  }

  .hero {
    gap: 30px;
    padding: 70px 0 54px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 1.02rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-constellation {
    min-height: 430px;
  }

  .hero-orbit {
    width: 330px;
    max-width: 92%;
  }

  .orbit-core {
    width: 108px;
    height: 108px;
    border-radius: 34px;
    font-size: 2.6rem;
  }

  .metric-grid {
    gap: 8px;
  }

  .metric-card {
    min-height: 92px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 1.65rem;
  }

  .section {
    padding: 66px 0;
  }

  .section-heading h2,
  .ethics-card h2 {
    font-size: clamp(2.05rem, 11vw, 3.2rem);
  }

  .section-heading-split {
    align-items: flex-start;
    flex-direction: column;
  }

  .rescue-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 22px;
    border-radius: 26px;
  }

  .rescue-icon,
  .loading-orb {
    width: 78px;
    height: 78px;
    align-self: start;
    border-radius: 22px;
  }

  .rescue-content h3 {
    font-size: 1.75rem;
  }

  .rescue-actions .button {
    flex: 1 1 100%;
  }

  .copy-panel-card {
    padding: 22px;
    border-radius: 18px;
  }

  .rescue-side-note {
    padding: 24px;
    border-radius: 26px;
  }

  .app-grid,
  .app-grid-featured {
    grid-template-columns: 1fr;
  }

  .app-card-featured {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
    padding: 20px;
  }

  .app-card-featured .app-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 21px;
  }

  .app-toolbar {
    top: 74px;
    margin-inline: -4px;
    padding: 9px;
    border-radius: 17px;
  }

  .filter-group {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .ethics-card {
    padding: 25px;
    border-radius: 27px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .app-share-main {
    width: calc(100% - 24px);
    padding: 100px 0 54px;
  }

  .app-share-intro h1 {
    font-size: 3rem;
  }

  .app-share-intro > p:last-child {
    font-size: 1rem;
  }

  .app-share-layout {
    margin-top: 30px;
  }

  .app-share-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
  }

  .app-share-icon {
    width: 96px;
    height: 96px;
    align-self: start;
    border-radius: 27px;
  }

  .app-share-description {
    -webkit-line-clamp: 5;
  }

  .app-share-actions .button {
    flex-basis: 100%;
  }

  .app-share-ethics {
    min-height: 0;
    padding: 25px;
    border-radius: 26px;
  }

  .app-share-next {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }
}

@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;
  }
}
