/* ARCADEVERSE PAGE STYLES */

.arcadeverse-layout {
  font-family: 'Outfit', 'Inter', sans-serif;
}

/* HERO SECTION */
.av-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72vh;
  padding: clamp(72px, 7.2vw, 126px) clamp(36px, 4.5vw, 72px) 45px;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  transform: translateY(100px);
}

.av-hero-left {
  flex: 1;
  max-width: 69%;
  position: relative;
  transform: translateY(-50px);
}

.back-arrow {
  display: inline-block;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.back-arrow:hover {
  transform: translateX(-5px);
}

.av-hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  height: clamp(400px, 50vh, 630px);
}

.av-phones {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 100%;
  transform: translateX(clamp(0px, calc(11vw - 45px), 110px)) translateY(-20px);
}

.av-phone {
  position: absolute;
  top: 50%;
  width: clamp(125px, 12vw, 200px);
  transition: transform 0.3s ease;
}

.av-phone.phone-1 {
  left: -25px;
  z-index: 1;
  transform: translateY(-50%);
  opacity: 0.8;
}

.av-phone.phone-2 {
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: clamp(180px, 17vw, 280px);
}

.av-phone.phone-3 {
  right: -25px;
  z-index: 1;
  transform: translateY(-50%);
  opacity: 0.8;
}

/* MARQUEE */
.av-marquee {
  background: transparent;
  border-top: none;
  padding: 15px 0;
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 150px;
}

