/* GreeftForU app pages: the AI Jungle on a festive evening, as built on the landing page (site/index.html).
   Night ground, bone text, ember for the one action per screen, gold for highlights, neon for focus and live things. */
@font-face { font-family: "Baloo 2"; src: url("/static/fonts/baloo2-var.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/fonts/nunito-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --night: #062A2C; --jungle: #0D4A45; --moss: #14645A; --deep: #041F21; --leaf: #2FBF5B; --neon: #37E6F0;
  --gold: #FFC247; --ember: #FF8A1F; --bone: #FFF4E0; --ink: #06201F; --berry: #FF4FD8;
  --bone-2: #D9E8DE;            /* secondary text on dark, 11:1 on night */
  --ink-2: #2E4A43;             /* secondary text on bone, 8.6:1 */
  --alarm: #FFB09C;             /* errors and destructive actions on dark, 9:1 on night */
  --alarm-ink: #A3300F;         /* the same on bone paper */
  --line: rgba(255, 244, 224, .16);
  --panel: rgba(13, 74, 69, .5);
  --field: rgba(4, 31, 33, .72);
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4.5vw, 40px);
  --r: 14px; --r-lg: 20px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--moss) var(--deep); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  color: var(--bone); font: 500 18px/1.6 var(--text); letter-spacing: .005em; -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  position: relative; isolation: isolate;
  background:
    radial-gradient(90% 520px at 8% -120px, rgba(255, 194, 71, .13), transparent 70%),
    radial-gradient(70% 420px at 100% -80px, rgba(55, 230, 240, .07), transparent 70%),
    var(--night);
}
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 900px; pointer-events: none;
  background: linear-gradient(115deg, transparent 0 14%, rgba(255, 194, 71, .07) 20%, transparent 29%),
              linear-gradient(115deg, transparent 0 34%, rgba(255, 194, 71, .045) 40%, transparent 48%);
  -webkit-mask: linear-gradient(#000 30%, transparent); mask: linear-gradient(#000 30%, transparent); }
main { flex: 1 0 auto; padding: 20px 0 56px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--ink); }
a { color: var(--neon); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
.sr, .vh, .step-n { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: 8px; z-index: 60; padding: 12px 16px; border-radius: 10px; background: var(--bone); color: var(--ink);
  font-weight: 800; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; min-height: 44px; display: inline-flex; align-items: center; outline-color: var(--ink); }
.wrap { width: min(100% - 2 * var(--gut), 1120px); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gut), 720px); }
.center { text-align: center; }
.tnum, td.num, th.num, .big { font-variant-numeric: tabular-nums lining-nums; }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.012em; text-wrap: balance; margin: 0; }
h1 { font-size: 38px; line-height: 1.04; margin: 0 0 12px; }
h2 { font-size: 27px; line-height: 1.12; margin: 40px 0 10px; }
h3 { font-size: 21px; line-height: 1.2; margin: 0 0 6px; }
p { margin: 0 0 12px; text-wrap: pretty; }
.sub { color: var(--bone-2); font-size: 18.5px; max-width: 36em; margin: 0 0 24px; }
.note, .hint { font-size: 15px; line-height: 1.5; color: var(--bone-2); margin: 0; }
.note { margin-top: 14px; }
.hint.lead { font-size: 17px; }
.label, .field > label, fieldset > legend { display: block; font-weight: 800; font-size: 16px; color: var(--bone); padding: 0; }
@media (min-width: 760px) {
  h1 { font-size: 50px; }
  h2 { font-size: 30px; }
}

/* ---------------------------------------------------------------- header */
header.top { position: relative; z-index: 30; }
.top-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 10px 0 4px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 800 23px/1 var(--display); letter-spacing: -.01em; color: var(--bone); text-decoration: none; }
.brand b { color: var(--gold); font-weight: 800; }
.brand:hover { color: var(--bone); }
.navs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.navs > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px;
  font-weight: 800; font-size: 15.5px; color: var(--bone); text-decoration: none; }
.navs > a:hover { background: rgba(255, 244, 224, .08); }
.navs > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.lang { display: flex; padding: 3px; margin-left: 4px; border-radius: 12px; background: rgba(4, 31, 33, .62); box-shadow: inset 0 0 0 1px rgba(255, 244, 224, .22); }
.lang a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 9px; color: var(--bone);
  font: 800 14px/1 var(--text); letter-spacing: .06em; text-decoration: none; }
.lang a:hover { background: rgba(255, 244, 224, .1); color: var(--bone); }
.lang a[aria-current="true"] { background: var(--bone); color: var(--ink); }
@media (max-width: 480px) {
  .brand { font-size: 21px; }
  .navs { gap: 0; }
  .navs > a { padding: 0 7px; font-size: 15px; }
  .lang a[aria-current="true"] { display: none; }  /* phones: one switch, to the other language */
}

