/* Shared mobile navigation and overflow guard. */
.mobile-menu-toggle { display: none; }
@media (max-width: 700px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { width: 100%; min-width: 0; }
  main, header, section, footer, .wrap, .navin,
  .how-grid, .how-copy, .buy-card, .front-kitchen-in,
  .community-hub, .nominate-panel, .menu-board,
  .utility-grid, .utility-lead, .utility-list,
  .utility-card, .section-head, .method, .method > div,
  .steps, .step, .menu-grid, .card,
  .grid, .hero-grid, .kitchen-grid, .actions-grid, .rewards,
  .weekly-list, .weekly, .panel, .metric, .reward-card,
  .table-wrap, .toolbar, .toolbar-actions, .login, .form,
  .row, .form-row, .top, .hero, .section, .phase, .campaign {
    min-width: 0;
    max-width: 100%;
  }
  .wrap { width: 100%; }
  img, svg, video, canvas { max-width: 100%; }
  h1, h2, h3, h4, p, a, span, code, button {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  input, textarea, select, button { max-width: 100%; min-width: 0; }
  button, .btn, .button, .utility-btn { min-height: 42px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { max-width: 100%; }
  .table th, .table td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
  .address, .wallet, .sub, .evidence, .proof, code { overflow-wrap: anywhere; word-break: break-word; }
  .card-top, .nomination-top, .nomination-meta, .row-top,
  .weekly-top, .serve-score, .toolbar, .toolbar-actions,
  .hero-actions, .hero-actions, .buy-actions { flex-wrap: wrap; }
  .toolbar-actions { align-items: stretch; }
  .toolbar-actions > * { max-width: 100%; }
  .hero h1 { max-width: 100%; }
  .hero p, .section-head p, .hero-copy, .panel p { max-width: 100%; }
  .history { max-width: 100%; overflow: hidden; }
  .empty { overflow-wrap: anywhere; }
  .top { display: block; }
  .top > span { display: block; margin-bottom: 8px; }
  .nav { height: auto !important; min-height: 68px; }
  .navin {
    width: 100%;
    flex-wrap: wrap !important;
    justify-content: space-between;
    gap: 8px 14px !important;
    padding-top: 11px !important;
    padding-bottom: 10px !important;
  }
  .brand { max-width: 100%; font-size: 17px !important; }
  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 36px;
    margin-left: auto;
    padding: 7px 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line, rgba(211,247,245,.15));
    background: transparent;
    color: var(--ink, #effcf9);
    cursor: pointer;
  }
  .mobile-menu-toggle span { display: block; width: 21px; height: 1px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
  .mobile-menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .links {
    display: none !important;
    width: 100%;
    max-width: 100%;
    padding: 8px 0 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    border-top: 1px solid var(--line, rgba(211,247,245,.15));
  }
  .nav.menu-open .links { display: flex !important; }
  .links a { flex: 0 0 auto; padding: 12px 2px; border-bottom: 1px solid var(--line, rgba(211,247,245,.1)); }
  .links .nav-cta { text-align: center; margin-top: 8px; }

  .how-copy, .buy-card { padding: 22px 18px; }
  .how-copy h2 { font-size: clamp(35px, 11vw, 52px) !important; }
  .how-copy > p, .buy-card p { max-width: none; }
  .buy-card h3 { font-size: clamp(32px, 10vw, 42px) !important; }
  .contract { min-width: 0; }
  .contract code { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
  .buy-actions { min-width: 0; }
  .buy-actions .btn { max-width: 100%; }
  .front-kitchen-in { min-width: 0; }
}

@media (max-width: 430px) {
  .wrap { padding-left: 16px !important; padding-right: 16px !important; }
  .panel, .card, .metric, .reward-card, .action-card,
  .how-copy, .buy-card, .nominate-panel, .menu-board { padding: 18px !important; }
  .hero h1 { font-size: clamp(46px, 15vw, 62px) !important; }
  .hero h2, .section h2, .panel h2 { font-size: clamp(28px, 9vw, 40px) !important; }
  .btn, .button, .utility-btn { width: 100%; justify-content: center; text-align: center; }
  .actions, .hero-actions, .buy-actions { width: 100%; }
  .copy { flex: 0 0 auto; }
  .contract { align-items: flex-start; }
}
