/* V24 - section-safe 3D compositions and complete DApp logos.
   Intentionally loaded after V23 responsive styles. */

/* The two moving scenes should fit within their own page, not be cropped by a
   section boundary on short laptops or while responsive breakpoints switch. */
@media (min-width: 901px) {
  main > .hero .hero-globe-webgl {
    height: min(680px, calc(100svh - 112px)) !important;
    width: min(900px, 67vw, calc((100svh - 112px) * 1.38)) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  main > .about .about-inner { position: relative; }
  main > .about .coin-visual {
    height: min(510px, calc(100svh - 184px)) !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    right: 0 !important;
    max-width: 56% !important;
  }
}
@media (min-width:901px) and (max-height:680px) {
  main > .hero .hero-globe-webgl {
    height: min(540px, calc(100svh - 102px)) !important;
    width: min(720px, 58vw, calc((100svh - 102px) * 1.33)) !important;
  }
  main > .about .coin-visual { height: min(395px, calc(100svh - 164px)) !important; }
}
@media (min-width:761px) and (max-width:900px) {
  main > .hero .hero-globe-webgl {
    height: min(570px, calc(100svh - 110px)) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  main > .about .coin-visual {
    height: min(425px, calc(100svh - 185px)) !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
}
@media (max-width:760px) {
  main > .hero .hero-globe-webgl {
    top: 70px !important;
    height: min(465px, calc(100svh - 342px)) !important;
  }
  main > .about .about-inner {
    min-height: max(880px, 105svh) !important;
    padding-bottom: 395px !important;
  }
  main > .about .coin-visual {
    top: auto !important;
    bottom: 50px !important;
    transform: none !important;
    max-width: 100% !important;
    right: 0 !important;
    height: min(370px, 44svh) !important;
  }
}
@media (max-width:460px) {
  main > .hero .hero-globe-webgl {
    top: 60px !important;
    height: clamp(265px, 43svh, 390px) !important;
  }
  main > .about .about-inner {
    min-height: max(810px, 102svh) !important;
    padding-bottom: 340px !important;
  }
  main > .about .coin-visual {
    width: min(100%, 430px) !important;
    max-width: 100% !important;
    right: 0 !important;
    bottom: 48px !important;
    height: min(320px, 41svh) !important;
  }
}

/* Specificity fix: .dapp-options button span from v4.css used flex:1 on the
   logo container too, stretching and clipping all 5 wallet images. */
.dapp-options button > .dapp-mark.dapp-mark-image {
  box-sizing: border-box;
  flex: 0 0 52px !important;
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  border-radius: 13px;
  background: #111a3e !important;
}
.dapp-options button > .dapp-mark.dapp-mark-image img {
  display: block !important;
  flex: none !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 7px;
}
.dapp-options button > span:not(.dapp-mark) { flex: 1 1 auto; min-width: 0; }
.dapp-options button > i { flex: 0 0 auto; }
@media (max-width:460px) {
  .dapp-options button { gap: 12px; padding: 10px 11px; }
  .dapp-options button > .dapp-mark.dapp-mark-image {
    flex-basis: 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
  }
}
