/* ============================================
   記憶球 · Memory Jar
   Soft, romantic, dusk-lit aesthetic
   ============================================ */

:root {
  --cream:      #faf3ec;
  --peach:      #f4c2a1;
  --rose:       #e8a5b8;
  --lavender:   #c8b4d8;
  --plum:       #3d2b47;
  --midnight:   #1a1730;
  --ink:        #2a1f3a;
  --whisper:    rgba(255, 255, 255, 0.7);

  --font-display: "Cormorant Garamond", "Noto Serif TC", "Songti TC", serif;
  --font-body:    "Inter", "Noto Sans TC", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(232, 165, 184, 0.25) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 20%, rgba(200, 180, 216, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(244, 194, 161, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #1a1730 0%, #2a1f3a 40%, #3d2b47 100%);
  background-attachment: fixed;
}

body::before {
  /* Static dust particles — no animation, no repaint cost */
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.35), transparent 3px),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.25), transparent 3px),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.2), transparent 3px),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.3), transparent 3px),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.25), transparent 3px);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Header
   ============================================ */

header {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem 1rem;
  text-align: center;
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  letter-spacing: 0.08em;
  color: var(--cream);
  text-shadow: 0 0 30px rgba(244, 194, 161, 0.4);
}

.title .amp {
  font-style: italic;
  color: var(--peach);
  padding: 0 0.2em;
}

.subtitle {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(250, 243, 236, 0.6);
  letter-spacing: 0.04em;
}

.count {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: rgba(250, 243, 236, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ============================================
   Jar
   ============================================ */

.jar-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem 4rem;
}

.jar {
  position: relative;
  width: min(88vw, 480px);
  height: min(120vw, 640px);
  max-height: 78vh;
}

/* Glass body */
.jar-glass {
  position: absolute;
  inset: 8% 0 0 0;
  border-radius: 45% 45% 30% 30% / 15% 15% 20% 20%;
  background:
    linear-gradient(160deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 40%,
      rgba(200, 180, 216, 0.06) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 -30px 60px -20px rgba(61, 43, 71, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* Glass highlight sheen */
.jar-glass::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 8%;
  width: 12%;
  height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05));
  border-radius: 50%;
  filter: blur(3px);
}

.jar-glass::after {
  content: '';
  position: absolute;
  top: 8%;
  right: 12%;
  width: 4%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent);
  border-radius: 50%;
  filter: blur(2px);
}

/* Jar lid / cork */
.jar-lid {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 10%;
  background: linear-gradient(180deg, 
    #8a6d5c 0%, 
    #a3826d 30%, 
    #6b5443 100%);
  border-radius: 10px 10px 6px 6px;
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.2),
    inset 0 -4px 8px rgba(0,0,0,0.3),
    0 4px 12px rgba(0,0,0,0.4);
  z-index: 2;
}

.jar-lid::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 10%;
  right: 10%;
  height: 8px;
  background: linear-gradient(180deg, #5d4838, #3d2f24);
  border-radius: 4px;
}

/* Ribbon on jar */
.jar-ribbon {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--rose);
  padding: 0.3rem 1.2rem;
  background: rgba(26, 23, 48, 0.5);
  border: 1px solid rgba(232, 165, 184, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.15em;
  text-shadow: 0 0 12px rgba(232, 165, 184, 0.5);
}

/* Orbs container */
.orbs {
  position: absolute;
  inset: 15% 8% 8% 8%;
  z-index: 1;
}

/* ============================================
   The Orb (3D CSS)
   ============================================ */

