@media (width <= 1100px) {
  .product-more-card .product-copy {
    grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.2fr);
  }

  .product-more-card .product-request {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (width <= 900px) {
  .mobile-menu,
  .mobile-menu-backdrop {
    display: block;
  }

  .site-header.is-menu-open {
    position: fixed;
    background: #171716;
  }

  .mobile-menu {
    z-index: 2;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    pointer-events: none;
  }

  .mobile-menu.is-open {
    pointer-events: auto;
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 1;
    top: 96px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100vw;
    height: calc(100dvh - 96px);
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(5, 5, 5, 0.62);
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
  }

  .site-header.is-menu-open .mobile-menu-backdrop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .product-cards article,
  .product-cards article:first-child,
  .product-cards article:nth-child(2),
  .product-cards article:last-child,
  .product-more-card {
    padding-right: 0 !important;
    padding-left: 0 !important;
    border-right: 0 !important;
  }

  .product-more-card .product-copy {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  }

  .product-more-card .product-request {
    grid-column: 1 / -1;
  }

  .quest-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quest-mobile-controls {
    display: flex;
  }

  .quest-desktop-help {
    display: none;
  }

  .quest-stage {
    min-height: 600px;
  }

  .quest-shell.fullscreen .quest-stage {
    height: auto;
    min-height: 0;
  }

  .fight-arena-shell {
    width: 100%;
    height: 100%;
    border: 0;
    box-shadow: none;
  }

  .fight-titlebar {
    min-height: 42px;
  }

  .fight-titlebar b {
    font-size: 10px;
  }

  .fight-hud {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 8px;
  }

  .fight-side b {
    font-size: 7px;
  }

  .fight-health {
    height: 13px;
  }

  .fight-clock b {
    font-size: 20px;
  }

  .fight-footer {
    padding: 7px;
  }

  .fight-help {
    display: none;
  }

  .fight-mobile-controls {
    display: flex;
  }
}

@media (width <= 620px) {
  .mobile-menu {
    max-height: calc(100dvh - 72px);
  }

  .mobile-menu-backdrop {
    top: 72px;
    height: calc(100dvh - 72px);
  }

  .product-more-card {
    grid-template-columns: 62px minmax(0, 1fr) !important;
    padding-block: 28px !important;
  }

  .product-more-card .product-copy {
    display: block;
  }

  .product-more-card .product-name {
    margin-bottom: 12px;
  }

  .product-more-card .product-use {
    margin-bottom: 18px;
  }

  .product-request {
    width: 100% !important;
    min-width: 0;
    padding: 13px 14px;
  }

  .contact-form input,
  .contact-form textarea,
  .quest-lead input,
  .quest-lead textarea {
    font-size: 16px;
  }

  .quest-meta {
    grid-template-columns: 1fr;
  }

  .quest-meta span {
    padding: 14px 16px;
  }

  .quest-intro h2 {
    font-size: clamp(42px, 13vw, 50px);
  }

  .quest-topbar {
    height: 62px;
    padding: 8px 10px;
  }

  .quest-topbar > div b {
    max-width: 235px;
    font-size: 10px;
  }

  .quest-task {
    top: 12px;
    right: 60px;
    left: 8px;
    max-width: none;
    padding: 10px 11px;
  }

  .quest-task b {
    font-size: 13px;
  }

  .quest-task small {
    font-size: 9px;
    line-height: 1.4;
  }

  .quest-toast {
    top: auto;
    right: 8px;
    bottom: 184px;
    left: 8px;
    width: auto;
  }

  .quest-toast > div {
    font-size: 9px;
  }

  .quest-achievement {
    top: 146px;
    width: calc(100% - 16px);
  }

  .quest-interact {
    bottom: 107px;
  }

  .cat-state {
    right: 8px;
    bottom: 158px;
    left: auto;
    max-width: 58%;
  }

  .dog-state {
    right: auto;
    bottom: 158px;
    left: 8px;
    max-width: 58%;
  }

  .quest-dpad {
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(2, 50px);
  }

  .quest-action {
    width: 96px;
    height: 76px;
  }

  .quest-fight {
    padding: 0;
  }

  .fight-canvas-wrap canvas {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .fight-mobile-controls {
    align-items: stretch;
  }

  .fight-mobile-controls > div {
    flex: 1;
  }

  .fight-mobile-controls button {
    flex: 1;
    min-width: 0;
    min-height: 52px;
  }

  .fight-start-panel,
  .fight-result {
    display: block;
    padding: 20px 14px;
  }

  .fight-start-panel h3,
  .fight-result h3 {
    font-size: 32px;
  }

  .fight-start-panel p,
  .fight-result p {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .fight-keys {
    display: none;
  }

  .fight-discount b {
    font-size: 72px;
  }

  .fight-announcer {
    font-size: 38px;
  }

  .fight-result-actions {
    flex-direction: column;
    gap: 10px;
  }
}

@media (width <= 390px) {
  .quest-topbar > div b {
    max-width: 200px;
  }

  .quest-secrets {
    font-size: 8px;
  }

  .fight-titlebar b {
    max-width: 255px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (pointer: coarse) and (width > 900px) {
  .quest-mobile-controls,
  .fight-mobile-controls {
    display: flex;
  }

  .quest-desktop-help,
  .fight-help {
    display: none;
  }
}

@media (orientation: landscape) and (height <= 520px) {
  .fight-titlebar {
    display: none;
  }

  .fight-hud {
    padding-block: 5px;
  }

  .fight-footer {
    padding-block: 4px;
  }

  .fight-mobile-controls button {
    min-height: 42px;
  }

  .fight-start-panel,
  .fight-result {
    padding-block: 10px;
  }
}

