:root {
  --red: #e3262d;
  --red-deep: #b5121b;
  --blue: #0b5fd6;
  --blue-deep: #083f95;
  --green: #22a045;
  --green-deep: #147530;
  --yellow: #ffd60a;
  --ink: #0d0d0d;
  --paper: #fff8e7;
  --white: #ffffff;

  --display: "Bagel Fat One", "Arial Black", sans-serif;
  --body: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --line: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 0.95; font-weight: 400; }
p { margin: 0; }
ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn--yellow { background: var(--yellow); }
.btn--white { background: var(--white); }
.btn--sm { padding: 10px 18px; font-size: 16px; box-shadow: 4px 4px 0 var(--ink); border-width: 3px; }
.btn--sm:hover { box-shadow: 6px 6px 0 var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  z-index: 50;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 12px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 22px;
  text-decoration: none;
}
.nav__brand img { width: 36px; height: 36px; transform: rotate(-8deg); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  opacity: 0.8;
}
.nav__links a:hover { opacity: 1; color: var(--yellow); }

/* ---------- Flip-able table ---------- */
.table {
  overflow-x: clip;
  transform-origin: 50% 50vh;
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}
.table.is-reversed { transform: scaleX(-1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 130px var(--gutter) 90px;
  background:
    radial-gradient(circle at 1px 1px, rgb(0 0 0 / 0.14) 1.5px, transparent 0) 0 0 / 18px 18px,
    radial-gradient(120% 90% at 75% 45%, #ff4a4f 0%, var(--red) 45%, var(--red-deep) 100%);
  overflow: hidden;
}
.hero > * { min-width: 0; }
.hero__copy { position: relative; z-index: 2; max-width: 640px; }

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  animation: rise 0.7s 0.1s both cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgb(34 160 69 / 0.6);
  animation: pulse 1.6s infinite;
}

.uno-logo {
  margin: 26px 0 22px -6px;
  font-family: var(--display);
  font-size: clamp(56px, 9.2vw, 140px);
  line-height: 0.9;
  color: var(--yellow);
  -webkit-text-stroke: 0.075em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.07em 0 var(--ink);
  transform: rotate(-7deg) skewX(-8deg);
  transform-origin: left center;
  white-space: nowrap;
  animation: slam 0.8s 0.2s both cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.uno-logo__sign { color: var(--white); font-size: 0.7em; vertical-align: 0.25em; margin-right: 0.02em; }

.hero__lede {
  max-width: 30ch;
  color: var(--white);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.35;
  animation: rise 0.7s 0.4s both ease-out;
}
.hero__lede strong {
  color: var(--ink);
  background: var(--yellow);
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 800;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  animation: rise 0.7s 0.5s both ease-out;
}

/* Contract address pill */
.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  max-width: 560px;
  padding: 6px 6px 6px 18px;
  background: var(--white);
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: rise 0.7s 0.6s both ease-out;
}
.ca__label { font-family: var(--display); font-size: 16px; color: var(--red); }
.ca__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
}
.ca__copy {
  flex: none;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--display);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ca__copy:hover { background: var(--yellow); color: var(--ink); }
.ca--dark { background: var(--ink); border-color: var(--ink); box-shadow: 6px 6px 0 var(--green-deep); color: var(--white); margin-top: 0; }
.ca--dark .ca__label { color: var(--yellow); }
.ca--dark .ca__copy { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.ca--dark .ca__copy:hover { background: var(--white); }

/* Hero art */
.hero__art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  --rx: 0;
  --ry: 0;
}
.oval {
  position: absolute;
  inset: 4% 16%;
  border: 14px solid var(--white);
  border-radius: 50%;
  transform: rotate(28deg);
  box-shadow: inset 0 0 0 5px var(--ink), 0 0 0 5px var(--ink);
  animation: fadeIn 1s 0.3s both;
}
.fan { position: absolute; inset: 0; display: grid; place-items: center; }
.mini-card {
  position: absolute;
  width: 34%;
  aspect-ratio: 5 / 7.6;
  border: 5px solid var(--ink);
  border-radius: 20px;
  box-shadow: inset 0 0 0 10px var(--white), var(--shadow);
  transform-origin: 50% 110%;
  animation: deal 0.9s both cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.mini-card::after {
  content: "";
  position: absolute;
  inset: 18% 14%;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.9);
  transform: rotate(28deg);
}
.mini-card--blue { background: var(--blue); --r: -34deg; --x: -58%; animation-delay: 0.35s; }
.mini-card--green { background: var(--green); --r: 30deg; --x: 62%; animation-delay: 0.45s; }
.mini-card--black { background: var(--ink); --r: -6deg; --x: 8%; animation-delay: 0.55s; }
.mini-card--black::after { background: var(--red); }

