:root {
  --navy: #0a1f4d;
  --navy-deep: #061538;
  --navy-line: rgba(10, 31, 77, .88);
  --red: #d72a1f;
  --paper: #f7f8fb;
  --carbon: #3a2d9c;
  --carbon-lit: #cfc8ff;
  --ink-soft: #46567f;       /* secondary text on paper, tinted from navy */
  --lit-soft: #b9c5e3;       /* secondary text on navy */
  --focus: var(--paper);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-carbon: "Courier Prime", "Courier New", ui-monospace, monospace;

  --pad: clamp(1rem, 3.2vw, 2rem);
  --wrap: 70rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--red) var(--navy-deep); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font: 400 1rem/1.5 var(--f-display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--red);
}
::selection { background: var(--red); color: var(--paper); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

h1, h2 { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
p { margin: 0; }

.label {
  font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-soft); font-stretch: 112%;
}
.carbon { font-family: var(--f-carbon); font-weight: 700; color: var(--carbon); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.textlink { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; }
.textlink:hover { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: 800 .95rem/1 var(--f-display); font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  background: var(--red); color: var(--paper); border: 2px solid var(--red); border-radius: 3px; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); background: var(--paper); color: var(--red); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 2.5rem; padding: .55rem 1rem; font-size: .8rem; }
.btn--big { min-height: 3.6rem; padding: 1rem 2rem; font-size: clamp(.95rem, 4.4vw, 1.15rem); max-width: 100%; white-space: normal; text-align: center; line-height: 1.15; }
@media (max-width: 40rem) { .close__row .btn--big { width: 100%; padding-inline: 1rem; } }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--navy); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn--stub { background: var(--paper); color: var(--navy); border-color: var(--paper); width: 100%; min-height: 4rem; padding-inline: .6rem; gap: .45em; font-size: .95rem; letter-spacing: .04em; font-stretch: 108%; --focus: var(--paper); }
.btn svg { flex: none; }
.btn--stub:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* ---------- top bar ---------- */
.bar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto; padding: 1rem var(--pad);
}
.bar__brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.bar__brand > span { font-weight: 900; font-stretch: 125%; font-size: 1.6rem; letter-spacing: .06em; text-transform: uppercase; }
.bar__brand { flex-direction: row; align-items: center; gap: .7rem; }
.bar__mark { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: block; flex: none; }
.bar__nav a {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; font-stretch: 112%;
  padding: .5rem .25rem; margin-right: .75rem; border-bottom: 2px solid transparent;
}
.bar__nav a:hover, .bar__nav a[aria-current="page"] { border-bottom-color: var(--red); }
.bar__right { display: flex; align-items: center; gap: .75rem; flex: none; }
/* below a desktop width the nav drops to its own row instead of crowding the chip and the buy button */
@media (max-width: 64rem) {
  .bar__nav { order: 3; width: 100%; }
}
/* phones: the chip and the buy button may wrap onto two lines inside their group rather than push the page wider */
@media (max-width: 40rem) {
  .bar__right { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
}

.chip {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 2.5rem; padding: .4rem .75rem;
  flex: none; white-space: nowrap; /* never squeezed: the label and the address must not collide */
  background: transparent; color: var(--paper); border: 1.5px solid var(--lit-soft); border-radius: 3px; cursor: pointer; font: inherit;
}
.chip:disabled { cursor: default; opacity: .8; }
.chip__k { font-size: .7rem; font-weight: 800; letter-spacing: .16em; color: var(--lit-soft); }
.chip__v { font-family: var(--f-carbon); font-weight: 700; font-size: .9rem; }
.chip__copy { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); background: var(--paper); padding: .15rem .4rem; border-radius: 2px; }
.chip__copy:empty { display: none; }
.chip:hover:not(:disabled) { border-color: var(--paper); }

