/* screens4.css: the Arcade (modes.js open), Build (world.js) and the Pitch Rivals match (clash.js), from the owner's
   30 Sep 2026 packs, laid out in the concepts' own pixels (851 wide) on the club-page stage (.menu.cs). The packs'
   vector controls are in assets/ui4/; their paintings are ar_*, bd_* (tools/cut_ui_packs.py). */
.menu.cs.a4 { background: #0a0806; }
.a4 .cs-stage { width: 851px; --cap: #2a1a0c; font-family: var(--font-display); color: #fff; }
.a4 .cs-stage button { cursor: pointer; }
.a4-bg { position: absolute; inset: 0; background: center top / 851px 1847px no-repeat; }
.a4-bg.ar { background-image: var(--art-ar_bg, none); }
.cs-stage .a4-back { position: absolute; z-index: 6; left: 40px; top: 38px; width: 92px; height: 72px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(180deg, #1b3e70, #07193a); border: 4px solid #f5c64d; box-shadow: 0 0 0 3px rgba(20, 10, 0, 0.6), 0 6px 10px rgba(0, 0, 0, 0.5); }
.a4-back img { width: 58%; }
.a4-resume { position: absolute; z-index: 20; left: 50%; bottom: calc(var(--safe-b, 0px) + 14px); transform: translateX(-50%); min-height: 0; display: flex; align-items: center; gap: 10px; padding: 10px 20px 10px 14px; border-radius: 16px;
  color: #04213d; background: linear-gradient(180deg, #8ff6ff, #16c9ec); border: 2px solid #eafcff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5); font: 800 17px/1 var(--font-display); }
.a4-resume svg { width: 22px; height: 22px; }
.a4-resume span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.a4-resume small { font: 600 12px/1 var(--font-ui); }
/* ---------- the Arcade ---------- */
.ar4-title { position: absolute; z-index: 4; left: 0; right: 0; top: 82px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ar4-title small { font: 800 24px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 4px #000; }
.ar4-title b, .ar4-title strong { font-family: var(--font-fun); font-weight: 400; text-transform: uppercase; line-height: 1; white-space: nowrap;
  background: linear-gradient(180deg, #fff7c2 0%, #ffd84a 40%, #f5a51c 72%, #d9790b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar4-title b { margin-top: 2px; font-size: 44px; -webkit-text-stroke: 2px #4a2400; filter: drop-shadow(0 3px 0 #5a2c00); }
.ar4-title strong { margin-top: -2px; font-size: 118px; letter-spacing: 0.02em; transform: scaleX(1.02); -webkit-text-stroke: 4px #4a2400; filter: drop-shadow(0 7px 0 #6b3500) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); }
.ar4-wallet { position: absolute; z-index: 4; left: 280px; top: 275px; width: 295px; height: 50px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 4px; border-radius: 25px; pointer-events: none;
  background: linear-gradient(180deg, #263d53, #071323); border: 2px solid #778ba1; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); }
.ar4-wallet > img { width: 46px; height: 46px; }
.ar4-wallet b { font: 800 34px/1 var(--font-display); color: #fff; }
.ar4-wallet > i { width: 2px; height: 30px; margin: 0 14px 0 auto; background: rgba(160, 200, 240, 0.35); }
.ar4-cupic { display: grid; place-items: center; }
.ar4-cupic svg { display: block; }
.ar4-cup { position: absolute; z-index: 2; left: 215px; top: 344px; width: 420px; height: 282px; background: var(--art-ar_cup, none) center / 100% 100% no-repeat; pointer-events: none; }
.ar4-plaque { position: absolute; z-index: 3; left: 230px; top: 519px; width: 390px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.ar4-plaque > b { font-family: var(--font-fun); font-weight: 400; font-size: 44px; line-height: 1; text-transform: uppercase; background: linear-gradient(180deg, #fff3b0, #f5c23a 60%, #d98e12); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3a2000); }
.ar4-plaque > span:not(.ar4-pill) { font: 600 25px/1 var(--font-display); color: #f2f6fb; white-space: nowrap; }
.ar4-pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 22px; background: rgba(10, 16, 26, 0.85); border: 2px solid rgba(160, 180, 210, 0.35); font: 600 24px/1 var(--font-display); color: #e5ecf5; white-space: nowrap; }
.ar4-pill em { font-style: normal; font-weight: 800; color: #fff; }
.ar4-pill > i { width: 2px; height: 26px; margin: 0 12px; background: rgba(160, 200, 240, 0.35); }
.ar4-star { color: #ffd24d; font-size: 28px; }
.cs-stage .ar4-go { position: absolute; z-index: 5; left: 240px; top: 655px; width: 370px; height: 80px; border-radius: 22px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #2a1a04;
  background: linear-gradient(180deg, #ffe68a, #f9c339 45%, #f0a51a); border: 4px solid #fff0b0; box-shadow: 0 6px 0 #80500b, 0 10px 16px rgba(0, 0, 0, 0.5); }
.ar4-go b { font: italic 800 50px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.ar4-go svg { width: 26px; height: 26px; }
.cs-stage .ar4-cab { position: absolute; z-index: 3; top: 749px; height: 504px; }
.ar4-cab.replay { left: -6px; width: 355px; } .ar4-cab.practice { left: 245px; width: 361px; z-index: 4; } .ar4-cab.party { left: 519px; width: 328px; }
.ar4-cabart { position: absolute; inset: 0; background: center top / 100% 100% no-repeat; }
.replay .ar4-cabart { background-image: var(--art-ar_replay, none); }
.practice .ar4-cabart { background-image: var(--art-ar_practice, none); }
.party .ar4-cabart { background-image: var(--art-ar_party, none); }
.ar4-mq { position: absolute; left: 40px; right: 40px; top: 36px; height: 64px; display: grid; place-items: center; text-align: center; font: italic 800 52px/1 var(--font-display); text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.35); }
.ar4-mq.two { font-size: 35px; line-height: 0.95; top: 32px; }
.ar4-cab small { position: absolute; left: 20px; right: 20px; top: 289px; text-align: center; font: 600 24px/1 var(--font-display); color: #eef3f8; text-shadow: 0 2px 4px #000; white-space: nowrap; }
.ar4-daily { position: absolute; z-index: 6; left: 30px; top: 1177px; width: 795px; height: 413px; box-sizing: border-box; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #2b1a0d, #120b05); border: 4px solid #6e4a26; box-shadow: inset 0 0 0 2px rgba(255, 210, 140, 0.18), 0 10px 18px rgba(0, 0, 0, 0.5); }
.ar4-daily > * { position: absolute; }
.ar4-booth { left: -8px; top: 32px; width: 811px; height: 322px; background: var(--art-ar_booth, none) center / 100% 100% no-repeat; }
.ar4-dhead { left: 88px; right: 60px; top: 22px; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-radius: 22px; background: rgba(10, 16, 26, 0.8); }
.ar4-dk { display: flex; align-items: center; gap: 14px; font: 800 26px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: #f7c948; }
.ar4-dk svg { width: 32px; height: 32px; }
.ar4-reset { font: 700 21px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #d5dde8; }
.ar4-dtitle { left: 0; right: 0; top: 56px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.ar4-dtitle > svg, .a4-dic { width: 66px; height: 66px; flex: 0 0 auto; }
.a4-dic { display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); }
.a4-dic svg { width: 70%; height: 70%; }
.ar4-dtitle b { font: italic 800 54px/1 var(--font-display); text-transform: uppercase; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.55), 0 0 14px rgba(0, 0, 0, 0.5); white-space: nowrap; }
.ar4-dmeta { left: 15px; top: 315px; width: 447px; height: 60px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 22px; border-radius: 12px;
  background: rgba(8, 20, 40, 0.92); border: 2px solid rgba(120, 160, 210, 0.4); clip-path: polygon(3% 0, 97% 0, 100% 50%, 97% 100%, 3% 100%, 0 50%); font: 600 28px/1 var(--font-display); color: #eef3f8; white-space: nowrap; }
.ar4-dmeta span { display: flex; align-items: center; gap: 10px; }
.ar4-dmeta b { font-weight: 800; color: #fff; }
.ar4-dmeta svg { width: 34px; height: 30px; color: #fff; }
.ar4-dmeta > i { width: 2px; height: 34px; background: rgba(160, 200, 240, 0.35); }
.cs-stage .ar4-play { left: 500px; top: 303px; width: 280px; height: 80px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 16px; color: #2a1a04;
  background: linear-gradient(180deg, #ffe68a, #f9c339 45%, #f0a51a); border: 4px solid #fff0b0; box-shadow: 0 6px 0 #80500b, 0 10px 16px rgba(0, 0, 0, 0.5); clip-path: polygon(4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%, 0 50%); }
.ar4-play b { font: italic 800 48px/1 var(--font-display); text-transform: uppercase; }
.ar4-play svg { width: 26px; height: 26px; }
.ar4-sidehead { position: absolute; z-index: 3; left: 55px; right: 66px; top: 1604px; height: 44px; display: flex; align-items: center; gap: 22px; pointer-events: none; }
.ar4-sic { width: 50px; height: 42px; color: #f7c948; }
.ar4-sic svg { width: 100%; height: 100%; }
.ar4-sidehead b { font: 800 32px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: #f7c948; }
.ar4-sidehead small { margin-left: auto; font: 500 24px/1 var(--font-display); color: #9fb0d0; }
.cs-stage .ar4-side { position: absolute; z-index: 3; top: 1668px; height: 90px; width: 370px; box-sizing: border-box; border-radius: 24px; display: flex; align-items: center; gap: 18px; padding: 0 20px 0 46px;
  background: linear-gradient(180deg, #1a2e4c, #0d1b33); border: 3px solid #3e5577; color: #c9d6e6; }
.ar4-side.club { left: 48px; } .ar4-side.quick { left: 435px; }
.cs-stage .ar4-side.on { background: linear-gradient(180deg, #66ecff, #11c8ee 55%, #07a5cf); border: 4px solid #bff8ff; box-shadow: 0 0 18px rgba(17, 200, 238, 0.6); color: #06284b; }
.cs-stage .ar4-side:disabled { opacity: 0.55; }
.ar4-crest { width: 56px; height: 64px; display: grid; place-items: center; flex: 0 0 auto; }
.ar4-crest svg { width: 100%; height: 100%; }
.ar4-side.quick .ar4-crest { color: #aebfd5; }
.ar4-side b { flex: 1; min-width: 0; text-align: left; font: italic 800 34px/1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar4-side.quick b { font-style: normal; font-weight: 600; font-size: 27px; overflow: visible; }
.cs-stage .ar4-side.quick { padding-left: 28px; gap: 12px; }
.ar4-side.quick .ar4-crest { width: 54px; }
.ar4-radio { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; border: 3px solid #5f7392; font-style: normal; }
.ar4-side.on .ar4-radio { background: #06284b; border-color: #06284b; color: #fff; }
.ar4-radio svg { width: 70%; height: 70%; }
.a4 .cs-stage .is-pressed { scale: 0.96; filter: brightness(1.12); }

/* ---------- Build: the Club World header and dock (world.js), the owner's Build pack ---------- */
.cw-top { display: block; height: calc(var(--safe-t, 0px) + 128px); box-sizing: border-box; padding: 0; background: linear-gradient(180deg, rgba(4, 12, 32, 0.9) 0%, rgba(4, 12, 32, 0.55) 70%, rgba(4, 12, 32, 0) 100%); }
.cw-top .cw-back, .cw-top .cw-cog { position: absolute; top: calc(var(--safe-t, 0px) + 22px); width: 38px; min-height: 38px; height: 38px; border-radius: 12px; background: rgba(12, 28, 58, 0.72); border: 1.5px solid rgba(190, 215, 245, 0.45); }
.cw-top .cw-back { left: 14px; } .cw-top .cw-cog { right: 14px; }
.cw-top .cw-cog svg { width: 22px; height: 22px; }
.cw-top .cw-id { position: absolute; left: 60px; right: 60px; top: calc(var(--safe-t, 0px) + 9px); display: flex; align-items: flex-start; gap: 12px; }
.cw-top .cw-crest { width: 56px; height: 60px; margin-top: -2px; }
.cw-top .cw-crest svg { width: 56px; height: 60px; }
.cw-top .cw-idt { gap: 5px; padding-top: 1px; }
.cw-top .cw-nm { font: 800 22px/1 var(--font-display); letter-spacing: 0.02em; }
.cw-top .cw-sub { display: flex; align-items: center; gap: 5px; font: 600 14px/1 var(--font-display); letter-spacing: 0.02em; text-transform: none; color: #e8eef6; }
.cw-pin { width: 14px; height: 14px; flex: 0 0 auto; }
.cw-top .cw-vibe { gap: 7px; font-size: 13px; margin-top: -5px; }
.cw-top .cw-vibe svg { width: 14px; height: 14px; }
.cw-top .cw-vibe i { width: 58px; height: 8px; border-radius: 4px; }
.cw-top .cw-vibe small { font: 600 14px/1 var(--font-display); color: #dbe6f3; }
.cw-top .cw-pills { position: absolute; left: 0; right: 0; top: calc(var(--safe-t, 0px) + 71px); flex-direction: row; justify-content: center; gap: 8px; pointer-events: none; }
.cw-top .cw-pill { min-height: 25px; height: 25px; padding: 0 11px 0 3px; font-size: 15px; background: rgba(8, 20, 44, 0.85); border: 1.5px solid rgba(150, 180, 220, 0.4); }
.cw-top .cw-pill .cw-i { width: 20px; height: 20px; }
.cw-top .cw-pill:first-child { min-width: 80px; }
.cw-bottom .cw-dock { pointer-events: auto; position: relative; display: flex; flex-direction: column; gap: 7px; padding: 11px 14px calc(var(--safe-b, 0px) + 12px); border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, rgba(12, 32, 66, 0.97), rgba(5, 16, 38, 0.99)); border: 1.5px solid rgba(90, 140, 210, 0.55); border-bottom: 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45); }
.cw-bottom .cw-dock[hidden] { display: none; }
.cw-dist { display: flex; align-items: center; gap: 0; height: 36px; }
.cw-dthumb { flex: 0 0 74px; height: 36px; min-height: 0; padding: 0; margin-right: 17px; border-radius: 18px; overflow: hidden; border: 2px solid #d9b25a; background: #0b2548; box-shadow: none; }
.cw-dthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-dthumb.locked img { filter: grayscale(1) brightness(0.6); }
.cw-dsel { flex: 1 1 auto; min-width: 0; height: 32px; margin-right: 11px; display: flex; align-items: center; justify-content: space-between; border-radius: 16px; background: rgba(4, 14, 34, 0.9); border: 1.5px solid rgba(100, 150, 220, 0.55); }
.cw-dsel b { display: flex; align-items: center; gap: 5px; font: 800 16px/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; }
.cw-dsel b.sm { font-size: 14px; letter-spacing: 0.02em; }
.cw-dsel b svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.cw-dnav { width: 34px; min-height: 0; height: 28px; padding: 0; display: grid; place-items: center; background: none; border: 0; box-shadow: none; color: #fff; }
.cw-dnav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cw-dnav.nx svg { transform: scaleX(-1); }
.cw-dnav:disabled { opacity: 0.3; }
.cw-dall { flex: 0 0 82px; height: 32px; min-height: 0; padding: 0 6px 0 8px; display: flex; align-items: center; gap: 6px; border-radius: 16px; background: rgba(4, 14, 34, 0.9); border: 2px solid #d9b25a; box-shadow: none; color: #fff; }
.cw-grid { display: grid; grid-template-columns: 7px 7px; gap: 2px; }
.cw-grid b { width: 7px; height: 7px; border-radius: 2px; background: #f7c948; }
.cw-dall span { font: 600 11px/1.05 var(--font-display); text-align: left; }
.cw-bottom .cw-tabs { position: static; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; height: 34px; }
.cw-bottom .cw-tab { position: relative; height: 34px; min-height: 0; padding: 0; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px; border-radius: 17px;
  font: 600 13px/1 var(--font-display); letter-spacing: 0.03em; text-transform: none; color: #cdd8e8; background: rgba(4, 14, 34, 0.75); border: 1.5px solid rgba(100, 150, 220, 0.5); box-shadow: none; }
.cw-bottom .cw-tab svg { width: 20px; height: 17px; color: #bcd0f0; fill: currentColor; stroke: none; }
.cw-bottom .cw-tab[data-v="build"] svg { width: 19px; height: 19px; }
.cw-bottom .cw-tab.on { color: #04213d; background: linear-gradient(180deg, #8ff6ff, #16c9ec 55%, #07a9cc); border: 2px solid #d4fbff; box-shadow: 0 0 12px rgba(22, 201, 236, 0.55); font-weight: 800; font-size: 15px; }
.cw-bottom .cw-tab.on svg { color: #04213d; }
.cw-bottom .cw-tab .cw-badge { position: absolute; left: auto; right: 6px; top: -9px; min-width: 20px; height: 20px; padding: 0 4px; box-sizing: border-box; box-shadow: none; border-radius: 10px; display: grid; place-items: center; font: 800 12px/1 var(--font-display); color: #3b2204; background: #f7c948; border: 1.5px solid #fff1b8; }
.cw-tip { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 1px 0 -1px; font: 600 12.5px/1 var(--font-display); color: #b9c8dc; }
.cw-tip::before, .cw-tip::after { content: ""; flex: 1; height: 1px; background: rgba(120, 160, 220, 0.3); }
.cw-info { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--font-display); font-style: normal; color: #0b1e38; background: #b9c8dc; }
.cw-bottom .cw-tray { padding: 0; background: none; border: 0; box-shadow: none; animation: none; }
.cw-bcards { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x; padding: 2px 0 2px; }
.cw-bcards::-webkit-scrollbar { display: none; }
.cw-bcard { position: relative; flex: 0 0 117px; height: 117px; min-height: 0; padding: 0 0 4px; overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; gap: 1px; text-align: left; border-radius: 12px;
  color: #fff; background: linear-gradient(180deg, #13335f, #071a3a); border: 1.5px solid rgba(100, 150, 220, 0.55); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
.cw-bcard.ready { }
.cw-bcard:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); }
.cw-bpic { position: relative; flex: 0 0 57px; height: 57px; border-radius: 10px 10px 0 0; overflow: hidden; background: radial-gradient(circle at 50% 70%, #2d6a3a, #0f2b4d 70%); display: grid; place-items: center; }
.cw-bpic > img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }
.cw-bpic > img[src*="bd_"] { object-fit: cover; filter: none; }
.cw-bcard.locked .cw-bpic > img { filter: grayscale(1) brightness(0.6); }
.cw-blv { position: absolute; left: 4px; top: 4px; padding: 2px 5px; border-radius: 6px; font: 800 10px/1 var(--font-display); font-style: normal; color: #fff; background: rgba(4, 14, 34, 0.85); }
.cw-blv.new { color: #3b2204; background: #f7c948; } .cw-blv.max { color: #3b2204; background: linear-gradient(90deg, #ffe07a, #f7c948); }
.cw-bup { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #19c38b; border: 1.5px solid #eafff5; }
.cw-bup .cw-i { width: 14px; height: 14px; }
.cw-bname { flex: 0 0 auto; margin-top: 3px; padding: 0 6px; font: 700 13px/1.18 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-bsub { flex: 0 0 auto; padding: 0 6px; font: 600 11.5px/1.2 var(--font-display); color: #b9c8dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-bfoot { flex: 0 0 auto; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 6px 0 5px; }
.cw-bprice { display: flex; align-items: center; gap: 4px; font: 700 14px/1 var(--font-display); color: #ffd862; white-space: nowrap; overflow: hidden; }
.cw-bprice .cw-i { width: 16px; height: 16px; }
.cw-bprice.poor { color: #9fb0c4; } .cw-bprice.lock { color: #9fb0c4; font-size: 12px; } .cw-bprice.max { color: #ffd862; font-size: 13px; }
.cw-bprice.lock svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.cw-bperk { font: 600 11px/1.1 var(--font-display); color: #7ff0c8; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cw-bgo { flex: 0 0 21px; width: 21px; height: 21px; border-radius: 7px; display: grid; place-items: center; background: rgba(4, 14, 34, 0.85); border: 1px solid rgba(160, 190, 230, 0.4); color: #fff; }
.cw-bgo svg { width: 14px; height: 14px; }
/* All districts */
.cw-dpick { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 8px); padding: 10px; border-radius: 18px; background: linear-gradient(180deg, rgba(14, 36, 72, 0.98), rgba(6, 18, 42, 0.99)); border: 1.5px solid rgba(90, 140, 210, 0.6); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }
.cw-dpick[hidden] { display: none; }
.cw-ptop { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; }
.cw-ptop b { font: 800 17px/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; }
.cw-px { width: 30px; min-height: 0; height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: none; color: #fff; }
.cw-px svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.6; }
.cw-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cw-ptile { min-height: 0; padding: 4px 4px 6px; display: flex; flex-direction: column; gap: 3px; border-radius: 12px; text-align: left; color: #fff; background: #0e2a52; border: 1.5px solid rgba(100, 150, 220, 0.5); box-shadow: none; }
.cw-ptile.on { border-color: #16c9ec; box-shadow: 0 0 10px rgba(22, 201, 236, 0.5); }
.cw-ptile.locked { opacity: 0.7; } .cw-ptile.ready { border-color: #d9b25a; }
.cw-ppic { height: 46px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #0b2548; }
.cw-ppic img { width: 100%; height: 100%; object-fit: cover; }
.cw-ptile.legends .cw-ppic svg { width: 28px; height: 28px; fill: #f7c948; }
.cw-ptile b { font: 800 13px/1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-ptile small { display: flex; align-items: center; gap: 3px; font: 500 11px/1 var(--font-display); color: #b9c8dc; white-space: nowrap; overflow: hidden; }
.cw-ptile small .cw-i { width: 12px; height: 12px; }

/* ======================================================================================================================
   The Pitch Rivals match screen (30 Sep 2026): the owner's repaired Match pack (new design/Pitch_Rivals_Match_Assets,
   reference/revised_match_screen.png). Header and tray are laid out in the pack's 1080-wide reference pixels
   (docs/layout.json) and scaled to the phone's width by --mz (clash.js fitHud); the live pitch fills the gameplay
   viewport between them. The header's origin is the reference's y 105 (under the status bar), the tray's is y 1901.
   ====================================================================================================================== */
body.sq-on { background: #020b19 var(--art-mt_bg) center top / cover no-repeat; }
body.sq-on #app { padding-bottom: 0; }
body.sq-on #stage { z-index: 0; }
body.sq-on #stage::before { content: ""; position: absolute; left: calc(24px * var(--mz, 0.361)); right: calc(24px * var(--mz, 0.361)); top: 0; bottom: 0; z-index: -1; pointer-events: none;
  border-radius: calc(22px * var(--mz, 0.361)); background: #081729; border: 1px solid #3b6080; }
body.sq-on #c { box-shadow: none; border-radius: calc(18px * var(--mz, 0.361)); }
.mt4-top, .mt4-tray { position: relative; flex: 0 0 auto; z-index: 3; color: #f5f6fc; user-select: none; -webkit-user-select: none; }
.mt4-top { height: calc(292px * var(--mz, 0.361)); }
.mt4-tray { height: calc(399px * var(--mzt, 0.361) + max(var(--safe-b, 0px), 14px)); touch-action: none; }
.mt4-in { position: absolute; left: 0; top: 0; width: 1080px; transform: scale(var(--mz, 0.361)); transform-origin: 0 0; }
.mt4-top .mt4-in { height: 292px; }
.mt4-tray .mt4-in { height: 399px; left: calc((100% - 1080px * var(--mzt, 0.361)) / 2); transform: scale(var(--mzt, 0.361)); }
.mt4-in > * { position: absolute; }
.mt4-in img { display: block; pointer-events: none; }
/* the header */
.mt4-logo { left: 402px; top: 0; width: 276px; height: 112px; background: var(--art-lg_logo) center / contain no-repeat; }
.mt4-board { left: 0; top: 95px; width: 1080px; height: 190px; }
.mt4-crest { top: 130px; width: 75px; height: 88px; display: grid; place-items: center; }
.mt4-crest.me { left: 30px; } .mt4-crest.them { left: 814px; }
.mt4-crest > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt4-crest > :not(img) { position: relative; width: 58px; height: 58px; }
.mt4-crest svg { width: 58px; height: 58px; display: block; }
.mt4-side b, .mt4-side small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt4-side b { font: 800 30px/1.15 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; color: #f5f6fc; }
.mt4-side small { margin-top: 7px; font: 600 21px/1.15 var(--font-display); letter-spacing: 0.02em; color: #aeb9cd; }
.mt4-side.me { left: 118px; top: 144px; width: 270px; text-align: left; }
.mt4-side.me b.sm { font-size: 26px; } .mt4-side.me b.xs { font-size: 22px; }
.mt4-side.them { left: 636px; top: 147px; width: 169px; text-align: center; }
.mt4-side.them b { font-size: 27px; } .mt4-side.them b.sm { font-size: 22px; } .mt4-side.them b.xs { font-size: 19px; }
.mt4-side.them small { margin-top: 6px; font-size: 20px; }
.mt4-score { left: 410px; top: 118px; width: 260px; display: flex; justify-content: center; align-items: center; gap: 22px; font: 800 70px/1.15 var(--font-display); color: #f5f6fc; }
.mt4-score i { font-style: normal; font-size: 54px; color: #f5f6fc; }
.mt4-clock { left: 430px; top: 204px; width: 220px; text-align: center; font: 800 32px/1.15 var(--font-display); letter-spacing: 0.04em; color: #f5d175; }
.mt4-clock.late { color: #ff6976; animation: sqPulse 0.9s ease-in-out infinite alternate; }
.mt4-pause { left: 934px; top: 126px; width: 118px; height: 118px; min-height: 0; padding: 0; border: 0; border-radius: 24px; background: none; box-shadow: none; cursor: pointer; }
.mt4-pause::after { content: ""; position: absolute; inset: -14px; }
.mt4-pause img { position: absolute; left: 0; top: 0; width: 118px; height: 118px; }
.mt4-pause img.ic { left: 11px; top: 11px; width: 96px; height: 96px; }
.mt4-pause:active { transform: translateY(3px); }
/* the tray */
.mt4-traybg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.mt4-nextl { left: 10px; top: 59px; width: 142px; text-align: center; font: 800 26px/1.15 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #aebed3; }
.mt4-next { left: 13px; top: 100px; width: 132px; height: 175px; }
.mt4-mini { position: relative; display: block; width: 132px; height: 175px; }
.mt4-mini .mt4-win { position: absolute; inset: 0; overflow: hidden; clip-path: polygon(15.7% 3.8%, 85% 3.8%, 95.7% 12.4%, 95.7% 85.4%, 80.7% 94.6%, 51.4% 97.8%, 17.1% 94.6%, 5% 85.4%, 5% 13%); background: #0a1a30; }
.mt4-mini .mt4-fr { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt4-hand { left: 162px; top: 19px; display: flex; gap: 19px; }
.mt4-card { position: relative; flex: 0 0 208px; width: 208px; height: 274px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #f5f6fc; cursor: pointer; touch-action: none; transition: transform 0.12s ease; }
.mt4-card .mt4-win { position: absolute; inset: 0; overflow: hidden; background: #0a1a30; pointer-events: none;
  clip-path: polygon(12.7% 2.8%, 85.5% 2.8%, 96.4% 11%, 96.4% 32.1%, 92.3% 37.2%, 92.3% 77.6%, 96.8% 82.4%, 84.1% 93.1%, 50.9% 98.3%, 17.3% 93.1%, 3.6% 83.1%, 8.2% 76.9%, 8.2% 37.6%, 3.6% 32.4%, 3.6% 10.3%); }
.mt4-win .mt4-paint { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.mt4-win .mt4-fig { position: absolute; left: 10%; top: 6%; width: 80%; height: 70%; object-fit: contain; }
.mt4-card .mt4-charge { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, rgba(8, 229, 238, 0.12), rgba(8, 229, 238, 0.4)); }
.mt4-card.poor .mt4-win img { filter: saturate(0.25) brightness(0.62); }
.mt4-card.poor .mt4-charge { height: calc(var(--f, 0) * 100%); }
.mt4-card .mt4-fr { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt4-card .mt4-nm { position: absolute; left: 34px; top: 188px; width: 140px; height: 27px; box-sizing: border-box; padding: 0 5px; border-radius: 4px; background: #071321; border: 1px solid #446079;
  font: 800 21px/25px var(--font-display); letter-spacing: 0.02em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f5f6fc; }
.mt4-card .mt4-nm.sm { font-size: 18px; } .mt4-card .mt4-nm.xs { font-size: 15.5px; }
.mt4-card .mt4-pos { position: absolute; left: 34px; top: 218px; width: 144px; height: 31px; font: 800 27px/31px var(--font-display); letter-spacing: 0.04em; text-align: center; text-transform: uppercase; color: #f5f6fc; }
.mt4-card .mt4-pos.sm { font-size: 21px; letter-spacing: 0.08em; }
.mt4-card .mt4-cost { position: absolute; left: -7px; top: -7px; width: 65px; height: 65px; }
.mt4-card .mt4-cost img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt4-card .mt4-cost b { position: relative; display: block; font: 800 34px/65px var(--font-display); text-align: center; color: #f5f6fc; }
.mt4-card.selected, .mt4-card[data-st="selected"] { transform: translateY(-26px); }
.mt4-card:active { transform: translateY(-8px); }
.mt4-card[data-st="selected"]:active { transform: translateY(-26px); }
/* v5 "your squad is the deck" (clash.js cardHTML5): the owner's frames (art to add/cards v5). .v5c is the frame's whole
   600 x 800 picture, laid so its card body (36,50 528 x 706) fills the card's box; everything in it is placed in those
   600 x 800 pixels (left/top/width/height in %, set inline). Text sizes are the tray's 1080-wide reference pixels. */
.prb-strip[hidden] { display: none; }
.mt4-card.v5, .mt4-mini.v5 { overflow: visible; }
.mt4-card.v5.empty { pointer-events: none; border: 3px dashed rgba(120, 170, 220, 0.18); border-radius: 22px; box-sizing: border-box; }
.mt4-mini.v5.empty { border: 2px dashed rgba(120, 170, 220, 0.14); border-radius: 16px; box-sizing: border-box; }
.v5c { position: absolute; left: -6.82%; top: -7.08%; width: 113.64%; height: 113.31%; pointer-events: none; }
.v5c > * { position: absolute; }
.v5c .v5-fr, .v5c .v5-sel, .v5c .v5-now { left: 0; top: 0; width: 100%; height: 100%; }
.v5c .v5-port, .v5c .v5-paint { overflow: hidden; border-radius: 4% / 3%; }
.v5c .v5-port { background: radial-gradient(110% 80% at 50% 26%, var(--rc, #2f6db0) 0%, #0a1a30 72%); }
.v5c .v5-port.r-common { --rc: #3a6a9e; } .v5c .v5-port.r-rare { --rc: #1696d8; } .v5c .v5-port.r-epic { --rc: #7a3fd6; }
.v5c .v5-port.r-legendary { --rc: #d99a12; } .v5c .v5-port.r-superstar { --rc: #d4508f; }
.v5c .v5-port img { position: absolute; left: 50%; top: 7%; width: 76%; transform: translateX(-50%); }   /* his hero figure, head and shoulders in the window */
.v5c .v5-paint img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
/* the wait before the next man can come on (clash.js M.depCd, the match rules' gap): his window greyed with the seconds left */
.v5c .v5-cd { display: none; align-items: center; justify-content: center; border-radius: 4% / 3%; background: rgba(4, 10, 24, 0.62); font: 800 italic 88px/1 var(--font-display); color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.6); }
.mt4-card.cool .v5c .v5-cd { display: flex; }
.mt4-card.cool .v5c .v5-port img { filter: grayscale(0.6) brightness(0.75); }
.v5c .mt4-charge { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, rgba(8, 229, 238, 0.12), rgba(8, 229, 238, 0.4)); }
.mt4-card.v5.poor .v5-port img, .mt4-card.v5.poor .v5-paint img { filter: saturate(0.25) brightness(0.62); }
.v5c .v5-cost, .v5c .v5-num { display: flex; align-items: center; justify-content: center; font: 800 38px/1 var(--font-display); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }
.v5c .v5-num { font-size: 23px; color: #e8f4ff; }
.mt4-card.v5.poor .v5-cost { color: #9fb0c6; }
.v5c .v5-tr { object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.v5c .v5-nm, .v5c .v5-pl, .v5c .v5-rb { display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 0 4%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; color: #f5f6fc; }
.v5c .v5-nm { font: 800 24px/1 var(--font-display); letter-spacing: 0.03em; }
.v5c .v5-nm.sm { font-size: 20px; } .v5c .v5-nm.xs { font-size: 17px; }
.v5c .v5-pl { font: 800 15px/1 var(--font-display); letter-spacing: 0.06em; color: #bfe6ff; }
.v5c .v5-pl.why { color: #ffe08a; }
.v5c .v5-rb { padding-left: 10%; font: 800 14.5px/1 var(--font-display); letter-spacing: 0.05em; color: #f3ecff; }   /* (right of the ribbon's icon) */
.v5c .v5-st { overflow: hidden; border-radius: 99px; }
.v5c .v5-st i, .v5c .v5-st em { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 99px; }
.v5c .v5-st i { width: calc(var(--st, 1) * 100%); background: linear-gradient(90deg, #22b86b, #7dffb0); }
.v5c .v5-st em { left: auto; right: 0; width: calc(var(--pu, 0) * 30%); background: linear-gradient(90deg, #ffd34d, #ffe9a3); opacity: 0.9; }   /* fresh legs: rest builds up to +40% */
.mt4-card.v5.low .v5-st i { background: linear-gradient(90deg, #d9542b, #ffb347); }
.v5c .v5-sel, .v5c .v5-now, .v5c .v5-pill { opacity: 0; transition: opacity 0.12s; }
.mt4-card.v5[data-st="selected"] .v5-sel { opacity: 1; }
.mt4-card.v5.now:not([data-st="selected"]) .v5-now { animation: v5now 1.1s ease-in-out infinite alternate; }   /* the pack's suggested pulse: 0.4 to 1 over 1.1 s */
.mt4-card.v5.now .v5-pill { opacity: 1; }
@keyframes v5now { from { opacity: 0.4; } to { opacity: 1; } }
.v5c .v5-pill img { position: absolute; inset: 0; width: 100%; height: 100%; }
.v5c .v5-pill b { position: relative; display: flex; height: 100%; align-items: center; justify-content: center; padding-bottom: 6%; box-sizing: border-box; font: 800 22px/1 var(--font-display); letter-spacing: 0.08em; color: #ffe08a; }
.mt4-mini.v5 .v5-nm, .mt4-mini.v5 .v5-pl, .mt4-mini.v5 .v5-rb, .mt4-mini.v5 .v5-st, .mt4-mini.v5 .v5-pill, .mt4-mini.v5 .v5-sel, .mt4-mini.v5 .v5-now { display: none; }
.mt4-mini.v5 .v5-cost { font-size: 26px; } .mt4-mini.v5 .v5-num { font-size: 16px; }
/* the energy meter: housing, badge, ten cells (the next one charging), the count */
.mt4-en { left: 0; top: 0; width: 1080px; height: 399px; pointer-events: none; }
.mt4-en > * { position: absolute; }
.mt4-house { left: 27px; top: 266px; width: 1020px; height: 130px; }
.mt4-ebadge { left: 27px; top: 255px; width: 142px; height: 142px; }
.mt4-enum { left: 27px; top: 262px; width: 142px; height: 142px; font: 800 62px/142px var(--font-display); text-align: center; color: #f5f6fc; text-shadow: 0 2px 6px rgba(0, 20, 40, 0.8); }
.mt4-elab { left: 397px; top: 272px; width: 260px; text-align: center; font: 800 24px/1.15 var(--font-display); letter-spacing: 5px; text-transform: uppercase; color: #e2e7f0; }
.mt4-elab em { margin-left: 8px; font-style: normal; color: #f7c948; letter-spacing: 1px; }
.mt4-cells { left: 185px; top: 307px; display: flex; gap: 10px; }
.mt4-cell { position: relative; width: 60px; height: 67px; }
.mt4-cell img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mt4-cell .on { clip-path: inset(calc((1 - var(--f, 0)) * 100%) 0 0 0); }
.mt4-cell:not([data-f="1.00"]) .on { opacity: 0.7; }
.mt4-cell .sp { opacity: 0; transition: opacity 0.12s ease; }
.mt4-cell.spend .sp { opacity: 1; }
.mt4-ecount { left: 902px; top: 317px; width: 125px; text-align: center; font: 800 38px/1.15 var(--font-display); color: #85f8ff; }
.mt4-tray.double .mt4-cell[data-f="1.00"] .on { filter: drop-shadow(0 0 6px rgba(247, 201, 72, 0.8)); }
/* the touchline strip (Pitch Rivals v3, clash.js renderBench): your keeper, your starters and your bench along the bottom of
   the pitch (the camera leaves it the bottom 12%: BENCH_H). A chip: his face, his stamina bar (gold past full: fresh legs),
   his energy cost, his state. Tap to send him on, again to pull him off. */
.prb-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; z-index: 4; display: flex; align-items: stretch; justify-content: center; gap: 0; padding: 0 4px 4px; box-sizing: border-box; pointer-events: none; }
/* the two groups: the matchday five, a divider (the subs arrows), the bench (a touch smaller) */
.prb-grp { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-width: 0; padding-top: 11px; box-sizing: border-box; }
.prb-grp.five { flex: 5 1 0; } .prb-grp.subs { flex: 3 1 0; }
.prb-gl { position: absolute; left: 0; right: 0; top: 0; font: 800 8px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; text-align: center; color: #aebed3; white-space: nowrap; overflow: hidden; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.prb-grp.subs .prb-gl { color: #7dd3ff; }
.prb-div { position: relative; flex: 0 0 20px; width: 20px; margin: 11px 2px 0; background: transparent center 55% / 90% auto no-repeat; }
.prb-div::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 4px; width: 1px; background: rgba(174, 190, 211, 0.35); }
.prb-grp.subs .prb-chip { max-height: 66px; opacity: 0.94; }
.prb-chip { position: relative; flex: 1 1 0; width: auto; max-width: 54px; min-width: 0; height: 100%; max-height: 74px; min-height: 0; padding: 0; border: 0; border-radius: 10px; background: linear-gradient(180deg, #163052, #07172d);
  box-shadow: 0 0 0 2px #19d6f0 inset, 0 3px 6px rgba(0, 0, 0, 0.5); color: #fff; pointer-events: auto; cursor: pointer; touch-action: none; transition: transform 0.12s ease; }
.prb-chip:active { transform: translateY(-3px); }
.prb-chip.st-gk { box-shadow: 0 0 0 2px #f7c948 inset, 0 3px 6px rgba(0, 0, 0, 0.5); cursor: default; }
.prb-chip.st-on { box-shadow: 0 0 0 2px #39d98a inset, 0 0 10px rgba(57, 217, 138, 0.6); }
.prb-chip.st-tired { filter: grayscale(0.9) brightness(0.7); }
.prb-chip.st-tired::after { content: ""; position: absolute; left: 46%; top: 8%; width: 8%; height: 84%; background: #ff5a5a; transform: rotate(45deg); border-radius: 3px; opacity: 0.55; }
.prb-chip.poor .prb-face, .prb-chip.poor .prb-nm { opacity: 0.45; }
.prb-chip.shake { animation: prbShake 0.3s ease; }
@keyframes prbShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.prb-face { position: absolute; left: 50%; top: 4px; width: 58%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #27406a, #0a1a30); }
.prb-face img { width: 100%; height: 100%; display: block; }
.prb-cost { position: absolute; left: -4px; top: -5px; width: 18px; height: 18px; display: grid; place-items: center; font: 800 11px/1 var(--font-display); font-style: normal; color: #fff; background: #1d6fe0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.prb-oop { position: absolute; right: -4px; top: -5px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--font-display); font-style: normal; color: #fff; background: #e53935; border: 1.5px solid #fff; }
.prb-nm { position: absolute; left: 2px; right: 2px; bottom: 16px; font: 800 9px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.prb-bar { position: absolute; left: 5px; right: 5px; bottom: 11px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, 0.55); }
.prb-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: #39d98a; }
.prb-bar > em { position: absolute; left: 0; top: -1px; bottom: -1px; border-radius: 3px; background: #f7c948; box-shadow: 0 0 6px #f7c948; }
.prb-chip.low .prb-bar > i { background: #ffb300; }
.prb-tag { position: absolute; left: 0; right: 0; bottom: 2px; font: 800 7.5px/1 var(--font-display); letter-spacing: 0.04em; color: #aebed3; text-align: center; white-space: nowrap; overflow: hidden; }
.prb-chip.st-on .prb-tag { color: #7dff9e; } .prb-chip.st-tired .prb-tag { color: #ff8a80; } .prb-chip.st-gk .prb-tag { color: #f7c948; } .prb-chip.oop .prb-tag { color: #ffb4a8; }
/* the owner's painted pieces (art to add/pitch rivals v3, cut as prv_*): the chip frame, the stamina pills, the cost coins, the badges */
.prb-chip.art { background: var(--chip) center / 100% 100% no-repeat; box-shadow: none; border-radius: 0; }
.prb-chip.art.st-tired { filter: grayscale(0.4) brightness(0.85); }
.prb-chip.art.st-tired::after { display: none; }
.prb-chip.art .prb-face { top: 9%; width: 60%; }
.prb-chip.art .prb-nm { bottom: 17px; }
.prb-chip.art .prb-bar { left: 14%; right: 14%; bottom: 9px; height: 7px; background: rgba(0, 0, 0, 0.5); border-radius: 4px; }
.prb-chip.art .prb-bar > i, .prb-chip.art .prb-bar > em { background: transparent center / 100% 100% no-repeat; border-radius: 0; box-shadow: none; top: 0; bottom: 0; }
.prb-cost.art { width: 20px; height: 22px; background: transparent center / 100% 100% no-repeat; clip-path: none; left: -5px; top: -6px; }
.prb-oop.art { width: 19px; height: 19px; background: transparent center / 100% 100% no-repeat; border: 0; right: -5px; top: -6px; }
.prb-fresh { position: absolute; right: -4px; top: 14px; width: 22px; height: 18px; background: transparent center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(57, 217, 138, 0.8)); }

/* ---- v4 (1 Oct 2026): tired men who stay on, swaps, and the shot duel ---- */
.prb-chip.tiring .prb-bar > i { background: #ffb300; } .prb-chip.tiring .prb-tag { color: #ffd27a; }
.prb-chip.gassed .prb-bar > i { background: #ff5a4a; } .prb-chip.gassed .prb-tag { color: #ff8a80; }
.prb-chip.gassed { animation: prbGas 0.9s ease-in-out infinite; }
@keyframes prbGas { 50% { filter: brightness(1.25) drop-shadow(0 0 7px rgba(255, 90, 74, 0.9)); } }
.prb-chip.pick { transform: translateY(-5px); filter: drop-shadow(0 0 8px #ffe08a); } .prb-chip.pick .prb-tag { color: #ffe08a; }
.prb-chip.want { animation: prbWant 0.8s ease-in-out infinite; }
@keyframes prbWant { 50% { filter: drop-shadow(0 0 7px #7dd3ff); transform: translateY(-3px); } }
.prb-grp.want .prb-gl { color: #ffe08a; }
.prb-grp.none .prb-gl { color: #ff8a80; } .prb-grp.none .prb-chip { opacity: 0.6; }
/* the duel: the goal grid over the pitch's foot, its caption and clock; the shot / save cards are the tray's ordinary frames */
.prd { position: absolute; left: 6%; right: 6%; bottom: 13%; height: 26%; z-index: 5; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.prd[hidden] { display: none; }
.prd.save { bottom: auto; top: 2%; height: auto; }
.prd-top { text-align: center; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 2px #000; }
.prd-top b { display: block; font: 800 italic 19px/1 var(--font-display); letter-spacing: 0.05em; color: #ffe08a; }
.prd.save .prd-top b { color: #7dd3ff; }
.prd-top em { display: block; margin-top: 2px; font: 700 12px/1.15 var(--font-display); letter-spacing: 0.02em; font-style: normal; color: #e6f1ff; }
.prd-goal { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 5px; border-radius: 12px 12px 3px 3px; background: rgba(5, 12, 26, 0.74); border: 2px solid rgba(255, 255, 255, 0.7); border-bottom-width: 3px; pointer-events: auto; touch-action: none; }
.prd-cell { position: relative; display: grid; place-items: center; min-height: 0; padding: 0; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 7px; color: #fff; cursor: pointer; overflow: hidden;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 8px), rgba(255, 255, 255, 0.05); touch-action: none; }
.prd-h { position: absolute; inset: 0; background: linear-gradient(180deg, #ffb347, #ff8a1f); opacity: 0; pointer-events: none; }
.prd-cell b { position: relative; font: 800 16px/1 var(--font-display); text-shadow: 0 1px 3px #000; pointer-events: none; }
.prd-cell.off { opacity: 0.28; }
.prd-cell:active, .prd-cell.hov { outline: 3px solid #ffe08a; outline-offset: -2px; background-color: rgba(255, 224, 138, 0.25); }
.prd-bar { height: 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.55); overflow: hidden; margin: 0 8%; }
.prd-bar i { display: block; height: 100%; width: calc(var(--t, 1) * 100%); background: #ffe08a; }
.prd.save .prd-bar i { background: #7dd3ff; }
.mt4-card.k-duel .mt4-win { background: #0c2142; }
.mt4-card.k-duel .prd-art { position: absolute; left: 0; top: 0; width: 100%; height: 69%; }
.mt4-card.k-duel.sel { transform: translateY(-26px); }
.mt4-mini.k-duel .prd-face { position: absolute; left: 8%; top: 8%; width: 84%; height: 62%; object-fit: cover; object-position: center 30%; }
.prd-who { position: absolute; left: 0; right: 0; top: 62%; font: 800 20px/1 var(--font-display); text-align: center; text-transform: uppercase; color: #f5f6fc; text-shadow: 0 2px 4px #000; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prd-fin { position: absolute; left: 0; right: 0; top: 78%; font: 800 17px/1 var(--font-display); font-style: normal; text-align: center; color: #ffe08a; text-shadow: 0 2px 4px #000; }
.prd-fin.tired { color: #ff9a8a; }

/* ---- the shot duel's dock (v4, 1 Oct 2026: the owner's shot-system art pack, prs_*): over the foot of the pitch and the tray ---- */
#clDock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; padding: 6px 8px max(var(--safe-b, 0px), 10px); box-sizing: border-box; background: linear-gradient(180deg, rgba(4, 12, 28, 0) 0, rgba(4, 12, 28, 0.94) 16px, #06162c 60px); border-top: 1px solid rgba(90, 170, 255, 0.35); touch-action: none; user-select: none; -webkit-user-select: none; color: #f5f6fc; }
#clDock[hidden] { display: none; }
.prk-in { position: relative; display: flex; flex-direction: column; gap: 6px; }
.prk-top { display: flex; align-items: center; gap: 6px; height: 46px; }
.prk-who { display: flex; align-items: center; gap: 4px; width: 108px; flex: 0 0 auto; }
.prk-face { position: relative; width: 42px; height: 42px; flex: 0 0 auto; background: center / contain no-repeat; display: grid; place-items: center; }
.prk-face img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.prk-wt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prk-num { font: 800 15px/1 var(--font-display); color: #fff; }
.prk-nm { font: 700 9px/1 var(--font-display); letter-spacing: 0.04em; color: #aebed3; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58px; }
.prk-stam { position: relative; display: block; width: 58px; height: 11px; background: center / 100% 100% no-repeat; overflow: hidden; }
.prk-fill { position: absolute; left: 4%; top: 14%; height: 72%; width: 92%; border-radius: 5px; background: left center / 53px 100% no-repeat #34c45a; transition: width 0.3s ease; }
.prk-fill.amber { background-color: #ffb300; } .prk-fill.red { background-color: #ff5a4a; }
.prk-banner { flex: 1 1 auto; min-width: 0; height: 36px; background: center / 100% 100% no-repeat; display: grid; place-items: center; font: 800 italic 14px/1 var(--font-display); letter-spacing: 0.08em; color: #ffe08a; text-shadow: 0 1px 2px #000; }
#clDock.save .prk-banner { color: #9fe0ff; }
.prk-ring { position: relative; width: 44px; height: 44px; flex: 0 0 auto; background: center / contain no-repeat; display: grid; place-items: center; }
.prk-rm { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(transparent calc(var(--f, 1) * 360deg), rgba(6, 22, 44, 0.82) 0); mask: radial-gradient(circle, transparent 60%, #000 61%); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); }
.prk-rt { position: relative; font: 800 12px/1 var(--font-display); color: #ffe08a; text-shadow: 0 1px 2px #000; }
.prk-opp { width: 36px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.prk-ob { width: 24px; height: 31px; background: center / contain no-repeat; opacity: 0.55; transition: opacity 0.2s, filter 0.2s; }
.prk-opp.in .prk-ob { opacity: 1; filter: drop-shadow(0 0 5px #7dd3ff); }
.prk-opp small { font: 700 7px/1 var(--font-display); letter-spacing: 0.04em; color: #aebed3; white-space: nowrap; }
/* the goal panel: the pack's touch rectangles, scaled with it */
.prk-goal { position: relative; width: 88%; margin: 0 auto; aspect-ratio: 2 / 1; }
.prk-gp { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.prk-zone { position: absolute; padding: 0; border: 0; min-height: 0; border-radius: 6px; background: transparent; box-shadow: none; display: grid; place-items: center; color: #bfe9ff; cursor: pointer; touch-action: none; }
.prk-zone:active { background: rgba(125, 230, 255, 0.18); }
.prk-zl { position: relative; font: 800 9.5px/1 var(--font-display); letter-spacing: 0.06em; text-shadow: 0 1px 2px #000, 0 0 4px #000; pointer-events: none; }
.prk-zo { position: absolute; inset: -4%; background: center / 100% 100% no-repeat; opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.prk-zone.hov .prk-zo.hov { opacity: 1; } .prk-zone.lock .prk-zo.lock { opacity: 1; }
.prk-zone.hov { background: rgba(125, 230, 255, 0.16); }
.prk-zone.lock .prk-zl { opacity: 0; }
.prk-zone.off { opacity: 0.32; }
.prk-zone.want:not(.hov):not(.lock) { animation: prkWant 1.1s ease-in-out infinite; }
@keyframes prkWant { 50% { box-shadow: inset 0 0 0 2px rgba(255, 224, 138, 0.55); } }
.prk-zt { position: absolute; width: 36%; height: 72%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7)); }
.prk-zt[hidden] { display: none; }
.prk-zp { position: absolute; right: 7%; bottom: 7%; font: 800 9px/1 var(--font-display); color: #ffe08a; text-shadow: 0 1px 2px #000; pointer-events: none; }
.prk-km { position: absolute; top: 66%; width: 24px; height: 27px; transform: translateX(-50%); background: center / contain no-repeat; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8)); }
/* the technique / save cards */
.prk-cards { display: flex; justify-content: center; gap: 10px; padding: 0 2px; }
.prk-card { position: relative; width: 86px; height: auto; aspect-ratio: 86 / 114; flex: 0 1 86px; min-width: 0; padding: 0; border: 0; min-height: 0; background: none; box-shadow: none; border-radius: 10px; cursor: pointer; touch-action: none; transition: transform 0.12s ease, opacity 0.2s; }
.prk-ca { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.prk-cn { position: absolute; left: 9%; right: 9%; bottom: 7%; height: 13%; display: grid; place-items: center; font: 800 12px/1 var(--font-display); letter-spacing: 0.08em; color: #fff; text-shadow: 0 1px 2px #000; pointer-events: none; }
.prk-cf { position: absolute; left: -4%; top: -3%; width: 108%; height: 106%; opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.prk-card.sel .prk-cf { opacity: 1; }
.prk-card.sel { transform: translateY(-6px); }
.prk-card:active { transform: translateY(-3px); }
.prk-card.dim { opacity: 0.4; }
.prk-card:disabled { cursor: default; }
/* the status pill */
.prk-pill { position: relative; height: 30px; display: grid; place-items: center; }
.prk-pn, .prk-pl { position: absolute; inset: 0; background: center / 100% 100% no-repeat; transition: opacity 0.15s; }
.prk-pl { opacity: 0; } .prk-pill.locked .prk-pl { opacity: 1; } .prk-pill.locked .prk-pn { opacity: 0; }
.prk-pt { position: relative; font: 800 11px/1 var(--font-display); letter-spacing: 0.05em; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90%; }
.prk-pill.locked .prk-pt { color: #ffe08a; }
.prk-pill.opp-clear .prk-pt { text-shadow: 0 0 6px rgba(52, 196, 90, 0.8), 0 1px 2px #000; } .prk-pill.opp-difficult .prk-pt { text-shadow: 0 0 6px rgba(255, 90, 74, 0.8), 0 1px 2px #000; }
.prk-drag { position: absolute; left: 0; top: 0; width: 56px; height: 72px; object-fit: contain; pointer-events: none; z-index: 5; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); }
.prk-drag[hidden] { display: none; }
body.sq-duel #clHail, body.sq-duel #clSkill { display: none !important; }
/* the pause menu's Shot Lab */
.card .prl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 14px; }
.card .prl button.sm { flex: 0 0 auto; min-height: 0; padding: 9px 11px; font-size: 13px; }

/* the layers (1 Oct 2026): a dive's whole side lit, the reflex beat (the keeper's flash, the striker's ring), the tell, the keeper off
   his line, the situational cards (Square It, Round Him: stand-in paintings in a drawn frame until the owner's art) */
.prk-zone.col { background: rgba(125, 230, 255, 0.14); box-shadow: inset 0 0 0 2px rgba(125, 230, 255, 0.5); }
.prk-zone.flash { animation: prkFlash 0.16s steps(2) infinite; box-shadow: inset 0 0 0 3px #ffe08a; }
@keyframes prkFlash { 0% { background: rgba(255, 224, 138, 0.45); } 50% { background: rgba(255, 90, 74, 0.4); } }
.prk-sr { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #ffffff; transform: translate(-50%, -50%) scale(var(--k, 1)); opacity: 0; pointer-events: none; }
.prk-zone.strike .prk-sr { opacity: 1; }
.prk-zone.strike.gold .prk-sr { border-color: #ffe08a; box-shadow: 0 0 12px #ffe08a, inset 0 0 8px #ffe08a; }
.prk-zone.strike { box-shadow: inset 0 0 0 2px rgba(255, 224, 138, 0.5); }
.prk-pill.rf .prk-pt { color: #ffe08a; animation: prkPulse 0.3s ease-in-out infinite alternate; }
@keyframes prkPulse { to { transform: scale(1.08); } }
.prk-opp.tell .prk-ob { opacity: 1; width: 30px; height: 40px; background-size: cover; background-position: center top; border-radius: 4px; box-shadow: 0 0 0 2px #ff9a8a, 0 0 8px #ff9a8a; }
.prk-opp.tell small { color: #ffb4a8; }
.prk-km.out { filter: drop-shadow(0 0 6px #ffb300) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8)); transform: translateX(-50%) scale(1.25); }
.prk-kol { position: absolute; left: 0; right: 0; top: 2%; text-align: center; font: 800 9px/1 var(--font-display); letter-spacing: 0.08em; color: #ffd27a; text-shadow: 0 1px 2px #000; pointer-events: none; }
.prk-kol[hidden] { display: none; }
.prk-card.sp { border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 2px #ffb347, 0 0 10px rgba(255, 179, 71, 0.6); background: #0c2142; }
.prk-card.sp .prk-ca { object-fit: cover; object-position: center 20%; }
.prk-card.sp .prk-cn { left: 0; right: 0; bottom: 0; height: 20%; background: linear-gradient(180deg, rgba(5, 15, 34, 0.6), #071a33); font-size: 10.5px; letter-spacing: 0.04em; }
.card .prl button.tg { font-size: 12px; }
.card .prl button.tg.on { border-color: #34c45a; color: #c8f7d2; }
/* the match rules' descriptions (clash.js rulesHTML: RULE_TXT under a choice, LYR_TXT in each layer's toggle) */
.rl-d { margin: 2px 2px 12px; font: 500 12.5px/1.4 var(--font-ui); color: #c4d0e2; text-align: left; }
.prl button.row, .card .prl button.row.sm { flex: 1 1 100%; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; display: block; white-space: normal; text-align: left; border-radius: 14px; padding: 10px 12px; }
.prl button.row b { display: block; white-space: normal; font: 800 13.5px/1.15 var(--font-ui); }
.prl button.row small { display: block; margin-top: 4px; font: 500 12px/1.35 var(--font-ui); color: #b8c6da; white-space: normal; text-transform: none; letter-spacing: 0; }
.prl button.row.on small { color: #d9e6f5; }

/* ======================================================================================================================
   The match board (2 Oct 2026): the owner's Pitch_Rivals_Layout_V2_Bottom_Energy (art to add/match layout v2; its SVGs
   are assets/mb6). Everything in its 853 x 1844 design pixels (layout.json), scaled whole by --bk at --bx, --by in #stage
   (clash.js fitBoard): the painted ground (#clBack), the field window (#clField: the canvas and what sits over the
   pitch), then the board (#clBoard: rails, tray, scoreboard, our logo, live numbers, cards, the card-play layers).
   ====================================================================================================================== */
body.mb6-on { background: #010e2c; }
body.mb6-on #stage::before { content: none; }
.mb6 { position: absolute; left: var(--bx, 0px); top: var(--by, 0px); width: 853px; height: 1844px; transform: scale(var(--bk, 0.43)); transform-origin: 0 0; }
/* the painted ground: the whole screen, under the notch and the home bar too (the board is a little narrower than most
   phones: its own edges would show) */
.mb6-back { position: absolute; left: 0; right: 0; top: calc(-1 * var(--safe-t, 0px)); bottom: 0; z-index: 0; pointer-events: none; background: #010e2c url("assets/mb6/bg.webp") center / cover no-repeat; }
.mb6-probe { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: var(--safe-t, 0px) 0 var(--safe-b, 0px); visibility: hidden; pointer-events: none; }
.mb6-field { position: absolute; z-index: 1; overflow: hidden; border-radius: calc(10px * var(--bk, 0.43)); background: #08160f; }
.mb6-field #c { display: block; border-radius: 0; box-shadow: none; }
.mb6 { z-index: 2; pointer-events: none; color: #f5f6fc; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mb6 > * { position: absolute; }
.mb6 img { display: block; }
.mb6 [hidden] { display: none !important; }
/* the field window's border and the right rail, drawn to this phone's height (clash.js framesSVG); everything below the
   middle moves down by --dy (fitBoard) */
.mb6-frames { left: 0; top: 0; width: 0; height: 0; }
.mb6-fr { position: absolute; overflow: visible; pointer-events: none; }
/* the header: our logo (owner: "please use our Pitch Rivals logo at the top"), the crests, names, score and clock, pause */
.mb6-logo { left: 330px; top: -6px; width: 193px; height: 96px; z-index: 3; background: var(--art-lg_logo) center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55)); }
.mb6-crest { top: 104px; width: 60px; height: 64px; display: grid; place-items: center; }
.mb6-crest.me { left: 35px; } .mb6-crest.them { left: 669px; }
.mb6-crest > * { width: 60px; height: 60px; }
.mb6-crest svg { width: 60px; height: 60px; display: block; }
.mb6-name { top: 108px; height: 35px; font: 800 30px/35px var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.mb6-name.me { left: 102px; width: 184px; } .mb6-name.them { left: 494px; width: 170px; }
.mb6-name.sm { font-size: 25px; } .mb6-name.xs { font-size: 21px; }
.mb6-score { left: 304px; top: 98px; width: 154px; height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; font: 800 54px/1 var(--font-display); text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6); }
.mb6-score i { font-style: normal; font-size: 42px; }
.mb6-clock { left: 314px; top: 155px; width: 136px; height: 32px; text-align: center; white-space: nowrap; font: 800 31px/32px var(--font-display); letter-spacing: 0.03em; color: #f5d175; }
.mb6-clock.long { font-size: 23px; }
.mb6-clock.late { color: #ff6976; animation: sqPulse 0.9s ease-in-out infinite alternate; }
.mb6-pause { left: 765px; top: 89px; width: 80px; height: 90px; min-height: 0; padding: 0; border: 0; border-radius: 18px; background: none; box-shadow: none; pointer-events: auto; cursor: pointer; }
.mb6-pause::after { content: ""; position: absolute; inset: -14px; }
.mb6-pause img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb6-pause img.dn, .mb6-pause:active img:not(.dn) { opacity: 0; }
.mb6-pause:active img.dn { opacity: 1; }
/* the footer: the next arrival (its ring runs down the wait before your next man can come on) and the energy bar; the
   right rail's TEAM buttons */
.mb6-ring { left: 25px; top: calc(1734px + var(--dy, 0px)); width: 88px; height: 88px; overflow: visible; filter: drop-shadow(0 0 4px rgba(55, 230, 255, 0.7)); }
.mb6-ring circle { fill: none; stroke: #37e6ff; stroke-width: 6.07; }
.mb6.arr-now .mb6-ring { animation: mb6now 1.1s ease-in-out infinite alternate; }
.mb6.arr-flash .mb6-ring { animation: mb6flash 0.5s ease-out 2; }
.mb6-arr { left: 34px; top: calc(1771px + var(--dy, 0px)); width: 70px; height: 29px; font: 800 27px/29px var(--font-display); text-align: center; letter-spacing: 0.02em; color: #fff; }
.mb6.arr-now .mb6-arr { font-size: 23px; color: #8dfff0; }
.mb6-cells { left: 0; top: 0; }
.mb6-seg { position: absolute; top: calc(1771px + var(--dy, 0px)); width: 48px; height: 34.5px; }
.mb6-seg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb6-seg .on { clip-path: inset(0 calc((1 - var(--f, 0)) * 100%) 0 0); }
.mb6-seg:not([data-f="1.00"]) .on { opacity: 0.55; }
.mb6-seg.spend .on { filter: sepia(1) saturate(4.5) hue-rotate(-12deg) brightness(1.08); }   /* the cells a picked card would spend: gold */
.mb6.double .mb6-seg[data-f="1.00"] .on { filter: drop-shadow(0 0 5px rgba(247, 201, 72, 0.85)); }
.mb6-ev { left: 745px; top: calc(1767px + var(--dy, 0px)); width: 72px; height: 43px; font: 800 29px/43px var(--font-display); text-align: center; color: #eafdff; }
.mb6-x2 { left: 490px; top: calc(1737px + var(--dy, 0px)); padding: 3px 7px; border-radius: 10px; font: 800 italic 22px/1 var(--font-display); color: #ffd34d; background: rgba(4, 14, 34, 0.9); border: 2px solid #f7c948; }
.mb6-team { left: 724px; width: 106px; height: 96px; min-height: 0; padding: 0; border: 0; border-radius: 16px; background: none; box-shadow: none; pointer-events: auto; cursor: pointer; touch-action: manipulation; }
.mb6-team img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb6-team img.s { opacity: 0; transition: opacity 0.12s; }
.mb6-team.on img.s { opacity: 1; }
.mb6-team:active { transform: translateY(2px); }
/* the cards: four men along the bottom, three manager cards up the right rail, the next man. A v5 card is drawn at its
   208 x 278 size (.mt4-card.v5 above: its text sizes) and scaled into the slot (--cs, set per slot) */
.mb6-hand { left: 0; top: 0; width: 0; height: 0; }
.mb6-slot { position: absolute; pointer-events: auto; touch-action: none; transition: transform 0.12s ease, opacity 0.12s ease; }
.mb6-slot > .mt4-card, .mb6-slot > .mt4-card:active, .mb6-slot > .mt4-card[data-st="selected"] { position: absolute; left: 0; top: 0; width: 208px; height: 278px; flex: none; transform-origin: 0 0; transform: scale(var(--cs, 0.8)); transition: none; }
.mb6-slot.p.sel { transform: translateY(-18px); }
.mb6-slot.m.sel { transform: translateX(-14px); }
.mb6-slot.lifted { opacity: 0.28; }
.mb6-slot.shake { animation: mb6shake 0.32s ease; }
.mb6 .v5c .v5-cd { display: none !important; }   /* (the wait shows on the arrival ring: the men's cards just grey) */
.mb6-next { left: 14px; top: calc(1553px + var(--dy, 0px)); width: 96px; height: 128px; }
.mb6-next > .mt4-mini { position: absolute; left: 0; top: 0; width: 132px; height: 176px; transform-origin: 0 0; transform: scale(0.7273); }
/* playing a card (the pack's animation/card-interaction.css): the aim curve, the target, DROP TO PLAY, the card in the air,
   the landing ring, a word over the foot of the pitch */
.mb6-aim { left: 0; top: 0; width: 853px; height: 1844px; overflow: visible; z-index: 60; visibility: hidden; }
.mb6-aim.on { visibility: visible; }
.mb6-aim .h { fill: none; stroke: #30d9ff; stroke-width: 8; opacity: 0.55; filter: url(#mb6glow); }
.mb6-aim .d { fill: none; stroke: #a8ffff; stroke-width: 3; stroke-dasharray: 10 9; animation: mb6dash 0.7s linear infinite; }
.mb6-aim.bad .h { stroke: #ff5a6e; } .mb6-aim.bad .d { stroke: #ff8192; }
.mb6-tgt { left: 0; top: 0; width: 144px; height: 144px; z-index: 61; }
.mb6-drop { left: 0; top: 0; width: 182px; height: 45px; z-index: 62; }
.mb6-ghost { left: 0 !important; top: 0 !important; z-index: 70; pointer-events: none !important; transform-origin: 50% 50%; transition: none !important; filter: drop-shadow(0 0 9px rgba(77, 239, 255, 0.55)); }
.mb6-land { width: 160px; height: 160px; z-index: 80; pointer-events: none; }
.mb6-toast { left: 18px; top: calc(1372px + var(--dy, 0px)); width: 678px; z-index: 50; text-align: center; white-space: nowrap; font: 800 italic 36px/1 var(--font-display); letter-spacing: 0.03em; color: #eaf6ff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.65), 0 0 14px rgba(0, 0, 0, 0.7); opacity: 0; }
.mb6-toast.bad { color: #ffb4a8; }
.mb6-toast.go { animation: mb6toast 1.4s ease-out both; }
@keyframes mb6dash { to { stroke-dashoffset: -38; } }
@keyframes mb6now { from { filter: drop-shadow(0 0 3px rgba(55, 230, 255, 0.55)); } to { filter: drop-shadow(0 0 12px rgba(120, 255, 240, 1)); } }
@keyframes mb6flash { 50% { filter: drop-shadow(0 0 14px rgba(255, 210, 80, 1)); } }
@keyframes mb6shake { 0%, 100% { translate: 0 0; } 25% { translate: -7px 0; } 50% { translate: 7px 0; } 75% { translate: -4px 0; } }
@keyframes mb6toast { 0% { opacity: 0; transform: translateY(14px); } 12% { opacity: 1; transform: none; } 72% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .mb6-aim .d, .mb6.arr-now .mb6-ring { animation: none; } }
/* the rail's manager cards as tiles (clash.js tileHTML; owner, 2 Oct 2026: "you can't read them"): the painting, the cost,
   the name big in the kind's colour; pressed or picked, the whole card and what it does beside the rail (the peek) */
.mb6-slot > .mb6-tile { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; box-sizing: border-box; border-radius: 14px; border: 4px solid var(--kc); background: #0a1a30;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 6px 14px rgba(0, 0, 0, 0.5); overflow: hidden; color: #fff; cursor: pointer; touch-action: none; transition: none; }
.mb6-tile.k-trick { --kc: #a66bff; --kd: #2c1458; } .mb6-tile.k-tactic { --kc: #3fdc7e; --kd: #0f4a2b; } .mb6-tile.k-pitch { --kc: #ff9a3c; --kd: #5a2c0b; }
.mb6-tile > * { position: absolute; }
.mb6-tp { left: 0; top: 0; right: 0; height: 60%; overflow: hidden; background: #0c2142; }
.mb6-tp img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.mb6-tile .mt4-charge { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, rgba(8, 229, 238, 0.12), rgba(8, 229, 238, 0.45)); }
.mb6-tile.poor .mt4-charge { height: calc(var(--f, 0) * 100%); }
.mb6-tile.poor .mb6-tp img { filter: saturate(0.25) brightness(0.62); }
.mb6-tc { left: 3px; top: 3px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font: 800 28px/1 var(--font-display); color: #fff; background: #0b1d38; border: 3px solid var(--kc); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.mb6-tile.poor .mb6-tc { color: #9fb0c6; }
.mb6-tn { left: 0; right: 0; bottom: 0; height: 40%; display: flex; align-items: center; justify-content: center; padding: 0 5px; box-sizing: border-box; text-align: center; text-transform: uppercase;
  font: 800 25px/0.95 var(--font-display); letter-spacing: 0.01em; color: #fff; text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); background: linear-gradient(180deg, var(--kd), #06142a); border-top: 2px solid var(--kc); }
.mb6-tn.sm { font-size: 21px; } .mb6-tn.xs { font-size: 18px; }
.mb6-tnow { right: 3px; top: 4px; padding: 3px 6px; border-radius: 8px; font: 800 italic 17px/1 var(--font-display); color: #2a1a00; background: #ffd34d; opacity: 0; }
.mb6-tile.now .mb6-tnow { opacity: 1; }
.mb6-tile.now { animation: mb6tile 1.1s ease-in-out infinite alternate; }
.mb6-tile[data-st="selected"] { border-color: #6ef4ff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 0 18px #4defff; animation: none; }
.mb6-tile.empty { border: 3px dashed rgba(120, 170, 220, 0.2); background: none; box-shadow: none; pointer-events: none; }
@keyframes mb6tile { from { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 0 4px var(--kc); } to { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 0 20px var(--kc); } }
.mb6-peek { left: 392px; width: 300px; z-index: 55; padding: 14px 14px 16px; box-sizing: border-box; border-radius: 20px; pointer-events: none; background: rgba(4, 14, 34, 0.95); border: 3px solid var(--kc, #4f8fc0);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); animation: mb6peek 0.14s ease-out; }
.mb6-peek.k-trick { --kc: #a66bff; } .mb6-peek.k-tactic { --kc: #3fdc7e; } .mb6-peek.k-pitch { --kc: #ff9a3c; }
.mb6-peek > * { display: block; }
.mb6-pc { position: relative; width: 236px; height: 316px; margin: 0 auto 10px; }
.mb6-pc > .mt4-card { position: absolute; left: 0; top: 0; width: 208px; height: 278px; transform: scale(1.1346); transform-origin: 0 0; pointer-events: none; }
.mb6-pw { font: 800 22px/1.1 var(--font-display); letter-spacing: 0.05em; text-align: center; color: var(--kc); }
.mb6-pt { margin-top: 8px; font: 600 23px/1.25 var(--font-display); text-align: center; color: #e4edf8; }
@keyframes mb6peek { from { opacity: 0; transform: translateX(16px); } }
/* a card locked on to a player: its ring pulses on him */
.mb6-tgt.lock { animation: mb6lock 0.45s ease-in-out infinite alternate; }
@keyframes mb6lock { from { scale: 0.88; } to { scale: 1.08; } }
/* test mode's TEST pill (dev.js): in a match, up in the corner beside the notch, off the arrival ring */
body.mb6-on #devPill { top: 10px; bottom: auto; left: 10px; }
