/* ═══════════════════════════════════════════════════════════════════════════
   THE HAPPINESS JAR · jar scene, envelopes, compliments, letter screen
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem max(1.1rem, calc(var(--safe-l) + 0.9rem)) 0.55rem
    max(1.1rem, calc(var(--safe-r) + 0.9rem));
  min-height: 48px;
  background: rgba(255, 250, 243, 0.82);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(192, 123, 129, 0.14);
  padding-top: max(0.55rem, calc(var(--safe-t) + 0.35rem));
}

.topbar-brand {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(192, 123, 129, 0.28);
}

.counter.is-complete {
  color: #5d7350;
  border-color: rgba(148, 167, 133, 0.55);
  background: rgba(240, 246, 233, 0.9);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding-right: 0.6rem;
  margin-left: -0.4rem;
  font-size: 0.86rem;
  color: var(--plum-soft);
}

/* ── jar screen layout ───────────────────────────────────────────────────── */
.jar-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 1.15rem max(1.15rem, calc(var(--safe-l) + 1rem)) 0
    max(1.15rem, calc(var(--safe-r) + 1rem));
  padding-bottom: calc(7.6rem + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero {
  text-align: center;
  padding-top: 0.35rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.78rem, 8.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.12;
  color: var(--plum);
}

.hero-sub {
  margin-top: 0.45rem;
  font-family: var(--hand);
  font-size: 1.32rem;
  line-height: 1.2;
  color: var(--rose-deep);
}

.hero-line {
  margin: 0.6rem auto 0;
  max-width: 30ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-line::before,
.hero-line::after {
  content: "“";
  color: var(--gold);
}
.hero-line::after { content: "”"; }

/* ── the jar ─────────────────────────────────────────────────────────────── */
.jar-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.4rem;
  isolation: isolate;
}

.jar {
  position: relative;
  display: block;
  width: min(70vw, 286px);
  aspect-ratio: 0.74;
  background: none;
  border: 0;
  -webkit-tap-highlight-color: transparent;
  animation: jar-float 7.5s ease-in-out infinite;
  filter: drop-shadow(0 26px 26px rgba(93, 58, 58, 0.18));
}

@keyframes jar-float {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50%      { transform: translateY(-9px) rotate(0.5deg); }
}

.jar.is-shaking {
  animation: jar-shake 0.62s var(--ease-out);
}

@keyframes jar-shake {
  0%   { transform: rotate(0) translateY(0); }
  22%  { transform: rotate(-2.6deg) translateY(-3px) scale(1.012); }
  48%  { transform: rotate(2.2deg) translateY(-1px); }
  70%  { transform: rotate(-1.4deg); }
  100% { transform: rotate(0); }
}

.jar-lid {
  position: absolute;
  left: 50%;
  top: 0;
  width: 54%;
  height: 8.2%;
  transform: translateX(-50%);
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, #e8b4b8 0%, #cf8f96 52%, #b97880 100%);
  box-shadow: inset 0 -3px 6px rgba(120, 60, 68, 0.35),
    inset 0 3px 4px rgba(255, 255, 255, 0.55), 0 6px 12px -8px rgba(90, 50, 56, 0.6);
}

.jar-lid::after {
  content: "";
  position: absolute;
  inset: 22% 8%;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 5px);
  opacity: 0.55;
}

.jar-neck {
  position: absolute;
  left: 50%;
  top: 7.7%;
  width: 44%;
  height: 7%;
  transform: translateX(-50%);
  border-radius: 2px 2px 6px 6px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.55) 0%, rgba(238, 245, 244, 0.32) 45%, rgba(255, 255, 255, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-top: 0;
  box-shadow: inset 0 -2px 5px rgba(140, 160, 165, 0.16);
}

.jar-body {
  position: absolute;
  left: 3.5%;
  right: 3.5%;
  top: 12.5%;
  bottom: 3%;
  overflow: hidden;
  border-radius: 30% 30% 20% 20% / 17% 17% 11% 11%;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.72) 0%, rgba(246, 251, 250, 0.36) 22%, rgba(255, 255, 255, 0.14) 52%, rgba(255, 255, 255, 0.5) 84%, rgba(255, 255, 255, 0.72) 100%),
    linear-gradient(180deg, rgba(253, 250, 244, 0.5) 0%, rgba(243, 246, 242, 0.35) 60%, rgba(235, 240, 236, 0.5) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 22px rgba(160, 180, 178, 0.22),
    inset 0 -18px 30px -20px rgba(120, 140, 138, 0.35);
}

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

