@font-face {
  font-family: "Cormorant Garamond";
  src: url("/campaign/339108e78f44/brand/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/campaign/339108e78f44/brand/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* EvoScroll's ivory and ink identity, adapted for a candlelit experience. */
:root,
html[class] {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --night: #131815;
  --deep: #1c2620;
  --slate: #344339;
  --haze: #647167;
  --ink: #fbf8f2;
  --flame: #e4c995;
  --marigold: #d1ab6a;
  --saffron: #b6804f;
  --paper: #fbf8f2;
  --evo-muted: #c6c9bf;
  --evo-line: rgb(251 248 242 / 18%);
}

body {
  font-family: var(--font-body);
  letter-spacing: -0.02em;
}

::selection { background: #e4c99550; }
.font-display { font-weight: 500; }
.brand-ml-text { font-family: var(--font-body); }
html[data-brand] .brand-desh { display: none; }

button,
a,
input { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 5px;
}

/* Keep this shell independent of the compiled story's rendering tree. */
.evo-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  color: var(--ink);
}

.evo-header {
  position: absolute;
  top: max(28px, env(safe-area-inset-top));
  left: 36px;
  right: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.evo-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.06em;
  pointer-events: auto;
}

.evo-brand img { width: 33px; height: 33px; border-radius: 9px; }
.evo-edition {
  margin-left: 15px;
  padding-left: 24px;
  border-left: 1px solid var(--evo-line);
  color: #e6dcc9;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.evo-header-note {
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
  color: #f1e8d8;
  text-shadow: 0 2px 14px #0009;
}

.evo-chapter {
  position: absolute;
  left: 38px;
  bottom: max(35px, env(safe-area-inset-bottom));
  max-width: 350px;
  text-shadow: 0 2px 20px #000b;
  transition: opacity 0.5s;
}

.evo-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--flame);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.evo-chapter h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.evo-chapter p {
  max-width: 280px;
  margin: 0;
  color: #e0dfd6;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0;
}

.evo-progress {
  position: absolute;
  right: 38px;
  bottom: max(39px, env(safe-area-inset-bottom));
  width: 172px;
}

.evo-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px #000;
}

.evo-progress-track { display: flex; gap: 5px; }
.evo-progress-track span {
  flex: 1;
  height: 2px;
  background: rgb(251 248 242 / 24%);
  transition: background 0.6s;
}
.evo-progress-track .is-complete { background: var(--flame); }
.evo-progress-track .is-current { background: var(--ink); }
.evo-shell [hidden] { display: none !important; }

.evo-send-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding: 13px 20px;
  border: 1px solid #e4c99580;
  border-radius: 5px;
  background: var(--paper);
  color: #1d1a17;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  pointer-events: auto;
  text-shadow: none;
  transition: background 0.2s;
}
.evo-send-link:hover { background: #e4c995; }

/* The original sound and scene controls retain their events and positions. */
[data-story] > .fixed > div:has(> button[aria-pressed]) > div:first-child,
[data-story] > .fixed > div:has(> .brand-ml),
[data-story] > .fixed > div:has(> div > .brand-ml):not(:has(button)) {
  visibility: hidden;
}

[data-story] button[aria-pressed] {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  margin-right: 17px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--evo-line);
  background: #19221bd9;
  color: var(--paper);
  box-shadow: none;
}

.evo-original-brand { display: none !important; }

[data-story] button[aria-label^="Tap to"]:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: -10px;
}

[data-story] [class*="hint-bob"] {
  padding: 10px 15px;
  border: 1px solid #e4c99577;
  border-radius: 5px;
  background: #fbf8f2ed;
  color: #292820;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 5px 30px #0004;
}
[data-story] [class*="hint-bob"] > span:first-child { opacity: 0.2; }
[data-story] [class*="hint-bob"] > span:nth-child(2) { background: transparent; }
[data-story] [class*="hint-ripple"] { display: none; }

