/* mobile.css — final phone typography pass. Loaded after feature styles. */

@media (max-width: 760px), (pointer: coarse) {
  :root {
    --mobile-text: 0.88;
  }

  .boot-mark { font-size: clamp(34px, 11vw, 58px) !important; }
  .boot-sub { font-size: 10px !important; letter-spacing: 0.14em !important; }
  .boot-hint { font-size: 9px !important; }
  .boot-gate { gap: 8px !important; padding: 15px 16px 16px !important; border-radius: 10px !important; }
  .boot-gate-title { font-size: 14px !important; }
  .boot-gate-copy { font-size: 11px !important; line-height: 1.6 !important; }
  .boot-gate-retry { min-height: 38px !important; padding: 0 16px !important; }

  .m-word { font-size: clamp(38px, 16vw, 108px) !important; }
  .m-h { font-size: clamp(32px, 9.6vw, 48px) !important; margin: 7px 0 9px !important; }
  .m-debrief .m-h { font-size: clamp(24px, 7.2vw, 34px) !important; }
  .m-eyebrow, .m-k { font-size: 10px !important; letter-spacing: 0.18em !important; }
  .m-premise { font-size: 13px !important; line-height: 1.5 !important; }
  .m-tag, .m-note, .m-line { font-size: 9.5px !important; }
  .m-card { padding: 16px 18px !important; }
  .m-stats dt, .m-rating span { font-size: 11px !important; }
  .m-stats dd { font-size: 14px !important; }
  .m-rating b { font-size: 34px !important; }
  .btn { font-size: 13px !important; min-height: 42px !important; }
  .btn.primary { font-size: 15px !important; letter-spacing: 0.2em !important; }
  .btn.small { font-size: 10.5px !important; min-height: 32px !important; }
  .keys dt, .keys dd, .m-legend > div { font-size: 10.5px !important; }

  .h-k, .h-heading, .h-relays, .h-relays b, .h-tape b.ic { font-size: 9.5px !important; }
  .h-obj-t { font-size: 14px !important; }
  .h-plabel, .h-wm b { font-size: 10.5px !important; }
  .h-ammo-n, .h-ammo.infinite .h-ammo-n::after { font-size: 40px !important; }
  .h-ammo-r { font-size: 12px !important; }
  .h-ammo.infinite .h-ammo-r { font-size: 0 !important; }
  .h-ammo.infinite .h-ammo-r::after { font-size: 12px !important; }
  .h-hp-n { font-size: 24px !important; }
  .h-cue, .h-wname, .h-wm span { font-size: 9.5px !important; }
  .h-key { font-size: 15px !important; }
  .t-fire { font-size: 11px !important; }

  .panel-h { padding-top: 6px !important; }
  .tab { font-size: 12.5px !important; letter-spacing: 0.15em !important; }
  .panel-b h3 { font-size: 9.5px !important; }
  .panel-note { font-size: 9.5px !important; line-height: 1.5 !important; }
  .row label, .seg button, .toggle, .slider output { font-size: 11px !important; }
  .loc-card b { font-size: 16px !important; }
  .loc-card span { font-size: 9.5px !important; }

  .mp-chip { font-size: 9.5px !important; }
  .mp-online b { font-size: 13px !important; }
  .mp-online em, .mp-kd i, .mp-net { font-size: 8px !important; }
  .mp-kd b { font-size: 10.5px !important; }
  .mp-ping { font-size: 9px !important; }
  .mp-roster-btn { font-size: 8.5px !important; }
  .mp-fl { font-size: 10px !important; letter-spacing: 0.1em !important; }
  .mp-unit, .mp-unit b { font-size: 9.5px !important; }
  .mp-respawn-k { font-size: 8.5px !important; }
  .mp-respawn-num { font-size: clamp(48px, 15vw, 72px) !important; }
  .mp-respawn-line { font-size: 11px !important; }
  .mp-respawn-unit, .mp-respawn-unit .mp-unit-tag { font-size: 8px !important; }
  .mp-respawn-btn { font-size: 9.5px !important; padding: 9px 16px !important; }
  .mp-deathcam-head b { font-size: 8.5px !important; }
  .mp-deathcam-head span, .mp-deathcam-foot span { font-size: 7.5px !important; }
  .mp-roster-head b { font-size: 10px !important; }
  .mp-rr-name { font-size: 12px !important; }
  .mp-rr-kd, .mp-roster-board li, .mp-roster-board li b { font-size: 10px !important; }
  .mp-roster-name label { font-size: 8px !important; }
  .mp-roster-name input { font-size: 12px !important; }
  .mp-name-note, .mp-roster-hint { font-size: 8px !important; }
  .mp-title-line { font-size: 10.5px !important; }

  .party-head h2 { font-size: 24px !important; }
  .party-kicker, .party-status { font-size: 8.5px !important; }
  .party-intro { font-size: 11px !important; line-height: 1.5 !important; }
  .party-home-card h3 { font-size: 18px !important; }
  .party-home-card p { font-size: 10.5px !important; }
  .party-note, .party-rules { font-size: 8px !important; line-height: 1.5 !important; }
  .party-code-input input { font-size: 14px !important; }
  .party-btn { font-size: 9px !important; }
  .party-btn.small { font-size: 7.5px !important; }
  .party-invite-code b { font-size: 25px !important; }
  .party-matchbar > span, .party-matchbar time { font-size: 8px !important; }
  .party-big-score b { font-size: 23px !important; }
  .party-team h3 { font-size: 14px !important; }
  .party-member b { font-size: 10.5px !important; }
  .party-member em, .party-member small { font-size: 7.5px !important; }
  .party-join-team, .party-start-hint { font-size: 7.5px !important; }
  .party-match-k { font-size: 7px !important; }
  .party-match-score b { font-size: 13px !important; }
  .party-match-time { font-size: 9px !important; }

  .vc-rail, .vc-panel, .vc-history { font-size: 10px !important; }
  .vc-panel-head h2 { font-size: 24px !important; }
  .vc-input-wrap input { font-size: 14px !important; }
  .vc-history .vc-history-text { font-size: 10px !important; }
  .vc-banner-text, .vc-banner[data-size="medium"] .vc-banner-text, .vc-banner[data-size="long"] .vc-banner-text {
    font-size: clamp(20px, 7vw, 34px) !important;
  }

  .focus-brand b, .focus-brand em, .focus-foot p { font-size: 8px !important; }
  .focus-time b { font-size: 20px !important; }
  .focus-target-card b { font-size: 24px !important; }

  .community-head h2 { font-size: clamp(25px, 8.6vw, 36px) !important; }
  .community-desc { font-size: 10.5px !important; }
  .community-launch-copy b { font-size: 8px !important; }
  .community-launch-copy em { font-size: 9px !important; }

  .sr-head h2 { font-size: 27px !important; }
  .sr-intro { font-size: 9.5px !important; }
  .sr-toolbar-copy b { font-size: 9.5px !important; }
  .sr-toolbar-copy span, .sr-meta span, .sr-local-note { font-size: 8px !important; }
  #sr-player-empty b { font-size: 10.5px !important; }

  .ss-title { font-size: clamp(36px, 11.5vw, 54px) !important; }
  .ss-kicker, .ss-brand b, .ss-stage-head { font-size: 8px !important; }
  .ss-brand em, .ss-stage-meta i, .ss-stage-corner { font-size: 7px !important; }
  .ss-intro { font-size: 10.5px !important; }
  .ss-card-line b { font-size: 16px !important; }
  .ss-card-copy em { font-size: 8px !important; }
  .ss-card-copy small { font-size: 9px !important; }
  .ss-tags u, .ss-note { font-size: 7.5px !important; }
  .ss-stage-meta b { font-size: 18px !important; }
  .ss-stage-hint { font-size: 8px !important; }
  .ss-confirm span { font-size: 10.5px !important; }

  .sail-title b { font-size: 14px !important; }
  .sail-title span, .sail-map > div { font-size: 7.5px !important; }
  .sail-bearing b { font-size: 19px !important; }
  .sail-exit { font-size: 9px !important; }
  .sail-speed b { font-size: 34px !important; }
  .sail-speed > span, .sail-speed em { font-size: 8.5px !important; }
  .sail-help, .sail-toast { font-size: 9px !important; }
}

