@font-face {
  font-family: "Marker";
  src: url("../fonts/marker.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DM";
  font-weight: 400;
  src: url("../fonts/dm-sans.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DM";
  font-weight: 600 900;
  src: url("../fonts/dm-sans-bold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #f8f7f2;
  --card: #fff;
  --ink: #202820;
  --muted: #6b7564;
  --yellow: #ffdf50;
  --mint: #d3edc7;
  --marker: "Marker", "Comic Sans MS", cursive;
  --sans: "DM", system-ui, sans-serif;
  --mono: "Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

main {
  position: relative;
  overflow-x: clip;
}

.cl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  animation: glow-drift 14s ease-in-out infinite alternate;
}

.g1 {
  top: -220px;
  left: 50%;
  width: 620px;
  height: 620px;
  margin-left: -310px;
  background: radial-gradient(circle, rgba(255, 223, 80, .55), transparent 66%);
}

.g2 {
  top: 45%;
  left: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(238, 221, 247, .9), transparent 66%);
  animation-delay: -5s;
}

.g3 {
  top: 20%;
  right: -180px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(207, 238, 241, .95), transparent 66%);
  animation-delay: -9s;
}

@keyframes glow-drift {
  to { transform: translate(30px, 40px) scale(1.08); }
}

.fl {
  position: absolute;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 4px 5px 0 var(--ink);
  animation: fl-float 7s ease-in-out infinite alternate;
}

.fl1 { top: 14%; left: 6%; width: 86px; }
.fl2 { top: 34%; left: 15%; width: 62px; animation-delay: -1.3s; }
.fl3 { top: 58%; left: 4%; width: 96px; animation-delay: -2.6s; }
.fl4 { top: 80%; left: 17%; width: 58px; animation-delay: -3.9s; }
.fl5 { top: 10%; left: 86%; width: 92px; animation-delay: -5.2s; }
.fl6 { top: 30%; left: 80%; width: 60px; animation-delay: -6.5s; }
.fl7 { top: 52%; left: 90%; width: 84px; animation-delay: -7.8s; }
.fl8 { top: 74%; left: 79%; width: 64px; animation-delay: -9.1s; }
.fl9 { top: 90%; left: 88%; width: 78px; animation-delay: -10.4s; }

@keyframes fl-float {
  from { transform: translateY(0) rotate(-6deg); }
  to { transform: translateY(-22px) rotate(6deg); }
}

.cl {
  position: relative;
  z-index: 1;
  padding: 26px 16px 80px;
}

.cl-col {
  max-width: 390px;
  margin: 0 auto;
}

.cl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cl-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--marker);
  font-size: 26px;
}

.cl-brand svg {
  width: 26px;
  height: 26px;
}

.cl-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 14.5px;
  font-weight: 800;
  transition: transform .2s var(--spring), box-shadow .2s, background .2s;
}

.cl-home svg {
  width: 18px;
  height: 18px;
}

.cl-home:hover,
.cl-home:focus-visible {
  transform: translate(-2px, -2px);
  background: var(--yellow);
  box-shadow: 5px 6px 0 var(--ink);
}

.cl-stage {
  position: relative;
  margin: 4px -12px 0;
}

.cl-scene {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.cl-scene .ch {
  stroke: #202820;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cl-scene .shadow {
  fill: rgba(32, 40, 32, .12);
  stroke: none;
}

.cl-scene .cloud {
  stroke: #202820;
  stroke-width: 2.6;
  animation: drift 9s ease-in-out infinite alternate;
}

.cl-scene .c2 {
  animation-duration: 12s;
  animation-delay: -4s;
}

.cl-scene .c3 {
  opacity: .8;
  animation-duration: 7s;
  animation-delay: -2s;
}

@keyframes drift {
  to { transform: translateX(16px); }
}

.cl-scene .ground {
  stroke: #202820;
  stroke-width: 3;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
}

.cl-scene .bod {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: breathe 3.2s ease-in-out infinite;
}

.cl-scene .ch-b .bod {
  animation-delay: -1.6s;
}

@keyframes breathe {
  50% { transform: scale(1.025, .97); }
}

.cl-scene .crown {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: rotate(-16deg) translate(-4px, 3px);
}

.cl-scene .zz text {
  opacity: 0;
  fill: #202820;
  stroke: none;
  font-family: var(--marker);
  font-size: 18px;
  animation: zz 3s linear infinite;
}

.cl-scene .zz text:nth-child(2) {
  font-size: 22px;
  animation-delay: 1s;
}

.cl-scene .zz text:nth-child(3) {
  font-size: 26px;
  animation-delay: 2s;
}

@keyframes zz {
  0% { opacity: 0; transform: translate(0, 8px); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(10px, -14px); }
}

.st-fl {
  display: none;
}

.cl-eyebrow {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cl-h1 {
  margin: 8px 0 18px;
  font-family: var(--marker);
  font-size: clamp(46px, 13vw, 60px);
  font-weight: 400;
  line-height: .95;
}

.hl {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -3%;
  bottom: .06em;
  left: -2%;
  height: .34em;
  border-radius: 6px 12px 8px 14px;
  background: var(--yellow);
  transform: rotate(-1deg);
}

.recipient-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 13px;
  margin: 8px 4px 18px;
  padding: 12px 14px 12px 10px;
  transform: rotate(.7deg);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 5px 6px 0 var(--ink);
  transition: transform .3s var(--spring);
}

.recipient-card[hidden] {
  display: none;
}

.recipient-card[data-ready="true"] {
  animation: recipient-in .55s var(--spring) both;
}

@keyframes recipient-in {
  from { transform: rotate(-3deg) scale(.92); opacity: 0; }
  to { transform: rotate(.7deg); opacity: 1; }
}

.recipient-avatar {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  margin-left: -18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
}

.recipient-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.recipient-avatar > span {
  position: absolute;
  right: -5px;
  bottom: -4px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.recipient-copy {
  min-width: 0;
  line-height: 1.15;
}

.recipient-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.recipient-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-family: var(--marker);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-copy a {
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-spark {
  width: 26px;
  height: 26px;
  color: var(--yellow);
  filter: drop-shadow(1.5px 1.5px 0 var(--ink));
  animation: spin 6s linear infinite;
}

.cl-actions {
  display: grid;
  gap: 12px;
  margin: 0 4px 30px;
}

.cl-fbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 4px 5px 0 var(--ink);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  transition: transform .2s var(--spring), box-shadow .2s;
}

.cl-fbtn svg {
  width: 19px;
  height: 19px;
}

.cl-fbtn.claim {
  height: 58px;
  background: var(--ink);
  color: var(--bg);
  font-size: 18px;
}

.cl-fbtn.claim svg {
  color: var(--yellow);
}

.cl-fbtn:hover,
.cl-fbtn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--ink);
}

