* { box-sizing: border-box; }

html { min-height: 100%; background: var(--night-950); }

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--cream-50);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 17% 12%, rgb(255 245 207 / 70%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 8%, rgb(255 255 255 / 46%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 71% 42%, rgb(255 245 207 / 40%) 0 1px, transparent 2px),
    radial-gradient(circle at 25% 70%, rgb(255 255 255 / 36%) 0 1px, transparent 1.5px),
    linear-gradient(155deg, var(--night-950), var(--night-800) 58%, #18392c);
  background-attachment: fixed;
  background-size: 17rem 19rem, 23rem 17rem, 29rem 31rem, 37rem 27rem, auto;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.app-shell { position: relative; z-index: 1; width: min(100%, 68rem); margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2.5rem) 6rem; }
.topbar { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: .75rem; font-weight: 800; letter-spacing: .15em; }
.brand img { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.icon-link { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; background: rgb(255 255 255 / 4%); }

.channel-prompt { position: relative; width: min(100%, 38rem); margin: .25rem auto 1.25rem; padding: .7rem .2rem; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.channel-prompt__symbol { width: 2rem; aspect-ratio: 1; display: grid; place-items: center; color: var(--moon-200); font-size: 1rem; }
.channel-prompt__eyebrow { margin: 0 0 .08rem; color: var(--mist-400); font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.channel-prompt h2 { margin: 0; font-size: var(--type-body-sm); font-weight: 800; line-height: 1.4; word-break: keep-all; }
.channel-prompt__copy > p:last-child { margin: .12rem 0 0; color: var(--mist-400); font-size: var(--type-caption); line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.channel-prompt__action { display: grid; }
.channel-prompt__action .button { min-height: 2.45rem; padding: .45rem .7rem; border-color: transparent; color: var(--moon-100); background: transparent; white-space: nowrap; }
.channel-prompt__action span { color: currentColor; font-size: var(--type-body-sm); }
.wish-key-card { position: relative; z-index: 2; width: min(100%, 38rem); margin: -1.5rem auto 1rem; padding: .7rem .78rem; display: grid; grid-template-columns: 2.35rem minmax(0, 1fr) auto auto; align-items: center; gap: .65rem; overflow: hidden; border: 1px solid rgb(245 223 160 / 24%); border-radius: 1.15rem; background: linear-gradient(145deg, rgb(19 45 38 / 94%), rgb(8 23 20 / 92%)); box-shadow: 0 1rem 3rem rgb(0 0 0 / 24%); backdrop-filter: blur(1.2rem); transition: border-color var(--motion-base) ease, box-shadow var(--motion-base) ease; }
.wish-key-card::after { content: ""; position: absolute; width: 7rem; aspect-ratio: 1; right: -5rem; top: -4rem; border-radius: 50%; background: rgb(245 223 160 / 7%); box-shadow: 0 0 2.5rem rgb(245 223 160 / 12%); pointer-events: none; }
.wish-key-card__symbol { width: 2.35rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgb(245 223 160 / 24%); border-radius: 50%; color: var(--moon-100); background: rgb(245 223 160 / 7%); font-size: .76rem; }
.wish-key-card__symbol span { filter: drop-shadow(0 0 .55rem rgb(245 223 160 / 35%)); }
.wish-key-card__copy { min-width: 0; }
.wish-key-card h2 { margin: 0; font-family: var(--font-serif); font-size: var(--type-body-sm); font-weight: 650; line-height: 1.35; word-break: keep-all; text-wrap: balance; }
.wish-ticket-count { z-index: 1; align-self: center; justify-self: end; padding: .3rem .52rem; display: flex; align-items: baseline; gap: .18rem; border: 1px solid rgb(245 223 160 / 18%); border-radius: 999px; color: var(--moon-100); background: rgb(255 245 207 / 6%); white-space: nowrap; }
.wish-ticket-count > span { color: var(--mist-400); font-size: .62rem; font-weight: 850; line-height: 1.2; }
.wish-ticket-count strong { font-family: var(--font-serif); font-size: .92rem; line-height: 1.15; }
.wish-ticket-count small { margin-left: .12rem; color: var(--moon-200); font-family: var(--font-sans); font-size: .65rem; }
.wish-key-status { margin: .08rem 0 0; color: var(--mist-400); font-size: .68rem; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.wish-key-status[data-tone="success"] { width: fit-content; padding: .1rem .36rem; border: 1px solid rgb(245 223 160 / 18%); border-radius: 999px; color: var(--moon-200); background: rgb(245 223 160 / 7%); font-size: .64rem; font-weight: 750; }
.wish-key-status[data-tone="attention"] { color: var(--moon-100); font-weight: 800; }
.wish-key-card__action { z-index: 1; min-width: 3.35rem; min-height: var(--control-height-compact); padding: .4rem .62rem; display: inline-flex; align-items: center; justify-content: center; gap: .28rem; border: 1px solid rgb(245 223 160 / 22%); border-radius: 999px; color: var(--night-950); background: var(--moon-100); font-size: .72rem; font-weight: 850; cursor: pointer; white-space: nowrap; transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) ease; }
.wish-key-card__action:hover { transform: translateY(-1px); box-shadow: 0 .45rem 1.1rem rgb(0 0 0 / 18%); }
.wish-key-card[data-notice="true"] { border-color: rgb(245 223 160 / 65%); box-shadow: 0 0 0 3px rgb(245 223 160 / 9%), 0 1rem 3rem rgb(0 0 0 / 24%); }
.wish-key-form { z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; margin-top: .5rem; }
.wish-key-form input { min-width: 0; width: 100%; min-height: 2.85rem; padding: .68rem .85rem; border: 1px solid rgb(245 223 160 / 16%); border-radius: .75rem; color: var(--cream-50); background: rgb(0 0 0 / 22%); font-size: 1rem; }
.wish-key-form .button { min-width: 4.5rem; }
.wish-key-dialog { width: min(calc(100% - 2rem), 27rem); border-color: rgb(245 223 160 / 25%); background: #0b1f1b; }
.wish-key-dialog__body { position: relative; padding: 1.35rem clamp(1.25rem, 6vw, 2rem) 1.5rem; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 20%, rgb(245 223 160 / 10%), transparent 35%), linear-gradient(160deg, rgb(19 48 39 / 96%), rgb(7 22 19 / 98%)); }
.wish-key-dialog__body::before { content: "✦  ·  ✦"; position: absolute; top: 1.4rem; left: 1.35rem; color: var(--moon-200); font-size: .55rem; letter-spacing: .4rem; opacity: .55; }
.wish-key-dialog__body .dialog-close { position: absolute; z-index: 2; top: .85rem; right: .85rem; }
.wish-key-dialog__sky { position: relative; width: 8rem; aspect-ratio: 1; margin: .6rem auto .9rem; display: grid; place-items: center; }
.wish-key-dialog__orbit { position: absolute; inset: 0; border: 1px solid rgb(245 223 160 / 18%); border-radius: 50%; rotate: -14deg; }
.wish-key-dialog__orbit::after { content: ""; position: absolute; top: 12%; left: 18%; width: .35rem; aspect-ratio: 1; border-radius: 50%; background: var(--moon-100); box-shadow: 0 0 .9rem var(--moon-100); }
.wish-key-dialog__moon { width: 5.4rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #7b6a38; background: radial-gradient(circle at 67% 68%, rgb(126 97 48 / 10%) 0 12%, transparent 13%), var(--moon-100); box-shadow: 0 0 2.5rem rgb(255 229 143 / 24%); font-size: .75rem; }
.wish-key-dialog__eyebrow { margin: 0 0 .35rem; color: var(--moon-200); font-size: var(--type-caption); font-weight: 850; letter-spacing: .05em; }
.wish-key-dialog h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(1.65rem, 7vw, 2rem); font-weight: 550; line-height: 1.3; word-break: keep-all; text-wrap: balance; }
.wish-key-dialog__description { margin: .75rem auto 0; color: var(--mist-200); font-size: var(--type-body-sm); line-height: 1.65; word-break: keep-all; text-wrap: pretty; }
.wish-key-dialog .wish-key-form { grid-column: auto; margin-top: 1.1rem; display: grid; grid-template-columns: 1fr; gap: .65rem; }
.wish-key-dialog .wish-key-form input { width: 100%; min-height: 3.25rem; text-align: center; border-color: rgb(245 223 160 / 28%); background: rgb(0 0 0 / 25%); }
.wish-key-dialog .wish-key-form .button { width: 100%; }
.wish-key-dialog .wish-key-form .form-error { margin: 0; text-align: left; }
.wish-key-dialog .wish-key-form .form-error:empty { display: none; }

.coupon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 26rem)); justify-content: start; gap: .85rem; }
.coupon-card { position: relative; padding: 1.4rem 1.5rem; display: grid; align-content: start; gap: .75rem; overflow: hidden; border: 0; border-radius: 1.2rem; color: #173126; background: var(--moon-100); box-shadow: 0 1.4rem 4rem rgb(0 0 0 / 24%); }
.coupon-card::before, .coupon-card::after { content: ""; position: absolute; top: 58%; width: 1.15rem; aspect-ratio: 1; border-radius: 50%; background: var(--night-900); }
.coupon-card::before { left: -.62rem; }
.coupon-card::after { right: -.62rem; }
.coupon-card .kicker { margin: 0; color: #537363; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.coupon-card h2 { max-width: 88%; margin: 0; font-family: var(--font-serif); font-size: var(--type-title); font-weight: 650; line-height: 1.35; word-break: keep-all; }
.coupon-card p, .coupon-card time { margin: 0; color: #3e5b4e; font-size: var(--type-label); line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.coupon-card__wish { color: #27483a !important; }
.coupon-card__terms { margin-top: .2rem !important; padding-top: .8rem; border-top: 1px dashed rgb(23 49 38 / 25%); }
.coupon-card time { color: #1f4836; font-weight: 850; }
.coupon-card .button { justify-self: start; margin-top: .25rem; color: var(--moon-100); background: #173126; }
.coupon-code-dialog { text-align: center; }
.coupon-presentation-code { display: block; margin: 1.2rem 0 .7rem; color: var(--moon-100); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(2.4rem, 12vw, 4.4rem); font-weight: 900; letter-spacing: .12em; text-shadow: 0 0 1.5rem rgb(245 223 160 / 24%); }

.customer-ambient-stars { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.customer-ambient-stars i { position: absolute; width: .18rem; aspect-ratio: 1; border-radius: 50%; background: var(--moon-100); box-shadow: 0 0 .75rem var(--moon-100); animation: customer-star-shimmer 8s ease-in-out infinite alternate; }
.customer-ambient-stars i:nth-child(1) { top: 12%; left: 11%; animation-delay: -1s; animation-duration: 7.1s; }
.customer-ambient-stars i:nth-child(2) { top: 8%; right: 19%; animation-delay: -4s; animation-duration: 8.6s; }
.customer-ambient-stars i:nth-child(3) { top: 38%; left: 6%; animation-delay: -6s; animation-duration: 6.4s; }
.customer-ambient-stars i:nth-child(4) { top: 62%; right: 9%; animation-delay: -2s; animation-duration: 8.9s; }
.customer-ambient-stars i:nth-child(5) { bottom: 13%; left: 27%; animation-delay: -5s; animation-duration: 7.7s; }

.moon-hero { --pointer-x: 0px; --pointer-y: 0px; --scroll-y: 0px; position: relative; min-height: 26rem; display: grid; place-items: center; padding: .5rem 1rem 2.5rem; overflow: hidden; }
.moon-orbit { position: absolute; width: min(82vw, 32rem); aspect-ratio: 1; border: 1px solid rgb(255 250 240 / 10%); border-radius: 50%; transform: translate3d(var(--pointer-x), var(--pointer-y), 0) rotate(-16deg); animation: orbit-drift 72s ease-in-out infinite alternate; }
.moon-orbit::before, .moon-orbit::after { content: ""; position: absolute; width: .42rem; aspect-ratio: 1; border-radius: 50%; background: var(--moon-100); box-shadow: 0 0 1rem var(--moon-100); }
.moon-orbit::before { top: 10%; left: 20%; }
.moon-orbit::after { right: 4%; bottom: 30%; }
.moon-disc { position: absolute; width: min(68vw, 19.5rem); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 27%, rgb(126 97 48 / 11%) 0 7%, transparent 8%), radial-gradient(circle at 68% 66%, rgb(126 97 48 / 10%) 0 12%, transparent 13%), var(--moon-paint), var(--moon-100); box-shadow: 0 0 4rem rgb(255 229 143 / 22%), 0 0 9rem rgb(255 229 143 / 10%); transform: translate3d(var(--pointer-x), calc(var(--pointer-y) + var(--scroll-y)), 0); animation: customer-moon-breathe 11s ease-in-out infinite; }
.moon-copy { --scroll-y: 0px; --copy-offset-y: 1.25rem; position: relative; top: var(--copy-offset-y); z-index: 1; width: min(85%, 17rem); color: #203228; text-align: center; transform: translate3d(0, var(--scroll-y), 0); }
.moon-copy .kicker { margin: 0 0 .7rem; font-size: var(--type-body-sm); font-weight: 900; line-height: 1.45; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.moon-copy blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.1rem, 4vw, 1.38rem); line-height: 1.62; overflow-wrap: anywhere; word-break: keep-all; text-wrap: pretty; }
.moon-copy time { display: block; margin-top: 1rem; color: #587063; font-size: var(--type-label); }

.summary-row { --scroll-y: 0px; margin: .5rem auto 1.5rem; position: relative; width: min(100%, 40rem); display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-md); background: rgb(6 16 15 / 72%); backdrop-filter: blur(1rem); box-shadow: var(--shadow); transform: translate3d(0, var(--scroll-y), 0); }
.summary-item { padding: 1rem .6rem; text-align: center; }
.summary-item + .summary-item { border-left: 1px solid var(--line); }
.summary-item strong { display: block; color: var(--moon-100); font-family: var(--font-serif); font-size: 1.45rem; }
.summary-item span { color: var(--mist-400); font-size: var(--type-label); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2.25rem 0 1rem; }
.section-head h1, .section-head h2 { margin: 0; font-family: var(--font-serif); font-weight: 500; letter-spacing: -.03em; }
.section-head h1 { font-size: var(--type-page-title); line-height: var(--leading-tight); word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.section-head h2 { font-size: var(--type-title); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.section-head p { margin: .45rem 0 0; color: var(--mist-400); font-size: var(--type-body-sm); line-height: var(--leading-body); word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }

.button { min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; color: #13291e; background: var(--moon-100); font-weight: 850; text-decoration: none; }
.button.secondary { color: var(--cream-50); border-color: var(--line); background: rgb(255 255 255 / 5%); }
.button.danger { color: #321a17; background: #f0b8af; }
.button.small { min-height: 2.75rem; padding: .5rem .8rem; font-size: var(--type-body-sm); }
.button:disabled { cursor: not-allowed; opacity: .45; }

.wish-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .85rem; }
.wish-card { position: relative; min-height: 11rem; padding: 1.2rem 1.2rem 10px; display: flex; flex-direction: column; gap: .75rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(145deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%)); box-shadow: 0 1rem 3rem rgb(0 0 0 / 10%); }
.wish-card__body { flex: 1; margin: 0; font-family: var(--font-serif); font-size: var(--type-body-lg); line-height: var(--leading-body); word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.wish-card__date { color: var(--mist-400); font-size: var(--type-label); line-height: 1.4; }
.wish-card__actions-row { position: relative; margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.wish-card__utility-actions { display: flex; align-items: center; gap: 0; margin-left: -.5rem; }
.wish-card__utility-action { min-width: 2.75rem; min-height: 2.75rem; padding: .5rem; border: 0; border-radius: .6rem; color: var(--mist-200); cursor: pointer; background: transparent; font-size: var(--type-body-sm); font-weight: 800; }
.wish-card__utility-action:hover { background: rgb(255 255 255 / 7%); }
.wish-card__utility-action--danger { color: var(--danger-300); }
.wish-card__action { width: auto; min-height: 2.75rem; padding: .55rem .9rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: var(--type-body-sm); font-weight: 850; }
.wish-card__actions-row > .wish-card__action:only-child { margin-left: auto; }
.wish-card__action--primary { color: var(--night-950); background: var(--moon-100); }
.wish-card__action--secondary { color: var(--moon-100); border-color: rgb(245 223 160 / 28%); background: rgb(255 245 207 / 5%); }
.wish-card button:disabled { cursor: not-allowed; opacity: .45; }

[data-motion-reveal][data-motion-observed] { opacity: 0; transform: translateY(6px); }
[data-motion-reveal][data-motion-visible="true"] { opacity: 1; transform: translateY(0); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
[data-motion-reveal-mode="opacity"][data-motion-observed] { transform: none; }
[data-motion-reveal-mode="opacity"][data-motion-visible="true"] { opacity: 1; transform: none; transition: opacity .7s ease; }

[data-motion-paused] .moon-disc,
[data-motion-paused] .moon-orbit,
[data-motion-paused] .customer-ambient-stars i { animation-play-state: paused; }

@keyframes customer-moon-breathe {
  0%, 100% { scale: 1; filter: brightness(1); }
  50% { scale: 1.012; filter: brightness(1.03); }
}

@keyframes orbit-drift {
  from { rotate: -1deg; }
  to { rotate: 1deg; }
}

@keyframes customer-star-shimmer {
  from { opacity: .24; }
  to { opacity: .72; }
}

.empty-state { padding: 3rem 1.5rem; border: 1px dashed rgb(255 250 240 / 18%); border-radius: var(--radius-md); text-align: center; color: var(--mist-200); }
.empty-state .empty-stars { color: var(--moon-200); font-size: 1.7rem; letter-spacing: .6em; }
.empty-state h2 { margin: 1rem 0 .4rem; color: var(--cream-50); font-family: var(--font-serif); font-weight: 500; }
.empty-state p { max-width: 28rem; margin: 0 auto 1.2rem; color: var(--mist-400); line-height: var(--leading-body); word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }

.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; min-height: 4.7rem; display: flex; justify-content: center; border-top: 1px solid var(--line); background: rgb(6 16 15 / 90%); backdrop-filter: blur(1rem); }
.bottom-nav .inner { width: min(100%, 32rem); display: grid; grid-template-columns: repeat(4, 1fr); }
.bottom-nav a { min-height: 2.75rem; display: grid; place-items: center; align-content: center; gap: .2rem; color: var(--mist-400); font-size: var(--type-caption); line-height: 1.3; text-decoration: none; }
.bottom-nav a[aria-current="page"] { color: var(--moon-100); }
.bottom-nav b { font-size: 1rem; font-weight: 500; }

.onboarding { width: min(100%, 38rem); margin: 2rem auto; padding: clamp(1.2rem, 5vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.onboarding h1 { margin: 0; font-family: var(--font-serif); font-size: clamp(1.75rem, 5.5vw, 2.25rem); font-weight: 500; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.onboarding > p { color: var(--mist-200); line-height: var(--leading-body); word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.channel-guide { position: relative; width: min(100%, 42rem); margin: 2rem auto; padding: clamp(1.5rem, 6vw, 3rem); overflow: hidden; border: 1px solid rgb(245 223 160 / 20%); border-radius: var(--radius-lg); text-align: center; background: linear-gradient(155deg, rgb(255 255 255 / 7%), rgb(6 16 15 / 80%) 60%, rgb(24 57 44 / 72%)); box-shadow: var(--shadow); }
.channel-guide::before { content: ""; position: absolute; width: 16rem; aspect-ratio: 1; top: -10rem; right: -8rem; border-radius: 50%; background: rgb(245 223 160 / 7%); box-shadow: 0 0 5rem rgb(245 223 160 / 8%); }
.channel-guide__sky { position: relative; height: 7rem; margin-bottom: 1rem; }
.channel-guide__moon { position: absolute; left: 50%; top: .2rem; width: 5.5rem; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgb(126 97 48 / 12%) 0 9%, transparent 10%), var(--moon-paint), var(--moon-100); box-shadow: 0 0 2.5rem rgb(255 229 143 / 24%); }
.channel-guide__constellation { position: absolute; left: 50%; bottom: 0; translate: -50% 0; min-width: 12rem; color: var(--moon-200); letter-spacing: 1.2rem; font-size: .7rem; opacity: .75; }
.channel-guide__eyebrow { margin: 0 0 .55rem; color: var(--moon-200); font-size: var(--type-label); font-weight: 850; letter-spacing: .04em; }
.channel-guide h1 { margin: 0; font-family: var(--font-serif); font-size: clamp(1.75rem, 5.5vw, 2.4rem); font-weight: 500; line-height: 1.3; word-break: keep-all; text-wrap: balance; }
.channel-guide__description { max-width: 32rem; margin: 1rem auto 1.6rem; color: var(--mist-200); line-height: var(--leading-body); word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.channel-journey { position: relative; margin: 0 auto 1.7rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.channel-journey::before { content: ""; position: absolute; top: 1rem; right: 16.666%; left: 16.666%; height: 1px; background: rgb(245 223 160 / 24%); }
.channel-journey li { z-index: 1; display: grid; justify-items: center; gap: .45rem; color: var(--mist-400); font-size: var(--type-caption); line-height: 1.4; word-break: keep-all; }
.channel-journey span { width: 2rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--mist-300); background: var(--night-800); font-weight: 850; }
.channel-journey .is-complete span { color: var(--night-950); border-color: var(--moon-200); background: var(--moon-200); }
.channel-journey .is-current { color: var(--moon-100); font-weight: 800; }
.channel-journey .is-current span { color: var(--moon-100); border-color: var(--moon-200); box-shadow: 0 0 1.2rem rgb(245 223 160 / 18%); }
.channel-guide__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; }
.form-stack { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .5rem; }
.field label, .field legend { color: var(--mist-200); font-size: var(--type-label); font-weight: 800; }
.field input, .field textarea { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--cream-50); background: rgb(0 0 0 / 20%); }
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.field-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; color: var(--mist-400); font-size: var(--type-label); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.consent-list { margin: 0; padding: 0; display: grid; gap: .7rem; border: 0; }
.check { display: flex; align-items: flex-start; gap: .7rem; color: var(--mist-200); font-size: var(--type-label); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .12rem; accent-color: var(--moon-200); }
.check a { text-underline-offset: .2em; }
.form-error { min-height: 1.3rem; margin: 0; color: var(--danger-300); font-size: var(--type-label); }

dialog { width: min(calc(100% - 2rem), 34rem); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--cream-50); background: var(--night-800); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(0 0 0 / 68%); backdrop-filter: blur(.25rem); }
.dialog-body { padding: 1.4rem; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.dialog-head h2 { margin: 0; font-family: var(--font-serif); font-size: var(--type-title); font-weight: 500; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.dialog-close { width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; color: var(--cream-50); cursor: pointer; background: transparent; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }

.undo-toast { position: fixed; z-index: 20; right: 1rem; bottom: 5.6rem; left: 1rem; width: min(calc(100% - 2rem), 30rem); margin-left: auto; padding: .85rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid rgb(245 223 160 / 25%); border-radius: var(--radius-sm); color: var(--night-950); background: var(--moon-100); box-shadow: var(--shadow); font-size: var(--type-label); line-height: 1.5; font-weight: 750; word-break: keep-all; overflow-wrap: anywhere; }
.undo-toast button { padding: .35rem .6rem; border: 1px solid rgb(6 16 15 / 25%); border-radius: 999px; color: var(--night-950); cursor: pointer; background: transparent; font-weight: 900; }

.page-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); }
.page-card + .page-card { margin-top: .85rem; }
.page-card h2 { margin: 0 0 .5rem; font-family: var(--font-serif); font-size: var(--type-title); font-weight: 500; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.page-card p { color: var(--mist-200); line-height: var(--leading-body); word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
.action-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.muted { color: var(--mist-400); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 760px) {
  .bottom-nav { right: 1rem; bottom: 1rem; left: auto; width: 24rem; border: 1px solid var(--line); border-radius: 999px; }
  .app-shell { padding-bottom: 2rem; }
  .undo-toast { bottom: 6.4rem; }
}

@media (max-width: 759px) {
  .wish-key-card { margin: -1rem auto 1rem; }
  .channel-prompt__copy > p:last-child { display: none; }
  .channel-guide__actions { display: grid; }
  .channel-guide__actions .button { width: 100%; }
  .moon-hero { min-height: 23.5rem; padding: .25rem .25rem 2rem; }
  .moon-disc { width: min(72vw, 18rem); }
  .moon-copy { width: min(83%, 16rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .moon-disc, .moon-orbit, .moon-copy, .summary-row, .customer-ambient-stars i,
  [data-motion-reveal][data-motion-observed] {
    animation: none !important;
    transform: none !important;
    translate: none !important;
    rotate: 0deg !important;
    scale: 1 !important;
    opacity: 1 !important;
  }
}

/* MEOW design system refinement — emotional customer surfaces, restrained controls. */
::selection { color: var(--night-950); background: var(--moon-200); }

body {
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
}

.app-shell { width: min(100%, var(--content-wide)); }
.topbar { border-bottom: 1px solid rgb(255 250 240 / 6%); }
.brand img, .icon-link { box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / 12%); }
.icon-link { transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, transform var(--motion-fast) var(--ease-standard); }
.icon-link:hover { border-color: var(--line-strong); background: var(--surface-interactive); transform: translateY(-1px); }

.button { min-height: var(--control-height); transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) ease, background var(--motion-fast) ease, border-color var(--motion-fast) ease; }
.button.small { min-height: var(--control-height-compact); }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 .65rem 1.6rem rgb(0 0 0 / 16%); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled, .wish-card button:disabled { cursor: not-allowed; opacity: .45; }

.section-head { width: min(100%, var(--content-reading)); margin-right: auto; margin-left: auto; }
.section-head h1 { letter-spacing: -.025em; }
.section-head p { color: var(--text-tertiary); }

.moon-hero::after {
  content: "";
  position: absolute;
  right: 16%;
  bottom: 12%;
  width: .22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--moon-100);
  box-shadow: 0 0 .85rem var(--moon-100);
  opacity: .6;
  pointer-events: none;
}

.wish-key-card, .summary-row, .page-card, .wish-card, .onboarding, .channel-guide {
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}

.wish-key-card { background: linear-gradient(145deg, rgb(20 47 40 / 96%), rgb(7 22 19 / 94%)); }
.summary-row { background: var(--surface-glass); }
.summary-item { padding: var(--space-4) var(--space-3); }
.summary-item strong { font-size: clamp(1.35rem, 4vw, 1.65rem); }

.wish-grid, .coupon-grid { gap: var(--space-4); }
#completed-wishes {
  width: min(100%, var(--content-reading));
  margin-right: auto;
  margin-left: auto;
}
.wish-card { border-radius: 1.1rem; background: linear-gradient(145deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%)); transition: border-color var(--motion-base) ease, background var(--motion-base) ease, transform var(--motion-base) var(--ease-standard); }
.wish-card:hover { border-color: var(--line-strong); background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 3%)); transform: translateY(-2px); }
.wish-card__utility-action, .wish-card__action { min-height: var(--control-height-compact); }
.wish-card__utility-action { transition: color var(--motion-fast) ease, background var(--motion-fast) ease; }
.wish-card__action { transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) ease; }
.wish-card__action:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 .5rem 1.2rem rgb(0 0 0 / 14%); }

.page-card {
  width: min(100%, var(--content-reading));
  margin-right: auto;
  margin-left: auto;
  padding: var(--space-5);
  background: linear-gradient(145deg, rgb(17 42 36 / 92%), rgb(9 26 22 / 90%));
}
.page-card + .page-card { margin-top: var(--space-4); }
.page-card p { color: var(--text-secondary); }
.page-card a { text-underline-offset: .22em; text-decoration-color: rgb(245 223 160 / 40%); }

.form-stack { gap: var(--space-4); }
.field { gap: var(--space-2); }
.field input, .field textarea, .wish-key-form input {
  min-height: var(--control-height);
  border-color: var(--line);
  background: rgb(0 0 0 / 24%);
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}
.field input:hover, .field textarea:hover, .wish-key-form input:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus, .wish-key-form input:focus { border-color: var(--moon-200); background: rgb(0 0 0 / 32%); box-shadow: var(--shadow-focus); }
.form-error:empty { min-height: 0; }

dialog { background: var(--surface-raised); }
dialog[open] { animation: dialog-arrive var(--motion-base) var(--ease-standard) both; }
dialog::backdrop { animation: backdrop-arrive var(--motion-base) ease both; }
.dialog-body { padding: var(--space-5); }
.dialog-close { width: var(--control-height-compact); height: var(--control-height-compact); transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease; }
.dialog-close:hover { border-color: var(--line-strong); background: var(--surface-interactive); }
.dialog-actions { gap: var(--space-2); margin-top: var(--space-4); }

.coupon-card { border-radius: 1.1rem; box-shadow: var(--shadow-card); transition: transform var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) ease; }
.coupon-card:hover { transform: translateY(-2px); box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 28%); }
.empty-state { width: min(100%, var(--content-reading)); margin: var(--space-4) auto 0; padding: var(--space-7) var(--space-5); background: rgb(6 16 15 / 28%); }

.bottom-nav { box-shadow: 0 -.75rem 2.5rem rgb(0 0 0 / 14%); }
.bottom-nav a { position: relative; min-height: var(--control-height-compact); transition: color var(--motion-fast) ease, background var(--motion-fast) ease; }
.bottom-nav a:hover { color: var(--text-secondary); background: rgb(255 255 255 / 3%); }
.bottom-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: .42rem; width: .25rem; aspect-ratio: 1; border-radius: 50%; background: var(--moon-100); box-shadow: 0 0 .6rem rgb(245 223 160 / 65%); }

@keyframes dialog-arrive {
  from { opacity: 0; transform: translateY(6px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdrop-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 389px) {
  .app-shell { padding-right: .85rem; padding-left: .85rem; }
  .topbar { min-height: 4rem; }
  .brand { gap: .5rem; letter-spacing: .1em; }
  .brand img { width: 2.5rem; height: 2.5rem; }
  .moon-hero { min-height: 22rem; padding-right: 0; padding-left: 0; }
  .moon-disc { width: min(76vw, 17.25rem); }
  .moon-copy { width: min(86%, 15.5rem); }
  .moon-copy blockquote { font-size: 1.05rem; }
  .wish-key-card { grid-template-columns: 2.15rem minmax(0, 1fr) auto auto; padding-right: .65rem; padding-left: .65rem; gap: .48rem; }
  .wish-key-card__symbol { width: 2.15rem; }
  .wish-ticket-count { padding: .28rem .42rem; }
  .wish-key-card__action { min-width: 3.2rem; padding-right: .48rem; padding-left: .48rem; }
  .channel-prompt { grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: .5rem; }
  .summary-item { padding-right: .35rem; padding-left: .35rem; }
  .summary-item span { font-size: .7rem; }
  .page-card, .dialog-body { padding: var(--space-4); }
  .action-row { display: grid; grid-template-columns: 1fr; }
  .action-row .button { width: 100%; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  body[data-page="app"] .app-shell { padding-bottom: 6.5rem; }
  .wish-grid { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
  .page-card { padding: var(--space-6); }
  .bottom-nav a[aria-current="page"]::after { bottom: .35rem; }
}
