:root {
  --page-max: 750px;
  --bg: #061d15;
  --glow: rgba(43, 238, 116, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 50% 18%, rgba(41, 230, 112, 0.16), transparent 34rem),
    linear-gradient(120deg, #041710, #0b2b1f 45%, #041710);
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.poster {
  position: relative;
  width: min(100%, var(--page-max));
  min-height: 100vh;
  overflow: hidden;
  background: #062519;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
}

.poster__image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  display: block;
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:focus-visible {
  outline: 3px solid #5cff80;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px var(--glow);
}

.hotspot:active {
  transform: scale(0.985);
}

.live-stream {
  left: 22%;
  top: 43%;
  width: 56%;
  height: 6%;
  border-radius: 999px;
}

.allbet-agent,
.allbet-player,
.crown-agent,
.crown-player {
  width: 46.1%;
  height: 9.7%;
  border-radius: 18px;
}

.allbet-agent::before,
.allbet-player::before,
.crown-agent::before,
.crown-player::before {
  content: "";
  position: absolute;
  left: 5.2%;
  bottom: 7%;
  width: 54%;
  height: 33%;
  border-radius: 4px;
  background: linear-gradient(90deg, #123827 0%, #123827 72%, rgba(18, 56, 39, 0));
}

.allbet-agent::after,
.allbet-player::after,
.crown-agent::after,
.crown-player::after {
  content: attr(data-label);
  position: absolute;
  left: 6.5%;
  bottom: 8.5%;
  color: #fff;
  font-size: clamp(24px, 5.9vw, 45px);
  font-weight: 900;
  line-height: 36px;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), 0 0 8px rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.allbet-agent {
  left: 2.7%;
  top: 50.4%;
}

.allbet-player {
  left: 51.3%;
  top: 50.4%;
}

.crown-agent {
  left: 2.7%;
  top: 61.3%;
}

.crown-player {
  left: 51.3%;
  top: 61.3%;
}

.contact {
  left: 2.7%;
  width: 94.6%;
  height: 5.1%;
  border-radius: 20px;
}

.telegram {
  top: 77.5%;
}

.whatsapp {
  top: 83.1%;
}

.wechat {
  top: 88.8%;
}

.contact-id {
  position: absolute;
  left: 66.8%;
  width: 21.4%;
  height: clamp(46px, 8.8vw, 66px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: rgba(244, 246, 250, 0.5);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(16px, 3.8vw, 28px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  padding-left: 10px;
  background: #0e3020;
  transform: translateY(-50%);
}

.contact-id::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -88px;
  top: -18px;
  bottom: -18px;
  z-index: -1;
  background: #0e3020;
}

.contact-id::after {
  content: "";
  position: absolute;
  right: -58px;
  top: 50%;
  width: clamp(34px, 6.6vw, 50px);
  height: clamp(34px, 6.6vw, 50px);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 40%, #0e3020 40% 56%, transparent 56%) 50% 40% / 36% 36% no-repeat,
    linear-gradient(-45deg, transparent 40%, #0e3020 40% 56%, transparent 56%) 50% 60% / 36% 36% no-repeat,
    #fff;
  transform: translateY(-50%);
}

.telegram-id {
  top: 79.98%;
}

.whatsapp-id {
  top: 85.67%;
}

.wechat-id {
  top: 91.35%;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.qr-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
}

.qr-modal__panel {
  position: relative;
  z-index: 1;
  width: min(62.667vw, 470px);
  aspect-ratio: 520 / 559;
  border-radius: min(5.333vw, 40px);
  background: rgba(9, 25, 17, 0.9);
}

.qr-modal__close {
  position: absolute;
  right: 4.6%;
  top: 3.1%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: min(5.867vw, 44px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.qr-modal__close img {
  display: block;
  width: min(2.8vw, 21px);
  height: auto;
  pointer-events: none;
}

.qr-modal__close:active {
  transform: scale(0.96);
}

.qr-modal__top {
  position: absolute;
  left: 25.577%;
  top: 10.197%;
  display: block;
  width: 47.692%;
  height: auto;
  z-index: 2;
}

.qr-modal__scan {
  position: absolute;
  left: 36.35%;
  top: 87.3%;
  display: block;
  width: 27.31%;
  height: auto;
  z-index: 2;
}

.qr-modal__image {
  position: absolute;
  left: 17.692%;
  top: 25.224%;
  display: block;
  width: 63.462%;
  aspect-ratio: 1;
  border-radius: 12.121%;
  background: #fff;
  object-fit: contain;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 10;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border-radius: 999px;
  color: #062519;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  background: #54ff82;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 900px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("./assets/main-poster.svg") center top / auto 100% no-repeat;
    filter: blur(24px);
    opacity: 0.24;
    transform: scale(1.08);
  }

  .poster {
    margin: 28px 0;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .poster {
    width: 100%;
  }

  .allbet-agent,
  .allbet-player,
  .crown-agent,
  .crown-player {
    border-radius: 12px;
  }

  .contact {
    border-radius: 14px;
  }
}
