/* =========================================================
   New Year Wish Jar — a warm, paper-crafted 2027 wish jar
   Lightweight CSS/SVG only. No external fonts or media.
   ========================================================= */

:root {
  --night-950: #120f16;
  --night-900: #17131d;
  --night-800: #241a26;
  --night-700: #34232e;
  --night-600: #4b3034;
  --cream-50: #fbf5e9;
  --cream-100: #f6ecda;
  --cream-200: #eddec5;
  --cream-300: #e1cfb1;
  --paper: #fffdf7;
  --ink: #342a2b;
  --ink-soft: #72605a;
  --ink-muted: #9a877a;
  --gold: #dfb46c;
  --gold-deep: #a87737;
  --gold-pale: #f3dfb9;
  --rose: #dca0a6;
  --sage: #90b9a8;
  --sky: #9dbdd0;
  --lilac: #b8a0ce;
  --line: rgba(99, 76, 57, 0.16);
  --line-light: rgba(255, 243, 220, 0.16);
  --shadow-soft: 0 24px 70px rgba(72, 47, 30, 0.13);
  --shadow-deep: 0 40px 110px rgba(8, 5, 12, 0.42);
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong",
    "Noto Serif SC", "Noto Serif TC", "SimSun", Georgia, serif;
  --font-sans: "Avenir Next", "PingFang SC", "Noto Sans SC", "Microsoft YaHei",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas,
    monospace;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shell: min(1180px, calc(100vw - 48px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  color: var(--ink);
  background: var(--cream-50);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

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

::selection {
  color: var(--night-900);
  background: var(--gold-pale);
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.app-shell--night :focus-visible {
  outline-color: var(--gold);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  color: var(--night-900);
  background: var(--gold-pale);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.hidden {
  display: none !important;
}

/* ---------- Boot ---------- */

.boot-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  color: var(--gold-pale);
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 167, 96, 0.2), transparent 36%),
    linear-gradient(145deg, #120f16, #241923 55%, #392229);
}

.boot-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 181, 107, 0.18), transparent 68%);
  filter: blur(4px);
  animation: boot-breathe 3s ease-in-out infinite;
}

.boot-jar {
  position: relative;
  width: 76px;
  height: 96px;
  border: 1.5px solid rgba(249, 232, 198, 0.68);
  border-top: 0;
  border-radius: 12px 12px 34px 34px;
  background: linear-gradient(135deg, rgba(255, 250, 237, 0.18), rgba(255, 242, 212, 0.03));
  box-shadow: inset 8px 0 14px rgba(255, 255, 255, 0.06);
}

.boot-jar::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 20px;
  left: 16px;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

.boot-lid {
  position: absolute;
  top: -10px;
  left: 6px;
  right: 6px;
  height: 10px;
  border: 1.5px solid rgba(249, 232, 198, 0.7);
  border-radius: 8px 8px 3px 3px;
  background: rgba(220, 177, 112, 0.25);
}

.boot-star {
  position: absolute;
  top: 37px;
  left: 50%;
  color: var(--gold);
  font-size: 24px;
  transform: translateX(-50%);
  animation: boot-star 2.2s ease-in-out infinite;
}

.boot-brand {
  margin: 28px 0 18px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.boot-line {
  width: 86px;
  height: 1px;
  overflow: hidden;
  background: rgba(244, 225, 194, 0.18);
}

.boot-line::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  animation: boot-line 1.5s ease-in-out infinite;
}

