/* QuadCOM V60 — final landscape and optical-alignment contract. */
.btcIcon {
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform: none !important;
  align-self: center !important;
}

.qcCoin {
  background-position: 50% 50% !important;
  background-size: contain !important;
  background-origin: content-box !important;
}

@media (orientation: landscape) {
  html[data-qc-device="iphone13"] .app {
    position: fixed !important;
    inset: 0 !important;
    width: 100dvw !important;
    height: 100dvh !important;
    padding: 1px calc(var(--qc-safe-r, 47px) + 1px)
      calc(var(--qc-safe-b, 21px) + 1px)
      calc(var(--qc-safe-l, 47px) + 1px) !important;
    grid-template-rows: 24px minmax(0, 1fr) !important;
    gap: 2px !important;
    overflow: hidden !important;
  }

  html[data-qc-device="iphone13"] .top {
    height: 24px !important;
    min-height: 24px !important;
    grid-template-columns: minmax(112px, 1fr) repeat(9, auto) !important;
    gap: 2px !important;
    padding: 1px 2px !important;
    overflow: hidden !important;
  }

  html[data-qc-device="iphone13"] .brand { min-width: 104px !important; }
  html[data-qc-device="iphone13"] .brandCopy span { max-width: 106px !important; }
  html[data-qc-device="iphone13"] .btcPriceGroup {
    min-width: 96px !important;
    justify-content: flex-end !important;
  }
  html[data-qc-device="iphone13"] #price {
    inline-size: 11.2ch !important;
    min-inline-size: 11.2ch !important;
    font-size: 10.2px !important;
  }
  html[data-qc-device="iphone13"] .top .btn,
  html[data-qc-device="iphone13"] .top .badge {
    height: 20px !important;
    min-height: 20px !important;
    padding-inline: 4px !important;
    font-size: 5px !important;
  }

  html[data-qc-device="iphone13"] .cockpit {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    gap: 3px !important;
    overflow: hidden !important;
  }
  html[data-qc-device="iphone13"][data-qc-view="core"] .cockpit {
    grid-template-columns: minmax(0, 1.52fr) minmax(0, 1.03fr) minmax(0, 1.03fr) !important;
    grid-template-rows: 1fr 1fr !important;
    grid-template-areas: "chart fund micro" "chart trade risk" !important;
  }
  html[data-qc-device="iphone13"] .panel {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  html[data-qc-device="iphone13"] .chartHud {
    left: 6px !important;
    right: 6px !important;
    top: 23px !important;
    gap: 4px !important;
  }
  html[data-qc-device="iphone13"] .chart .tag {
    top: 60px !important;
  }
  html[data-qc-device="iphone13"] .hudBox { padding: 4px 5px !important; }
  html[data-qc-device="iphone13"] .horizonRail {
    left: 6px !important;
    right: 6px !important;
    bottom: 5px !important;
  }
  html[data-qc-device="iphone13"] .markerTag,
  html[data-qc-device="iphone13"] .chartConeTag { bottom: 26px !important; }
  html[data-qc-device="iphone13"] #qcHomeEdge {
    height: var(--qc-safe-b, 21px) !important;
    bottom: 0 !important;
    pointer-events: none !important;
  }
}