/* ---------------------------------------------------------------- buttons: the ember ribbon */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 12px; cursor: pointer; text-align: center; text-decoration: none;
  font: 800 17px/1.15 var(--text); letter-spacing: .01em; color: var(--bone); background: none;
  transition: transform .14s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary {
  color: var(--ink); position: relative; isolation: isolate; padding-inline: 28px;
  filter: drop-shadow(0 6px 7px rgba(2, 20, 20, .45));
}
.btn.primary::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px;
  background: linear-gradient(180deg, #FFA94F 0%, var(--ember) 46%, #EE7408 54%, #F7841A 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%); }
.btn.primary::after { content: ""; position: absolute; inset: 3px 14px auto; height: 1px; background: rgba(255, 238, 210, .75); z-index: -1; }
.btn.primary:hover { color: var(--ink); }
.btn.primary:hover::before { background: linear-gradient(180deg, #FFB766 0%, #FF9733 46%, #F27F14 54%, #FF9026 100%); }
.btn.ghost, .btn.quiet { color: var(--bone); background: rgba(6, 42, 44, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .55); }
.btn.ghost:hover, .btn.quiet:hover { color: var(--bone); background: rgba(255, 244, 224, .08); box-shadow: inset 0 0 0 1.5px var(--bone); }
.btn.danger { color: var(--alarm); box-shadow: inset 0 0 0 1.5px var(--alarm); }
.btn.danger:hover { color: var(--ink); background: var(--alarm); }
.btn.small { min-height: 44px; padding: 9px 16px; font-size: 15.5px; }
.btn.link { min-height: 44px; padding: 0; color: var(--neon); text-decoration: underline; text-underline-offset: .2em; font-weight: 800; }
.btn.link:hover { color: var(--bone); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.big-btn { width: 100%; min-height: 58px; font-size: 19px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin: 18px 0 0; }
.cta form { margin: 0; }
form.inline { display: inline; margin: 0; }

/* ---------------------------------------------------------------- panels, tickets, holo */
.card, .panel {
  position: relative; padding: 20px; border-radius: var(--r-lg); background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 30px -22px rgba(0, 0, 0, .8);
}
.card + .card, .card + .cta, section.card { margin-top: 14px; }
.card h2 { margin: 0 0 8px; font-size: 24px; }
.card h3 { margin: 0 0 6px; }
.card > p:last-child { margin-bottom: 0; }
.holo { background: rgba(4, 31, 33, .6); box-shadow: inset 0 0 0 1px rgba(55, 230, 240, .55), 0 18px 30px -22px rgba(0, 0, 0, .8); }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid > .card + .card { margin-top: 0; }
@media (min-width: 760px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
}

/* the gift voucher ticket: bone paper, gold double edge, notches, dashed stub */
.tk { filter: drop-shadow(0 14px 18px rgba(2, 20, 20, .5)) drop-shadow(0 2px 3px rgba(2, 20, 20, .35)); }
.ticket {
  --fold: 72px;
  position: relative; display: grid; grid-template-columns: var(--fold) minmax(0, 1fr);
  background: var(--bone); color: var(--ink); border-radius: var(--r);
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 5px var(--bone), inset 0 0 0 6px rgba(201, 146, 32, .45);
  -webkit-mask: radial-gradient(circle 11px at var(--fold) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at var(--fold) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 11px at var(--fold) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at var(--fold) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.t-stub { display: grid; place-items: center; border-right: 2px dashed rgba(6, 32, 31, .28); margin: 14px 0; padding: 0 8px; }
.t-stub img { width: 44px; height: auto; }
.t-body { padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.t-label { margin: 0; font: 800 13px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ticket h2, .ticket h3 { color: var(--ink); }
.ticket p { margin: 0; }
.ticket .hint, .ticket .note { color: var(--ink-2); }
.ticket a:not(.btn) { color: var(--ink); }
.ticket :focus-visible { outline-color: var(--ink); }
.ticket .btn.ghost, .ticket .btn.quiet, .btn.ink { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(6, 32, 31, .55); }
.ticket .btn.ghost:hover, .ticket .btn.quiet:hover, .btn.ink:hover { color: var(--bone); background: var(--ink); }
.big { font: 800 34px/1.05 var(--display); margin: 2px 0 0; letter-spacing: -.01em; }

/* status messages and errors: words and an icon, never colour alone */
.flash {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r);
  background: rgba(255, 194, 71, .12); box-shadow: inset 0 0 0 1px rgba(255, 194, 71, .6); color: var(--bone); font-weight: 700;
}
.flash::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.flash a { color: var(--bone); }
.flash.soft { display: block; background: rgba(255, 244, 224, .06); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.flash.soft::before { display: none; }
.flash.soft p { margin: 4px 0; }
.flash.soft .label { color: var(--gold); }
.err { display: flex; gap: 8px; align-items: flex-start; color: var(--alarm); font-weight: 800; font-size: 15.5px; line-height: 1.45; margin: 4px 0 0; }
div.err { display: block; }
.err::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M12 7v6' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.8' r='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3Cpath d='M12 7v6' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.8' r='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
div.err::before { display: none; }
.err p { margin: 4px 0; }
.ticket .err { color: var(--alarm-ink); }

/* ---------------------------------------------------------------- form controls */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
form.stack { display: grid; gap: 10px; max-width: 560px; }
.field { display: grid; gap: 6px; }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 12px; font: 700 18px/1.3 var(--text);
  background: var(--field); color: var(--bone); caret-color: var(--gold);
  box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .4); transition: box-shadow .16s var(--ease);
}
textarea { resize: vertical; font-weight: 600; line-height: 1.55; field-sizing: content; min-height: calc(2lh + 26px); }
select { appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23FFF4E0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; }
select option { background: var(--night); color: var(--bone); }
input::placeholder, textarea::placeholder { color: #9FB9B1; opacity: 1; font-weight: 600; }
input:hover:not([type=radio]):not([type=checkbox]), select:hover, textarea:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .75); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--neon); outline-offset: 2px; box-shadow: inset 0 0 0 1.5px var(--bone); border-radius: 12px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--alarm); }
input[type=file] { width: 100%; min-height: 52px; padding: 8px; border-radius: 12px; font: 700 16px var(--text); color: var(--bone-2);
  background: var(--field); border: 1.5px dashed rgba(255, 244, 224, .45); outline-offset: 3px; }
input[type=file]::file-selector-button { min-height: 40px; margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 9px; cursor: pointer;
  font: 800 15px var(--text); color: var(--ink); background: var(--bone); }
input[type=checkbox] { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--gold); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; min-height: 44px; }
.ticket input:not([type=radio]):not([type=checkbox]) { background: #FFFCF5; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(6, 32, 31, .35); caret-color: var(--ink); }
.ticket input:focus-visible { outline-color: var(--ink); }

/* chips: one tap choices */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > legend { width: 100%; margin-bottom: 8px; }
.chip, .pick, .totem, .emo { position: relative; cursor: pointer; }
.chip { display: inline-flex; }
.chip input, .pick input, .totem input, .emo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border-radius: 999px;
  background: rgba(4, 31, 33, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .3); font-weight: 700; font-size: 16.5px;
  transition: background-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
}
.chip:hover span { box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .7); }
.chip input:checked + span { background: var(--bone); color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold); }
.chip input:checked + span::before { content: ""; width: 16px; height: 16px; margin-right: 6px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 12.5 5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 12.5 5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.chip input:focus-visible + span, .pick input:focus-visible + span, .emo input:focus-visible + span { outline: 3px solid var(--neon); outline-offset: 3px; }
.chip.tall span { flex-direction: column; align-items: flex-start; justify-content: center; border-radius: 14px; padding: 10px 14px; gap: 1px; }
.chip.tall input:checked + span::before { position: absolute; top: 10px; right: 10px; margin: 0; }
.chip.tall b { font: 800 18px/1.15 var(--display); }
.chip.tall small { font-size: 14px; line-height: 1.35; color: var(--bone-2); font-weight: 600; }
.chip.tall input:checked + span small { color: var(--ink-2); }
.tones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tones > legend { grid-column: 1 / -1; }
.tones .chip span { width: 100%; height: 100%; padding-right: 28px; }

/* pick cards: a larger choice with a line of help */
.cards { display: grid; gap: 10px; }
.cards > legend { margin-bottom: 8px; }
.pick { display: block; }
.pick span {
  display: grid; gap: 2px; min-height: 64px; padding: 14px 16px 14px 52px; border-radius: 16px;
  background: rgba(4, 31, 33, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .3);
  transition: background-color .16s var(--ease), box-shadow .16s var(--ease);
}
.pick:hover span { box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .7); }
.pick span::before { content: ""; position: absolute; left: 16px; top: 19px; width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px currentColor; }
.pick b { font: 800 19px/1.2 var(--display); }
.pick small { font-size: 15px; line-height: 1.4; color: var(--bone-2); font-weight: 600; }
.pick input:checked + span { background: var(--bone); color: var(--ink); box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 5px var(--bone), inset 0 0 0 6px rgba(201, 146, 32, .45); }
.pick input:checked + span small { color: var(--ink-2); }
.pick input:checked + span::before { background: var(--ember); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 5px var(--bone); }