.noscript-card {
  max-width: 560px;
  margin: 12vh auto;
  padding: 32px;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ---------- Reusable type & UI ---------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.app-shell--night .eyebrow,
.modal-backdrop--night .eyebrow,
.welcome-panel .eyebrow {
  color: var(--gold);
}

.muted {
  color: var(--ink-soft);
}

.app-shell--night .muted {
  color: rgba(245, 228, 204, 0.62);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  color: #6c5234;
  background: rgba(236, 210, 166, 0.28);
  border: 1px solid rgba(148, 111, 63, 0.16);
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.app-shell--night .tag-chip {
  color: var(--gold-pale);
  background: rgba(241, 213, 165, 0.09);
  border-color: rgba(240, 211, 163, 0.16);
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 24px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

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

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.btn:disabled {
  opacity: 0.52;
}

.btn--primary {
  color: #fff8e9;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 235, 198, 0.16), transparent 38%),
    var(--night-900);
  box-shadow:
    0 12px 26px rgba(38, 24, 28, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.14);
}

.btn--primary:hover:not(:disabled) {
  box-shadow:
    0 18px 34px rgba(38, 24, 28, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

.btn--gold {
  color: #2d1c1c;
  background: linear-gradient(135deg, #f0d29b, #d7aa62);
  border-color: rgba(255, 245, 224, 0.24);
  box-shadow:
    0 14px 34px rgba(11, 7, 12, 0.26),
    inset 0 1px rgba(255, 250, 240, 0.55);
}

.btn--secondary {
  color: inherit;
  background: rgba(255, 253, 247, 0.46);
  border-color: rgba(92, 68, 50, 0.24);
}

.app-shell--night .btn--secondary {
  background: rgba(255, 247, 232, 0.06);
  border-color: rgba(245, 225, 195, 0.2);
}

.btn--ghost {
  min-height: 42px;
  padding: 9px 14px;
  color: var(--ink-soft);
  background: transparent;
  border-color: transparent;
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(101, 76, 53, 0.06);
  transform: none;
}

.btn--small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn--wide {
  width: 100%;
}

.btn--danger {
  color: #945252;
  background: rgba(160, 87, 87, 0.07);
  border-color: rgba(158, 84, 84, 0.2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-deep);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(168, 119, 55, 0.3);
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: inherit;
  background: rgba(255, 253, 247, 0.45);
  border: 1px solid rgba(101, 77, 55, 0.14);
  border-radius: 50%;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 253, 247, 0.8);
  transform: rotate(-3deg);
}

.app-shell--night .icon-btn {
  background: rgba(255, 246, 230, 0.07);
  border-color: rgba(255, 241, 218, 0.13);
}

.app-shell--night .icon-btn:hover {
  background: rgba(255, 246, 230, 0.12);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 30;
  padding-top: max(14px, env(safe-area-inset-top));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  min-height: 68px;
  margin: 0 auto;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.app-shell--night .brand-lockup {
  color: var(--gold-pale);
}

.brand-mark {
  width: 34px;
  height: 40px;
  overflow: visible;
  color: currentColor;
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.brand-lockup__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
}

.brand-lockup__rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 98, 53, 0.4), transparent);
}

.app-shell--night .brand-lockup__rule {
  background: linear-gradient(90deg, rgba(239, 207, 153, 0.42), transparent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.relay-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.relay-link:hover {
  color: var(--ink);
  background: rgba(255, 253, 246, 0.5);
  border-color: rgba(99, 76, 57, 0.3);
}

.relay-link .icon {
  width: 13px;
  height: 13px;
}

.app-shell--night .relay-link {
  color: rgba(247, 227, 197, 0.7);
  border-color: rgba(247, 227, 197, 0.14);
}

.app-shell--night .relay-link:hover {
  color: var(--gold-pale);
  background: rgba(255, 246, 231, 0.06);
  border-color: rgba(247, 227, 197, 0.26);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: rgba(255, 253, 247, 0.46);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.app-shell--night .lang-switch {
  background: rgba(255, 245, 230, 0.06);
  border-color: rgba(255, 242, 220, 0.13);
}

.lang-switch button {
  min-width: 34px;
  height: 29px;
  padding: 0 8px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--night-900);
  background: var(--gold-pale);
  box-shadow: 0 3px 10px rgba(70, 45, 25, 0.12);
}

.app-shell--night .lang-switch button {
  color: rgba(247, 228, 198, 0.56);
}

.app-shell--night .lang-switch button[aria-pressed="true"] {
  color: #2a1b1c;
  background: var(--gold-pale);
}

/* ---------- Home ---------- */

.app-shell--home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(226, 184, 117, 0.18), transparent 28%),
    radial-gradient(circle at 4% 42%, rgba(190, 158, 140, 0.11), transparent 34%),
    linear-gradient(180deg, #fcf7ed 0%, #f8f0e2 48%, #f1e3ce 100%);
}

.app-shell--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(96deg, transparent 0 7px, rgba(112, 82, 54, 0.035) 7px 8px),
    repeating-linear-gradient(6deg, transparent 0 11px, rgba(255, 255, 255, 0.22) 11px 12px);
  mask-image: linear-gradient(180deg, black, transparent 80%);
}

.home-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  align-items: center;
  width: var(--shell);
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  gap: clamp(34px, 5vw, 78px);
  padding: clamp(32px, 6vh, 74px) 0 clamp(48px, 8vh, 96px);
}

.hero-copy {
  position: relative;
  max-width: 650px;
  animation: rise-in 0.8s var(--ease-out) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(22px, 4vh, 38px);
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "✦";
  font-size: 0.8rem;
}

.hero-copy h1 {
  margin: 0;
  color: #322524;
  font-family: var(--font-serif);
  font-size: clamp(2.95rem, 5.7vw, 5.55rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 em {
  position: relative;
  color: #8c5d36;
  font-style: normal;
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  right: 1%;
  bottom: 0.07em;
  left: 2%;
  height: 0.12em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(223, 180, 108, 0.15), rgba(223, 180, 108, 0.7), rgba(223, 180, 108, 0.1));
  transform: rotate(-0.8deg);
  z-index: -1;
}

.hero-lede {
  max-width: 520px;
  margin: 26px 0 30px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions .btn {
  min-height: 55px;
  padding-right: 27px;
  padding-left: 27px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  margin-top: 21px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(660px, 72vh);
  padding: 32px 24px 28px;
  overflow: hidden;
  border: 1px solid rgba(241, 216, 174, 0.18);
  border-radius: 42px 42px 90px 42px;
  background:
    radial-gradient(circle at 54% 42%, rgba(244, 199, 123, 0.2), transparent 34%),
    radial-gradient(circle at 72% 100%, rgba(175, 111, 89, 0.23), transparent 45%),
    linear-gradient(145deg, #17131c 0%, #251924 48%, #482c31 100%);
  box-shadow:
    var(--shadow-deep),
    inset 0 1px rgba(255, 246, 227, 0.12);
  animation: rise-in 0.95s 0.08s var(--ease-out) both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 233, 192, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 68% 12%, rgba(255, 233, 192, 0.72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 34%, rgba(255, 233, 192, 0.7) 0 1.2px, transparent 2px),
    radial-gradient(circle at 28% 72%, rgba(255, 233, 192, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91% 82%, rgba(255, 233, 192, 0.55) 0 1px, transparent 1.8px),
    radial-gradient(circle at 42% 9%, rgba(255, 233, 192, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 9% 56%, rgba(255, 233, 192, 0.4) 0 1px, transparent 1.8px);
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(247, 223, 182, 0.08);
  border-radius: 30px 30px 74px 30px;
  pointer-events: none;
}

.hero-visual__ring {
  position: absolute;
  width: min(510px, 92%);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 219, 177, 0.08);
  border-radius: 50%;
}

.hero-visual__ring::before,
.hero-visual__ring::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(244, 219, 177, 0.07);
  border-radius: 50%;
}

.hero-visual__ring::before {
  inset: 13%;
}

.hero-visual__ring::after {
  inset: 27%;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(440px, 88%);
  margin-top: -4px;
}

.hero-stage .jar-stage {
  width: 100%;
}

.hero-stage-caption {
  position: absolute;
  right: 4px;
  bottom: 28px;
  left: 4px;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.stage-seal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: rgba(250, 232, 200, 0.83);
  border: 1px solid rgba(240, 211, 162, 0.2);
  border-radius: 999px;
  background: rgba(24, 16, 25, 0.52);
  backdrop-filter: blur(8px);
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stage-seal::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(223, 180, 108, 0.88);
}

.hero-floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: rgba(250, 237, 215, 0.8);
  background: rgba(255, 247, 231, 0.06);
  border: 1px solid rgba(246, 224, 187, 0.13);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  font-family: var(--font-serif);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hero-floating-note--top {
  top: 54px;
  right: 30px;
  transform: rotate(5deg);
}

.hero-floating-note--left {
  bottom: 80px;
  left: 18px;
  transform: rotate(-5deg);
}

.hero-floating-note span {
  color: var(--gold);
}

.hero-stage-hint {
  position: absolute;
  z-index: 3;
  top: 34px;
  left: 36px;
  max-width: 150px;
  color: rgba(245, 225, 194, 0.46);
  font-size: 0.65rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.home-content {
  width: var(--shell);
  margin: 0 auto;
  padding-bottom: clamp(60px, 10vh, 110px);
}

/* Relay strip */

.relay-strip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin: 10px 0 clamp(64px, 9vh, 100px);
  padding: 24px 30px;
  color: var(--cream-50);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(221, 176, 107, 0.16), transparent 35%),
    linear-gradient(105deg, #24201d, #312521 62%, #4a312b);
  border: 1px solid rgba(228, 191, 130, 0.14);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(53, 34, 22, 0.16);
}

.relay-strip::after {
  content: "";
  position: absolute;
  right: 38%;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(236, 204, 151, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.relay-strip__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--gold);
  border: 1px solid rgba(237, 207, 155, 0.22);
  border-radius: 50%;
  background: rgba(255, 244, 224, 0.055);
}

.relay-strip__copy {
  min-width: 0;
}

.relay-strip__eyebrow {
  margin: 0 0 5px;
  color: rgba(235, 201, 144, 0.72);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.relay-strip h2 {
  margin: 0;
  color: rgba(255, 247, 233, 0.93);
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 400;
  line-height: 1.5;
}

.relay-strip__body {
  margin: 5px 0 0;
  color: rgba(247, 230, 202, 0.5);
  font-size: 0.77rem;
  line-height: 1.6;
}

.relay-strip__path {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(249, 231, 199, 0.8);
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-style: italic;
  white-space: nowrap;
}

.relay-strip__arrow {
  color: var(--gold);
  font-size: 0.9rem;
}

.relay-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-underline-offset: 4px;
}

.relay-strip__link:hover {
  text-decoration: underline;
}

.relay-strip__cta {
  flex: 0 0 auto;
}

/* How it works */

.how-section {
  padding-bottom: 24px;
}

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

.section-heading h2 {
  margin: 0;
  color: #372827;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.how-card {
  position: relative;
  min-height: 240px;
  padding: 27px 26px;
  overflow: hidden;
  background: rgba(255, 252, 245, 0.6);
  border: 1px solid rgba(112, 82, 52, 0.13);
  border-radius: var(--radius-lg);
  transition:
    transform 0.35s var(--ease-out),
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.how-card:hover {
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 20px 45px rgba(87, 58, 34, 0.08);
  transform: translateY(-4px);
}

.how-card__number {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.12em;
}

.how-card h3 {
  margin: 0 0 8px;
  color: #3d2d2a;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.how-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.8;
}

.how-card__motif {
  position: absolute;
  top: 18px;
  right: 19px;
  width: 54px;
  height: 54px;
  color: rgba(142, 97, 55, 0.25);
}

.how-card__motif svg {
  width: 100%;
  height: 100%;
}

.home-quote {
  margin: clamp(58px, 9vh, 92px) auto 0;
  max-width: 680px;
  text-align: center;
}

.home-quote__mark {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.home-quote p {
  margin: 12px 0 0;
  color: #6f5849;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-style: italic;
  line-height: 1.65;
}

/* Footer */

.site-footer {
  width: var(--shell);
  margin: 0 auto;
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand-lockup__name {
  font-size: 1rem;
}

.site-footer .brand-mark {
  width: 26px;
  height: 31px;
}

.footer-note {
  color: var(--ink-muted);
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-style: italic;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-style: normal;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Jar visual ---------- */

.jar-stage {
  --jar-glow: rgba(240, 194, 113, 0.28);
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 520 / 640;
  margin: 0 auto;
  isolation: isolate;
}

.jar-stage[data-body="frost"] {
  --jar-glow: rgba(174, 219, 205, 0.25);
}

.jar-stage[data-body="blush"] {
  --jar-glow: rgba(232, 171, 169, 0.24);
}

.jar-stage[data-body="sage"] {
  --jar-glow: rgba(183, 208, 161, 0.22);
}

.jar-stage[data-body="dusk"] {
  --jar-glow: rgba(201, 166, 188, 0.25);
}

.jar-stage[data-body="sky"] {
  --jar-glow: rgba(166, 205, 227, 0.24);
}

.jar-aura {
  position: absolute;
  inset: 4% -8% 5%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 54%, var(--jar-glow), transparent 39%),
    radial-gradient(circle at 50% 54%, rgba(226, 171, 115, 0.08), transparent 66%);
  filter: blur(18px);
  pointer-events: none;
}

.jar-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.jar-stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 238, 204, 0.8);
  box-shadow: 0 0 10px rgba(255, 231, 184, 0.55);
}

.jar-stars span:nth-child(1) {
  top: 20%;
  left: 11%;
}

.jar-stars span:nth-child(2) {
  top: 9%;
  left: 74%;
  width: 2px;
  height: 2px;
}

.jar-stars span:nth-child(3) {
  top: 44%;
  left: 92%;
  width: 2px;
  height: 2px;
}

.jar-stars span:nth-child(4) {
  top: 38%;
  left: 4%;
}

.jar-stars span:nth-child(5) {
  top: 77%;
  left: 95%;
}

.jar-stars span:nth-child(6) {
  top: 88%;
  left: 10%;
  width: 2px;
  height: 2px;
}

.jar-svg {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.jar-svg--back {
  z-index: 1;
}

.jar-svg--front {
  z-index: 4;
}

.jar-notes-clip {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: polygon(23% 19%, 77% 19%, 80% 28%, 91% 38%, 91% 73%, 82% 85%, 72% 90%, 28% 90%, 18% 85%, 9% 73%, 9% 38%, 20% 27%);
}

.jar-notes {
  position: absolute;
  inset: 0;
}

.paper-note {
  position: absolute;
  z-index: 2;
  width: 17%;
  padding: 0;
  background: none;
  border: 0;
  filter: drop-shadow(0 7px 7px rgba(16, 9, 16, 0.24));
  transform: translate(-50%, -50%) rotate(var(--rot)) scale(var(--scale));
  transition:
    transform 0.28s var(--ease-out),
    filter 0.28s ease;
  -webkit-tap-highlight-color: transparent;
}

.paper-note .origami-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

button.paper-note {
  cursor: pointer;
}

button.paper-note:hover,
button.paper-note:focus-visible {
  z-index: 6;
  filter: drop-shadow(0 10px 12px rgba(16, 9, 16, 0.3));
  transform: translate(-50%, -58%) rotate(var(--rot)) scale(calc(var(--scale) * 1.09));
}

.paper-note--static {
  pointer-events: none;
}

.paper-note__flag {
  position: absolute;
  top: -2px;
  right: -3px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #2f1d1d;
  background: linear-gradient(135deg, #f2d69f, #d7ab63);
  border: 1px solid rgba(255, 249, 235, 0.7);
  border-radius: 50% 50% 50% 4px;
  box-shadow: 0 2px 5px rgba(14, 8, 14, 0.22);
  font-family: var(--font-serif);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(8deg);
}

.jar-empty-glow {
  position: absolute;
  top: 57%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 219, 165, 0.25), transparent 68%);
  transform: translate(-50%, -50%);
}

.jar-lid {
  transition: transform 0.9s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}

.jar-stage.is-open .jar-lid {
  transform: translate(36px, -22px) rotate(11deg);
}

.jar-overflow {
  position: absolute;
  right: 13%;
  bottom: 13%;
  z-index: 5;
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  color: var(--night-900);
  background: var(--gold-pale);
  border: 1px solid rgba(255, 248, 235, 0.8);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(13, 8, 14, 0.24);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
}

.jar-stage.is-open .jar-tag-seal {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.jar-tag-seal {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.jar-stage.is-open .jar-aura {
  background:
    radial-gradient(circle at 50% 54%, rgba(242, 194, 107, 0.42), transparent 39%),
    radial-gradient(circle at 50% 54%, rgba(226, 171, 115, 0.16), transparent 66%);
}

/* ---------- Jar page ---------- */

.app-shell--night {
  position: relative;
  min-height: 100vh;
  color: var(--cream-50);
  background:
    radial-gradient(circle at 50% 25%, rgba(228, 177, 101, 0.1), transparent 28%),
    radial-gradient(circle at 7% 74%, rgba(151, 86, 77, 0.12), transparent 33%),
    linear-gradient(160deg, #120f16 0%, #19131c 42%, #24171e 100%);
}

.app-shell--night::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 16%, rgba(255, 232, 189, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 8%, rgba(255, 232, 189, 0.54) 0 1px, transparent 1.5px),
    radial-gradient(circle at 89% 31%, rgba(255, 232, 189, 0.45) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 24% 59%, rgba(255, 232, 189, 0.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at 94% 78%, rgba(255, 232, 189, 0.38) 0 1px, transparent 1.5px);
}

.app-shell--night .site-header {
  border-bottom: 1px solid rgba(246, 221, 181, 0.07);
}

.jar-main {
  position: relative;
  z-index: 1;
  width: var(--shell);
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 0 calc(138px + env(safe-area-inset-bottom));
}

.jar-loading,
.error-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(640px, 70vh);
  text-align: center;
}

.jar-loading__art {
  position: relative;
  width: 86px;
  height: 110px;
  margin-bottom: 24px;
  border: 1px solid rgba(249, 230, 196, 0.32);
  border-radius: 12px 12px 34px 34px;
  background: linear-gradient(145deg, rgba(255, 247, 231, 0.09), rgba(255, 244, 219, 0.01));
  animation: jar-float 2.6s ease-in-out infinite;
}

.jar-loading__art::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 8px;
  right: 8px;
  height: 9px;
  border: 1px solid rgba(249, 230, 196, 0.3);
  border-radius: 7px;
}

.jar-loading__art::after {
  content: "✦";
  position: absolute;
  top: 38px;
  left: 50%;
  color: var(--gold);
  font-size: 23px;
  transform: translateX(-50%);
}

.jar-loading p {
  color: rgba(245, 226, 197, 0.65);
  font-family: var(--font-serif);
  font-size: 0.9rem;
}

.error-state h1,
.empty-state h1 {
  margin: 0 0 12px;
  color: var(--gold-pale);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
}

.error-state p,
.empty-state p {
  max-width: 460px;
  margin: 0 0 26px;
  color: rgba(246, 228, 201, 0.6);
}

.error-state__mark {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  margin-bottom: 25px;
  color: rgba(235, 207, 160, 0.55);
  border: 1px solid rgba(241, 218, 179, 0.15);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 2rem;
}

.jar-heading {
  max-width: 850px;
  margin: 0 auto 26px;
  text-align: center;
  animation: rise-in 0.7s var(--ease-out) both;
}

.jar-heading__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 5px 11px;
  border: 1px solid rgba(244, 222, 185, 0.16);
  border-radius: 999px;
  color: rgba(247, 229, 199, 0.72);
  background: rgba(255, 248, 235, 0.045);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--gold {
  color: #2e1e1e;
  background: var(--gold-pale);
  border-color: transparent;
}

.badge--outline {
  color: rgba(244, 218, 177, 0.74);
}

.badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(223, 180, 108, 0.6);
}

.jar-heading h1 {
  margin: 0;
  color: #fff6e6;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.jar-heading__count {
  margin: 13px 0 0;
  color: rgba(246, 229, 202, 0.57);
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-style: italic;
}

.countdown-card {
  width: min(760px, 100%);
  margin: 0 auto clamp(26px, 4vh, 42px);
  padding: 20px 24px 18px;
  border: 1px solid rgba(247, 224, 185, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 180, 105, 0.1), transparent 48%),
    rgba(255, 248, 235, 0.035);
  backdrop-filter: blur(8px);
  animation: rise-in 0.7s 0.05s var(--ease-out) both;
}

.countdown-card--open {
  border-color: rgba(244, 215, 167, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(229, 180, 105, 0.19), transparent 58%),
    rgba(255, 248, 235, 0.05);
}

.countdown-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.countdown-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(243, 221, 186, 0.57);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-card__label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(223, 180, 108, 0.75);
}

.countdown-card__zone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(241, 217, 180, 0.46);
  font-size: 0.67rem;
  letter-spacing: 0.02em;
}

.countdown-card__zone strong {
  color: rgba(247, 228, 195, 0.7);
  font-weight: 500;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown__unit {
  position: relative;
  padding: 7px 4px 3px;
  text-align: center;
}

.countdown__unit:not(:last-child)::after {
  content: ":";
  position: absolute;
  top: 27%;
  right: -8px;
  color: rgba(240, 213, 169, 0.24);
  font-family: var(--font-serif);
  font-size: 1.55rem;
}

.countdown__value {
  display: block;
  color: #fff4df;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.countdown__label {
  display: block;
  margin-top: 3px;
  color: rgba(241, 217, 179, 0.43);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(242, 216, 171, 0.08);
  color: rgba(244, 223, 190, 0.43);
  font-size: 0.68rem;
}

.countdown-card__bottom a {
  color: var(--gold);
}

.opened-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.opened-banner__title {
  margin: 0;
  color: #fff3dc;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.opened-banner__sub {
  margin: 5px 0 0;
  color: rgba(242, 219, 181, 0.5);
  font-size: 0.75rem;
}

.jar-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 215px) minmax(300px, 1fr) minmax(140px, 215px);
  align-items: center;
  gap: clamp(14px, 3vw, 42px);
  margin: 0 auto;
  padding: 6px 0 24px;
}

.jar-scene__center {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
}

.jar-scene__center .jar-stage {
  width: min(440px, 100%);
  animation: jar-arrive 1.05s 0.1s var(--ease-out) both;
}

.jar-scene-hint {
  margin: 4px 0 0;
  color: rgba(244, 224, 191, 0.38);
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.02em;
  text-align: center;
}

.scene-card {
  position: relative;
  padding: 19px;
  border: 1px solid rgba(245, 222, 183, 0.11);
  border-radius: 18px;
  background: rgba(255, 247, 232, 0.032);
  backdrop-filter: blur(6px);
}

.scene-card--tags {
  align-self: end;
  margin-bottom: 20px;
}

.scene-card__eyebrow {
  margin: 0 0 12px;
  color: rgba(238, 207, 151, 0.55);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scene-card h3 {
  margin: 0 0 13px;
  color: rgba(251, 237, 213, 0.87);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
}

.scene-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(244, 221, 183, 0.08);
}

.scene-stat:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.scene-stat span {
  color: rgba(244, 223, 191, 0.53);
  font-size: 0.72rem;
}

.scene-stat strong {
  color: var(--gold-pale);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.scene-tag-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.scene-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(247, 228, 195, 0.65);
  font-size: 0.7rem;
}

.scene-tag__bar {
  flex: 1;
  height: 2px;
  margin: 0 7px;
  background: rgba(241, 215, 171, 0.08);
  border-radius: 99px;
}

.scene-tag__bar i {
  display: block;
  width: var(--fill, 50%);
  height: 100%;
  background: linear-gradient(90deg, rgba(222, 175, 100, 0.5), rgba(222, 175, 100, 0.12));
  border-radius: inherit;
}

.scene-tag em {
  color: rgba(238, 209, 158, 0.42);
  font-family: var(--font-serif);
  font-size: 0.67rem;
  font-style: normal;
}

.scene-lock {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: rgba(244, 223, 190, 0.5);
  font-size: 0.7rem;
  line-height: 1.65;
}

.scene-lock__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 3px;
  color: rgba(236, 203, 147, 0.7);
  border: 1px solid rgba(242, 216, 171, 0.14);
  border-radius: 50%;
}

.jar-tag-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 2px auto 0;
}

