/* jpl-comp-ios.css: the Competitions list, premium and iPhone-native. Andrew, 28 Nov 2026: "do the same for the
   competitions page". Same principles as the match centre (jpl-match-ios.css): the system face, sentence case, no
   outlines or glow, real blur only on the bar and the sheets, grouped lists on solid surfaces, 44px controls, the
   safe areas respected, solid fallbacks for no blur and Reduce Transparency, no motion for Reduce Motion.
   Presentation only: nothing here filters, fetches or decides anything.
   ROLL BACK: ?classic=1 sends the visitor to /competitions-classic, the page exactly as it was. */

:root{
  --sys:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,"Tajawal","Segoe UI",sans-serif;
  --ios-sep:rgba(255,255,255,.10);--ios-fill:rgba(118,118,128,.24);--ios-grp:rgba(255,255,255,.065);--ios-label2:#a3adbd;
  --ios-ease:cubic-bezier(.32,.72,0,1);
  --sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;background:#05080d}
html.sheet-open,html.sheet-open body{overflow:hidden;overscroll-behavior:none}
body{min-height:100vh;color:#fff;font:400 16px/1.4 var(--sys);-webkit-font-smoothing:antialiased;
  background:radial-gradient(ellipse 80% 36% at 10% -4%,rgba(3,255,255,.10),transparent 62%),radial-gradient(ellipse 70% 34% at 100% 4%,rgba(94,140,255,.09),transparent 62%),#05080d;
  background-attachment:fixed;padding-left:var(--sal);padding-right:var(--sar)}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
[hidden]{display:none !important}
select option{background:#fff;color:#0b1a33}

/* the top bar: crest and title, and the search field that folds into it as you scroll */
.cp-top{position:sticky;top:0;z-index:30;display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;
  padding:calc(var(--sat) + 6px) 16px 4px;background:rgba(8,13,22,.72);
  -webkit-backdrop-filter:blur(28px) saturate(180%);backdrop-filter:blur(28px) saturate(180%);box-shadow:0 .5px 0 var(--ios-sep)}
.cp-brand{order:1;display:flex;align-items:center;gap:10px;min-height:44px}
.crest-mini{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font:800 11px/1 var(--sys);color:#04262a;background:linear-gradient(145deg,#5cffff,#00bfb4)}
.cp-title{font:700 20px/1 var(--sys);letter-spacing:-.012em}
#jpl-pagenav{order:2;margin-inline-start:auto;flex:0 0 auto}
.cp-search{order:3;flex:1 1 100%;display:flex;align-items:center;position:relative;
  max-height:calc(46px * (1 - var(--cp-t,0)));opacity:calc(1 - var(--cp-t,0));overflow:hidden;padding-bottom:calc(6px * (1 - var(--cp-t,0)))}
.cp-door{width:100%;height:40px;display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:12px;background:var(--ios-fill);color:rgba(235,235,245,.6);font:400 17px/1 var(--sys);text-align:start}
.cp-door span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-door.has span{color:#fff}

.cp-main{max-width:860px;margin:0 auto;padding:10px 16px calc(40px + var(--sab))}
.seg{display:flex;gap:2px;padding:2px;border-radius:11px;background:var(--ios-fill)}
.seg > *{flex:1 1 0;min-width:0;min-height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:6px;color:rgba(255,255,255,.88);font:600 13px/1 var(--sys);white-space:nowrap;transition:background .2s ease}
.seg > .on,.seg > [aria-current="page"]{background:rgba(255,255,255,.22);color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3),inset 0 .5px 0 rgba(255,255,255,.3)}
/* the country is chosen from the Where capsule, so the floating flag is not needed here */
.jcty{display:none !important}
.cp-tools{display:flex;gap:8px;margin-top:10px;overflow-x:auto;scrollbar-width:none}
.cp-tools::-webkit-scrollbar{display:none}
.tool{flex:0 0 auto;text-decoration:none;min-height:40px;padding:0 15px;border-radius:999px;background:var(--ios-fill);color:#fff;display:inline-flex;align-items:center;gap:7px;font:600 14px/1 var(--sys);white-space:nowrap}
.tool i{font-style:normal;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:rgba(255,255,255,.2);font:600 12px/18px var(--sys);text-align:center}
.tool.on{background:rgba(3,255,255,.2);color:#7dffff}.tool.on i{background:#03ffff;color:#041018}
.cp-sum{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 4px 0;font:500 13px/1.3 var(--sys);color:var(--ios-label2)}
.cp-sum button{color:#7dffff;font:600 13px/1 var(--sys);padding:8px 4px}

/* the list: one grouped card per series, 64px rows */
.cp-sec{margin-top:18px}
.cp-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 6px 8px}
.cp-h b{font:700 20px/1.2 var(--sys);letter-spacing:-.01em}
.cp-h span{font:500 13px/1 var(--sys);color:var(--ios-label2)}
.cp-card{border-radius:22px;overflow:hidden;background:var(--ios-grp);box-shadow:inset 0 .5px 0 rgba(255,255,255,.07)}
.cp-row{display:flex;align-items:center;gap:12px;min-height:68px;padding:11px 14px 11px 16px;border-top:.5px solid var(--ios-sep);transition:background .18s ease}
.cp-row:first-child{border-top:0}
.cp-row:hover{background:rgba(255,255,255,.04)}
.cp-row:active{background:rgba(255,255,255,.09)}
.cp-row:focus-visible{outline:2px solid #7dffff;outline-offset:-2px}
.cp-t{flex:1 1 auto;min-width:0;display:grid;gap:3px}
.cp-t b{font:600 17px/1.25 var(--sys);overflow-wrap:normal;word-break:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cp-t small{font:400 13px/1.35 var(--sys);color:var(--ios-label2)}
.cp-st{flex:0 0 auto;font:600 12px/1 var(--sys);padding:6px 10px;border-radius:999px;white-space:nowrap}
.cp-st.open{background:rgba(48,209,88,.18);color:#5be481}
.cp-st.shut{color:var(--ios-label2);padding-inline:0}
.cp-ch{flex:0 0 auto;color:rgba(235,235,245,.3);font-size:22px;line-height:1}
html[dir="rtl"] .cp-ch{transform:scaleX(-1)}
.cp-empty{padding:56px 20px;text-align:center;color:var(--ios-label2);font:400 15px/1.5 var(--sys)}
.cp-empty b{display:block;color:#fff;font:700 20px/1.2 var(--sys);margin-bottom:6px}
.cp-empty button{margin-top:14px;min-height:44px;padding:0 22px;border-radius:999px;background:#03ffff;color:#041018;font:600 16px/1 var(--sys)}
.cp-skel{display:grid;gap:10px;padding-top:6px}
.cp-skel .h{height:16px;width:38%;border-radius:8px;margin:14px 6px 0}.cp-skel .r{height:68px;border-radius:22px}
.cp-skel .h,.cp-skel .r{background:linear-gradient(100deg,rgba(255,255,255,.05) 30%,rgba(255,255,255,.12) 50%,rgba(255,255,255,.05) 70%);background-size:220% 100%;animation:cpshim 1.3s ease-in-out infinite}
@keyframes cpshim{from{background-position:120% 0}to{background-position:-120% 0}}

/* handy links */
.cp-links{margin-top:26px}
.cp-link{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:0 16px;border-top:.5px solid var(--ios-sep);font:500 16px/1.3 var(--sys)}
.cp-link:first-child{border-top:0}
.cp-link:active{background:rgba(255,255,255,.09)}

/* the sheets: Filters and Search */
.sh-back{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.sh{position:fixed;left:0;right:0;bottom:0;z-index:10001;max-height:92vh;max-height:92dvh;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:rgba(22,28,40,.94);-webkit-backdrop-filter:blur(32px) saturate(180%);backdrop-filter:blur(32px) saturate(180%);
  border-radius:28px 28px 0 0;box-shadow:0 -1px 0 rgba(255,255,255,.1),0 -30px 80px rgba(0,0,0,.5);padding:8px 16px calc(24px + var(--sab));touch-action:pan-y}
.sh-grip{width:44px;height:5px;border-radius:3px;background:rgba(255,255,255,.3);margin:4px auto 6px}
.sh-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px}
.sh-head b{font:700 20px/1 var(--sys);letter-spacing:-.01em}
.sh-head button{min-height:36px;padding:0 14px;border-radius:999px;background:var(--ios-fill);font:600 14px/1 var(--sys)}
.fs-h{font:600 13px/1 var(--sys);color:var(--ios-label2);margin:18px 4px 8px;letter-spacing:.02em;text-transform:uppercase}
.fs-list{border-radius:14px;overflow:hidden;background:rgba(255,255,255,.07)}
.fs-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;padding:0 16px;border-top:.5px solid var(--ios-sep);text-align:start;font:500 16px/1.3 var(--sys)}
.fs-row:first-child{border-top:0}
.fs-row .ck{width:18px;height:18px;color:#03ffff;opacity:0;flex:0 0 auto}.fs-row.on .ck{opacity:1}
.fs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.fs-pit{min-height:44px;padding:0 6px;border-radius:12px;background:rgba(255,255,255,.08);font:600 15px/1.2 var(--sys);font-variant-numeric:tabular-nums}
.fs-pit.on{background:rgba(3,255,255,.24);color:#7dffff}
.sh-done{display:block;width:100%;min-height:50px;margin-top:20px;border-radius:14px;background:#03ffff;color:#041018;font:600 17px/1 var(--sys)}

#spot{position:fixed;inset:0;z-index:10002;display:flex;flex-direction:column;background:rgba(6,10,18,.94);
  -webkit-backdrop-filter:blur(30px) saturate(170%);backdrop-filter:blur(30px) saturate(170%);padding:var(--sat) var(--sar) 0 var(--sal)}
.sp-top{display:flex;align-items:center;gap:10px;padding:10px 16px 8px}
.sp-field{flex:1 1 auto;display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border-radius:12px;background:var(--ios-fill);color:rgba(235,235,245,.6)}
.sp-field input{flex:1 1 auto;min-width:0;height:100%;border:0;background:transparent;color:#fff;font:400 17px/1 var(--sys);outline:none;-webkit-appearance:none;appearance:none}
.sp-field input::-webkit-search-cancel-button{display:none}
.sp-field input::placeholder{color:rgba(235,235,245,.6);opacity:1}
#sp-clear{width:28px;height:28px;border-radius:50%;background:rgba(235,235,245,.3);color:#000;font-size:18px;line-height:1}
.sp-cancel{color:#7dffff;font:500 17px/1 var(--sys);min-height:44px;padding:0 4px}
.sp-body{flex:1 1 auto;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:4px 16px calc(32px + var(--sab))}
.sp-sec{margin-top:18px}
.sp-h{font:600 13px/1 var(--sys);letter-spacing:.02em;text-transform:uppercase;color:var(--ios-label2);margin:0 4px 8px}
.sp-list{border-radius:16px;overflow:hidden;background:var(--ios-grp)}
.sp-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 14px;border-top:.5px solid var(--ios-sep);cursor:pointer}
.sp-row:first-child{border-top:0}
.sp-row:active{background:rgba(255,255,255,.09)}
.sp-row:focus-visible{outline:2px solid #7dffff;outline-offset:-2px}
.sp-ic{flex:0 0 auto;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--ios-fill);font:700 13px/1 var(--sys)}
.sp-ic.comp{background:rgba(255,214,10,.18);color:#ffd60a;font-size:16px}
.sp-ic.series{background:rgba(3,255,255,.16);color:#7dffff;font-size:15px}
.sp-ic.country{background:rgba(94,140,255,.2);color:#9db8ff;font-size:17px}
.sp-ic.free{background:rgba(3,255,255,.16);color:#7dffff;font-size:18px}
.sp-t2{flex:1 1 auto;min-width:0;display:grid;gap:2px}
.sp-t2 b{font:600 16px/1.25 var(--sys);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sp-t2 small{font:400 13px/1.3 var(--sys);color:var(--ios-label2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-ch{color:rgba(235,235,245,.3);font-size:22px;line-height:1}
.sp-empty{padding:56px 20px;text-align:center;color:var(--ios-label2);font:400 15px/1.5 var(--sys)}
.sp-empty b{display:block;color:#fff;font:700 18px/1.3 var(--sys);margin-bottom:6px}
.sp-note{display:flex;align-items:center;gap:10px;margin:14px 4px 0;font:400 13px/1.3 var(--sys);color:var(--ios-label2)}
.sp-spin{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.2);border-top-color:#7dffff;animation:cpspin .8s linear infinite}
@keyframes cpspin{to{transform:rotate(360deg)}}

@media (min-width:900px){
  .cp-top{flex-wrap:nowrap;padding:8px 24px}
  .cp-search{order:2;flex:1 1 auto;max-width:520px;margin:0 auto;max-height:none;opacity:1;padding-bottom:0}
  #jpl-pagenav{order:3}
  .cp-main{padding-top:24px}
  #spot{align-items:center;background:rgba(0,0,0,.5)}
  #spot .sp-top,#spot .sp-body{width:min(640px,100%)}
  #spot .sp-top{margin-top:8vh;background:rgba(22,28,40,.96);border-radius:20px 20px 0 0;padding:14px 16px 10px}
  #spot .sp-body{flex:0 1 auto;max-height:60vh;background:rgba(22,28,40,.96);border-radius:0 0 20px 20px;padding-top:0}
  .sh{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(520px,92vw);border-radius:24px}
}
@media (prefers-reduced-motion:no-preference){
  .sh{animation:cpUp .42s var(--ios-ease)}
  @keyframes cpUp{from{transform:translate3d(0,100%,0)}to{transform:none}}
  @media (min-width:900px){.sh{animation:none}}
  .sh-back,#spot:not([hidden]){animation:cpFade .22s ease}
  @keyframes cpFade{from{opacity:0}to{opacity:1}}
}
@media (prefers-reduced-motion:reduce){.cp-skel .h,.cp-skel .r,.sp-spin,.sh{animation:none}.cp-row,.seg > *{transition:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.cp-top,.sh,#spot{background:#0c121e}}
@media (prefers-reduced-transparency:reduce){.cp-top,.sh,#spot,.sh-back{-webkit-backdrop-filter:none;backdrop-filter:none}.cp-top,.sh,#spot{background:#0c121e}}