/* ---------------------------------------------------------------- tables: sober, tabular */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
th, td { text-align: left; padding: 12px 14px; white-space: nowrap; }
td.num, th.num { text-align: right; }
thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--bone-2); font-weight: 800; border-bottom: 1px solid rgba(255, 244, 224, .35); }
tbody td { border-bottom: 1px solid var(--line); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 244, 224, .035); }
.panel-table { padding: 6px 4px; border-radius: var(--r-lg); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 479px) { th, td { padding: 10px 9px; } }

/* ---------------------------------------------------------------- footer and consent */
footer { flex: none; background: var(--deep); padding: 34px 0 110px; color: var(--bone-2); font-size: 15.5px; box-shadow: 0 -1px 0 rgba(55, 230, 240, .18); }
footer p { margin: 8px 0; }
footer a { color: var(--bone); }
.sig-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sig-head { width: 48px; height: 48px; flex: none; }
.sig, .sig-row p { margin: 0; font: 800 19px/1.3 var(--display); color: var(--bone); }
.sig-row p a { display: inline-flex; align-items: center; min-height: 44px; }
.hack { display: inline-flex; align-items: center; min-height: 44px; }
.flinks { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 10px 0; }
.flinks a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
footer p > a[href^="mailto"] { display: inline-flex; align-items: center; min-height: 44px; }

