@import url("https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=DynaPuff:wght@600;700&family=ZCOOL+KuaiLe&display=swap");

:root {
  --bg: #fffdfb;
  --surface: #ffffff;
  --text: #342444;
  --muted: #9a7a8b;
  --line: rgba(117, 84, 155, 0.16);
  --pink: #ec6da6;
  --pink-dark: #d93c88;
  --pink-soft: #fde7ec;
  --rose-ink: #76549b;
  --plum: #553276;
  --peach: #fde4dc;
  --cloud-pink: #f6b8c0;
  --glass-fill: rgba(255, 255, 255, 0.64);
  --glass-fill-strong: rgba(255, 255, 255, 0.82);
  --glass-edge: rgba(117, 84, 155, 0.14);
  --glass-tint: rgba(236, 109, 166, 0.055);
  --shell: rgba(255, 255, 255, 0.5);
  --shadow: 0 24px 64px rgba(85, 50, 118, 0.1);
  --soft-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --focus-ring: 0 0 0 4px rgba(225, 29, 72, 0.18), 0 0 0 1px rgba(225, 29, 72, 0.78);
  --font-art: "ZCOOL KuaiLe", "Bagel Fat One", "也字工厂小石头",
    "YeZiGongChangXiaoShiTou", "Arial Rounded MT Bold", "Avenir Next Rounded",
    "Yuanti SC", "PingFang SC", sans-serif;
  --font-display: "Bagel Fat One", "DynaPuff", "SF Pro Rounded", "Avenir Next Rounded", "Nunito", "PingFang SC",
    "Hiragino Sans GB", sans-serif;
  --font-body: "Avenir Next", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    url("assets/fairy-landscape.png") center bottom / cover no-repeat fixed,
    radial-gradient(circle at 18% 18%, rgba(253, 228, 220, 0.58), transparent 26%),
    radial-gradient(circle at 86% 24%, rgba(246, 184, 192, 0.3), transparent 28%),
    linear-gradient(180deg, #fffdfb 0%, #fffdfb 34%, #fff1f3 100%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 42%, rgba(155, 91, 116, 0.14) 0 1px, transparent 1px);
  background-size: 30px 30px, 42px 42px;
  mix-blend-mode: soft-light;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.54), transparent 38%),
    radial-gradient(circle at 52% 28%, rgba(255, 255, 255, 0.48), transparent 24%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  touch-action: manipulation;
}

:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

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

.announcement {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 48px;
  background: transparent;
  color: #b97991;
  font-size: 13px;
  font-weight: 760;
  position: relative;
  letter-spacing: 0.01em;
}

.announcement button {
  position: absolute;
  right: 22px;
  border: 0;
  background: transparent;
  color: #b97991;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.site-header {
  width: min(1050px, calc(100% - 32px));
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 12px auto 0;
  padding: 6px 8px 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(117, 84, 155, 0.08);
  border-radius: 999px;
  box-shadow:
    0 14px 34px rgba(85, 50, 118, 0.075),
    inset 0 1px 1px rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(1.08);
  position: sticky;
  top: 12px;
  z-index: 10;
  overflow: hidden;
  isolation: isolate;
}

.site-header::before {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: var(--font-art);
  color: #7c6690;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 15px;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(145deg, #a78ac5, #76549b);
  box-shadow:
    0 10px 20px rgba(85, 50, 118, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.86),
    inset 0 -10px 18px rgba(116, 38, 72, 0.12);
  color: white;
  font-family: var(--font-art);
  font-size: 19px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
}

.nav-links a {
  padding: 9px 13px;
  color: #72597f;
  border-radius: 999px;
  border-bottom: 0;
  transition:
    color 520ms var(--soft-ease),
    background 520ms var(--soft-ease),
    box-shadow 520ms var(--soft-ease),
    transform 520ms var(--soft-ease);
}

.nav-links .active,
.nav-links a:hover {
  color: var(--plum);
  background: rgba(253, 231, 236, 0.7);
  box-shadow: none;
  transform: translateY(-1px);
}

