:root {
  --bg: #0b060b;
  --bg-soft: #140b13;
  --surface: #1d121b;
  --surface-soft: #281722;
  --surface-elevated: #fff8f3;
  --cream: #fff3e9;
  --cream-soft: #ffe9dc;
  --primary: #f36f9d;
  --primary-hover: #ff86ae;
  --primary-soft: rgba(243, 111, 157, 0.16);
  --rose: #ff9bb9;
  --rose-deep: #9e315d;
  --peach: #ffbd96;
  --lavender: #c9a7ff;
  --text-primary: #fff8fb;
  --text-secondary: rgba(255, 238, 246, 0.76);
  --text-muted: rgba(255, 230, 239, 0.52);
  --text-dark: #321923;
  --border: rgba(255, 221, 235, 0.13);
  --border-strong: rgba(255, 156, 190, 0.34);
  --success: #8ce0aa;
  --warning: #ffd18c;
  --danger: #ff7488;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --radius-full: 9999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --safe-bottom: env(safe-area-inset-bottom);
  --shadow-soft: 0 28px 70px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.28);
  --shadow-pink: 0 20px 48px rgba(243, 111, 157, 0.19);
  --focus-ring: 0 0 0 3px rgba(243, 111, 157, 0.27);
  --transition: 190ms ease;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  touch-action: manipulation;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 50% -7%, rgba(243, 111, 157, 0.22), transparent 18rem),
    radial-gradient(circle at 100% 18%, rgba(255, 189, 150, 0.1), transparent 15rem),
    linear-gradient(180deg, #120812 0%, #0b060b 52%, #070407 100%);
  overscroll-behavior: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 22%, rgba(255, 255, 255, 0.035), transparent 11rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

body::after {
  content: none;
}

button,
input,
textarea {
  font: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
  word-break: normal;
  letter-spacing: 0;
}

.app-shell {
  width: min(980px, 100%);
  max-width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) var(--space-4) calc(120px + var(--safe-bottom));
  overflow-x: clip;
}

.topbar,
.card-topbar,
.section-head,
.partner-profile,
.daily-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.topbar {
  min-height: 48px;
  margin-bottom: var(--space-3);
}

.brand-lockup {
  flex: 1;
  min-width: 0;
}

.brand-lockup h1 {
  margin: 2px 0 0;
  color: var(--text-primary);
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 700;
  line-height: 1.06;
}

.brand-lockup p,
.kicker,
.ritual-label {
  margin: 0;
  color: var(--rose);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
}

.premium-label,
.premium-chip,
.collection-brand,
.counts span,
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.premium-label,
.premium-chip {
  margin-top: var(--space-2);
  color: #ffe9f1;
  border-color: var(--border-strong);
  background: var(--primary-soft);
}

.icon-button,
.button,
.bottom-nav-button,
.deck-card,
.hero-card,
.heartling-hero,
.together-ritual,
.daily-moment,
.date-preview-button,
.filter,
.favorite-row,
.admin-entry-card {
  border: 1px solid transparent;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--border);
  font-size: 18px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.09);
}

.icon-button:focus-visible,
.button:focus-visible,
.bottom-nav-button:focus-visible,
.filter:focus-visible,
.heartling-hero:focus-visible,
.together-ritual:focus-visible,
.daily-moment:focus-visible,
.deck-card:focus-visible,
.date-preview-button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.icon-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.icon-button.active {
  color: #401323;
  background: linear-gradient(135deg, #ffabc5, var(--primary));
  border-color: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), opacity var(--transition);
}

.button.primary {
  color: #3e1324;
  background: linear-gradient(135deg, #ffabc5, var(--primary));
  border-color: transparent;
  box-shadow: var(--shadow-pink);
}

.button.secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border-strong);
}

.button.danger {
  color: #fff8fb;
  background: rgba(255, 116, 136, 0.13);
  border-color: rgba(255, 116, 136, 0.34);
}

.button:hover,
.icon-button:hover,
.heartling-hero:hover,
.together-ritual:hover,
.daily-moment:hover,
.deck-card:hover,
.date-preview-button:hover,
.favorite-row:hover {
  transform: translateY(-1px);
}

.button:active,
.icon-button:active,
.bottom-nav-button:active,
.heartling-hero:active,
.together-ritual:active,
.daily-moment:active,
.deck-card:active,
.date-preview-button:active,
.favorite-row:active {
  transform: translateY(1px) scale(0.99);
}

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