.jar-tag-ribbon .tag-chip {
  color: rgba(248, 230, 197, 0.72);
  background: rgba(247, 226, 189, 0.055);
  border-color: rgba(247, 226, 189, 0.1);
}

.jar-tag-ribbon .tag-chip em {
  margin-left: 5px;
  color: rgba(237, 208, 156, 0.43);
  font-family: var(--font-serif);
  font-size: 0.72em;
  font-style: normal;
}

.jar-read-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto 0;
  flex-wrap: wrap;
}

.jar-owner-note {
  margin: 19px auto 0;
  color: rgba(242, 221, 185, 0.36);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-style: italic;
  text-align: center;
}

/* Action dock */

.action-dock-wrap {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(18, 15, 22, 0.82) 40%);
}

.action-dock {
  display: flex;
  align-items: stretch;
  width: min(680px, 100%);
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(253, 242, 221, 0.17);
  border-radius: 23px;
  background: rgba(248, 239, 223, 0.94);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.dock-action {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 53px;
  padding: 8px 12px;
  color: #5d4b42;
  background: transparent;
  border: 0;
  border-radius: 17px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.dock-action:hover {
  color: var(--ink);
  background: rgba(91, 66, 44, 0.06);
}

.dock-action .icon {
  width: 19px;
  height: 19px;
}

.dock-action--primary {
  color: #fff7e7;
  background: var(--night-900);
  box-shadow: 0 8px 18px rgba(32, 21, 24, 0.18);
}

.dock-action--primary:hover {
  color: #fffaf0;
  background: #251b23;
}

.dock-action--gold {
  color: #2c1d1c;
  background: linear-gradient(135deg, #f1d49f, #dcb16b);
}

.dock-action--gold:hover {
  color: #2c1d1c;
  background: linear-gradient(135deg, #f6dcaa, #e3ba77);
}

.dock-divider {
  width: 1px;
  margin: 12px 1px;
  background: rgba(95, 71, 49, 0.12);
}

/* ---------- Modal system ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background: rgba(16, 11, 16, 0.64);
  backdrop-filter: blur(7px);
  animation: fade-in 0.22s ease both;
}

.modal-backdrop--drawer {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  background: rgba(16, 11, 16, 0.55);
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(90vh, 940px);
  overflow: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(229, 190, 128, 0.14), transparent 28%),
    linear-gradient(180deg, #fdf8ef, #f8efdf);
  border: 1px solid rgba(255, 251, 243, 0.8);
  border-radius: 30px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  animation: modal-in 0.34s var(--ease-out) both;
  overscroll-behavior: contain;
}

.modal-card--wide {
  width: min(820px, 100%);
}

.modal-card--drawer {
  width: min(570px, 100%);
  height: 100%;
  max-height: none;
  margin-left: auto;
  border-radius: 30px 0 0 30px;
  animation: drawer-in 0.38s var(--ease-out) both;
}

.modal-card--reader {
  width: min(760px, 100%);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 27px 30px 16px;
  background: #fdf8ef;
  box-shadow: 0 10px 22px -22px rgba(59, 39, 24, 0.35);
}

.modal-card--drawer .modal-header {
  padding-top: max(25px, env(safe-area-inset-top));
}

.modal-heading {
  min-width: 0;
}

.modal-heading .eyebrow {
  margin-bottom: 7px;
}

.modal-title {
  margin: 0;
  color: #352825;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.modal-subtitle {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.75;
}

.modal-close {
  flex: 0 0 auto;
  margin-top: 2px;
}

.modal-body {
  padding: 22px 30px 30px;
}

.modal-card--drawer .modal-body {
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}

.modal-note {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 0.73rem;
  line-height: 1.65;
  text-align: center;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.modal-actions .btn {
  flex: 1;
  min-width: 150px;
}

/* Forms */

.form-stack {
  display: grid;
  gap: 22px;
}

.form-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-size: 0.73rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

.step-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(141, 103, 61, 0.18), transparent);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #493a34;
  font-size: 0.8rem;
  font-weight: 600;
}

.field__hint {
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.field__hint--count {
  font-variant-numeric: tabular-nums;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 15px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.8);
  border: 1px solid rgba(104, 79, 57, 0.18);
  border-radius: 13px;
  appearance: none;
  font-size: 0.9rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #b09d8d;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: rgba(170, 123, 64, 0.55);
  box-shadow: 0 0 0 3px rgba(217, 176, 112, 0.13);
}

.select {
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #8d7563 50%),
    linear-gradient(135deg, #8d7563 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 21px,
    calc(100% - 14px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

.textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.8;
}

.input--code {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 13px;
  color: #8c4b4b;
  background: rgba(170, 87, 87, 0.07);
  border: 1px solid rgba(157, 82, 82, 0.16);
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.6;
}

.form-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #fff8ef;
  background: #a45f5f;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 700;
}

.form-success {
  margin: 0;
  padding: 10px 13px;
  color: #427361;
  background: rgba(95, 148, 126, 0.09);
  border: 1px solid rgba(95, 148, 126, 0.18);
  border-radius: 10px;
  font-size: 0.76rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Choice groups */

.type-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice-card input,
.swatch-input,
.theme-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-card__surface {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 75px;
  padding: 13px 15px;
  background: rgba(255, 253, 247, 0.63);
  border: 1px solid rgba(104, 79, 57, 0.14);
  border-radius: 15px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.choice-card:hover .choice-card__surface {
  background: rgba(255, 253, 247, 0.95);
}

.choice-card input:checked + .choice-card__surface {
  background: #fffaf0;
  border-color: rgba(171, 122, 61, 0.65);
  box-shadow: 0 0 0 3px rgba(217, 176, 112, 0.1);
}

.choice-card input:focus-visible + .choice-card__surface {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.choice-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--gold-deep);
  border: 1px solid rgba(171, 122, 61, 0.2);
  border-radius: 50%;
  background: rgba(242, 220, 184, 0.23);
}

.choice-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.choice-card__text strong {
  color: #4c3930;
  font-family: var(--font-serif);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.4;
}

.choice-card__text span {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.choice-card__flag {
  position: absolute;
  top: 9px;
  right: 10px;
  color: rgba(155, 96, 62, 0.62);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.shape-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.shape-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.shape-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.shape-choice__surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 12px 8px 10px;
  text-align: center;
  background: rgba(255, 253, 247, 0.6);
  border: 1px solid rgba(104, 79, 57, 0.14);
  border-radius: 14px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.shape-choice:hover .shape-choice__surface {
  background: rgba(255, 253, 247, 0.9);
}

.shape-choice input:checked + .shape-choice__surface {
  background: #fffaf0;
  border-color: rgba(171, 122, 61, 0.6);
  box-shadow: inset 0 0 0 2px rgba(217, 176, 112, 0.1);
}

.shape-choice input:focus-visible + .shape-choice__surface {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.shape-choice__art {
  width: 47px;
  height: 44px;
}

.shape-choice__art .origami-svg {
  width: 100%;
  height: 100%;
}

.shape-choice__label {
  color: #5b463b;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  line-height: 1.3;
}

.color-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.color-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.color-choice__surface {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.55);
  border: 1px solid rgba(104, 79, 57, 0.12);
  border-radius: 999px;
  font-size: 0.65rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.color-choice__dot {
  width: 18px;
  height: 18px;
  background: var(--swatch);
  border: 1px solid rgba(73, 50, 29, 0.09);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.43);
}

.color-choice input:checked + .color-choice__surface {
  color: #4c3830;
  background: #fffaf0;
  border-color: rgba(171, 122, 61, 0.6);
}

.color-choice input:focus-visible + .color-choice__surface {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.tag-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.tag-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tag-choice__surface {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.58);
  border: 1px solid rgba(104, 79, 57, 0.13);
  border-radius: 999px;
  font-size: 0.72rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.tag-choice input:checked + .tag-choice__surface {
  color: #614733;
  background: rgba(242, 220, 183, 0.58);
  border-color: rgba(171, 122, 61, 0.5);
}

.tag-choice input:focus-visible + .tag-choice__surface {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.signature-ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -8px;
}

.idea-chip {
  padding: 5px 10px;
  color: var(--ink-muted);
  background: transparent;
  border: 1px dashed rgba(112, 84, 57, 0.2);
  border-radius: 999px;
  font-size: 0.66rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.idea-chip:hover {
  color: var(--gold-deep);
  border-color: rgba(171, 122, 61, 0.48);
}

/* Create modal specifics */

.create-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255, 252, 245, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.create-preview__label {
  color: var(--ink-muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.create-preview__value {
  margin-top: 2px;
  color: #554035;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  line-height: 1.55;
}

.create-preview__orb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  color: var(--gold-deep);
  border: 1px solid rgba(171, 122, 61, 0.22);
  border-radius: 50%;
}

.theme-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.theme-group__label {
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
}

.theme-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.theme-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.theme-choice__surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 52px;
  padding: 6px 5px 5px;
  color: var(--ink-muted);
  background: rgba(255, 253, 247, 0.55);
  border: 1px solid rgba(104, 79, 57, 0.12);
  border-radius: 11px;
  font-size: 0.55rem;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.theme-choice__dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.6), transparent 35%),
    var(--swatch);
  border: 1px solid rgba(72, 47, 28, 0.08);
}

.theme-choice input:checked + .theme-choice__surface {
  color: #563e2f;
  background: #fffaf0;
  border-color: rgba(171, 122, 61, 0.6);
}

.theme-choice input:focus-visible + .theme-choice__surface {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

/* Create success */

.code-display {
  position: relative;
  margin: 25px 0;
  padding: 27px 24px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(228, 184, 112, 0.16), transparent 55%),
    #241b24;
  border: 1px solid rgba(241, 213, 164, 0.18);
  border-radius: 22px;
  color: var(--cream-50);
}

.code-display__label {
  margin: 0;
  color: rgba(244, 220, 184, 0.54);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.code-display__value {
  display: inline-block;
  margin: 9px 0 12px;
  color: var(--gold-pale);
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.code-display__hint {
  margin: 0;
  color: rgba(245, 224, 190, 0.42);
  font-size: 0.68rem;
}

.code-display .copy-btn {
  margin-top: 16px;
  color: var(--gold-pale);
  background: rgba(255, 247, 232, 0.07);
  border-color: rgba(246, 224, 188, 0.16);
}

.auto-saved {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  color: #628271;
  font-size: 0.68rem;
}

.auto-saved::before {
  content: "✓";
}

.owner-warning {
  margin: 18px 0 0;
  padding: 12px 15px;
  color: #855b42;
  background: rgba(213, 175, 114, 0.1);
  border: 1px solid rgba(180, 133, 69, 0.16);
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.65;
}

/* Local jar list */

.local-jars {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.local-jars__title {
  margin: 0 0 11px;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-jars__empty {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-style: italic;
}

.local-jar-list {
  display: grid;
  gap: 7px;
}

.local-jar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 253, 247, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.local-jar:hover {
  background: #fffaf0;
  border-color: rgba(171, 122, 61, 0.36);
}

.local-jar__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 31px;
  height: 36px;
  color: var(--gold-deep);
  border: 1px solid rgba(166, 117, 58, 0.24);
  border-radius: 5px 5px 12px 12px;
  font-size: 0.6rem;
}

.local-jar__body {
  flex: 1;
  min-width: 0;
}

.local-jar__name {
  display: block;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-jar__code {
  display: block;
  margin-top: 1px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

.local-jar__arrow {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ---------- Submit drawer ---------- */

.drawer-lead {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.7;
}

.fold-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 0 20px;
  padding: 13px 15px;
  background: rgba(255, 252, 245, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fold-preview-bar__label {
  color: var(--ink-muted);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.fold-preview-bar__art {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fold-preview-bar__art .origami-svg {
  width: 46px;
  height: 42px;
}

.fold-preview-bar__stamp {
  color: rgba(139, 91, 53, 0.58);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
}

.quota-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 15px 0;
  color: var(--ink-muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.quota-line__status {
  color: var(--gold-deep);
}

.quota-line--warning .quota-line__status {
  color: #9a6450;
}

.submit-footer {
  margin-top: 22px;
}

.submit-footer .btn {
  width: 100%;
}

.folding-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--cream-50);
  background:
    radial-gradient(circle at 50% 45%, rgba(232, 185, 108, 0.2), transparent 34%),
    rgba(23, 17, 24, 0.93);
  border-radius: inherit;
  text-align: center;
}

.folding-overlay__paper {
  width: 92px;
  height: 72px;
  margin: 0 auto 22px;
  background:
    linear-gradient(145deg, #f6dfb4, #e2b477);
  clip-path: polygon(0 0, 100% 0, 100% 61%, 50% 100%, 0 61%);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.3);
  animation: fold-drop 1.4s var(--ease-out) infinite;
}

.folding-overlay p {
  margin: 0;
  color: rgba(251, 235, 208, 0.8);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
}

.folding-overlay small {
  display: block;
  margin-top: 12px;
  color: rgba(241, 217, 178, 0.4);
  font-size: 0.65rem;
}

/* ---------- Sealed peek ---------- */

.sealed-peek {
  padding: 4px 0 0;
}

.sealed-peek__paper {
  position: relative;
  overflow: hidden;
  padding: 30px 29px 27px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.42), transparent 30%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(122, 92, 58, 0.045) 31px 32px),
    linear-gradient(145deg, #fbf2df, #f1e0c4);
  border: 1px solid rgba(127, 93, 57, 0.14);
  border-radius: 18px;
  box-shadow:
    0 22px 45px rgba(80, 49, 27, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.6);
}

.sealed-peek__paper::before {
  content: "";
  position: absolute;
  top: -46px;
  right: -34px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(157, 113, 62, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(157, 113, 62, 0.035),
    0 0 0 36px rgba(157, 113, 62, 0.025);
}

.sealed-peek__stamp {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 5px 9px;
  color: rgba(125, 76, 55, 0.65);
  border: 1px solid rgba(140, 94, 57, 0.25);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  transform: rotate(4deg);
}

.sealed-peek__fold {
  display: grid;
  place-items: center;
  width: 96px;
  height: 88px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 249, 236, 0.7), transparent 70%);
}

.sealed-peek__fold .origami-svg {
  width: 80px;
  height: 72px;
  filter: drop-shadow(0 8px 9px rgba(74, 45, 24, 0.13));
}

.sealed-peek__meta .eyebrow {
  margin-bottom: 7px;
}

.sealed-peek__meta h3 {
  margin: 0 0 17px;
  color: #4a342b;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.sealed-peek__meta dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.sealed-peek__meta dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: baseline;
  gap: 12px;
}

.sealed-peek__meta dt {
  color: #9b8068;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.sealed-peek__meta dd {
  margin: 0;
  color: #594135;
  font-size: 0.78rem;
}

.sealed-peek__desc {
  margin: 21px 0 0;
  padding-top: 17px;
  color: #8d7058;
  border-top: 1px solid rgba(134, 97, 59, 0.13);
  font-family: var(--font-serif);
  font-size: 0.83rem;
  font-style: italic;
  line-height: 1.7;
}

.sealed-peek__clock {
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  color: rgba(123, 86, 48, 0.35);
}

.sealed-peek__clock svg {
  width: 100%;
  height: 100%;
}

.modal-note--left {
  text-align: left;
}

/* Reading letter */

.reading-letter {
  position: relative;
  padding: 35px 38px 31px;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.38), transparent 36%),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(117, 88, 53, 0.04) 35px 36px),
    linear-gradient(150deg, #fcf5e6, #f3e4ca);
  border: 1px solid rgba(125, 92, 57, 0.14);
  border-radius: 20px;
  box-shadow:
    0 26px 55px rgba(75, 46, 25, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.72);
}

.reading-letter::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19px;
  width: 1px;
  background: rgba(155, 98, 79, 0.12);
}

.reading-letter__fold {
  position: absolute;
  top: 25px;
  right: 28px;
  width: 72px;
  height: 64px;
  opacity: 0.9;
}

.reading-letter__fold .origami-svg {
  width: 100%;
  height: 100%;
}

.reading-letter__stamp {
  display: inline-block;
  padding: 4px 8px;
  color: rgba(132, 73, 51, 0.58);
  border: 1px solid rgba(139, 82, 55, 0.22);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}

.reading-letter__type {
  margin: 22px 0 10px;
  color: #99755a;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reading-letter__content {
  margin: 0 0 28px;
  color: #49352c;
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reading-letter__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(134, 97, 59, 0.13);
}

.reading-letter__sign {
  display: block;
  margin-bottom: 7px;
  color: #4d362a;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-style: italic;
}

.reading-letter__foot time {
  flex: 0 0 auto;
  color: #a0856e;
  font-size: 0.63rem;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.reader-actions__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 15px;
  color: #6f5747;
  background: rgba(255, 253, 247, 0.62);
  border: 1px solid rgba(105, 78, 55, 0.16);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.reaction-btn:hover {
  transform: translateY(-1px);
  background: #fffaf0;
  border-color: rgba(171, 122, 61, 0.4);
}

.reaction-btn.is-active {
  color: #8c513d;
  background: rgba(222, 159, 142, 0.16);
  border-color: rgba(195, 128, 109, 0.3);
}

.reaction-btn .icon {
  width: 17px;
  height: 17px;
}

.feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #8a705c;
  background: transparent;
  border: 1px dashed rgba(131, 99, 69, 0.25);
  border-radius: 999px;
  font-size: 0.68rem;
}

.feature-btn.is-active {
  color: #8b6228;
  background: rgba(229, 195, 135, 0.16);
  border-style: solid;
  border-color: rgba(184, 140, 74, 0.3);
}

.reader-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.reader-nav__buttons {
  display: flex;
  gap: 7px;
}

.reader-nav .icon-btn {
  width: 38px;
  height: 38px;
}

.owner-inline-hide {
  color: #8f6d5b;
  font-size: 0.66rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
}

/* ---------- Owner desk ---------- */

.owner-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 21px;
  padding: 18px 20px;
  color: var(--cream-50);
  background:
    radial-gradient(circle at 95% 5%, rgba(231, 184, 107, 0.18), transparent 38%),
    #261d25;
  border: 1px solid rgba(240, 210, 160, 0.15);
  border-radius: 17px;
}

.owner-code-card__label {
  margin: 0 0 4px;
  color: rgba(241, 218, 179, 0.45);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.owner-code-card__code {
  margin: 0;
  color: var(--gold-pale);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.owner-code-card__hint {
  margin: 5px 0 0;
  color: rgba(245, 225, 191, 0.4);
  font-size: 0.64rem;
  line-height: 1.5;
}

.manage-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.manage-summary__stats {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.manage-summary__featured {
  color: var(--gold-deep);
  font-size: 0.68rem;
}

.owner-notice {
  margin: 0 0 19px;
  padding: 11px 14px;
  color: #7b6250;
  background: rgba(235, 218, 187, 0.27);
  border-left: 2px solid rgba(178, 133, 73, 0.38);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-style: italic;
  line-height: 1.65;
}

.manage-notes {
  display: grid;
  gap: 8px;
}

.manage-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 253, 247, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.manage-note:hover {
  background: rgba(255, 253, 247, 0.9);
}

.manage-note.is-hidden {
  opacity: 0.55;
  background: rgba(244, 235, 222, 0.42);
}

.manage-note__body {
  min-width: 0;
}

.manage-note__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.manage-note__signature {
  overflow: hidden;
  color: #4c3730;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-note__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.62rem;
}

.manage-note__meta .tag-chip {
  min-height: 20px;
  padding: 2px 7px;
  font-size: 0.6rem;
}

.hidden-badge {
  display: inline-flex;
  align-items: center;
  color: #9a7063;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

.featured-badge {
  color: #916833;
  font-family: var(--font-serif);
  font-size: 0.67rem;
  font-style: italic;
}

.manage-note__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manage-action {
  padding: 5px 8px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.64rem;
}

.manage-action:hover {
  color: var(--ink);
  background: rgba(88, 65, 46, 0.055);
  border-color: rgba(88, 65, 46, 0.08);
}

.manage-action--feature {
  color: var(--gold-deep);
}

.manage-empty {
  padding: 35px 18px;
  color: var(--ink-muted);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
}

.manage-loading {
  padding: 35px;
  color: var(--ink-muted);
  font-family: var(--font-serif);
  text-align: center;
}

/* ---------- Share / poster modal ---------- */

.poster-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.canvas-scroll {
  position: relative;
  width: 100%;
  max-height: 58vh;
  padding: 18px;
  overflow: auto;
  background:
    linear-gradient(45deg, rgba(109, 85, 62, 0.04) 25%, transparent 25% 75%, rgba(109, 85, 62, 0.04) 75%),
    linear-gradient(45deg, rgba(109, 85, 62, 0.04) 25%, transparent 25% 75%, rgba(109, 85, 62, 0.04) 75%);
  background-position: 0 0, 9px 9px;
  background-size: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overscroll-behavior: contain;
}

.canvas-scroll canvas {
  width: min(100%, 470px);
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 20px 45px rgba(41, 26, 16, 0.2);
}

.canvas-scroll--memorial canvas {
  width: min(100%, 570px);
}

.canvas-scroll--invite {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-height: none;
  padding: 17px;
  overflow: hidden;
}

.canvas-scroll--invite canvas {
  width: min(100%, calc(58vh * 0.5625));
  height: auto;
  border-radius: 3px;
}

.poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.poster-actions .btn {
  flex: 1;
  min-width: 135px;
}

.generate-state {
  display: grid;
  place-items: center;
  min-height: 380px;
  color: var(--ink-muted);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
}

.generate-state::before {
  content: "";
  width: 44px;
  height: 58px;
  margin-bottom: 17px;
  border: 1px solid rgba(157, 113, 61, 0.35);
  border-radius: 5px 5px 18px 18px;
  background: linear-gradient(145deg, rgba(244, 220, 179, 0.4), transparent);
  animation: jar-float 2.2s ease-in-out infinite;
}

.share-card {
  padding: 20px;
  background: rgba(255, 253, 247, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.share-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px 8px 13px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(107, 82, 59, 0.13);
  border-radius: 10px;
}

.share-link-box code {
  flex: 1;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-link-box .icon-btn {
  width: 32px;
  height: 32px;
}

/* ---------- Demo ---------- */

.demo-ribbon {
  width: min(920px, calc(100vw - 32px));
  margin: 17px auto 0;
  padding: 10px 16px;
  color: rgba(249, 231, 201, 0.8);
  background: rgba(240, 211, 159, 0.08);
  border: 1px solid rgba(238, 203, 145, 0.18);
  border-radius: 11px;
  font-size: 0.68rem;
  line-height: 1.65;
  text-align: center;
}

.demo-ribbon strong {
  color: var(--gold);
  font-weight: 600;
}

.demo-notice {
  width: min(720px, 100%);
  margin: 22px auto 0;
  color: rgba(244, 222, 188, 0.4);
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.65;
  text-align: center;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Ceremony / fireworks ---------- */

.ceremony-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(238, 188, 107, 0.2), transparent 25%),
    rgba(17, 12, 17, 0.78);
  backdrop-filter: blur(7px);
  animation: fade-in 0.4s ease both;
}

.ceremony-card {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 44px 34px;
  color: var(--cream-50);
  text-align: center;
  border: 1px solid rgba(246, 222, 182, 0.16);
  border-radius: 27px;
  background:
    radial-gradient(circle at 50% 0%, rgba(239, 194, 118, 0.16), transparent 50%),
    rgba(30, 21, 29, 0.87);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
  animation: ceremony-in 0.6s 0.2s var(--ease-out) both;
}

.ceremony-card .eyebrow {
  color: var(--gold);
}

.ceremony-card h2 {
  margin: 0;
  color: #fff4df;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.ceremony-card p {
  margin: 15px auto 23px;
  max-width: 370px;
  color: rgba(245, 226, 197, 0.62);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.8;
}

.ceremony-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.fireworks {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff6dc;
  opacity: 0;
  animation: firework-burst 2.3s ease-out forwards;
}

.firework::before,
.firework::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    0 -84px 0 1px #f5cc8d,
    60px -60px 0 1px #e8aa9d,
    84px 0 0 1px #f9e4b9,
    60px 60px 0 1px #d7c28b,
    0 84px 0 1px #eabf9e,
    -60px 60px 0 1px #f2d59e,
    -84px 0 0 1px #e6b4a2,
    -60px -60px 0 1px #c5d2b6;
}

.firework::after {
  transform: rotate(22.5deg);
  opacity: 0.5;
}

.firework--one {
  top: 23%;
  left: 18%;
}

.firework--two {
  top: 17%;
  right: 20%;
  animation-delay: 0.28s;
}

.firework--three {
  top: 43%;
  left: 52%;
  animation-delay: 0.62s;
}

.confetti {
  position: absolute;
  top: -20px;
  width: 7px;
  height: 12px;
  border-radius: 1px;
  opacity: 0;
  animation: confetti-fall 2.7s ease-in forwards;
}

.confetti--one {
  left: 15%;
  background: var(--rose);
  animation-delay: 0.1s;
}

.confetti--two {
  left: 38%;
  background: var(--gold);
  animation-delay: 0.35s;
}

.confetti--three {
  left: 64%;
  background: var(--sage);
  animation-delay: 0.05s;
}

.confetti--four {
  left: 82%;
  background: var(--lilac);
  animation-delay: 0.55s;
}

.confetti--five {
  left: 55%;
  background: var(--gold-pale);
  animation-delay: 0.8s;
}

/* ---------- Toasts ---------- */

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 16px;
  color: var(--cream-50);
  background: rgba(36, 27, 33, 0.95);
  border: 1px solid rgba(244, 221, 181, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
  line-height: 1.5;
  pointer-events: auto;
  animation: toast-in 0.3s var(--ease-out) both;
}

.toast--error {
  color: #f4dfd6;
  border-color: rgba(210, 129, 118, 0.26);
}

.toast__dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.toast--error .toast__dot {
  background: #d98f82;
}

/* ---------- Animations ---------- */

@keyframes boot-breathe {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes boot-star {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-50%) scale(0.9) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08) rotate(12deg);
  }
}

@keyframes boot-line {
  0% {
    transform: translateX(-34px);
  }
  100% {
    transform: translateX(88px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes jar-arrive {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes jar-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes fold-drop {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(-8deg) scale(0.8);
  }
  32% {
    opacity: 1;
    transform: translateY(0) rotate(2deg) scale(1);
  }
  76% {
    opacity: 1;
    transform: translateY(6px) rotate(-1deg) scale(0.96);
  }
  100% {
    opacity: 0;
    transform: translateY(22px) rotate(5deg) scale(0.72);
  }
}

@keyframes firework-burst {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  12% {
    opacity: 1;
  }
  64% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg);
  }
  10% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(430deg);
  }
}

@keyframes ceremony-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 5.1vw, 4.5rem);
  }

  .jar-scene {
    grid-template-columns: minmax(115px, 170px) minmax(280px, 1fr) minmax(115px, 170px);
    gap: 14px;
  }

  .scene-card {
    padding: 14px;
  }

  .scene-card h3 {
    font-size: 0.9rem;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 32px, 760px);
  }

  .relay-link {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 36px;
    gap: 36px;
  }

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

  .hero-copy h1 {
    font-size: clamp(2.8rem, 11vw, 4.2rem);
  }

  .hero-visual {
    min-height: 600px;
    border-radius: 34px 34px 65px 34px;
  }

  .hero-stage {
    width: min(410px, 82%);
  }

  .relay-strip {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 21px;
  }

  .relay-strip__cta {
    grid-column: 2;
  }

  .relay-strip__path {
    display: none;
  }

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

  .how-card {
    min-height: 0;
  }

  .how-card__number {
    margin-bottom: 24px;
  }

  .jar-scene {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jar-scene__center {
    order: -1;
  }

  .jar-scene__center .jar-stage {
    width: min(440px, 88%);
  }

  .jar-scene__side {
    display: none;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-note {
    text-align: left;
  }

  .modal-card--wide {
    width: min(720px, 100%);
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .site-header__inner {
    min-height: 58px;
    gap: 10px;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-mark {
    width: 28px;
    height: 33px;
  }

  .brand-lockup__name {
    font-size: 0.98rem;
  }

  .brand-lockup__rule {
    display: none;
  }

  .lang-switch button {
    min-width: 28px;
    height: 27px;
    padding: 0 6px;
    font-size: 0.64rem;
  }

  .header-actions {
    gap: 6px;
  }

  .home-hero {
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 12.2vw, 3.5rem);
    letter-spacing: -0.04em;
  }

  .hero-lede {
    margin: 20px 0 24px;
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    gap: 6px 13px;
    font-size: 0.68rem;
  }

  .hero-visual {
    min-height: 480px;
    padding: 20px 12px 18px;
    border-radius: 28px 28px 53px 28px;
  }

  .hero-stage {
    width: min(370px, 88%);
  }

  .hero-visual__ring {
    width: 108%;
  }

  .hero-stage-hint {
    top: 20px;
    left: 21px;
    max-width: 110px;
    font-size: 0.58rem;
  }

  .hero-floating-note {
    font-size: 0.58rem;
  }

  .hero-floating-note--top {
    top: 30px;
    right: 19px;
  }

  .hero-floating-note--left {
    bottom: 57px;
    left: 15px;
  }

  .hero-stage-caption {
    bottom: 17px;
  }

  .stage-seal {
    padding: 7px 12px;
    font-size: 0.59rem;
  }

  .relay-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 56px;
    border-radius: 19px;
  }

  .relay-strip__icon {
    width: 42px;
    height: 42px;
  }

  .relay-strip__cta {
    grid-column: auto;
    justify-self: start;
  }

  .relay-strip h2 {
    font-size: 1rem;
  }

  .relay-strip__body {
    font-size: 0.72rem;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .how-card {
    padding: 22px;
  }

  .home-quote {
    margin-top: 52px;
  }

  .jar-main {
    padding-top: 16px;
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  .jar-heading {
    margin-bottom: 20px;
  }

  .jar-heading__badges {
    margin-bottom: 11px;
  }

  .jar-heading h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .jar-heading__count {
    font-size: 0.82rem;
  }

  .countdown-card {
    padding: 14px 13px 12px;
    border-radius: 17px;
  }

  .countdown-card__top {
    margin-bottom: 8px;
  }

  .countdown-card__label {
    font-size: 0.59rem;
  }

  .countdown-card__zone {
    font-size: 0.57rem;
  }

  .countdown {
    gap: 3px;
  }

  .countdown__unit {
    padding: 5px 2px 0;
  }

  .countdown__unit:not(:last-child)::after {
    right: -3px;
    font-size: 1.1rem;
  }

  .countdown__value {
    font-size: clamp(1.55rem, 8.2vw, 2.1rem);
  }

  .countdown__label {
    font-size: 0.55rem;
  }

  .countdown-card__bottom {
    font-size: 0.58rem;
  }

  .jar-scene {
    padding-bottom: 10px;
  }

  .jar-scene__center .jar-stage {
    width: min(390px, 94%);
  }

  .jar-scene-hint {
    font-size: 0.64rem;
  }

  .jar-tag-ribbon {
    gap: 6px;
    margin-top: 7px;
  }

  .jar-tag-ribbon .tag-chip {
    min-height: 25px;
    padding: 3px 8px;
    font-size: 0.65rem;
  }

  .jar-read-banner {
    margin-top: 16px;
  }

  .action-dock-wrap {
    padding: 12px 10px max(10px, env(safe-area-inset-bottom));
  }

  .action-dock {
    width: 100%;
    padding: 5px;
    border-radius: 19px;
  }

  .dock-action {
    flex-direction: column;
    gap: 4px;
    min-height: 54px;
    padding: 6px 4px;
    border-radius: 14px;
    font-size: 0.62rem;
    white-space: normal;
    text-align: center;
  }

  .dock-action .icon {
    width: 17px;
    height: 17px;
  }

  .opened-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    animation-name: sheet-in;
  }

  .modal-card--drawer {
    width: 100%;
    height: auto;
    max-height: 94dvh;
    border-radius: 24px 24px 0 0;
    animation-name: sheet-in;
  }

  .modal-header {
    padding: 22px 19px 0;
  }

  .modal-body {
    padding: 18px 19px max(25px, env(safe-area-inset-bottom));
  }

  .modal-title {
    font-size: 1.6rem;
  }

  .modal-subtitle {
    font-size: 0.76rem;
  }

  .modal-close {
    width: 37px;
    height: 37px;
  }

  .form-stack {
    gap: 19px;
  }

  .type-choice-grid {
    gap: 7px;
  }

  .choice-card__surface {
    min-height: 71px;
    padding: 11px;
  }

  .choice-card__icon {
    width: 32px;
    height: 32px;
  }

  .choice-card__text strong {
    font-size: 0.84rem;
  }

  .choice-card__text span {
    font-size: 0.6rem;
  }

  .choice-card__flag {
    display: none;
  }

  .shape-choice__surface {
    min-height: 101px;
  }

  .shape-choice__art {
    width: 40px;
    height: 38px;
  }

  .shape-choice__label {
    font-size: 0.66rem;
  }

  .color-choice-grid {
    gap: 7px;
  }

  .color-choice__surface {
    padding-right: 8px;
    font-size: 0.6rem;
  }

  .theme-pair {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .theme-choice__surface {
    min-width: 46px;
    font-size: 0.52rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sealed-peek__paper {
    padding: 24px 20px 23px;
  }

  .sealed-peek__meta h3 {
    font-size: 1.42rem;
  }

  .sealed-peek__fold {
    width: 77px;
    height: 71px;
    margin-bottom: 18px;
  }

  .sealed-peek__fold .origami-svg {
    width: 66px;
    height: 60px;
  }

  .sealed-peek__stamp {
    top: 17px;
    right: 17px;
    font-size: 0.48rem;
  }

  .sealed-peek__clock {
    right: 18px;
    bottom: 15px;
    width: 34px;
    height: 34px;
  }

  .reading-letter {
    padding: 26px 23px 24px;
  }

  .reading-letter__fold {
    top: 18px;
    right: 18px;
    width: 55px;
    height: 49px;
  }

  .reading-letter__content {
    font-size: 1.01rem;
    line-height: 1.9;
  }

  .reading-letter__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .reader-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reader-actions__group {
    width: 100%;
  }

  .reader-actions__group .reaction-btn {
    flex: 1;
    justify-content: center;
  }

  .reader-nav {
    font-size: 0.62rem;
  }

  .owner-code-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .owner-code-card .btn {
    width: 100%;
  }

  .manage-note {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .manage-note__actions {
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid rgba(105, 79, 56, 0.08);
  }

  .manage-action {
    padding: 5px 8px;
  }

  .canvas-scroll {
    max-height: 52vh;
    padding: 10px;
  }

  .poster-actions {
    flex-direction: column;
  }

  .poster-actions .btn {
    width: 100%;
  }

  .toast-stack {
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 12px;
    align-items: stretch;
  }

  .toast {
    max-width: none;
  }

  .ceremony-card {
    padding: 32px 21px;
  }

  .ceremony-actions {
    flex-direction: column;
  }

  .ceremony-actions .btn {
    width: 100%;
  }

  .demo-ribbon {
    font-size: 0.62rem;
  }

  .site-footer {
    padding-bottom: max(34px, env(safe-area-inset-bottom));
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .jar-stage.is-open .jar-lid {
    transform: none;
  }

  .fireworks {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-lockup .brand-mark {
    display: none;
  }

  .brand-lockup__name {
    font-size: 0.9rem;
  }

  .site-header .header-actions {
    gap: 5px;
  }
}

/* English display copy runs longer than the Chinese headline; give it its own
   scale so the three deliberate lines do not collapse into a four-line stack. */
html[lang="en"] .hero-copy h1 {
  font-size: clamp(2.45rem, 4.3vw, 3.9rem);
  letter-spacing: -0.045em;
}

@media (max-width: 640px) {
  html[lang="en"] .hero-copy h1 {
    font-size: clamp(2.15rem, 8.8vw, 2.75rem);
  }
}

/* ---------- Quick-create flow ---------- */

.form-stack--quick {
  gap: 16px;
}

.form-section--quick {
  padding-top: 0;
  border-top: 0;
}

.field--jar-name {
  margin-bottom: 14px;
}

.input--jar-name {
  min-height: 58px;
  padding: 14px 17px;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.create-quick-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 0 0, rgba(235, 199, 139, 0.14), transparent 50%),
    rgba(255, 252, 245, 0.6);
  border: 1px solid rgba(111, 82, 55, 0.13);
  border-radius: 15px;
}

.create-quick-summary__orb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--gold-deep);
  background: rgba(242, 220, 184, 0.31);
  border: 1px solid rgba(171, 122, 61, 0.18);
  border-radius: 50%;
}

.create-quick-summary__orb .icon {
  width: 17px;
  height: 17px;
}

.create-quick-summary__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 1px;
}

.create-quick-summary__label {
  color: var(--gold-deep);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.create-quick-summary__value {
  margin-top: 2px;
  color: #4f3b30;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.create-quick-summary__hint {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.advanced-settings {
  overflow: hidden;
  background: rgba(255, 253, 247, 0.36);
  border: 1px solid rgba(111, 82, 55, 0.13);
  border-radius: 14px;
}

.advanced-settings__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  color: var(--ink-soft);
  list-style: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.advanced-settings__summary::-webkit-details-marker {
  display: none;
}

.advanced-settings__summary:hover {
  background: rgba(255, 253, 247, 0.58);
}

.advanced-settings__summary:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: -3px;
}

.advanced-settings__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5e4739;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.advanced-settings__title .icon {
  width: 16px;
  height: 16px;
  color: var(--gold-deep);
}

.advanced-settings__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  font-size: 0.64rem;
  white-space: nowrap;
}

.advanced-settings__chevron {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.66);
  border: 1px solid rgba(111, 82, 55, 0.12);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out);
}

.advanced-settings__chevron .icon {
  width: 13px;
  height: 13px;
}

.advanced-settings[open] .advanced-settings__summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.5);
}

.advanced-settings[open] .advanced-settings__chevron {
  transform: rotate(180deg);
}

.advanced-settings__body {
  padding: 16px 14px 18px;
}

.advanced-settings__group {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .form-stack--quick {
    gap: 14px;
  }

  .input--jar-name {
    min-height: 55px;
    font-size: 1rem;
  }

  .create-quick-summary {
    gap: 10px;
    padding: 12px 13px;
  }

  .create-quick-summary__orb {
    width: 33px;
    height: 33px;
  }

  .create-quick-summary__value {
    font-size: 0.81rem;
  }

  .advanced-settings__summary {
    padding: 11px 12px;
  }

  .advanced-settings__title {
    font-size: 0.72rem;
  }

  .advanced-settings__body {
    padding: 14px 12px 16px;
  }
}

/* ---------- Home: create in place ---------- */

.hero-create {
  width: min(100%, 608px);
  padding: 8px;
  background:
    radial-gradient(circle at 9% 0%, rgba(238, 203, 147, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 247, 0.94), rgba(248, 239, 223, 0.86));
  border: 1px solid rgba(112, 82, 52, 0.17);
  border-radius: 24px;
  box-shadow:
    0 22px 55px rgba(85, 54, 29, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(9px);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-create:focus-within {
  border-color: rgba(172, 122, 61, 0.43);
  box-shadow:
    0 0 0 4px rgba(217, 176, 112, 0.1),
    0 24px 58px rgba(85, 54, 29, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.82);
}

.hero-create__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 1px;
}

.hero-create__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-left: 5px;
  color: var(--gold-deep);
}

.hero-create__mark .icon {
  width: 22px;
  height: 22px;
}

.hero-create__input {
  flex: 1;
  min-width: 0;
  height: 53px;
  padding: 0 3px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-serif);
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  caret-color: var(--gold-deep);
}

.hero-create__input::placeholder {
  color: #a18c7a;
  opacity: 1;
}

.hero-create__submit {
  flex: 0 0 auto;
  min-height: 51px;
  padding: 12px 20px;
  white-space: nowrap;
}

.hero-create__submit .icon {
  width: 16px;
  height: 16px;
}

.hero-create__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 14px;
  margin: 2px 5px 0;
  padding: 9px 11px 8px;
  color: var(--ink-muted);
  border-top: 1px solid rgba(102, 76, 48, 0.1);
  list-style: none;
  cursor: pointer;
  font-size: 0.69rem;
  line-height: 1.5;
}

.hero-create__summary::-webkit-details-marker {
  display: none;
}

.hero-create__summary:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: -2px;
  border-radius: 7px;
}

.hero-create__auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hero-create__auto .icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: var(--gold-deep);
}

.hero-create__auto > span {
  overflow-wrap: anywhere;
}

.hero-create__adjust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--gold-deep);
  font-weight: 600;
  white-space: nowrap;
}