.ghost-button,
.small-button,
.download-button {
  border: 1px solid var(--glass-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 251, 0.48));
  min-height: 44px;
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.88),
    inset 0 -10px 20px rgba(182, 94, 124, 0.045);
  transition:
    transform 520ms var(--soft-ease),
    background 520ms var(--soft-ease),
    box-shadow 520ms var(--soft-ease);
}

.ghost-button:hover,
.small-button:hover,
.download-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(117, 62, 83, 0.11);
}

.ghost-button:active,
.small-button:active,
.download-button:active,
.primary-button:active {
  transform: scale(0.98);
}

.ghost-button {
  justify-self: end;
  padding: 11px 18px;
  background: var(--plum);
  color: white;
  font-size: 14px;
  font-weight: 820;
}

.hero {
  min-height: min(780px, calc(100dvh - 116px));
  display: grid;
  place-items: center;
  padding: clamp(34px, 6vw, 72px) clamp(16px, 6vw, 96px) clamp(120px, 17vw, 230px);
  background:
    linear-gradient(180deg, transparent 0 44%, rgba(255, 239, 243, 0.86) 100%);
  overflow: hidden;
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: 42px 8% 34px;
  border-radius: 54px;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.76), transparent 42%),
    radial-gradient(circle at 18% 70%, rgba(224, 135, 168, 0.13), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 239, 245, 0.14));
  pointer-events: none;
}

.hero-landscape {
  display: none;
}

.hero-copy {
  text-align: center;
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin-top: -28px;
}

.hero-stickers {
  display: block;
  width: min(188px, 42vw);
  height: auto;
  margin: 0 auto -4px;
  opacity: 0.82;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(168, 74, 124, 0.1));
}

.hero-copy::before,
.hero-copy::after {
  position: absolute;
  z-index: -1;
  color: var(--pink-dark);
  font-family: var(--font-display);
  font-weight: 700;
  opacity: 0.72;
  pointer-events: none;
  text-shadow:
    0 0 0 #fff,
    2px 2px 0 #fff,
    -2px 2px 0 #fff,
    2px -2px 0 #fff,
    -2px -2px 0 #fff,
    0 9px 18px rgba(217, 60, 136, 0.18);
}

.hero-copy::before {
  content: "★";
  top: 148px;
  left: 13%;
  font-size: clamp(18px, 3.2vw, 34px);
  transform: rotate(-14deg);
}

.hero-copy::after {
  content: "♥";
  top: 118px;
  right: 11%;
  font-size: clamp(18px, 3.4vw, 36px);
  transform: rotate(12deg);
}

.hero h1 {
  display: grid;
  grid-template-columns: max-content minmax(0, max-content) max-content;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 24px);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 8.4vw, 118px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.005em;
  filter: drop-shadow(0 18px 24px rgba(217, 60, 136, 0.16));
}

.hero h1 .word {
  display: inline-grid;
  place-items: center;
  padding: 0.08em 0.2em 0.16em;
  position: relative;
  font-family: var(--font-art);
  font-weight: 400;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 15px 22px rgba(217, 60, 136, 0.2));
}

.word-stroke,
.word-fill {
  grid-area: 1 / 1;
  line-height: 0.98;
}

.word-stroke {
  color: transparent;
  paint-order: stroke fill;
  -webkit-text-fill-color: transparent;
}

.word-stroke-outer {
  -webkit-text-stroke: 14px #df2b8a;
}

.word-stroke-inner {
  -webkit-text-stroke: 8px #fff;
}