.consent {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; max-width: 620px; margin-inline: auto;
  background: var(--bone); color: var(--ink); border-radius: 16px; box-shadow: inset 0 0 0 2px var(--gold), 0 18px 40px -10px rgba(0, 0, 0, .6);
  padding: 14px 16px; display: none; gap: 10px 12px; align-items: center; flex-wrap: wrap;
}
.consent.show { display: flex; }
.consent p { margin: 0; flex: 1 1 240px; font-size: 15.5px; line-height: 1.4; font-weight: 700; }
.consent button { min-height: 44px; min-width: 44px; border: 0; border-radius: 10px; padding: 10px 16px; font: 800 15px/1 var(--text); cursor: pointer; }
.consent .yes { background: var(--ember); color: var(--ink); }
.consent .no { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.consent :focus-visible { outline-color: var(--ink); }
@media (max-width: 600px) {
  .consent { flex-wrap: nowrap; gap: 8px; padding: 7px 8px 7px 12px; left: 8px; right: 8px; top: max(6px, env(safe-area-inset-top)); bottom: auto; border-radius: 12px; }
  .consent p { flex: 1 1 auto; font-size: 12.5px; line-height: 1.3; }
  .consent button { padding: 8px 10px; font-size: 14px; flex: none; }
}

/* ---------------------------------------------------------------- Baibot and fireflies */
.bot { display: block; height: auto; transform-origin: 50% 100%; }
.pop-in { animation: popin .5s var(--pop) both; }
@keyframes popin { from { transform: scale(.82) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-5px) scale(.985, 1.02); } 55% { transform: translateY(-5px) scale(.985, 1.02); } }
.flies { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.flies i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #FFE39A; box-shadow: 0 0 10px 3px rgba(255, 194, 71, .55); opacity: 0; animation: fly 9s var(--ease) infinite; }
@keyframes fly { 0% { opacity: 0; transform: translate(0, 0); } 25% { opacity: .95; } 60% { opacity: .5; } 100% { opacity: 0; transform: translate(var(--dx, 30px), var(--dy, -60px)); } }

/* ---------------------------------------------------------------- studio: /create */
.studio-head { position: relative; }
.gift-banner {
  display: flex; gap: 12px; align-items: center; margin: 0 0 18px; padding: 10px 16px 10px 10px; border-radius: var(--r);
  background: var(--bone); color: var(--ink); font: 800 18px/1.3 var(--display);
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 5px var(--bone), inset 0 0 0 6px rgba(201, 146, 32, .45);
}
.gift-banner img { width: 44px; height: auto; flex: none; }
.steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps li {
  display: flex; gap: 6px; align-items: center; min-width: 0; padding-top: 10px; font-size: 14.5px; line-height: 1.25; font-weight: 800; color: var(--bone-2);
  background: linear-gradient(rgba(255, 244, 224, .22), rgba(255, 244, 224, .22)) top / 100% 4px no-repeat;
}
.steps li span { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%;
  font: 800 14px/1 var(--display); color: var(--bone); box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .45); }
.steps li[aria-current="step"] { color: var(--bone); background-image: linear-gradient(var(--gold), var(--gold)); }
.steps li[aria-current="step"] span { background: var(--gold); color: var(--ink); box-shadow: none; }
.steps li.done { color: var(--bone); background-image: linear-gradient(var(--leaf), var(--leaf)); }
.steps li.done span { background: var(--leaf); color: transparent; box-shadow: none; position: relative; }
.steps li.done span::after { content: ""; position: absolute; inset: 5px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 12.5 5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 12.5 5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.studio { display: grid; gap: 18px; }
.step { position: relative; display: grid; gap: 22px; }
.js .studio .step:not(.on) { display: none; }
html:not(.js) [data-next], html:not(.js) [data-back] { display: none; }
html:not(.js) .step + .step { border-top: 1px solid var(--line); padding-top: 24px; }
.step > legend { width: 100%; padding: 0; margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.step-t { font: 800 32px/1.08 var(--display); letter-spacing: -.012em; outline: none; }
.step-bot { flex: none; width: auto; height: 92px; margin-bottom: -6px; }
.js .step.on .step-bot { animation: popin .5s var(--pop) both; }
.step-nav { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; }
.step-nav .btn.primary { flex: 1 1 200px; }
.step-nav .btn.ghost { flex: 0 1 auto; }
.count { min-height: 0; }

/* the troupe: 24 robot animals */
.totems > legend { margin-bottom: 4px; }
.totems > .err { margin-bottom: 8px; }
.totem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.totem {
  display: grid; justify-items: center; align-content: start; text-align: center; gap: 2px; padding: 10px 6px 12px; border-radius: 16px;
  background: rgba(13, 74, 69, .45); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.totem img { width: 92px; height: 92px; object-fit: contain; margin-bottom: 2px; transition: transform .25s var(--ease);
  filter: drop-shadow(0 6px 6px rgba(2, 20, 20, .45)); }
.totem b { font: 800 16px/1.15 var(--display); overflow-wrap: normal; word-break: normal; hyphens: auto; max-width: 100%; }
.totem small { font-size: 13px; line-height: 1.3; color: var(--bone-2); font-weight: 600; }
.totem:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .55); }
.totem:hover img { transform: translateY(-3px); }
.totem:has(input:focus-visible) { outline: 3px solid var(--neon); outline-offset: 3px; }
.totem:has(input:checked) {
  background: var(--bone); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 5px var(--bone), inset 0 0 0 6px rgba(201, 146, 32, .45);
}
.totem:has(input:checked) small { color: var(--ink-2); }
.totem input:checked ~ img { animation: chosen .55s var(--pop) both; }
.totem:has(input:checked)::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18.5 8' fill='none' stroke='%2306201F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  animation: popin .4s var(--pop) both;
}
@keyframes chosen { 0% { transform: scale(.9); } 55% { transform: scale(1.16) rotate(-4deg); } 100% { transform: scale(1.08); } }
@media (min-width: 560px) {
  .totem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .totem img { width: 104px; height: 104px; }
}
@media (max-width: 340px) {
  .totem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* talking object: the face */
.object { display: grid; gap: 16px; }
.face { display: grid; gap: 8px; }
.face-frame { position: relative; max-width: 320px; border-radius: var(--r-lg); overflow: hidden; background: var(--deep);
  box-shadow: inset 0 0 0 1px rgba(55, 230, 240, .55); touch-action: manipulation; cursor: crosshair; line-height: 0; }
.face-frame img { width: 100%; height: auto; display: block; }
.face-dot { position: absolute; width: 96px; height: 64px; margin: -32px 0 0 -48px; pointer-events: none;
  border: 2px dashed var(--bone); border-radius: 20px; background: rgba(4, 31, 33, .28); }
.face-dot i { position: absolute; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--bone); border: 3px solid var(--ink); }
.face-dot i:first-child { left: 18px; } .face-dot i + i { right: 18px; }
.face-dot em { position: absolute; left: 34px; bottom: 10px; width: 28px; height: 10px; border-radius: 0 0 14px 14px; background: var(--ink); }