.muted,
.deck-card p,
.idea-card p,
.favorite-row span {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.section-head.plain {
  align-items: flex-end;
}

.section-head h2 {
  max-width: 520px;
  margin: var(--space-1) 0 0;
  color: var(--text-primary);
  font-size: clamp(22px, 5.6vw, 32px);
  font-weight: 700;
  line-height: 1.12;
}

.home-hero {
  position: relative;
  min-height: 352px;
  display: grid;
  place-items: center;
  margin: var(--space-4) 0 var(--space-5);
}

.heartling-hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  width: 100%;
  min-height: 348px;
  padding: 24px var(--space-4) 18px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 27%, rgba(255, 172, 208, 0.3), transparent 8.8rem),
    radial-gradient(circle at 47% 42%, rgba(201, 167, 255, 0.17), transparent 13rem),
    radial-gradient(circle at 50% 86%, rgba(255, 189, 150, 0.08), transparent 11rem),
    linear-gradient(180deg, rgba(65, 24, 53, 0.84), rgba(29, 12, 27, 0.98));
  border-radius: 34px;
  border-color: rgba(255, 218, 231, 0.11);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  isolation: isolate;
}

.heartling-aura {
  position: absolute;
  inset: -46px -34px auto;
  z-index: -2;
  height: 286px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 126, 180, 0.56), transparent 8.5rem),
    radial-gradient(circle at 39% 43%, rgba(201, 167, 255, 0.3), transparent 11.5rem),
    radial-gradient(circle at 66% 48%, rgba(255, 214, 143, 0.15), transparent 11rem);
  filter: blur(8px);
  opacity: 0.88;
  animation: heartAuraBreath 7s ease-in-out infinite;
}

.heartling-hero::before,
.heartling-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 229, 239, 0.58);
  box-shadow:
    78px 22px 0 rgba(255, 255, 255, 0.22),
    -88px 58px 0 rgba(255, 159, 189, 0.28),
    116px 124px 0 rgba(255, 189, 150, 0.22),
    -126px 144px 0 rgba(255, 255, 255, 0.14);
  animation: floatParticles 8s ease-in-out infinite;
}

.heartling-hero::before {
  top: 76px;
  left: 50%;
}

.heartling-hero::after {
  right: 50%;
  bottom: 106px;
  animation-delay: -3.1s;
}

.heartling-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(208px, 62vw);
  height: min(188px, 56vw);
  margin-top: -2px;
  overflow: visible;
  isolation: isolate;
}

.heartling-stage::before {
  content: "";
  position: absolute;
  inset: 12% 0 3%;
  z-index: -2;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(255, 255, 255, 0.22), transparent 35%),
    radial-gradient(ellipse at 50% 56%, rgba(255, 102, 177, 0.34), transparent 63%);
  filter: blur(10px);
}

.heartling-stage::after {
  content: "";
  position: absolute;
  left: 21%;
  right: 21%;
  bottom: 2px;
  z-index: -1;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 146, 190, 0.38), transparent 72%);
  filter: blur(9px);
}

.heartling-spark {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 241, 247, 0.78);
  box-shadow: 0 0 12px rgba(255, 188, 214, 0.52);
  pointer-events: none;
  animation: heartSparkFloat 7s ease-in-out infinite;
}

.heartling-spark.one {
  top: 18%;
  left: 19%;
}

.heartling-spark.two {
  top: 24%;
  right: 16%;
  width: 7px;
  height: 7px;
  opacity: 0.66;
  animation-delay: -2s;
}

.heartling-spark.three {
  right: 24%;
  bottom: 18%;
  width: 4px;
  height: 4px;
  opacity: 0.48;
  animation-delay: -4.2s;
}

.heartling-figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 192px;
  height: 192px;
  border: 1px solid rgba(255, 218, 231, 0.18);
  border-radius: 54px;
  color: #ffe6ef;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(160deg, rgba(255, 143, 181, 0.3), rgba(201, 167, 255, 0.08));
  box-shadow:
    0 26px 80px rgba(243, 111, 157, 0.24),
    0 0 0 10px rgba(255, 255, 255, 0.028),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: heartBreath 3.5s ease-in-out infinite;
  isolation: isolate;
}

.heartling-hero .heartling-figure {
  width: clamp(164px, 48vw, 198px);
  height: clamp(164px, 48vw, 198px);
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transform-origin: 50% 58%;
  animation: heartHeroFloat 5.8s ease-in-out infinite;
}

.heartling-hero .heartling-figure::before {
  inset: -12px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.18), transparent 42%),
    radial-gradient(circle at 50% 55%, rgba(255, 128, 185, 0.16), transparent 68%);
}