/* ---------- hero coupon ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(.5rem, 2vw, 1.5rem) var(--pad) clamp(2rem, 6vw, 4rem); }

.coupon {
  --focus: var(--navy);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 17rem;
  background: var(--paper); color: var(--navy); border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 18px 40px -12px rgba(0, 0, 0, .55);
}
.coupon__main { min-width: 0; padding-bottom: 0; }

.tab {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #1b3a82; color: var(--paper); padding: .6rem var(--pad);
  border-radius: 6px 0 0 0;
  font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-stretch: 118%;
}
.tab__no { font-family: var(--f-carbon); letter-spacing: .08em; color: var(--carbon-lit); font-size: .9rem; }

.coupon h1 {
  padding: clamp(1.25rem, 3vw, 2rem) var(--pad) 0;
  font-size: clamp(2.05rem, 6vw, 3.9rem); line-height: .95; font-stretch: 108%; letter-spacing: -.005em;
}
.coupon h1 em { font-style: normal; color: var(--red); }

.clock { position: relative; padding: clamp(1rem, 2.4vw, 1.6rem) var(--pad); min-height: 9rem; }
.clock__digits {
  font-family: var(--f-carbon); font-weight: 700; color: var(--carbon);
  font-size: clamp(3.6rem, 13vw, 6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: .15rem;
}
.clock__digits.is-hot { color: var(--red); }
.clock__digits.is-away { visibility: hidden; }

.fare { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--navy-line); }
.fare__cell { padding: .85rem var(--pad); border-right: 1px solid var(--navy-line); }
.fare__cell:last-child { border-right: 0; }
.fare dt { margin-bottom: .2rem; }
.fare dd { margin: 0; font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: .95rem; line-height: 1.2; letter-spacing: .02em; }

/* the draw result sits on the clock, then gets stamped */
.result { position: absolute; inset: 0; padding: clamp(1rem, 2.4vw, 1.6rem) var(--pad); background: var(--paper); display: grid; align-content: center; gap: .3rem; }
.result p { display: flex; gap: .9rem; align-items: baseline; }
.result .label { min-width: 4rem; }
.result .carbon { font-size: clamp(1.15rem, 3.4vw, 1.7rem); min-height: 1.2em; }
.result > p:first-child .label { color: var(--navy); }

.stamp {
  position: absolute; right: var(--pad); top: 50%; margin-top: -1.8rem;
  padding: .15em .55em; border: 4px solid currentColor; border-radius: 4px;
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1;
  transform: rotate(-9deg); opacity: 0; filter: url(#ink); pointer-events: none; mix-blend-mode: multiply;
}
.stamp--paid { color: var(--red); }
.stamp--pending { color: var(--navy); border-style: dashed; }
.stamp.is-slam { animation: slam .38s var(--ease) forwards; }
@keyframes slam {
  0% { opacity: 0; transform: rotate(-9deg) scale(2.4); }
  60% { opacity: .95; transform: rotate(-9deg) scale(.96); }
  100% { opacity: .92; transform: rotate(-9deg) scale(1); }
}

/* stub with the primary action */
.coupon__stub {
  --focus: var(--paper);
  position: relative; background: var(--red); color: var(--paper); border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.25rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  border-left: 2px dashed var(--navy); transform-origin: 0 100%;
}
.coupon__stub::before, .coupon__stub::after {
  content: ""; position: absolute; left: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy);
}
.coupon__stub::before { top: -13px; }
.coupon__stub::after { bottom: -13px; }
.stub__big { display: flex; flex-direction: column; gap: .15rem; color: var(--paper); }
.stub__big b { font-weight: 900; font-stretch: 112%; font-size: clamp(3rem, 6vw, 3.6rem); line-height: .9; }
.stub__big b::after { content: "%"; }
.stub__big span { font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; line-height: 1.3; }
.stub__big span { margin-left: 0; }
.stub__note { font-size: .85rem; font-weight: 600; line-height: 1.35; color: var(--paper); }
.is-tearing .coupon__stub { animation: tear .7s cubic-bezier(.55, 0, .9, .4) forwards; }
@keyframes tear {
  0% { transform: none; opacity: 1; }
  25% { transform: rotate(-2deg) translateY(2px); }
  100% { transform: translate(34px, 80px) rotate(11deg); opacity: 0; }
}

