/* Nuvora Stays × GTA 6 launch popup + bike ride
   Everything is scoped under .nvg- so it can't clash with the site's own styles. */
@font-face{font-family:"GTAHead";src:url("/assets/fonts/oswald-latin.woff2") format("woff2");font-weight:200 700;font-display:swap}
@font-face{font-family:"GTABody";src:url("/assets/fonts/poppins-300.ttf") format("truetype");font-weight:300;font-display:swap}
@font-face{font-family:"GTABody";src:url("/assets/fonts/poppins-500.ttf") format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:"GTABody";src:url("/assets/fonts/poppins-600.ttf") format("truetype");font-weight:600 700;font-display:swap}

/* ---------- Popup ---------- */
.nvg-backdrop {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 10, 31, 0.72);
  padding: 0; box-sizing: border-box;
  opacity: 0; transition: opacity .35s ease;
  font-family: "GTABody", system-ui, sans-serif;
}
.nvg-backdrop.nvg-show { opacity: 1; }

.nvg-card {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
  border-radius: 0; color: #fff; text-align: left;
  background: #3B1C6E center / cover no-repeat;
  transform: scale(1.03); transition: transform .6s ease;
}
.nvg-backdrop.nvg-show .nvg-card { transform: scale(1); }
/* Slideshow stage behind the chat (WebGL canvas on top of a CSS crossfade fallback) */
.nvg-stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #3B1C6E; }
.nvg-slide { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1s ease; transform: scale(1.02); }
.nvg-slide.on { opacity: 1; animation: nvg-kb 3.4s ease-out forwards; }
@keyframes nvg-kb { to { transform: scale(1.07); } }
.nvg-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nvg-gl-on .nvg-slide { display: none; }
@media (prefers-reduced-motion: reduce) { .nvg-slide.on { animation: none; } }
.nvg-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,10,31,.55), rgba(13,10,31,0) 55%); }

.nvg-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(13, 10, 31, 0.7); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}

.nvg-sticker {
  position: absolute; right: 72px; top: 24px; z-index: 2;
  background: #00E5D4; color: #0D0A1F;
  font-family: "GTAHead", Impact, sans-serif; font-size: 18px;
  padding: 10px 16px; border-radius: 12px;
  transform: rotate(3deg); box-shadow: 4px 4px 0 #0D0A1F;
}