.hero-create__adjust .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease-out);
}

.hero-create__advanced[open] .hero-create__adjust .icon {
  transform: rotate(180deg);
}

.hero-create__advanced[open] .hero-create__summary {
  color: var(--ink-soft);
}

.hero-create__options {
  padding: 10px 14px 16px;
  border-top: 1px solid rgba(102, 76, 48, 0.1);
}

.hero-create__options > .field {
  margin-bottom: 15px;
}

.hero-create__themes {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-create__themes .step-label {
  margin-bottom: 12px;
}

.hero-create > .form-error {
  margin: 4px 7px 8px;
}

.hero-utility-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  margin-top: 16px;
}

.hero-utility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.hero-utility .icon {
  width: 14px;
  height: 14px;
  color: var(--gold-deep);
}

.hero-utility:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(168, 119, 55, 0.4);
  text-underline-offset: 4px;
}

.hero-utility__dot {
  color: rgba(110, 84, 59, 0.3);
  font-family: var(--font-serif);
}

/* ---------- One-time owner credential banner ---------- */

.owner-credential {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto clamp(24px, 4vh, 34px);
  padding: 19px 20px 18px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 0%, rgba(230, 187, 119, 0.24), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(117, 86, 52, 0.035) 30px 31px),
    linear-gradient(145deg, #fdf8ee, #f4e6cf);
  border: 1px solid rgba(255, 249, 238, 0.72);
  border-radius: 21px;
  box-shadow:
    0 26px 60px rgba(5, 3, 8, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.76);
  animation: rise-in 0.55s var(--ease-out) both;
}

