@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Montserrat/Montserrat-Bold.ttf") format("truetype");
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/Montserrat/Montserrat-ExtraBold.ttf") format("truetype");
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/Montserrat/Montserrat-Black.ttf") format("truetype");
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #2b0b55;
  font-family: 'Montserrat', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------- layout / stage ---------- */

.layout {
  --k: 1;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #3b1275;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: #3d1680 url("/img/landing-21/bg.webp?v=4") center / cover no-repeat;
  filter: brightness(.9);
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 800px;
  margin: -400px 0 0 -720px;
  transform: scale(var(--k));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.stage--scene {
  z-index: 1;
}

.stage--ui {
  z-index: 30;
}

.art,
.wheel,
.headline,
.star,
.win > * {
  position: absolute;
}

.art {
  display: block;
  max-width: none;
}

.art img,
.art--joker img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.baked img {
  left: calc(var(--px) * -1);
  top: calc(var(--py) * -1);
  width: calc(100% + var(--px) * 2);
  height: calc(100% + var(--py) * 2);
}

/* ---------- decor (desktop 1440x800) ---------- */

.art--shade {
  left: -3000px;
  top: -2000px;
  width: 3443px;
  height: 4800px;
  z-index: 9;
  background: linear-gradient(90deg, #2c004f 3000px, rgba(44, 0, 79, 0) 3443px);
}
.art--crown { left: -114.24px; top: 525.97px; width: 443.59px; height: 368.11px; rotate: 23.56deg; z-index: 1; }
.art--bottles { left: 213.82px; top: 514.26px; width: 404.35px; height: 400.02px; rotate: 13.79deg; z-index: 2; }
.art--hats { left: 864.9px; top: 627.52px; width: 347.34px; height: 292.63px; rotate: -170.15deg; scale: 1 -1; z-index: 2; }

.art--ball {
  left: 243.79px;
  top: 536.45px;
  width: 49.96px;
  height: 42.01px;
  rotate: 29.57deg;
  z-index: 3;
}
.art--ball img { border-top-left-radius: 16.22px; }
.art--ball { filter: blur(1.05px); }

.art--money { left: -164.49px; top: 611.84px; width: 909.51px; height: 718.35px; rotate: -16.27deg; z-index: 4; opacity: .9; filter: saturate(.3) brightness(1.3); }
.art--fade::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 4000px;
  background: #3e1680;
}
.art--fade {
  left: -3000px;
  width: 7440px;
  background: linear-gradient(0deg, #3e1680 0%, rgba(117, 22, 163, 0) 100%);
}
.art--fade-1 { top: 595px; height: 341px; z-index: 6; }
.art--fade-2 { top: 667px; height: 209px; z-index: 11; }
.art--haze {
  left: 893.74px;
  top: 490.02px;
  width: 354.58px;
  height: 416.55px;
  rotate: -81.12deg;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 103, 255, .5) 0%, rgba(201, 103, 255, .22) 45%, rgba(201, 103, 255, 0) 100%);
  transform: scale(1.9);
  z-index: 5;
}
.art--aura { left: 91px; top: 237px; width: 1258px; height: 1025px; z-index: 5; }
.art--aura-logo { display: none; }

.art--light {
  left: 381.66px;
  top: 19.19px;
  width: 636.96px;
  height: 619.73px;
  rotate: -136.9deg;
  object-fit: cover;
  filter: saturate(1.23) brightness(1.1);
  z-index: 7;
}
.orbit {
  --ox: 720.9px;
  --oy: 344.4px;
  position: absolute;
  inset: 0;
  z-index: 7;
  transform-origin: var(--ox) var(--oy);
  animation: l21-turn 16s linear infinite;
  will-change: transform;
}
.orbit--2 { animation-duration: 24s; animation-direction: reverse; }
.orbit .art--light { z-index: auto; }
.art--light-2 { left: 416.52px; top: 39.55px; rotate: -16.9deg; }