.flash { position: fixed; inset: 0; background: var(--red); opacity: 0; pointer-events: none; z-index: 50; }
.flash.on { opacity: .9; }

.hero__under { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.25rem; }
.demo { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--lit-soft); max-width: 46ch; }
.demo__dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--red); }

/* ---------- sections ---------- */
.sec { max-width: var(--wrap); margin: 0 auto; padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad) 0; }
.sec--first { padding-top: clamp(1rem, 3vw, 2rem); }
.sec h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-stretch: 115%; margin-bottom: 1.25rem; padding-top: .25rem; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tag { border: 1.5px dashed var(--lit-soft); color: var(--lit-soft); padding: .2rem .55rem; border-radius: 2px; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.itin, .odds, .calc, .board, .totals, .wallet, .how { --focus: var(--navy); background: var(--paper); color: var(--navy); border-radius: 6px; }
.itin { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.itin__row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: 1.25rem; padding: 1rem var(--pad) 1rem 0; border-bottom: 1px solid var(--navy-line); }
.itin__row:last-child { border-bottom: 0; }
.itin__leg {
  align-self: stretch; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--paper); font-weight: 900; font-stretch: 122%; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; margin: -1rem 0;
}
.itin__leg--paid { background: var(--red); }
.itin__row p { max-width: 62ch; }
.itin__time { font-size: 1.15rem; }