.heartling-hero .heartling-figure::after {
  left: 24%;
  right: 24%;
  bottom: 11px;
  height: 14px;
  background: rgba(57, 13, 40, 0.28);
  filter: blur(14px);
}

.heartling-figure::before,
.heartling-figure::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.heartling-figure::before {
  inset: -26px;
  z-index: -1;
  border: 1px solid rgba(255, 190, 212, 0.12);
  border-radius: 70px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 174, 203, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 58%);
}

.heartling-figure::after {
  left: 20%;
  right: 20%;
  bottom: -22px;
  height: 18px;
  border-radius: 50%;
  background: rgba(243, 111, 157, 0.22);
  filter: blur(12px);
}

.heartling-figure.empty {
  font-size: 58px;
}

.heartling-figure.large {
  width: 190px;
  height: 190px;
  margin: 0 auto;
  border-radius: 48px;
}

.heartling-figure img {
  position: relative;
  z-index: 1;
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

.heartling-hero .heartling-figure img {
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22))
    drop-shadow(0 0 28px rgba(255, 157, 199, 0.2));
}

.heartling-copy {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(100%, 430px);
  max-width: 430px;
  margin-top: -2px;
}

.heartling-copy .muted {
  max-width: 330px;
  margin-bottom: 0;
}

.heartling-hero .kicker {
  margin-bottom: -1px;
  color: rgba(255, 178, 207, 0.72);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.heartling-copy h2,
.heartling-screen-card h2,
.idea-card h2,
.date-hero h2,
.partner-card h2,
.settings-list h2,
.admin-screen h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(27px, 7vw, 42px);
  font-weight: 700;
  line-height: 1.08;
}

.heartling-hero .heartling-copy h2 {
  max-width: min(100%, 360px);
  color: #fff8fb;
  font-size: clamp(26px, 7.6vw, 36px);
  font-weight: 800;
  line-height: 1.06;
  text-shadow: 0 10px 30px rgba(62, 16, 45, 0.24);
}

.heartling-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255, 234, 242, 0.62);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.heartling-status span {
  min-height: 23px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  color: rgba(255, 239, 246, 0.82);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 0 0 1px rgba(255, 218, 231, 0.08);
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
}

.heart-progress {
  width: min(290px, 100%);
  height: 10px;
  margin: var(--space-2) auto;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.heart-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffc0d3, var(--primary));
  box-shadow: 0 0 18px rgba(243, 111, 157, 0.38);
}

.heartling-hero .heart-progress {
  width: min(318px, calc(100% - 18px));
  height: 8px;
  margin: 7px auto 2px;
  overflow: visible;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(16, 7, 15, 0.34);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.07);
}

.heartling-hero .heart-progress span {
  position: relative;
  min-width: 8px;
  background: linear-gradient(90deg, #ffd0df, #ff86b4 52%, #f36f9d);
  box-shadow: 0 0 16px rgba(243, 111, 157, 0.44);
  animation: heartProgressIn 780ms ease-out both;
}

.heartling-hero .heart-progress span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff2f7;
  box-shadow:
    0 0 0 3px rgba(243, 111, 157, 0.18),
    0 0 15px rgba(255, 130, 179, 0.72);
  transform: translateY(-50%);
}

.heart-progress.large {
  height: 12px;
}

.heartling-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.heartling-meta span {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 700;
}