.joker {
  position: absolute;
  inset: 0;
  z-index: 10;
  animation: l21-breathe 3.8s ease-in-out infinite;
}
.joker__layer { position: absolute; inset: 0; }
.joker__mask { position: absolute; inset: 0 -1200px; }
.joker__mask > .art { margin-left: 1200px; }
.joker__layer--soft,
.joker__tint { display: none; }
.bells { position: absolute; inset: 0; pointer-events: none; }
.bells i {
  position: absolute;
  display: block;
  background: center / 100% 100% no-repeat;
  transform-origin: var(--o);
  animation: l21-swing var(--t) var(--d) ease-in-out infinite;
}
.bells--m { display: none; }
.joker picture { position: absolute; inset: 0; display: block; }
.art--joker {
  --px: 2.143%;
  --py: 1.726%;
  display: block;
  left: 881.3px;
  top: 15.2px;
  width: 701.98px;
  height: 871.31px;
  transform: rotate(-19.96deg);
}

.art--game {
  left: 17px;
  top: 313.64px;
  width: 334.64px;
  height: 181.72px;
  z-index: 12;
}

.art--gem {
  left: 1365.96px;
  top: 41.7px;
  width: 107.06px;
  height: 98.17px;
  z-index: 14;
  rotate: -32.7deg;
}
.art--gem img {
  border-radius: 0 0 51.31px 68.41px;
}

/* sparkles */

.star {
  --cx: 370px;
  --cy: 381px;
  --s: 89px;
  left: calc(var(--cx) - var(--s) / 2);
  top: calc(var(--cy) - var(--s) / 2);
  width: var(--s);
  height: var(--s);
  z-index: 6;
  animation: l21-twinkle 3.2s ease-in-out infinite;
}
.star img {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  max-width: none;
}
.star__core {
  width: calc(var(--s) * .735);
  height: calc(var(--s) * .721);
  transform: translate(-50%, -50%) rotate(148.78deg);
}
.star__halo {
  width: calc(var(--s) * 1.211);
  height: calc(var(--s) * 1.198);
  transform: translate(-50%, -50%) rotate(148.78deg);
}
.star--2 { --cx: 1000.5px; --cy: 59.6px; --s: 38.2px; animation-delay: -1.1s; }
.star--3 { --cx: 1142.4px; --cy: 626px; --s: 34.6px; animation-delay: -2.2s; }

/* ---------- headline ---------- */