.word-fill {
  color: #f23f98;
  background:
    linear-gradient(180deg, #f83e9e 0%, #ff6bae 46%, #ffc1d3 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.72),
    0 -1px 0 rgba(255, 255, 255, 0.48);
}

.hero h1 .est,
.hero h1 .year {
  color: var(--pink-dark);
  font-size: clamp(28px, 3.5vw, 54px);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 0 #fff,
    0 8px 18px rgba(217, 60, 136, 0.14);
}

.hero-copy p {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 560px;
  margin: 18px auto 26px;
  padding: 9px 22px 11px;
  border: 1px solid rgba(255, 214, 230, 0.82);
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.92), transparent 38%),
    rgba(255, 248, 251, 0.76);
  box-shadow:
    0 10px 24px rgba(200, 98, 142, 0.1),
    0 0 0 4px rgba(255, 236, 244, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  color: #b85a84;
  font-family: var(--font-art);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 5px 12px rgba(184, 90, 132, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  min-width: 250px;
  padding: 0 12px 0 32px;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 18%, rgba(255, 255, 255, 0.4), transparent 28%),
    linear-gradient(180deg, #f34b98, var(--pink-dark));
  box-shadow:
    0 16px 30px rgba(217, 60, 136, 0.32),
    0 0 0 6px rgba(253, 231, 236, 0.78),
    inset 0 1px 1px rgba(255, 255, 255, 0.48);
  color: white;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.005em;
  transition:
    transform 600ms var(--soft-ease),
    box-shadow 600ms var(--soft-ease),
    filter 600ms var(--soft-ease);
}

.primary-button::after {
  content: "→";
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 19px;
  line-height: 1;
  transition:
    transform 600ms var(--soft-ease),
    background 600ms var(--soft-ease);
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow:
    0 20px 44px rgba(128, 54, 85, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.primary-button:hover::after {
  transform: translateX(3px) translateY(-1px) scale(1.06);
  background: rgba(255, 255, 255, 0.3);
}

.hero-copy small {
  display: block;
  margin-top: 16px;
  color: #9a7a8b;
  font-size: 13px;
  line-height: 1.6;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(460px, 1fr);
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto 44px;
  padding: 0 clamp(18px, 4vw, 64px);
}

.page-shell {
  max-width: 1180px;
  margin: 56px auto 72px;
  padding: 0 clamp(18px, 4vw, 64px);
}

.page-section {
  margin-top: 56px;
}

.page-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.panel,
.privacy-note,
.community {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 252, 0.58)),
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.5), transparent 34%),
    var(--glass-tint);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow:
    var(--shadow),
    inset 0 1px 1px rgba(255, 255, 255, 0.94),
    inset 0 -14px 26px rgba(160, 82, 111, 0.032),
    0 0 0 5px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px) saturate(1.08);
}

.panel {
  padding: clamp(24px, 3vw, 36px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2,
.privacy-note h1,
.privacy-note h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 860;
  letter-spacing: -0.04em;
}

.section-heading p,
.privacy-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.small-button {
  padding: 10px 16px;
  white-space: nowrap;
  color: var(--rose-ink);
  font-size: 13px;
  font-weight: 780;
}

.small-button:disabled {
  color: #8e7d88;
  cursor: not-allowed;
  opacity: 0.62;
}

.layout-controls {
  display: flex;
  gap: 10px;
}

.template-tabs {
  display: flex;
  gap: 8px;
  margin: 6px 0 18px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  width: fit-content;
  max-width: 100%;
}

.template-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #402b38;
  cursor: pointer;
  font-weight: 780;
  white-space: nowrap;
  transition:
    background 360ms var(--soft-ease),
    box-shadow 360ms var(--soft-ease),
    color 360ms var(--soft-ease);
}

.template-tabs .active,
.template-tabs button:hover {
  border-color: rgba(134, 86, 106, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 246, 0.5));
  color: var(--pink-dark);
  box-shadow:
    0 9px 22px rgba(93, 56, 73, 0.075),
    inset 0 1px 1px rgba(255, 255, 255, 0.96);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-content: stretch;
  gap: 16px;
  overflow-x: visible;
  padding: 6px 2px 14px;
}

.template-card {
  min-height: 350px;
  padding: 14px 12px 16px;
  position: relative;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.72), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 252, 0.58));
  cursor: pointer;
  text-align: center;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    inset 0 -10px 18px rgba(160, 82, 111, 0.028),
    0 0 0 3px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(1.08);
  transition:
    transform 560ms var(--soft-ease),
    border-color 560ms var(--soft-ease),
    box-shadow 560ms var(--soft-ease);
}