/* individual folded notes inside the jar */
.scrap {
  position: absolute;
  width: 26px;
  height: 17px;
  border-radius: 2px 3px 2px 3px;
  box-shadow: 0 1px 2px rgba(93, 58, 58, 0.22), inset 0 0 0 0.5px rgba(255, 255, 255, 0.4);
  will-change: transform;
}

.scrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 46%);
  border-radius: inherit;
}

.scrap::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 45%;
  height: 1px;
  background: rgba(120, 88, 82, 0.18);
}

.jar-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 17%),
    linear-gradient(260deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 14%),
    radial-gradient(70% 34% at 26% 8%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
}

.jar-base {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(120, 100, 96, 0.22) 0%, rgba(120, 100, 96, 0) 72%);
}

.jar-ribbon {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 58%;
  height: 4.8%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ecb9be 0%, #d8949d 42%, #c07f8a 100%);
  box-shadow: 0 4px 9px -5px rgba(90, 48, 56, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  opacity: 0.96;
  pointer-events: none;
}

.jar-bow {
  position: absolute;
  left: 50%;
  top: 55.4%;
  width: 17%;
  height: 6.1%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f0c3c7 0%, #d698a1 62%, #c07f8a 100%);
  box-shadow: inset 0 -1px 2px rgba(120, 64, 72, 0.35);
  pointer-events: none;
  z-index: 2;
}

.jar-bow::before,
.jar-bow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 136%;
  height: 200%;
  background: linear-gradient(150deg, #f0c3c7 0%, #dda3ab 55%, #c98a94 100%);
  border-radius: 62% 38% 58% 42% / 62% 56% 44% 38%;
  box-shadow: inset 0 -2px 4px rgba(130, 70, 78, 0.22);
}

.jar-bow::before {
  right: 62%;
  transform: translateY(-50%) rotate(-13deg);
  transform-origin: 100% 50%;
}

.jar-bow::after {
  left: 62%;
  transform: translateY(-50%) rotate(13deg) scaleX(-1);
  transform-origin: 0 50%;
}

.jar-charm {
  position: absolute;
  right: 4%;
  top: 15%;
  width: 34px;
  height: 66px;
  pointer-events: none;
  transform-origin: 50% 0;
  animation: charm-sway 5.5s ease-in-out infinite;
}

@keyframes charm-sway {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}

.jar-charm-string {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(190, 150, 100, 0.8), rgba(190, 150, 100, 0.25));
}

.jar-charm .sf {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 3px 4px rgba(120, 80, 40, 0.28));
}

/* a note being pulled out of the jar */
.jar-pop {
  position: absolute;
  left: 50%;
  bottom: 30%;
  width: 74px;
  height: 52px;
  margin-left: -37px;
  border-radius: 2px 3px 2px 3px;
  background: linear-gradient(150deg, #fffdf6 0%, #fdf0e4 55%, #f8e0d8 100%);
  box-shadow: 0 12px 20px -12px rgba(90, 60, 55, 0.55);
  opacity: 0;
  pointer-events: none;
}

.jar-pop::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: rgba(140, 105, 96, 0.25);
}

.jar.is-popping .jar-pop {
  animation: note-pop 0.78s var(--ease-out) both;
}

@keyframes note-pop {
  0%   { opacity: 0; transform: translateY(28px) scale(0.7) rotate(-8deg); }
  35%  { opacity: 1; }
  70%  { transform: translateY(-58px) scale(1.04) rotate(3deg); opacity: 1; }
  100% { transform: translateY(-96px) scale(0.92) rotate(-2deg); opacity: 0; }
}

.jar-hint {
  margin-top: 0.65rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(122, 97, 102, 0.78);
  transition: opacity 0.4s ease;
}

/* floating hearts & stars around the jar */
.floaties {
  position: absolute;
  inset: -12% 2% 8%;
  pointer-events: none;
  z-index: 2;
}

.floaty {
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--blush-deep);
  opacity: 0;
  animation: floaty 9s ease-in-out infinite;
}

