:root {
  --lp-bg: #05120b;
  --lp-bg-2: #0a2215;
  --lp-panel: #0d2a19;
  --lp-line: rgba(240,185,58,.35);
  --lp-text: #e8f5ea;
  --lp-dim: rgba(232,245,234,.72);
  --lp-gold: #f0b93a;
  --lp-gold-hi: #ffe17a;
  --lp-ink: #10251a;
  --lp-sol-a: #9945ff;
  --lp-sol-b: #14f195;
  --lp-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side-w: 0px;
}

body.lp-on:not(.is-game) .app { visibility: hidden; }

.lp {
  font-size: 16px; line-height: 1.5;
  position: fixed; inset: 0; z-index: 50000; overflow-x: hidden; overflow-y: auto;
  color: var(--lp-text); background: var(--lp-bg); scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.lp[hidden] { display: none; }
.lp { font-family: var(--lp-body); }
.lp * { font-family: inherit; font-size: inherit; font-weight: inherit; }
.lp h1, .lp h2, .lp h3, .lp b, .lp em, .lp .lp-kicker, .lp .lp-eyebrow, .lp-brand b, .lp-links a, .lp-btn, .lp-wbtn span, .lp-stats b, .lp-marquee span, .lp-dev-bar, .lp-score, .lp-float, .lp-step-n, .lp-faq summary, .lp-connect-head span, .lp-live {
  font-family: 'Tiny5', system-ui, sans-serif; font-weight: 400;
}
.lp.lp-out { animation: lpOut .65s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes lpOut { to { opacity: 0; transform: scale(1.04); filter: blur(4px); } }
.lp img { max-width: 100%; }
.lp a { color: inherit; }

.lp-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px;
  height: 68px; padding: 0 max(20px, 4vw); transition: background .25s, box-shadow .25s;
}
.lp-top.is-solid { background: rgba(5,18,11,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--lp-line), 0 10px 30px rgba(0,0,0,.35); }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-brand img { width: 44px; height: 44px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.lp-brand b { font-size: 22px; letter-spacing: 1.5px; color: #fff; text-shadow: 0 3px 0 var(--lp-ink); }
.lp-links { display: flex; gap: 4px; margin-left: auto; }
.lp-links a { padding: 8px 12px; font-size: 14px; letter-spacing: .6px; color: var(--lp-dim); text-decoration: none; border-radius: 8px; transition: color .15s, background .15s; }
.lp-links a:hover { color: var(--lp-gold-hi); background: rgba(255,255,255,.06); }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; cursor: pointer;
  font-size: 16px; letter-spacing: 1px; color: var(--lp-ink); text-decoration: none;
  background: #fbf8ea; border: 3px solid var(--lp-ink); border-radius: 12px; box-shadow: 0 4px 0 var(--lp-ink);
  transition: transform .1s, filter .15s;
}
.lp-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.lp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lp-ink); }
.lp-btn--gold { background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 60%, #d99a12 100%); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 #c98a0a, 0 4px 0 var(--lp-ink); }
.lp-btn--sm { padding: 8px 14px; font-size: 14px; }

.lp-hero {
  position: relative; min-height: calc(100svh - 68px); margin-top: -68px; padding: 112px max(20px, 5vw) 90px;
  display: flex; align-items: center; overflow: hidden;
}
.lp-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(240,185,58,.12), transparent 70%),
    linear-gradient(180deg, rgba(5,18,11,.6) 0%, rgba(5,18,11,.15) 38%, rgba(5,18,11,.55) 75%, var(--lp-bg) 100%),
    url('images/ui/hub_league_bg.webp') 50% 72% / cover no-repeat;
  image-rendering: pixelated;
}
.lp-stars {
  position: absolute; inset: 0 0 45% 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 46% 22%, #fff8d6, transparent), radial-gradient(1px 1px at 63% 12%, #fff, transparent), radial-gradient(1px 1px at 81% 26%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 9%, #fff8d6, transparent);
  animation: lpTwinkle 5s ease-in-out infinite alternate;
}
@keyframes lpTwinkle { to { opacity: .2; } }
.lp-beams { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lp-beams i {
  position: absolute; top: -12%; width: 30%; height: 125%; opacity: .14; mix-blend-mode: screen;
  background: linear-gradient(180deg, #fff6c8 0%, rgba(255,246,200,.35) 35%, transparent 80%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); transform-origin: 50% 0;
  animation: lpSweep 8s ease-in-out infinite alternate;
}
.lp-beams i:nth-child(1) { left: -4%; transform: rotate(-22deg); }
.lp-beams i:nth-child(2) { left: 18%; transform: rotate(-8deg); animation-delay: -2s; }
.lp-beams i:nth-child(3) { right: 18%; transform: rotate(8deg); animation-delay: -4s; }
.lp-beams i:nth-child(4) { right: -4%; transform: rotate(22deg); animation-delay: -6s; }
@keyframes lpSweep { from { opacity: .06; } to { opacity: .2; } }

.lp-hero-grid {
  position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.lp-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--lp-gold-hi); background: rgba(5,18,11,.7); border: 2px solid var(--lp-line); border-radius: 999px;
}
.lp-sol { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--lp-sol-a), var(--lp-sol-b)); box-shadow: 0 0 14px rgba(20,241,149,.5); }
.lp-copy h1 {
  margin: 18px 0 16px; font-size: clamp(36px, 4.3vw, 66px); line-height: 1.02; letter-spacing: 1px; color: #fff;
  text-shadow: 0 5px 0 var(--lp-ink), 0 0 40px rgba(0,0,0,.6);
}
.lp-copy h1 span { display: block; }
.lp-copy h1 em {
  display: block; font-style: normal; color: var(--lp-gold-hi);
  text-shadow: 0 5px 0 #a8650a, 0 9px 0 var(--lp-ink), 0 0 40px rgba(240,185,58,.45);
}
.lp-sub { max-width: 560px; margin: 0 0 26px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--lp-dim); }