.heartling-hero .heartling-meta {
  width: min(318px, calc(100% - 18px));
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.heartling-hero .heartling-meta span {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 234, 242, 0.58);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.heartling-hero .heartling-meta .heartling-meta-primary {
  color: rgba(255, 248, 251, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.heartling-hero .heartling-meta .heartling-meta-secondary {
  text-align: right;
}

.together-ritual {
  position: relative;
  display: grid;
  gap: var(--space-2);
  width: 100%;
  max-width: 100%;
  min-height: 158px;
  margin: 0 0 var(--space-6);
  padding: var(--space-5);
  overflow: hidden;
  text-align: left;
  border-radius: 22px;
  border: 1px solid rgba(255, 159, 189, 0.28);
  background:
    radial-gradient(circle at 86% 48%, rgba(255, 119, 170, 0.36), transparent 10rem),
    linear-gradient(135deg, #2a0c19, #7b2a4f 58%, #f36f9d);
  background-clip: padding-box;
  box-shadow: var(--shadow-pink);
  isolation: isolate;
}

.together-ritual strong {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 700;
  line-height: 1.12;
}

.together-ritual p {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 21px;
}

.today-section,
.collections,
.date-preview {
  margin-top: var(--space-7);
}

.today-section {
  margin-top: var(--space-6);
}

.daily-moment {
  position: relative;
  display: grid;
  gap: var(--space-3);
  width: 100%;
  margin-top: var(--space-4);
  padding: var(--space-5);
  text-align: left;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 189, 150, 0.18), transparent 10rem),
    linear-gradient(135deg, #fff4e7, #ffd8e5);
  color: var(--text-dark);
  box-shadow: var(--shadow-card);
}

.daily-moment span,
.date-preview-button span {
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-transform: uppercase;
}

.daily-moment strong {
  max-width: 620px;
  color: var(--text-dark);
  font-size: clamp(20px, 5.4vw, 28px);
  font-weight: 700;
  line-height: 1.28;
}

.daily-moment small {
  max-width: 520px;
  color: rgba(50, 25, 35, 0.66);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

.collection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.deck-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 13px;
  min-height: 176px;
  padding: 18px;
  overflow: hidden;
  text-align: left;
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 87% 7%, rgba(255, 255, 255, 0.035), transparent 7rem),
    linear-gradient(145deg, rgba(47, 21, 40, 0.98), rgba(26, 13, 25, 0.98));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.deck-feature,
.deck-wide {
  grid-column: span 2;
  min-height: 218px;
  padding: 22px;
}

.deck-small {
  min-height: 214px;
}

.deck-card:hover {
  box-shadow:
    0 13px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.deck-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-primary);
  max-width: 88%;
  font-size: clamp(17px, 4.6vw, 28px);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.deck-card p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.deck-small p {
  display: none;
}

.deck-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
}

.deck-art i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 231, 240, 0.045);
}

.deck-art i:nth-child(1) {
  width: 124px;
  height: 124px;
  right: -30px;
  top: -26px;
}

.deck-art i:nth-child(2) {
  width: 8px;
  height: 8px;
  right: 34px;
  bottom: 44px;
  box-shadow: -44px -22px 0 rgba(255, 226, 238, 0.075), -76px 18px 0 rgba(255, 226, 238, 0.055);
}

.deck-art i:nth-child(3) {
  width: 150px;
  height: 2px;
  right: -28px;
  bottom: 72px;
  transform: rotate(-18deg);
}

.gradient-peach {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 181, 134, 0.14), transparent 10rem),
    linear-gradient(135deg, #2a1617, #1a0e18 76%);
}

.gradient-lavender {
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 167, 255, 0.14), transparent 10rem),
    linear-gradient(135deg, #221629, #1a0e18 76%);
}

.gradient-rose {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 143, 181, 0.16), transparent 10rem),
    linear-gradient(135deg, #2a1321, #1a0e18 76%);
}

.gradient-coral {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 112, 126, 0.15), transparent 10rem),
    linear-gradient(135deg, #2a1317, #1a0e18 76%);
}

.gradient-sky {
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 182, 255, 0.13), transparent 10rem),
    linear-gradient(135deg, #121a28, #1a0e18 76%);
}

.gradient-mint {
  background:
    radial-gradient(circle at 100% 0%, rgba(136, 224, 188, 0.12), transparent 10rem),
    linear-gradient(135deg, #102018, #1a0e18 76%);
}

.counts,
.filters,
.plans,
.partner-actions,
.join-actions,
.answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.counts {
  position: relative;
  z-index: 1;
  gap: 7px;
}

.deck-card .collection-brand,
.deck-card .counts span {
  border: 0;
  color: rgba(255, 234, 242, 0.68);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.deck-card .collection-brand {
  min-height: 24px;
  padding: 4px 8px;
  color: rgba(255, 178, 207, 0.7);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
}

.deck-card .counts span {
  min-height: 25px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
  line-height: 15px;
}

.deck-small .counts span {
  min-height: 25px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 15px;
}

.date-preview-button {
  display: grid;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-5);
  text-align: left;
  border-radius: var(--radius-lg);
  border-color: var(--border);
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 189, 150, 0.16), transparent 9rem),
    rgba(255, 255, 255, 0.045);
}

.date-preview-button strong {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.date-preview-button p {
  max-width: 560px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 22px;
}

.question-screen {
  min-height: calc(100dvh - 124px);
  padding-bottom: var(--space-5);
}

.question-topbar {
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 3;
}

.card-topbar {
  min-height: 44px;
}

.card-topbar > span {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.card-stage {
  position: relative;
  min-height: min(62dvh, 560px);
  margin-top: var(--space-4);
  overflow: visible;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}

.card-stage::before {
  content: "";
  position: absolute;
  inset: 14% 6% auto;
  height: 48%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(243, 111, 157, 0.18), transparent 58%),
    radial-gradient(circle at 70% 54%, rgba(255, 189, 150, 0.11), transparent 58%);
  filter: blur(16px);
  pointer-events: none;
}

.question-card {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  align-content: space-between;
  gap: var(--space-5);
  width: min(390px, calc(100vw - 48px));
  min-height: min(60dvh, 540px);
  padding: var(--space-6) var(--space-5);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 190, 209, 0.32), transparent 8.5rem),
    radial-gradient(circle at 14% 88%, rgba(255, 189, 150, 0.22), transparent 9rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 238, 230, 0.12)),
    var(--surface-elevated);
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
  transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.question-card::before,