/* ---------------------------------------------------------------- draft: waiting, preview, approval */
.wait { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 18px 20px; overflow: hidden; }
.wait-art { position: relative; align-self: end; }
.wait-art::before { content: ""; position: absolute; left: -20%; right: -20%; bottom: -10%; height: 60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 194, 71, .32), rgba(255, 194, 71, 0)); }
.wait-baibot { position: relative; width: 112px; height: auto; animation: bob 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.wait h2 { margin: 0 0 6px; font-size: 22px; color: var(--bone-2); }
.wait-line { margin: 0; font: 800 24px/1.15 var(--display); color: var(--bone); }
.wait-fun { margin: 4px 0 12px; font-size: 15.5px; color: var(--bone-2); font-style: italic; }
.bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 244, 224, .12); overflow: hidden; margin: 0 0 12px; }
.bar span { display: block; position: relative; height: 100%; width: 100%; border-radius: 99px; overflow: hidden; transform: scaleX(.08); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--leaf), var(--neon)); transition: transform .8s var(--ease); }
.bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-100%); animation: sheen 1.8s ease-in-out infinite; }
@keyframes sheen { to { transform: translateX(100%); } }
.slow { color: var(--bone) !important; font-weight: 700; }
.wait-baibot.pop-in { animation: popin .5s var(--pop) both, bob 2.4s ease-in-out .5s infinite; }
@media (min-width: 560px) {
  .wait { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 22px 26px 24px; }
  .wait-baibot { width: 150px; }
}

/* the holo frame around a real video */
.player { display: flex; justify-content: center; margin: 6px 0 12px; }
.frame {
  --h: min(62svh, 620px);
  position: relative; height: var(--h); aspect-ratio: 9 / 16; max-width: 100%;
  padding: 7px; border-radius: 26px; background: linear-gradient(160deg, #1C3A37, #071A1A 40%, #0B2524);
  box-shadow: inset 0 0 0 1px rgba(55, 230, 240, .75), 0 22px 30px -16px rgba(0, 0, 0, .75), 0 0 60px -20px rgba(55, 230, 240, .35);
}
.frame video { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 20px; background: #0A2B29; }
.approve { margin: 72px 0 16px; display: grid; gap: 12px; padding-top: 22px; }
.approve h2 { margin: 0; padding-right: 96px; font-size: 28px; }
.approve-bot { position: absolute; right: 10px; top: -40px; width: auto; height: 100px; }
.approve form { margin: 0; }
.storyboard { margin-top: 30px; }
.storyboard > h2 { margin-top: 0; }
.beats { display: grid; gap: 12px; margin-top: 12px; }
.beat { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 14px; border-radius: var(--r-lg);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.beat img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; background: var(--deep); box-shadow: inset 0 0 0 1px var(--line); }
.beat > div { display: contents; }
.beat textarea, .beat .beat-text { grid-column: 1 / -1; }
.beat .label { color: var(--gold); font: 800 17px/1.2 var(--display); }
.beat-text { margin: 0; font-size: 18px; line-height: 1.55; }
.beat-text.pending { color: var(--bone-2); font-style: italic; }
.beat textarea { font-size: 18px; }
.beats > .btn { justify-self: start; }
.more { margin-top: 16px; }
.more .card { display: grid; gap: 10px; align-content: start; margin: 0; }
.more .card .btn { justify-self: start; }
.more h3 { margin: 0; }
.refused { display: grid; gap: 12px; padding-top: 24px; }
.refused h2 { margin: 0; padding-right: 90px; }
.refused p { margin: 0; }
.side-baibot { position: absolute; right: 12px; top: -40px; width: auto; height: 104px; }
.suggest { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.suggest li::marker { color: var(--gold); }

/* ---------------------------------------------------------------- share: handing over the gift */
.share { display: grid; gap: 14px; margin-bottom: 20px; }
.share-ticket { --fold: 104px; }
.share-ticket .t-stub { padding: 0 10px; }
.share-thumb { width: 72px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--gold), 0 6px 10px rgba(2, 20, 20, .3); transform: rotate(-3deg); }
.share-url { font: 800 16px/1.35 var(--text); color: var(--ink); word-break: break-all; }
.share-actions { display: grid; gap: 8px; margin-top: 6px; }
.share-actions .hint:empty { display: none; }
/* without the phone's share sheet, copying the link is the action */
#share-native[hidden] + #copy-link { color: var(--ink); position: relative; isolation: isolate; box-shadow: none; background: none;
  filter: drop-shadow(0 4px 5px rgba(2, 20, 20, .35)); }
#share-native[hidden] + #copy-link::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px;
  background: linear-gradient(180deg, #FFA94F 0%, var(--ember) 46%, #EE7408 54%, #F7841A 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%); }
#share-native[hidden] + #copy-link:hover { color: var(--ink); background: none; }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.channels .btn { padding: 10px 6px; flex-direction: column; gap: 4px; min-height: 64px; font-size: 15px; }
.channels .btn svg { width: 22px; height: 22px; color: var(--gold); }
.share > p { margin: 0; }
.status-list { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 8px; }
.status-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 700; }
.status-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.status-list .yes svg { color: var(--leaf); }
.status-list .no svg { color: var(--bone-2); }
.status-list q { font-style: italic; color: var(--gold); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: .15em; border-radius: 50%; background: var(--neon);
  box-shadow: 0 0 0 0 rgba(55, 230, 240, .6); animation: live 2.2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(55, 230, 240, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(55, 230, 240, 0); } }
#publish { display: grid; gap: 10px; }
#publish > * { margin: 0; }
#publish .btn { justify-self: start; }
.showcase { margin-top: 6px; }
.showcase .btn { justify-self: start; }
.greefts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.greefts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; margin: 0; padding: 14px 16px; }
.greefts li > a { grid-column: 2; grid-row: 1 / span 2; }
.greefts .pill { justify-self: start; }
.greefts li b { font: 800 19px/1.2 var(--display); margin-right: 6px; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 800;
  color: var(--bone); background: rgba(4, 31, 33, .6); box-shadow: inset 0 0 0 1px rgba(55, 230, 240, .55); }

