﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #fff;
  overflow: hidden;
  background: #000;
}

a {
  text-decoration: none;
}

.desktop-page,
.mobile-page {
  width: 100%;
  height: 100%;
}

.desktop-page {
  display: block;
  background: url("./img/bg-u.png") center center / cover no-repeat;
  --download-safe-space: clamp(180px, 25vh, 280px);
  --title-min-gap: clamp(14px, 2vh, 30px);
  --title-max-h: calc(100vh - clamp(88px, 12vh, 140px) - var(--download-safe-space));
}

.mobile-page {
  display: none;
  background: url("./img/bg-u-app.png") center center / cover no-repeat;
}

.topbar,
.mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #101010;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.brand-badge span {
  color: #111;
  background: #f7a119;
  border-radius: 3px;
  padding: 1px 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-text strong {
  font-size: 38px;
  line-height: 1;
}

.brand-text small {
  font-size: 18px;
  opacity: 0.95;
}

.top-links {
  display: flex;
  gap: 12px;
}

.top-links a {
  border: 1px solid #f7a119;
  border-radius: 999px;
  color: #f7a119;
  font-size: 18px;
  line-height: 1;
  padding: 9px 18px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.hero {
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper {
  width: 100%;
  height: 100%;
}

.desktop-swiper .swiper-slide {
  position: relative;
}

.slide-content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 46%) minmax(320px, 54%);
  align-items: end;
  column-gap: clamp(10px, 2.5vw, 40px);
  padding: clamp(88px, 11vh, 130px) clamp(20px, 3vw, 48px) calc(clamp(18px, 3vh, 36px) + var(--download-safe-space));
}

.title-img {
  width: min(100%, 520px);
  max-height: max(180px, var(--title-max-h));
  height: auto;
  object-fit: contain;
  margin-bottom: var(--title-min-gap);
  justify-self: start;
  align-self: end;
  z-index: 3;
}

.photo-img {
  justify-self: end;
  align-self: end;
  max-height: calc(100vh - 130px);
  max-width: 100%;
  z-index: 2;
}

.photo-one {
  max-height: calc(100vh - 180px);
  transform: translateX(-4%);
}

.photo-two {
  max-height: calc(100vh - 140px);
}

.photo-three {
  max-height: calc(100vh - 150px);
}

.desktop-pagination {
  right: 26px !important;
}

.swiper-pagination-bullets.swiper-pagination-vertical {
  top: 35% !important;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.85;
}

.swiper-pagination-bullet-active {
  border-radius: 10px;
  height: 24px;
  opacity: 1;
}

.download-panel {
  position: fixed;
  left: 44px;
  bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  z-index: 21;
}

.qr-box {
  width: 108px;
  height: 108px;
  border-radius: 4px;
  background: #fff;
  padding: 8px;
}

#desktopQr,
#desktopQr > div,
#desktopQr canvas,
#desktopQr img {
  width: 92px !important;
  height: 92px !important;
}

