/* Mobile system layer (≤720px). Loaded last, after every other stylesheet.
   The older sheets each set their own mobile sizes, so headings, labels and buttons
   ended up out of order (an h2 larger than the page h1, 7–9px labels, 11px buttons).
   This file is the single source of mobile hierarchy: new content that uses plain
   h1–h4 / p / .button inside a .page gets the right size without extra rules.
   Sizes here intentionally use !important so earlier per-section rules cannot reorder the scale. */
@media (max-width:720px){
 :root{
  --m-hero:38px;   /* home hero headline only */
  --m-title:30px;  /* page title (h1) */
  --m-h2:25px;     /* section heading */
  --m-h3:20px;     /* card / sub-section heading */
  --m-h4:17px;     /* item heading */
  --m-body:15px;   /* running text */
  --m-small:13px;  /* captions, secondary text */
  --m-label:12px;  /* eyebrows, chips, tags — never smaller */
  --m-tap:44px;    /* minimum touch height */
 }

 /* Headings: one scale for every page. */
 .page h1{font-size:var(--m-title)!important;line-height:1.2!important}
 #home .stage h1{font-size:var(--m-hero)!important;line-height:1.12!important}
 .page h2{font-size:var(--m-h2)!important;line-height:1.28!important;text-wrap:balance}
 .page h3{font-size:var(--m-h3)!important;line-height:1.32!important;text-wrap:balance}
 .page h4{font-size:var(--m-h4)!important;line-height:1.4!important}

 /* Buttons: readable text and a real touch target. */
 .page a.button,.page button.button{min-height:var(--m-tap);font-size:14px!important;display:inline-flex;align-items:center;justify-content:center}
 #home .stage .button-row{display:flex;flex-wrap:wrap;gap:10px}

 /* Labels that were 7–11px: hero kicker/tags/chapter/slide label, image bars, captions, feature numbers. */
 #home .stage-kicker span,#home .stage-overline,#home .stage-tags span,#home .stage-chapter span,
 #home .stage-bottom span,#home #stage-slide-label,#home .effect-bar span,#home .ingame-state,
 #home .home-features article>span,#home .preview-state-label{font-size:var(--m-label)!important;letter-spacing:.06em}
 #home #finale-title{font-size:var(--m-h2)!important}
 #home .finale-meta span,#home #detail-kicker,#home #detail-position{font-size:var(--m-label)!important;letter-spacing:.06em}
 #home .stage-switcher button,#home .compare-controls button{font-size:13px!important}
 #home .proof-options button span{font-size:13px!important}
 #home .image-caption,#home .image-caption a{font-size:var(--m-small)!important}

 /* Count and status chips on other pages. */
 .page .start-number,.page .update-latest,.page .update-new,.page .tabs span[id$="-count"],#home .detail-description small{font-size:var(--m-label)!important}

 /* Home hero: the avatar sits below the copy instead of behind the buttons. */
 #home .stage{min-height:1000px}
 #home .stage-slides .stage-avatar{top:470px!important;bottom:auto!important;height:calc(100% - 510px)!important;left:62%!important;translate:-71% 0!important}

 /* 1.2.77 banner: badge on its own line, heading on the h3 step, full-width action. */
 #home .release-banner{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding-block:28px!important}
 #home .release-badge{justify-self:start;font-size:15px!important;padding:6px 12px!important;border-radius:999px!important}
 #home .release-banner-copy>span{display:none}
 #home .release-banner h2{font-size:var(--m-h3)!important;line-height:1.4!important}
 #home .release-banner .button{justify-self:stretch;grid-column:auto!important}
}

/* 2026-10 home redesign: the new hero uses the hero size (a step above the page title), section titles h1-level. */
@media (max-width:720px){
 #home .hx-title{font-size:calc(var(--m-hero) + 6px)!important;line-height:1.12!important}
 #home .hn-title{font-size:var(--m-title)!important;line-height:1.2!important}
 #home .hn-path b{font-size:var(--m-title)!important}
 .hx-eyebrow,.hn-eyebrow,.hx-tags{font-size:12px!important}
}
