:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #020817;
}

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

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #020817;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  user-select: none;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
}

.landing {
  position: relative;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.landing::after {
  position: absolute;
  z-index: 0;
  bottom: -12%;
  left: 50%;
  width: min(94vw, 1500px);
  height: clamp(130px, 26vh, 300px);
  content: "";
  background:
    radial-gradient(ellipse at 42% 100%, rgba(0, 132, 255, 0.24) 0%, rgba(0, 105, 255, 0.1) 30%, transparent 68%),
    radial-gradient(ellipse at 60% 100%, rgba(174, 48, 255, 0.22) 0%, rgba(119, 37, 255, 0.09) 32%, transparent 70%);
  filter: blur(18px);
  opacity: 0.5;
  transform: translateX(-50%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.landing__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.landing__background--desktop img,
.landing__background--mobile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing__background--mobile {
  display: none;
  border: 0;
  background: #020817;
  filter: brightness(0.35);
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(84px, 11vh, 120px) 20px clamp(28px, 4vh, 48px);
}

.art-layer {
  position: relative;
  flex: 0 0 auto;
}

.title-row {
  display: contents;
}

.art-layer > img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.art-layer--logo {
  width: min(26vw, 325px);
  aspect-ratio: 3.6 / 1;
}

.art-layer--casino {
  width: min(21vw, 260px);
  aspect-ratio: 5.8 / 1;
  margin-top: clamp(46px, 5vh, 56px);
}

.art-layer--subtitle {
  width: min(22vw, 280px);
  aspect-ratio: 7.4 / 1;
  margin-top: clamp(8px, 1vh, 12px);
}

.casino-text {
  display: none;
}

.action {
  display: block;
  border: 0;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.action:focus-visible {
  border-radius: 22px;
  outline: 3px solid #fff4b1;
  outline-offset: -3px;
}

.action > img {
  transition: filter 160ms ease, transform 160ms ease;
}

@media (hover: hover) {
  .action:hover > img {
    filter: brightness(1.11);
    transform: translate(-50%, -50%) scale(1.018);
  }
}

.action:active > img {
  filter: brightness(0.94);
  transform: translate(-50%, -50%) scale(0.986);
}

.art-layer--cta {
  width: min(34vw, 430px);
  aspect-ratio: 5.5 / 1;
  margin-top: calc(clamp(12px, 1.5vh, 18px) + 250px);
}

.action-grid {
  --action-gap: clamp(6px, 0.5vw, 10px);
  --column-pull: clamp(16px, 1.9vw, 26px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--action-gap);
  row-gap: clamp(12px, 1.6vh, 18px);
  width: min(42vw, 530px);
  margin-top: clamp(24px, 3vh, 36px);
}

.action-grid .action:nth-child(odd) {
  transform: translateX(var(--column-pull));
}

.action-grid .action:nth-child(even) {
  transform: translateX(calc(0px - var(--column-pull)));
}

.art-layer--action {
  width: 100%;
  aspect-ratio: 5.4 / 1;
}

.action-grid .action[data-link="telegram"] > img,
.action-grid .action[data-link="app"] > img {
  width: 92%;
}

.action-grid .action[data-link="chat"] > img {
  width: 82%;
}

.art-layer--divider {
  width: min(32vw, 405px);
  aspect-ratio: 13 / 1;
  margin-top: clamp(9px, 1.1vh, 14px);
}

.selling-points {
  position: absolute;
  bottom: clamp(118px, 13vh, 150px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(68vw, 1120px);
  color: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.selling-points__text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.9vw, 12px);
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(10px, 0.92vw, 12px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.15px;
  white-space: nowrap;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95);
}

.selling-points__text i {
  color: #efb72d;
  font-style: normal;
  text-shadow: 0 0 7px rgba(255, 183, 34, 0.48);
}

.selling-points__light {
  position: relative;
  width: min(39vw, 495px);
  height: clamp(28px, 3.4vw, 52px);
  margin-top: clamp(3px, 0.45vh, 6px);
  overflow: hidden;
}

.selling-points__light img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.trust-strip {
  position: absolute;
  bottom: clamp(48px, 5.5vh, 64px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(62vw, 780px);
  color: #fff;
  transform: translateX(-50%);
}

.trust-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 clamp(12px, 1.6vw, 26px);
}

.trust-item + .trust-item::before {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(93, 118, 163, 0.52);
}

.trust-icon {
  flex: 0 0 auto;
  width: clamp(30px, 3.35vw, 42px);
  height: auto;
  margin-right: clamp(9px, 0.8vw, 14px);
  overflow: visible;
  fill: none;
  filter: drop-shadow(0 0 7px rgba(255, 181, 35, 0.35));
}

.trust-icon__fill {
  stroke: none;
}

.trust-icon__line {
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-icon__line--wide {
  stroke-width: 7;
}

.trust-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.08;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.trust-copy strong {
  font-size: clamp(12px, 1.3vw, 17px);
  font-weight: 800;
  letter-spacing: -0.25px;
}

.trust-copy small {
  margin-top: 6px;
  font-size: clamp(8px, 0.88vw, 11px);
  font-weight: 600;
  letter-spacing: -0.15px;
}

.action.is-unconfigured {
  cursor: pointer;
}

@media (orientation: landscape) and (min-width: 821px) {
  .art-layer--logo,
  .art-layer--casino,
  .art-layer--subtitle {
    transform: translateY(50px);
  }

}

/* Common 14/15/16-inch laptop viewports with reduced browser height. */
@media (orientation: landscape) and (min-width: 821px) and (max-height: 960px) {
  .hero {
    padding: clamp(52px, 7vh, 68px) 20px 28px;
  }

  .art-layer--casino {
    margin-top: clamp(32px, 4vh, 38px);
  }

  .art-layer--cta {
    margin-top: calc(clamp(8px, 1.2vh, 11px) + 150px);
  }

  .action-grid {
    --column-pull: clamp(24px, 2vw, 36px);
    margin-top: clamp(15px, 2vh, 19px);
    row-gap: clamp(8px, 1.1vh, 11px);
  }

  .art-layer--divider {
    margin-top: clamp(2px, 0.5vh, 5px);
  }

  .selling-points {
    bottom: clamp(108px, 13.5vh, 130px);
  }

  .trust-strip {
    bottom: clamp(34px, 4.5vh, 44px);
  }
}

/* Compact landscape desktops: keep the action area clear of the fixed footer. */
@media (orientation: landscape) and (min-width: 821px) and (max-height: 840px) {
  .hero {
    padding: clamp(28px, 4.8vh, 40px) 20px 24px;
  }

  .art-layer--casino {
    margin-top: clamp(24px, 3.4vh, 30px);
  }

  .art-layer--cta {
    margin-top: calc(clamp(5px, 1vh, 8px) + 100px);
  }

  .action-grid {
    --column-pull: clamp(22px, 2vw, 34px);
    margin-top: clamp(10px, 1.8vh, 15px);
    row-gap: clamp(5px, 1vh, 8px);
  }

  .art-layer--divider {
    margin-top: 0;
  }

  .selling-points {
    bottom: clamp(90px, 13.5vh, 108px);
  }

  .trust-strip {
    bottom: clamp(24px, 4vh, 34px);
  }
}

/* Very short desktop windows: remove large vertical offsets before they collide. */
@media (orientation: landscape) and (min-width: 821px) and (max-height: 680px) {
  .hero {
    padding: 18px 20px;
  }

  .art-layer--logo,
  .art-layer--casino,
  .art-layer--subtitle {
    transform: none;
  }

  .art-layer--casino {
    margin-top: clamp(12px, 2vh, 16px);
  }

  .art-layer--subtitle {
    margin-top: 4px;
  }

  .art-layer--cta {
    margin-top: clamp(4px, 1vh, 7px);
  }

  .action-grid {
    margin-top: clamp(6px, 1.2vh, 8px);
    row-gap: clamp(4px, 0.8vh, 6px);
  }

  .selling-points {
    bottom: clamp(78px, 13vh, 90px);
  }
}

/* Ultra-short PC windows scale the artwork instead of allowing vertical overlap. */
@media (orientation: landscape) and (min-width: 821px) and (max-height: 530px) {
  .art-layer--logo {
    width: min(24vw, 280px);
  }

  .art-layer--casino {
    width: min(20vw, 230px);
  }

  .art-layer--subtitle {
    width: min(21vw, 240px);
  }

  .art-layer--cta {
    width: min(30vw, 360px);
  }

  .action-grid {
    width: min(36vw, 430px);
  }

  .art-layer--divider {
    width: min(30vw, 340px);
  }
}

@media (orientation: landscape) and (min-width: 821px) and (max-height: 490px) {
  .selling-points {
    bottom: 68px;
  }
}

/* Narrow but tall desktop ratios need a little less center displacement. */
@media (orientation: landscape) and (min-width: 821px) and (max-width: 1365px) and (min-height: 961px) {
  .art-layer--cta {
    margin-top: calc(clamp(12px, 1.5vh, 18px) + 230px);
  }
}

@media (orientation: portrait), (max-width: 820px) {
  .landing::after {
    bottom: -1%;
    width: 120vw;
    height: clamp(180px, 32vh, 340px);
    background:
      radial-gradient(ellipse at 36% 100%, rgba(0, 145, 255, 0.52) 0%, rgba(0, 108, 255, 0.24) 34%, transparent 72%),
      radial-gradient(ellipse at 65% 100%, rgba(190, 48, 255, 0.48) 0%, rgba(128, 35, 255, 0.22) 36%, transparent 74%),
      radial-gradient(ellipse at 50% 96%, rgba(166, 218, 255, 0.18) 0%, transparent 46%);
    filter: blur(12px);
    opacity: 0.78;
  }

  .landing__background--desktop {
    display: none;
  }

  .landing__background--mobile {
    display: block;
  }

  .hero {
    --mobile-heading-lift: clamp(-80px, -8vh, -45px);
    --mobile-heading-extra-lift: clamp(26px, 3.5vh, 36px);
    --mobile-heading-down-offset: 10px;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding:
      max(40px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(40px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .art-layer--logo {
    width: min(70vw, 750px);
    aspect-ratio: 3.2 / 1;
    transform: translateY(calc(
      var(--mobile-heading-lift) - var(--mobile-heading-extra-lift) + var(--mobile-heading-down-offset)
    ));
  }

  .title-row {
    display: none;
  }

  .casino-text {
    display: block;
    width: auto;
    height: auto;
    margin: clamp(7px, 1.1vh, 13px) 0 0;
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(11px, 3.5vw, 28px);
    font-stretch: normal;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.015em;
    white-space: nowrap;
    transform: translate(
      clamp(-8px, -1vw, -3px),
      calc(var(--mobile-heading-lift) - var(--mobile-heading-extra-lift) + var(--mobile-heading-down-offset))
    );
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 8px rgba(79, 145, 255, 0.42);
  }

  .art-layer--cta {
    width: min(78vw, 840px);
    aspect-ratio: 4.7 / 1;
    margin-top: clamp(206px, 22vh, 224px);
  }

  .action-grid {
    --mobile-column-pull: clamp(15px, 3.4vw, 34px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    row-gap: clamp(14px, 1.8vh, 26px);
    width: min(90vw, 950px);
    margin-top: clamp(28px, 3vh, 44px);
  }

  .action-grid .action:nth-child(odd) {
    transform: translateX(var(--mobile-column-pull));
  }

  .action-grid .action:nth-child(even) {
    transform: translateX(calc(0px - var(--mobile-column-pull)));
  }

  .art-layer--action {
    aspect-ratio: 5.1 / 1;
  }

  .art-layer--divider {
    width: min(64vw, 690px);
    aspect-ratio: 11 / 1;
    margin-top: clamp(8px, 1.2vh, 22px);
  }

  .selling-points {
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 70px));
    width: min(96vw, 1020px);
  }

  .selling-points__text {
    display: none;
  }

  .selling-points__light {
    width: min(76vw, 760px);
    height: clamp(23px, 5vw, 48px);
    margin-top: 0;
  }

  .trust-strip {
    bottom: max(32px, calc(env(safe-area-inset-bottom) + 18px));
    width: min(96vw, 1020px);
  }

  .trust-item {
    padding: 0 clamp(5px, 1vw, 14px);
  }

  .trust-icon {
    width: clamp(27px, 5.2vw, 56px);
    margin-right: clamp(5px, 1vw, 11px);
  }

  .trust-copy strong {
    font-size: clamp(12px, 2.5vw, 27px);
  }

  .trust-copy small {
    margin-top: 4px;
    font-size: clamp(8px, 1.7vw, 18px);
  }
}

@media (orientation: portrait) and (max-height: 700px) {
  .hero {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .art-layer--logo {
    width: min(57vw, 285px);
  }

  .casino-text {
    margin-top: 4px;
    font-size: clamp(10px, 3.2vw, 16px);
  }

  .art-layer--cta {
    width: min(68vw, 340px);
    margin-top: 194px;
  }

  .action-grid {
    width: min(84vw, 420px);
    margin-top: 20px;
  }

  .art-layer--divider {
    margin-top: 2px;
  }

  .selling-points {
    bottom: 62px;
  }

  .selling-points__light {
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action > img {
    transition: none;
  }
}