/* ---------------------------------------------------------------- the recipient page: the gift moment */
.gift-page main { padding-top: 6px; }
.unwrap { position: relative; isolation: isolate; display: grid; gap: 12px; justify-items: center; text-align: center; padding: 4px 0 8px; }
.unwrap::before { content: ""; position: absolute; z-index: -1; top: -90px; bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 46% at 50% 58%, rgba(255, 194, 71, .2), transparent 72%), radial-gradient(70% 50% at 50% 100%, rgba(55, 230, 240, .08), transparent 70%); }
.unwrap .flies { z-index: -1; }
.unwrap h1 { display: grid; gap: 0; margin: 0; }
.unwrap .from { font-size: clamp(34px, 9.5vw, 54px); line-height: 1; -webkit-text-stroke: .08em var(--deep); paint-order: stroke fill; }
.unwrap .for { font: 700 19px/1.3 var(--text); color: var(--gold); letter-spacing: .01em; }
.stage { --h: min(60svh, 640px); position: relative; height: var(--h); aspect-ratio: 9 / 16; max-width: 100%; padding: 6px; border-radius: 26px;
  background: linear-gradient(160deg, #1C3A37, #071A1A 40%, #0B2524);
  box-shadow: inset 0 0 0 1px rgba(55, 230, 240, .75), 0 24px 34px -16px rgba(0, 0, 0, .8), 0 0 70px -18px rgba(55, 230, 240, .4); }
.stage video { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 20px; background: #0A2B29; }
.box { position: absolute; inset: 6px; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: var(--ink);
  border-radius: 20px; overflow: hidden; background: var(--deep); touch-action: pan-y; isolation: isolate; text-align: center; }
.box:focus-visible { outline: 3px solid var(--neon); outline-offset: 4px; }
.box-plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.box::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 31, 33, .15) 0%, rgba(4, 31, 33, 0) 40%, rgba(4, 31, 33, .1) 70%, rgba(4, 31, 33, .7) 100%); }
.box .flies { z-index: 2; }
.box-glow { position: absolute; z-index: 2; left: 10%; right: 10%; top: 38%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 220, 140, .6), rgba(255, 194, 71, .22) 45%, rgba(255, 194, 71, 0)); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.box-gift { position: absolute; z-index: 3; left: 50%; bottom: 31%; width: 58%; transform: translateX(-50%); transform-origin: 50% 100%; }
.box-gift img { display: block; width: 100%; height: auto; }
.box-closed { animation: wiggle 4s var(--ease) 1.2s infinite; transform-origin: 50% 100%; }
@keyframes wiggle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-4deg) scale(1.02, .98); } 90% { transform: rotate(3.5deg); } 94% { transform: rotate(-2deg); } }
.box-open { position: absolute; left: 4%; bottom: 0; width: 92% !important; opacity: 0; }
.box-burst { position: absolute; z-index: 2; left: 50%; top: 52%; width: 150%; aspect-ratio: 1; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.2);
  background: radial-gradient(closest-side, rgba(255, 246, 214, .95), rgba(255, 194, 71, .6) 35%, rgba(255, 138, 31, .15) 60%, rgba(255, 194, 71, 0)); pointer-events: none; }