.owner-credential::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -52px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(155, 111, 61, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(155, 111, 61, 0.03),
    0 0 0 36px rgba(155, 111, 61, 0.022);
  pointer-events: none;
}

.owner-credential__seal {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-top: 2px;
  color: var(--gold-deep);
  background: rgba(242, 220, 184, 0.38);
  border: 1px solid rgba(161, 113, 56, 0.25);
  border-radius: 50%;
}

.owner-credential__seal .icon {
  width: 19px;
  height: 19px;
}

.owner-credential__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.owner-credential__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.owner-credential__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 1px 0 3px;
  color: var(--gold-deep);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.owner-credential__one-time {
  padding: 2px 7px;
  color: #8c6d4d;
  background: rgba(220, 191, 144, 0.25);
  border: 1px solid rgba(158, 116, 63, 0.16);
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}

.owner-credential h2 {
  margin: 0;
  color: #3e2c26;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.72rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.owner-credential__close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  padding: 0;
  color: #806654;
  background: rgba(255, 253, 247, 0.55);
  border: 1px solid rgba(111, 82, 55, 0.16);
  border-radius: 50%;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.owner-credential__close:hover {
  background: #fffdf7;
  transform: rotate(-4deg);
}

.owner-credential__close .icon {
  width: 14px;
  height: 14px;
}

.owner-credential__sub {
  margin: 6px 0 0;
  color: #7a6251;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  line-height: 1.65;
}

.owner-credential__code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 13px 0 9px;
  padding: 10px 11px 10px 14px;
  color: var(--cream-50);
  background:
    radial-gradient(circle at 0 0, rgba(231, 186, 111, 0.13), transparent 45%),
    #251c25;
  border: 1px solid rgba(238, 208, 157, 0.16);
  border-radius: 12px;
}