.question-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.question-card::before {
  width: 170px;
  height: 170px;
  right: -68px;
  top: -54px;
  border: 1px solid rgba(106, 39, 63, 0.08);
  border-radius: 56px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(18deg);
}

.question-card::after {
  left: var(--space-5);
  right: var(--space-5);
  bottom: 86px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(65, 25, 38, 0.2), transparent);
}

.question-card > * {
  position: relative;
  z-index: 1;
}

.question-card.current {
  z-index: 2;
}

.question-card.ghost {
  z-index: 1;
  opacity: 0.42;
  filter: blur(0.2px);
  transform: translateX(calc(-50% + 34px)) translateY(16px) scale(0.94);
  pointer-events: none;
}

.question-card.dragging {
  transition: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.question-card h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(26px, 7.5vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.question-card hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(65, 25, 38, 0.12);
}

.question-card strong,
.question-card .kicker {
  color: rgba(87, 33, 52, 0.64);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.question-card.swipe-out-left {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(-150%) rotate(-7deg) scale(0.92) !important;
}

.question-card.swipe-out-right {
  opacity: 0;
  filter: blur(2px);
  transform: translateX(50%) rotate(7deg) scale(0.92) !important;
}

.swipe-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-5);
  text-align: center;
}

.swipe-controls .muted {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
}

.locked-card {
  opacity: 0.82;
}

.locked-copy {
  color: rgba(50, 25, 35, 0.7);
}

.answer-panel,
.paywall-panel {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-1) var(--space-4);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.answer-panel .section-head {
  align-items: center;
}

.answer-panel-body {
  display: grid;
  gap: var(--space-4);
}

.answer-status,
.answer,
.profile-meta,
.invite-code {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.038);
}

.answer {
  display: grid;
  gap: var(--space-2);
}

.answer p {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 23px;
}

.reveal-note {
  width: fit-content;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: #3b1322;
  background: linear-gradient(135deg, #ffadc6, var(--primary));
  font-size: 13px;
  font-weight: 700;
}

.paywall-panel,
.partner-card,
.idea-card,
.date-hero,
.empty-card,
.settings-list article,
.notice-card,
.heartling-screen-card,
.heartling-task-card,
.heartling-level-card,
.admin-stats article,
.admin-couple,
.admin-question,
.admin-answer,
.plans article,
.favorite-row,
.admin-entry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.paywall-panel,
.partner-card,
.idea-card,
.date-hero,
.empty-card,
.heartling-screen-card,
.heartling-task-card {
  padding: var(--space-5);
}

.notice-card {
  display: grid;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  text-align: left;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 173, 198, 0.18), transparent 10rem),
    linear-gradient(135deg, rgba(243, 111, 157, 0.1), transparent 62%),
    var(--surface);
}

.answer-notice {
  cursor: default;
}

.answer-notice .button {
  width: fit-content;
  margin-top: var(--space-1);
}

.notice-card strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
}

.date-filters {
  margin-top: var(--space-4);
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
}

.date-filters .filter {
  flex: 1 1 0;
  min-height: 42px;
  text-align: center;
}

.filter.active {
  color: #3b1322;
  background: linear-gradient(135deg, #ffadc6, var(--primary));
  border-color: transparent;
}

.heartling-screen-card {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  border-color: rgba(255, 190, 212, 0.16);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 183, 204, 0.28), transparent 11.5rem),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.055), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 52%),
    var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.heartling-screen-card .heartling-figure.large {
  margin-bottom: var(--space-2);
}

.heartling-screen-card + .partner-card {
  margin-top: var(--space-5);
}

.heartling-screen-card > strong {
  color: var(--text-primary);
  font-size: 18px;
  line-height: 24px;
}

.heartling-task-card {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 189, 150, 0.14), transparent 56%),
    var(--surface);
}

.heartling-task-card h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.14;
}

.heartling-task-card .muted {
  margin: 0;
}

.heartling-level-section {
  margin-top: var(--space-5);
  max-width: 100%;
  overflow-x: clip;
}