.lp-connect {
  position: relative; max-width: 470px; padding: 16px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(13,42,25,.86), rgba(5,18,11,.86));
  border: 2px solid var(--lp-line); box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lp-connect::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 22px; padding: 2px; opacity: .65;
  background: linear-gradient(120deg, var(--lp-sol-a), transparent 30%, transparent 70%, var(--lp-sol-b));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.lp-connect.is-flash { animation: lpFlash 1.2s ease; }
@keyframes lpFlash { 0%, 100% { box-shadow: 0 24px 60px rgba(0,0,0,.5); } 30% { box-shadow: 0 0 0 6px rgba(255,225,122,.55), 0 24px 60px rgba(0,0,0,.5); } }
.lp-connect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.lp-connect-head span { font-size: 16px; letter-spacing: .8px; color: #fff; }
.lp-connect-head small { font-size: 12px; color: var(--lp-sol-b); }
.lp-wallets { display: flex; flex-direction: column; gap: 10px; }
.lp-wbtn {
  position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; text-decoration: none;
  color: var(--lp-ink); background: linear-gradient(180deg, #fffbe8, #f1e7c2); border: 3px solid var(--lp-ink); border-radius: 14px;
  box-shadow: inset 0 -3px 0 rgba(16,37,26,.12), 0 4px 0 var(--lp-ink); transition: transform .1s, filter .15s, background .2s;
}
.lp-wbtn:first-child:not(.lp-wbtn--ghost) { background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 62%, #dfa21b 100%); }
.lp-wbtn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.lp-wbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lp-ink); }
.lp-wbtn:disabled { opacity: .55; cursor: default; transform: none; }
.lp-wbtn.is-busy { opacity: 1; animation: lpBusy 1.2s ease-in-out infinite; }
@keyframes lpBusy { 50% { filter: brightness(1.12); } }
.lp-wbtn img, .lp-wbtn-ph { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.lp-wbtn-ph { background: linear-gradient(135deg, var(--lp-sol-a), var(--lp-sol-b)); }
.lp-wbtn span { flex: 1; min-width: 0; text-align: left; font-size: 17px; letter-spacing: .8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-wbtn i { font-style: normal; font-size: 18px; transition: transform .15s; }
.lp-wbtn:hover i { transform: translateX(4px); }
.lp-wbtn--ghost { background: rgba(251,248,234,.08); color: var(--lp-text); border-color: rgba(251,248,234,.25); box-shadow: none; }
.lp-wbtn--ghost:hover { background: rgba(251,248,234,.14); }
.lp-wbtn--dev span { font-size: 13px; opacity: .8; }
.wl-none { font-size: 14px; color: var(--lp-dim); margin: 0 2px 2px; }
.wl-links { display: flex; flex-direction: column; gap: 8px; }
.lp-werr { padding: 10px 12px; font-size: 13px; line-height: 1.4; color: #ffd9d2; background: rgba(196,56,47,.22); border: 2px solid rgba(255,120,100,.55); border-radius: 10px; }

.lp-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.lp-stats li { min-width: 104px; padding: 10px 14px; background: rgba(5,18,11,.62); border: 2px solid rgba(255,225,122,.28); border-radius: 12px; }
.lp-stats b { display: block; font-size: 26px; line-height: 1; color: var(--lp-gold-hi); text-shadow: 0 3px 0 var(--lp-ink); }
.lp-stats span { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--lp-dim); }

.lp-show { position: relative; perspective: 1600px; }
.lp-device {
  position: relative; border-radius: 24px; overflow: hidden;
  background: #0d2b17; border: 4px solid var(--lp-ink);
  box-shadow: 0 0 0 3px var(--lp-gold), 0 0 0 7px var(--lp-ink), 0 40px 90px rgba(0,0,0,.65), 0 0 120px rgba(240,185,58,.18);
  transform: rotateY(-9deg) rotateX(5deg); transform-style: preserve-3d; animation: lpFloat 7s ease-in-out infinite;
}
@keyframes lpFloat { 0%, 100% { transform: rotateY(-9deg) rotateX(5deg) translateY(0); } 50% { transform: rotateY(-6deg) rotateX(3deg) translateY(-12px); } }
.lp-dev-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff;
  background: linear-gradient(180deg, #123a24, #0d2b17); border-bottom: 3px solid var(--lp-ink); box-shadow: 0 3px 0 var(--lp-gold);
}
.lp-dev-crest { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; background: radial-gradient(circle, #3a64a8, #142a52); border: 3px solid var(--lp-ink); border-radius: 50%; }
.lp-dev-club { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.lp-dev-club b { font-size: 15px; }
.lp-dev-club small { font-size: 11px; color: var(--lp-gold-hi); font-family: 'Tiny5', sans-serif; }
.lp-dev-cur { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; font-size: 13px; background: rgba(0,0,0,.35); border: 2px solid rgba(255,225,122,.5); border-radius: 999px; }
.lp-dev-cur img { width: 18px; height: 18px; }
.lp-dev-cur--gem { border-color: rgba(120,190,255,.55); }

.lp-pitch {
  position: relative; aspect-ratio: 16 / 9.4; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), transparent 18%, transparent 82%, rgba(0,0,0,.3)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 9.09%, rgba(0,0,0,.035) 9.09% 18.18%),
    url('images/field/pitch-turf-1.png') 0 0 / 90px 43px repeat, #3c8a37;
  image-rendering: pixelated;
}
.lp-pitch-lines { position: absolute; inset: 7% 4%; border: 3px solid rgba(255,255,255,.6); }
.lp-pitch-lines i { position: absolute; border: 3px solid rgba(255,255,255,.6); }
.lp-pl-mid { left: 50%; top: -3px; bottom: -3px; width: 0; border-width: 0 0 0 3px !important; }
.lp-pl-circle { left: 50%; top: 50%; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.lp-pl-box { top: 25%; height: 50%; width: 13%; }
.lp-pl-box--l { left: -3px; border-left: 0 !important; }
.lp-pl-box--r { right: -3px; border-right: 0 !important; }
.lp-squad { position: absolute; inset: 7% 4%; }
.lp-pl {
  position: absolute; width: 72px; aspect-ratio: 1; margin: -54px 0 0 -36px; overflow: visible; image-rendering: pixelated;
  transform: scale(var(--s)); transform-origin: 50% 80%; animation: lpPlIn .7s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes lpPlIn { from { opacity: 0; transform: scale(calc(var(--s) * .4)) translateY(20px); } }
.lp-pl::before { content: ""; position: absolute; left: 30%; right: 30%; bottom: 14%; height: 9%; border-radius: 50%; background: rgba(0,0,0,.28); }
.lp-pl-in { position: absolute; top: -40%; left: -130%; width: 360%; height: 180%; }
.lp-pl .l {
  position: absolute; inset: 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: calc(var(--n) * 100%) 100%; mask-size: calc(var(--n) * 100%) 100%;
  animation: lpSprMask var(--d) steps(var(--n)) infinite;
}
.lp-pl .l--img { -webkit-mask-image: none !important; mask-image: none !important; background-repeat: no-repeat; background-size: calc(var(--n) * 100%) 100%; animation-name: lpSprBg; }
@keyframes lpSprMask { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: var(--to) 0; mask-position: var(--to) 0; } }
@keyframes lpSprBg { from { background-position: 0 0; } to { background-position: var(--to) 0; } }

.lp-score {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #fff;
  background: linear-gradient(180deg, #0d2b17, #081d10); border-top: 3px solid var(--lp-ink);
}
.lp-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; font-size: 12px; letter-spacing: 1px; color: #fff; background: #d92b2b; border: 2px solid var(--lp-ink); border-radius: 999px; }
.lp-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: lpBlink 1.1s steps(2) infinite; }
@keyframes lpBlink { 50% { opacity: .2; } }
.lp-live--pin { position: absolute; top: 12px; right: 12px; }
.lp-team { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.lp-team i { width: 12px; height: 12px; border: 2px solid var(--lp-ink); border-radius: 3px; }
.lp-team--away { margin-right: auto; }
.lp-goals { font-size: 24px; color: var(--lp-gold-hi); text-shadow: 0 3px 0 var(--lp-ink); }
.lp-goals em { font-style: normal; color: rgba(255,255,255,.5); }
.lp-min { padding: 3px 8px; font-size: 13px; background: rgba(255,255,255,.1); border-radius: 6px; }

.lp-float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; color: #fff; white-space: nowrap;
  background: rgba(5,18,11,.88); border: 2px solid var(--lp-line); border-radius: 14px; box-shadow: 0 16px 34px rgba(0,0,0,.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lpBob 5s ease-in-out infinite;
}
.lp-float img { width: 26px; height: 26px; }
.lp-float b { color: var(--lp-gold-hi); }
.lp-float--gold { top: -26px; left: 22%; }
.lp-float--goal { left: -26px; top: 44%; animation-delay: -1.6s; background: linear-gradient(180deg, #ffe98f, #f0b93a); color: var(--lp-ink); border: 3px solid var(--lp-ink); }
.lp-float--goal b { color: var(--lp-ink); }
.lp-float--league { right: -18px; bottom: 16%; animation-delay: -3.2s; }
@keyframes lpBob { 50% { transform: translateY(-10px); } }

.lp-scroll { position: absolute; left: 50%; bottom: 22px; z-index: 3; width: 28px; height: 44px; margin-left: -14px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.lp-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lp-gold-hi); animation: lpScroll 1.8s ease-in-out infinite; }
@keyframes lpScroll { 60% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.lp-marquee { position: relative; z-index: 2; overflow: hidden; padding: 14px 0; background: linear-gradient(180deg, #ffe98f, #f0b93a); border-block: 3px solid var(--lp-ink); transform: rotate(-1.2deg) scale(1.02); }
.lp-marquee-track { display: flex; gap: 28px; width: max-content; animation: lpMarquee 34s linear infinite; }
.lp-marquee span { font-size: 18px; letter-spacing: 2px; color: var(--lp-ink); white-space: nowrap; }
.lp-marquee i { font-style: normal; color: #b2340f; }
@keyframes lpMarquee { to { transform: translateX(-50%); } }

.lp-sec { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 9vw, 130px) max(20px, 4vw) 0; text-align: center; }
.lp-sec h2 { margin: 12px 0 10px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; color: #fff; text-shadow: 0 4px 0 var(--lp-ink); }
.lp-lead { max-width: 660px; margin: 0 auto 42px; font-size: 17px; line-height: 1.65; color: var(--lp-dim); }
.lp-eyebrow { display: inline-block; padding: 5px 12px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #dff7e4; background: #1d5a33; border: 2px solid var(--lp-ink); border-radius: 8px; box-shadow: 0 3px 0 var(--lp-ink); }
.lp-eyebrow--gold { color: var(--lp-ink); background: var(--lp-gold-hi); }
.lp-eyebrow--sol { color: #fff; background: linear-gradient(90deg, var(--lp-sol-a), #3b8fd6 55%, var(--lp-sol-b)); }

.lp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: left; }
.lp-card {
  position: relative; padding: 18px 18px 22px; border-radius: 20px;
  background: linear-gradient(180deg, #0f2f1c, #0a2215); border: 2px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: transform .25s, border-color .25s;
}
.lp-card:hover { transform: translateY(-6px); border-color: var(--lp-line); }
.lp-card-art {
  position: relative; display: grid; place-items: center; height: 170px; margin-bottom: 18px; border-radius: 14px; border: 3px solid var(--lp-ink);
  background: radial-gradient(circle at 50% 40%, #fff3b8 0%, #f0b93a 55%, #c98a0a 100%); box-shadow: inset 0 -6px 0 rgba(0,0,0,.15);
}
.lp-card-art--blue { background: radial-gradient(circle at 50% 40%, #b6d0ff 0%, #4a79d4 55%, #1d3a6e 100%); }
.lp-card-art--red { background: radial-gradient(circle at 50% 40%, #6a8bd6 0%, #1d3a6e 60%, #0b1a3a 100%); }
.lp-card-art--green { background: radial-gradient(circle at 50% 40%, #b8f0c4 0%, #3fb257 55%, #1d5a33 100%); }
.lp-card-art img { width: 120px; height: 120px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(16,37,26,.35)); transition: transform .3s; }
.lp-card:hover .lp-card-art img { transform: scale(1.08) rotate(-3deg); }
.lp-card h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.15; color: #fff; }
.lp-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--lp-dim); }

.lp-band {
  position: relative; margin-top: clamp(80px, 9vw, 130px); padding-bottom: clamp(80px, 9vw, 120px); overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 10% 0%, rgba(153,69,255,.28), transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 100%, rgba(20,241,149,.2), transparent 70%),
    linear-gradient(180deg, #071a10, #04100a);
  border-block: 2px solid rgba(255,255,255,.06);
}
.lp-band .lp-sec { padding-top: clamp(70px, 8vw, 110px); }
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.lp-step {
  position: relative; padding: 34px 24px 26px; border-radius: 20px; text-align: center;
  background: rgba(255,255,255,.035); border: 2px solid rgba(255,255,255,.09); backdrop-filter: blur(4px);
}
.lp-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -19px; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px;
  display: grid; place-items: center; font-family: 'Tiny5', sans-serif; font-size: 16px; color: var(--lp-ink);
  background: var(--lp-gold-hi); border: 2px solid var(--lp-ink); border-radius: 50%;
}
.lp-step-n {
  position: absolute; top: -18px; left: 50%; width: 38px; height: 38px; margin-left: -19px; display: grid; place-items: center; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, var(--lp-sol-a), var(--lp-sol-b)); border: 3px solid var(--lp-ink); border-radius: 12px; box-shadow: 0 4px 0 var(--lp-ink);
}
.lp-step img { width: 84px; height: 84px; object-fit: contain; image-rendering: pixelated; margin-bottom: 10px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.lp-step h3 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.lp-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--lp-dim); }
.lp-fine { max-width: 640px; margin: 30px auto 0; font-size: 13px; color: rgba(232,245,234,.5); }

.lp-pyr { background: radial-gradient(ellipse at 50% 0%, #1d3a6e 0%, #0b1a3a 55%, var(--lp-bg) 100%); padding-bottom: 20px; }
.lp-tiers { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lp-tier {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; text-align: left; border-radius: 16px;
  background: rgba(7,17,42,.7); border: 2px solid rgba(255,255,255,.12); box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.lp-tier img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
.lp-tier b { display: block; font-size: 20px; color: #fff; }
.lp-tier span { font-size: 14px; color: var(--lp-dim); }
.lp-tier--1 { width: min(480px, 100%); border-color: var(--lp-gold); box-shadow: 0 0 0 3px rgba(240,185,58,.2), 0 0 40px rgba(240,185,58,.25); }
.lp-tier--1 b { color: var(--lp-gold-hi); }
.lp-tier--2 { width: min(580px, 100%); }
.lp-tier--3 { width: min(680px, 100%); }
.lp-tier--4 { width: min(780px, 100%); }

.lp-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-mode { display: grid; grid-template-columns: 72px 1fr; gap: 6px 16px; align-items: center; padding: 18px; text-align: left; border-radius: 18px; background: #0b2416; border: 2px solid rgba(255,255,255,.07); transition: transform .2s, border-color .2s; }
.lp-mode:hover { transform: translateY(-4px); border-color: var(--lp-line); }
.lp-mode img { grid-row: span 2; width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; }
.lp-mode h3 { margin: 0; font-size: 18px; color: #fff; }
.lp-mode p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--lp-dim); }

.lp-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.lp-faq details { border-radius: 14px; background: #0b2416; border: 2px solid rgba(255,255,255,.08); overflow: hidden; }
.lp-faq details[open] { border-color: var(--lp-line); }
.lp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; font-size: 17px; color: #fff; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--lp-gold-hi); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: 0; padding: 0 18px 18px; font-size: 15px; line-height: 1.65; color: var(--lp-dim); }
.lp-faq a { color: var(--lp-gold-hi); }

.lp-finale { position: relative; margin-top: clamp(90px, 10vw, 140px); padding: 90px 20px 100px; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--lp-bg) 0%, rgba(5,18,11,.3) 40%, rgba(5,18,11,.9) 100%), url('images/ui/hub_league_bg.webp') 50% 70% / cover no-repeat; image-rendering: pixelated; }
.lp-finale-in { position: relative; z-index: 2; }
.lp-finale-cup { width: 120px; filter: drop-shadow(0 0 30px rgba(240,185,58,.5)); animation: lpBob 4s ease-in-out infinite; }
.lp-finale h2 { margin: 10px 0 26px; font-size: clamp(30px, 4vw, 52px); color: #fff; text-shadow: 0 4px 0 var(--lp-ink); }
.lp-connect--center { margin: 0 auto; }

.lp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 26px max(20px, 4vw) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); color: var(--lp-dim); font-size: 14px; }
.lp-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-foot a { text-decoration: none; }
.lp-foot a:hover { color: var(--lp-gold-hi); }

.lp-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.lp-rv.is-in { opacity: 1; transform: none; }
.lp-cards .lp-rv:nth-child(2), .lp-steps .lp-rv:nth-child(2), .lp-modes .lp-rv:nth-child(3n+2) { transition-delay: .08s; }
.lp-cards .lp-rv:nth-child(3), .lp-steps .lp-rv:nth-child(3), .lp-modes .lp-rv:nth-child(3n) { transition-delay: .16s; }
.lp-cards .lp-rv:nth-child(4) { transition-delay: .24s; }

@media (max-width: 1100px) {
  .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .lp-hero { padding-top: 100px; }
  .lp-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lp-copy { display: flex; flex-direction: column; align-items: center; }
  .lp-sub { margin-inline: auto; }
  .lp-connect { width: 100%; text-align: left; }
  .lp-stats { justify-content: center; }
  .lp-show { max-width: 640px; width: 100%; margin: 10px auto 0; }
  .lp-device { transform: none; animation: none; }
  .lp-links { display: none; }
  .lp-top .lp-btn { margin-left: auto; }
  .lp-steps { grid-template-columns: 1fr; gap: 34px; max-width: 480px; margin: 0 auto; }
  .lp-step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -27px; margin: 0 0 0 -17px; }
}
@media (max-width: 640px) {
  .lp-top { height: 60px; gap: 10px; }
  .lp-brand img { width: 36px; height: 36px; }
  .lp-brand b { font-size: 18px; }
  .lp-hero { padding: 84px 16px 70px; min-height: auto; }
  .lp-cards, .lp-modes { grid-template-columns: 1fr; }
  .lp-stats li { min-width: 0; flex: 1 1 40%; }
  .lp-float--goal { left: -6px; }
  .lp-float--league { right: -6px; }
  .lp-float { font-size: 12px; padding: 7px 10px; }
  .lp-pl { width: 48px; margin: -36px 0 0 -24px; }
  .lp-score { gap: 8px; padding: 10px 12px; }
  .lp-team { font-size: 11px; }
  .lp-goals { font-size: 19px; }
  .lp-dev-bar { padding: 9px 10px; gap: 6px; }
  .lp-dev-cur { font-size: 11px; padding: 3px 8px 3px 4px; }
  .lp-dev-cur img { width: 14px; height: 14px; }
  .lp-mode { grid-template-columns: 56px 1fr; }
  .lp-mode img { width: 56px; height: 56px; }
  .lp-foot { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp { animation: none !important; transition: none !important; }
  .lp-rv { opacity: 1; transform: none; }
}

.nav-brand, .nav-more, .nav-wallet { display: none; }

@media (min-width: 600px) and (max-width: 999px) {
  .app, .header, .nav, .app::before { max-width: none; }
  .panel-main > * { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
  .panel-main.px-page > *, .panel-main.md > * { width: 100%; }
}

@media (min-width: 1000px) {
  :root { --side-w: 252px; --hdr-h: 72px; }
  body.is-game { background: #06140c; }
  .app { max-width: none; margin: 0; height: 100vh; }

  .header {
    left: var(--side-w); right: 0; width: auto; max-width: none; transform: none;
    height: 66px; padding: 0 clamp(18px, 2.4vw, 36px);
  }
  .hd-crest { width: 44px; height: 44px; }
  .hd-name { max-width: 320px; font-size: 18px; }
  .hd-right { gap: 12px; }
  .hd-cur { padding-right: 6px; }
  .hd-cur-val { min-width: 64px; font-size: 16px; }

  .content { margin-left: var(--side-w); }
  .panel-main { padding: 24px clamp(18px, 2.4vw, 40px) 64px !important; height: calc(100vh - var(--hdr-h)) !important; }

  .nav {
    left: 0; top: 0; bottom: 0; right: auto; transform: none; width: var(--side-w); max-width: none; height: auto;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px;
    padding: 18px 14px 16px; overflow-y: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav::before {
    inset: 0; border: 0; border-right: 3px solid var(--px-ink); box-shadow: 3px 0 0 var(--gold), 6px 0 0 var(--px-ink);
    background:
      radial-gradient(ellipse 120% 40% at 50% 0%, rgba(87,194,106,.22), transparent 70%),
      linear-gradient(180deg, #123a24 0%, #0d2b17 45%, #071a10 100%);
  }
  .nav-brand {
    order: -3; display: flex; align-items: center; gap: 10px; margin: 0 4px 14px; padding-bottom: 14px; text-decoration: none;
    border-bottom: 2px solid rgba(255,255,255,.08);
  }
  .nav-brand img { width: 46px; height: 46px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
  .nav-brand b { font-family: var(--font-head); font-size: 22px; font-weight: 400; letter-spacing: 1.5px; color: #fff; text-shadow: 0 3px 0 var(--px-ink); }

  .nav-item {
    width: 100%; height: 52px; flex: 0 0 auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px;
    padding: 0 12px; border-radius: 12px; transition: background .15s;
  }
  .nav-item:hover { background: rgba(255,255,255,.06); }
  .nav-item:active { transform: none; }
  .nav-icon { width: 32px; max-width: 32px; }
  .nav-item span { font-size: 15px; letter-spacing: .8px; text-align: left; }
  .nav-item.active { background: linear-gradient(90deg, rgba(240,185,58,.24), rgba(240,185,58,.03)); box-shadow: inset 4px 0 0 var(--gold); }
  .nav-item.active::after { display: none; }
  .nav-item.active .nav-icon { transform: none; }
  .nav-badge { top: 7px; left: 34px; }

  .nav-item--play {
    order: -2; height: 62px; margin: 0 0 12px; padding: 0 14px; justify-content: flex-start;
    background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 60%, #d99a12 100%); border: 3px solid var(--px-ink);
    box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 #c98a0a, 0 4px 0 var(--px-ink);
  }
  .nav-item--play:hover { background: linear-gradient(180deg, #fff0a8 0%, #f4c24f 60%, #e0a521 100%); }
  .nav-item--play.active { background: linear-gradient(180deg, #ffe98f 0%, #f0b93a 60%, #d99a12 100%); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -4px 0 #c98a0a, 0 4px 0 var(--px-ink), 0 0 0 4px rgba(240,185,58,.3); }
  .nav-play-disc { position: static; transform: none; width: 40px; height: 40px; flex-shrink: 0; background: rgba(16,37,26,.12); border: 2px solid rgba(16,37,26,.35); box-shadow: none; }
  .nav-item--play:active .nav-play-disc, .nav-item--play.active .nav-play-disc { transform: none; box-shadow: none; }
  .nav-item--play .nav-icon { width: 30px; max-width: 30px; }
  .nav-item--play span { color: var(--px-ink) !important; text-shadow: none; font-size: 18px; letter-spacing: 1.5px; }

  .nav-more { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.08); }
  .nav-more-t { margin: 0 12px 6px; font-family: var(--font-head); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(227,247,230,.45); }
  .nav-link {
    display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 10px; text-decoration: none;
    font-family: var(--font-head); font-size: 14px; letter-spacing: .6px; color: rgba(227,247,230,.78); transition: background .15s, color .15s;
  }
  .nav-link img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
  .nav-link span { font-family: var(--font-head); font-size: 14px; font-weight: 400; }
  .nav-link:hover { color: var(--gold-bright); background: rgba(255,255,255,.06); }

  .nav-wallet {
    display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 12px; cursor: pointer; text-align: left;
    background: rgba(0,0,0,.28); border: 2px solid rgba(240,185,58,.35); border-radius: 12px;
  }
  .nav-wallet:hover { border-color: var(--gold); }
  .nav-wallet-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: #14f195; box-shadow: 0 0 10px rgba(20,241,149,.8); }
  .nav-wallet.is-off .nav-wallet-dot { background: #8a8a8a; box-shadow: none; }
  .nav-wallet-txt { display: flex; flex-direction: column; min-width: 0; }
  .nav-wallet-txt small { font-family: var(--font-head); font-size: 10px; letter-spacing: 1px; color: rgba(227,247,230,.55); text-transform: uppercase; }
  .nav-wallet-txt b { font-family: var(--font-head); font-size: 15px; font-weight: 400; color: #fff; }

  .su-layer, .ch-layer { left: auto; right: 0; width: 480px; margin: 0; box-shadow: -20px 0 60px rgba(0,0,0,.45); }

  .panel-main > * { width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; }

  .hub2 {
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 20px; align-items: start;
    grid-template-areas: "tick tick" "tg play" "tg mini"; grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: calc(100vh - var(--hdr-h) - 72px);
  }
  .hub2 > .hub-ticker { grid-area: tick; }
  .hub2 > .tg { grid-area: tg; height: auto; min-height: 520px; align-self: stretch; }
  .hub2 > .hub-playz { align-self: stretch; display: flex; flex-direction: column; }
  .hub2 > .hub-playz > .hp-card--league { flex: 1 1 auto; }
  .hub2 > .hub-playz > .hub-play { flex: 1 1 auto; }
  .hub2 .hp-card { min-height: 236px; }
  .hub2 .hp-card--league { min-height: 250px; }
  .hub2 .hub-mini-card { min-height: 128px; }
  .hub2 .hub-mini { gap: 12px; }
  .hub2 .hub-play { gap: 14px; }
  .hub2 .hub-playz { gap: 14px; }
  .hub2 > .hub-playz { grid-area: play; }
  .hub2 > .hub-mini { grid-area: mini; }
  .hub2 > :not(.hub-ticker):not(.tg):not(.hub-playz):not(.hub-mini) { grid-column: 1 / -1; }

  #exchange-screen, .panel-main.px-page:has(> .rf-hero) {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-items: start; align-content: start; gap: 20px !important;
  }
  #exchange-screen > *, .panel-main.px-page:has(> .rf-hero) > * { width: 100%; max-width: none; margin: 0; }
  #exchange-screen > .md-hero, #exchange-screen > .px-tabs, #exchange-screen > .px-sec, #exchange-screen > .screen-loading,
  #exchange-screen > [id^="ex-panel"], #exchange-screen > .ex-paused, #exchange-screen > .ex-totals,
  .panel-main.px-page > .rf-hero { grid-column: 1 / -1; }
  #exchange-screen > .ex-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #ex-panel-withdraw:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  #exchange-screen, .panel-main.px-page:has(> .rf-hero) { padding-left: max(clamp(18px, 2.4vw, 40px), calc((100% - 1240px) / 2)) !important; padding-right: max(clamp(18px, 2.4vw, 40px), calc((100% - 1240px) / 2)) !important; }

  .tq-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; align-items: start; }
  .tq-list > :only-child { grid-column: 1 / -1; }

  .sq2-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
  .sq2-list > .sq2-empty, .sq2-list > :only-child { grid-column: 1 / -1; }

  .fb-tactics-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, 1fr); gap: 14px 22px; align-items: start; }
  .fb-tactics-panel > .tac-formations, .fb-tactics-panel > .tac-ment { grid-column: 1 / -1; }
  .fb-tactics-panel > .tac-pitch { grid-column: 1; grid-row: 3 / span 8; min-height: clamp(480px, calc(100vh - 330px), 760px); margin: 0 !important; }
  .fb-tactics-panel > :not(.tac-formations):not(.tac-ment):not(.tac-pitch) { grid-column: 2; margin-top: 0 !important; }

  .panel-main.shop > * { max-width: 1100px; }
  .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .shop-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (min-width: 1000px) and (max-width: 1240px) {
  .hub2 { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); }
}
@media (min-width: 1600px) {
  :root { --side-w: 272px; }
  .panel-main > * { max-width: 1440px; }
  .panel-main > .hub2 { max-width: 1640px; }
  #exchange-screen, .panel-main.px-page:has(> .rf-hero) { padding-left: max(40px, calc((100% - 1440px) / 2)) !important; padding-right: max(40px, calc((100% - 1440px) / 2)) !important; }
  .sq2-list, .tq-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.nav-wallet[hidden] { display: none !important; }

.tac-pitch { min-height: 470px; }
.tac-row { flex-wrap: nowrap; gap: clamp(2px, 1.6vw, 12px); }
.tac-row--n5 .tac-slot, .tac-row--n4 .tac-slot { width: min(64px, 17.5vw); }