.orb {
  --core:   #ffd4a3;
  --mid:    #e8a5b8;
  --edge:   #7a4b6d;
  --glow:   rgba(232, 165, 184, 0.55);
  --wisp:   rgba(255, 220, 200, 0.9);
  --size:   90px;

  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background:
    /* top-left rim light */
    radial-gradient(circle at 26% 22%,
      rgba(255,255,255,0.95) 0%,
      rgba(255,255,255,0.4) 8%,
      transparent 24%),
    /* bottom shading for 3D depth */
    radial-gradient(circle at 70% 82%,
      rgba(0,0,0,0.28) 0%,
      transparent 45%),
    /* body color */
    radial-gradient(circle at 45% 45%,
      var(--core) 0%,
      var(--mid) 48%,
      var(--edge) 100%);
  /* deeper 3D: stronger inset bottom, subtle rim highlight, drop shadow, glow */
  box-shadow:
    inset -8px -12px 22px rgba(0,0,0,0.32),
    inset 6px 6px 12px rgba(255,255,255,0.18),
    0 8px 20px rgba(0,0,0,0.42),
    0 0 26px var(--glow);
  animation: float var(--float-duration, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}

/* Ground shadow beneath each orb — huge 3D anchor */
.orb-ground {
  position: absolute;
  width: calc(var(--size, 84px) * 0.9);
  height: calc(var(--size, 84px) * 0.14);
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 45%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px);
  animation: groundBreathe var(--float-duration, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform, opacity;
}

.orb .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* subtle multiply so face reads on any base color */
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.orb .face path,
.orb .face circle,
.orb .face line {
  stroke: rgba(30, 20, 40, 0.85);
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.orb .face .cheek {
  fill: rgba(255, 120, 140, 0.5);
  stroke: none;
}

.orb .face .eye-solid {
  fill: rgba(30, 20, 40, 0.85);
  stroke: none;
}

/* Twin marker: two orbs joined side by side */
.orb-twin {
  position: absolute;
  width: calc(var(--size, 84px) * 1.65);
  height: var(--size, 84px);
  animation: float var(--float-duration, 6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
  cursor: pointer;
}

.orb-twin .orb {
  position: absolute;
  top: 0;
  animation: none;
  will-change: auto;
}

.orb-twin .orb.left  { left: 0; }
.orb-twin .orb.right { right: 0; }

/* Little heart decoration next to some orbs */
.orb-deco {
  position: absolute;
  pointer-events: none;
  font-size: calc(var(--size, 84px) * 0.28);
  animation: sparkle 3.5s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.orb:hover {
  transform: translateY(-4px) scale(1.06);
  z-index: 10;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50%      { transform: translate(-50%, calc(-50% - 7px)) rotate(-1.5deg); }
}

/* Float for orbs that are NOT absolute-positioned (timeline / modal) — no translate(-50%,-50%) */
@keyframes floatSimple {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(-1.5deg); }
}

.timeline-orb .orb,
.modal-orb .orb {
  animation: floatSimple var(--float-duration, 6s) ease-in-out infinite !important;
}

/* Ground shadow "breathes" opposite to orb rise — reinforces 3D lift */
@keyframes groundBreathe {
  0%, 100% { transform: translateX(-50%) scaleX(1);    opacity: 0.9; }
  50%      { transform: translateX(-50%) scaleX(0.8);  opacity: 0.55; }
}

/* Timeline & modal orbs — no float centering transform */
.timeline-orb, .modal-orb {
  animation: none !important;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .orb-twin, .orb-deco, body::before { animation: none !important; }
}

/* Ears (external, stick out from the orb outline) */
.orb-ear {
  position: absolute;
  top: -22%;
  width: 34%;
  height: 40%;
  pointer-events: none;
  z-index: -1;
}
.orb-ear.left  { left: 6%;  transform: rotate(-14deg); }
.orb-ear.right { right: 6%; transform: rotate(14deg); }

.ear-bunny {
  background:
    radial-gradient(circle at 40% 30%, rgba(255,255,255,0.5) 0%, transparent 40%),
    linear-gradient(180deg, var(--mid) 0%, var(--edge) 100%);
  border-radius: 50% 50% 45% 45%;
  box-shadow: inset -3px -4px 8px rgba(0,0,0,0.28), 0 3px 8px rgba(0,0,0,0.25);
}
.ear-bunny::after {
  /* inner ear pink */
  content: '';
  position: absolute;
  inset: 22% 30% 20% 30%;
  background: rgba(255, 180, 200, 0.85);
  border-radius: 50%;
}

.ear-cat {
  background: linear-gradient(180deg, var(--mid) 0%, var(--edge) 100%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  width: 30%;
  height: 44%;
  top: -28%;
}
.ear-cat.left  { left: 8%; transform: rotate(-12deg); }
.ear-cat.right { right: 8%; transform: rotate(12deg); }

/* Chiikawa ears — tiny rounded bumps on top (same color as body) */
.ear-chiikawa {
  position: absolute;
  top: -12%;
  width: 22%;
  height: 26%;
  background: linear-gradient(180deg, var(--core) 0%, var(--mid) 100%);
  border-radius: 55% 55% 45% 45%;
  box-shadow:
    inset -2px -2px 4px rgba(0,0,0,0.08),
    0 2px 3px rgba(0,0,0,0.18),
    0 0 0 1px rgba(80, 70, 90, 0.35);
  filter: none;
}
.ear-chiikawa.left  { left: 24%; transform: rotate(-6deg); }
.ear-chiikawa.right { right: 24%; transform: rotate(6deg); }

/* 小八 ears — blue bow-tuft on the head (two rounded blue peaks) */
.ear-hachi {
  position: absolute;
  top: -20%;
  width: 30%;
  height: 32%;
  background: linear-gradient(180deg, #7bb0d4 0%, #3d7fa8 100%);
  border-radius: 55% 55% 42% 42%;
  box-shadow:
    inset -2px -3px 5px rgba(0,0,0,0.18),
    0 2px 4px rgba(0,0,0,0.28);
}
.ear-hachi.left  { left: 8%;  transform: rotate(-10deg); }
.ear-hachi.right { right: 8%; transform: rotate(10deg); }

/* Hug arms — chubby little arms wrapping to the front */
.orb-arm {
  position: absolute;
  width: 42%;
  height: 24%;
  bottom: 12%;
  background: linear-gradient(180deg, var(--mid) 0%, var(--edge) 100%);
  z-index: 3;
  box-shadow: inset -2px -3px 6px rgba(0,0,0,0.25), 0 2px 5px rgba(0,0,0,0.35);
  pointer-events: none;
}
.arm-hug.left  { left: -10%;  transform: rotate(-32deg); border-radius: 55% 45% 55% 40%; }
.arm-hug.right { right: -10%; transform: rotate(32deg);  border-radius: 45% 55% 40% 55%; }

/* Tear emoji sitting on the cheek — outside .face so it's not affected by multiply blend */
.orb-tear {
  position: absolute;
  left: 18%;
  top: 46%;
  font-size: 26%;
  line-height: 1;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

/* Special: line-heart orb (Tsing Ma bridge memory) — near-black body, only red heart line */
.orb-line-heart {
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,0.05) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, #0a0a12 0%, #010104 100%) !important;
  /* Subtle red halo bleed — line glows into surrounding orb & jar */
  box-shadow:
    inset -8px -12px 24px rgba(0,0,0,0.75),
    inset 0 0 30px rgba(255, 32, 48, 0.15),
    0 6px 20px rgba(0,0,0,0.55),
    0 0 22px rgba(255, 32, 48, 0.4),
    0 0 44px rgba(255, 32, 48, 0.22) !important;
}

/* Line-heart SVG paths must not be recolored by .orb .face path rule */
.orb-line-heart .line-heart path { stroke: currentColor; }

@keyframes heartPulse {
  0%, 100% { filter: brightness(1)    saturate(1); }
  50%      { filter: brightness(1.15) saturate(1.1); }
}

/* ============================================
   View toggle
   ============================================ */

.view-toggle {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.view-toggle button {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 243, 236, 0.5);
  background: transparent;
  border: 1px solid rgba(250, 243, 236, 0.15);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-toggle button.active,
.view-toggle button:hover {
  color: var(--cream);
  border-color: var(--rose);
  background: rgba(232, 165, 184, 0.1);
  text-shadow: 0 0 10px rgba(232, 165, 184, 0.5);
}

/* ============================================
   Timeline view
   ============================================ */

.timeline {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  display: none;
}

.timeline.active { display: block; }
.jar-wrapper.hidden { display: none; }

.timeline-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(250, 243, 236, 0.08);
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.timeline-item:hover {
  background: rgba(232, 165, 184, 0.05);
}

.timeline-orb {
  flex-shrink: 0;
  --size: 60px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-orb.timeline-twin {
  width: 108px;
}

.modal-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}
.modal-orb.modal-twin {
  min-width: 240px;
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.timeline-date {
  font-size: 0.75rem;
  color: rgba(250, 243, 236, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-moods {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.mood-tag {
  font-size: 0.7rem;
  color: var(--rose);
  padding: 0.15rem 0.6rem;
  background: rgba(232, 165, 184, 0.1);
  border: 1px solid rgba(232, 165, 184, 0.25);
  border-radius: 12px;
  letter-spacing: 0.05em;
}

/* ============================================
   Modal (orb detail)
   ============================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 20, 0.88);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal {
  max-width: 440px;
  width: 100%;
  background: linear-gradient(160deg, rgba(61, 43, 71, 0.95), rgba(26, 23, 48, 0.98));
  border: 1px solid rgba(232, 165, 184, 0.2);
  border-radius: 24px;
  padding: 2rem 1.8rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(232, 165, 184, 0.15);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.modal-backdrop.active .modal {
  transform: translateY(0) scale(1);
}

.modal-orb {
  --size: 110px;
  position: relative;
  margin: 0 auto 1.5rem;
}

.modal-date {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 0.4rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.modal-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(250, 243, 236, 0.85);
  margin-bottom: 1.4rem;
  padding: 0 0.5rem;
}

.modal-moods {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.modal-close {
  background: transparent;
  border: 1px solid rgba(250, 243, 236, 0.2);
  color: rgba(250, 243, 236, 0.7);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--cream);
  border-color: var(--rose);
}

/* ============================================
   Add button (floating)
   ============================================ */

.add-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--peach), var(--rose));
  color: var(--cream);
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232, 165, 184, 0.4), 0 0 30px rgba(244, 194, 161, 0.3);
  transition: transform 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.add-btn:hover {
  transform: scale(1.08) rotate(90deg);
}

/* ============================================
   Form (add.html)
   ============================================ */

.form-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.form-card {
  max-width: 500px;
  width: 100%;
  background: linear-gradient(160deg, rgba(61, 43, 71, 0.85), rgba(26, 23, 48, 0.95));
  border: 1px solid rgba(232, 165, 184, 0.2);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.form-title {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.form-subtitle {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(250, 243, 236, 0.5);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(250, 243, 236, 0.05);
  border: 1px solid rgba(250, 243, 236, 0.15);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  transition: all 0.3s ease;
  resize: vertical;
}

.form-group textarea {
  min-height: 100px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rose);
  background: rgba(232, 165, 184, 0.08);
  box-shadow: 0 0 20px rgba(232, 165, 184, 0.15);
}

.mood-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mood-chip {
  padding: 0.5rem 1rem;
  background: rgba(250, 243, 236, 0.05);
  border: 1px solid rgba(250, 243, 236, 0.15);
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(250, 243, 236, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.mood-chip.selected {
  background: rgba(232, 165, 184, 0.2);
  border-color: var(--rose);
  color: var(--cream);
  box-shadow: 0 0 12px rgba(232, 165, 184, 0.3);
}

.who-picker {
  display: flex;
  gap: 0.5rem;
}

.who-picker button {
  flex: 1;
  padding: 0.7rem;
  background: rgba(250, 243, 236, 0.05);
  border: 1px solid rgba(250, 243, 236, 0.15);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(250, 243, 236, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.who-picker button.selected {
  background: rgba(244, 194, 161, 0.15);
  border-color: var(--peach);
  color: var(--cream);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--peach), var(--rose));
  color: var(--ink);
  border: none;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1rem;
  font-weight: 500;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 165, 184, 0.4);
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: rgba(250, 243, 236, 0.5);
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.back-link:hover { color: var(--rose); }

/* ============================================
   Success state
   ============================================ */

.success {
  text-align: center;
  padding: 2rem 0;
  display: none;
}

.success.active { display: block; }
.form-content.hidden { display: none; }

.success-orb {
  --size: 100px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.success-text {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(250, 243, 236, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Small screens */
@media (max-width: 480px) {
  header { padding: 2rem 1rem 0.5rem; }
  .add-btn { bottom: 1.2rem; right: 1.2rem; width: 54px; height: 54px; }
  .modal { padding: 1.8rem 1.4rem; }
}

/* --- add.html form hint --- */
.form-hint {
  color: rgba(250, 243, 236, 0.35);
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.7rem;
  margin-left: 0.3rem;
}