/* Compact phone type pass. Control and button geometry stays unchanged. */
@media (max-width: 760px), (pointer: coarse) {
  .boot-mark { font-size: clamp(30px, 9.5vw, 50px) !important; }

  .m-word { font-size: clamp(34px, 12.8vw, 86px) !important; }
  .m-h { font-size: clamp(28px, 8.4vw, 42px) !important; }
  .m-debrief .m-h { font-size: clamp(21px, 6.5vw, 29px) !important; }
  .m-eyebrow, .m-k { font-size: 9px !important; }
  .m-premise { font-size: 11.5px !important; line-height: 1.45 !important; }
  .m-tag, .m-note, .m-line { font-size: 8.5px !important; }
  .m-stats dt, .m-rating span { font-size: 10px !important; }
  .m-stats dd { font-size: 13px !important; }
  .m-rating b { font-size: 30px !important; }
  .keys dt, .keys dd, .m-legend > div { font-size: 9.5px !important; }

  .h-obj-t { font-size: 13px !important; }
  .h-ammo-n, .h-ammo.infinite .h-ammo-n::after { font-size: 36px !important; }
  .h-hp-n { font-size: 22px !important; }

  .panel-b h3, .panel-note { font-size: 8.5px !important; }
  .loc-card b { font-size: 15px !important; }
  .loc-card span { font-size: 9px !important; }

  .mp-online b { font-size: 12px !important; }
  .mp-respawn-num { font-size: clamp(42px, 13vw, 64px) !important; }
  .mp-respawn-line { font-size: 10px !important; }
  .mp-title-line { font-size: 9.5px !important; }

  .party-head h2 { font-size: 22px !important; }
  .party-home-card h3 { font-size: 16px !important; }
  .party-home-card p { font-size: 9.5px !important; }

  .focus-target-card b { font-size: 21px !important; }
  .community-head h2 { font-size: clamp(22px, 7.5vw, 31px) !important; }
  .community-desc { font-size: 9.5px !important; }

  .sr-head h2 { font-size: 24px !important; }
  .ss-title { font-size: clamp(31px, 10vw, 46px) !important; }
  .ss-intro { font-size: 9.5px !important; }

  .sail-title b { font-size: 13px !important; }
  .sail-bearing b { font-size: 17px !important; }
  .sail-speed b { font-size: 30px !important; }
}

