@font-face {
  font-family: "GT America";
  src: url("assets/fonts/GT-America-Standard-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "GT America";
  src: url("assets/fonts/GT-America-Standard-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "GT America";
  src: url("assets/fonts/GT-America-Standard-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Flemish Script";
  src: url("assets/fonts/AtFlemishScriptII.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --blue: #152342;
  --red: #ae0029;
  --white: #ffffff;
  --stripe-bg: repeating-linear-gradient(
    90deg,
    var(--blue) 0 calc(100vw / 9),
    var(--white) calc(100vw / 9) calc(100vw / 9 * 2)
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #000000;
  background: var(--blue);
  font-family: "GT America", "Helvetica Neue", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
}

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

.site-shell {
  width: 100%;
  margin: 0;
}

.app-stage,
.site-footer {
  width: 100%;
  margin: 0;
}

.app-stage {
  display: grid;
}

.screen {
  display: none;
  min-height: 100svh;
  width: 100%;
  grid-area: 1 / 1;
}

.screen.is-active,
.screen.is-entering,
.screen.is-leaving {
  display: block;
}

.screen.is-active:not(.is-entering):not(.is-leaving):not(.skip-active-fade) {
  animation: screen-fade 300ms ease;
}

.screen.is-entering,
.screen.is-leaving {
  pointer-events: none;
}

.screen.is-entering {
  z-index: 2;
}

.screen.is-leaving {
  z-index: 1;
}

.stripe-stage {
  --stripe-width: calc(100% / 9);
  min-height: 100svh;
  padding: 22px 0;
  position: relative;
  overflow: hidden;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
}

.stripe-stage > * {
  position: relative;
  z-index: 1;
}

.stripe-stage__bars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stripe-stage__bar {
  position: absolute;
  top: -32px;
  bottom: -32px;
  left: 0;
  width: calc(var(--stripe-width) + 1px);
  background: var(--blue);
  transform: translateY(calc(-100% - 64px));
  animation: stripe-drop 1100ms cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}

.stripe-stage__bar:nth-child(1) {
  left: 0;
  animation-delay: 40ms;
}

.stripe-stage__bar:nth-child(2) {
  left: calc(var(--stripe-width) * 2);
  animation-delay: 140ms;
}

.stripe-stage__bar:nth-child(3) {
  left: calc(var(--stripe-width) * 4);
  animation-delay: 240ms;
}

.stripe-stage__bar:nth-child(4) {
  left: calc(var(--stripe-width) * 6);
  animation-delay: 340ms;
}

.stripe-stage__bar:nth-child(5) {
  left: calc(var(--stripe-width) * 8);
  animation-delay: 440ms;
}

.stripe-stage--open {
  position: relative;
  min-height: calc(100svh - 86px);
  padding: 0;
}

.frame-card {
  min-height: calc(100svh - 180px);
  height: calc(100svh - 180px);
  width: min(calc(100% - 52px), 338px);
  margin: 0 auto;
  padding: 18px;
  background: var(--white);
  display: flex;
}

.frame-card__inner {
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(174, 0, 41, 0.75);
  background: var(--white);
}

.frame-card__inner--landing {
  display: flex;
  position: relative;
  padding: 42px 20px;
  overflow: hidden;
}

.frame-card__inner--legal {
  padding: 42px 22px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-panel {
  display: none;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.card-panel.is-active {
  display: flex;
  flex-direction: column;
  animation: panel-fade 240ms ease;
}

.card-panel--landing {
  justify-content: space-between;
}

.card-panel--closed {
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.card-panel--participated {
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.card-panel--legal {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.secret-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 82px;
  height: 68px;
  z-index: 6;
}

.debug-panel {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.debug-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.debug-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 35, 66, 0.2);
}

.debug-panel__sheet {
  position: relative;
  width: 100%;
  margin-top: auto;
  max-height: 100%;
  padding: 20px 18px 18px;
  border-top: 1px solid rgba(21, 35, 66, 0.14);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -14px 34px rgba(21, 35, 66, 0.16);
  overflow-y: auto;
}

.debug-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.debug-panel__eyebrow {
  margin: 0 0 4px;
  color: rgba(21, 35, 66, 0.65);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.debug-panel__title {
  margin: 0;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 400;
}

.debug-panel__close {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--blue);
  font-size: 0.84rem;
  border: 1px solid rgba(21, 35, 66, 0.16);
}

.debug-panel__content {
  display: grid;
  gap: 12px;
}

.debug-field {
  display: grid;
  gap: 6px;
}

.debug-field__label {
  color: rgba(21, 35, 66, 0.72);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.debug-field input,
.debug-field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 35, 66, 0.18);
  border-radius: 0;
  background: #ffffff;
  color: var(--blue);
}

.debug-panel__status {
  padding: 12px;
  background: rgba(21, 35, 66, 0.05);
  color: var(--blue);
}

.debug-panel__status-line {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.debug-panel__status-line + .debug-panel__status-line {
  margin-top: 6px;
}

.debug-panel__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.debug-button {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 35, 66, 0.16);
  color: var(--blue);
  background: #ffffff;
  text-align: center;
}

.debug-button--primary {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}

.brand-logo {
  width: 176px;
  margin: 0 auto;
}

.brand-logo--header {
  width: 178px;
}

.brand-logo--footer {
  width: 320px;
  max-width: 94%;
}

.landing-title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 0;
}

.landing-title {
  margin: 0;
  font-size: clamp(3.6rem, 14.25vw, 4.45rem);
  line-height: 0.89;
  font-weight: 400;
  text-align: center;
  transform: scale(0.88);
  transform-origin: 50% 50%;
  opacity: 0;
  animation: landing-title-scale-in 760ms cubic-bezier(0.2, 0.9, 0.25, 1) 180ms forwards;
}

.landing-title span {
  display: block;
}

.landing-actions {
  padding: 0 2px;
}

.closed-copy {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closed-copy__title {
  margin: auto 0;
  font-size: clamp(2.35rem, 10vw, 3.1rem);
  line-height: 0.98;
  font-weight: 400;
  transform: scale(0.88);
  transform-origin: 50% 50%;
  opacity: 0;
  animation: landing-title-scale-in 760ms cubic-bezier(0.2, 0.9, 0.25, 1) 180ms forwards;
}

.closed-copy__body {
  margin: 0;
  max-width: 15rem;
  padding-bottom: 14px;
  font-size: 1rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  animation: landing-copy-fade-in 620ms ease 420ms forwards;
}

.participated-copy {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transform: translateY(-24px);
}

.participated-copy__title {
  margin: auto 0 26px;
  max-width: 15rem;
  font-size: clamp(2.35rem, 10vw, 3.1rem);
  line-height: 0.98;
  font-weight: 400;
  transform: scale(0.88);
  transform-origin: 50% 50%;
  opacity: 0;
  animation: landing-title-scale-in 760ms cubic-bezier(0.2, 0.9, 0.25, 1) 180ms forwards;
}

.participated-ticket {
  margin: 25px 0 auto;
  width: 150px;
  padding: 12px;
  box-shadow: 0 18px 34px rgba(21, 35, 66, 0.16);
  opacity: 0;
  transform: translateY(10px);
  animation: landing-copy-fade-in 620ms ease 320ms forwards;
}

.participated-ticket__inner {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.participated-ticket--silver {
  background: #ffffff;
}

.participated-ticket--silver .participated-ticket__inner {
  border: 1px solid rgba(21, 35, 66, 0.94);
  background: #ffffff;
}

.participated-ticket--gold {
  background: linear-gradient(140deg, #c90839 0%, #a7002d 44%, #7f001f 100%);
}

.participated-ticket--gold .participated-ticket__inner {
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: linear-gradient(140deg, #bc0331 0%, #a3002d 46%, #890024 100%);
}

.participated-ticket__emblem {
  width: 33px;
  height: auto;
}

.participated-copy__body {
  margin: 0;
  max-width: 15rem;
  padding-bottom: 14px;
  font-size: 1rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  animation: landing-copy-fade-in 620ms ease 420ms forwards;
}

.participated-debug-button {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 20;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(21, 35, 66, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(21, 35, 66, 0.82);
  font-size: 0.66rem;
  line-height: 1;
}

.consent-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  font-size: 0.6rem;
  line-height: 1.2;
  color: #000000;
}

.consent-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-row__check {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #d9d9d9;
}

.consent-row__check::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: var(--blue);
  transform: scale(0);
  transition: transform 150ms ease;
}

.consent-row input:checked + .consent-row__check::after {
  transform: scale(1);
}

.consent-row__copy {
  min-width: 0;
}

.text-link {
  display: inline;
  color: #000000;
  font-weight: 500;
  text-decoration: none;
}

.primary-button {
  --button-fill: 100%;
  width: 100%;
  min-height: 41px;
  background:
    linear-gradient(var(--blue), var(--blue)) left center / var(--button-fill) 100% no-repeat,
    #b7bdc7;
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  position: relative;
  overflow: hidden;
  transition:
    background-size 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:not(:disabled):hover,
.primary-button:not(:disabled):focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(21, 35, 66, 0.2);
}

.primary-button:disabled {
  --button-fill: 0%;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  transform: none;
  opacity: 1;
  cursor: not-allowed;
}

.legal-header {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-top: 44px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 28px;
  color: #000000;
  font-size: 1.6rem;
  line-height: 1;
}

.legal-header__spacer {
  width: 28px;
  height: 1px;
}

.legal-panel-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.legal-scroll {
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 4px 10px 8px 2px;
  overflow: auto;
  color: #1a1a1a;
  font-size: 0.78rem;
  line-height: 1.62;
}

.legal-scroll--inline {
  flex: 1;
  min-height: 0;
  height: auto;
}

.legal-scroll::-webkit-scrollbar {
  width: 4px;
}

.legal-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
}

.legal-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.36);
  border-radius: 999px;
}

.legal-scroll h2 {
  margin: 22px 0 8px;
  font-size: 0.76rem;
  font-weight: 500;
}

.legal-scroll p {
  margin: 0 0 12px;
}

.legal-scroll ol {
  margin: 0 0 16px;
  padding-left: 18px;
}

.legal-scroll li {
  margin-bottom: 2px;
  text-decoration: underline;
}

.scratch-screen {
  min-height: 100svh;
  background: var(--white);
}

.scratch-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 82px;
  background: var(--white);
}

.scratch-stage {
  --scratch-bg: var(--white);
  --scratch-paint: var(--red);
  --headline-overlay-color: var(--white);
  --headline-under-color: var(--red);
  --headline-top: calc((100svh - 82px) * 0.12);
  --subline-overlay-color: var(--white);
  --subline-under-color: var(--white);
  --subline-bottom: 96px;
  --coupon-card-bg: var(--red);
  --coupon-card-color: var(--white);
  --coupon-border-color: var(--white);
  position: relative;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  background: var(--scratch-bg);
}

.scratch-stage__reveal {
  position: absolute;
  inset: 0;
}

.scratch-result {
  position: relative;
  min-height: calc(100svh - 82px);
}

.scratch-target-area {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(
    calc(100vw - 56px),
    calc(100svh - 82px - var(--headline-top) - var(--subline-bottom) - 124px),
    452px
  );
  height: min(
    calc(100vw - 56px),
    calc(100svh - 82px - var(--headline-top) - var(--subline-bottom) - 124px),
    452px
  );
  border-radius: 5px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
}

.scratch-result__headline {
  position: absolute;
  top: var(--headline-top);
  left: 24px;
  right: 24px;
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.scratch-result__headline--under {
  top: calc(var(--headline-top) - 5px);
  z-index: 1;
  color: var(--headline-under-color);
}

.scratch-result__headline--under,
.scratch-canvas--text {
  opacity: 0;
  transform: translateY(18px) scale(0.84);
  transform-origin: 50% 50%;
  transition:
    opacity 520ms ease-out,
    transform 1160ms cubic-bezier(0.2, 0.92, 0.24, 1);
}

.scratch-result__headline--overlay {
  z-index: 4;
  color: var(--headline-overlay-color);
  visibility: hidden;
}

.scratch-result__subline {
  position: absolute;
  right: 24px;
  bottom: var(--subline-bottom);
  left: 24px;
  margin: 0;
  font-size: clamp(1.05rem, 4.6vw, 1.7rem);
  font-weight: 400;
  line-height: 1.04;
  text-align: center;
  pointer-events: none;
}

.scratch-text-line {
  display: block;
}

.scratch-result__subline--under {
  display: none;
  z-index: 1;
  color: var(--subline-under-color);
  opacity: 0;
  transform: translateY(18px) scale(0.84);
  transform-origin: 50% 50%;
  transition:
    opacity 520ms ease-out,
    transform 1160ms cubic-bezier(0.2, 0.92, 0.24, 1);
}

.scratch-result__subline--overlay {
  z-index: 4;
  color: var(--subline-overlay-color);
  visibility: hidden;
  display: none;
}

.scratch-stage.is-message-visible .scratch-result__headline {
  opacity: 1;
}

.scratch-stage.is-message-visible .scratch-result__headline--under {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scratch-stage.is-message-visible .scratch-canvas--text {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scratch-stage.is-message-visible .scratch-result__subline--under {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scratch-canvas--text {
  z-index: 3;
  pointer-events: none;
}

.coupon-wrap {
  position: relative;
  min-height: calc(100svh - 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 112px 24px 72px;
}

.scratch-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(calc(100vw - 48px), 470px);
  height: min(54vw, 320px);
  border-radius: 52px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0 56px,
    var(--white) 56px 112px
  );
  transform: translate(-50%, -50%);
}

.coupon-card {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 104px), 364px);
  overflow: hidden;
  padding: 18px;
  transform: translateY(0) scale(1);
  opacity: 1;
  transition:
    box-shadow 420ms ease;
}

.coupon-card::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -38%;
  width: 32%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 42%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(255, 255, 255, 0.12) 58%,
    transparent 100%
  );
  transform: translateX(0) rotate(8deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.coupon-card.is-visible {
  animation: coupon-reveal-pop 1120ms cubic-bezier(0.2, 0.92, 0.24, 1) 1 forwards;
  box-shadow: 0 20px 42px rgba(21, 35, 66, 0.16);
}

.coupon-card.is-visible::before {
  opacity: 1;
  animation: coupon-shine 1700ms ease-out 1 forwards;
}

.scratch-stage--gold {
  --scratch-bg: var(--white);
  --headline-overlay-color: var(--white);
  --headline-under-color: var(--blue);
  --coupon-card-bg: var(--red);
  --coupon-card-color: var(--white);
  --coupon-border-color: rgba(255, 255, 255, 0.94);
}

.scratch-stage--gold .scratch-ribbon {
  display: none;
}

.scratch-stage--silver {
  --scratch-bg: var(--blue);
  --headline-overlay-color: var(--white);
  --headline-under-color: var(--white);
  --coupon-card-bg: var(--white);
  --coupon-card-color: var(--blue);
  --coupon-border-color: rgba(174, 0, 41, 0.92);
}

.scratch-stage--silver .scratch-ribbon {
  display: none;
}

.coupon-card--gold {
  background: var(--coupon-card-bg);
}

.coupon-card--silver {
  background: var(--coupon-card-bg);
}

.scratch-stage--design-2 {
  --scratch-bg: repeating-linear-gradient(
    90deg,
    var(--blue) 0 calc(100vw / 9),
    var(--white) calc(100vw / 9) calc(100vw / 9 * 2)
  );
  --headline-overlay-color: var(--white);
  --headline-under-color: var(--white);
  --subline-overlay-color: var(--white);
  --subline-under-color: var(--white);
  --subline-bottom: 82px;
}

.scratch-stage--design-2 .scratch-ribbon {
  display: none;
}

.scratch-stage--design-2 .scratch-result__subline--overlay {
  display: block;
}

.scratch-stage--design-2 .scratch-result__subline--under {
  display: block;
}

.scratch-stage--design-2 .scratch-target-area {
  display: block;
}

.coupon-card--design-2 {
  width: min(calc(100vw - 88px), 392px);
  padding: 16px;
  border-radius: 5px;
  box-shadow: 0 18px 34px rgba(21, 35, 66, 0.22);
}

.coupon-card--design-2.is-visible {
  animation: coupon-reveal-zoom 1320ms cubic-bezier(0.16, 0.9, 0.22, 1) 1 forwards;
  box-shadow: 0 18px 34px rgba(21, 35, 66, 0.22);
}

.coupon-card--design-2.coupon-card--silver {
  background: #ffffff;
}

.coupon-card--design-2.coupon-card--gold {
  background: #ae0029;
}

.coupon-card--design-2 .coupon-card__inner {
  min-height: clamp(156px, 41vw, 198px);
  padding: 24px;
  border: 1px solid transparent;
}

.coupon-card--design-2.coupon-card--silver .coupon-card__inner {
  background: #ffffff;
  border-color: rgba(21, 35, 66, 0.94);
}

.coupon-card--design-2.coupon-card--gold .coupon-card__inner {
  background: #ae0029;
  border-color: rgba(255, 255, 255, 0.94);
}

.coupon-card__emblem {
  display: none;
  width: clamp(72px, 18vw, 94px);
  height: auto;
}

.coupon-card--design-2 .coupon-card__copy {
  display: none;
}

.coupon-card--design-2 .coupon-card__emblem {
  display: block;
}

.coupon-card__inner {
  position: relative;
  z-index: 1;
  min-height: clamp(165px, 42vw, 213px);
  border: 1px solid var(--coupon-border-color);
  padding: 28px 22px;
  background: var(--coupon-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.coupon-card__copy {
  width: min(12.5rem, 100%);
  margin: 0;
  color: var(--coupon-card-color);
  font-family: "GT America", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.45rem, 5.2vw, 2rem);
  font-weight: 400;
  line-height: 1.04;
  text-align: center;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: none;
}

.scratch-instructions {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 26px 90px;
  color: var(--white);
  text-align: center;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.scratch-stage.is-scratching .scratch-instructions,
.scratch-stage.is-complete .scratch-instructions {
  opacity: 0;
  transform: translateY(12px);
}

.wipe-icon {
  width: 76px;
  height: 76px;
  transform-origin: 50% 84%;
  animation: wipe-cue 1.8s linear infinite;
}

.wipe-gesture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wipe-gesture__arrows {
  position: relative;
  width: 90px;
  height: 18px;
}

.wipe-arrow {
  position: absolute;
  top: 0;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.16;
}

.wipe-arrow--left {
  left: 6px;
  animation: wipe-arrow-left 1.8s linear infinite;
}

.wipe-arrow--right {
  right: 6px;
  animation: wipe-arrow-right 1.8s linear infinite;
}

.scratch-instructions p {
  margin: 0;
  max-width: 16rem;
  font-size: 0.98rem;
  line-height: 1.38;
}

[data-screen-transition="start-flow"].screen--scratch.is-entering {
  opacity: 0;
}

[data-screen-transition="start-flow"].screen--scratch.is-entering .scratch-header {
  opacity: 0;
  transform: translateY(-20px);
}

[data-screen-transition="start-flow"].screen--scratch.is-entering .scratch-stage {
  opacity: 0;
  transform: translateY(44px) scale(1.01);
}

[data-screen-transition="start-flow"].screen--scratch.is-entering .scratch-instructions {
  opacity: 0;
  transform: translateY(30px);
}

[data-screen-transition="start-flow"].screen--landing.is-transition-ready.is-leaving {
  animation: landing-screen-out 560ms cubic-bezier(0.3, 0, 0.3, 1) forwards;
}

[data-screen-transition="start-flow"].screen--landing.is-transition-ready.is-leaving .frame-card {
  animation: landing-card-out 560ms cubic-bezier(0.3, 0, 0.3, 1) forwards;
}

[data-screen-transition="start-flow"].screen--scratch.is-transition-ready.is-entering {
  animation: scratch-screen-in 680ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

[data-screen-transition="start-flow"].screen--scratch.is-transition-ready.is-entering .scratch-header {
  animation: scratch-header-in 620ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

[data-screen-transition="start-flow"].screen--scratch.is-transition-ready.is-entering .scratch-stage {
  animation: scratch-stage-in 680ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

[data-screen-transition="start-flow"].screen--scratch.is-transition-ready.is-entering .scratch-instructions {
  animation: scratch-instructions-in 620ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both;
}

.ghost-button {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.86rem;
  text-decoration: none;
}

.scratch-stage.is-complete .ghost-button {
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  padding: 48px 24px 36px;
  text-align: center;
  background: var(--white);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 34px;
}

.footer-link {
  color: #404040;
  font-size: 0.7125rem;
  font-weight: 400;
}

.site-footer__copyright {
  margin: 44px 0 0;
  color: #404040;
  font-size: 0.7125rem;
}

@keyframes screen-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes panel-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes landing-title-scale-in {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes landing-copy-fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-screen-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes landing-card-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }
}

@keyframes scratch-screen-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes scratch-header-in {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scratch-stage-in {
  0% {
    opacity: 0;
    transform: translateY(44px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scratch-instructions-in {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stripe-drop {
  0% {
    transform: translateY(calc(-100% - 64px));
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: translateX(-6px) rotate(-10deg);
  }
  50% {
    transform: translateX(6px) rotate(7deg);
  }
}

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

@keyframes coupon-shine {
  from {
    transform: translateX(0) rotate(8deg);
  }
  to {
    transform: translateX(430%) rotate(8deg);
    opacity: 0;
  }
}

@keyframes coupon-reveal-pop {
  0% {
    transform: translateY(16px) scale(0.89);
  }
  60% {
    transform: translateY(-1px) scale(1.016);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes coupon-reveal-zoom {
  0% {
    transform: translateY(18px) scale(0.9);
  }
  54% {
    transform: translateY(-2px) scale(1.07);
  }
  100% {
    transform: translateY(0) scale(1.03);
  }
}

@media (min-width: 640px) {
  .app-stage,
  .site-footer {
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }
}

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

@media (max-height: 800px) {
  .stripe-stage {
    padding: 14px 0;
  }

  .frame-card {
    min-height: calc(100svh - 206px);
    height: calc(100svh - 206px);
  }

  .frame-card__inner--landing {
    padding: 34px 18px;
  }

  .brand-logo {
    width: 158px;
  }

  .landing-title {
    font-size: clamp(3rem, 12.4vw, 3.9rem);
  }

  .closed-copy__title,
  .participated-copy__title {
    max-width: 13.5rem;
    font-size: clamp(2.05rem, 8.6vw, 2.7rem);
  }

  .closed-copy__body,
  .participated-copy__body {
    max-width: 13.5rem;
    font-size: 0.92rem;
    line-height: 1.36;
  }

  .participated-copy {
    transform: translateY(-16px);
  }

  .participated-ticket {
    width: 198px;
    padding: 10px;
  }

  .participated-ticket__inner {
    min-height: 104px;
  }

  .participated-ticket__emblem {
    width: 29px;
  }

  .scratch-stage {
    --headline-top: calc((100svh - 82px) * 0.08);
    --subline-bottom: 78px;
  }

  .scratch-result__headline {
    top: calc((100svh - 82px) * 0.06);
  }

  .scratch-result__headline--under {
    top: calc((100svh - 82px) * 0.06 - 5px);
  }

  .scratch-result__subline {
    bottom: 54px;
  }
}

@media (max-width: 420px) {
  .participated-copy {
    transform: translateY(-10px);
  }

  .scratch-result__headline {
    top: calc(var(--headline-top) + 12px);
  }

  .scratch-result__headline--under {
    top: calc(var(--headline-top) + 7px);
  }

  .scratch-result__subline {
    bottom: calc(var(--subline-bottom) - 10px);
  }
}

@keyframes wipe-cue {
  0%,
  18% {
    transform: rotate(-15deg);
  }
  50%,
  68% {
    transform: rotate(15deg);
  }
  100% {
    transform: rotate(-15deg);
  }
}

@keyframes wipe-arrow-left {
  0%,
  18% {
    opacity: 1;
    transform: translateX(-4px);
  }
  28%,
  100% {
    opacity: 0.16;
    transform: translateX(0);
  }
}

@keyframes wipe-arrow-right {
  0%,
  48% {
    opacity: 0.16;
    transform: translateX(0);
  }
  50%,
  68% {
    opacity: 1;
    transform: translateX(4px);
  }
  78%,
  100% {
    opacity: 0.16;
    transform: translateX(0);
  }
}
