/* ============================================================
   8K | Tải App 8KBET — rebuilt from Figma "Main page ver 4"
   Design tokens taken from the Figma node tree (1545:2287).
   ============================================================ */

:root {
  --yellow: #f6d60a;
  --gold: #ffb736;
  --page-bg: #fffeff;
  --font: "Roboto", Arial, sans-serif;
  --font-sf:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page-bg);
  color: #fff;
  font-family: var(--font);
}

img {
  display: block;
}

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

a.cta-header,
a.m-cta,
a.dl-btn,
a.m-dl {
  text-decoration: none;
}

/* ---- guide video modal ---- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__dialog {
  position: relative;
  width: fit-content;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.video-modal__video {
  display: block;
  width: auto;
  max-width: min(1100px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.video-modal__close:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.page {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--page-bg);
}

/* ---------- shared bits ---------- */

.fit {
  position: absolute;
  display: block;
}

.fit img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.logo {
  position: relative;
  overflow: hidden;
}

.logo img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 244.1%;
  max-width: none;
  object-fit: cover;
}

/* ============================================================
   DESKTOP  (design frame 1920x1498, 1440 content, minus 78px
   browser-chrome mockup at the top of the artboard)
   ============================================================ */

.mobile {
  display: none;
}

.desktop {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow {
  position: absolute;
  inset: -24px;
  filter: blur(12.15px);
  pointer-events: none;
}

.glow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fitbox {
  position: relative;
  width: 1920px;
  height: 1420px;
  flex: none;
  transform: scale(var(--desk-scale, 1));
}

.stage {
  position: relative;
  width: 1440px;
  height: 1420px;
  margin: 0 auto;
}

/* ---- phones mockup ---- */

.phones {
  position: absolute;
  left: 178px;
  top: 277px;
  width: 1128px;
  height: 846px;
}

.phones-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phones-badge {
  position: absolute;
  left: 291px;
  top: 317px;
  width: 40px;
  height: 18px;
}

/* ---- header ---- */

.site-header {
  position: absolute;
  left: 0;
  top: 40px;
  width: 1440px;
  height: 116.789px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 66.221px;
  box-shadow: 0 4.816px 4.816px -4.816px rgba(0, 0, 0, 0.25);
}

.header-inner {
  position: absolute;
  left: 3.612px;
  top: 3.612px;
  width: 1432.776px;
  height: 109.565px;
  border-radius: 66.221px;
  overflow: hidden;
  box-shadow: inset 0 0 4.816px rgba(0, 0, 0, 0.25);
}

.header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 66.221px;
}

.header-logo {
  position: absolute;
  left: 53.388px;
  top: 21.388px;
  width: 238px;
  height: 65px;
}

.header-logo img {
  top: -54.89%;
}

.cta-header {
  position: absolute;
  left: 985.388px;
  top: 26.388px;
  width: 345px;
  height: 57px;
  border-radius: 9570.976px;
  background: rgba(255, 255, 255, 0);
  box-shadow:
    inset 0 0 7.572px rgba(251, 115, 0, 0.25),
    0 13.749px 20.624px -4.125px rgba(251, 163, 88, 0.2),
    0 5.5px 8.25px -5.5px rgba(254, 183, 123, 0.2);
}

.cta-icon {
  position: absolute;
  left: 12px;
  top: 12.89px;
  width: 31px;
  height: 31px;
}

.cta-label {
  position: absolute;
  left: 55px;
  top: 12px;
  color: var(--yellow);
  font-size: 28px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}

/* ---- hero ---- */

.hero {
  position: absolute;
  left: 0;
  top: 157px;
  width: 1440px;
  height: 1052px;
}

.hero-title {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  margin: 0;
  width: 1920px;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 66.67px;
  font-weight: 700;
  line-height: 40.811px;
  letter-spacing: 0.6802px;
  text-transform: uppercase;
  text-align: center;
}

.hero-subtitle {
  position: absolute;
  left: calc(50% + 1.5px);
  top: 178.09px;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #fff;
  font-size: 26.67px;
  font-weight: 400;
  line-height: 40.811px;
  letter-spacing: 0.6802px;
  white-space: nowrap;
  text-align: center;
}

/* ---- feature cards ---- */

