@media (max-width: 780px) {
  body {
    background: #0c0a07;
  }

  .topbar {
    position: sticky;
    top: 0;
    min-height: 64px;
    padding: 10px 12px;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(12, 10, 7, 0.96);
    backdrop-filter: none;
  }

  .topnav,
  .topbar-right,
  .sidebar,
  .search .kbd {
    display: none !important;
  }

  .topbar-left {
    min-width: 0;
    flex: 1;
  }

  .topbar-left > div:last-child {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar > .search {
    order: 3;
    flex: 1 0 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 3px;
  }

  .shell {
    width: min(100% - 24px, var(--container));
    padding: 14px 0 28px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 6px;
  }

  .home-page::before {
    background:
      linear-gradient(180deg, rgba(8, 7, 6, 0.96) 0%, rgba(8, 7, 6, 0.78) 45%, rgba(8, 7, 6, 0.96) 100%),
      url("./images/war-riders-voxel-bg.png") center top / auto 100vh no-repeat;
  }

  .home-hero {
    min-height: 0;
  }

  .home-hero::before {
    inset: 8px;
  }

  .home-hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .platform-row,
  .stats {
    display: grid;
  }

  .server-address {
    width: 100%;
  }

  .world-card {
    min-height: 230px;
  }

  .hero-card h1 {
    font-size: clamp(32px, 11vw, 48px);
    line-height: 1.02;
  }

  .hero-art {
    min-height: 180px;
  }

  .tile-grid,
  .join-grid,
  .store-grid,
  .items-grid,
  .product-page,
  .product-feature-row,
  .pay-layout,
  .store-steps,
  .wiki-card-grid,
  .command-list {
    grid-template-columns: 1fr !important;
  }

  .product-page {
    padding: 12px;
  }

  .coin-checkout,
  .coin-checkout-form {
    grid-template-columns: 1fr;
  }

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

  .product-main-image {
    min-height: 320px;
  }

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

  .pay-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pay-item-price {
    grid-column: 1 / -1;
    text-align: left;
  }

  .product-feature-row {
    padding: 0;
  }

  .feature-strip,
  .store-message,
  .coin-message,
  .wiki-actions,
  .item-actions,
  .modal .ft,
  .controls-panel {
    display: grid;
  }

  .command-row {
    grid-template-columns: 1fr !important;
  }

  .ctl,
  .ctl.search {
    width: 100%;
    min-width: 0;
  }

  .hero-actions .btn,
  .feature-actions .btn,
  .modal .ft .btn {
    width: 100%;
  }

  .site-menu {
    top: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 6px;
  }

  .wiki-layout {
    display: block;
  }

  .wiki-toc {
    display: none;
  }

  .site-footer-inner {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .store-message-actions,
  .coin-message-actions {
    justify-content: stretch;
  }

  .store-message-actions .btn,
  .coin-message-actions .btn {
    width: 100%;
  }
}