.box-text { position: absolute; z-index: 4; left: 50%; bottom: 7%; display: grid; gap: 0; min-width: 78%; max-width: 94%; padding: 12px 26px 11px; transform: translateX(-50%);
  color: var(--ink); filter: drop-shadow(0 8px 10px rgba(2, 20, 20, .55)); }
.box-text::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 4px;
  background: linear-gradient(180deg, #FFA94F 0%, var(--ember) 46%, #EE7408 54%, #F7841A 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); }
.box-text b { font: 800 23px/1.1 var(--display); white-space: nowrap; }
.box-text small { display: inline-flex; gap: 6px; align-items: center; justify-content: center; font: 800 14.5px/1.3 var(--text); color: var(--ink); }
.box-text small svg { width: 17px; height: 17px; }
.box:hover .box-text::before { background: linear-gradient(180deg, #FFB766 0%, #FF9733 46%, #F27F14 54%, #FF9026 100%); }
/* the open: squash, the lid flies, a burst of light, then the film */
.box.open { pointer-events: none; }
.box.open .box-closed { animation: squash .28s var(--ease) both; }
@keyframes squash { to { transform: scale(1.12, .82); opacity: 0; } }
.box.open .box-open { animation: rise .5s var(--pop) .18s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14%) scale(.9); } to { opacity: 1; transform: translateY(-6%) scale(1.04); } }
.box.open .box-burst { animation: burst .7s var(--ease) .22s both; }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.box.open .box-text { transition: opacity .2s, transform .3s var(--ease); opacity: 0; transform: translate(-50%, 30%); }
.box.open .box-glow { animation: none; opacity: 0; transition: opacity .3s; }
.box.open::before { content: ""; position: absolute; inset: 0; z-index: 6; background: var(--deep); animation: fadein .3s ease .62s both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.box.pulling .ribbon-h { transition: none; }
.replay { margin-top: 2px; }
.js .gift-page.wrapped .after { display: none; }
.after { display: grid; gap: 14px; margin-top: 22px; }
.after > .card, .after > .tk { margin: 0; }
.after .card h2 { margin: 0 0 10px; }
.giftcard .ticket { --fold: 76px; }
.giftcard .t-stub img { width: 50px; }
.gift-name { margin: 2px 0 2px !important; font: 800 27px/1.1 var(--display); color: var(--ink); }
.code { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 8px; }
.code code { font: 800 20px/1.2 var(--text); letter-spacing: .06em; padding: 8px 12px; border-radius: 10px; color: var(--ink);
  background: #FFFCF5; border: 2px dashed rgba(201, 146, 32, .8); }
.giftcard .btn { justify-self: start; margin-top: 6px; }
/* the business's ticket under a friend's film: same voucher, plainly labelled as sponsored */
.brandcard .t-stub img { width: 54px; }
.brandcard .sponsored { justify-self: start; padding: 2px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(6, 32, 31, .45); }
.brand-offer { font-weight: 800; font-size: 18px; line-height: 1.35; }
.pro-fields { display: grid; gap: 14px; }
.pro-cards { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.pro-cards li { margin: 0; padding: 14px 16px; display: grid; gap: 10px; }
.pc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pc-head b { font: 800 19px/1.2 var(--display); }
.pc-head .btn { margin-left: auto; }
.pro-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 0; }
.pro-stats > div { padding: 8px 10px; border-radius: 12px; background: rgba(4, 31, 33, .55); box-shadow: inset 0 0 0 1px rgba(55, 230, 240, .35); }
.pro-stats dt { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bone-2); }
.pro-stats dd { margin: 2px 0 0; font-weight: 800; font-size: 18px; }
.pro-stats dd small { display: block; font-size: 14px; font-weight: 600; color: var(--bone-2); }
.yourturn { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 6px 10px; align-items: end; padding: 22px 16px 20px 20px; overflow: hidden;
  background: radial-gradient(70% 80% at 100% 100%, rgba(255, 194, 71, .16), transparent 70%), linear-gradient(160deg, rgba(13, 74, 69, .55), rgba(4, 31, 33, .7));
  box-shadow: inset 0 0 0 1.5px rgba(47, 191, 91, .75), 0 22px 34px -20px rgba(0, 0, 0, .8); }
.yourturn img { grid-column: 2; grid-row: 1 / span 2; width: 104px; height: auto; align-self: end; margin-bottom: -20px; }
.yourturn h2 { margin: 0 0 4px; font-size: 34px; color: var(--leaf); -webkit-text-stroke: .06em var(--deep); paint-order: stroke fill; }
.yourturn p { color: var(--bone); margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.yourturn > div { grid-column: 1; grid-row: 1 / span 2; }
.yourturn .btn { width: auto; min-width: min(100%, 240px); }
.emoji { display: flex; gap: 10px; flex-wrap: wrap; }
.emoji legend { width: 100%; margin-bottom: 8px; }
.emo { display: inline-grid; }
.emo span[aria-hidden] { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-size: 28px; line-height: 1;
  background: rgba(4, 31, 33, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .3); transition: transform .2s var(--pop), box-shadow .16s, background-color .16s; }
.emo:hover span[aria-hidden] { box-shadow: inset 0 0 0 1.5px rgba(255, 244, 224, .7); }
.emo input:checked + span { background: var(--bone); box-shadow: inset 0 0 0 3px var(--gold); transform: scale(1.1); }
#thanks form { gap: 12px; }
#thanks form .btn { justify-self: start; }
.script summary, .safety summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.script summary { font-family: var(--display); font-size: 19px; }
.script p { margin: 10px 0 0; }
.ai-notice { font-size: 15px; color: var(--bone-2); text-align: center; margin: 14px 0 0; }
.ai-notice a { display: inline-flex; min-height: 44px; align-items: center; }
.safety { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; display: grid; gap: 6px; justify-items: start; }
.safety h2 { margin: 0; font-size: 16px; font-family: var(--text); color: var(--bone-2); }
.safety details { width: 100%; }
.safety form { margin: 8px 0 12px; }
.safety .btn.link { color: var(--bone-2); font-size: 15px; }
@media (min-width: 760px) {
  .stage { --h: min(64svh, 680px); }
  .yourturn { grid-template-columns: minmax(0, 1fr) 150px; padding: 28px 22px 26px 30px; }
  .yourturn img { width: 150px; margin-bottom: -26px; }
}

/* the kind pages: gone, messages, Baibot */
.gone, .baibot-page, .msg-page { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 8px; }
.gone-art { position: relative; width: 210px; margin-bottom: 4px; }
.gone-art::before { content: ""; position: absolute; inset: 22% -12% -12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 194, 71, .28), rgba(255, 194, 71, 0)); }
.gone-art img { position: relative; display: block; width: auto; height: 220px; margin-inline: auto; }
.gone .sub, .msg-page .sub { margin-inline: auto; }
.gone .cta, .msg-page .cta { justify-content: center; }
.baibot-page p { max-width: 36em; text-align: left; }
.danger-zone { margin-top: 40px; padding-top: 6px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- credits, account, ledger */
.page-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.page-head > div { min-width: 0; }
.page-head h1 { margin-bottom: 8px; }
.page-head .sub { margin-bottom: 0; }
.coin { width: 76px; height: auto; flex: none; filter: drop-shadow(0 8px 10px rgba(2, 20, 20, .5)); }
.packs-wrap { overflow-x: auto; margin: 24px 0 8px; filter: drop-shadow(0 18px 24px rgba(2, 20, 20, .45)); }
.packs { background: var(--bone); color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 2px var(--gold); }
.packs th, .packs td { padding: 12px 16px; text-align: right; }
.packs th:first-child, .packs td:first-child { text-align: left; }
.packs thead th { color: var(--ink-2); border-bottom: 2px dashed rgba(6, 32, 31, .25); }
.packs tbody td { border-bottom: 0; font-weight: 700; font-size: 17px; }
.packs tbody tr + tr td { border-top: 1px dashed rgba(6, 32, 31, .2); }
.packs tbody tr:hover td { background: rgba(255, 194, 71, .12); }
.packs td:nth-child(2) { font-weight: 800; }
.packs td:nth-child(3) { color: var(--ink-2); }
.packs td:last-child:has(form) { width: 1%; }
.packs .btn { min-height: 44px; padding: 8px 16px; font-size: 15.5px; color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(6, 32, 31, .55); filter: none; }
.packs .btn::before, .packs .btn::after { display: none; }
.packs .btn:hover { color: var(--bone); background: var(--ink); }
.packs :focus-visible { outline-color: var(--ink); }
.uses { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 17px; }
.uses li { white-space: nowrap; }
@media (max-width: 599px) {
  .uses { display: grid; gap: 6px; }
  .uses li + li::before { display: none; }
}
.uses li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 12px .2em; border-radius: 50%; background: var(--gold); }
.uses b { font: 800 19px/1.1 var(--display); margin-right: 6px; }
.uses span { color: var(--gold); font-weight: 800; }
.acct-grid { display: grid; gap: 14px; }
.acct-grid .card { margin: 0; }
.acct-grid .ticket .big { color: var(--ink); }
@media (min-width: 640px) { .acct-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } .acct-grid .tk, .acct-grid .ticket { height: 100%; } }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 8px 0 0; padding: 6px 4px; border-radius: var(--r-lg); }
.ledger > div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: 14px; font-weight: 800; color: var(--bone-2); }
.ledger dd { margin: 2px 0 0; font: 800 24px/1.15 var(--display); font-variant-numeric: tabular-nums lining-nums; }
.ledger .profit { grid-column: 1 / -1; border-bottom: 0; }
.ledger .profit dt { color: var(--gold); }
.ledger .profit dd { font-size: 40px; color: var(--gold); }
@media (min-width: 760px) {
  .ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ledger > div:nth-child(n+5) { border-bottom: 0; }
  .ledger .profit { border-top: 1px solid var(--line); }
}
.open-page .table-scroll { margin-top: 6px; }
.open-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 22px; }
.open-links > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }

/* ---------------------------------------------------------------- reading pages */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; line-height: 1.7; }
.prose .note { margin: 0 0 28px; }

/* ---------------------------------------------------------------- motion off */
@media (prefers-reduced-motion: reduce) {
  .flies { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
.js .gift-page:not(.wrapped) .stage video { animation: fadein .45s var(--ease) both; }
.slim { width: min(100% - 2 * var(--gut), 540px); }
.envelope { width: 150px; height: auto; margin-bottom: 6px; filter: drop-shadow(0 10px 14px rgba(2, 20, 20, .5)); }
.ticket .big { font-size: 28px; color: var(--ink); }
.empty { color: var(--bone-2); }
.chips > .err { flex-basis: 100%; }