.mascot {
  position: relative;
  width: 86%;
  filter: drop-shadow(10px 14px 0 rgb(0 0 0 / 0.35));
  transform:
    translate(calc(var(--rx) * 14px), calc(var(--ry) * 10px))
    rotate(calc(var(--rx) * 4deg));
  transition: transform 0.25s ease-out;
  animation: mascotIn 1s 0.3s both cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.mascot-bob { animation: bob 3.2s ease-in-out infinite; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 5;
  margin: -34px -20px 0;
  padding: 18px 0;
  background: var(--ink);
  border-block: 4px solid var(--yellow);
  transform: rotate(-2deg);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 44px);
  color: var(--yellow);
  white-space: nowrap;
  will-change: transform;
}
.marquee__track i { font-style: normal; color: var(--red); }
.marquee__track span:nth-of-type(4n+3) { color: var(--white); }

/* ---------- Sections ---------- */
.section-head { max-width: 980px; margin-bottom: 56px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: 0.95;
}
.section-head--light h2 { color: var(--white); text-shadow: 5px 5px 0 var(--ink); }

/* How it works */
.how {
  padding: 150px var(--gutter) 120px;
  background:
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.05) 0 2px, transparent 2px 22px),
    var(--blue);
}
.how .section-head h2 { color: var(--white); text-shadow: 5px 5px 0 var(--ink); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  max-width: 1200px;
}
.uno {
  --face: var(--red);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 26px;
  background: var(--face);
  border: 5px solid var(--ink);
  border-radius: 28px;
  box-shadow: inset 0 0 0 12px var(--white), var(--shadow-lg);
  color: var(--white);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.uno:nth-child(1) { transform: rotate(-3deg); }
.uno:nth-child(2) { transform: rotate(1.5deg) translateY(24px); }
.uno:nth-child(3) { transform: rotate(-1deg); }
.uno:hover { transform: rotate(0) translateY(-14px) scale(1.02); }
.uno--yellow { --face: var(--yellow); color: var(--ink); }
.uno--green { --face: var(--green); }
.uno__corner {
  position: absolute;
  top: 22px;
  left: 28px;
  font-family: var(--display);
  font-size: 34px;
  color: var(--white);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
}
.uno__corner--br { top: auto; left: auto; bottom: 22px; right: 28px; transform: rotate(180deg); }
.uno__oval {
  display: grid;
  place-items: center;
  width: 66%;
  aspect-ratio: 1 / 1.35;
  margin: 26px auto 22px;
  background: var(--white);
  border-radius: 50%;
  transform: rotate(24deg);
}
.uno__oval span {
  font-family: var(--display);
  font-size: 110px;
  line-height: 1;
  color: var(--face);
  -webkit-text-stroke: 10px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-24deg);
}
.uno h3 { font-family: var(--display); font-size: 30px; margin-bottom: 10px; padding-inline: 8px; }
.uno p { font-size: 17px; font-weight: 600; padding: 0 8px 36px; opacity: 0.95; }

/* Statement */
.statement {
  padding: 140px var(--gutter);
  background: var(--yellow);
  text-align: center;
  overflow: hidden;
}
.statement__line {
  font-family: var(--display);
  font-size: clamp(48px, 10vw, 150px);
  line-height: 1;
}
.statement__line--flip {
  color: var(--red);
  -webkit-text-stroke: 0.04em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.04em 0.05em 0 var(--ink);
  transform: scaleX(-1);
  transition: transform 1s cubic-bezier(0.7, 0, 0.2, 1);
}
.statement__line--flip.is-flipped { transform: scaleX(1) rotate(-2deg); }
.statement__kicker { margin-top: 36px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; }
.statement__kicker em {
  font-style: normal;
  background: var(--ink);
  color: var(--yellow);
  padding: 2px 12px;
  border-radius: 8px;
}