.features {
  position: absolute;
  left: 0;
  top: 219px;
  width: 1440px;
  height: 587px;
}

.feat {
  position: absolute;
}

.feat-app {
  left: -101px;
  top: 5px;
  width: 515px;
  height: 231.128px;
}

.feat-wallet {
  left: 1016.988px;
  top: 2.351px;
  width: 453.024px;
  height: 255.756px;
}

.feat-games {
  left: 9.489px;
  top: 283.449px;
  width: 366.499px;
  height: 276.657px;
}

.feat-cs {
  left: 1071.988px;
  top: 273.979px;
  width: 384.01px;
  height: 229.128px;
}

.arc,
.line {
  position: absolute;
}

.arc-flip {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
}

.photo {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rot {
  position: relative;
  flex: none;
}

.rot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rot img.crop {
  position: absolute;
  max-width: none;
  object-fit: fill;
}

.feat-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}

.feat-text.right {
  align-items: flex-end;
  text-align: right;
}

.feat-title {
  margin: 0;
  color: var(--yellow);
  font-size: 28px;
  font-weight: 600;
  line-height: 43.857px;
  letter-spacing: 0.7309px;
  text-transform: capitalize;
}

.w352 {
  width: 352px;
}

.w384 {
  width: 384px;
}

.feat-ul {
  position: relative;
  display: block;
  width: 94.5px;
  height: 0.128px;
  flex: none;
}

.feat-desc {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 43.857px;
  letter-spacing: 0.7309px;
}

.feat-desc.lg-normal {
  line-height: normal;
}

/* ---- guide pills ---- */

.guides {
  position: absolute;
  left: 78px;
  top: 976px;
  width: 1292px;
  height: 77px;
  display: flex;
  justify-content: space-between;
}

.guide {
  width: 393px;
  height: 77px;
  background: rgba(0, 0, 0, 0.37);
  border: 2px solid var(--gold);
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 10px 16px 17px;
  text-align: left;
}

.guide-wide {
  width: 407px;
}

.guide-icon {
  width: 40px;
  height: 49.064px;
  flex: none;
}

.guide-text {
  color: var(--yellow);
  font-size: 28px;
  font-weight: 600;
  line-height: 43.857px;
  letter-spacing: 0.7309px;
  text-transform: capitalize;
}

/* ---- download buttons ---- */

.downloads {
  position: absolute;
  left: 78px;
  top: 929px;
  display: flex;
  gap: 78px;
}

.dl-group {
  position: relative;
  width: 603px;
  height: 174px;
  flex: none;
}

.dl-btn {
  position: absolute;
  left: 0;
  top: 9px;
  width: 478.163px;
  height: 156px;
}

.dl-shape {
  position: absolute;
  left: 0;
  top: 0;
  width: 478.163px;
  height: 156px;
}

.dl-os {
  position: absolute;
  left: 27px;
  top: 23.5px;
  width: 110px;
  height: 110px;
}

.dl-text {
  position: absolute;
  left: 154px;
  top: 50%;
  transform: translateY(-50%);
  width: 247px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  letter-spacing: 1.0203px;
  text-align: left;
}

.dl-title {
  color: var(--yellow);
  font-size: 32px;
  font-weight: 700;
  line-height: 61.217px;
  margin-bottom: -12px;
}

.dl-sub {
  color: #fff;
  font-size: 30px;
  font-weight: 400;
  line-height: 61.217px;
}

.dl-download {
  position: absolute;
  left: 429px;
  top: 0;
  width: 174px;
  height: 174px;
}

/* ---- footer ---- */

.site-footer {
  position: absolute;
  left: 50%;
  top: 1243px;
  transform: translateX(-50%);
  width: calc(100vw * var(--desk-inv, 1));
  padding-top: 40px;
}

