/* =================================================================
   mc.zone — mobile polish (overrides, last in cascade)
   ================================================================= */

/* Tablet breakpoint */
@media (max-width: 900px) {
  .promo-timer { display: none !important; }
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .hero-trust .trust-divider { display: none; }
  .trust-item { text-align: center; }
  .trust-item strong { font-size: 18px; }
  .trust-item span { font-size: 11px; }

  .twk-panel { width: 240px !important; right: 10px !important; bottom: 10px !important; }
}

/* Phone breakpoint */
@media (max-width: 640px) {
  /* Container padding */
  .container { padding-left: 16px; padding-right: 16px; }
  .header-inner { padding: 10px 16px; }

  /* Hero */
  .hero { padding: 60px 0 40px; }
  .hero-title { font-size: 38px; line-height: 1.05; }
  .hero-sub { font-size: 14px; }
  .hero-logo-wrap { height: 200px; }
  .hero-logo-wrap img { width: 180px !important; height: 180px !important; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .ip-card { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .ip-value { font-size: 16px !important; }
  .ip-meta { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-chips { flex-wrap: wrap; justify-content: center; }
  .hero-trust { padding: 16px; }
  .hero-trust { grid-template-columns: 1fr; }
  .hero-trust .trust-item { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); }
  .hero-trust .trust-item:last-child { border-bottom: 0; }
  .hero-trust .trust-item span { text-align: right; }

  /* Section heads */
  .section-head h2, h2.section-title { font-size: 26px !important; line-height: 1.15; }
  .section-head .eyebrow { font-size: 10px; }

  /* Features */
  .features { padding: 50px 0; }
  .feature-card { padding: 18px; }

  /* HowTo */
  .howto { padding: 50px 0; }
  .howto-card { padding: 20px; }
  .howto-num { width: 44px; height: 44px; font-size: 18px; margin-bottom: 14px; }
  .howto-title { font-size: 16px; }

  /* Shop */
  .shop { padding: 50px 0 60px; }
  .shop-panel { padding: 16px; border-radius: 14px; }
  .shop-detail { padding: 16px; min-height: auto; }
  .priv-row { grid-template-columns: 40px 1fr auto; gap: 10px; padding: 8px; }
  .priv-row-arrow { display: none; }
  .priv-row-icon { width: 40px; height: 40px; }
  .priv-row-icon svg { width: 32px; height: 32px; }
  .priv-row-title { font-size: 13px; }
  .priv-row-tag { font-size: 9px; }
  .priv-row-price-value { font-size: 14px; }

  .shop-panel-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .period-tabs { width: 100%; }
  .period-tab { flex: 1; text-align: center; padding: 8px 10px; font-size: 12px; }

  .detail-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .detail-hero-icon { width: 60px; height: 60px; }
  .detail-hero-icon svg { width: 60px; height: 60px; }
  .detail-hero-title { font-size: 24px; }
  .detail-hero-bonus { font-size: 12px; }

  .perk-cmd { font-size: 11px; }
  .perk-desc, .perk-item { font-size: 12px; }
  .stat-list li { font-size: 12px; flex-wrap: wrap; }

  .checkout-pay { padding: 14px 16px; }
  .checkout-price-value { font-size: 28px; }
  .btn-checkout { padding: 14px 20px; font-size: 13px; }
  .pay-methods { font-size: 11px; }
  .pay-pill { padding: 3px 8px; font-size: 10px; }

  /* Tokens */
  .tokens { padding: 50px 0; }
  .token-builder-left, .token-builder-right { padding: 18px; }
  .token-amount-display { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; }
  .token-coin-big { width: 56px; height: 56px; font-size: 28px; }
  .token-amount-num { font-size: 28px; word-break: break-all; line-height: 1.1; }
  .token-amount-text { width: 100%; min-width: 0; }
  .token-summary-title { font-size: 18px; }
  .token-rub-input input { width: 70px; font-size: 16px; }
  .token-presets { grid-template-columns: 1fr 1fr; }

  /* Top players */
  .live-players { padding: 50px 0; }
  .top-tabs { padding: 4px; gap: 4px; }
  .top-tab { grid-template-columns: 1fr; grid-template-rows: auto; padding: 10px 12px; }
  .top-tab-icon { display: none; }
  .top-tab-label { font-size: 13px; text-align: center; }

  /* Podium — collapse to single column with side ranking */
  .podium {
    grid-template-columns: 1fr;
    gap: 10px; align-items: stretch;
    margin: 28px 0 16px;
  }
  .podium-col {
    flex-direction: row !important;
    align-items: center !important;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; padding: 14px;
    border-left: 4px solid var(--medal);
  }
  .podium-player {
    flex-direction: row !important; gap: 12px; align-items: center;
    padding: 0 !important; flex: 1; min-width: 0;
  }
  .podium-medal { margin-bottom: 0; flex-shrink: 0; }
  .podium-avatar, .rank-1 .podium-avatar { width: 44px !important; height: 44px !important; font-size: 13px !important; border-width: 2px; }
  .podium-online { width: 10px; height: 10px; border-width: 2px; }
  .podium-nick { font-size: 13px; margin-top: 0; flex-shrink: 0; }
  .podium-rank { font-size: 11px; }
  .podium-value { margin-top: 0; margin-left: auto; }
  .podium-value strong, .rank-1 .podium-value strong { font-size: 16px !important; }
  .podium-value span { font-size: 11px; }
  .podium-base { display: none; }

  .live-list { border-radius: 12px; }
  .live-row {
    grid-template-columns: 28px 1fr auto;
    gap: 8px; padding: 10px 12px; font-size: 11px;
  }
  .live-row .live-rank { display: none; } /* hide rank on phones, keep nick + value */
  .live-row.live-head { display: none; }
  .live-avatar { width: 28px; height: 28px; font-size: 10px; }
  .live-nick { font-size: 12px; }
  .live-hours { font-size: 11px; }

  /* Reviews */
  .review-card { width: 280px; padding: 18px; }
  .review-text { font-size: 13px; }

  /* FAQ */
  .faq { padding: 50px 0; }
  .faq-q { font-size: 14px; padding: 14px 16px; }
  .faq-a { font-size: 13px; }

  /* Footer */
  .site-footer { padding: 40px 0 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .footer-legal p { font-size: 11px; }

  /* Header — show only logo + CTA */
  .brand-text { display: none; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary { padding: 8px 14px; font-size: 12px; }

  /* Modal */
  .modal { padding: 20px; }
  .modal-title { font-size: 20px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-title { font-size: 32px; }
  .ip-meta { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* Burger + mobile menu */
.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .15s ease;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 84%; max-width: 360px;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: 80px 20px 20px;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu.open .mobile-menu-inner { transform: translateX(0); }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-size: 16px; font-weight: 500;
  color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: all .15s ease;
}
.mobile-nav-link:hover { background: rgba(255,255,255,0.04); }
.mobile-nav-link.active { background: rgba(34,197,94,0.08); border-color: var(--accent); color: var(--accent); }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

@media (max-width: 720px) {
  .burger { display: flex; }
  .header-nav { display: none; }
  /* Override the desktop hide of brand-text & ghost btn so burger row stays clean */
  .brand-text { display: flex !important; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary.btn-sm { display: none; }
}
