@media (max-width: 1024px) {
  .wrap, .nav-inner { width: min(1200px, 100% - 36px); }
  .section { padding: 56px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { padding: 54px 0 56px; gap: 38px; }
  .hero h1 { font-size: clamp(38px, 10vw, 60px); }
  .hero .lead { font-size: 15.5px; }
  .hero-stack { height: 330px; transform-origin: center; }
  .stats { gap: 22px; }
  .rb-tabs { grid-template-columns: repeat(2, 1fr); }
  .rb-tab { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .wrap, .nav-inner { width: min(1200px, 100% - 32px); }
  .section { padding: 44px 0; }

  .nav-inner { height: 62px; gap: 14px; }
  .logo { font-size: 15px; }
  .logo-mark { width: 30px; height: 30px; }
  .nav-links { top: 62px; }
  .nav-links a { padding: 14px 12px; font-size: 14px; }
  .nav-cta { gap: 6px; }
  .auth-slot .user-pill span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .hero { overflow: hidden; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-stack { height: 300px; }
  .stack-card { width: min(88vw, 320px); }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .stats strong { font-size: 20px; }
  .stats span { font-size: 10px; }

  .grid { grid-template-columns: 1fr; gap: 14px; }
  .market-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }

  .p-grid { grid-template-columns: 1fr; }
  .p-media video, .p-media iframe, .p-media img { width: 100%; height: auto; }
  .checks, .inc-grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .card-actions { grid-template-columns: 1fr; }

  .team-grid, .games-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

  .r-wrap { padding-top: 28px; }
  .r-head h1 { font-size: clamp(28px, 8vw, 38px); }
  .panel { padding: 18px; }
  .rb-open { padding: 16px; }
  .rb-toolbar { gap: 6px; }
  .rb-btn { padding: 9px 12px; font-size: 12.5px; }

  .consent { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
  .consent .consent-actions { display: flex; gap: 8px; }
  .consent .consent-actions .btn { flex: 1; justify-content: center; }
  .modal-card { width: min(100% - 24px, 460px); padding: 22px; max-height: 88vh; overflow-y: auto; }

  .stats span, .tag, .card-badge, .gtag, .rb-status, .label { font-size: 11px; }
  .nav-links a, .rb-row, .chip, .btn { -webkit-tap-highlight-color: rgba(255, 255, 255, .08); }
  .btn-lg { padding: 14px 20px; }
}

@media (max-width: 480px) {
  .wrap, .nav-inner { width: min(1200px, 100% - 28px); }
  .hero h1 { font-size: clamp(34px, 11vw, 46px); letter-spacing: -.035em; }
  .hero-stack { height: 250px; }
  .stack-card { width: min(84vw, 280px); }
  .stack-card.s1, .stack-card.s2 { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .contact-title { font-size: clamp(36px, 13vw, 52px); }
  .rb-row { grid-template-columns: auto 1fr; padding: 13px 12px; }
  .rb-row .rb-avatar { display: none; }
  .rb-date { font-size: 11px; }
  .rb-detail-bar { flex-wrap: wrap; }
  .rb-detail-bar .rb-btn { flex: 1 1 calc(50% - 4px); }
  .steps { grid-template-columns: 1fr; }
  .tp-summary, .dev-row { flex-direction: column; align-items: stretch; }
}

@media (hover: none) {
  .bg-cursor { display: none; }
  .card:hover, .stack-card:hover { transform: none; }
  .hero-stack { animation: none; }
}

@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 720px) {
    .consent { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    .footer { padding-bottom: env(safe-area-inset-bottom); }
  }
}