.template-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--rose-ink);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(93, 56, 73, 0.06);
}

.recommend-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: white;
  font-size: 11px;
  font-weight: 860;
  box-shadow: 0 9px 22px rgba(128, 54, 85, 0.16);
}

.template-card:focus-visible {
  box-shadow:
    var(--focus-ring),
    0 16px 36px rgba(166, 62, 102, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.96);
}

.template-card:hover,
.template-card.selected {
  transform: translateY(-5px) rotate(-0.8deg);
  border-color: var(--pink);
  box-shadow:
    0 15px 30px rgba(128, 54, 85, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    inset 0 -12px 20px rgba(160, 82, 111, 0.045),
    0 0 0 4px rgba(245, 221, 230, 0.5);
}

.check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.8), transparent 30%),
    var(--pink-dark);
  color: white;
  font-weight: 900;
  box-shadow: 0 9px 22px rgba(128, 54, 85, 0.18);
}

.mini-strip {
  width: 116px;
  aspect-ratio: 0.56;
  display: block;
  margin: 0 auto 16px;
  padding: 0;
  border-radius: 14px;
  background-color: rgba(255, 250, 253, 0.62);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid var(--glass-edge);
  box-shadow:
    0 11px 24px rgba(93, 56, 73, 0.075),
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    inset 0 -12px 20px rgba(182, 94, 124, 0.045);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.mini-strip.birthday {
  background-image: url("assets/templates/birthday.png");
}

.mini-strip.graduation {
  background-image: url("assets/templates/graduation.png");
}

.mini-strip.couple {
  background-image: url("assets/templates/couple.png");
}

.mini-strip.bestie {
  background-image: url("assets/templates/bestie.png");
}

.mini-strip.kpop {
  background-image: url("assets/templates/kpop.png");
}

.mini-strip.y2k {
  background-image: url("assets/templates/y2k.png");
}

.mini-strip.film {
  background-image: url("assets/templates/film.png");
}

.mini-strip.christmas {
  background-image: url("assets/templates/christmas.png");
}

.mini-strip.halloween {
  background-image: url("assets/templates/halloween.png");
}

.mini-strip.wedding {
  background-image: url("assets/templates/wedding.png");
}

.template-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 840;
  letter-spacing: -0.035em;
}

.template-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.template-card em {
  display: block;
  min-height: 34px;
  margin-top: 9px;
  color: #5b3c4e;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.sticky-template-cta {
  position: sticky;
  bottom: 16px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(520px, calc(100% - 24px));
  min-height: 64px;
  margin: 0 auto 18px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 246, 251, 0.54)),
    var(--glass-tint);
  box-shadow:
    0 18px 46px rgba(93, 56, 73, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.35);
}

.sticky-template-cta span {
  color: #4f3b49;
  font-size: 14px;
  font-weight: 760;
}

.sticky-template-cta strong {
  color: var(--pink-dark);
}

.sticky-template-cta a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: white;
  font-family: var(--font-display);
  font-weight: 860;
  white-space: nowrap;
}

.option-drawer {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 212, 226, 0.72);
}

.option-drawer summary {
  padding: 16px 0 0;
  color: var(--rose-ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 840;
  letter-spacing: -0.025em;
}

.option-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.settings-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 238, 247, 0.42)),
    radial-gradient(circle at 12% 16%, rgba(255, 123, 180, 0.22), transparent 28%);
  box-shadow:
    0 18px 40px rgba(126, 76, 114, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.92);
}