.heartling-level-section .section-head {
  margin-bottom: var(--space-3);
}

.heartling-level-section .section-head h2 {
  font-size: 22px;
}

.heartling-level-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(136px, 44vw, 178px);
  gap: var(--space-3);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 var(--space-2);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}

.heartling-level-rail::-webkit-scrollbar {
  display: none;
}

.heartling-level-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--space-2);
  min-width: 0;
  max-width: 100%;
  min-height: 238px;
  padding: var(--space-4);
  overflow: hidden;
  text-align: center;
  scroll-snap-align: start;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 183, 204, 0.24), transparent 7rem),
    var(--surface);
}

.heartling-level-card.current {
  border-color: rgba(255, 173, 198, 0.4);
  box-shadow: var(--shadow-pink);
}

.heartling-level-card.locked {
  color: var(--text-muted);
}

.heartling-level-media {
  display: grid;
  place-items: center;
  width: min(126px, 100%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.045);
}

.heartling-level-media img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

.heartling-level-card.locked .heartling-level-media img {
  filter: blur(8px) saturate(0.55) brightness(0.78);
  opacity: 0.72;
  transform: scale(1.04);
}

.heartling-level-card.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(29, 18, 27, 0.3) 58%, rgba(29, 18, 27, 0.76) 100%);
}

.heartling-level-card h3 {
  position: relative;
  z-index: 1;
  min-height: 23px;
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.heartling-level-card .kicker,
.heartling-level-card .muted {
  position: relative;
  z-index: 1;
  margin: 0;
}

.heart-reward-modal {
  text-align: center;
}

.together-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  width: 100%;
}

