/* Coro app pages: create, contributor, panel, gift. Kit tokens only. */

.page-app { padding-top: calc(var(--nav) + var(--s-8)); padding-bottom: var(--s-9); min-height: 100svh; }
.field__hint { font-size: var(--t-small); font-weight: 400; color: var(--muted); }
.field__error { font-size: var(--t-small); font-weight: 500; color: #b3261e; }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: #b3261e; }
.field :is(input, select, textarea):focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.field label .muted { font-weight: 400; }
.link-plain { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.link-plain:hover { text-decoration-color: currentColor; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn--wide { width: 100%; justify-content: space-between; }

/* chips: one radio group drawn as pills */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); font-size: var(--t-small); font-weight: 500; cursor: pointer; transition: background-color var(--m-in, .15s) var(--ease), border-color var(--m-in, .15s) var(--ease); }
.chip:hover { border-color: color-mix(in oklab, var(--ink) 35%, transparent); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }

/* ---------- create ---------- */
.cf-head { max-width: 640px; display: grid; gap: var(--s-4); margin-bottom: var(--s-8); }
.cf-head h1 { font-size: var(--t-h2); }
.cf-lead { font-size: var(--t-lead); line-height: 1.5; color: var(--muted); }
.cf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
.cf__form { display: grid; gap: var(--s-6); }
.cf__occasions { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.cf__label { font-size: var(--t-small); font-weight: 500; padding: 0; }
.cf__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.cf__submit { display: grid; gap: var(--s-3); max-width: 420px; }
.cf__legal { font-size: var(--t-small); color: var(--muted); }
.form__status:empty { display: none; }
.cf__preview { position: sticky; top: calc(var(--nav) + var(--s-6)); display: grid; justify-items: center; padding: var(--s-7) var(--s-5); border-radius: var(--r-lg); background: var(--ground-bg, #d9ccb7); }
.cf__phone { width: 260px; }
.cf__screen { background: #f4efe7; color: #141210; display: grid; align-content: start; gap: 14px; padding: 22px 18px; }
.cf__screen-mark { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--font-display); }
.cf__screen-mark .mark { width: 14px; height: 14px; }
.cf__screen-by { font-size: 12px; color: #6b655c; margin-top: 18px; }
.cf__screen-title { font: 500 26px/1.08 var(--font-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.cf__screen-prompt { font-size: 14px; line-height: 1.4; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid rgb(20 18 16 / .08); overflow-wrap: anywhere; }
.cf__screen-btn { margin-top: 8px; height: 44px; border-radius: 10px; background: #1f6b3a; color: #fff; display: grid; place-items: center; font-weight: 500; font-size: 15px; }
@media (max-width: 1023px) {
  .cf { grid-template-columns: minmax(0, 1fr); }
  .cf__preview { display: none; }
}
@media (max-width: 639px) {
  .page-app { padding-top: calc(var(--nav) + var(--s-6)); }
  .cf__row { grid-template-columns: minmax(0, 1fr); }
  .cf__submit { max-width: none; }
}

/* ---------- app bar (panel, contributor, gift) ---------- */
.nav--app .nav__bar { justify-content: space-between; }
.app-body { background: var(--bg); color: var(--ink); font-family: var(--font-text); }
.app-empty { max-width: 560px; display: grid; gap: var(--s-4); padding-top: var(--s-8); }
.app-empty h1 { font-size: var(--t-h2); }

/* ---------- panel ---------- */
.pn { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); align-items: start; }
.pn__main, .pn__side { display: grid; gap: var(--s-5); min-width: 0; }
.pn__side { position: sticky; top: calc(var(--nav) + var(--s-5)); }
.pn__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-3); }
.pn__eyebrow { font-size: var(--t-small); color: var(--muted); }
.pn__head h1 { font-size: clamp(32px, 2vw + 20px, 48px); line-height: 1.05; overflow-wrap: anywhere; }
.pn__meta { color: var(--muted); }
.pn-card { background: color-mix(in oklab, var(--ink) 2.5%, var(--bg)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; }
.pn-card h2 { font-family: var(--font-text); font-size: var(--t-card); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.pn-card h3 { font-family: var(--font-text); font-size: var(--t-body); font-weight: 500; }
.pn-share__url { display: flex; gap: var(--s-2); }
.pn-share__url input { flex: 1; min-width: 0; height: var(--btn-h); padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1 var(--font-text); }
.pn-list__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.pn-empty { padding: var(--s-7) 0; display: grid; gap: var(--s-2); text-align: center; }
.pn-empty__title { font-weight: 500; }
.pn-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.pn-row { display: grid; grid-template-columns: 20px 48px minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.pn-row:last-child { border-bottom: 0; }
.pn-row.is-hidden { opacity: .55; }
.pn-row__n { color: var(--muted); font-size: var(--t-small); text-align: right; font-variant-numeric: tabular-nums; }
.pn-row__thumb { width: 48px; height: 64px; border-radius: 8px; overflow: hidden; padding: 0; border: 0; background: var(--surface); cursor: pointer; }
.pn-row__thumb:disabled { cursor: default; }
.pn-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pn-row__ph { display: block; width: 100%; height: 100%; background: linear-gradient(110deg, var(--surface) 30%, color-mix(in oklab, var(--surface) 70%, white) 50%, var(--surface) 70%); background-size: 200% 100%; animation: pn-shimmer 1.4s linear infinite; }
@keyframes pn-shimmer { to { background-position: -200% 0; } }
.pn-row__who { display: grid; gap: 2px; min-width: 0; }
.pn-row__who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-row__who small { color: var(--muted); font-size: var(--t-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pn-st { height: 24px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--surface); color: var(--muted); }
.pn-st--ready { background: color-mix(in oklab, var(--accent) 14%, var(--bg)); color: color-mix(in oklab, var(--accent) 80%, var(--ink)); }
.pn-st--failed { background: #fbe9e7; color: #a3261c; }
.pn-row__acts { display: flex; align-items: center; gap: 2px; }
.pn-icon { width: 36px; height: 36px; border-radius: 8px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.pn-icon:hover { background: var(--surface); }
.pn-icon:disabled { opacity: .3; cursor: default; background: none; }
.pn-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pn-text { height: 36px; padding: 0 10px; border: 0; background: none; border-radius: 8px; font-size: var(--t-small); font-weight: 500; cursor: pointer; color: var(--ink); }
.pn-text:hover { background: var(--surface); }
.pn-text--danger { color: #a3261c; }
.pn-price { font: var(--display-weight) var(--t-h3)/1 var(--font-display); letter-spacing: var(--display-tracking); }
.pn-paid { font-size: var(--t-small); color: color-mix(in oklab, var(--accent) 80%, var(--ink)); font-weight: 500; }
.pn-small { font-size: var(--t-small); }
.pn-notice { font-size: var(--t-small); color: #a3261c; font-weight: 500; }
.pn-progress { display: block; height: 6px; border-radius: 99px; background: var(--surface); overflow: hidden; position: relative; }
.pn-progress i { position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: inherit; background: var(--accent); animation: pn-run 1.6s var(--ease) infinite; }
@keyframes pn-run { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.pn-video__player { width: 100%; border-radius: var(--r-md); background: #000; }
.pn-video__player--vertical { max-height: 560px; aspect-ratio: 9 / 16; width: auto; justify-self: center; }
.pn-video__player--horizontal { aspect-ratio: 16 / 9; }
.pn-gift { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.pn-settings > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.pn-settings > summary::-webkit-details-marker { display: none; }
.pn-settings > summary::after { content: ""; width: 10px; height: 10px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur, .2s) var(--ease); }
.pn-settings[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.pn-settings__form { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.pn-settings__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.pn-fs { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.pn-fs legend { font-size: var(--t-small); font-weight: 500; padding: 0; margin-bottom: var(--s-2); }
.chip--theme { gap: var(--s-2); }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.sw--papel { background: #f4efe7; }
.sw--noche { background: #121110; }
.sw--fiesta { background: conic-gradient(#e8452c 0 25%, #f2b33d 0 50%, #1f6b3a 0 75%, #f6b5c4 0); }
.pn-skeleton { height: 60vh; border-radius: var(--r-lg); background: var(--surface); }

.pn-modal { border: 0; padding: 0; background: transparent; max-width: min(92vw, 980px); max-height: 92vh; }
.pn-modal::backdrop { background: rgb(10 10 10 / .78); }
.pn-modal__body { position: relative; display: grid; justify-items: center; gap: var(--s-3); }
.pn-modal__close { justify-self: end; height: 36px; padding: 0 14px; border-radius: 99px; border: 0; background: #fff; color: #0a0a0a; font-weight: 500; cursor: pointer; }
.pn-modal__video { max-height: 80vh; border-radius: var(--r-md); background: #000; }
.pn-modal__video--vertical { aspect-ratio: 9 / 16; }
.pn-modal__video--horizontal { width: min(92vw, 960px); aspect-ratio: 16 / 9; }

/* the in-browser preview: clips in order under a watermark */
.pv { position: relative; overflow: hidden; border-radius: var(--r-md); background: #000; display: grid; place-items: center; }
.pv--vertical { height: min(80vh, 760px); aspect-ratio: 9 / 16; }
.pv--horizontal { width: min(92vw, 960px); aspect-ratio: 16 / 9; }
.pv__video { width: 100%; height: 100%; object-fit: cover; }
.pv__title { position: absolute; inset: 0; display: grid; place-items: center; padding: 10%; text-align: center; }
.pv__title span { font: 500 clamp(28px, 4vw, 48px)/1.08 var(--font-display); letter-spacing: -0.03em; animation: pv-in .9s var(--m-ease-enter, ease) both; }
.pv--papel .pv__title { background: #f4efe7; color: #141210; }
.pv--noche .pv__title { background: #121110; color: #f4efe7; }
.pv--fiesta .pv__title { background: #e8452c; color: #fff; }
@keyframes pv-in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.pv__mark { position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: 99px; background: rgb(0 0 0 / .45); color: #fff; font-size: 12px; font-weight: 500; pointer-events: none; }
.pv__note { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; color: #fff; font-size: var(--t-small); }

@media (max-width: 1023px) {
  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn__side { position: static; }
}
@media (max-width: 639px) {
  .pn-card { padding: var(--s-5); border-radius: var(--r-md); }
  .pn-row { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "thumb who st" "thumb acts acts"; row-gap: var(--s-2); }
  .pn-row__n { display: none; }
  .pn-row__thumb { grid-area: thumb; width: 40px; height: 54px; }
  .pn-row__who { grid-area: who; }
  .pn-st { grid-area: st; }
  .pn-row__acts { grid-area: acts; }
  .pn-share__url { flex-direction: column; }
  .pn-settings__row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pn-row__ph, .pn-progress i, .pv__title span { animation: none; }
}

/* ---------- contributor (/c/[id]): one column, phone first ---------- */
.page-ct .wrap { max-width: 560px; }
.ct { display: grid; gap: var(--s-5); }
.ct-head { display: grid; gap: var(--s-3); }
.ct-by { color: var(--muted); font-size: var(--t-small); }
.ct-head h1 { font-size: clamp(34px, 3vw + 20px, 52px); line-height: 1.04; overflow-wrap: anywhere; }
.ct-facts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ct-facts li { height: 30px; padding: 0 12px; border-radius: 99px; background: var(--surface); display: inline-flex; align-items: center; font-size: var(--t-small); font-weight: 500; }
.ct-card { background: color-mix(in oklab, var(--ink) 2.5%, var(--bg)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: var(--s-3); }
.ct-label { font-size: var(--t-small); color: var(--muted); }
.ct-question { font: var(--display-weight) clamp(22px, 1vw + 18px, 28px)/1.25 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ct-org-note { padding-top: var(--s-3); border-top: 1px solid var(--line); white-space: pre-line; }
.ct-name input { font-size: 18px; }
.ct-actions { display: grid; gap: var(--s-2); }
.ct-actions .btn { height: 52px; font-size: 17px; }
.ct-rec { justify-content: center !important; gap: 10px; }
.ct-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff5a47; box-shadow: 0 0 0 3px rgb(255 255 255 / .25); }
.ct-open { justify-content: center !important; }
.ct-tips { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--t-small); }
.ct-tips li { display: flex; align-items: center; gap: var(--s-2); }
.ct-tips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.ct-made { justify-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--muted); margin-top: var(--s-5); }
.ct-made .mark { width: 14px; height: 14px; }
.ct-note { color: var(--muted); font-size: var(--t-small); }
.ct-pending { border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.ct-upload { text-align: center; justify-items: center; padding: var(--s-8) var(--s-5); }
.ct-bar { width: 100%; height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.ct-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s var(--ease); }
.ct-pct { font: var(--display-weight) 32px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ct-done { text-align: center; justify-items: center; padding: var(--s-8) var(--s-5); gap: var(--s-4); }
.ct-done h1 { font-size: clamp(26px, 2vw + 18px, 36px); line-height: 1.1; }
.ct-check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; animation: ct-pop .5s var(--m-ease-enter, ease) both; }
.ct-check svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: ct-draw .45s .2s var(--ease) forwards; }
@keyframes ct-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ct-draw { to { stroke-dashoffset: 0; } }
.ct-error ol, .cam__error ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.ct-viral { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--ground-bg, #d9ccb7); }
.ct-viral p { font-weight: 500; }
.ct-photo__img { width: 100%; max-height: 360px; object-fit: contain; border-radius: var(--r-md); background: var(--surface); }
.ct-closed { text-align: center; padding: var(--s-8) var(--s-5); }

/* the camera: full screen, the face first */
.cam { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; display: grid; }
.cam__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.cam__top { position: absolute; left: 0; right: 0; top: 0; padding: max(16px, env(safe-area-inset-top)) 16px 16px; display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(rgb(0 0 0 / .55), transparent); }
.cam__prompt { flex: 1; font: 500 17px/1.35 var(--font-text); text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.cam__close { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; border: 0; background: rgb(255 255 255 / .18); color: #fff; font-weight: 500; cursor: pointer; backdrop-filter: blur(8px); }
.cam__count { position: absolute; inset: 0; display: grid; place-items: center; font: 500 120px/1 var(--font-display); text-shadow: 0 2px 20px rgb(0 0 0 / .35); animation: cam-tick 1s var(--ease) infinite; pointer-events: none; }
@keyframes cam-tick { from { transform: scale(1.15); opacity: .4; } 30% { transform: none; opacity: 1; } to { opacity: .9; } }
.cam__timer { position: absolute; left: 50%; top: calc(max(16px, env(safe-area-inset-top)) + 64px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 99px; background: rgb(0 0 0 / .45); font-weight: 500; font-variant-numeric: tabular-nums; }
.cam__timer i { width: 10px; height: 10px; border-radius: 50%; background: #ff5a47; animation: cam-blink 1s steps(2) infinite; }
@keyframes cam-blink { 50% { opacity: .2; } }
.cam__bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 16px max(28px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 12px; background: linear-gradient(transparent, rgb(0 0 0 / .55)); }
.cam__shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cam__shutter i { width: 58px; height: 58px; border-radius: 50%; background: #ff5a47; transition: all .2s var(--ease); }
.cam__shutter:active i { transform: scale(.92); }
.cam__shutter--stop i { width: 30px; height: 30px; border-radius: 8px; }
.cam__shutter:disabled { opacity: .5; }
.cam__review { display: flex; gap: 12px; width: 100%; max-width: 420px; }
.cam__review .btn { flex: 1; height: 52px; justify-content: center; }
.cam__review .btn--secondary { background: rgb(255 255 255 / .16); color: #fff; border-color: transparent; }
.cam__notice { font-size: var(--t-small); text-align: center; opacity: .85; }
.cam__error { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); background: #fff; color: #0a0a0a; border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: var(--s-3); }
@media (prefers-reduced-motion: reduce) { .cam__count, .cam__timer i, .ct-check, .ct-check svg { animation: none; stroke-dashoffset: 0; } }

/* ---------- gift (/v/[giftId]): the envelope, then the film ---------- */
.gift { --g-bg: #f4efe7; --g-ink: #141210; --g-muted: #6b655c; min-height: 100svh; background: var(--g-bg); color: var(--g-ink); display: grid; position: relative; overflow-x: hidden; }
.gift--noche { --g-bg: #121110; --g-ink: #f4efe7; --g-muted: #a39c91; }
.gift--fiesta { --g-bg: #f2b33d; --g-ink: #141210; --g-muted: #4a3a17; }
.gift__cover { grid-area: 1 / 1; display: grid; place-content: center; justify-items: center; gap: var(--s-5); padding: var(--s-7) var(--s-5); text-align: center; transition: opacity .6s var(--ease), transform .8s var(--m-ease-enter, ease); }
.gift__mark .mark { width: 36px; height: 36px; background: var(--g-ink); }
.gift__hello { font: var(--display-weight) clamp(40px, 5vw + 16px, 88px)/1.02 var(--font-display); letter-spacing: var(--display-tracking-xl, -0.04em); max-width: 14ch; overflow-wrap: anywhere; animation: gift-rise 1s .1s var(--m-ease-enter, ease) both; }
.gift__from { color: var(--g-muted); font-size: var(--t-lead); animation: gift-rise 1s .35s var(--m-ease-enter, ease) both; }
.gift__open { margin-top: var(--s-3); height: 56px; padding: 0 40px; border-radius: 999px; border: 0; background: var(--g-ink); color: var(--g-bg); font: 500 18px/1 var(--font-text); cursor: pointer; animation: gift-rise 1s .6s var(--m-ease-enter, ease) both; transition: transform .15s var(--ease); }
.gift__open:hover { transform: translateY(-2px); }
.gift__open:active { transform: scale(.97); }
@keyframes gift-rise { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.gift.is-open .gift__cover { opacity: 0; transform: translateY(-40px) scale(.98); pointer-events: none; }
.gift__film { grid-area: 1 / 1; display: grid; justify-items: center; align-content: start; gap: var(--s-6); padding: var(--s-6) var(--s-4) var(--s-8); opacity: 0; transform: translateY(40px); pointer-events: none; transition: opacity .7s .15s var(--ease), transform .9s .15s var(--m-ease-enter, ease); }
.gift.is-open .gift__film { opacity: 1; transform: none; pointer-events: auto; }
.gift__frame { width: 100%; display: grid; justify-items: center; }
.gift__frame video { border-radius: var(--r-lg); background: #000; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .55); }
.gift__frame--vertical video { height: min(78svh, 900px); aspect-ratio: 9 / 16; max-width: 100%; }
.gift__frame--horizontal video { width: min(100%, 1100px); aspect-ratio: 16 / 9; }
.gift__after { display: grid; justify-items: center; gap: var(--s-5); text-align: center; max-width: 640px; }
.gift__label { color: var(--g-muted); font-size: var(--t-small); margin-bottom: var(--s-2); }
.gift__names p:last-child { font-size: var(--t-body); line-height: 1.7; }
.gift__made { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--g-muted); }
.gift__made .mark { width: 14px; height: 14px; background: var(--g-muted); }
.gift .btn--primary { background: var(--g-ink); color: var(--g-bg); }
@media (prefers-reduced-motion: reduce) { .gift__hello, .gift__from, .gift__open { animation: none; } .gift__cover, .gift__film { transition: none; } }

/* names and titles never hyphenate (system.css hyphenates long words in headings) */
.ct-head h1, .pn__head h1, .gift__hello, .cf-head h1, .ct-done h1, .cf__screen-title { hyphens: manual; -webkit-hyphens: manual; }
.ct-actions .btn { justify-content: center; }

/* ---------- legal ---------- */
.legal { max-width: 720px; display: grid; gap: var(--s-5); }
.legal h1 { font-size: var(--t-h2); }
.legal__date { margin-top: calc(-1 * var(--s-3)); font-size: var(--t-small); }
.legal__sec { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.legal__sec h2 { font-family: var(--font-text); font-size: var(--t-lead); font-weight: 500; letter-spacing: 0; }
.legal__sec p { max-width: 64ch; line-height: 1.65; }

/* phone: the video card right after sharing, before the long list */
@media (max-width: 1023px) {
  .pn { display: flex; flex-direction: column; }
  .pn__main, .pn__side { display: contents; }
  .pn__head { order: 1; }
  .pn-share { order: 2; }
  .pn-video { order: 3; }
  .pn-list { order: 4; }
  .pn-settings { order: 5; }
  .pn-keep { order: 6; }
}

/* the gift page is not a marketing page: its sections size to the screen, not to the kit's section box */
main.gift > section { height: auto; min-height: 0; padding: 0; }
main.gift > section.gift__cover { min-height: 100svh; padding: var(--s-7) var(--s-5); }
main.gift > section.gift__film { min-height: 100svh; padding: var(--s-6) var(--s-5) var(--s-8); }
.gift__faces { display: flex; justify-content: center; animation: gift-rise 1s .45s var(--m-ease-enter, ease) both; }
.gift__faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid var(--g-bg); margin-left: -12px; }
.gift__faces img:first-child { margin-left: 0; }
.gift:not(.is-open) { height: 100svh; overflow: hidden; }
.cf__mine { display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: color-mix(in oklab, var(--ink) 3%, var(--bg)); border: 1px solid var(--line); }
.cf__mine ul { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.pv--wait { background: #141210; color: #f4efe7; }
.pv__wait { display: grid; gap: var(--s-4); justify-items: center; padding: 0 12%; text-align: center; width: 100%; }
.pv__wait .pn-progress { width: 60%; background: rgb(255 255 255 / .14); }