.nvg-actions {
  position: absolute; right: 28px; bottom: 28px; z-index: 2;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.nvg-btn {
  min-height: 46px; padding: 0 22px; border-radius: 12px; cursor: pointer;
  font: 700 15px "GTABody", system-ui, sans-serif;
}
.nvg-btn-primary { background: #FFD23F; color: #0D0A1F; border: 0; box-shadow: 4px 4px 0 #0D0A1F; }
.nvg-btn-ghost { background: rgba(13, 10, 31, 0.6); color: #fff; border: 2px solid #fff; font-weight: 600; font-size: 14px; padding: 0 16px; }

/* Phone with the team chat */
.nvg-phone {
  position: absolute; left: 6%; top: 6%; z-index: 2;
  width: min(30vw, 430px); height: 88%;
  background: #0D0A1F; border-radius: 34px; padding: 11px; box-sizing: border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); transform: rotate(-4deg);
}
.nvg-screen {
  width: 100%; height: 100%; background: #F4F1FB; border-radius: 24px;
  color: #1A1530; display: flex; flex-direction: column; overflow: hidden;
}
.nvg-chat-head { padding: 14px 14px 10px; background: #fff; border-bottom: 1px solid #E3DEF0; display: flex; flex-direction: column; gap: 2px; }
.nvg-chat-head strong { font-size: 15px; }
.nvg-chat-head span { font-size: 12px; color: #5E5878; }
.nvg-msgs { flex: 1 1 auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: clamp(12px, 1.1vw, 15px); line-height: 1.28; overflow: hidden; }
.nvg-msg {
  align-self: flex-start; background: #fff; padding: 7px 10px; max-width: 84%;
  border-radius: 14px 14px 14px 4px;
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.nvg-msg.nvg-in { opacity: 1; transform: none; }
.nvg-msg b { display: block; }
.nvg-msg-right { align-self: flex-end; background: #E9DFFC; border-radius: 14px 14px 4px 14px; text-align: left; }
.nvg-msg-me { align-self: flex-end; background: #7B3FE4; color: #fff; border-radius: 14px 14px 4px 14px; }
.nvg-typing { display: flex; gap: 8px; padding: 8px 10px 12px; }
.nvg-typing span:first-child { flex: 1; background: #fff; border: 1px solid #E3DEF0; border-radius: 999px; padding: 8px 12px; font-size: 13px; color: #5E5878; }
.nvg-typing span:last-child { background: #FF5FA2; color: #fff; border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 700; }

/* Phones: the card becomes tall and the phone sits in the middle */
@media (max-width: 760px) {
  .nvg-card { background-position: 70% center; }
  .nvg-phone { left: 50%; top: 84px; width: min(300px, 78%); height: auto; bottom: 110px; transform: translateX(-50%) rotate(-3deg); }
  .nvg-sticker { right: auto; left: 16px; top: 18px; font-size: 15px; }
  .nvg-actions { left: 16px; right: 16px; bottom: 18px; justify-content: center; }
}

/* ---------- Bike ride ---------- */
.nvg-ride { position: fixed; inset: 0; z-index: 2147482990; overflow: hidden; }
.nvg-ride .nvg-close { z-index: 6; }
.nvg-tile {
  position: absolute; width: 190px; height: 190px;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(13, 10, 31, 0.45);
  opacity: 0; transform: perspective(700px) rotateY(-90deg);
  transition: opacity .35s ease, transform .45s ease;
}
.nvg-tile.nvg-on { opacity: 1; transform: perspective(700px) rotateY(0); }

.nvg-title {
  position: absolute; left: 0; top: 0; padding: 18px 56px 36px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  background: linear-gradient(135deg, rgba(13, 10, 31, .8), rgba(13, 10, 31, .45) 55%, rgba(13, 10, 31, 0));
  border-bottom-right-radius: 40px;
  opacity: 0; transition: opacity .6s ease; color: #fff; pointer-events: none;
}
.nvg-title.nvg-on { opacity: 1; }
.nvg-title p { margin: 0; }
.nvg-title p:first-child { font: 300 clamp(28px, 4vw, 48px)/1 "GTABody", sans-serif; letter-spacing: 4px; text-shadow: 0 3px 16px rgba(13, 10, 31, 0.7); }
.nvg-title p:last-child { font-family: "GTAHead", Impact, sans-serif; font-size: clamp(11px, 1.3vw, 16px); letter-spacing: .3em; color: #FFD23F; text-shadow: 2px 2px 0 #FF5FA2; }

.nvg-status {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(13, 10, 31, 0.88); border: 1px solid #FFD23F; border-radius: 10px;
  padding: 8px 14px; font: 12px "GTAHead", Impact, sans-serif; color: #FFD23F;
}

.nvg-bike { position: absolute; bottom: 10px; left: 0; width: 300px; height: 170px; will-change: transform; }
.nvg-bike svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
@keyframes nvgSpin { to { transform: rotate(360deg); } }
@keyframes nvgWheelie { 0%, 100% { transform: rotate(-11deg); } 50% { transform: rotate(-14deg) translateY(-3px); } }
@keyframes nvgStreak { 0% { opacity: .9; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-40px); } }
.nvg-wheel { transform-box: fill-box; transform-origin: 50% 50%; animation: nvgSpin .3s linear infinite; }
.nvg-bike-body { transform-box: view-box; transform-origin: 64px 158px; animation: nvgWheelie .5s ease-in-out infinite; }
.nvg-streak { animation: nvgStreak .4s linear infinite; }
@media (max-width: 760px) { .nvg-bike { width: 210px; height: 119px; } }

/* Cover the page from the very first paint until the popup is up, so the normal landing page never flashes.
   Failsafe: it fades away by itself after 3s even if the script never runs. */
html:not(.nvg-ready) body::before {
  content: ""; position: fixed; inset: 0; z-index: 2147482999; background: #0D0A1F;
  animation: nvg-cover-out .3s ease 3s forwards;
}
@keyframes nvg-cover-out { to { opacity: 0; visibility: hidden; } }