.floaty--h1 { left: 4%; top: 30%; animation-delay: 0.4s; color: #e8a8ae; }
.floaty--h2 { right: 3%; top: 55%; animation-delay: 2.6s; color: #eeb9b2; width: 11px; height: 11px; }
.floaty--h3 { right: 12%; top: 22%; animation-delay: 5s; color: #f0c2c4; width: 9px; height: 9px; }
.floaty--s1 { left: 8%; top: 14%; color: var(--gold-soft); width: 16px; height: 16px; animation-delay: 1.4s; }
.floaty--s2 { left: 16%; bottom: 16%; color: var(--gold-soft); width: 10px; height: 10px; animation-delay: 3.8s; }
.floaty--s3 { right: 8%; bottom: 24%; color: #e3c98f; width: 12px; height: 12px; animation-delay: 6.2s; }

@keyframes floaty {
  0%   { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.6) rotate(-8deg); }
  25%  { opacity: 0.85; }
  60%  { opacity: 0.7; transform: translate3d(6px, -22px, 0) scale(1) rotate(6deg); }
  100% { opacity: 0; transform: translate3d(-4px, -58px, 0) scale(0.8) rotate(-4deg); }
}

/* ── primary actions + filters ───────────────────────────────────────────── */
.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.primary-actions .btn {
  padding: 0 0.75rem;
  font-size: 0.94rem;
}

.filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0.1rem 0.45rem;
  margin: -0.3rem -0.1rem 0;
  scroll-snap-type: x proximity;
}

.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum-soft);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(122, 97, 102, 0.18);
  scroll-snap-align: start;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chip .chip-emoji {
  font-size: 0.92rem;
  line-height: 1;
}

.chip.is-active {
  color: #fff9f4;
  background: linear-gradient(135deg, #b9707a, #93525e);
  border-color: transparent;
  box-shadow: 0 8px 18px -14px rgba(122, 63, 74, 0.9);
}

/* ── section heads ───────────────────────────────────────────────────────── */
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--plum);
}

.section-head p {
  margin-top: 0.3rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
}

/* ── envelopes ───────────────────────────────────────────────────────────── */
.envelope-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.envelope {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 68px;
  padding: 0.6rem 0.95rem 0.6rem 0.75rem;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 241, 0.8));
  border: 1px solid rgba(192, 123, 129, 0.2);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease;
}

.envelope:active {
  transform: scale(0.985);
}

.envelope-seal {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.15rem;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 60%),
    var(--envelope-accent, var(--blush));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 4px 10px -8px rgba(90, 60, 55, 0.8);
}

.envelope-text {
  flex: 1 1 auto;
  min-width: 0;
}

.envelope-name {
  display: block;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--plum);
}

.envelope-meta {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.74rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.envelope-count {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(248, 227, 225, 0.7);
}

.envelope.is-done .envelope-count {
  color: #5d7350;
  background: rgba(238, 245, 231, 0.85);
}

/* ── compliment generator ────────────────────────────────────────────────── */
.compliment-card {
  position: relative;
  margin-top: 0.85rem;
  padding: 1.35rem 1.1rem 1.1rem;
  border-radius: 4px 20px 6px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 251, 245, 0.86)),
    repeating-linear-gradient(180deg, rgba(192, 123, 129, 0.07) 0 1px, transparent 1px 26px);
  border: 1px dashed rgba(192, 123, 129, 0.4);
  box-shadow: var(--shadow-soft);
  transform: rotate(-0.6deg);
}

.compliment-star {
  position: absolute;
  top: -9px;
  right: 18px;
  width: 22px;
  height: 22px;
  color: var(--gold);
  transform: rotate(12deg);
}

.compliment-text {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.58;
  color: var(--plum);
  min-height: 4.6em;
  text-wrap: pretty;
}

.compliment-text.is-popping {
  animation: pop-in 0.5s var(--ease-out);
}

@keyframes pop-in {
  0%   { opacity: 0; transform: translateY(8px) scale(0.985); }
  100% { opacity: 1; transform: none; }
}

.compliment-card .btn {
  margin-top: 0.95rem;
  width: 100%;
  min-height: 48px;
  font-size: 0.92rem;
}

/* ── scrapbook strip ─────────────────────────────────────────────────────── */
.scrap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.scrap-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.35rem 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(192, 123, 129, 0.16);
  text-align: center;
}

.scrap-list li span:last-child {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.scrap-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}

.scrap-icon svg {
  width: 100%;
  height: 100%;
}

/* ── before you go ───────────────────────────────────────────────────────── */
.before-you-go {
  margin-top: 0.25rem;
}

