/* ===== FONT: LOST VIETNAM ===== */
@font-face {
  font-family: "Lost Vietnam";
  src: url("/fonts/LostVietnam-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== FONT: DFVN CATCHY MAGER ===== */
@font-face {
  font-family: "DFVN Catchy Mager";
  src: url("/fonts/DFVN-CatchyMager-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.15),
    rgba(0,0,0,1)
  );
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  color: #fff;
}

/* PAGE */
.page {
  position: relative;
  width: 100%;
  height: 100dvh;
}

/* MODEL */
.model-zone {
  position: absolute;
  inset: 0;
}

model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
  transform: translateY(-12vh); /* Đẩy model lên cao */
}

/* TEXT */
.text-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom));
  text-align: center;
  padding: 6px 16px;
  z-index: 10;
  pointer-events: none;
}

.text-zone h1 {
  margin: 0;
  font-family: "Lost Vietnam", serif;
  font-size: 30px;
  font-weight: normal;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.text-zone p {
  margin-top: 6px;
  font-family: "DFVN Catchy Mager", serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* BUTTON */
.button-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: center;
  gap: 18px;
  z-index: 11;
  pointer-events: none;
}

.detail-btn {
  font-family: "DFVN Catchy Mager", serif;
  font-size: 15px;
  letter-spacing: 1px;
  min-width: 150px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #111;
  cursor: pointer;
  pointer-events: auto;
}

.reset-btn {
  font-family: inherit;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  pointer-events: auto;

  transform: translateY(-6px);
}

/* HIDE UI WHEN INTERACTING */
.page.interacting .text-zone,
.page.interacting .button-zone {
  opacity: 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .text-zone h1 {
    font-size: 22px;
  }

  .detail-btn {
    min-width: 120px;
    font-size: 14px;
  }

  .reset-btn {
    width: 40px;
    height: 40px;
    font-size: 36px;
  }
}