/* Short landscape title: scroll the menu independently of the utility controls. */
@media (orientation: landscape) and (max-height: 540px) {
  body:has(.menu[data-screen="title"]) {
    --title-tools-width: clamp(170px, 31vw, 235px);
  }

  .menu[data-screen="title"] .m-title {
    right: calc(var(--title-tools-width) + var(--gr) + 12px);
    display: block;
    padding: calc(var(--sat) + 14px) 10px calc(var(--sab) + 12px) var(--gl);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .m-title .m-word {
    font-size: clamp(29px, min(9vw, 15vh), 65px) !important;
    line-height: 1 !important;
    margin: 7px 0 10px !important;
  }

  .m-title .m-actions { margin-top: 10px; gap: 6px; }
  .m-title .m-actions .btn { flex: 0 1 auto; min-height: 38px !important; padding-inline: 12px; }
  .m-title .m-note { margin-top: 8px !important; }

  body:has(.menu[data-screen="title"]) .mp-chip {
    max-width: var(--title-tools-width);
    gap: 5px;
    padding-inline: 6px;
  }
  body:has(.menu[data-screen="title"]) #sr-launch {
    top: calc(var(--sat) + 97px);
    left: auto;
    right: var(--gr);
    min-height: 36px;
  }
  body:has(.menu[data-screen="title"]) .vc-rail {
    top: calc(var(--sat) + 140px);
    right: var(--gr);
    left: auto;
    bottom: auto;
    transform: none;
    flex-direction: row;
    gap: 5px;
  }
  body:has(.menu[data-screen="title"]) .vc-rail button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }
  body:has(.menu[data-screen="title"]) .vc-rail :is(.vc-mic-copy, .vc-chat-copy, .vc-meter),
  body:has(.menu[data-screen="title"]) :is(.sail-invite, .vc-banner) {
    display: none !important;
  }
}
