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

html,
body {
  width: 100%;
  height: 100%;
  background: #000;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}
.wrap {
  position: relative;
  margin: auto;
  max-width: 480px;
}
.error {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0.67em 0;
}
.error-text {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ===== Background Video ===== */
.bg-video {
  /* position: fixed; */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ===== Page Layout ===== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 16px;
}

/* ===== Logo ===== */
.logo-wrap {
  flex-shrink: 0;
  padding-top: 48px;
  display: flex;
  justify-content: center;
}

.logo {
  width: 160px;
  max-width: 42vw;
  display: block;
}

/* ===== Banner – Mobile =====
   flex: 0 → không giãn theo chiều cao viewport
   height: auto → banner ôm theo tỉ lệ ảnh, flags nằm sát bên dưới
*/
.banner-wrap {
  position: relative;
  width: 100%;
  margin-top: 16%;
  flex: 0 0 auto;
  overflow: visible;
}

.banner-frame {
  position: relative;
  width: 100%;
}

.access-bar {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  height: auto;
  z-index: 3;
  display: block;
  pointer-events: none;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.banner-pc {
  display: none;
}

.banner-mb {
  display: block;
}

.pc-box {
  display: none;
}

.cta-pc {
  display: none;
}

.cta-btn {
  position: absolute;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  background: #2a2931;
  border: 2px solid #fb8902;
  color: #fb8902;
  font-size: clamp(13px, 3.8vw, 18px);
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px 10px;
  border-radius: 1000px;
  cursor: pointer;
  box-shadow:
    0 8px 8px rgba(0, 0, 0, 0.5),
    inset 0 0 8px rgba(0, 0, 0, 0.5);
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.cta-mb {
  top: auto;
  bottom: 4%;
  left: 51%;
  transform: translateX(-50%);
}

.cta-btn:hover {
  border-color: #ffa500;
  color: #ffa500;
  box-shadow:
    0 0 22px rgba(255, 160, 0, 0.65),
    inset 0 0 8px rgba(0, 0, 0, 0.5);
}

/* ===== Flags ===== */
.flags {
  flex-shrink: 0;
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 4px 16px 20px;
}

.flag-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.flag-item img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.flag-item span {
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding-top: 5%; */
  padding-bottom: 10%;
}
.sign-img {
  width: 90%;
}
.sign-img img {
  display: block;
  width: 100%;
}
.sign p {
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  color: #ffffff;
}
@media (max-width: 430px) {
  .logo-wrap {
    padding-top: 20px;
  }

  .logo {
    width: 140px;
  }

  .flags {
    margin-top: 24px;
    gap: 30px;
    padding: 0 10px 16px;
  }

  .flag-item img {
    width: 84px;
    height: 84px;
  }

  .flag-item span {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .logo-wrap {
    padding-top: 12px;
  }

  .logo {
    width: 120px;
  }

  .flags {
    gap: 12px;
  }

  .flag-item img {
    width: 76px;
    height: 76px;
  }

  .flag-item span {
    font-size: 9px;
  }
}

/* ===== Turkey Popup ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.75);
}

.popup-overlay[hidden] {
  display: none;
}

.popup-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.popup-content img {
  display: block;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}

.popup-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
