/* =========================================================
   myfyio — mobile-optimized page. Loads styles.css for
   tokens/fonts + match.js for the portrait pitch.
   Phone-first; centres as a phone column on desktop.
   ========================================================= */

body { background: #03100a; overflow-x: hidden; }
body::before { opacity: 0.6; }

.m-app {
  max-width: 460px; margin: 0 auto; min-height: 100vh;
  position: relative; z-index: 1; padding-bottom: 80px;
  background: var(--ink);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.6);
}

/* top bar */
.m-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  background: rgba(6, 20, 12, 0.96);
  border-bottom: 1px solid var(--line);
}
.m-top .brand { font-size: 18px; }
.m-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--green); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px;
}
.m-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.3s infinite; }

/* hero */
.m-hero { text-align: center; padding: 30px 20px 16px; }
.m-hero .badge { margin-bottom: 16px; }
.m-hero h1 { font-size: clamp(30px, 9vw, 42px); font-weight: 900; line-height: 1.04; letter-spacing: -0.03em; font-stretch: 112%; text-wrap: balance; }
.m-hero h1 em { font-style: normal; background: linear-gradient(95deg, var(--green), var(--gold), var(--green)); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradientShift 6s linear infinite; }
.m-hero p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 14px auto 20px; max-width: 360px; }
.m-cta { display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.m-cta .btn { width: 100%; justify-content: center; }

/* section heads */
.m-shead { padding: 22px 18px 4px; }
.m-shead .eyebrow { font-size: 11px; }
.m-shead h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.025em; font-stretch: 112%; margin-top: 8px; }
.m-shead p { color: var(--muted); font-size: 13.5px; margin-top: 5px; }

/* match (portrait pitch reuses match.js) */
.m-match { padding: 8px 12px 10px; }
.m-match .scoreboard { width: 100%; justify-content: space-between; }
.m-match .statbar { width: 100%; }

/* squad carousel */
.m-carousel {
  display: flex; gap: 13px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 14px 18px 18px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-carousel::-webkit-scrollbar { display: none; }
.m-carousel .card { min-width: 82vw; max-width: 330px; scroll-snap-align: center; flex: none; }
.m-carousel .card:hover { transform: none; }

.m-hint { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); padding-bottom: 8px; }

/* link rows */
.m-links { padding: 8px 18px 4px; display: grid; gap: 10px; }
.m-link {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(8, 25, 15, 0.5);
  transition: border-color 0.18s, transform 0.18s;
}
.m-link:active { transform: scale(0.99); }
.m-link .lic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 19px; background: rgba(242, 255, 247, 0.05); }
.m-link .lm { flex: 1; }
.m-link .lt { font-weight: 800; font-size: 15px; }
.m-link .ls { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.m-link .arr { color: var(--muted); font-size: 18px; }

/* closing */
.m-closing { text-align: center; padding: 36px 22px 30px; }
.m-closing h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; font-stretch: 112%; margin-bottom: 10px; }
.m-closing h2 em { font-style: normal; color: var(--green); }
.m-closing p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.m-foot { text-align: center; padding: 18px; border-top: 1px solid var(--line); color: var(--muted-2); font-family: var(--font-mono); font-size: 12px; }
.m-foot b { color: var(--green); }

/* bottom tab bar */
.m-tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(6, 18, 11, 0.97); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.m-tab { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 0 13px; color: var(--muted); cursor: pointer; }
.m-tab .ic { width: 21px; height: 21px; }
.m-tab span { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; }
.m-tab.active { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .m-live i, .m-hero h1 em { animation: none; }
}