.headline {
  left: 52px;
  top: 52px;
  z-index: 13;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 435px;
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: calc(40px * var(--hs, 1));
  line-height: normal;
  text-transform: uppercase;
  animation: l21-rise .7s cubic-bezier(.2, .8, .2, 1) backwards;
}
.headline__line {
  display: block;
  text-wrap: balance;
  animation: l21-rise .6s cubic-bezier(.2, .8, .2, 1) backwards;
}
.headline__line:first-child { max-width: 392px; animation-delay: .05s; }
.headline__line:last-child { animation-delay: .35s; }
.headline__prize-wrap {
  position: relative;
  display: block;
  width: max-content;
}
.headline__prize-glow {
  position: absolute;
  left: 0;
  top: 0;
  font-style: normal;
  font-size: calc(56px * var(--hs, 1));
  font-weight: 800;
  line-height: normal;
  white-space: nowrap;
  color: #ff8a00;
  filter: blur(9px);
  opacity: 0;
  animation: l21-glow-text 2.6s 1s ease-in-out infinite;
}
.headline__prize-stroke {
  position: absolute;
  left: 0;
  top: 0;
  font-style: normal;
  font-size: calc(56px * var(--hs, 1));
  font-weight: 800;
  line-height: normal;
  white-space: nowrap;
  color: #c50000;
  -webkit-text-stroke: 3.58px #c50000;
}
.headline__prize {
  position: relative;
  display: block;
  width: max-content;
  font-size: calc(56px * var(--hs, 1));
  font-weight: 800;
  line-height: normal;
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 204, 72, .5) 0%, rgba(255, 204, 72, 0) 22%),
    linear-gradient(180deg, #ffff2b 0%, #ff7903 85%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- wheel ---------- */

.wheel {
  --glow: 0;
  left: 451.1px;
  top: 73.15px;
  width: 539.54px;
  height: 542.57px;
  z-index: 8;
  pointer-events: auto;
}

.wheel__layer {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
}
.wheel__ring { left: 1.272%; top: 1.718%; width: 97.46%; height: 97.02%; }
.wheel__lights-off { left: 2.54%; top: 3.016%; width: 94.93%; height: 94.43%; }
.wheel__lights-on {
  left: 0;
  top: 1.046%;
  width: 100%;
  height: 98.72%;
  -webkit-mask-image: conic-gradient(from 0deg at 50% 50%, #000 0deg, #000 95deg, rgba(0, 0, 0, .5) 150deg, rgba(0, 0, 0, .5) 360deg);
  mask-image: conic-gradient(from 0deg at 50% 50%, #000 0deg, #000 95deg, rgba(0, 0, 0, .5) 150deg, rgba(0, 0, 0, .5) 360deg);
  animation: l21-turn 7s linear infinite;
  will-change: transform;
}
.wheel__lights-on img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  animation: l21-turn 7s linear infinite reverse;
  will-change: transform;
}
.wheel__flares {
  left: .691%;
  top: 1.58%;
  width: 80.98%;
  height: 80.26%;
  animation: l21-twinkle 2.4s ease-in-out infinite;
}

.wheel__spinner {
  position: absolute;
  inset: 0;
  transform-origin: 50.09% 50%;
  will-change: transform;
}
.wheel__sectors { left: 3.065%; top: 3.312%; width: 93.99%; height: 93.71%; }
.wheel__labels { left: 11.07%; top: 11.9%; width: 76.6%; height: 77.35%; }
.wheel__labels > img { display: block; width: 100%; height: 100%; max-width: none; }

.gem-spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  background:
    radial-gradient(circle, #fff 0 14%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0, #fff 50%, rgba(255, 255, 255, 0) 100%) center / 100% 2px no-repeat,
    linear-gradient(0deg, rgba(255, 255, 255, 0) 0, #fff 50%, rgba(255, 255, 255, 0) 100%) center / 2px 100% no-repeat;
  opacity: 0;
  animation: l21-gem 4.2s var(--d) ease-in-out infinite;
}

.wheel__pointer {
  left: 44.62%;
  top: 0;
  width: 10.28%;
  height: 13.75%;
  z-index: 3;
  transform-origin: 50% 0;
}
.wheel__pointer.tick { animation: l21-tick .16s ease-out; }

.wheel__button {
  position: absolute;
  left: 33.64%;
  top: 31.41%;
  width: 32.56%;
  height: 37.36%;
  z-index: 4;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
  outline: none;
  animation: l21-pulse 1.5s ease-in-out infinite;
  transition: filter .2s ease;
}
.wheel__button::before {
  content: '';
  position: absolute;
  inset: -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 255, 90, .85) 38%, rgba(120, 255, 90, 0) 70%);
  opacity: .3;
  animation: l21-glow 1.5s ease-in-out infinite;
}
.wheel__button img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
.wheel__button:hover { filter: brightness(1.12) drop-shadow(0 0 10px rgba(120, 255, 90, .65)); }
.wheel__button:active { transform: scale(.97); animation-play-state: paused; }
.wheel__button:focus-visible { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 8px #ffe921); }

.wheel__button-text {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 33%;
  bottom: 30%;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}
.wheel__button-text b,
.wheel__button-text small {
  display: block;
  color: #fff;
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  -webkit-text-stroke: 3px #063b0a;
  paint-order: stroke fill;
}
.wheel__button-text b { font-size: 33px; }
.wheel__button-text small { font-size: 22px; line-height: 1.1; }
.wheel__button-busy { display: none; }
.wheel__button-busy b { font-size: 15px; -webkit-text-stroke-width: 2px; opacity: .85; }
.wheel__button-idle { display: block; }

.is-spinning .wheel__button::before,
.is-win .wheel__button::before { animation: none; opacity: 0; }
.is-spinning .wheel__button,
.is-win .wheel__button {
  animation: none;
  filter: brightness(.6) saturate(.8);
  cursor: default;
  pointer-events: none;
}
.is-spinning .wheel__button-idle,
.is-win .wheel__button-idle { display: none; }
.is-spinning .wheel__button-busy,
.is-win .wheel__button-busy { display: block; }

.wheel__flash {
  position: absolute;
  inset: -4%;
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 200, .95) 0%, rgba(255, 231, 120, .55) 45%, rgba(255, 231, 120, 0) 72%);
  opacity: 0;
  pointer-events: none;
}
.is-flash .wheel__flash { animation: l21-flash .55s ease-out; }
.is-flash .wheel__lights-on { animation-play-state: paused; -webkit-mask-image: none; mask-image: none; }