.download-actions {
  width: 255px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dl-btn {
  border-radius: 999px;
  border: 1px solid #f7a119;
  padding: 9px 18px;
  color: #f7a119;
  background: rgba(0, 0, 0, 0.55);
}

.dl-btn span {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.dl-btn small {
  display: block;
  margin-top: 3px;
  opacity: 0.9;
  font-size: 12px;
}

.dl-btn.official-entry {
  border: 2px solid #ffbf3b;
  color: #fff;
  background: linear-gradient(135deg, #ff8a00, #ff5a00);
  box-shadow: 0 0 18px rgba(255, 132, 0, 0.65), 0 0 34px rgba(255, 132, 0, 0.35);
}

.dl-btn.official-entry span {
  font-size: 28px;
  letter-spacing: 1px;
}

.dl-btn.official-entry small {
  opacity: 0.95;
  font-size: 13px;
}

.mobile-topbar {
  padding: 14px 12px;
}

.mobile-topbar .brand-badge {
  font-size: 14px;
  padding: 4px 6px;
}

.mobile-topbar .top-links {
  gap: 7px;
}

.mobile-topbar .top-links a {
  font-size: 12px;
  padding: 6px 10px;
}

.mobile-swiper {
  padding-top: 70px;
}

.mobile-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2vh;
}

.mobile-title {
  width: 92%;
  max-width: 540px;
}

.mobile-photo {
  width: 90%;
  max-width: 520px;
}

.mobile-pagination {
  right: 8px !important;
}

.mobile-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding: 10px 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-footer .dl-btn {
  padding: 9px 14px;
}

.mobile-footer .dl-btn span {
  font-size: 17px;
}

.mobile-footer .dl-btn small {
  font-size: 11px;
}

.mobile-footer .dl-btn.official-entry span {
  font-size: 22px;
}

@media (max-width: 1400px) {
  .desktop-page { --download-safe-space: clamp(168px, 26vh, 260px); }

  .slide-content {
    grid-template-columns: minmax(240px, 45%) minmax(300px, 55%);
    column-gap: clamp(8px, 2vw, 26px);
  }

  .title-img {
    width: min(100%, 470px);
  }

  .photo-img {
    max-height: calc(100vh - 155px);
  }

  .photo-one {
    max-height: calc(100vh - 210px);
    transform: translateX(-6%);
  }

  .photo-two {
    max-height: calc(100vh - 170px);
  }

  .photo-three {
    max-height: calc(100vh - 180px);
  }
}

@media (max-width: 1200px) {
  .desktop-page { --download-safe-space: clamp(156px, 27vh, 238px); }

  .topbar {
    padding: 16px 24px;
  }

  .brand-text strong {
    font-size: 30px;
  }

  .brand-text small {
    font-size: 14px;
  }

  .top-links a {
    font-size: 15px;
    padding: 8px 14px;
  }

  .slide-content {
    grid-template-columns: minmax(220px, 44%) minmax(280px, 56%);
    padding: 90px 20px 24px;
    column-gap: 12px;
  }

  .title-img {
    width: min(100%, 400px);
  }

  .photo-img {
    max-height: calc(100vh - 195px);
  }

  .photo-one {
    max-height: calc(100vh - 245px);
    transform: translateX(-8%);
  }

  .photo-two {
    max-height: calc(100vh - 210px);
  }

  .photo-three {
    max-height: calc(100vh - 220px);
  }

  .download-panel {
    left: 24px;
    bottom: 20px;
    transform: scale(0.92);
    transform-origin: left bottom;
  }
}

@media (max-width: 980px) {
  .desktop-page { --download-safe-space: clamp(138px, 28vh, 210px); }

  .slide-content {
    grid-template-columns: minmax(200px, 42%) minmax(250px, 58%);
    padding: 84px 16px 20px;
    column-gap: 10px;
  }

  .title-img {
    width: min(100%, 330px);
  }

  .photo-img {
    max-height: calc(100vh - 240px);
  }

  .photo-one {
    max-height: calc(100vh - 280px);
    transform: translateX(-10%);
  }

  .photo-two {
    max-height: calc(100vh - 255px);
  }

  .photo-three {
    max-height: calc(100vh - 265px);
  }
}

@media (max-height: 900px) {
  .desktop-page { --download-safe-space: clamp(150px, 27vh, 210px); }
  .download-panel {
    transform: scale(0.9);
    transform-origin: left bottom;
  }
}

@media (max-height: 780px) {
  .desktop-page { --download-safe-space: clamp(128px, 26vh, 180px); }
  .download-panel {
    transform: scale(0.82);
    transform-origin: left bottom;
  }
  .download-actions { width: 230px; }
  .dl-btn span { font-size: 19px; }
}

@media (max-height: 680px) {
  .desktop-page { --download-safe-space: clamp(108px, 24vh, 155px); }
  .download-panel {
    transform: scale(0.74);
    transform-origin: left bottom;
  }
  .download-actions {
    width: 210px;
    gap: 6px;
  }
  .dl-btn {
    padding: 8px 14px;
  }
  .dl-btn span { font-size: 16px; }
  .dl-btn small { font-size: 11px; }
}

@media (max-width: 600px) {
  body {
    overflow: hidden;
  }

  .desktop-page {
    display: none;
  }

  .mobile-page {
    display: block;
  }
}
