/* Mobile-first Criccasm — last-loaded. Base is a phone; larger screens enhance. */

html, body {
  max-width: 100%;
  overflow-x: clip;
}

img, video, svg, canvas, iframe {
  max-width: 100%;
  height: auto;
}

.wrap,
main,
.vision-shop,
.vision-stage,
.live-grid,
.news-grid,
.shop-grid,
.shop-layout,
.footer-grid {
  max-width: 100%;
  min-width: 0;
}

.wrap {
  width: auto !important;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box;
  min-width: 0;
}

.nav {
  padding: 0;
  box-sizing: border-box;
}

.nav-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  gap: 12px;
  padding: 12px 16px;
  min-width: 0;
  box-sizing: border-box;
}

.brand img.lockup-img { height: 32px; }

.nav-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: none;
  place-items: center;
}

.nav-bag {
  width: 40px;
  height: 40px;
}

.eyebrow,
.hero p.lede,
.page-hero p,
.page-hero h1,
.story h3,
.story p,
.comms,
.board-meta,
.legal-hero h1,
.legal-body h2,
.legal-note,
.legal-alert,
.legal-body p,
.legal-body li,
.vision-lede,
.vision-dock p,
.kit-card .line {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-hero h1,
.legal-body h2,
.legal-note,
.legal-alert {
  white-space: normal !important;
}

.eyebrow {
  display: inline-block;
  max-width: 100%;
  white-space: normal !important;
  line-height: 1.35;
  box-sizing: border-box;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.hero h1 .hero-line,
.hero h1 .hero-jumble {
  white-space: nowrap !important;
  overflow: hidden;
  max-width: 100%;
}

.hero-inner {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px 48px;
  box-sizing: border-box;
  min-width: 0;
  gap: 28px;
}

.store-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.store-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.hero-stats {
  justify-content: space-around;
  gap: 8px 12px;
  width: 100%;
}

.hero-stats .stat {
  min-width: 0;
  text-align: center;
  flex: 1 1 88px;
}

.hero-stats .stat .l {
  font-size: 10px;
  letter-spacing: 0.2px;
}

.board,
.match-card,
.story,
.kit-card,
.lead,
.card,
.vision-window {
  max-width: 100%;
  box-sizing: border-box;
}

.board,
.match-card {
  overflow: visible;
}
.board::after { display: none; }

.hero p.lede,
.page-hero p {
  max-width: 100% !important;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.score-row {
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
}

.score-row .name {
  flex: 0 0 auto;
}

.score-row .runs,
.score-row span:last-child {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  position: static !important;
}

.board-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.live-grid,
.news-grid {
  grid-template-columns: 1fr !important;
}

.story .foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.vision-stage { padding-left: 10px; padding-right: 10px; }

.vision-cta-row {
  flex-wrap: wrap;
  width: 100%;
}

.vision-look {
  min-width: 0;
}

.shop-toolbar {
  align-items: stretch;
}

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

.footer-bottom,
.legal-bar {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.shop-modal { padding: 12px; }
.shop-modal .sheet {
  width: 100%;
  max-height: 92svh;
  padding: 16px;
  border-radius: 18px;
}

.bag-drawer { width: min(420px, 100%); }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
}

@media (min-width: 640px) {
  .wrap {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .hero-inner {
    padding: 0 24px 60px;
    gap: 48px;
  }
  .brand img.lockup-img { height: 40px; }
  .store-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .store-btn {
    width: auto;
    flex: 1 1 160px;
  }
  .live-grid { grid-template-columns: 1fr 1fr !important; }
  .news-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-bottom,
  .legal-bar {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 921px) {
  .hero h1 .hero-line { white-space: nowrap !important; }
}

@media (min-width: 981px) {
  .nav-toggle { display: none; }
  .live-grid { grid-template-columns: 1fr 1fr !important; }
  .news-grid { grid-template-columns: 1.2fr 1fr 1fr !important; }
}

@media (max-width: 900px) {
  .vision-kicker,
  .vision-split,
  .vision-copy {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .vision-dock,
  .vision-specs {
    width: calc(100% - 24px) !important;
    margin-left: 12px;
    margin-right: 12px;
  }
  .vision-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .dock-rate { flex-wrap: wrap; }
  .vision-pill,
  .vision-look {
    justify-content: center;
  }
  .vision-split {
    font-size: clamp(28px, 9vw, 44px) !important;
  }
}

@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr !important; }
  .shop-trust { grid-template-columns: 1fr 1fr !important; }
  .pillars,
  .games-row,
  .about-grid { grid-template-columns: 1fr !important; }
  .hero-stats { gap: 12px 18px; }
  .page-hero h1 { font-size: clamp(26px, 8vw, 36px) !important; }
  .hero h1 { font-size: 28px !important; }
  .score-row .name,
  .score-row .runs,
  .score-row span { font-size: 18px; }
  .score-row.away .name,
  .score-row.away .runs { font-size: 16px; }
}