.marquee-content {
  display: flex;
  width: 200vw;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-content img {
  width: 100vw;
  flex-shrink: 0;
  height: auto;
  margin: 0;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* GAMERS SECTION */
.av-gamers-section {
  padding: clamp(60px, 7vw, 100px) clamp(20px, 4vw, 50px);
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 550px;
}

.av-gamers-diagram {
  position: relative;
  height: clamp(500px, 55vw, 700px);
  margin-top: 50px;
}

@keyframes mascot-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.av-mascot-center {
  position: absolute;
  top: -30px;
  left: calc(15% - 100px);
  width: clamp(140px, 14vw, 200px);
  z-index: 2;
  animation: mascot-float 3s ease-in-out infinite;
}

.av-polaroid-img {
  position: absolute;
  width: clamp(396px, 45vw, 630px);
  z-index: 3;
  transition: transform 0.3s;
  border-radius: 5px;
}

.av-polaroid-img:hover {
  transform: scale(1.05) rotate(2deg);
}

.p-indie     { top: 20px;   right: calc(10% - 325px); transform: rotate(5deg); }
.p-casual    { top: 250px;  left: calc(10% - 275px);  transform: rotate(-3deg); }
.p-community { bottom: -550px; right: calc(15% - 255px); transform: rotate(4deg); }

.av-dashed-line {
  position: absolute;
  z-index: 1;
}

.line-1 { top: 130px; left: calc(30% + 70px); width: clamp(375px, 41vw, 560px); }
.line-2 { top: 400px; right: calc(35% - 50px); width: clamp(375px, 41vw, 560px); }

/* NON NEGOTIABLES */
.av-non-negotiables {
  padding: clamp(60px, 7vw, 100px) clamp(20px, 4vw, 50px);
  padding-top: calc(clamp(60px, 7vw, 100px) + 75px);
  padding-bottom: clamp(180px, 20vw, 300px);
  max-width: 1200px;
  margin: 0 auto;
}

.av-section-title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.av-non-negotiables .av-section-title {
  position: relative;
  top: -150px;
}

.text-center { text-align: center; }
.text-yellow { color: var(--yellow, #f5d800); }

.av-negotiables-diagram {
  position: relative;
  height: clamp(500px, 55vw, 700px);
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(80px) scale(2.25);
  transform-origin: center center;
}

.av-yellow-circle {
  position: absolute;
  top: 50%;
  left: 47%;
  transform: translate(-50%, -50%);
  width: clamp(75px, 8vw, 110px);
  z-index: 10;
}

.av-mascot-megaphone {
  position: absolute;
  width: clamp(85px, 9vw, 125px);
  z-index: 11;
  transform: translateX(-20px);
}

.av-icon {
  position: absolute;
  width: clamp(120px, 13vw, 180px);
  z-index: 4;
  transition: transform 0.3s;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.av-icon:hover { transform: scale(1.1); }

.icon-indie        { top: 22%; left: 25%; width: clamp(144px, 15.6vw, 216px); }
.icon-play         { top: calc(15% + 20px); left: 47%; transform: translateX(-50%); }
.icon-future       { top: 22%; right: calc(32% - 20px); width: clamp(144px, 15.6vw, 216px); }
.icon-ads          { top: 45%; left: calc(20% + 50px); width: clamp(130px, 14vw, 200px); }
.icon-mcu          { top: 45%; right: 28%; width: clamp(144px, 15.6vw, 216px); }
.icon-addiction    { bottom: calc(20% + 70px); left: 28%; }
.icon-monetization { bottom: calc(25% + 30px); right: calc(35% - 50px); width: clamp(148px, 16.5vw, 226px); }
.icon-play:hover   { transform: translateX(-50%) scale(1.1); }

/* HOW WE DO IT */
.av-how-we-do-it {
  padding: clamp(30px, 4vw, 50px) clamp(10px, 2vw, 20px);
  padding-bottom: clamp(40px, 5vw, 80px);
  max-width: 1500px;
  margin: -225px auto 0;
}

.av-timeline {
  text-align: center;
}

/* CONTACT SECTION */
.arcadeverse-layout .contact-section {
  margin-top: 60px;
  margin-left: clamp(-80px, -5vw, 0px);
}

/* FLOAT ANIMATION */
@keyframes float {
  0%   { transform: translate(-50%, 0); }
  50%  { transform: translate(-50%, -15px); }
  100% { transform: translate(-50%, 0); }
}

/* ── DESKTOP BREAKPOINTS ── */

/* Large desktops: 1920px+ */
@media (min-width: 1920px) {
  .av-hero { max-width: 1530px; }
}

/* Mid desktops: 1440px–1919px — base styles apply, no overrides needed */

/* Smaller desktops: 1280px–1439px */
@media (max-width: 1439px) {
  .av-hero-left { max-width: 65%; }
  .av-negotiables-diagram { transform: translateX(60px) scale(1.8); }
}

/* Small desktops: 1024px–1279px */
@media (max-width: 1279px) {
  .av-hero-left { max-width: 60%; }
  .av-negotiables-diagram { transform: translateX(40px) scale(1.5); }
}

/* ── TABLET & MOBILE ── */
@media (max-width: 1024px) {
  .av-hero {
    flex-direction: column;
    text-align: center;
  }
  .av-hero-left {
    max-width: 100%;
    margin-bottom: 50px;
    transform: none;
  }
  .av-hero-right { height: 400px; }
  .av-phones { transform: translateX(0); }
  .av-gamers-diagram {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .av-mascot-center, .av-dashed-line { display: none; }
  .av-polaroid-img {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 350px;
  }
  .av-negotiables-diagram {
    height: auto;
    flex-wrap: wrap;
    gap: 20px;
  }
  .av-icon, .av-mascot-megaphone {
    position: static;
    transform: none !important;
  }
  .av-mascot-megaphone {
    order: -1;
    margin-bottom: 30px;
  }
}

/* ════════════════════════════════════════════════
   MOBILE OVERRIDES
   ════════════════════════════════════════════════ */
/* Hide mobile-only elements on desktop */
.av-mobile-promo {
  display: none;
}
.marquee-mobile {
  display: none;
}
.av-mobile-line {
  display: none;
}
.av-non-negotiables-mobile {
  display: none;
}
.av-how-phases-mobile {
  display: none;
}

@keyframes contactBubbleFloat {
  0%, 100% { transform: translateX(40px) translateY(0px); }
  50%       { transform: translateX(40px) translateY(-12px); }
}
@keyframes contactMascotFloat {
  0%, 100% { transform: translateX(-120px) translateY(0px); }
  50%       { transform: translateX(-120px) translateY(-12px); }
}

@keyframes marquee-scroll-mobile {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
  /* Override mobile.css scroll lock — Arcadeverse has no #app container */
  html.mobile-mode:has(.arcadeverse-layout),
  html.mobile-mode body:has(.arcadeverse-layout) {
    height: auto !important;
    overflow-y: auto !important;
  }

  /* Swap marquee: hide desktop, show mobile */
  .marquee-desktop {
    display: none !important;
  }
  .marquee-mobile {
    display: flex !important;
    width: max-content !important;
    animation: marquee-scroll-mobile 8s linear infinite !important;
  }
  .marquee-mobile img {
    height: 40px !important;
    width: auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }
  .av-marquee {
    margin-top: 70px !important;
    padding: 10px 0 !important;
  }

  /* Mobile decorative lines for For Gamers section */
  .av-mobile-line {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    height: 20% !important;
    width: auto !important;
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
  }
  .av-mobile-line-left {
    left: 10px !important;
    top: 413px !important;
  }
  .av-mobile-line-right {
    right: 40px !important;
    top: 800px !important;
    height: 16% !important;
  }

  /* Reduce gap between For Gamers and Non Negotiables */
  .av-gamers-section {
    margin-bottom: 100px !important;
  }

  /* Hide Non Negotiables desktop diagram, show mobile image */
  .av-negotiables-diagram {
    display: none !important;
  }
  .av-non-negotiables-mobile {
    display: block !important;
    width: 101% !important;
    max-width: 405px !important;
    height: auto !important;
    margin: -100px auto 0 !important;
  }

  /* Hide How we'll do it timeline image on mobile */
  .av-how-we-do-it .av-timeline {
    display: none !important;
  }
  .av-how-we-do-it .av-section-title {
    margin-top: 100px !important;
  }

  /* Contact section: match homepage mobile config */
  .arcadeverse-layout .contact-section {
    margin-top: 40px !important;
    margin-left: 0px !important;
    overflow: visible !important;
  }
  .arcadeverse-layout .contact-stage {
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    max-width: 390px !important;
    margin: 0 !important;
    min-height: 900px !important;
    transform: none !important;
  }
  .arcadeverse-layout .contact-mascot-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 390px !important;
    margin: 0 !important;
    pointer-events: none !important;
  }
  .arcadeverse-layout .heart-container {
    position: absolute !important;
    top: 300px !important;
    left: 80px !important;
    transform: scale(1.9) !important;
    transform-origin: top left !important;
  }
  .arcadeverse-layout .community-bubble {
    position: absolute !important;
    top: 230px !important;
    left: 180px !important;
    width: 130px !important;
    animation: contactBubbleFloat 3s ease-in-out infinite !important;
  }
  .arcadeverse-layout .community-mascot {
    position: absolute !important;
    top: 290px !important;
    left: 180px !important;
    width: 160px !important;
    animation: contactMascotFloat 3s ease-in-out infinite !important;
  }
  .arcadeverse-layout .contact-grid-box {
    position: absolute !important;
    top: 540px !important;
    left: -36.5px !important;
    width: 380px !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background:
      linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px),
      linear-gradient(180deg, rgba(30, 16, 68, 0.6) 0%, rgba(8, 6, 26, 0.9) 100%) !important;
    background-size: 40px 40px, 40px 40px, 100% 100% !important;
    border: 3px solid #9b5de5 !important;
    border-radius: 24px !important;
  }
  .arcadeverse-layout .contact-vector-tr,
  .arcadeverse-layout .contact-vector-bl { display: none !important; }
  .arcadeverse-layout .monki-form-title { display: none !important; }
  .arcadeverse-layout .monki-form {
    width: 100% !important;
    padding: 140px 20px 20px !important;
    gap: 16px !important;
    box-sizing: border-box !important;
  }
  .arcadeverse-layout .monki-form-row {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .arcadeverse-layout .monki-input {
    width: 100% !important;
    background: #FEFAC5 !important;
    border: 2px solid #b8b830 !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }
  .arcadeverse-layout .monki-textarea {
    min-height: 220px !important;
    resize: none !important;
  }
  .arcadeverse-layout .monki-submit {
    width: 100% !important;
    background: #f5d800 !important;
    border: 2px solid #b8b830 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    cursor: pointer !important;
    margin-top: 4px !important;
  }
  .arcadeverse-layout .submit-btn-img { display: none !important; }
  .arcadeverse-layout .monki-submit::after {
    content: 'Submit' !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #4a4a00 !important;
  }
  .arcadeverse-layout .footer-area { display: none !important; }
  .av-how-phases-mobile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 30px !important;
    margin-top: 30px !important;
  }
  .av-how-phases-mobile img {
    width: 99% !important;
    max-width: 385px !important;
    height: auto !important;
  }

  /* "For Gamers" image — match Non Negotiables title size */
  .av-gamers-section .text-center img {
    max-width: 300px !important;
    width: 80% !important;
  }

  /* Hide desktop hero content on mobile */
  .back-arrow,
  .av-hero-left,
  .av-hero-right {
    display: none !important;
  }

  /* Show mobile promo image */
  .av-mobile-promo {
    display: block !important;
    width: 115% !important;
    max-width: none !important;
    height: auto !important;
    margin: 70px auto 0 !important;
    margin-left: -20px !important;
    transform: scale(1.0) !important;
    transform-origin: top center !important;
  }

  .av-hero {
    flex-direction: column !important;
    min-height: auto !important;
    padding: 0 20px !important;
    transform: none !important;
  }

  /* Hide scroll arrow on mobile (phones already in the promo image) */
  .av-hero > img[alt="Scroll Down"] {
    display: none !important;
  }

  /* Show Monki logo in navbar header */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(8, 6, 26, 0.92) !important;
    backdrop-filter: blur(14px) !important;
    z-index: 2000 !important;
  }

  .navbar .logo-img {
    width: 68px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
  }
}
