@font-face {
  font-family: "Landing Sans";
  src: url("assets/noto-sans-regular-vi.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Landing Sans";
  src: url("assets/noto-sans-bold-vi.woff") format("woff");
  font-style: normal;
  font-weight: 700 950;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Landing Sans", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --violet: #6414f4;
  --blue: #1700ff;
  --yellow: #e9ff00;
}

* { box-sizing: border-box; }
html { margin: 0; min-width: 280px; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
button { font: inherit; }

.gate-page { background: #fff; }
.gate {
  width: min(100%, 580px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(26px, 5.3vh, 48px) clamp(24px, 7.2vw, 44px) 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gate-heading { width: 100%; text-align: center; }
.gate h1 {
  color: var(--violet);
  font-weight: 950;
  font-size: clamp(1.8rem, 8.3vw, 3.15rem);
  letter-spacing: -0.065em;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  -webkit-text-stroke: 0.7px currentColor;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: clamp(42px, 20vw, 122px);
  margin-top: clamp(25px, 5.3vh, 48px);
}

.choice {
  display: grid;
  place-items: center;
  min-height: clamp(62px, 15.5vw, 91px);
  border: 3px solid var(--yellow);
  border-radius: clamp(15px, 3.8vw, 23px);
  color: white;
  background: var(--blue);
  text-decoration: none;
  font-size: clamp(2.2rem, 10.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
  font-weight: 950;
  -webkit-text-stroke: 0.7px currentColor;
  padding: 6px 10px 10px;
  box-shadow: 0 8px 22px -16px #1700ff8a;
  transition: filter 150ms ease, box-shadow 150ms ease;
  animation: choice-attention 1.8s ease-in-out infinite;
  transform-origin: center;
}

.choice:nth-child(2) { animation-delay: -0.9s; }

@keyframes choice-attention {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 0 #dfff0033, 0 8px 22px -16px #1700ff8a;
  }
  50% {
    transform: scale(1.045);
    filter: brightness(1.2);
    box-shadow: 0 0 0 5px #e9ff0033, 0 0 24px #c9e90080, 0 10px 24px -12px #1700ffb0;
  }
}

.choice:hover {
  filter: brightness(1.13);
  box-shadow: 0 9px 22px -13px #1700ffaa;
}
.choice:active { filter: brightness(0.88); }
.choice:focus-visible { outline: 3px solid #4a17d6; outline-offset: 5px; }
.gate-hint { margin: 16px 0 0; font-size: 0.875rem; color: #626878; text-align: center; line-height: 1.5; }

.robot-illustration {
  width: calc(100% + 40px);
  aspect-ratio: 582 / 660;
  margin: clamp(30px, 6vh, 60px) -20px 0;
  overflow: hidden;
}
.robot-illustration img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

.offer-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #082b2e;
}
.offer-poster {
  position: relative;
  width: min(100vw, 56.19389587vh, 626px);
  width: min(100vw, 56.19389587svh, 626px);
  aspect-ratio: 626 / 1114;
  overflow: hidden;
  container-type: inline-size;
  isolation: isolate;
  background: #ddb943;
  box-shadow: 0 0 70px #0004;
}

/* Hiển thị ảnh gốc, ẩn phần viền trắng của ảnh chụp tham khảo. */
.offer-photo {
  position: absolute;
  max-width: none;
  width: 110.54313099%;
  height: auto;
  left: -6.23003195%;
  top: -1.07719928%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.back-link {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 88px;
  height: 44px;
  border: 1px solid #ffffff8a;
  border-radius: 12px;
  color: #fff;
  background: #072e31a6;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.back-link svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-link:hover { background: #072e31df; }
.back-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.offer-cta {
  position: absolute;
  z-index: 1;
  left: 5.1%;
  right: 5.1%;
  top: 78.95%;
  height: 16.2%;
  padding: 0.12em 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  border: 3px solid var(--yellow);
  border-radius: clamp(10px, 2.2vw, 17px);
  color: white;
  background-color: #003b42;
  background-image: linear-gradient(108deg, #013b40df, #002f3ab8 55%, #005653c4), repeating-linear-gradient(94deg, #016264 0, #023e46 8px, #006078 15px, #002d37 25px);
  text-decoration: none;
  font-weight: 950;
  font-size: clamp(1.3rem, 9vw, 3.5rem);
  font-size: clamp(1.3rem, 9cqw, 3.5rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 0.7px currentColor;
  box-shadow: 0 8px 22px #06262755, inset 0 1px 0 #ffffff26;
  transition: filter 150ms ease;
  animation: offer-attention 1.9s ease-in-out infinite;
  transform-origin: center;
}

@keyframes offer-attention {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
    box-shadow: 0 0 0 0 #e9ff0026, 0 8px 22px #06262755, inset 0 1px 0 #ffffff26;
  }
  50% {
    transform: scale(1.025);
    filter: brightness(1.22);
    box-shadow: 0 0 0 5px #efff0033, 0 0 30px #f3ff00a6, 0 12px 25px #06262766, inset 0 1px 0 #ffffff4d;
  }
}
.offer-cta span { display: block; white-space: nowrap; }
.offer-cta:hover { filter: brightness(1.15); }
.offer-cta:active { filter: brightness(0.9); }
.offer-cta:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-note { position: absolute; z-index: 3; bottom: 0; margin: 0; width: 100%; text-align: center; padding: 8px 12px; color: white; background: #082b2e; font-size: 0.875rem; }

.status-dialog {
  width: min(88vw, 360px);
  border: 0;
  border-radius: 22px;
  padding: 28px 24px 24px;
  color: #122c34;
  text-align: center;
  background: #fff;
  box-shadow: 0 24px 80px #0004;
}
.status-dialog::backdrop { background: #041416b3; backdrop-filter: blur(5px); }
.status-symbol { display: grid; place-items: center; margin: 0 auto 16px; width: 44px; height: 44px; border-radius: 50%; color: #00555b; background: #e5f3ef; font-size: 1.5rem; font-weight: 700; }
.status-dialog h2 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.4; }
.status-dialog p { margin: 0 0 24px; color: #52616a; font-size: 1rem; line-height: 1.65; }
.dialog-close { width: 100%; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 12px; background: #00454b; color: white; font-size: 1rem; font-weight: 700; cursor: pointer; }
.dialog-close:focus-visible { outline: 3px solid #087a85; outline-offset: 4px; }

@media (max-width: 340px) {
  .gate { padding-inline: 22px; }
  .choices { gap: 42px; }
  .gate h1 { font-size: 1.8rem; }
  .choice { padding-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