.cl-ticket {
  position: relative;
  scroll-margin-top: 24px;
  margin: 6px 4px 0;
  overflow: visible;
  transform: rotate(-1.5deg);
  border: 3px solid var(--ink);
  border-radius: 26px;
  background: var(--yellow);
  box-shadow: 9px 11px 0 var(--ink);
  color: #202820;
  animation: ticket-in .8s var(--spring) both .2s;
}

@keyframes ticket-in {
  from { transform: rotate(-8deg) scale(.85); opacity: 0; }
  to { transform: rotate(-1.5deg); opacity: 1; }
}

.cl-ticket::before,
.cl-ticket::after {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: 62px;
  width: 28px;
  height: 28px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
}

.cl-ticket::before { left: -17px; }
.cl-ticket::after { right: -17px; }

.tk-in {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 22px 24px 20px;
  border-radius: 23px;
}

.tk-ey {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tk-ey svg {
  width: 15px;
  height: 15px;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tk-amt {
  display: block;
  margin-top: 10px;
  font-family: var(--marker);
  font-size: clamp(58px, 18vw, 80px);
  font-weight: 400;
  line-height: 1;
}

.tk-tok {
  display: block;
  margin-top: 2px;
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
}

.tk-tok small {
  font-size: 17px;
  font-weight: 700;
}

.tk-note {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2.5px dashed rgba(32, 40, 32, .35);
  color: #3a433a;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.tk-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: 23px;
  pointer-events: none;
}

.tk-shine::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 34%;
  transform: skewX(-18deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  animation: shine 4.5s ease-in-out infinite 1.2s;
}

@keyframes shine {
  0%, 55% { left: -40%; }
  100% { left: 120%; }
}

.tk-coin {
  position: absolute;
  z-index: 3;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 3px 4px 0 var(--ink);
  animation: fl-float 3.6s ease-in-out infinite alternate;
}

.tk-c1 {
  top: -26px;
  right: -14px;
  width: 64px;
  height: 64px;
}

.tk-c2 {
  top: -30px;
  right: 52px;
  width: 46px;
  height: 46px;
  animation-delay: -1.2s;
}

.tk-c3 {
  right: 26px;
  bottom: -24px;
  width: 42px;
  height: 42px;
  animation-delay: -2.2s;
}

.marquee {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 20px -20px 40px;
  overflow: hidden;
  transform: rotate(-1.6deg);
  border-block: 3px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.mq-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.mq-track span {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  font-family: var(--marker);
  font-size: clamp(28px, 3.4vw, 46px);
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .fl {
    display: none;
  }

  .st-fl {
    position: absolute;
    z-index: 1;
    display: block;
    width: 42px;
    height: 42px;
    border: 2.5px solid var(--ink);
    border-radius: 50%;
    background: #fff;
    box-shadow: 3px 4px 0 var(--ink);
    animation: fl-float 5s ease-in-out infinite alternate;
  }

  .st-fl.s1 {
    top: 34%;
    left: 6px;
  }

  .st-fl.s2 {
    top: 14%;
    right: 6px;
    animation-delay: -2s;
  }
}

@media (max-width: 440px) {
  .recipient-card {
    grid-template-columns: 58px minmax(0, 1fr) 22px;
    gap: 10px;
    padding-right: 11px;
  }

  .recipient-avatar {
    width: 58px;
    height: 58px;
    margin-left: -14px;
  }

  .recipient-copy strong {
    font-size: 22px;
  }

  .recipient-spark {
    width: 22px;
    height: 22px;
  }

  .tk-in {
    padding: 20px 20px 18px;
  }

  .tk-tok {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
