@font-face {
  font-family: "Tw Cen MT";
  src: url("./Tw%20Cen%20MT.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.mobile-menu-toggle { display: none; }

@media (max-width: 760px) {
  html, body { max-width: 100%; }
  body { overflow-x: clip; }

  .header, .studio-header {
    position: relative;
    z-index: 30;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    width: 100%;
    min-height: 68px !important;
    background: #000;
  }
  .brand, .studio-logo {
    display: flex;
    flex: 0 1 220px !important;
    width: auto !important;
    min-width: 0;
    max-width: calc(100% - 108px);
    height: 68px !important;
    margin: 0 !important;
    padding: 13px 14px !important;
    border: 0 !important;
  }
  .brand img, .studio-logo img {
    display: block;
    width: 100%;
    max-height: 46px;
    height: auto;
    object-fit: contain;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 46px;
    margin: 0 14px 0 8px;
    padding: 9px 12px;
    border: 1px solid #42484a;
    border-radius: 4px;
    background: #090c0d;
    color: #f5f5f5;
    font: 16px/1.3 "Tw Cen MT", "Microsoft YaHei", "PingFang SC", sans-serif;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus-visible,
  [data-menu-open="true"] .mobile-menu-toggle {
    background: #00d6dc;
    border-color: #00d6dc;
    color: #000;
  }
  #siteNavigation {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 68px);
    margin: 0;
    padding: 8px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px;
    border: 1px solid #252b2e;
    background: #000;
    box-shadow: 0 20px 34px rgba(0,0,0,.75);
  }
  [data-menu-open="true"] #siteNavigation { display: grid !important; }
  #siteNavigation a {
    display: flex;
    min-width: 0;
    min-height: 54px;
    height: auto !important;
    padding: 10px 7px !important;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal !important;
    overflow-wrap: anywhere;
    border: 0;
  }
  main.hero, .hero { min-height: calc(100svh - 68px); }
  .back, .hero-cta, .download-button { min-height: 48px; }

  /* The 3:1 desktop banner needs enough height for its caption on a phone. */
  .advertising-frame {
    width: 100% !important;
    height: clamp(220px, 58vw, 300px) !important;
    aspect-ratio: auto !important;
  }
  .banner-caption {
    left: 16px;
    right: 16px;
    bottom: 35px;
    max-width: calc(100% - 32px);
    gap: 4px;
  }
  .banner-caption-title { font-size: clamp(19px, 5vw, 25px); }
  .banner-caption-description { font-size: 13px; line-height: 1.4; }
  .banner-dots { bottom: 10px; }
  .banner-control { width: 38px; min-height: 46px; }
  .banner-control.prev { left: 5px; }
  .banner-control.next { right: 5px; }
  .format-tab, .item-action, .category-buy { min-height: 46px; }
  .item-actions { width: 100%; justify-content: stretch; }
  .item-actions .item-action { flex: 1 1 125px; min-width: 0; }

  .product-hero { margin-top: 20px; }
  .download-action { width: 100%; flex-direction: column; align-items: stretch; }
  .download-action .download-button {
    flex: none;
    width: 100%;
    min-height: 50px;
    overflow-wrap: anywhere;
  }
  .download-action .download-note { flex: none; }
  .download-card { width: 100%; padding: 26px 20px; }
  .download-card > .download-button { width: 100%; }
}

@media (max-width: 380px) {
  #siteNavigation { grid-template-columns: 1fr !important; }
  #siteNavigation a { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle { transition: none; }
}