.settings-preview-card {
  display: grid;
  place-items: center;
  width: 116px;
  min-height: 188px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.settings-preview strong {
  display: block;
  color: #41283c;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 860;
}

.settings-preview > div:not(.settings-preview-card) span {
  display: block;
  margin-top: 6px;
  color: #84677b;
  font-size: 13px;
  font-weight: 720;
}

.preview-strip {
  position: relative;
  display: grid;
  gap: 6px;
  width: 72px;
  min-height: 154px;
  padding: 18px 8px 12px;
  border: 4px solid #df8faf;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 244, 249, 0.96), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 148, 190, 0.14) 0 8px, transparent 8px 16px);
  box-shadow: 0 12px 22px rgba(156, 79, 128, 0.16);
  transition:
    width 320ms var(--soft-ease),
    border-color 320ms var(--soft-ease);
}

.preview-strip[data-layout="classic"] {
  width: 86px;
}

.preview-strip[data-layout="large"] {
  width: 98px;
}

.preview-strip[data-color="cream"] {
  border-color: #fff4df;
}

.preview-strip[data-color="black"] {
  border-color: #29262b;
}

.preview-strip[data-color="blue"] {
  border-color: #9acbff;
}

.preview-strip[data-shape="square"] .preview-photo {
  border-radius: 2px;
}

.preview-strip[data-shape="round"] .preview-photo {
  border-radius: 999px;
}

.preview-photo {
  min-height: 26px;
  border: 1px solid rgba(201, 137, 183, 0.22);
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 36%, rgba(217, 155, 194, 0.52) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 80%, rgba(217, 155, 194, 0.34) 0 14px, transparent 15px),
    rgba(250, 233, 248, 0.82);
  transition:
    border-radius 320ms var(--soft-ease),
    box-shadow 320ms var(--soft-ease);
}

.preview-logo,
.preview-date,
.preview-time {
  position: absolute;
  z-index: 1;
  margin: 0;
  color: #d74796;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 860;
  line-height: 1;
}

.preview-logo {
  top: 6px;
  left: 8px;
}

.preview-sticker {
  position: absolute;
  right: 6px;
  bottom: 8px;
  z-index: 1;
  width: 18px;
  height: 18px;
  background: url("assets/stickers/heart.png") center / contain no-repeat;
  filter: drop-shadow(0 3px 4px rgba(151, 63, 112, 0.18));
  transition: background-image 180ms var(--soft-ease);
}

.preview-sticker[data-sticker="star"] {
  background-image: url("assets/stickers/star.png");
}

.preview-sticker[data-sticker="dog"] {
  background-image: url("assets/stickers/dog.png");
}

.preview-sticker[data-sticker="christmas"] {
  background-image: url("assets/stickers/christmas.png");
}

.preview-date,
.preview-time {
  left: 8px;
  color: rgba(68, 45, 64, 0.58);
  font-size: 7px;
}

.preview-date {
  bottom: 18px;
}

.preview-time {
  bottom: 7px;
}

.preview-strip [hidden] {
  display: none;
}

.option-group h3 {
  margin: 0 0 10px;
  color: var(--rose-ink);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented,
.swatches,
.sticker-row,
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented,
.sticker-row,
.export-actions {
  width: fit-content;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.segmented button,
.sticker-row button,
.export-actions button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 247, 251, 0.3));
  color: #402b38;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  transition:
    transform 520ms var(--soft-ease),
    background 520ms var(--soft-ease),
    border-color 520ms var(--soft-ease);
}

.sticker-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sticker-choice span {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  background: center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(151, 63, 112, 0.14));
}

.sticker-choice.heart span {
  background-image: url("assets/stickers/heart.png");
}

.sticker-choice.star span {
  background-image: url("assets/stickers/star.png");
}

.sticker-choice.dog span {
  background-image: url("assets/stickers/dog.png");
}

.sticker-choice.christmas span {
  background-image: url("assets/stickers/christmas.png");
}

.segmented .active,
.sticker-row .active,
.export-actions button:hover {
  border-color: rgba(134, 86, 106, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 246, 0.5));
  color: var(--pink-dark);
  box-shadow:
    0 10px 24px rgba(117, 62, 83, 0.09),
    inset 0 1px 1px rgba(255, 255, 255, 0.96);
}