/* ---------- dimmed scene while the wheel spins ---------- */

.art--crown,
.art--bottles,
.art--hats,
.art--ball,
.joker,
.art--game,
.art--gem,
.art--money,
.headline,
.star,
.backdrop {
  transition: filter .4s ease;
  will-change: filter;
}
.is-spinning .art--crown,
.is-spinning .art--bottles,
.is-spinning .art--hats,
.is-spinning .art--ball,
.is-spinning .joker,
.is-spinning .art--game,
.is-spinning .art--gem,
.is-spinning .headline,
.is-spinning .star {
  filter: brightness(.38) saturate(.85);
}
.is-spinning .art--money { filter: saturate(.3) brightness(.5); }
.is-spinning .wheel,
.is-win .wheel { z-index: 21; }
.is-spinning .orbit,
.is-win .orbit { z-index: 20; }
.is-spinning .backdrop { filter: brightness(.4); }
.art--fade,
.art--haze { transition: opacity .4s ease; }
.is-spinning .art--fade,
.is-spinning .art--haze { opacity: .3; }

/* ---------- cactus pill ---------- */

.pill {
  position: absolute;
  left: 590px;
  top: 668px;
  z-index: 15;
  width: 260.17px;
  height: 80px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 100px;
  background: #009e4e;
  transition: left .4s ease, top .4s ease, width .4s ease, height .4s ease;
}
.pill img {
  display: block;
  width: 187.07px;
  height: 41.5px;
  max-width: none;
  transition: width .4s ease, height .4s ease;
}
.pill::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -40%;
  width: 28%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
  transform: skewX(-20deg) translateX(0);
  animation: l21-sweep 7s ease-in-out infinite;
}

/* ---------- win modal ---------- */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.is-win .overlay { opacity: 1; visibility: visible; }

.win {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}
.is-win .win { visibility: visible; }

.win__joker {
  left: 580px;
  top: 49px;
  width: 302.3px;
  height: 357px;
  z-index: 1;
  overflow: hidden;
  animation: none;
}
.win__joker img {
  position: absolute;
  left: 0;
  top: -17.39%;
  display: block;
  width: 100%;
  height: 151.72%;
  max-width: none;
}