.letter-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  min-height: 76px;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  text-align: left;
  color: #fdf6ec;
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(226, 186, 158, 0.4) 0%, rgba(226, 186, 158, 0) 62%),
    linear-gradient(140deg, #5c3c3a 0%, #472c30 100%);
  box-shadow: 0 18px 30px -22px rgba(60, 34, 38, 0.95);
  transition: transform 0.2s var(--ease-out);
}

.letter-link:active { transform: scale(0.985); }

.letter-link-label {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.letter-link-sub {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(253, 246, 236, 0.72);
}

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot {
  margin-top: 0.45rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(192, 123, 129, 0.18);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(122, 97, 102, 0.8);
}

.foot-sign {
  font-family: var(--hand);
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  color: var(--rose-deep);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FINAL LETTER SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */
.screen--letter {
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(255, 240, 215, 0.75) 0%, rgba(255, 240, 215, 0) 60%),
    linear-gradient(178deg, #fdf6ea 0%, #f7ece0 100%);
}

.letter-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 1.5rem max(1.15rem, calc(var(--safe-l) + 1rem)) calc(7.6rem + var(--safe-b))
    max(1.15rem, calc(var(--safe-r) + 1rem));
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.eyerow {
  text-align: center;
  font-family: var(--hand);
  font-size: 1.65rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--rose-deep);
}

.letter-sheet {
  position: relative;
  padding: 2.1rem 1.35rem 1.7rem;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.96), rgba(253, 247, 236, 0.98));
  box-shadow: 0 26px 50px -34px rgba(70, 46, 51, 0.65),
    inset 0 0 0 1px rgba(193, 154, 82, 0.2);
  overflow: hidden;
}

.letter-sheet::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(193, 154, 82, 0.24);
  border-radius: 2px;
  pointer-events: none;
}

.letter-flower {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.9rem;
  opacity: 0.9;
}

.letter-body {
  position: relative;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.75;
  color: #4b3438;
}

.letter-body p + p {
  margin-top: 0.85rem;
}

.letter-title {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.24;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--plum);
  text-wrap: balance;
}

.letter-body strong {
  font-weight: 700;
  color: #3f2a2e;
}

.letter-signoff {
  margin-top: 1.5rem;
}

.letter-love {
  margin-top: 0.55rem;
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--plum);
}

.letter-ps {
  margin-top: 1.5rem;
  font-size: 0.94rem;
  color: rgba(90, 62, 68, 0.85);
}

.letter-star {
  position: absolute;
  width: 16px;
  height: 16px;
  color: var(--gold-soft);
}

.letter-star--1 { top: 26px; left: 26px; transform: rotate(-14deg); }
.letter-star--2 { bottom: 34px; right: 28px; transform: rotate(18deg); width: 12px; height: 12px; }

.letter-foot {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(122, 97, 102, 0.72);
}

/* ── wider screens ───────────────────────────────────────────────────────── */
@media (min-width: 700px) {
  .jar-main,
  .letter-main {
    max-width: 560px;
    padding-bottom: calc(6.4rem + var(--safe-b));
  }

  .hero-title { font-size: 2.6rem; }
  .hero-sub { font-size: 1.55rem; }
  .hero-line { font-size: 0.98rem; }
  .jar { width: 300px; }
  .scrap-list { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
  .scrap-list li { flex-direction: row; justify-content: flex-start; padding: 0.85rem 0.9rem; text-align: left; }
  .scrap-list li span:last-child { font-size: 0.82rem; }
  .envelope-list { display: grid; grid-template-columns: 1fr 1fr; }
  .letter-body { font-size: 1.05rem; }
  .letter-sheet { padding: 2.6rem 2.2rem 2.1rem; }
}

@media (min-width: 1100px) {
  .jar-main { padding-top: 1.6rem; }
}

/* ── a fuller jar: one paper scrap per note, slightly smaller ───────────── */
.jar-paper--dense .scrap {
  width: 23px;
  height: 15px;
}

.scrap--anya {
  box-shadow: 0 1px 2px rgba(93, 58, 58, 0.2), inset 0 0 0 1px rgba(214, 150, 132, 0.5);
}

.scrap--joke {
  box-shadow: 0 1px 2px rgba(93, 58, 58, 0.2), inset 0 0 0 1px rgba(196, 150, 70, 0.6);
}

.scrap--final {
  box-shadow: 0 1px 2px rgba(93, 58, 58, 0.2), inset 0 0 0 1.5px rgba(192, 96, 116, 0.7);
}
