/* ============================================================
   Hey Sunny — styles
   Colours come from her favourite bouquet (peony pink, white,
   leaf green) plus sunlight. Text is "written" in green ink.
   ============================================================ */

:root {
  --ink: #24493A;          /* leaf-green ink */
  --ink-soft: #4F6F61;
  --peony: #E8A0B4;
  --peony-deep: #C2607A;
  --paper: #FBEDEE;        /* blush paper */
  --pocket: #F6D6DC;
  --inside: #EBB8C3;
  --gold: #FFC94A;
  --champagne: #F6E7C1;
  --dusk-1: #2F416B;
  --dusk-2: #7A5E8F;
  --dusk-3: #D98FA5;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;
  --hand: "Nanum Pen Script", "Bradley Hand", cursive;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Scenes ---------- */

.scene {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .8s ease, visibility 0s;
}

/* Shared "Next" button */
.next,
.pill {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  min-height: 50px;
  padding: 0 34px;
  box-shadow: 0 8px 20px rgba(36, 73, 58, .22);
}
.next {
  position: absolute;
  left: 50%;
  bottom: calc(28px + var(--safe-b));
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
  z-index: 20;
}
.next.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.title {
  font-family: var(--serif);
  text-wrap: balance;
  font-weight: 400;
  font-size: clamp(1.7rem, 7.5vw, 2.3rem);
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

.small { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   1. ENVELOPE
   ============================================================ */

.scene-envelope {
  background:
    radial-gradient(120% 70% at 50% 0%, #D9EAF6 0%, rgba(217, 234, 246, 0) 70%),
    var(--paper);
  display: grid;
  place-items: center;
}

.envelope-wrap {
  display: grid;
  justify-items: center;
  gap: 34px;
  transition: transform 1.1s cubic-bezier(.6, 0, .3, 1), opacity 1s ease;
}
.scene-envelope.is-zoom .envelope-wrap {
  transform: scale(2.4) translateY(14%);
  opacity: 0;
}

.envelope {
  position: relative;
  width: min(84vw, 360px);
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  background: none;
  perspective: 900px;
  filter: drop-shadow(0 18px 26px rgba(36, 73, 58, .16));
  animation: bob 5s ease-in-out infinite;
}
.scene-envelope.is-opening .envelope { animation: none; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-8px) rotate(.6deg); }
}

.env-back,
.env-letter,
.env-pocket,
.env-flap,
.env-seal { position: absolute; display: block; }

.env-back {
  inset: 0;
  background: var(--inside);
  border-radius: 8px;
}

.env-letter {
  left: 7%;
  right: 7%;
  top: 6%;
  height: 88%;
  z-index: 2;
  background: #FFFBFB;
  border-radius: 4px;
  box-shadow: 0 -2px 10px rgba(36, 73, 58, .08);
  padding-top: 9%;
  text-align: center;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.env-letter-text {
  font-family: var(--hand);
  font-size: clamp(2rem, 9vw, 2.6rem);
  color: var(--ink);
}
.scene-envelope.is-out .env-letter { transform: translateY(-58%); }

.env-pocket {
  inset: 0;
  z-index: 3;
  border-radius: 8px;
  background:
    linear-gradient(to top right, #F3CCD4 49.6%, transparent 50%) left / 51% 100% no-repeat,
    linear-gradient(to top left, #F3CCD4 49.6%, transparent 50%) right / 51% 100% no-repeat,
    var(--pocket);
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10%;
}
.env-label {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(.95rem, 4.3vw, 1.15rem);
  line-height: 1.25;
  max-width: 92%;
  text-wrap: balance;
  color: var(--ink);
}

.env-flap {
  left: 0;
  right: 0;
  top: 0;
  height: 52%;
  z-index: 4;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #F1C2CB 0%, #E9AFBB 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
}
.scene-envelope.is-opening .env-flap {
  animation: flap-open .75s ease-in-out .3s forwards;
}
@keyframes flap-open {
  0%   { transform: rotateX(0deg);   z-index: 4; }
  49%  { z-index: 4; }
  50%  { z-index: 1; }
  100% { transform: rotateX(180deg); z-index: 1; }
}

.env-seal {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  z-index: 5;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #EA92A8 0%, var(--peony-deep) 75%);
  box-shadow: 0 3px 6px rgba(120, 40, 60, .3), inset 0 -3px 0 rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  transition: transform .35s ease, opacity .35s ease;
}
.env-seal svg { width: 34px; height: 34px; }
.env-seal circle { fill: var(--gold); }
.env-seal path { stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.scene-envelope.is-opening .env-seal {
  transform: translate(-50%, -50%) scale(1.35);
  opacity: 0;
}

.hint {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
  animation: breathe 2.4s ease-in-out infinite;
}
.scene-envelope.is-opening .hint { opacity: 0; animation: none; transition: opacity .3s; }
@keyframes breathe { 50% { opacity: .45; } }

/* ============================================================
   2. SKY — clouds drift sideways, the sun comes out
   ============================================================ */

.scene-sky {
  background: linear-gradient(180deg, #86B2DC 0%, #BCD8EE 48%, #F4D8D3 100%);
}
.sky-warm {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #96C6EC 0%, #D8ECF8 45%, #FFE3BF 100%);
  opacity: 0;
  transition: opacity 3s ease 1.6s;
}
.scene-sky.play .sky-warm { opacity: 1; }

.sun-wrap {
  position: absolute;
  left: 50%;
  top: 30%;
  width: min(44vw, 200px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translateY(36px);
  transition: transform 3.4s cubic-bezier(.2, .7, .2, 1) .9s;
}
.scene-sky.play .sun-wrap { transform: translate(-50%, -50%) translateY(0); }

.sun {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 40%, #FFF8D6 0%, #FFE07A 42%, #FFC94A 74%, #FFB23A 100%);
  box-shadow: 0 0 40px 8px rgba(255, 201, 74, .5);
}
.sun-halo {
  position: absolute;
  inset: -70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 128, .6) 0%, rgba(255, 216, 128, 0) 62%);
  opacity: .25;
  transform: scale(.7);
  transition: opacity 2.6s ease 2.2s, transform 2.6s ease 2.2s;
}
.scene-sky.play .sun-halo {
  opacity: 1;
  transform: scale(1);
}

.cloud,
.drift {
  position: absolute;
  aspect-ratio: 300 / 160;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 160'%3E%3Cg fill='%23DCE7F3'%3E%3Ccircle cx='90' cy='101' r='55'/%3E%3Ccircle cx='150' cy='76' r='65'/%3E%3Ccircle cx='215' cy='101' r='50'/%3E%3Crect x='60' y='101' width='190' height='55' rx='27'/%3E%3C/g%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='90' cy='95' r='55'/%3E%3Ccircle cx='150' cy='70' r='65'/%3E%3Ccircle cx='215' cy='95' r='50'/%3E%3Crect x='60' y='95' width='190' height='55' rx='27'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.cloud {
  width: min(100vw, 520px);
  top: 30%;
  left: 50%;
  transition: transform 3.6s cubic-bezier(.55, 0, .25, 1) .7s;
  z-index: 3;
}
.cloud-left  { transform: translate(-86%, -38%); }
.cloud-right { transform: translate(-14%, -66%); }
.cloud-low   {
  width: min(78vw, 400px);
  top: 37%;
  transform: translate(-50%, -20%);
  z-index: 4;
  transition-duration: 4.2s;
}
.scene-sky.play .cloud-left  { transform: translate(-86%, -38%) translateX(-90vw); }
.scene-sky.play .cloud-right { transform: translate(-14%, -66%) translateX(90vw); }
.scene-sky.play .cloud-low   { transform: translate(-50%, -20%) translate(110vw, 10vh); }

.drift {
  opacity: .75;
  z-index: 1;
  animation: drift 70s linear infinite;
}
.drift-1 { width: 38vw; max-width: 200px; top: 10%; left: -40vw; }
.drift-2 { width: 26vw; max-width: 150px; top: 58%; left: -30vw; animation-duration: 90s; animation-delay: -45s; opacity: .55; }
@keyframes drift { to { transform: translateX(170vw); } }

.handwritten {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  margin: 0;
  z-index: 5;
  text-align: center;
  font-family: var(--hand);
  font-weight: 400;
  color: var(--ink);
  line-height: .9;
  text-shadow: 0 0 18px rgba(255, 255, 255, .75);
}
.hw-line {
  display: block;
  -webkit-clip-path: inset(-10% 100% -10% 0);
  clip-path: inset(-10% 100% -10% 0);
  transition: clip-path 1.6s cubic-bezier(.45, .1, .55, 1), -webkit-clip-path 1.6s cubic-bezier(.45, .1, .55, 1);
}
.hw-1 { font-size: clamp(3rem, 14vw, 5rem); }
.hw-2 { font-size: clamp(4.4rem, 22vw, 7.5rem); margin-top: .05em; }
.scene-sky.play .hw-line {
  -webkit-clip-path: inset(-10% 0 -10% 0);
  clip-path: inset(-10% 0 -10% 0);
}
.scene-sky.play .hw-1 { transition-delay: 3.4s; }
.scene-sky.play .hw-2 { transition-delay: 4.8s; }

/* ============================================================
   3. CHAMPAGNE — it's evening now
   ============================================================ */

.scene-toast {
  background:
    radial-gradient(60% 40% at 50% 46%, rgba(255, 214, 150, .35) 0%, rgba(255, 214, 150, 0) 70%),
    linear-gradient(180deg, var(--dusk-1) 0%, var(--dusk-2) 58%, var(--dusk-3) 100%);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: calc(9vh + var(--safe-t)) 24px calc(104px + var(--safe-b));
}
.scene-toast .title { color: var(--paper); }

.confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.bottle {
  position: relative;
  border: 0;
  background: none;
  padding: 0;
  height: min(40vh, 330px);
  aspect-ratio: 120 / 380;
  transform: rotate(-9deg);
  transition: height .8s ease, transform .8s ease;
}
.bottle svg { width: 100%; height: 100%; overflow: visible; display: block; }
.bottle .cork {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 1.2s cubic-bezier(.15, .7, .35, 1);
}
.scene-toast:not(.popped) .bottle .cork { animation: wiggle 2.2s ease-in-out infinite; }
@keyframes wiggle {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(-8deg); }
  90% { transform: rotate(7deg); }
  95% { transform: rotate(-4deg); }
}
.scene-toast.popped .bottle .cork {
  transform: translate(60px, -110vh) rotate(760deg);
}
.scene-toast.popped .bottle {
  height: min(26vh, 220px);
  transform: rotate(-16deg);
}

.foam {
  position: absolute;
  left: 50%;
  top: 9%;
  width: 0;
  height: 0;
}
.foam i {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px;
  border-radius: 50%;
  background: #FFF8E6;
  opacity: 0;
}
.scene-toast.popped .foam i { animation: foam 1.1s ease-out forwards; }
.foam i:nth-child(1) { --x: -26px; --y: -60px; }
.foam i:nth-child(2) { --x: 18px;  --y: -76px; animation-delay: .05s; }
.foam i:nth-child(3) { --x: -8px;  --y: -96px; animation-delay: .1s; }
.foam i:nth-child(4) { --x: 34px;  --y: -48px; animation-delay: .08s; }
.foam i:nth-child(5) { --x: -40px; --y: -34px; animation-delay: .12s; }
.foam i:nth-child(6) { --x: 6px;   --y: -54px; animation-delay: .02s; }
@keyframes foam {
  0%   { opacity: .95; transform: translate(0, 0) scale(.4); }
  100% { opacity: 0;   transform: translate(var(--x), var(--y)) scale(1.5); }
}

.pop-btn {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(255, 201, 74, .35);
}
.scene-toast.popped .pop-btn { display: none; }

.toast-lines {
  display: grid;
  gap: 10px;
  max-width: 21em;
  text-align: center;
}
.toast-lines p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 5vw, 1.35rem);
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .7s ease, transform .7s ease;
}
.toast-lines p.show { opacity: 1; transform: none; }
.toast-lines p.aside { font-family: var(--sans); font-size: 1rem; color: var(--champagne); }

/* ============================================================
   4. VIDEO
   ============================================================ */

.scene-video {
  background:
    radial-gradient(90% 50% at 50% 0%, #F7D3DB 0%, rgba(247, 211, 219, 0) 70%),
    var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: calc(24px + var(--safe-t)) 20px calc(104px + var(--safe-b));
}
.video-frame {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(36, 73, 58, .22);
}
.video-frame.vertical {
  width: auto;
  height: min(64vh, 620px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
}

/* ============================================================
   5. STORY
   ============================================================ */

.scene-story {
  background: linear-gradient(180deg, #DCEBF6 0%, var(--paper) 62%);
}
.story-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: calc(24px + var(--safe-t)) 28px calc(110px + var(--safe-b));
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}
.story-step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .7s ease .15s, transform .7s ease .15s, visibility 0s;
}
.story-text {
  margin: 0;
  max-width: 13em;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 84px);
  gap: 18px 16px;
  justify-content: center;
}
.apps li {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.2;
}
.app-icon {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(36, 73, 58, .12);
}
.stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 1px 7px 2px;
  border: 2.5px solid var(--peony-deep);
  border-radius: 6px;
  color: var(--peony-deep);
  background: rgba(251, 237, 238, .82);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  transform: translate(-50%, -50%) rotate(-14deg) scale(2.2);
  opacity: 0;
  transition: transform .28s cubic-bezier(.3, 1.6, .5, 1), opacity .2s ease;
}
.apps li.nope .stamp {
  transform: translate(-50%, -50%) rotate(-14deg) scale(1);
  opacity: 1;
}
.apps .reason { opacity: 0; transition: opacity .4s ease .15s; }
.apps li.nope .reason { opacity: 1; }

.my-app {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 600;
  transform: scale(.4);
  opacity: 0;
  transition: transform .7s cubic-bezier(.3, 1.5, .5, 1) .6s, opacity .3s ease .6s;
}
.my-app img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(36, 73, 58, .22);
}
.story-step.is-active .my-app { transform: none; opacity: 1; }

/* ============================================================
   6. HOME
   ============================================================ */

.scene-home {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
}

.home-sky {
  position: relative;
  height: calc(200px + var(--safe-t));
  overflow: hidden;
  background: linear-gradient(180deg, #96C6EC 0%, #D8ECF8 62%, var(--paper) 100%);
}
.home-sun {
  position: absolute;
  right: 12%;
  top: calc(34px + var(--safe-t));
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 40%, #FFF8D6 0%, #FFE07A 45%, var(--gold) 100%);
  box-shadow: 0 0 34px 10px rgba(255, 201, 74, .45);
}
.home-cloud {
  position: absolute;
  right: -6%;
  top: calc(70px + var(--safe-t));
  width: 150px;
  aspect-ratio: 300 / 160;
  background: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 160'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='90' cy='95' r='55'/%3E%3Ccircle cx='150' cy='70' r='65'/%3E%3Ccircle cx='215' cy='95' r='50'/%3E%3Crect x='60' y='95' width='190' height='55' rx='27'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: nudge 9s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateX(-22px); } }

.home-title {
  position: absolute;
  left: 24px;
  bottom: 18px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 3.1rem);
  line-height: 1;
}

.home-body {
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 24px calc(40px + var(--safe-b));
}

.block { margin-top: 30px; }
.block h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
}

/* Letters list */
.letters { list-style: none; margin: 0; padding: 0; }
.letter-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(36, 73, 58, .12);
  background: none;
  text-align: left;
}
.letters li:last-child .letter-row { border-bottom: 0; }
.letter-name { flex: 1; font-size: 1rem; line-height: 1.3; }
.letter-state { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.letter-row.is-open .letter-state { color: var(--peony-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.mini-env {
  position: relative;
  flex: none;
  width: 46px;
  height: 31px;
  border-radius: 4px;
  background: var(--pocket);
  box-shadow: 0 2px 5px rgba(36, 73, 58, .12);
}
.mini-env::before {
  content: "";
  position: absolute;
  inset: 0 0 40% 0;
  background: #EDB9C4;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 4px 4px 0 0;
}
.mini-env::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: 11px;
  height: 11px;
  margin: -5.5px;
  border-radius: 50%;
  background: var(--peony-deep);
}
.letter-row.is-open .mini-env::before {
  inset: -38% 0 100% 0;
  height: 40%;
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  border-radius: 0;
}
.letter-row.is-open .mini-env::after {
  top: auto;
  bottom: 30%;
  width: 32px;
  height: 28px;
  margin: 0 0 0 -16px;
  border-radius: 2px;
  background: #FFFBFB;
  box-shadow: 0 -1px 3px rgba(36, 73, 58, .1);
  z-index: -1;
}
.letter-row.wiggle .mini-env { animation: no 0.45s ease; }
@keyframes no {
  20% { transform: translateX(-5px) rotate(-4deg); }
  45% { transform: translateX(5px) rotate(4deg); }
  70% { transform: translateX(-3px) rotate(-2deg); }
}

/* Voucher ticket */
.ticket {
  display: flex;
  min-height: 76px;
  border-radius: 12px;
  background: var(--champagne);
  overflow: hidden;
  -webkit-mask: radial-gradient(circle 9px at calc(100% - 64px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at calc(100% - 64px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 9px at calc(100% - 64px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at calc(100% - 64px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.ticket-stub {
  flex: none;
  width: 64px;
  display: grid;
  place-items: center;
  border-left: 2px dashed rgba(36, 73, 58, .25);
  color: #C9982A;
  font-size: 1.4rem;
}

/* Mood */
.moods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.mood {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 80px;
  padding: 10px 4px;
  border: 1.5px solid rgba(36, 73, 58, .14);
  border-radius: 14px;
  background: #fff;
  transition: transform .15s ease, border-color .2s ease, background-color .2s ease;
}
.mood:active { transform: scale(.96); }
.mood-icon { font-size: 1.7rem; line-height: 1; }
.mood-label { font-size: .85rem; }
.mood[aria-pressed="true"] {
  border-color: var(--ink);
  background: #FFF4D4;
}
.mood:disabled { opacity: .6; }
.mood-status { min-height: 1.5em; margin-top: 10px; }

/* Closing */
.closing {
  margin-top: 44px;
  text-align: center;
}
.closing p:not(.small) {
  margin: 0;
  font-family: var(--hand);
  font-size: clamp(1.9rem, 8.5vw, 2.4rem);
  line-height: 1.05;
}
.homescreen-tip { margin-top: 28px !important; }

/* Little pop-up message */
.toast-msg {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-b));
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .95rem;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 50;
}
.toast-msg.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Less motion for people who ask for it ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