.together-status span {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.together-status span.present {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.together-status small {
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.78;
}

.together-status span.active {
  color: #3b1322;
  background: linear-gradient(135deg, #ffadc6, var(--primary));
  border-color: transparent;
}

.together-countdown {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: var(--space-2) auto;
  border-radius: 50%;
  color: #3b1322;
  background: linear-gradient(135deg, #ffdbe7, #ff8fb4);
  box-shadow: 0 18px 44px rgba(255, 93, 145, 0.28);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}

.together-screen-card.revealed {
  text-align: left;
}

.answer-form,
.partner-code-form,
.admin-premium-form {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.answer audio {
  display: block;
  width: 100%;
  margin-top: var(--space-2);
}

.voice-recorder {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
}

.voice-recorder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text-primary);
  font-size: 13px;
}

.voice-recorder-head span {
  color: var(--text-secondary);
  font-size: 12px;
}

.voice-recorder audio {
  width: 100%;
}

.voice-actions {
  margin: 0;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  font-size: 15px;
  line-height: 22px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

textarea {
  min-height: 116px;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border: 1px solid var(--primary-border, var(--border-strong));
  border-radius: var(--radius-md);
  color: #3b1322;
  background: linear-gradient(135deg, #ffadc6, var(--primary));
  font-size: 20px;
  font-weight: 700;
}

.avatar.small {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 16px;
}

.profile-card,
.partner-card {
  display: grid;
  gap: var(--space-4);
}

.partner-screen .partner-card:first-of-type {
  border-color: rgba(255, 169, 198, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 111, 157, 0.18), transparent 10rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 54%),
    var(--surface);
}

.partner-screen .partner-card:first-of-type .invite-code {
  color: #ffe8f0;
  border-color: rgba(255, 169, 198, 0.28);
  background:
    linear-gradient(135deg, rgba(243, 111, 157, 0.18), rgba(255, 255, 255, 0.04));
  letter-spacing: 0.12em;
}

.partner-history-card {
  display: grid;
  gap: var(--space-3);
}

.partner-history-list {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.history-item {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.038);
}

.history-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 0;
  color: rgba(255, 178, 207, 0.72);
  font-size: 11px;
  font-weight: 750;
  line-height: 16px;
  text-transform: uppercase;
}

.history-item-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-head time {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-weight: 650;
  text-transform: none;
}

.history-item h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
  line-height: 22px;
  overflow-wrap: break-word;
}

.history-answers {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.history-answers .answer {
  padding: var(--space-3);
  border-color: rgba(255, 221, 235, 0.09);
  background: rgba(255, 255, 255, 0.032);
}

.history-note {
  width: fit-content;
  margin: 0;
  padding: 5px 9px;
  border-radius: var(--radius-full);
  color: rgba(255, 234, 242, 0.58);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 650;
}

.profile-card .partner-profile {
  align-items: flex-start;
  justify-content: flex-start;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main {
  min-width: 0;
}

.profile-description {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 19px;
}

.profile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.profile-meta span,
.plans span,
.admin-stats span,
.admin-couple-meta,
.admin-answer span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.profile-meta strong {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: right;
}

.partner-screen,
.settings-list,
.ideas-list,
.favorites-screen,
.admin-screen,
.admin-answer-list {
  display: grid;
  gap: var(--space-4);
}

.partner-screen,
.settings-list,
.ideas-list,
.favorites-screen,
.admin-screen {
  margin-top: var(--space-5);
}

.partner-actions .button,
.answer-row .button,
.join-actions .button {
  flex: 1;
}

.invite-code {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.favorite-row {
  display: grid;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4);
  text-align: left;
}

.plans {
  display: grid;
  grid-template-columns: 1fr;
}

.plans article {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
}

.admin-entry-card {
  display: grid;
  gap: var(--space-2);
  width: 100%;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  text-align: left;
}

.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.admin-stats article {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
}

.admin-stats strong {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
}

.admin-couples {
  display: grid;
  gap: var(--space-3);
}

.admin-couple {
  overflow: hidden;
}

.admin-couple summary {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  cursor: pointer;
}

.admin-couple summary span,
.admin-couple summary strong {
  overflow-wrap: anywhere;
}

.admin-couple-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: 0 var(--space-4) var(--space-4);
}

.admin-answer-list {
  padding: 0 var(--space-4) var(--space-4);
}

.admin-question {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
}

.admin-question h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.admin-answer {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.045);
}

.admin-answer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 17px;
  overflow-wrap: anywhere;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: var(--space-5);
  background: rgba(12, 7, 11, 0.78);
  backdrop-filter: blur(8px);
}

.join-modal {
  display: grid;
  gap: var(--space-5);
  width: min(430px, 100%);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.answer-modal-backdrop {
  align-items: end;
  padding: 10px;
  padding-bottom: max(12px, var(--safe-bottom));
  overflow: hidden;
}

.answer-modal {
  gap: var(--space-3);
  width: 100%;
  max-width: 430px;
  max-height: calc(100dvh - env(safe-area-inset-top) - max(16px, var(--safe-bottom)) - 24px);
  overflow: auto;
  padding: var(--space-4);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
  overscroll-behavior: contain;
}

.answer-modal textarea {
  order: 1;
  min-height: 104px;
  max-height: 28dvh;
  font-size: 16px;
  line-height: 22px;
}

.answer-modal-actions {
  order: 2;
  margin-top: 0;
  padding-top: 0;
  background: var(--surface);
}

.answer-modal-actions .button {
  min-height: 44px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(76px + var(--safe-bottom));
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: #3b1322;
  background: linear-gradient(135deg, #ffadc6, var(--primary));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
  transition: opacity var(--transition), transform var(--transition);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(8px, var(--safe-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  width: min(292px, calc(100% - 56px));
  padding: var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(18, 10, 17, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.bottom-nav-button {
  min-height: 38px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.bottom-nav-button.active {
  color: #3b1322;
  background: linear-gradient(135deg, #ffadc6, var(--primary));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.skeleton-screen {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-6);
}

.skeleton-screen div {
  height: 120px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--surface);
  background-size: 220% 100%;
  animation: shimmer 1.35s infinite;
}

.empty-card {
  display: grid;
  gap: var(--space-4);
  text-align: center;
}

.hidden {
  display: none !important;
}

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes heartBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.035); }
}

@keyframes heartHeroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.006); }
}

@keyframes heartAuraBreath {
  0%, 100% { transform: scale(0.96); opacity: 0.72; }
  50% { transform: scale(1.04); opacity: 0.94; }
}

@keyframes heartSparkFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.46; }
  50% { transform: translate3d(2px, -9px, 0); opacity: 0.82; }
}

@keyframes heartProgressIn {
  0% { transform: scaleX(0.82); filter: saturate(0.8); }
  100% { transform: scaleX(1); filter: saturate(1); }
}

@keyframes floatParticles {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-12px); opacity: 1; }
}