.swatch {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.54);
  cursor: pointer;
}

.swatch.active {
  box-shadow: 0 0 0 3px rgba(166, 62, 102, 0.22);
}

.swatch.pink {
  background: #df8faf;
}

.swatch.cream {
  background: #fff4df;
}

.swatch.black {
  background: #29262b;
}

.swatch.blue {
  background: #bcdcff;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}

.toggle-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 251, 0.34));
  color: #5c4c57;
  font-size: 13px;
  font-weight: 760;
}

.export-actions {
  grid-column: 1 / -1;
}

.camera-panel {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(16px, 2.6vw, 24px);
  border-radius: 34px;
}

.camera-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.camera-stage-head h1 {
  margin: 0;
  color: #2f2340;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 860;
  letter-spacing: -0.045em;
}

.camera-stage-head p {
  max-width: 360px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #6f5869;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}

.camera-preview {
  min-height: clamp(360px, 46vw, 520px);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 106, 170, 0.18), transparent 28%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.13), transparent 26%),
    linear-gradient(145deg, #18131f 0%, #21182b 50%, #101018 100%);
  box-shadow:
    0 22px 54px rgba(52, 31, 62, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -24px 42px rgba(0, 0, 0, 0.22),
    0 0 0 5px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px) saturate(1.08);
}

.camera-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  opacity: 0.42;
  pointer-events: none;
}

.camera-preview::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  pointer-events: none;
}

.camera-preview video,
.camera-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-preview video {
  transform: scaleX(-1);
}

.camera-preview img {
  z-index: 1;
}

.camera-preview.is-live::before {
  opacity: 0.18;
}

.camera-preview.has-photo::after {
  border-color: rgba(255, 255, 255, 0.28);
}

.status-dot {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39d98a;
  box-shadow: 0 0 0 6px rgba(57, 217, 138, 0.18);
  z-index: 2;
}

.camera-preview.has-error .status-dot {
  background: #ff6f9e;
  box-shadow: 0 0 0 6px rgba(255, 111, 158, 0.18);
}

.status-text {
  position: absolute;
  top: 17px;
  left: 38px;
  color: white;
  text-shadow: 0 1px 12px rgba(36, 16, 31, 0.36);
  font-weight: 760;
  font-size: 13px;
  z-index: 2;
}

.camera-counter {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  min-width: 44px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
}

.countdown {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 75, 152, 0.82), rgba(157, 100, 202, 0.62));
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.08em;
  cursor: pointer;
  user-select: none;
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.1),
    0 0 0 22px rgba(233, 66, 147, 0.1),
    0 18px 40px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.countdown:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.86);
  outline-offset: 8px;
}

.camera-preview p {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  margin: 0;
  color: white;
  text-shadow: 0 1px 16px rgba(36, 16, 31, 0.42);
  text-align: center;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.02em;
  z-index: 2;
}

.camera-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.capture-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin: 16px auto 0;
}

.capture-strip img,
.capture-strip span {
  display: block;
  aspect-ratio: 3 / 4;
  width: 100%;
  border: 1px solid rgba(117, 84, 155, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 36%, rgba(217, 155, 194, 0.24) 0 18px, transparent 19px),
    rgba(255, 255, 255, 0.56);
  object-fit: cover;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.86);
}

.download-button {
  min-width: 180px;
  padding: 0 22px;
  min-height: 52px;
  font-family: var(--font-display);
  font-weight: 820;
  letter-spacing: -0.025em;
}

.download-button:disabled {
  color: #84717d;
  cursor: not-allowed;
  opacity: 0.62;
}

.follow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 250, 252, 0.52)),
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.56), transparent 38%);
  box-shadow:
    0 14px 34px rgba(93, 56, 73, 0.085),
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -14px 24px rgba(182, 94, 124, 0.045);
  backdrop-filter: blur(16px) saturate(1.3);
}

.follow-card[hidden] {
  display: none;
}

.follow-card strong {
  color: var(--pink-dark);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.035em;
}