.odds { display: grid; gap: 0; padding: 0; overflow: hidden; }
.odds__in { padding: var(--pad); border-bottom: 1.5px solid var(--navy-line); }
.odds__bag { margin: .35rem 0 1rem; font-weight: 800; font-stretch: 112%; font-size: 1.1rem; text-transform: uppercase; }
.odds__bag .carbon { font-size: clamp(1.7rem, 5vw, 2.6rem); }
.odds__pct { color: var(--ink-soft); font-size: .9rem; }
#bag { width: 100%; accent-color: var(--red); height: 2rem; cursor: pointer; }
.odds__scale { display: flex; justify-content: space-between; font-family: var(--f-carbon); font-size: .8rem; color: var(--ink-soft); }
.odds__out { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.cell { padding: 1rem var(--pad); border-right: 1px solid var(--navy-line); min-width: 0; display: flex; flex-direction: column; }
.cell:last-child { border-right: 0; }
/* labels may wrap to different line counts; pin every value to the bottom so the numbers share one baseline */
.cell dt { margin-bottom: .35rem; }
.cell dd { margin: auto 0 0; font-size: clamp(1.4rem, 3.2vw, 2.2rem); line-height: 1.1; overflow-wrap: anywhere; }
.odds__note { padding: .85rem var(--pad); border-top: 1.5px solid var(--navy-line); font-size: .8rem; color: var(--ink-soft); }

.calc { padding: 0; overflow: hidden; }
.calc__bar { display: flex; min-height: 6.5rem; }
.calc__half { display: flex; flex-direction: column; justify-content: space-between; padding: 1rem var(--pad); }
.calc__half b { font-weight: 900; font-stretch: 125%; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1; }
.calc__half--holder { flex: 1 1 50%; background: var(--red); color: var(--paper); }
.calc__half--holder .label { color: var(--paper); }
.calc__half--creator { flex: 1 1 50%; background: var(--paper); }
.calc__eg { padding: 1rem var(--pad); border-top: 1.5px solid var(--navy-line); max-width: 70ch; }
.calc__eg .label { margin-right: .5rem; }

/* ---------- payouts board (landing + tracker) ---------- */
.board { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.draw {
  display: grid; align-items: center; gap: .5rem 1.25rem;
  grid-template-columns: 6.5rem 8.5rem minmax(0, 1fr) 8rem 13rem;
  padding: .9rem var(--pad); border-bottom: 1px solid var(--navy-line);
}
.draw:last-child { border-bottom: 0; }
.draw__no { font-size: 1.05rem; }
.draw__when { display: flex; flex-direction: column; font-weight: 700; font-size: .9rem; line-height: 1.25; }
.draw__ago { font-weight: 400; font-size: .78rem; color: var(--ink-soft); }
.draw__catchup { margin-top: .15rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.draw__winner, .draw__amt { display: flex; flex-direction: column; min-width: 0; }
.draw__winner .carbon, .draw__amt .carbon { font-size: 1.05rem; overflow-wrap: anywhere; }
.draw__status { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; border-left: 2px dashed var(--navy-line); padding-left: 1rem; align-self: stretch; justify-content: center; }
.draw__proof { font-size: .85rem; }
.draw__sample { color: var(--ink-soft); font-family: var(--f-carbon); font-size: .8rem; }
.badge {
  display: inline-block; padding: .22rem .6rem; border-radius: 2px; border: 2px solid var(--navy);
  font-weight: 900; font-stretch: 118%; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; line-height: 1.2;
}
.badge--confirmed { background: var(--navy); color: var(--paper); }
.badge--pending { background: transparent; color: var(--navy); border-style: dashed; }
.badge--failed { background: var(--red); border-color: var(--red); color: var(--paper); }
.board__more { margin-top: 1rem; }
.board__empty { padding: 1.2rem 0; color: var(--lit-soft); }

/* ---------- tracker ---------- */
.tracker__title { font-size: clamp(2.2rem, 7vw, 4rem); font-stretch: 112%; line-height: .95; }
.tracker__lede { margin: 1rem 0; max-width: 58ch; color: var(--lit-soft); font-size: 1.05rem; }
.tracker__lede + .demo { margin-bottom: 1.25rem; }
.totals { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
/* a fare strip, not a stats grid: perforated between cells, punched notches at each tear line */
.totals .cell { position: relative; border-right: 2px dashed var(--navy-line); }
.totals .cell:last-child { border-right: 0; }
.totals .cell:not(:last-child)::before, .totals .cell:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy);
}
.totals .cell:not(:last-child)::before { top: -10px; }
.totals .cell:not(:last-child)::after { bottom: -10px; }
.wallet { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: var(--pad); }
.wallet > div { min-width: 0; flex: 1 1 22rem; }
.wallet__addr { font-size: clamp(.95rem, 2.6vw, 1.25rem); overflow-wrap: anywhere; margin: .2rem 0 .5rem; }
.wallet__note { font-size: .85rem; color: var(--ink-soft); max-width: 60ch; }
.wallet .btn--ghost { color: var(--navy); border-color: var(--navy); --focus: var(--navy); }
.wallet .btn--ghost:hover { background: var(--navy); color: var(--paper); }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter {
  font: 800 .78rem/1 var(--f-display); font-stretch: 115%; letter-spacing: .12em; text-transform: uppercase; color: var(--paper);
  background: transparent; border: 2px solid var(--lit-soft); border-radius: 3px; padding: .7rem .95rem; min-height: 2.75rem; cursor: pointer;
}
.filter span { font-family: var(--f-carbon); margin-left: .35rem; color: var(--carbon-lit); }
.filter:hover { border-color: var(--paper); }
.filter.is-on { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.filter.is-on span { color: var(--carbon); }
.updated { margin-top: .9rem; font-size: .82rem; color: var(--lit-soft); }
.how { margin-top: 1.5rem; padding: 0; }
.how summary { cursor: pointer; padding: 1rem var(--pad); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: .75rem; }
.how summary::-webkit-details-marker { display: none; }
.how summary::before { content: ""; flex: none; width: .55em; height: .55em; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); transition: transform .2s var(--ease); }
.how[open] > summary::before { transform: rotate(45deg); }
.faq .how { margin-top: .75rem; }
.faq .how:first-of-type { margin-top: 0; }
.how p { padding: 0 var(--pad) 1.2rem calc(var(--pad) + 1.4rem); max-width: 72ch; line-height: 1.55; }
.how ol { margin: 0; padding: 0 var(--pad) 1.2rem calc(var(--pad) + 1.2rem); display: grid; gap: .5rem; max-width: 70ch; }

/* ---------- close ---------- */
.close { max-width: var(--wrap); margin: clamp(3rem, 8vw, 6rem) auto 0; padding: clamp(2rem, 6vw, 4rem) var(--pad); border-top: 2px solid var(--paper); }
.close h2 { font-size: clamp(2rem, 7vw, 4.6rem); line-height: .98; font-stretch: 112%; max-width: 16ch; margin-bottom: 1.75rem; }
.close .carbon { color: var(--carbon-lit); }
.close__row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.links { display: flex; gap: 1.5rem; margin-top: 1.75rem; }
.links a { font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; text-underline-offset: .3em; }
.links a:hover { color: var(--lit-soft); }

.foot { background: var(--navy-deep); padding: 2rem var(--pad) 3rem; }
.foot p { max-width: 62rem; margin: 0 auto; font-size: .8rem; line-height: 1.6; color: var(--lit-soft); }
.foot strong { color: var(--paper); }

/* ---------- small screens ---------- */
@media (max-width: 52rem) {
  .coupon { grid-template-columns: 1fr; }
  .tab { border-radius: 6px 6px 0 0; }
  .coupon__stub { border-radius: 0 0 6px 6px; border-left: 0; border-top: 2px dashed var(--navy); transform-origin: 50% 0; }
  .coupon__stub::before, .coupon__stub::after { top: -13px; bottom: auto; }
  .coupon__stub::before { left: -13px; }
  .coupon__stub::after { left: auto; right: -13px; }
  .is-tearing .coupon__stub { animation-name: tearM; }
  .fare { grid-template-columns: 1fr; }
  .fare__cell { border-right: 0; border-bottom: 1px solid var(--navy-line); padding-block: .6rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .fare__cell:last-child { border-bottom: 0; }
  .fare dt { margin: 0; }
  .fare dd { text-align: right; }
  .itin__row { grid-template-columns: 5.4rem minmax(0, 1fr); padding-right: var(--pad); gap: .9rem; }
  .itin__leg { letter-spacing: .06em; font-size: .8rem; }
  .itin__time { grid-column: 2; font-size: .95rem; }
  .odds__out, .totals { grid-template-columns: 1fr 1fr; }
  .cell { border-bottom: 1px solid var(--navy-line); }
  .odds__out .cell:nth-child(2n), .totals .cell:nth-child(2n) { border-right: 0; }
  .odds__out .cell:nth-last-child(-n+2), .totals .cell:nth-last-child(-n+2) { border-bottom: 0; }
  .draw { grid-template-columns: 1fr 1fr; padding-block: 1rem; }
  .draw__no { grid-column: 1; }
  .draw__when { grid-column: 2; align-items: flex-end; text-align: right; }
  .draw__winner { grid-column: 1 / 2; }
  .draw__amt { grid-column: 2; align-items: flex-end; }
  .draw__status { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: .4rem; border-top: 1px dashed var(--navy-line); }
  .bar__nav { order: 3; width: 100%; }
  .bar__right { margin-left: auto; }
  .chip__copy { display: none; }
  .draw__status { border-left: 0 !important; padding-left: 0 !important; }
  .totals .cell { border-right: 0 !important; }
  .totals .cell::before, .totals .cell::after { display: none !important; }
}
@keyframes tearM {
  0% { transform: none; opacity: 1; }
  100% { transform: translate(0, 60px) rotate(4deg); opacity: 0; }
}

/* ---------- last winner: the gift ---------- */
.gift { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); align-items: center; }
.gift__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-top: 5rem; }
.gift__ticket { transition: transform .5s var(--ease); }
.gift[data-state="opening"] .gift__ticket, .gift[data-state="open"] .gift__ticket { transform: translateY(-66px); transition-delay: .75s; }
.gift[data-state="open"] .gift__ticket { transition-delay: 0s; }
.gift__art { width: 100%; max-width: 17rem; overflow: visible; }
.gift__lid { transform-origin: 26px 110px; transition: transform .4s var(--ease); }
.gift__tag { transform-origin: 206px 120px; }
.gift[data-state="opening"] .gift__art { animation: shake .45s linear; }
.gift[data-state="opening"] .gift__lid, .gift[data-state="open"] .gift__lid { transform: translate(-18px, -30px) rotate(-18deg); transition-duration: .6s; }
.gift[data-state="opening"] .gift__lid { transition-delay: .45s; }
@keyframes shake {
  0%, 100% { transform: none; }
  15% { transform: translateX(-6px) rotate(-2deg); }
  35% { transform: translateX(6px) rotate(2deg); }
  55% { transform: translateX(-5px) rotate(-1.5deg); }
  75% { transform: translateX(4px) rotate(1deg); }
}
.gift__confetti { position: absolute; left: 50%; top: 32%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.gift__confetti i { position: absolute; width: .55rem; height: .95rem; background: var(--red); opacity: 0; animation: burst 1s cubic-bezier(.1, .7, .3, 1) forwards; }
.gift__confetti i:nth-child(3n) { background: var(--paper); }
.gift__confetti i:nth-child(3n + 1) { background: var(--carbon-lit); }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); }
}