@media (min-width: 760px) {
  .app-shell {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .home-hero {
    min-height: 374px;
  }

  .heartling-hero {
    min-height: 366px;
    padding-top: 28px;
  }

  .heartling-figure {
    width: 220px;
    height: 220px;
    border-radius: 54px;
  }

  .together-ritual,
  .daily-moment {
    padding: var(--space-6);
  }

  .collection-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .deck-feature {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 360px;
  }

  .deck-wide {
    grid-column: span 2;
  }

  .deck-small {
    min-height: 232px;
  }

  .date-preview-button {
    padding: var(--space-6);
  }

  .bottom-nav {
    left: auto;
    right: var(--space-6);
    bottom: var(--space-5);
    width: 252px;
    transform: none;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding: calc(16px + env(safe-area-inset-top)) 14px calc(132px + var(--safe-bottom));
  }

  .today-section,
  .collections,
  .date-preview,
  .home-hero {
    max-width: 100%;
    overflow-x: clip;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand-lockup h1 {
    font-size: 27px;
    line-height: 30px;
  }

  .home-hero {
    min-height: 334px;
    margin-top: var(--space-3);
    margin-bottom: var(--space-4);
  }

  .heartling-hero {
    min-height: 326px;
    padding: 20px 12px 16px;
    border-radius: 30px;
    gap: 8px;
  }

  .heartling-stage {
    width: min(186px, 62vw);
    height: min(168px, 56vw);
  }

  .heartling-hero .heartling-figure {
    width: clamp(150px, 50vw, 174px);
    height: clamp(150px, 50vw, 174px);
  }

  .heartling-hero .heartling-figure.empty {
    font-size: 66px;
  }

  .heartling-copy h2 {
    font-size: 28px;
    line-height: 31px;
  }

  .heartling-hero .heartling-copy {
    gap: 8px;
  }

  .heartling-hero .heartling-copy h2 {
    font-size: clamp(26px, 7.4vw, 31px);
    line-height: 1.07;
  }

  .heartling-hero .heart-progress,
  .heartling-hero .heartling-meta {
    width: min(302px, calc(100% - 14px));
  }

  .heartling-level-section {
    overflow-x: clip;
  }

  .heartling-level-rail {
    grid-auto-columns: clamp(126px, 43vw, 156px);
    gap: 10px;
    padding-bottom: var(--space-2);
  }

  .heartling-level-card {
    min-height: 210px;
    padding: 13px;
    border-radius: 20px;
  }

  .heartling-level-media {
    width: min(108px, 100%);
    border-radius: 26px;
  }

  .heartling-level-card h3 {
    font-size: 15px;
    line-height: 18px;
  }

  .together-ritual {
    width: 100%;
    max-width: 100%;
    min-height: 146px;
    padding: var(--space-4);
    border-radius: 20px;
  }

  .daily-moment,
  .deck-feature,
  .deck-wide,
  .date-preview-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: var(--space-4);
  }

  .daily-moment {
    border-radius: 20px;
  }

  .deck-card {
    min-height: 188px;
    padding: 15px;
  }

  .deck-feature,
  .deck-wide {
    min-height: 196px;
  }

  .deck-small {
    min-height: 202px;
  }

  .deck-card h3 {
    font-size: 17px;
    line-height: 21px;
  }

  .question-card {
    min-height: min(59dvh, 510px);
    padding: var(--space-5);
  }

  .question-card h2 {
    font-size: 25px;
    line-height: 31px;
  }

  .card-stage {
    min-height: min(61dvh, 530px);
  }

  .answer-modal-actions {
    order: 1;
  }

  .answer-modal textarea {
    order: 2;
    min-height: 96px;
  }

  .answer-modal-backdrop {
    padding: var(--space-2);
    padding-bottom: max(8px, var(--safe-bottom));
  }

  .answer-modal {
    gap: 10px;
    padding: var(--space-4);
    border-radius: 22px 22px 16px 16px;
  }

  .answer-modal h2 {
    margin-bottom: 0;
    font-size: 20px;
    line-height: 24px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 350px) {
  .brand-lockup h1 {
    font-size: 25px;
    line-height: 28px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .heartling-figure {
    width: 140px;
    height: 140px;
    border-radius: 36px;
  }

  .home-hero {
    min-height: 318px;
  }

  .heartling-hero {
    min-height: 310px;
    padding-top: 18px;
  }

  .heartling-stage {
    width: 174px;
    height: 156px;
  }

  .heartling-hero .heartling-figure {
    width: 146px;
    height: 146px;
  }

  .heartling-hero .heartling-figure.empty {
    font-size: 62px;
  }

  .heartling-copy h2 {
    font-size: 25px;
    line-height: 28px;
  }

  .heartling-hero .heartling-copy h2 {
    font-size: 25px;
    line-height: 27px;
  }

  .heartling-status {
    font-size: 11px;
  }

  .heartling-level-rail {
    grid-auto-columns: clamp(118px, 42vw, 142px);
    gap: 9px;
  }

  .heartling-level-card {
    min-height: 196px;
    padding: 12px;
  }

  .heartling-level-media {
    width: min(96px, 100%);
    border-radius: 24px;
  }

  .deck-card {
    padding: 13px;
  }

}

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