.follow-card p {
  margin: 5px 0 0;
  color: #4f3b49;
  line-height: 1.5;
}

.follow-card a {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.42), transparent 30%),
    var(--pink-dark);
  color: white;
  font-family: var(--font-display);
  font-weight: 840;
  box-shadow: 0 11px 24px rgba(128, 54, 85, 0.17);
}

.community {
  max-width: 1440px;
  margin: 0 auto 44px;
  padding: clamp(22px, 4vw, 42px);
}

.community-heading {
  align-items: flex-end;
}

.community-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.15fr;
  gap: 18px;
}

.spotlight-card,
.social-card,
.message-wall {
  min-height: 360px;
  padding: 22px;
  border: 1px solid var(--glass-edge);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.58), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 252, 0.5));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.92),
    inset 0 -14px 24px rgba(160, 82, 111, 0.03),
    0 0 0 5px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(1.08);
}

.label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: 0.02em;
}

.winner-strip {
  width: 138px;
  display: grid;
  gap: 7px;
  margin: 0 auto 18px;
  padding: 10px;
  border-radius: 14px;
  background: #fff6f9;
  box-shadow:
    0 16px 36px rgba(128, 54, 85, 0.1),
    0 0 0 5px rgba(255, 239, 245, 0.64);
  transform: rotate(-3deg);
}

.winner-strip span {
  height: 78px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 32%, #31272c 0 10%, transparent 11%),
    radial-gradient(circle at 50% 48%, #ffd0bf 0 15%, transparent 16%),
    linear-gradient(135deg, #fff1f5, #f5ddd6);
}

.spotlight-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.spotlight-gallery figure {
  margin: 0;
}

.spotlight-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow:
    0 14px 28px rgba(128, 54, 85, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.spotlight-gallery figcaption {
  margin-top: 8px;
  color: var(--rose-ink);
  font-size: 12px;
  font-weight: 820;
  text-align: center;
}

.spotlight-card h3,
.social-card h3,
.message-wall h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 860;
  letter-spacing: -0.045em;
}

.spotlight-card p,
.social-card li,
.message-wall p {
  color: #4f3b49;
  line-height: 1.7;
}

.spotlight-card strong {
  color: var(--pink-dark);
}

.social-card ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
  padding-left: 22px;
}

.social-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-tags span {
  padding: 9px 12px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 242, 247, 0.36));
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 780;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.86);
}

.messages {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.messages p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 247, 251, 0.34));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.86),
    0 0 0 3px rgba(255, 255, 255, 0.18);
}

.message-form {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
}

.message-form label {
  color: var(--rose-ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.message-form input,
.message-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 202, 219, 0.82);
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 252, 0.44));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -10px 18px rgba(182, 94, 124, 0.035);
}