.gift__card { --focus: var(--navy); position: relative; background: var(--paper); color: var(--navy); border-radius: 6px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); }
.gift__card .tab { border-radius: 6px 6px 0 0; }
/* torn-off stub edge: the card is a coupon pulled from the box */
.gift__card::before, .gift__card::after { content: ""; position: absolute; left: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); }
.gift__card::before { top: 3.4rem; }
.gift__card::after { bottom: 1.2rem; }
.gift__stamp { top: auto; bottom: .55rem; right: var(--pad); margin-top: 0; opacity: .92; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.gift[data-state="closed"] .gift__stamp, .gift[data-state="opening"] .gift__stamp { opacity: 0; }
.gift__split { border-top: 2px dashed var(--navy-line); border-bottom: 2px dashed var(--navy-line); }
.gift__card .tab { border-radius: 0; }
.gift__vals { transition: filter .5s var(--ease) .7s, opacity .5s .7s; }
.gift[data-state="closed"] .gift__vals { filter: blur(9px); opacity: .55; user-select: none; transition-delay: 0s; }
.gift__row { display: flex; flex-direction: column; gap: .2rem; padding: .95rem var(--pad); min-width: 0; }
.gift__wallet { font-size: clamp(1rem, 2.8vw, 1.45rem); overflow-wrap: anywhere; line-height: 1.25; }
.gift__split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--navy-line); border-bottom: 1.5px solid var(--navy-line); }
.gift__num { font-size: clamp(1.5rem, 4.4vw, 2.7rem); line-height: 1.05; overflow-wrap: anywhere; }
.gift__sub { font-size: .8rem; color: var(--ink-soft); }
.gift__row--won { background: var(--red); color: var(--paper); }
.gift__row--won .label, .gift__row--won .gift__sub, .gift__row--won .gift__num { color: var(--paper); }
.gift__proof { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; padding: .95rem var(--pad); font-size: .9rem; }

@media (max-width: 52rem) {
  .gift { grid-template-columns: 1fr; }
  .gift__art { max-width: 13rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gift[data-state="opening"] .gift__art { animation: none; }
  .gift__lid, .gift__vals { transition: none; }
  .gift__confetti { display: none; }
  .is-tearing .coupon__stub { animation: none; }
  .stamp.is-slam { animation: none; opacity: .92; }
  .btn { transition: none; }
}