[data-story] a.bg-flame {
  border: 1px solid #e4c99580;
  border-radius: 5px;
  background: var(--paper);
  color: #1d1a17;
  font-size: 13px;
  box-shadow: none;
}
[data-story] button[class*="underline-offset"] { font-size: 11px; }

/* Loading is quiet, warm, and consistent with the campaign identity. */
.fixed.bg-night.grid:has(.origin-left) {
  background: radial-gradient(ellipse at 50% 80%, #354034 0%, #131815 65%);
}
.fixed.bg-night.grid:has(.origin-left) img { width: 42px; height: 42px; border-radius: 11px; }
.fixed.bg-night.grid:has(.origin-left) p:first-of-type { font-size: 19px; font-weight: 500; letter-spacing: -0.06em; }
.fixed.bg-night.grid:has(.origin-left) p.uppercase { font-size: 8px; letter-spacing: 0.25em; }
.fixed.bg-night.grid:has(.origin-left) .w-28 { width: 160px; }

/* One-field gifting flow. The lantern canvas remains the background. */
body:has(.evo-send-page) { background: #131815; }
.overflow-x-clip:has(.evo-send-page) > div:first-child {
  background: linear-gradient(to bottom, #1b2c24, #3e5140 45%, #131815 100%);
}
.overflow-x-clip:has(.evo-send-page) > div:nth-child(2) {
  background: linear-gradient(to top, #131815 0%, #131815ee 22%, #1318159c 50%, transparent 85%);
}
.evo-send-page { isolation: isolate; }
.evo-send-page > header { visibility: hidden; }
.evo-send-page > main {
  justify-content: center;
  padding-top: 95px;
  padding-bottom: 20px;
}

.evo-send-intro { max-width: 550px; margin-bottom: 38px; }
.evo-send-intro .evo-kicker { margin-bottom: 16px; }
.evo-send-intro h1 {
  margin: 0 0 17px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.evo-send-intro h1 em { color: var(--flame); font-style: italic; }
.evo-send-intro p {
  max-width: 300px;
  margin: 0 auto;
  color: #d1d3c8;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0;
}

.evo-send-page label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d1d3c8;
}
.evo-send-page input {
  width: min(100%, 340px);
  margin-top: 13px;
  padding-bottom: 9px;
  border-width: 0 0 1px;
  border-color: #e4c99570;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.evo-send-page input::placeholder { color: #9daba080; }
.evo-send-page input:focus { border-color: var(--flame); box-shadow: 0 1px var(--flame); }
.evo-name-help {
  margin-top: 13px;
  color: #c2c7bb;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0;
}
.evo-send-page > footer { padding-bottom: 26px; }
.evo-send-page > footer > button,
.evo-share-actions > button {
  width: min(100%, 340px);
  height: 52px;
  border: 1px solid #e4c99575;
  border-radius: 5px;
  background: #fbf8f2;
  color: #1d1a17;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}
.evo-send-page button:disabled { opacity: 0.45; }
.evo-send-page button:not(:disabled):hover { filter: none; background: #e4c995; }
.evo-send-page [class*="hint-ripple"] { display: none; }
.evo-send-page button svg { width: 16px; height: 16px; }

.evo-send-page[data-step="done"] > main { justify-content: end; padding-bottom: 22px; }
.evo-send-page[data-step="done"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, #13181520 24%, #131815d9 60%, #131815 100%);
}
.evo-send-page[data-step="done"] .evo-send-intro { margin-bottom: 0; }
.evo-send-page[data-step="done"] .evo-send-intro h1 { font-size: clamp(40px, 6vw, 68px); }
.evo-share-actions { display: grid; justify-items: center; gap: 13px; width: 100%; }
.evo-share-actions .evo-copy-link,
.evo-share-actions .evo-edit-name {
  height: auto;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.evo-share-actions .evo-edit-name { color: #bbc5b9; }
.evo-share-actions .evo-copy-link:hover,
.evo-share-actions .evo-edit-name:hover { background: transparent; color: var(--flame); }
.evo-share-url {
  display: block;
  width: min(100%, 340px);
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid var(--evo-line);
  border-radius: 4px;
  color: #e0dfd6;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}
.evo-share-status { font-size: 10px; color: var(--flame); }
.evo-footer {
  position: absolute;
  inset: auto 36px 20px;
  display: flex;
  justify-content: space-between;
  color: #bcc3b5;
  font-size: 8px;
  letter-spacing: 0.06em;
}
.evo-footer a { pointer-events: auto; }
.evo-footer a:hover { color: var(--paper); }
.evo-shell.is-send .evo-header { right: 36px; }
.evo-shell.is-send .evo-header-note { font-size: 18px; }
.evo-shell.is-loading .evo-chapter,
.evo-shell.is-loading .evo-progress { opacity: 0; }

@media (min-width: 900px) {
  .evo-send-page > main { padding-top: 85px; }
  .evo-send-page > footer { padding-bottom: 45px; }
  .evo-send-page[data-step="done"] > main { padding-bottom: 28px; }
}

@media (max-width: 640px) {
  .evo-header { top: max(20px, env(safe-area-inset-top)); left: 20px; right: 72px; gap: 0; }
  .evo-brand { gap: 8px; font-size: 16px; }
  .evo-brand img { width: 28px; height: 28px; border-radius: 8px; }
  .evo-edition { margin-left: 9px; padding-left: 15px; font-size: 7px; letter-spacing: 0.16em; }
  .evo-header-note { display: none; }
  .evo-chapter { left: 23px; bottom: max(28px, env(safe-area-inset-bottom)); max-width: 250px; }
  .evo-kicker { margin-bottom: 10px; font-size: 8px; letter-spacing: 0.18em; }
  .evo-chapter h1 { max-width: 220px; margin-bottom: 8px; font-size: 36px; }
  .evo-chapter p { max-width: 220px; font-size: 10px; }
  .evo-progress { right: 23px; bottom: max(31px, env(safe-area-inset-bottom)); width: 67px; }
  .evo-progress-label { font-size: 8px; }
  .evo-progress-label span:first-child { display: none; }
  .evo-progress-label { justify-content: end; }
  [data-story] button[aria-pressed] { margin-top: 6px; margin-right: 2px; width: 34px; height: 34px; }
  .evo-send-link { margin-top: 15px; padding: 12px 15px; font-size: 10px; }
  .evo-shell.is-personal.is-finale .evo-chapter { bottom: 145px; }
  .evo-shell.is-personal.is-finale .evo-chapter h1 { font-size: 28px; }
  .evo-shell.is-personal.is-finale .evo-chapter p { display: none; }
  .evo-shell.is-personal.is-finale .evo-progress { bottom: 155px; }
  .evo-send-page > main { padding-top: 65px; padding-bottom: 20px; }
  .evo-send-intro { margin-bottom: 35px; }
  .evo-send-intro h1 { font-size: 60px; }
  .evo-send-intro p { font-size: 11px; max-width: 260px; }
  .evo-send-page > footer { padding-bottom: 30px; }
  .evo-send-page[data-step="done"] .evo-send-intro h1 { font-size: 48px; }
  .evo-footer { inset-inline: 20px; bottom: max(16px, env(safe-area-inset-bottom)); font-size: 7px; }
}

@media (max-height: 600px) {
  .evo-send-page > main { padding-top: 50px; }
  .evo-send-intro { margin-bottom: 14px; }
  .evo-send-intro h1 { font-size: 45px; }
  .evo-send-intro .evo-kicker { margin-bottom: 9px; }
  .evo-send-page input { margin-top: 4px; font-size: 29px; }
  .evo-send-page > footer { padding-bottom: 20px; }
  .evo-send-page[data-step="done"] > main { padding-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .evo-shell *, .evo-send-page * { animation: none !important; transition: none !important; }
}