.message-form textarea {
  min-height: 48px;
  resize: vertical;
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: var(--pink);
  box-shadow: var(--focus-ring);
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 860ms var(--soft-ease),
    transform 860ms var(--soft-ease),
    filter 860ms var(--soft-ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.message-form .primary-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 50px;
  font-size: 17px;
}

.privacy-note {
  max-width: 900px;
  margin: 0 auto 72px;
  padding: 28px 34px;
}

.privacy-note p {
  max-width: 680px;
}

.privacy-note ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    width: min(720px, calc(100% - 24px));
    padding: 10px 14px;
    border-radius: 999px;
    gap: 14px;
  }

  .nav-links {
    justify-content: flex-end;
    justify-self: end;
    max-width: min(420px, 52vw);
    gap: 6px;
    padding: 5px;
    overflow-x: auto;
  }

  .nav-links a {
    padding: 9px 13px;
    white-space: nowrap;
  }

  .ghost-button {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: min(720px, calc(100dvh - 96px));
    padding: 38px 20px 190px;
  }

  .hero-glow {
    inset: 24px 5% 24px;
  }

  .hero-copy {
    margin-top: -12px;
  }

  .hero-stickers {
    width: min(154px, 48vw);
    margin-bottom: -4px;
  }

  .hero-landscape {
    width: 100%;
    max-height: none;
  }

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

  .page-shell {
    margin-top: 36px;
  }

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

  .template-grid {
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    justify-content: stretch;
    overflow-x: visible;
  }

  .option-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  body {
    background:
      url("assets/fairy-landscape.png") center bottom / cover no-repeat scroll,
      radial-gradient(circle at 18% 18%, rgba(253, 228, 220, 0.58), transparent 26%),
      radial-gradient(circle at 86% 24%, rgba(246, 184, 192, 0.3), transparent 28%),
      linear-gradient(180deg, #fffdfb 0%, #fffdfb 34%, #fff1f3 100%),
      var(--bg);
  }

  .announcement {
    justify-content: flex-start;
    min-height: 36px;
    padding: 7px 42px 7px 14px;
    font-size: 13px;
  }

  .announcement button {
    right: 14px;
  }

  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 9px 10px;
    top: 8px;
  }

  .brand {
    font-size: 21px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 17px;
  }

  .nav-links {
    gap: 6px;
    font-size: 14px;
    padding: 5px;
  }

  .hero {
    min-height: 660px;
    padding: 26px 14px 178px;
  }

  .hero-glow {
    inset: 12px 3% 12px;
    border-radius: 28px;
  }

  .hero h1 {
    grid-template-columns: max-content minmax(0, max-content) max-content;
    font-size: clamp(35px, 10vw, 54px);
    gap: 6px;
    letter-spacing: 0;
  }

  .hero h1 .est,
  .hero h1 .year {
    font-size: clamp(18px, 5.4vw, 25px);
  }

  .hero h1 .word {
    padding-inline: 0.1em;
  }

  .word-stroke-outer {
    -webkit-text-stroke-width: 10px;
  }

  .word-stroke-inner {
    -webkit-text-stroke-width: 6px;
  }

  .hero-copy::before {
    top: 138px;
    left: 4%;
  }

  .hero-copy::after {
    top: 114px;
    right: 3%;
  }

  .hero-copy p {
    font-size: 16px;
    margin: 16px auto 22px;
    padding: 7px 16px 9px;
  }

  .primary-button {
    width: min(280px, 100%);
    min-width: 0;
  }

  .message-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .message-form label {
    margin-top: 4px;
  }

  .workspace {
    padding: 0 12px;
  }

  .page-shell {
    margin: 28px auto 48px;
    padding: 0 12px;
  }

  .panel,
  .community,
  .privacy-note {
    border-radius: 24px;
    box-shadow:
      0 20px 54px rgba(85, 50, 118, 0.1),
      inset 0 1px 1px rgba(255, 255, 255, 0.9),
      0 0 0 5px rgba(255, 255, 255, 0.3);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 16px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .section-heading p {
    margin-top: 4px;
  }

  .layout-controls {
    width: 100%;
    justify-content: space-between;
  }

  .template-grid {
    width: 100%;
    max-width: 100%;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0 0 12px;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .template-card {
    min-height: 318px;
    border-radius: 22px;
  }

  .template-tabs {
    width: 100%;
  }

  .mini-strip {
    width: 92px;
  }

  .option-panel {
    gap: 14px;
    margin-top: 12px;
  }

  .settings-preview {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

  .camera-preview {
    min-height: 250px;
    border-width: 6px;
    border-radius: 24px;
  }

  .camera-stage-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .camera-stage-head p {
    max-width: none;
    border-radius: 18px;
  }

  .camera-actions {
    flex-direction: column;
    gap: 10px;
  }

  .follow-card {
    align-items: stretch;
    flex-direction: column;
  }

  .sticky-template-cta {
    bottom: 10px;
    width: calc(100% - 20px);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .panel,
  .privacy-note,
  .community,
  .template-card,
  .mini-strip,
  .camera-preview,
  .follow-card,
  .spotlight-card,
  .social-card,
  .message-wall {
    background: rgba(255, 255, 255, 0.9);
  }
}