.footer-bar {
  position: relative;
  height: 137px;
  background: linear-gradient(90deg, #000 0%, #666 50%, #000 99.519%);
}

.footer-content {
  position: absolute;
  left: calc(50% - 0.32px);
  top: 30.31px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 63px;
}

.footer-logo {
  width: 238px;
  height: 65px;
  flex: none;
}

.footer-logo img {
  top: -53.24%;
}

.footer-divider {
  position: relative;
  display: block;
  width: 0;
  height: 52px;
  flex: none;
}

.footer-text {
  margin: 0;
  font-family: var(--font-sf);
  font-size: 26.67px;
  font-weight: 400;
  line-height: 40.811px;
  color: #fff;
  white-space: nowrap;
}

/* ---------- desktop / mobile switch ---------- */

@media (min-width: 1440px) {
  .page {
    height: 100vh;
  }
}

@media (max-width: 1439.98px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .page {
    height: 100vh;
    height: 100dvh;
  }
}

/* ============================================================
   MOBILE  (design frame "Home" 1767:62, 402x969, minus 110.55px
   browser-chrome mockup at the top)
   ============================================================ */

.mobile {
  position: relative;
}

.m-glow {
  position: absolute;
  inset: -24px;
  pointer-events: none;
}

.m-glow-rot {
  width: 100%;
  height: 100%;
  transform: rotate(180deg);
  filter: blur(12.15px);
}

.m-glow-rot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-fitbox {
  position: relative;
  width: 402px;
  height: 858.45px;
  flex: none;
  transform: scale(var(--mob-scale, 1));
}

.m-stage {
  position: relative;
  width: 100%;
  max-width: 402px;
  height: 858.45px;
  margin: 0 auto;
}

.m-logo {
  position: absolute;
  left: 50%;
  top: 14.45px;
  transform: translateX(-50%);
  width: 238px;
  height: 65px;
}

.m-logo img {
  top: -57.44%;
}

.m-heading {
  position: absolute;
  left: calc(50% + 12.5px);
  top: 91.45px;
  transform: translateX(-50%);
  width: 623px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}

.m-title {
  margin: 0;
  width: 100%;
  height: 47.698px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 40px;
  font-weight: 700;
  line-height: 19.864px;
  letter-spacing: 0.3311px;
}

.m-subtitle {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  line-height: 19.864px;
  letter-spacing: 0.3311px;
}

.m-hero {
  position: absolute;
  left: calc(50% + 13px);
  top: 112.45px;
  transform: translateX(-50%);
  width: 666px;
  height: 499px;
}

.m-phones {
  position: absolute;
  left: 62px;
  top: 14px;
  width: 542px;
  height: 406px;
  object-fit: cover;
}

.m-badge {
  position: absolute;
  left: 172px;
  top: 187px;
  width: 24.5px;
  height: 11.5px;
}

.m-dl {
  position: absolute;
  display: block;
}

.m-dl img {
  width: 100%;
  height: 100%;
}

.m-dl-ios {
  left: 146px;
  top: 403px;
  width: 159px;
  height: 182px;
}

.m-dl-android {
  left: 344px;
  top: 403px;
  width: 161px;
  height: 182px;
}

.m-guides {
  position: absolute;
  left: 50%;
  top: 719.45px;
  transform: translateX(-50%);
  display: flex;
  gap: 21px;
}

.m-guide {
  height: 32.742px;
  width: 174.125px;
  background: rgba(0, 0, 0, 0.37);
  border: 0.855px solid var(--gold);
  border-radius: 6.844px;
  padding: 5.133px 4.277px 6.844px 7.271px;
  display: flex;
  align-items: flex-end;
  gap: 3.422px;
  text-align: left;
  flex: none;
}

.m-guide-wide {
  height: 32.935px;
  width: 174.084px;
}

.m-guide-icon {
  width: 17.109px;
  height: 20.986px;
  flex: none;
}

.m-guide span {
  color: var(--yellow);
  font-size: 11.976px;
  font-weight: 600;
  line-height: 18.759px;
  letter-spacing: 0.3126px;
  text-transform: capitalize;
}

.m-cta {
  position: absolute;
  left: calc(50% - 1.86px);
  top: 776.45px;
  transform: translateX(-50%);
  width: 282.274px;
  height: 46.637px;
  border-radius: 7830.827px;
  background: rgba(20, 17, 17, 0.6);
  box-shadow:
    inset 0 0 6.196px rgba(251, 115, 0, 0.25),
    0 11.249px 16.874px -3.375px rgba(251, 163, 88, 0.2),
    0 4.5px 6.75px -4.5px rgba(254, 183, 123, 0.2);
}

.m-cta-label {
  position: absolute;
  left: 45px;
  top: 9.82px;
  color: var(--yellow);
  font-size: 22.909px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}