/* How to buy */
.buy {
  padding: 130px var(--gutter);
  background:
    radial-gradient(circle at 1px 1px, rgb(0 0 0 / 0.12) 1.5px, transparent 0) 0 0 / 18px 18px,
    var(--green);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1300px;
  counter-reset: step;
}
.step {
  padding: 26px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.step:hover { transform: translateY(-6px) rotate(-1deg); }
.step__n {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  color: var(--yellow);
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
}
.step h3 { font-family: var(--display); font-size: 26px; margin-bottom: 8px; }
.step p { font-size: 16px; }
.buy__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
}
.buy__cta .ca { flex: 1 1 380px; max-width: 620px; animation: none; }

/* Facts */
.facts {
  padding: 130px var(--gutter);
  background:
    radial-gradient(circle at 1px 1px, rgb(0 0 0 / 0.08) 1.5px, transparent 0) 0 0 / 18px 18px,
    var(--paper);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0;
}
.fact {
  padding: 24px 26px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.fact:nth-child(4n+1) { box-shadow: 6px 6px 0 var(--red); }
.fact:nth-child(4n+2) { box-shadow: 6px 6px 0 var(--blue); }
.fact:nth-child(4n+3) { box-shadow: 6px 6px 0 var(--green); }
.fact dt { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.fact dd { margin: 6px 0 0; font-family: var(--display); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; overflow-wrap: anywhere; }
.fact--wild { background: var(--ink); color: var(--yellow); }
.live {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}
.fact--wild dt { color: var(--white); }

/* Footer */
.footer {
  padding: 120px var(--gutter) 140px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.footer__big {
  font-family: var(--display);
  font-size: clamp(90px, 22vw, 320px);
  line-height: 0.85;
  color: var(--yellow);
  -webkit-text-stroke: 0.03em var(--red);
  paint-order: stroke fill;
  text-shadow: 0.03em 0.04em 0 var(--red);
  transform: rotate(-4deg);
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 56px; }
.footer__links .btn { box-shadow: 4px 4px 0 var(--red); border-color: var(--white); }
.footer__legal { max-width: 620px; margin: 48px auto 0; font-size: 14px; opacity: 0.55; }

/* ---------- Play-the-card button ---------- */
.play {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.play:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 8px 8px 0 var(--ink); }
.play__card {
  display: grid;
  place-items: center;
  width: 38px;
  height: 52px;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px var(--white);
  color: var(--white);
  font-size: 22px;
  transform: rotate(-10deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.play[aria-pressed="true"] .play__card { transform: rotate(170deg); }

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 28px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--yellow);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 18px;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.2s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.1), transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.reveal.is-in { opacity: 1; translate: none; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slam {
  0% { opacity: 0; transform: rotate(-7deg) skewX(-8deg) scale(1.6); }
  60% { opacity: 1; transform: rotate(-7deg) skewX(-8deg) scale(0.95); }
}
@keyframes deal {
  from { opacity: 0; transform: translate(0, 40%) rotate(0); }
  to { opacity: 1; transform: translateX(var(--x)) rotate(var(--r)); }
}
@keyframes mascotIn { from { opacity: 0; transform: translateY(80px) rotate(-12deg) scale(0.8); } }
@keyframes bob { 50% { translate: 0 -14px; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(34 160 69 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 160 69 / 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: left;
  }
  .hero__art { max-width: 520px; width: 100%; margin: 0 auto; grid-row: 1; }
  .cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .uno:nth-child(2) { transform: rotate(1.5deg); }
  .uno { min-height: 0; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .uno-logo { font-size: 16vw; }
  .steps, .facts__grid { grid-template-columns: 1fr; }
  .how, .buy, .facts, .statement { padding-block: 96px; }
  .play__label { display: none; }
  .play { padding: 8px; }
  .btn { padding: 14px 22px; font-size: 18px; }
  .ca__value { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; }
}