.win__card {
  left: 543px;
  top: 261px;
  width: 359px;
  height: 241px;
  z-index: 2;
  overflow: hidden;
  border-radius: 16px;
  filter: drop-shadow(0 0 27px #a6002f);
}
.win__card-bg {
  position: absolute;
  inset: 0;
  background: #33006b url("/img/landing-21/win-card.webp?v=4") center / cover no-repeat;
  border-radius: 16px;
  box-shadow: inset 0 2.1px 5.27px rgba(252, 141, 11, .8);
}

.win__logo {
  display: none;
  left: 14.25px;
  top: 328.26px;
  width: 347.48px;
  height: 161.63px;
  object-fit: cover;
  z-index: 3;
}

.win__confetti {
  z-index: 4;
  display: block;
  max-width: none;
  width: 195.9px;
  height: 218.93px;
}
.win__confetti--a { left: 446.7px; top: 275.3px; rotate: -80.84deg; }
.win__confetti--b { left: 799.85px; top: 306.1px; width: 193.29px; height: 216.02px; rotate: 52.19deg; }

.win__title {
  white-space: nowrap;
  left: 554px;
  top: 283px;
  z-index: 5;
  width: 338px;
  margin: 0;
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  line-height: normal;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, #ffff2b 0%, #ff7903 85%);
  -webkit-background-clip: text;
  background-clip: text;
}

.win__prize {
  left: 568px;
  top: 336px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 310px;
  margin: 0;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 4.1px 4.1px rgba(0, 0, 0, .5);
}
.win__percent,
.win__spins { display: block; font-size: 60px; line-height: 1; white-space: nowrap; }
.win__spins small { font-size: 40px; }

.claim {
  left: 606.9px;
  top: 473px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 231.75px;
  height: 55.5px;
  padding: 10.5px 31.5px;
  border: 1.5px solid #ffe921;
  border-radius: 50px;
  background: linear-gradient(180deg, #fff948 29.288%, #009e4e 54.981%);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  filter: drop-shadow(0 3px 6px #37f27d);
  pointer-events: auto;
  transition: filter .2s ease, background .2s ease;
}
.claim::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 22%;
  bottom: 22%;
  z-index: -1;
  border-radius: 50%;
  background: #fff;
  filter: blur(12px);
  opacity: .55;
  animation: l21-glow 1.5s ease-in-out infinite;
}
.claim span { position: relative; display: block; }
.claim:hover,
.claim:focus-visible {
  border-color: #ffe708;
  background: linear-gradient(180deg, #d9d100 29.288%, #007238 54.981%);
  filter: drop-shadow(0 3px 12px #37f27d) drop-shadow(0 0 13px #8a38f5);
  outline: none;
}

.is-win .win__card { animation: l21-pop .4s .1s cubic-bezier(.3, 1.4, .5, 1) both; }
.is-win .win__joker { animation: l21-drop .45s .25s cubic-bezier(.3, 1.3, .5, 1) both; }
.is-win .win__joker img { animation: l21-float 3.6s .8s ease-in-out infinite; }
.is-win .win__logo { animation: l21-logo .5s .45s ease-out both, l21-glint 1.1s .6s ease-in-out 1; }
.is-win .win__title { animation: l21-fade .35s .55s ease-out both; }
.is-win .win__prize { animation: l21-fade .35s .65s ease-out both; }
.is-win .claim { animation: l21-pop .4s .95s cubic-bezier(.3, 1.4, .5, 1) both; }
.is-win .claim::before { animation-delay: 1.4s; }
.is-win .win__confetti--a { animation: l21-burst-a .7s .12s ease-out both, l21-drift 7s .9s ease-in-out infinite; }
.is-win .win__confetti--b { animation: l21-burst-b .7s .12s ease-out both, l21-drift 8s .9s ease-in-out infinite reverse; }

/* ---------- language switcher ---------- */

.lm-lang {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
}
.lm-lang__current,
.lm-lang__flag {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.lm-lang__current {
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.lm-lang__options {
  position: absolute;
  top: 42px;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 8px;
  max-height: calc(100vh - 80px);
  overflow: auto;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: rgba(20, 4, 40, .85);
  border: 1px solid rgba(255, 207, 4, .5);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  backdrop-filter: blur(10px);
}
.lm-lang:hover .lm-lang__options,
.lm-lang:focus-within .lm-lang__options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lm-lang a {
  display: block;
  border-radius: 50%;
  opacity: .76;
}
.lm-lang a.active,
.lm-lang a:hover,
.lm-lang a:focus-visible {
  opacity: 1;
  outline: 2px solid #ffcf04;
  outline-offset: 2px;
}

/* ---------- animations ---------- */

@keyframes l21-flash {
  0% { opacity: 0; transform: scale(.85); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}
@keyframes l21-swing {
  0%, 100% { rotate: -5deg; }
  50% { rotate: 5deg; }
}
@keyframes l21-turn { to { transform: rotate(360deg); } }
@keyframes l21-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes l21-breathe {
  0%, 100% { translate: 0 -3px; }
  50% { translate: 0 3px; }
}
@keyframes l21-glow-text {
  0%, 100% { opacity: 0; }
  50% { opacity: .75; }
}
@keyframes l21-glow {
  0%, 100% { opacity: .35; }
  50% { opacity: .75; }
}
@keyframes l21-twinkle {
  0%, 100% { opacity: .7; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes l21-gem {
  0%, 70%, 100% { opacity: 0; transform: scale(.4); }
  80% { opacity: 1; transform: scale(1); }
  90% { opacity: 0; transform: scale(.6); }
}
@keyframes l21-tick {
  0% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(3px) rotate(-5deg); }
  100% { transform: translateY(0) rotate(0); }
}
@keyframes l21-float {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}
@keyframes l21-rise {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes l21-sweep {
  0%, 78% { transform: skewX(-20deg) translateX(0); opacity: 0; }
  80% { opacity: 1; }
  98%, 100% { transform: skewX(-20deg) translateX(520%); opacity: 0; }
}
@keyframes l21-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes l21-pop {
  0% { opacity: 0; transform: scale(.7); }
  70% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes l21-drop {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: none; }
}
@keyframes l21-logo {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: none; }
}
@keyframes l21-glint {
  0%, 100% { filter: brightness(1); }
  45% { filter: brightness(1.7) saturate(1.2); }
}
@keyframes l21-burst-a {
  from { opacity: 0; translate: 90px 20px; scale: .3; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes l21-burst-b {
  from { opacity: 0; translate: -90px 20px; scale: .3; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes l21-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 8px; }
}

/* ---------- mobile (portrait, 375x800 design) ---------- */

@media (max-aspect-ratio: 1/1) {
  .stage {
    width: 375px;
    margin-left: -187.5px;
  }

  .backdrop { filter: brightness(.9); }

  .art--money,
  .art--aura,
  .art--shade,
  .star--2,
  .star--3 { display: none; }
  .art--aura-logo { display: block; left: -93px; top: 464px; width: 573px; height: 391px; z-index: 11; }

  .art--crown { left: -64.09px; top: 664.27px; width: 163.76px; height: 135.9px; rotate: -22.72deg; }
  .art--bottles { left: 246.7px; top: 649.56px; width: 177.32px; height: 175.42px; rotate: -28.66deg; }
  .art--hats { left: -22.78px; top: 698.95px; width: 184.34px; height: 155.3px; rotate: 3.81deg; scale: 1; }
  .art--fade-1 { left: -1200px; top: 588px; height: 219.5px; width: 2775px; }
  .art--fade-2 {
    left: -1200px;
    top: 559px;
    height: 300px;
    width: 2775px;
    z-index: 6;
    background: linear-gradient(0deg, #2c004f 0%, rgba(44, 0, 79, 0) 100%);
  }
  .art--fade-2::after { background: #2c004f; }
  .art--haze { left: 8.23px; top: 520.1px; width: 322.96px; height: 379.41px; }

  .art--ball { left: -13px; top: 594px; width: 47.57px; height: 40px; rotate: 0deg; }
  .art--ball img { border-top-left-radius: 0; }
  .art--ball { filter: blur(1px); }
  .art--crown,
  .art--bottles,
  .art--hats { filter: blur(1.5px); }

  .star--1 { --cx: 16.6px; --cy: 226.9px; --s: 109px; }

  .orbit { --ox: 187.5px; --oy: 402px; }
  .art--light { left: -30.47px; top: 188.18px; width: 416.6px; height: 405.33px; }
  .art--light-2 { left: -7.67px; top: 201.5px; }

  .stage--scene::before {
    content: '';
    position: absolute;
    left: -1200px;
    top: -3000px;
    width: 2775px;
    height: 3230px;
    z-index: 9;
    background: linear-gradient(180deg, #2c004f 3000px, rgba(44, 0, 79, 0) 3230px);
  }

  .wheel { left: 9.5px; top: 223px; width: 356px; height: 358px; }
  .wheel__button-text b { font-size: 21.7px; -webkit-text-stroke-width: 2px; }
  .wheel__button-text small { font-size: 14.5px; -webkit-text-stroke-width: 2px; }
  .wheel__button-busy b { font-size: 10px; -webkit-text-stroke-width: 1.5px; }
  .gem-spark { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; }

  .art--joker {
    --px: 2.118%;
    --py: 1.182%;
    left: 106.6px;
    top: -18.1px;
    width: 421.6px;
    height: 755.41px;
    transform: rotate(9.97deg);
  }
  .bells--d { display: none; }
  .bells--m { display: block; }
  .joker__layer--sharp .joker__mask {
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 510.9px, transparent 697.9px);
    mask-image: linear-gradient(180deg, #000 0, #000 510.9px, transparent 697.9px);
  }
  .joker__layer--soft { display: block; filter: blur(5px); }
  .joker__layer--soft .joker__mask {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 510.9px, #000 697.9px);
    mask-image: linear-gradient(180deg, transparent 0, transparent 510.9px, #000 697.9px);
  }
  .joker__tint {
    position: absolute;
    left: 78.7px;
    top: 505.7px;
    display: block;
    width: 272px;
    height: 262.39px;
    background: linear-gradient(180deg, rgba(76, 10, 122, 0), #4c0a7a);
    -webkit-mask-image: url("/img/landing-21/m-joker-mask.webp?v=4");
    mask-image: url("/img/landing-21/m-joker-mask.webp?v=4");
    -webkit-mask-size: 421.6px 755.41px;
    mask-size: 421.6px 755.41px;
    -webkit-mask-position: -78.7px -505.7px;
    mask-position: -78.7px -505.7px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .art--game { left: 35.56px; top: 528px; width: 303.86px; height: 165px; z-index: 12; }

  .art--gem { left: 184.5px; top: -14.9px; width: 46.71px; height: 42.83px; rotate: -25.61deg; z-index: 8; }
  .art--gem img { border-radius: 0 0 21.74px 28.98px; }

  .headline {
    left: 21px;
    top: 35px;
    width: 339px;
    gap: 0;
    font-size: calc(26px * var(--hs, 1));
    z-index: 13;
  }
  .headline__line:first-child { max-width: 300px; }
  .headline__prize-stroke { display: none; }
  .headline__prize {
    font-size: calc(30px * var(--hs, 1));
    background: linear-gradient(178.87deg, #ffcf04 35.5%, #ff8b20 97.6%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .pill { left: 122px; top: 740px; width: 130.09px; height: 40px; }
  .pill img { width: 93.53px; height: 20.75px; }
  .is-win .pill { left: 90px; top: 36px; width: 195.13px; height: 60px; }
  .is-win .pill img { width: 140.3px; height: 31.13px; }

  .overlay {
    background: rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .win__joker { left: 36.6px; top: 121.26px; }
  .win__card { left: 8.25px; top: 379.26px; width: 359px; height: 330px; }
  .win__logo { display: block; }
  .win__title { left: 19.25px; top: 482.2px; }
  .win__prize { left: 33.25px; top: 543.3px; }
  .claim { left: 72.25px; top: 680.3px; }
  .win__confetti--a {
    left: 249.9px;
    top: 496.3px;
    width: 205.36px;
    height: 229.5px;
    rotate: -99.16deg;
    scale: 1 -1;
  }
  .win__confetti--b {
    left: -77.4px;
    top: 525.4px;
    width: 189.7px;
    height: 212px;
    rotate: 126.05deg;
    scale: 1 -1;
  }
  @keyframes l21-burst-a {
    from { opacity: 0; translate: 40px 20px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes l21-burst-b {
    from { opacity: 0; translate: -40px 20px; }
    to { opacity: 1; translate: 0 0; }
  }

  .lm-lang { top: 12px; right: 12px; }
  .lm-lang__options { grid-template-columns: repeat(2, 34px); }
}

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