:root {
  --lottobot-blue: #3dbbed;
  --footer-bg: #111;
  --footer-text: #fff;
}

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

html {
  background: var(--lottobot-blue);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--footer-text);
  background: var(--lottobot-blue);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body.has-open-modal {
  overflow: hidden;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

.site {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--lottobot-blue);
  isolation: isolate;
}

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 925px;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 0.667));
  transform-origin: center;
}

.layer {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.starburst {
  top: -57px;
  left: 465px;
  width: 1200px;
  height: 998px;
  opacity: 0.58;
  mix-blend-mode: screen;
  animation: burstIn 950ms cubic-bezier(.2, .8, .2, 1) both, breathe 6800ms ease-in-out 950ms infinite;
}

.bot {
  top: 252px;
  left: 621px;
  width: 602px;
  height: 461px;
  animation: botIn 820ms cubic-bezier(.2, .8, .18, 1) 160ms both, botFloat 5400ms ease-in-out 1200ms infinite;
}

.ball {
  --enter-x: 0px;
  --enter-y: -260px;
  --enter-rotate: -34deg;
  --float-x: 0px;
  --float-y: -10px;
  --float-rotate: 4deg;
  animation:
    ballDrop 820ms cubic-bezier(.14, .82, .18, 1) var(--delay, 120ms) both,
    ballDrift var(--float-duration, 5200ms) ease-in-out calc(var(--delay, 120ms) + 900ms) infinite;
}

.ball-29 {
  top: 53px;
  left: 354px;
  width: 111px;
  height: 104px;
  --delay: 200ms;
  --float-x: 8px;
  --float-y: -13px;
}

.ball-38 {
  top: 573px;
  left: 152px;
  width: 58px;
  height: 55px;
  --delay: 200ms;
  --float-x: -6px;
  --float-y: 10px;
  --float-duration: 4700ms;
}

.ball-44 {
  top: 208px;
  left: 52px;
  width: 160px;
  height: 159px;
  --delay: 200ms;
  --float-x: -10px;
  --float-y: -8px;
  --float-rotate: -6deg;
}

.ball-52 {
  top: 88px;
  left: 1259px;
  width: 72px;
  height: 75px;
  --delay: 350ms;
  --float-x: 10px;
  --float-y: 12px;
}

.ball-31 {
  top: 798px;
  left: 990px;
  width: 128px;
  height: 109px;
  --delay: 50ms;
  --float-x: 13px;
  --float-y: -9px;
  --float-duration: 5900ms;
}

.ball-30 {
  top: 319px;
  left: 85px;
  width: 98px;
  height: 98px;
  --delay: 300ms;
  --float-x: 6px;
  --float-y: 13px;
}

.ball-8 {
  top: 750px;
  left: 1426px;
  width: 70px;
  height: 72px;
  --delay: 50ms;
  --float-x: -8px;
  --float-y: -12px;
}

.ball-12 {
  top: 829px;
  left: 182px;
  width: 61px;
  height: 60px;
  --delay: 200ms;
  --float-x: -8px;
  --float-y: -10px;
}

.ball-14 {
  top: 789px;
  left: 25px;
  width: 121px;
  height: 119px;
  --delay: 150ms;
  --float-x: 12px;
  --float-y: 8px;
  --float-rotate: -5deg;
}

.ball-15 {
  top: 334px;
  left: 1714px;
  width: 50px;
  height: 54px;
  --delay: 300ms;
  --float-x: 7px;
  --float-y: -12px;
}

.ball-20 {
  top: 256px;
  left: 1370px;
  width: 60px;
  height: 53px;
  --delay: 100ms;
  --float-x: -11px;
  --float-y: 8px;
}

.ball-21 {
  top: 679px;
  left: 1788px;
  width: 109px;
  height: 103px;
  --delay: 350ms;
  --float-x: -10px;
  --float-y: -11px;
}

.ball-2 {
  top: 69px;
  left: 1767px;
  width: 143px;
  height: 145px;
  --delay: 100ms;
  --float-x: 9px;
  --float-y: 11px;
  --float-rotate: -5deg;
}

.ball-1-2 {
  top: 361px;
  left: 1345px;
  width: 49px;
  height: 48px;
  --delay: 300ms;
  --enter-x: -220px;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 13px;
  line-height: 1.5;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1150px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  gap: 28px;
}

.legal,
.social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer a,
.footer-link {
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  text-decoration: none;
  opacity: 0.82;
  cursor: pointer;
  transition: opacity 160ms ease, color 160ms ease;
}

.footer a:hover,
.footer a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--lottobot-blue);
  opacity: 1;
}

.footer a:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid rgba(61, 187, 237, 0.9);
  outline-offset: 3px;
}

.social {
  gap: 10px;
}

.social a {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.86);
}

.social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.social a[aria-label="Facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.legal-modal {
  width: min(920px, calc(100vw - 36px));
  max-height: min(82vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #1a1d23;
  background: transparent;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.legal-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(82vh, 900px);
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #e4e8ee;
  background: #f8fafc;
}

.modal-header h2 {
  margin: 0;
  color: #10141a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.modal-close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d9dee7;
  border-radius: 50%;
  color: #27303d;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--lottobot-blue);
  color: #0780b1;
  transform: scale(1.04);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.modal-content {
  overflow-y: auto;
  padding: 28px 34px 36px;
}

.legal-copy {
  font-size: 15px;
  line-height: 1.72;
}

.legal-copy h2,
.legal-copy h3 {
  color: #10141a;
  line-height: 1.25;
}

.legal-copy h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.legal-copy h3 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.legal-copy p {
  margin: 0 0 14px;
}

.legal-copy a {
  color: #0780b1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes burstIn {
  from {
    opacity: 0;
    transform: scale(.86) rotate(-1deg);
  }

  to {
    opacity: .58;
    transform: scale(1) rotate(0);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

@keyframes botIn {
  from {
    opacity: 0;
    transform: translate3d(0, 46px, 0) scale(.92);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes botFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -13px, 0) rotate(.7deg);
  }
}

@keyframes ballDrop {
  from {
    opacity: 0;
    transform: translate3d(var(--enter-x), var(--enter-y), 0) rotate(var(--enter-rotate)) scale(.88);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes ballDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(var(--float-x), var(--float-y), 0) rotate(var(--float-rotate));
  }
}

@media (max-width: 760px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    width: min(100% - 32px, 520px);
    min-height: 112px;
    gap: 14px;
    padding: 20px 0;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-content {
    padding: 22px 20px 28px;
  }

  .legal-copy {
    font-size: 14px;
  }
}

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