.owner-credential__label {
  color: rgba(242, 218, 179, 0.48);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.owner-credential__code-row code {
  color: var(--gold-pale);
  font-family: var(--font-mono);
  font-size: clamp(1.18rem, 2.6vw, 1.48rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.owner-credential__copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  margin-left: auto;
  padding: 5px 10px;
  color: rgba(250, 235, 209, 0.8);
  background: rgba(255, 248, 235, 0.06);
  border: 1px solid rgba(243, 218, 178, 0.18);
  border-radius: 7px;
  font-size: 0.66rem;
  line-height: 1.2;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.owner-credential__copy:hover {
  color: var(--gold-pale);
  background: rgba(255, 248, 235, 0.1);
}

.owner-credential__copy .icon {
  width: 13px;
  height: 13px;
}

.owner-credential__note,
.owner-credential__warn {
  margin: 0;
  color: #8b7462;
  font-size: 0.65rem;
  line-height: 1.65;
}

.owner-credential__saved {
  color: #5f826d;
  font-weight: 600;
}

.owner-credential__warn {
  margin-top: 3px;
  color: #9a6b4e;
}

@media (max-width: 640px) {
  .hero-create {
    width: 100%;
    padding: 7px;
    border-radius: 20px;
  }

  .hero-create__bar {
    gap: 5px;
  }

  .hero-create__mark {
    display: none;
  }

  .hero-create__input {
    height: 49px;
    padding-left: 9px;
    font-size: 1rem;
  }

  .hero-create__submit {
    min-height: 47px;
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .hero-create__submit .icon {
    width: 14px;
    height: 14px;
  }

  .hero-create__summary {
    margin: 1px 3px 0;
    padding: 8px 8px 7px;
    font-size: 0.62rem;
  }

  .hero-create__options {
    padding: 8px 11px 13px;
  }

  .hero-utility-links {
    margin-top: 13px;
  }

  .hero-utility {
    font-size: 0.7rem;
  }

  .owner-credential {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 15px;
    border-radius: 17px;
  }

  .owner-credential__seal {
    display: none;
  }

  .owner-credential__head {
    gap: 10px;
  }

  .owner-credential h2 {
    font-size: 1.28rem;
  }

  .owner-credential__sub {
    font-size: 0.74rem;
  }

  .owner-credential__code-row {
    gap: 7px;
    padding: 9px 10px;
  }

  .owner-credential__code-row code {
    font-size: 1.2rem;
  }

  .owner-credential__copy {
    margin-left: 0;
  }

  .owner-credential__note,
  .owner-credential__warn {
    font-size: 0.61rem;
  }
}

@media (max-width: 640px) {
  .hero-create__options .field__label {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .hero-create__options .field__hint {
    text-align: left;
  }
}

/* ---------- Home: inline recovery ---------- */

.hero-utility[aria-expanded="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(168, 119, 55, 0.4);
  text-underline-offset: 4px;
}

.home-recovery {
  width: min(100%, 608px);
  margin-top: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(235, 196, 130, 0.12), transparent 35%),
    rgba(255, 252, 245, 0.62);
  border: 1px solid rgba(112, 82, 52, 0.14);
  border-radius: 19px;
  animation: rise-in 0.3s var(--ease-out) both;
}

.home-recovery__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-recovery__head .eyebrow {
  margin-bottom: 5px;
}

.home-recovery__head h2 {
  margin: 0;
  color: #44312a;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.home-recovery__head p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.65;
}

.home-recovery__head .icon-btn {
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
}

.home-recovery__head .icon-btn .icon {
  width: 14px;
  height: 14px;
}

.home-recovery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.home-recovery__row {
  display: flex;
  gap: 8px;
}

.home-recovery__row .input {
  flex: 1;
  min-width: 0;
}

.home-recovery__row .btn {
  flex: 0 0 auto;
  min-height: 49px;
  padding: 10px 14px;
  white-space: nowrap;
}

.home-recovery__row .btn .icon {
  width: 15px;
  height: 15px;
}

.home-recovery__privacy {
  margin: 9px 0 0;
  color: var(--ink-muted);
  font-size: 0.64rem;
  line-height: 1.6;
}

.home-recovery__local {
  min-width: 0;
}

.home-recovery__local .local-jars__title {
  margin-top: 2px;
}

.home-recovery__local .local-jar-list {
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.home-recovery__local .local-jar {
  padding: 8px 9px;
}

.home-recovery__local .local-jar__mark {
  width: 26px;
  height: 31px;
  font-size: 0.52rem;
}

.home-recovery .form-error {
  margin: 9px 0;
}

@media (max-width: 640px) {
  .home-recovery {
    padding: 15px;
    border-radius: 16px;
  }

  .home-recovery__head h2 {
    font-size: 1.28rem;
  }

  .home-recovery__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-recovery__row {
    align-items: stretch;
    flex-direction: column;
  }

  .home-recovery__row .btn {
    width: 100%;
  }

  .home-recovery__local .local-jar-list {
    max-height: 175px;
  }
}

/* ---------- Inline sealed-note preview ---------- */

.jar-inline-note {
  width: min(760px, 100%);
  margin: 8px auto 20px;
  padding: 15px;
  scroll-margin-top: 86px;
  scroll-margin-bottom: 110px;
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 185, 111, 0.09), transparent 38%),
    rgba(255, 248, 235, 0.035);
  border: 1px solid rgba(243, 219, 179, 0.12);
  border-radius: 20px;
  animation: rise-in 0.35s var(--ease-out) both;
}

.jar-inline-note__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.jar-inline-note__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(245, 221, 181, 0.7);
  font-family: var(--font-serif);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.jar-inline-note__label .icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.jar-inline-note__head .icon-btn {
  width: 34px;
  height: 34px;
}

.jar-inline-note__head .icon-btn .icon {
  width: 14px;
  height: 14px;
}

.jar-inline-note .sealed-peek {
  padding: 0;
}

.jar-inline-note__owner {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .jar-inline-note {
    margin-top: 2px;
    padding: 10px;
    border-radius: 16px;
  }

  .jar-inline-note__head {
    margin-bottom: 9px;
  }
}

/* ---------- Mobile page views (reader + owner desk) ---------- */

.modal-backdrop.modal-backdrop--page {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: var(--cream-50);
  backdrop-filter: none;
  animation: page-fade-in 0.22s ease both;
}

.modal-card.modal-card--page {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(231, 190, 126, 0.13), transparent 28%),
    linear-gradient(180deg, #fdf8ef, #f8efdf);
  animation: page-slide-in 0.28s var(--ease-out) both;
  overscroll-behavior: contain;
}

.modal-card.modal-card--page .modal-header {
  align-items: center;
  padding:
    max(16px, env(safe-area-inset-top))
    19px
    15px;
  background: rgba(253, 248, 239, 0.97);
  border-bottom: 1px solid rgba(109, 82, 55, 0.1);
  box-shadow: none;
}

.modal-card.modal-card--page .modal-close {
  order: -1;
  width: 39px;
  height: 39px;
  margin-top: 0;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.8);
  border-color: rgba(111, 82, 55, 0.16);
}

.modal-card.modal-card--page .modal-heading {
  flex: 1;
  min-width: 0;
}

.modal-card.modal-card--page .modal-title {
  font-size: clamp(1.65rem, 7vw, 2.12rem);
}

.modal-card.modal-card--page .modal-subtitle {
  margin-top: 5px;
}

.modal-card.modal-card--page .modal-body {
  padding: 18px 19px max(30px, env(safe-area-inset-bottom));
}

.modal-card.modal-card--page .reader-actions {
  margin-bottom: 4px;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes page-slide-in {
  from { opacity: 0.6; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inline, user-triggered opening fireworks */
.page-celebration {
  position: fixed;
  inset: 0;
  z-index: 85;
  overflow: hidden;
  pointer-events: none;
}

.page-celebration .fireworks {
  position: absolute;
  inset: 0;
}

/* Small fixes for inline paper content and full-screen page branding */
.home-recovery__row {
  align-items: stretch;
  flex-direction: column;
}

.home-recovery__row .btn {
  width: 100%;
}

.sealed-peek .tag-chip {
  color: #6c5234;
  background: rgba(236, 210, 166, 0.28);
  border-color: rgba(148, 111, 63, 0.16);
}

.modal-page-brand {
  display: inline-block;
  margin-left: 7px;
  color: #a08977;
  font-family: var(--font-serif);
  font-size: 0.61rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* =========================================================
   Phase 1 audit polish — routing, reports, privacy, mobile
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.app-shell--home,
.app-shell--night {
  min-height: 100vh;
  min-height: 100dvh;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 29px;
  padding: 0 8px;
  color: var(--ink-soft);
  background: transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-switch a[aria-current="page"] {
  color: var(--night-900);
  background: var(--gold-pale);
  box-shadow: 0 3px 10px rgba(70, 45, 25, 0.12);
}

.app-shell--night .lang-switch a {
  color: rgba(247, 228, 198, 0.56);
}

.app-shell--night .lang-switch a[aria-current="page"] {
  color: #2a1b1c;
  background: var(--gold-pale);
}

/* The relay is a doorway, not a second hero. */
.relay-strip {
  padding-top: clamp(20px, 3vw, 30px);
  padding-bottom: clamp(20px, 3vw, 30px);
}

.relay-strip__body {
  max-width: 62ch;
}

@media (max-width: 640px) {
  .relay-strip__cta {
    width: 100%;
    justify-content: center;
  }

  .site-header .relay-link {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .site-header .relay-link span,
  .site-header .relay-link .icon:last-child {
    display: none;
  }

  .app-shell--night .site-header .relay-link {
    display: none;
  }

  .lang-switch a {
    min-width: 26px;
    height: 27px;
    padding: 0 5px;
    font-size: 0.62rem;
  }
}

/* FAQ / GEO copy */
.home-faq {
  margin-top: clamp(58px, 9vh, 92px);
}

.home-faq .section-heading {
  margin-bottom: 22px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  padding: 0 20px;
  background: rgba(255, 253, 247, 0.68);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.faq-item summary {
  position: relative;
  padding: 17px 28px 17px 0;
  color: #3d2d2a;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 0;
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: -3px 0 18px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.8;
}

/* Privacy & terms */
.privacy-main {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 76px) 0 20px;
}

.privacy-hero {
  max-width: 860px;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 92% 4%, rgba(229, 190, 128, 0.2), transparent 34%),
    rgba(255, 253, 247, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.privacy-hero h1 {
  margin: 8px 0 0;
  color: #3b2b28;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.privacy-updated {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 0.73rem;
}

.privacy-intro {
  max-width: 68ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.85;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.privacy-card {
  padding: 24px;
  background: rgba(255, 253, 247, 0.56);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.privacy-card h2 {
  margin: 0 0 8px;
  color: #3d2d2a;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.privacy-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.82;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 42px;
}

@media (max-width: 760px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

/* Reports */
.report-control {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  color: rgba(246, 226, 193, 0.62);
  background: transparent;
  border: 1px solid rgba(246, 226, 193, 0.14);
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1.25;
}

.report-btn .icon {
  width: 14px;
  height: 14px;
}

.report-btn:hover {
  color: var(--gold-pale);
  border-color: rgba(246, 226, 193, 0.32);
}

.report-btn.is-reported {
  opacity: 0.56;
}

.modal-card .report-btn {
  color: var(--ink-soft);
  border-color: var(--line);
}

.modal-card .report-btn:hover {
  color: var(--ink);
  border-color: rgba(99, 76, 57, 0.32);
}

.report-chooser {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: min(310px, calc(100vw - 64px));
  margin-top: 8px;
  padding: 10px;
  scroll-margin-bottom: 112px;
  color: var(--ink-soft);
  background: rgba(253, 248, 239, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(20, 13, 18, 0.18);
}

.report-chooser__label {
  flex-basis: 100%;
  color: var(--ink-muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-chooser__reason,
.report-chooser__cancel {
  min-height: 30px;
  padding: 5px 9px;
  color: #5a4740;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(99, 76, 57, 0.14);
  border-radius: 999px;
  font-size: 0.68rem;
}

.report-chooser__cancel {
  color: var(--ink-muted);
  background: transparent;
}

.report-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  color: #8c4f44;
  background: rgba(184, 94, 83, 0.1);
  border: 1px solid rgba(184, 94, 83, 0.15);
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 600;
  white-space: nowrap;
}

.report-badge .icon {
  width: 12px;
  height: 12px;
}

.jar-inline-note__owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}

/* A note that has just been dropped into the jar. */
.paper-note--arriving {
  animation: note-arrive 1s var(--ease-out) both;
}

@keyframes note-arrive {
  0% {
    opacity: 0;
    filter: drop-shadow(0 18px 18px rgba(16, 9, 16, 0.32));
    transform: translate(-50%, -115%) rotate(calc(var(--rot) + 19deg)) scale(0.48);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, -45%) rotate(calc(var(--rot) - 2deg)) scale(calc(var(--scale) * 1.08));
  }
  84% {
    transform: translate(-50%, -52%) rotate(var(--rot)) scale(calc(var(--scale) * 0.97));
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot)) scale(var(--scale));
  }
}

.jar-stage::after {
  content: "";
  position: absolute;
  inset: 19% 13% 19%;
  z-index: 3;
  border-radius: 42% 42% 36% 36%;
  background: linear-gradient(112deg, transparent 23%, rgba(255, 255, 255, 0.055) 42%, transparent 56%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Keep form fields visible above mobile keyboards. */
@media (max-width: 640px) {
  .modal-backdrop {
    top: var(--vv-offset-top, 0px);
    bottom: auto;
    height: var(--vv-height, 100dvh);
  }

  .modal-card,
  .modal-card.modal-card--page {
    max-height: 100%;
  }

  .modal-card.modal-card--page {
    height: 100%;
  }

  input,
  textarea,
  select {
    scroll-margin-bottom: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paper-note--arriving {
    animation: none;
  }
}

/* Crawlable, no-JavaScript product summary */
.noscript-card h2 {
  margin: 26px 0 10px;
  color: #3d2d2a;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.noscript-card dl {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.noscript-card dt {
  margin-top: 14px;
  color: #3d2d2a;
  font-family: var(--font-serif);
  font-size: 0.96rem;
}

.noscript-card dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.7;
}

.noscript-card a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
