/* Join flow (join.js) in the C · Street style: hud.css tokens (--panel, --noise, --club, --gold, --red, --disp), hard black borders + offset shadows. */
.hud .h-join{flex:none; min-height:44px; padding:4px 16px; background:var(--red); color:#fff; border:3px solid #000; box-shadow:3px 3px 0 #000;
  font-size:18px; letter-spacing:.03em; transform:rotate(-2deg); white-space:nowrap}
.hud .h-join:hover{background:#ff1a12}
.hud .h-join::after{content:" →"}
.hud .h-join-l{display:none}   /* phone landscape copy (the sheet peek hides the counter there) */

.hud .jn{--l0:#34D399; --l1:#F5B52E; --l2:#FF8A3D; --l3:#B07CFF; --l4:#3BA6FF; --l5:#8A93A3; --l7:#FF6B8A; --l8:#3BA6FF; --jc:var(--club);
  position:fixed; z-index:7; top:100px; right:20px; bottom:20px; width:min(400px,calc(100% - 40px)); display:flex; flex-direction:column; min-height:0;
  padding:0; box-shadow:6px 6px 0 var(--jc); color:var(--text)}
.hud.jn-on .h-card{display:none}   /* one panel on the right at a time */
.hud .jn-top{display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 14px 6px}
.hud .jn-top h2{font-size:26px; background:var(--red); color:#fff; padding:2px 10px; transform:rotate(-2deg); border:3px solid #000; margin-top:-26px; margin-left:-18px}
.hud .jn-x{min-width:44px; min-height:44px; border:3px solid #F4F5F7; font-size:18px; font-weight:700}
.hud .jn-steps{display:flex; gap:6px; list-style:none; padding:0 14px 10px; font-size:14px; letter-spacing:.03em}
.hud .jn-steps li{flex:1; display:flex; align-items:center; gap:6px; min-width:0; padding:4px 6px; border:2px solid rgba(255,255,255,.25); color:var(--muted)}
.hud .jn-steps b{display:grid; place-items:center; width:20px; height:20px; flex:none; background:#000; border:2px solid currentColor; font-size:12px}
.hud .jn-steps li[aria-current=step]{border-color:#F4F5F7; background:#F4F5F7; color:#000}
.hud .jn-steps li[aria-current=step] b{color:#fff; border-color:#000}
.hud .jn-steps li.done{color:var(--text); border-color:var(--jc)}
.hud .jn-body{flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:0 14px 10px}
.hud .jn-foot{display:flex; gap:8px; padding:10px 14px 14px; border-top:2px solid rgba(255,255,255,.15)}
.hud .jn-foot+.jn-hint{padding:0 14px 12px}
.hud .jn-go{flex:1; min-height:48px; padding:4px 14px; background:var(--red); color:#fff; border:3px solid #000; box-shadow:3px 3px 0 #000; font-size:19px; letter-spacing:.03em}
.hud .jn-go:disabled{background:#3a3d44; color:#9AA0AD; box-shadow:none; cursor:not-allowed}
.hud .jn-back{min-height:48px; padding:4px 14px; border:3px solid #F4F5F7; font-size:16px}

/* step 1: clubs */
.hud .jn-search{display:flex; position:sticky; top:0; z-index:1; background:#F4F5F7; color:#000; border:3px solid #000; box-shadow:4px 4px 0 #000; margin:2px 0 12px}
.hud .jn-search:focus-within{box-shadow:4px 4px 0 #000, inset 0 -3px 0 var(--jc)}
.hud .jn-search input{flex:1; min-width:0; min-height:46px; padding:0 12px; font:600 16px var(--body); outline:none; cursor:text}   /* 16 px: iOS does not zoom */
.hud .jn-search input::placeholder{color:#555}
.hud .jn-list,.hud .jn-list ul,.hud .jn-lvls{list-style:none}
.hud .jn-grp h3{font:700 12px var(--body); letter-spacing:.12em; text-transform:uppercase; color:var(--gold); margin:10px 0 4px}
.hud .jn-club{width:100%; min-height:48px; display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; padding:4px 6px; text-align:left; border:2px solid transparent}
.hud .jn-club:hover{background:rgba(255,255,255,.08)}
.hud .jn-club[aria-pressed=true]{background:var(--jc); color:#fff; border-color:#000; box-shadow:3px 3px 0 #000; text-shadow:1px 1px 0 #000}
.hud .jn-club .nm{font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hud .jn-club .fn{font-size:12px; font-weight:600; color:var(--muted)}
.hud .jn-club[aria-pressed=true] .fn{color:#fff}
.hud .jn-crest{width:32px; height:32px; object-fit:contain}
.hud .jn-emb{width:26px; height:30px; justify-self:center; background:linear-gradient(135deg,var(--c) 55%,var(--c2) 55%);
  clip-path:polygon(50% 0,100% 14%,100% 55%,50% 100%,0 55%,0 14%); filter:drop-shadow(0 0 0 #000)}   /* generic shield, no crest (SPEC: crests are trademarks) */
.hud .jn-empty{padding:16px 4px; color:var(--muted)}

/* step 2: seat types */
.hud .jn-pick{margin:2px 0 10px; color:var(--muted); font-size:13px}
.hud .jn-pick .d{color:var(--text); font-size:17px}
.hud .jn-pick .gold,.hud .jn-lvl small.gold{color:var(--gold)}
.hud .jn-first{position:relative; display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 10px; padding:8px 10px 14px; margin-bottom:10px;
  background:linear-gradient(100deg,#F5B52E,#C98A10); color:#000; border:3px solid #000; box-shadow:4px 4px 0 #000; transform:rotate(-1deg)}
.hud .jn-first b{font-size:18px}
.hud .jn-first span{font-weight:700}
.hud .jn-first .bar{position:absolute; left:8px; right:8px; bottom:5px; height:4px; background:rgba(0,0,0,.25)}
.hud .jn-first .bar i{display:block; height:100%; background:#000}
.hud .jn-lvls{display:grid; gap:6px}
.hud .jn-lvl{width:100%; min-height:52px; display:grid; grid-template-columns:16px minmax(0,1fr) auto; grid-template-rows:auto auto; align-items:center; gap:0 10px; padding:6px 10px; text-align:left;
  border:2px solid rgba(255,255,255,.25)}
.hud .jn-lvl .lv{grid-row:1/3}
.hud .jn-lvl .nm{font:700 16px var(--disp); text-transform:uppercase; letter-spacing:.02em}
.hud .jn-lvl small{grid-column:2/4; font-size:12px; color:var(--muted)}
.hud .jn-lvl .lock{font-size:13px; filter:grayscale(1)}
.hud .jn-lvl[data-state=off]{opacity:.62; border-style:dashed}
.hud .jn-lvl:hover{background:rgba(255,255,255,.08)}
.hud .jn-lvl[aria-pressed=true]{background:#F4F5F7; color:#000; border-color:#000; box-shadow:3px 3px 0 var(--jc)}
.hud .jn-lvl[aria-pressed=true] small{color:#333}
.hud .jn-lvl[aria-pressed=true] small.gold{color:#8a5a00}
.hud .jn-note,.hud .jn-hint{color:var(--muted); font-size:12px; margin-top:8px}

/* step 3: you */
.hud .jn-nick{display:block}
.hud .lab{display:block; font:700 13px var(--body); letter-spacing:.1em; text-transform:uppercase; margin-bottom:6px}
.hud .jn-nick .box{display:flex; align-items:center; background:#F4F5F7; color:#000; border:3px solid #000; box-shadow:4px 4px 0 #000; padding-left:12px; font:700 20px var(--disp)}
.hud .jn-nick .box:focus-within{box-shadow:4px 4px 0 #000, inset 0 -3px 0 var(--jc)}
.hud .jn-nick input{flex:1; min-width:0; min-height:48px; padding:0 10px 0 2px; font:700 20px var(--disp); outline:none; cursor:text}
.hud .jn-nick input[aria-invalid=true]{color:#b00000}
.hud .jn-hint{margin-top:6px}
.hud .jn-err{margin-top:8px; padding:5px 10px; background:#000; color:#fff; border:2px solid var(--red); font-weight:600}
.hud .jn-av{display:flex; gap:14px; align-items:flex-start; margin-top:18px}
.hud .jn-av .ava{--pc:var(--jc)}
.hud .jn-def{display:block; width:100%; height:100%; background:#5b616c;   /* the grey default silhouette */
  -webkit-mask:radial-gradient(circle at 50% 38%,#000 21%,transparent 22%),radial-gradient(ellipse 62% 44% at 50% 100%,#000 98%,transparent 100%);
  mask:radial-gradient(circle at 50% 38%,#000 21%,transparent 22%),radial-gradient(ellipse 62% 44% at 50% 100%,#000 98%,transparent 100%)}
.hud .jn-av .ava:has(.jn-def){background:#2a2f3a}
.hud .jn-file{display:inline-flex; align-items:center; min-height:44px; padding:4px 14px; border:3px solid #F4F5F7; font-size:16px; cursor:pointer}
.hud .jn-file:focus-within{outline:2px solid #fff; outline-offset:2px; box-shadow:0 0 0 6px var(--club)}
.hud .jn-rm{min-height:44px; padding:0 10px; margin-left:6px; text-decoration:underline; color:var(--muted)}

/* already seated */
.hud .jn-have{padding:10px 0; display:grid; gap:10px}
.hud .jn-have .d{font-size:24px; color:var(--gold)}
.hud .jn-have .jn-go{justify-self:start; flex:none}
.hud .h-card .acts .leave{flex-basis:100%; min-height:44px; text-decoration:underline; color:var(--muted); font-size:13px; text-align:left; padding:0}

@media (max-width:900px){
  .hud .h-counter .h-join{position:static; order:2; margin-left:auto; font-size:16px; padding:2px 12px}
  .hud .h-counter .rest{order:3; flex-basis:100%}
  /* phone portrait: bottom sheet over the HUD sheet, the top ~40 % stays the 3D preview */
  .hud .jn{position:fixed; top:auto; left:0; right:0; bottom:0; width:auto; height:62dvh; max-height:calc(100dvh - 120px); z-index:8;
    background-color:#0a0a0a; border-top:3px solid #000; box-shadow:0 -4px 0 var(--jc);
    padding-bottom:env(safe-area-inset-bottom); padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right)}
  .hud.jn-on .h-sheet,.hud.jn-on .h-center,.hud.jn-on .h-hint{visibility:hidden}
  .hud .jn-top{padding:10px 12px 4px}
  .hud .jn-top h2{margin:0; font-size:22px}
  .hud .jn-steps{padding:0 12px 8px; font-size:13px}
  .hud .jn-body{padding:0 12px 8px}
  .hud .jn-foot{padding:8px 12px 10px}
}
/* phone landscape: right-hand panel, full height, the left half stays the 3D preview */
@media (max-width:900px) and (max-height:500px){
  .hud .jn{top:0; left:auto; height:auto; max-height:none; width:min(420px,52%); border-top:0; box-shadow:-4px 0 0 var(--jc)}
  .hud .jn-top{padding:6px 12px 2px}
  .hud .jn-top h2{font-size:18px; transform:none; border-width:2px}
  .hud .jn-x{min-height:40px; min-width:40px}
  .hud .jn-steps{padding:0 12px 6px; font-size:12px}
  .hud .jn-steps li{padding:2px 4px}
  .hud .jn-first{padding:4px 8px 11px}
  .hud .jn-lvl{min-height:44px; padding:4px 8px}
  .hud .jn-foot{padding:6px 12px 8px}
  .hud .jn-go,.hud .jn-back{min-height:44px; font-size:16px}
  .hud .h-counter .h-join{display:none}
  .hud .h-center>.h-tg .h-join-l{display:block; position:static; margin-left:auto; min-height:44px; font-size:16px; padding:2px 12px}
}
@media (prefers-reduced-motion:reduce){.hud .h-join,.hud .jn-top h2,.hud .jn-first{transform:none}}
/* r17: 901-1279 px (narrow desktop centre column): counter + button on one line, the label on ONE line under them (it collapsed into a word column under the button) */
@media (min-width:901px) and (max-width:1279px){
  .hud .h-counter{flex-wrap:wrap; row-gap:6px}
  .hud .h-hint{margin-bottom:104px}   /* clears the taller (2-line) counter */
  .hud .h-counter .h-join{order:2; margin-left:auto; font-size:15px; padding:2px 10px}
  .hud .h-counter .rest{order:3; flex-basis:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; text-align:center}
}

/* r21b: who sits next to you (join step 2) */
.hud .jn-near{display:flex; align-items:center; gap:10px; margin-top:10px; padding:8px 10px; background:#F4F5F7; color:#000; border:2px solid #000; box-shadow:3px 3px 0 var(--gold)}
.hud .jn-near img{width:48px; height:48px; border-radius:50%; object-fit:cover; border:3px solid #d9a93a; flex:none; background:#e0b043}
.hud .jn-near p{display:grid; gap:2px; min-width:0}
.hud .jn-near b{font-size:15px; line-height:1.1}
.hud .jn-near small{font-size:12px; font-weight:700}
/* ig login: dev simulator + DM bubble */
.hud .jn-dev{display:grid; gap:6px; margin-top:18px; padding:10px; border:2px dashed rgba(255,255,255,.3)}
.hud .jn-dev input,.hud .jn-dev select{min-height:40px; padding:0 8px; background:#000; color:#fff; border:2px solid #F4F5F7; font:inherit}
.hud .jn-bubble{margin-top:10px; padding:10px 12px; background:#1f2a37; border-radius:14px 14px 14px 2px; word-break:break-word}
.hud .jn-bubble small{color:var(--muted)} .hud .jn-bubble a{color:#7cc4ff; text-decoration:underline}

/* account + «Мой состав» (join-ig.js): tabs, account card, pitch with formation slots, slot player list */
.hud .xi-tabs{display:flex; gap:6px; margin:2px 0 12px}
.hud .xi-tabs button{flex:1; min-width:0; min-height:44px; padding:4px 6px; border:2px solid rgba(255,255,255,.25); font:700 14px var(--disp); text-transform:uppercase; letter-spacing:.02em}
.hud .xi-tabs button[aria-selected=true]{background:#F4F5F7; color:#000; border-color:#000; box-shadow:3px 3px 0 var(--jc)}
.hud .ac-id{display:flex; gap:12px; align-items:center; margin-bottom:12px}
.hud .ac-id img{width:56px; height:56px; border-radius:50%; border:3px solid var(--jc); flex:none}
.hud .ac-id .d{font-size:22px; overflow-wrap:anywhere}
.hud .ac-id small{color:var(--muted); font-size:14px}
.hud .ac-grid{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.hud .ac-grid>div{min-width:0; padding:8px 10px; border:2px solid rgba(255,255,255,.2)}
.hud .ac-grid .wide{grid-column:1/-1}
.hud .ac-grid dt{font:700 11px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.hud .ac-grid dd{font:700 22px var(--disp); margin-top:2px}
.hud .ac-grid small,.hud .ac-note{font:600 12px var(--body); color:var(--muted); letter-spacing:0; text-transform:none}
.hud .ac-note{margin-top:6px}
.hud .ac-seat{display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap}
.hud .ac-seat dd{font-size:18px}
.hud .ac-seat .jn-file{min-height:44px; font-size:14px}
.hud .ac-tag{display:inline-block; margin-left:8px; padding:1px 6px; background:var(--gold); color:#000; border:2px solid #000; transform:rotate(-2deg); letter-spacing:0; text-transform:none}
.hud .ac-bar{height:6px; margin:8px 0 4px; background:rgba(255,255,255,.15)}
.hud .ac-bar i{display:block; height:100%; background:var(--jc)}
.hud .ac-h{font:700 12px var(--body); letter-spacing:.12em; text-transform:uppercase; color:var(--gold); margin:16px 0 0}
.hud .xi-meta{display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:10px; font:600 13px var(--body); color:var(--muted)}
.hud .xi-meta .shut{color:#fff; background:var(--red); padding:0 6px; border:2px solid #000}
.hud .xi-pitch{position:relative; display:grid; gap:12px; padding:16px 8px; background:repeating-linear-gradient(180deg,#1f7a3a 0 44px,#1b6e34 44px 88px); border:3px solid #000; box-shadow:4px 4px 0 #000}
.hud .xi-pitch::before{content:""; position:absolute; inset:6px; border:2px solid rgba(255,255,255,.35); pointer-events:none}
.hud .xi-pitch::after{content:""; position:absolute; left:6px; right:6px; top:50%; border-top:2px solid rgba(255,255,255,.35); pointer-events:none}
.hud .xi-row{position:relative; z-index:1; display:flex; justify-content:space-evenly; gap:4px}
.hud .xi-slot{position:relative; flex:0 1 74px; min-width:0; min-height:58px; display:grid; place-items:center; align-content:center; gap:2px; padding:4px 3px;
  background:rgba(0,0,0,.45); border:2px dashed rgba(255,255,255,.7); color:#fff; font:600 12px var(--body)}
.hud .xi-slot.on{background:#F4F5F7; color:#000; border:2px solid #000; box-shadow:2px 2px 0 var(--jc)}
.hud .xi-slot b{font:700 17px var(--disp); line-height:1}
.hud .xi-slot span{max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.hud button.xi-slot:disabled{cursor:default}
.hud .xi-c{position:absolute; top:-9px; right:-7px; width:22px; height:22px; display:grid; place-items:center; background:var(--gold); color:#000; border:2px solid #000; border-radius:50%; font:700 12px var(--body); font-style:normal}
.hud .xi-lh{display:flex; align-items:center; gap:10px; margin-bottom:10px}
.hud .xi-lh h3{font-size:18px}
.hud .xi-lh .jn-back{min-height:44px; font-size:14px; padding:4px 10px}
.hud .xi-acts{display:flex; gap:8px; margin-bottom:10px}
.hud .xi-acts [aria-pressed=true]{background:var(--gold); color:#000; border-color:#000}
.hud .xi-list{list-style:none; display:grid; gap:4px}
.hud .xi-pl{width:100%; min-height:48px; display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; padding:4px 8px; text-align:left; border:2px solid rgba(255,255,255,.2)}
.hud .xi-pl:hover:not(:disabled){background:rgba(255,255,255,.08)}
.hud .xi-pl b{font:700 17px var(--disp); color:var(--gold); text-align:center}
.hud .xi-pl[aria-pressed=true]{background:#F4F5F7; color:#000; border-color:#000; box-shadow:3px 3px 0 var(--jc)}
.hud .xi-pl:disabled{opacity:.55; cursor:not-allowed}
.hud .xi-pl em{font:700 11px var(--body); font-style:normal; text-transform:uppercase; padding:2px 6px; border:1px solid currentColor}
.hud .xi-pl .xi-bad{background:var(--red); color:#fff; border-color:#000}
.hud .xi-soon{padding:36px 6px; text-align:center; font-size:26px; color:var(--gold)}

/* step 3: roles + «Клуб решает» votes + the Тренер's formation (join-ig.js) */
.hud .vt-roles{list-style:none; margin:4px 0 0; padding:0; display:grid; gap:4px}
.hud .vt-roles li{display:flex; justify-content:space-between; gap:8px; font:600 14px var(--body)}
.hud .vt-roles li span{color:var(--muted)}
.hud .vt-roles li b{overflow-wrap:anywhere}
.hud .vt,.hud .vt-coach{margin-top:10px; padding:8px 10px; border:2px solid rgba(255,255,255,.2)}
.hud .vt-coach{margin:0 0 10px; border-color:var(--jc)}
.hud .vt-h{display:flex; justify-content:space-between; align-items:baseline; gap:8px; flex-wrap:wrap; margin-bottom:6px}
.hud .vt-h b{font:700 15px var(--disp); text-transform:uppercase}
.hud .vt-h small{font:600 12px var(--body); color:var(--muted)}
.hud .vt-opts{display:grid; gap:6px}
.hud .vt-opt{position:relative; display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:44px; padding:4px 12px; border:2px solid rgba(255,255,255,.25); font:600 15px var(--body); text-align:left; overflow:hidden}
.hud .vt-opt i{position:absolute; inset:0 auto 0 0; background:var(--jc); opacity:.28; pointer-events:none}
.hud .vt-opt span,.hud .vt-opt b{position:relative; min-width:0; overflow-wrap:anywhere}
.hud .vt-opt[aria-pressed=true]{border-color:#F4F5F7; box-shadow:3px 3px 0 var(--jc)}
.hud .vt-opt[aria-pressed=true] span::after{content:' ✓'}
.hud .vt-forms{display:flex; flex-wrap:wrap; gap:6px}
.hud .vt-forms .jn-file{min-height:44px; font-size:14px; padding:4px 10px}
.hud .vt-forms .jn-file[aria-pressed=true]{background:#F4F5F7; color:#000; box-shadow:3px 3px 0 var(--jc)}

/* phone pop-up rule (≤ 15% of the screen): the «Занять место» Instagram panel is a bottom strip like the fix94/fix95 rail strips: title + ✕, one line, one button (join-ig.js strip()) */
.hud .jn.jn-strip{top:auto; height:auto; max-height:none}
.hud .jn.jn-strip .jn-top{padding:6px 6px 0 10px}
.hud .jn.jn-strip .jn-top h2{font-size:16px; margin:0; padding:1px 8px; border-width:2px}
.hud .jn.jn-strip .jn-x{width:32px; height:30px; min-width:32px; min-height:30px; font-size:14px; border-width:2px}
.hud .jn.jn-strip .jn-body{flex:none; overflow:hidden; padding:4px 10px 0}
.hud .jn-line{font:600 13px/1.3 var(--body); color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hud .jn-line.jn-err{margin:0; white-space:normal; padding:3px 8px}
.hud .jn.jn-strip .jn-foot{padding:6px 10px 8px; border-top:0}
.hud .jn.jn-strip .jn-go{min-height:40px; font-size:16px; display:inline-flex; align-items:center; justify-content:center; text-decoration:none}
.hud .jn-devb{flex:none; min-height:40px; padding:0 10px; font-size:13px}
/* phone strip, fixed rows like the fix99 fan card (hud-alt.css): 8 + title 20 + line 20 + 6 + button 40 + 6 + border 3 = 103 px <= 15% of 740.
   It sits ABOVE the home indicator (bottom = the safe-area inset), so the inset is not part of its height; ✕ 40x40 spans the two text rows */
@media (max-width:900px){
  .hud .jn.jn-strip{bottom:env(safe-area-inset-bottom); padding:8px 8px 6px; display:grid; grid-template-columns:minmax(0,1fr) 40px; grid-template-rows:20px 20px auto; gap:0 8px; align-items:center}
  .hud .jn.jn-strip .jn-top{display:contents}
  .hud .jn.jn-strip .jn-top h2{grid-column:1; grid-row:1; justify-self:start; max-width:100%; font-size:14px; line-height:14px; padding:1px 6px; margin:0; transform:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
  .hud .jn.jn-strip .jn-x{grid-column:2; grid-row:1/3; width:40px; height:40px; min-width:40px; min-height:40px}
  .hud .jn.jn-strip .jn-body{grid-column:1; grid-row:2; padding:0; height:20px; display:flex; align-items:center}
  .hud .jn.jn-strip .jn-line{margin:0; line-height:20px}
  .hud .jn.jn-strip .jn-line.jn-err{white-space:nowrap; padding:0 6px}
  .hud .jn.jn-strip .jn-foot{grid-column:1/3; grid-row:3; padding:0; margin-top:6px; display:flex; gap:6px}
  .hud .jn.jn-strip .jn-go{flex:1; min-height:40px; height:40px}
}
.hud .jn-set{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px}
.hud .jn-set .jn-file,.hud .jn-set .jn-back{min-height:44px; font-size:14px; padding:4px 12px}
@media (max-width:900px){
  .hud .jn.jn-strip{left:8px; right:8px; bottom:calc(8px + env(safe-area-inset-bottom)); border:2px solid #000; box-shadow:4px 4px 0 var(--jc)}
  .hud .jn.jn-full{top:0; height:100dvh; max-height:none; border-top:0}   /* the account page: full screen (exempt from the 15% rule) */
}

/* fan pages (fan.js): profile, «Мой состав» pitch, leaderboards. Full screen over the stadium, the HUD's street style (hard black borders, offset club shadows, Oswald) */
.fp{--text:#F4F5F7; --muted:#B4BAC5; --red:#E10600; --gold:#F5B52E; --disp:"Oswald","Arial Narrow",sans-serif; --body:"Inter",system-ui,sans-serif; --jc:var(--red);
  position:fixed; inset:0; z-index:9500; display:flex; flex-direction:column; background:#0a0a0a; color:var(--text); font:15px/1.35 var(--body); -webkit-tap-highlight-color:transparent}
.lang-zh .fp{--disp:"Noto Sans SC","Oswald",sans-serif; --body:"Noto Sans SC","Inter",system-ui,sans-serif}
.fp[hidden],.fp-toast[hidden]{display:none}
.fp *{box-sizing:border-box; margin:0; padding:0}
.fp button,.fp a{font:inherit; color:inherit; background:none; border:0; cursor:pointer; text-decoration:none}
.fp ol,.fp ul{list-style:none}
.fp .d,.fp-t,.fp-btn,.fp-seg>*,.fp-tabs>*{font-family:var(--disp); font-weight:700; text-transform:uppercase; letter-spacing:.02em; line-height:1.1}
.fp .num{font-variant-numeric:tabular-nums}
.fp-bar{flex:none; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; height:calc(52px + env(safe-area-inset-top)); padding:env(safe-area-inset-top) 8px 0; background:#000; border-bottom:2px solid #222}
.fp-back{justify-self:start; min-height:44px; white-space:nowrap; padding:0 10px; font:700 14px var(--disp); text-transform:uppercase; border:2px solid #F4F5F7!important}
.fp-t{font-size:20px; background:var(--jc); color:#fff; padding:2px 10px; border:2px solid #000; transform:rotate(-2deg); text-shadow:1px 1px 0 #000; white-space:nowrap}
.fp-main{flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:12px 16px 24px}
.fp-main:has(+ .fp-save){padding-bottom:72px}   /* «Мой состав»: the bench + last pitch row scroll clear of the save bar */
.fp-tabs{flex:none; display:flex; padding-bottom:env(safe-area-inset-bottom); background:#000; border-top:2px solid #222}
.fp-tabs>*{flex:1; min-width:0; min-height:56px; display:grid; place-items:center; padding:0 4px; font-size:13px; text-align:center; color:var(--muted)}
.fp-tabs>[aria-current=page]{background:#F4F5F7; color:#000; box-shadow:inset 0 4px 0 var(--jc)}
.fp-btn{display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 14px; background:#000!important; border:2px solid #F4F5F7!important; font-size:15px; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fp-btn[aria-pressed=true]{background:#F4F5F7!important; color:#000; border-color:#000!important; box-shadow:3px 3px 0 var(--jc)}
.fp-btn.pri{background:var(--red)!important; color:#fff; border-color:#000!important; box-shadow:3px 3px 0 #000}
.fp-btn:disabled{opacity:.45; cursor:not-allowed; box-shadow:none}
.fp-btn.sq{flex:none!important; width:44px; padding:0; font-size:20px}
.fp-h{font:700 12px var(--body); letter-spacing:.12em; text-transform:uppercase; color:var(--gold); margin:20px 0 8px}
.fp-none{color:var(--muted); padding:6px 0}
.fp-wait{color:var(--muted); text-align:center; padding:40px 0}
.fp-note{display:flex; align-items:center; gap:6px; color:var(--muted); font-size:12px; margin:2px 0 10px}
.fp-empty{text-align:center; padding:48px 8px; display:grid; gap:16px; justify-items:center}
.fp-empty .d{font-size:20px}
.fp-crest{width:18px; height:18px; object-fit:contain; flex:none; vertical-align:middle}
.fp-emb{display:inline-block; width:14px; height:16px; flex:none; background:linear-gradient(135deg,var(--c) 55%,var(--c2) 55%); clip-path:polygon(50% 0,100% 14%,100% 55%,50% 100%,0 55%,0 14%)}
.fp-toast{position:fixed; left:50%; bottom:calc(132px + env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:9700; max-width:calc(100vw - 32px); padding:8px 14px; background:#000; color:#fff; border:2px solid #F4F5F7; box-shadow:3px 3px 0 var(--red); font:600 14px/1.3 "Inter",system-ui,sans-serif}

/* profile */
.fp-hero{display:flex; gap:14px; align-items:center; margin:-12px -16px 0; padding:18px 16px; color:#fff; text-shadow:1px 1px 0 #000;
  background:linear-gradient(120deg,var(--c) 0 58%,color-mix(in srgb,var(--c) 60%,#000) 58% 76%,var(--c2) 76% 78%,color-mix(in srgb,var(--c) 45%,#000) 78%); border-bottom:3px solid #000}
.fp-ava{width:84px; height:84px; flex:none; border-radius:50%; object-fit:cover; background:#222; border:3px solid #fff; box-shadow:4px 4px 0 #000}
.fp-id{min-width:0; display:grid; gap:4px}
.fp-id h2{font-size:26px; overflow-wrap:anywhere}
.fp-id p{display:flex; align-items:center; gap:6px; font-weight:700; font-size:15px}
.fp-id small{font-size:12px; font-weight:600}
.fp-acts{display:flex; gap:8px; margin:14px 0 12px}
.fp-acts .fp-btn{flex:1; min-width:0}
.fp-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:8px}
.fp-stats>div{min-width:0; padding:8px 10px; border:2px solid rgba(255,255,255,.2); background:#111}
.fp-stats dt{font:700 11px var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fp-stats dd{font:700 28px/1.1 var(--disp)}
.fp-stats small{display:block; font-size:11px; color:var(--muted); overflow-wrap:anywhere}
.fp-lv{margin-top:10px}
.fp-bar2{height:8px; background:rgba(255,255,255,.15); border:1px solid #000}
.fp-bar2 i{display:block; height:100%; background:var(--jc)}
.fp-lv small{display:block; margin-top:4px; font-size:12px; color:var(--muted)}
.fp-badges{display:flex; flex-wrap:wrap; gap:8px}
.fp-badges li{display:inline-flex; align-items:center; gap:6px; padding:5px 10px; background:#F4F5F7; color:#000; border:2px solid #000; box-shadow:3px 3px 0 var(--jc); font:700 13px var(--disp); text-transform:uppercase}
.fp-badges svg{width:18px; height:18px}
.fp-badges [data-b=top] svg,.fp-badges [data-b=first] svg{color:#b27b00}
.fp-hist li{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #222}
.fp-hist span{min-width:0; display:grid; gap:2px}
.fp-hist b{font-size:14px; overflow-wrap:anywhere}
.fp-hist small{font-size:12px; color:var(--muted)}
.fp-hist em{font:700 18px var(--disp); font-style:normal; color:#34D399; flex:none}

/* «Мой состав»: deadline, last match, formation, pitch with shirts, bench, save bar, player sheet */
.fp-dl{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 12px; background:#F4F5F7; color:#000; border:2px solid #000; box-shadow:4px 4px 0 var(--jc)}
.fp-dl span{display:grid}
.fp-dl b{font:700 22px var(--disp)}
.fp-dl b.sm{font-size:16px}
.fp-dl small{font:600 12px var(--body); color:#333}
.fp-dl.shut{background:var(--red); color:#fff}
.fp-last{display:flex; justify-content:space-between; align-items:center; gap:10px; margin:12px 0 0; padding:8px 12px; border:2px solid rgba(255,255,255,.2); font-size:13px; color:var(--muted)}
.fp-last b{font:700 20px var(--disp); color:var(--gold); flex:none}
.fp-seg{display:flex; margin:12px 0; border:2px solid #F4F5F7}
.fp-seg>*{flex:1; min-width:0; min-height:40px; display:grid; place-items:center; padding:0 4px; font-size:14px; text-align:center; color:var(--muted)}
.fp-seg>[aria-selected=true]{background:#F4F5F7; color:#000}
.fp-forms{display:grid; gap:6px; margin-bottom:12px}
.fp-forms>span{font:700 11px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.fp-forms>div{display:grid; grid-template-columns:repeat(5,1fr); gap:6px; padding:0 4px 4px 0}
.fp-forms button{min-width:0; min-height:36px; padding:0 2px; border:2px solid rgba(255,255,255,.3)!important; font:700 14px var(--disp)}
.fp-forms button[aria-pressed=true]{background:#F4F5F7; color:#000; border-color:#000!important; box-shadow:2px 2px 0 var(--jc)}
.fp-forms button:disabled:not([aria-pressed=true]){opacity:.4; cursor:default}
.fp-forms small{font-size:12px; color:var(--muted)}
/* «My XI» ticket cards (cards.js): every .L is a direct child of the 3D context at its own Z; no filter or clip on an ancestor. Pitch 60 x 120 m, attack at the top */
@property --u{syntax:'<length>'; inherits:true; initial-value:0px}
.fp-pitch{position:relative; display:flex; flex-direction:column; justify-content:space-around; margin:0 -16px; min-height:calc(100vw * 1.95); padding:22px 4px 14px; background:repeating-linear-gradient(180deg,#1f7a3a 0 76px,#1b6e34 76px 152px); font-size:min(9px, calc((100vw - 10px) / (var(--n) * 11.2)))}
.tk-marks{position:absolute; left:8px; top:8px; width:calc(100% - 16px); height:calc(100% - 16px); pointer-events:none}
.tk-marks *{fill:none; stroke:#ffffffb0; stroke-width:.32; vector-effect:none}
.fp-row{position:relative; z-index:1; display:flex; justify-content:space-evenly; padding-top:3em}
.tk-slot{position:relative; display:block; flex:none; font-size:inherit; cursor:pointer; outline-offset:3px; -webkit-tap-highlight-color:transparent}
.tk-slot.on .tk-ghost,.tk-slot.over .tk-ghost{background:#ffffff40; border-color:#fff; border-style:solid}
.tk-slot.can .tk-ghost{border-color:var(--gold,#F5B52E)}
.tk-slot.can.over .tk,.tk-slot.on .tk{outline:.3em solid var(--gold,#F5B52E)}
.tk-ghost{width:10em; height:13.4em; display:grid; place-content:center; justify-items:center; gap:.4em; background:#00000040; border:.2em dashed #ffffffb0; color:#fff}
.tk-ghost b{font:700 3.4em var(--disp)}.tk-ghost small{font:700 1.5em var(--disp); text-transform:uppercase; letter-spacing:.04em}
.tk-ghost.lg{border-color:#F5B52E; color:#F5B52E}
.tk-sub{position:absolute; left:50%; bottom:-1.45em; translate:-50% 0; padding:0 .5em; background:#000; color:#fff; font:700 1.25em/1.5 var(--body); white-space:nowrap}
.fp-bench{font-size:min(8.4px, calc((100vw - 56px) / 44.8))}
.fp-bench>div{padding-top:3em}
.tk-lg>div{display:flex; align-items:center; gap:14px; padding-left:8px}.tk-lg p{font:600 13px/1.3 var(--body); color:var(--muted)}
.tk-credit{display:block; margin:12px 2px 0; font:600 12px var(--body); color:var(--gold,#F5B52E)!important; text-decoration:underline!important}
.tk{position:relative; width:10em; height:13.4em; perspective:36em; --k:.75; --u:1em; cursor:pointer; color:#000}
.tk-big{height:20em; --k:.82; touch-action:none; cursor:grab}
.tk-rot{position:absolute; inset:0; transform-style:preserve-3d; transition:transform .26s ease-out; will-change:transform; --sx:0}
.tk-held>.tk-rot{transition:none}
.tk .L{position:absolute; translate:0 0 calc(var(--z) * var(--k) * var(--u)); pointer-events:none}
.tk .edge{inset:0; background:#000}
.tk .back{inset:0; filter:drop-shadow(.3em .3em 0 #000)}
.tk .back>i{position:absolute; inset:0; display:block; background:#d9dbe0; -webkit-mask:radial-gradient(circle .6em at 0 10.25em,#0000 97%,#000),radial-gradient(circle .6em at 100% 10.25em,#0000 97%,#000); -webkit-mask-composite:source-in; mask-composite:intersect}
.tk .art{left:0; right:0; top:0; height:10.3em; overflow:hidden}.tk .art>i{position:absolute; inset:-14%; display:block; background:repeating-conic-gradient(from 0deg at 56% 45%,var(--a1) 0 9deg,var(--a2) 9deg 18deg)}
.tk .pat{left:.5em; top:4.4em; width:4.6em; height:4.6em; opacity:.9}.tk .pat img{width:100%; height:100%; object-fit:contain; display:block}
.tk .psh{left:0; right:0; top:0; height:10.3em; overflow:hidden}.tk .psh img{position:absolute; left:1.1em; top:-2.05em; width:10em; height:13.6em; filter:brightness(0); opacity:.3}
.tk-big .psh img{filter:brightness(0) blur(.16em); opacity:.55}
.tk .player{left:0; width:10em; top:-3em; height:13.6em}.tk .player img,.tk .player svg{position:absolute; left:.55em; top:.65em; width:10em; height:13.6em; display:block}
.tk .player svg{display:none; left:.3em; top:1.6em; width:9.4em; height:11.3em}
.tk-nophoto .player svg{display:block}.tk-nophoto .player img,.tk-nophoto .psh{display:none}
.tk .low{left:0; right:0; top:10.2em; bottom:0; background:#F4F5F7; border-top:.14em dashed #000; -webkit-mask:radial-gradient(circle .6em at 0 0,#0000 97%,#000),radial-gradient(circle .6em at 100% 0,#0000 97%,#000); -webkit-mask-composite:source-in; mask-composite:intersect}
.tk .sheen{inset:0; overflow:hidden}.tk .sheen>i{position:absolute; inset:0 -60%; display:block; background:linear-gradient(115deg,#fff0 44%,#ffffff70 50%,#fff0 56%); translate:calc(var(--sx) * 46%) 0; opacity:calc(var(--sx) * var(--sx) * 2)}
.tk .rate{left:.3em; top:.1em; font-size:3.9em; line-height:1; font-weight:700; letter-spacing:-.02em; color:#fff; font-family:var(--disp); text-shadow:.015em .015em 0 var(--a3),.03em .03em 0 var(--a3),.045em .045em 0 #000,.06em .06em 0 #000}
.tk .pos{left:.22em; top:2.14em; font-size:1.9em; padding:.06em .3em; background:#000; color:#fff; font-family:var(--disp); line-height:1.1}
.tk .name{left:.6em; right:.6em; top:11em; text-align:center; font-family:var(--disp); text-transform:uppercase; line-height:1; color:#000}.tk .name b{display:block; white-space:nowrap}
.tk-big .name{top:10.85em}
.tk .cap{right:.35em; top:.35em; width:1.6em; height:1.6em; display:grid; place-items:center; font:700 1.6em var(--disp); background:#000; color:#fff; border:.12em solid var(--gold,#F5B52E); border-radius:50%}
.tk .rib{left:0; right:0; top:8.8em; text-align:center; font:700 1.05em var(--disp); text-transform:uppercase; letter-spacing:.14em; color:#000; background:#F5B52E; padding:.1em 0}
.tk .rar{left:0; right:0; top:13.85em; display:flex; justify-content:center; align-items:center; gap:.3em; color:#000}.tk .rar i{width:.55em; height:.55em; border-radius:50%; border:.1em solid currentColor}.tk .rar i.on{background:currentColor}.tk .rar em{font:700 .9em var(--disp); text-transform:uppercase; font-style:normal; margin-left:.3em; letter-spacing:.03em}
.tk .fn{left:.8em; right:.8em; text-align:center; font:700 .66em var(--body); top:19.85em; color:#000; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.tk .sn{line-height:1; font-weight:700; font-family:var(--disp); color:var(--sn)}.tk .sl{font-weight:800; font-family:var(--body); text-transform:uppercase; letter-spacing:-.01em; line-height:1; color:#000}
.tk-out .player img,.tk-out .art>i,.tk-out .psh,.tk-out .player svg{filter:grayscale(1) brightness(.75)}.tk-out .pos{background:var(--red,#E10600)}
.tk-legend{--a1:#b8862b!important; --a2:#8a6418!important; --a3:#4a3408!important; --sn:#6b4c10!important}.tk-legend .low{background:#F6E7C1}.tk-legend .back>i{background:#d8b45f}
.tk-tray{flex:none; background:#111; border-top:2px solid #222; padding:6px 0 4px; font-size:min(7.2px, 1.9vw)}
.tk-tray header{display:flex; align-items:center; gap:6px; padding:0 8px}
.tk-club{flex:none; display:flex; align-items:center; gap:3px; min-height:34px; padding:0 5px; background:#F4F5F7!important; color:#000!important; font:700 13px var(--disp)!important; text-transform:uppercase}.tk-club b{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)}.tk-club img{width:18px; height:18px; object-fit:contain}
.tk-chips{flex:1; min-width:0; display:flex; gap:4px; overflow-x:auto; scrollbar-width:none}.tk-chips::-webkit-scrollbar{display:none}
.tk-chips button{flex:none; min-height:34px; padding:0 6px; border:2px solid #ffffff4d!important; font:700 13px var(--disp); text-transform:uppercase}.tk-chips [aria-pressed=true]{background:#F4F5F7; color:#000}
.tk-fold{flex:none; width:34px; min-height:34px; font:700 18px/1 system-ui,sans-serif!important; border:2px solid #ffffff4d!important}
.tk-note{padding:4px 10px 0; font:600 12px var(--body); color:var(--gold,#F5B52E)}
.tk-list{display:flex; gap:1.6em; overflow-x:auto; overscroll-behavior-x:contain; touch-action:pan-x; padding:3.2em 10px 12px; scrollbar-width:none}.tk-list::-webkit-scrollbar{display:none}
.tk-item{position:relative; flex:none; cursor:grab; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none}.tk-item.off{cursor:pointer}.tk-item.used .tk{opacity:.4}.tk-item small{position:absolute; left:0; right:0; bottom:.4em; text-align:center; font:700 11px var(--body); color:#fff; background:#000c}
.tk-item .tk .L{translate:none}.tk-item .tk{perspective:none}.tk-item .tk-rot{transform-style:flat}.tk-item .L.player{z-index:1}.tk-item .L.low{z-index:2}.tk-item .L.sheen{display:none}.tk-item .L.name,.tk-item .L.pos,.tk-item .L.rate,.tk-item .L.rib{z-index:3}
.tk-clubs{display:grid; grid-template-columns:repeat(auto-fill,minmax(44px,1fr)); gap:6px; max-height:150px; overflow:auto; padding:8px}.tk-clubs button{height:44px; display:grid; place-items:center; background:#1a1a1a; border:2px solid #333!important}.tk-clubs [aria-pressed=true]{background:#F4F5F7}.tk-clubs img{width:28px; height:28px; object-fit:contain}
.tk-ghosted{position:fixed; z-index:9800; pointer-events:none; translate:-50% -60%; font-size:7.5px}
.tk-dragging .fp-main{touch-action:none}
.tk-ov{position:absolute; inset:0; z-index:40; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:calc(56px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom)); background:#000e}
.tk-ov>.fp-x{position:absolute; right:12px; top:calc(8px + env(safe-area-inset-top)); width:44px; height:44px; background:#000; color:#fff; border:2px solid #F4F5F7!important; box-shadow:3px 3px 0 var(--red,#E10600); font-size:20px}
.tk-stage{font-size:min(22px, calc((100dvh - 250px) / 23)); padding-top:3em}
.tk-acts{display:flex; gap:8px; width:100%; max-width:360px}.tk-acts .fp-btn{flex:1}.tk-est{font:600 11px var(--body); color:var(--muted); text-align:center}
.tk-cr{display:grid; gap:8px; font:500 13px/1.35 var(--body); overflow-wrap:anywhere}.tk-cr a{color:var(--gold,#F5B52E)!important; text-decoration:underline!important}
@media (prefers-reduced-motion: reduce){.tk .L{translate:none}.tk{perspective:none}.tk-rot{transform-style:flat; transition:none; transform:none!important}.tk .L.player{z-index:1}.tk .L.low{z-index:2}.tk .L.sheen{display:none}.tk .L.name,.tk .L.pos,.tk .L.rate,.tk .L.rib,.tk .L.cap,.tk .L.rar,.tk .L.fn,.tk .L.sn,.tk .L.sl{z-index:3}}
@media (min-width:768px){.fp-pitch{margin:0; min-height:900px; font-size:9px}.fp-bench{font-size:8.4px}}
.fp-bench{margin-top:10px; padding:8px 4px 10px; background:#16301f; border:3px solid #000; box-shadow:4px 4px 0 #000}
.fp-bench h3{font:700 11px var(--body); letter-spacing:.12em; text-transform:uppercase; color:var(--muted); padding:0 6px 6px}
.fp-bench>div{display:flex; justify-content:space-evenly}
.fp-save{flex:none; display:flex; align-items:center; gap:12px; padding:8px 16px; background:#111; border-top:2px solid #222}
.fp-save span{display:grid; flex:none}
.fp-save span b{font:700 20px var(--disp)}
.fp-save small{font-size:11px; color:var(--muted); max-width:120px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fp-save .fp-btn{flex:1}
.fp-x{width:44px; height:44px; flex:none; border:2px solid #F4F5F7!important; font-size:16px!important}

/* leaderboards */
.fp-lb li{margin-bottom:4px}
.fp-lr{display:grid!important; grid-template-columns:30px 36px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:56px; padding:6px 10px 6px 6px; background:#141414!important; border-left:4px solid var(--c)}
.fp-lr .rk{font:700 18px var(--disp); text-align:center; color:var(--muted)}
.fp-lr img{width:36px; height:36px; border-radius:50%; object-fit:cover; background:#222; border:2px solid #000}
.fp-lr .nm{min-width:0; display:grid; gap:2px}
.fp-lr .nm b{font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fp-lr .nm small{display:flex; align-items:center; gap:4px; font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden}
.fp-lr .nm small .fp-crest{width:14px; height:14px}
.fp-lr em{font:700 18px var(--disp); font-style:normal}
.fp-lr.top{outline:2px solid var(--gold); outline-offset:-2px}
.fp-top{display:inline-flex; align-items:center; gap:2px; color:var(--gold); font-style:normal; font-weight:700}
.fp-top svg{width:12px; height:12px}
.fp-lr.me{background:#F4F5F7!important; color:#000; box-shadow:3px 3px 0 var(--jc)}
.fp-lr.me .rk,.fp-lr.me .nm small{color:#333}
.fp-mine{position:sticky; bottom:-24px; padding:10px 0 24px; background:linear-gradient(transparent,#0a0a0a 30%)}

/* the HUD entry: avatar (signed in) / person icon, top right under the counter (fan.js) */
.fp-entry{position:fixed; top:calc(56px + env(safe-area-inset-top)); right:10px; z-index:6; width:48px; height:48px; display:grid; place-items:center; background:#000; color:#fff; border:2px solid #F4F5F7; box-shadow:3px 3px 0 #E10600}
.fp-entry img{width:36px; height:36px; border-radius:50%; object-fit:cover; border:2px solid #fff}
html.fp-on .fp-entry,.hud.jn-on~.fp-entry{display:none}
@media (min-width:768px){ .fp-main,.fp-save{padding-left:max(16px,calc(50% - 260px)); padding-right:max(16px,calc(50% - 260px))} .fp-hero{margin-left:min(-16px,calc(260px - 50%)); margin-right:min(-16px,calc(260px - 50%)); padding-left:max(16px,calc(50% - 260px))} }

/* the daily A/B/C vote (daily-vote.js): a button left of the profile entry (under it would hit the rail on 740 px phones) + a bottom strip, <= 15% of a phone screen */
.dv-pill{position:fixed; top:calc(56px + env(safe-area-inset-top)); right:68px; z-index:6; width:48px; height:48px; display:grid; place-items:center; background:#000; color:#fff; border:2px solid #F4F5F7; box-shadow:3px 3px 0 #E10600; font:700 11px/1 var(--disp, system-ui); letter-spacing:.02em; cursor:pointer}
.dv-pill i{position:absolute; top:-5px; right:-5px; width:12px; height:12px; border-radius:50%; background:#E10600; border:2px solid #000}
html.fp-on .dv-pill,.hud.jn-on~.dv-pill{display:none}
.dv{position:fixed; left:0; right:0; bottom:env(safe-area-inset-bottom); z-index:9500; padding:8px 8px 6px; background:#0f0f0f; color:#F4F5F7; border-top:3px solid #000; box-shadow:0 -4px 0 #E10600; font:14px/1.3 var(--body, system-ui)}
/* fixed rows like the fix99 fan card: 8 + question 20 + sub 20 + 6 + buttons 40 + 6 + border 3 = 103 px; ✕ 40x40 spans the two text rows; above the home indicator */
.dv header{display:grid; grid-template-columns:minmax(0,1fr) 40px; grid-template-rows:20px 20px; gap:0 8px; align-items:center}
.dv h2{grid-column:1; grid-row:1; min-width:0; margin:0; font:700 15px/20px var(--disp, system-ui); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.dv-sub{grid-column:1; grid-row:2; margin:0; font-size:12px; line-height:20px; color:#bbb; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.dv-x{grid-column:2; grid-row:1/3; width:40px; height:40px; background:#000; color:#fff; border:2px solid #F4F5F7; font-size:16px; cursor:pointer}
.dv-opts{display:flex; gap:6px; margin-top:6px}
.dv-o{position:relative; flex:1 1 0; min-width:0; height:40px; padding:2px 6px; display:flex; align-items:center; justify-content:center; gap:4px; overflow:hidden; background:#1b1b1b; color:#fff; border:2px solid #F4F5F7; font:700 13px/1.1 var(--disp, system-ui); cursor:pointer}
.dv-o span,.dv-o b{position:relative; min-width:0; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; text-align:center}
.dv-o b{flex:none; color:var(--gold, #FFD54A)}
.dv-o i{position:absolute; inset:0 auto 0 0; background:#E1060055}
.dv-o[aria-pressed=true]{background:#F4F5F7; color:#000}
.dv-o:disabled{cursor:default}
.dv-o:disabled:not([aria-pressed=true]){opacity:.75}
@media (min-width:768px){ .dv{left:auto; right:16px; bottom:16px; width:420px; border:3px solid #000} }

/* the cup (cup-page.js) */
.cp-grid{display:grid; grid-template-columns:1fr 1fr; gap:8px}
.cp-grid.one{grid-template-columns:1fr}
.cp-tie{display:grid; gap:4px; padding:8px; background:#141414; border:2px solid #333; min-width:0}
.cp-tie.live{border-color:var(--red); box-shadow:3px 3px 0 var(--red)}
.cp-tie small{font:600 11px var(--body); color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cp-row{display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:6px; min-height:24px}
.cp-row b{font:600 13px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cp-row em{font:700 14px var(--disp); font-style:normal}
.cp-row .fp-crest,.cp-row .fp-emb,.cp-tbd{width:20px; height:20px; object-fit:contain; display:block}
.cp-tbd{border:2px dashed #555; border-radius:50%}
.cp-row.won b,.cp-row.won em{color:var(--gold)}
.cp-row.out{opacity:.5}
.cp-live{padding:12px; background:#141414; border:2px solid var(--red); box-shadow:4px 4px 0 var(--red); display:grid; gap:8px; margin-bottom:12px}
.cp-lab{display:flex; justify-content:space-between; font:700 13px var(--disp); text-transform:uppercase; color:var(--gold)}
.cp-vs{display:grid; grid-template-columns:32px minmax(0,1fr) auto minmax(0,1fr) 32px; align-items:center; gap:6px; text-align:center}
.cp-vs b{font-size:17px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cp-vs i{font-style:normal; color:var(--muted)}
.cp-vs .fp-crest,.cp-vs .fp-emb{width:32px; height:32px; object-fit:contain; display:block}
.cp-sup{height:10px; background:#F4F5F7; border:2px solid #000}
.cp-sup i{display:block; height:100%; background:var(--red)}
.cp-num{display:flex; justify-content:space-between; font:600 12px var(--body); color:var(--muted)}
.cp-cheer{width:100%; min-height:56px; font-size:22px}
.cp-note{font:500 12px var(--body); color:var(--muted); text-align:center}
.cp-next{margin-bottom:12px; color:#000}
.cp-next .cp-in{text-align:right; flex:none}
.cp-next span:first-child{min-width:0}
.cp-out{margin:0 0 12px; padding:10px 12px; border:2px solid var(--gold); color:var(--gold); font:700 15px var(--disp); text-transform:uppercase; text-align:center}
.cp-champ{display:flex; align-items:center; gap:12px; padding:12px; margin-bottom:12px; background:var(--gold); color:#000; border:2px solid #000}
.cp-champ .fp-crest,.cp-champ .fp-emb{width:44px; height:44px; object-fit:contain; display:block}
.cp-champ p{display:grid}.cp-champ small{font:600 12px var(--body)}.cp-champ b{font-size:22px}
.cp-prog{width:100%; max-width:280px}
.cp-back{display:inline-block; font:700 13px var(--disp); text-transform:uppercase; min-height:32px; color:var(--muted)}
.cp-head{padding:12px; background:#141414; border:2px solid #333; text-align:center; display:grid; gap:8px}
.cp-head small{font:600 12px var(--body); color:var(--muted)}
.cp-board{display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:8px}
.cp-board span{display:grid; justify-items:center; gap:4px; min-width:0}
.cp-board b{font-size:15px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.cp-board strong{font:700 40px var(--disp)}
.cp-board .fp-crest,.cp-board .fp-emb{width:48px; height:48px; object-fit:contain; display:block}
.cp-replay{width:100%; margin:12px 0 6px}
.cp-goals li{display:grid; grid-template-columns:36px minmax(0,1fr) auto; gap:8px; align-items:center; padding:8px 0; border-bottom:1px solid #222}
.cp-goals em{font:700 15px var(--disp); font-style:normal; color:var(--gold)}
.cp-goals span{display:grid; min-width:0}.cp-goals small{color:var(--muted); font-size:12px}
.cp-goals i{font-style:normal; font-size:12px; color:var(--muted)}
.cp-xis{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.cp-xis h4{font:700 13px var(--disp); text-transform:uppercase; margin-bottom:6px}
.cp-xis li{display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:4px; font-size:12px; padding:3px 0; border-bottom:1px solid #222}
.cp-xis em{font-style:normal; color:var(--muted)}.cp-xis span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.fp-tabs:has(>:nth-child(5))>*{font-size:12px; letter-spacing:0; padding:0 2px}   /* five tabs with the cup: «Профиль» and «Состав» must not touch */

/* fantasy hub (hub-page.js, docs/fan-backend.md «Fantasy hub»): manager, player page, votes, fixtures, More. Same street style: hard borders, offset club shadows */
.tk .cap.vc{border-color:#F4F5F7; background:#333}
.hb-mgr{margin-top:4px}
.hb-team{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px}
.hb-tn{font-size:22px; min-width:0; overflow-wrap:anywhere}.hb-tn.none{color:var(--muted); font-size:18px}
.hb-team .fp-btn{flex:none; min-height:40px; font-size:13px}
.hb-form{display:flex; gap:6px; margin-bottom:4px}
.hb-in{flex:1; min-width:0; min-height:44px; padding:0 10px; background:#F4F5F7; color:#000; border:2px solid #000; box-shadow:3px 3px 0 var(--jc); font:700 16px var(--body); border-radius:0}
.hb-form .fp-btn{flex:none; padding:0 10px; font-size:13px}
.hb-hint{display:block; font-size:12px; color:var(--muted); margin-bottom:10px}
.hb-stats{margin-bottom:6px}.hb-stats dd{font-size:24px; overflow-wrap:anywhere}.hb-stats dd.tx{font-size:17px; line-height:1.15}.hb-stats dt{white-space:normal; line-height:1.2}
.hb-row{display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; min-height:44px}
.fp-hist li:has(>.hb-row){padding:0}
.hb-mh{display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; padding:8px 12px; margin-bottom:10px; background:#000; border:2px solid #F4F5F7; box-shadow:3px 3px 0 var(--jc); min-height:44px}
.hb-mh small{font:700 11px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--gold)}
.hb-mh b{font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}.hb-mh span{font:700 14px var(--disp); color:var(--muted)}
.hb-card{display:grid; place-items:center; padding:6px 0 4px; margin-bottom:3.6em; font-size:min(12px,3.1vw)}   /* the ticket stub hangs below the card box */
.hb-card .tk-big{font-size:min(12px,3.1vw)}
.hb-who{display:flex; align-items:center; justify-content:center; gap:6px; flex-wrap:wrap; font-weight:700; margin-bottom:4px}.hb-who small{color:var(--muted)}
.hb-src{color:var(--gold); text-decoration:underline!important}
.hb-news{color:var(--text)}
.hb-wide{width:100%; margin-top:4px}
.hb-opts{display:grid; gap:6px}
.hb-opt{position:relative; display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:44px; padding:0 10px; background:#141414!important; border:2px solid #333!important; overflow:hidden; text-align:left}
.hb-opt i{position:absolute; inset:0 auto 0 0; background:color-mix(in srgb,var(--jc) 35%,transparent); pointer-events:none}
.hb-opt span,.hb-opt b{position:relative; min-width:0}.hb-opt span{font:600 14px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}.hb-opt b{font:700 16px var(--disp)}
.hb-opt[aria-pressed=true]{border-color:#F4F5F7!important; box-shadow:3px 3px 0 var(--jc)}
.hb-opt:disabled{cursor:default}
.hb-two{display:grid; grid-template-columns:1fr 1fr; gap:8px}.hb-two h4{font:700 13px var(--disp); text-transform:uppercase; margin-bottom:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hb-two .hb-opt{padding:0 6px}.hb-two .hb-opt span{font-size:12px}
.hb-potm{display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 12px; margin-bottom:10px; background:var(--gold); color:#000; border:2px solid #000; box-shadow:4px 4px 0 #000}
.hb-potm>b{font-size:26px}.hb-potm span{display:grid; min-width:0}.hb-potm span b{font-size:18px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}.hb-potm small{font:600 12px var(--body)}.hb-potm em{font:700 22px var(--disp); font-style:normal}
.hb-star{color:var(--gold)!important}
.hb-pl{text-decoration:underline; text-decoration-color:#555; text-underline-offset:2px}
.hb-pp{width:100%; max-width:360px}
.hb-fxs{display:grid; gap:6px}
.hb-fx{display:grid; gap:4px; padding:8px 10px; background:#141414; border:2px solid #333}
.hb-fx.done{border-color:#555}
.hb-fx small{font:600 11px var(--body); color:var(--muted)}
.hb-fx span{display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:8px; align-items:center}
.hb-fx span b{font:600 14px var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}.hb-fx span b:last-child{text-align:right}
.hb-fx em{font:700 16px var(--disp); font-style:normal}
.hb-ch{display:flex; align-items:center; gap:6px; font:700 14px var(--disp); text-transform:uppercase; margin:12px 0 2px}
.hb-pc{font-size:14px!important; color:var(--gold)!important}
.hb-more{display:grid; gap:10px; padding-top:4px}
.hb-big{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 10px; align-items:center; padding:14px; background:#141414; border:2px solid #F4F5F7; box-shadow:4px 4px 0 var(--jc); min-height:64px}
.hb-big b{font-size:20px}.hb-big small{grid-column:1; color:var(--muted); font-size:13px}.hb-big i{grid-row:1 / span 2; grid-column:2; font-style:normal; font-size:22px}
.tk-ov .tk-acts{flex-wrap:wrap}.tk-ov .tk-acts .fp-btn{flex:1 1 40%; min-width:0}

/* UI pass 2 (2026-11-11): votes on Ticket cards, clearer hub screens. Refs: Turf (poll % under each choice, «your position» row, ticket match card), Duolingo profile (stat tiles). */
.hb-vote{margin-bottom:8px}
.hb-cards{display:flex; gap:10px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; margin:0 -16px; padding:4px 16px 10px; scrollbar-width:none; font-size:8.6px}.hb-cards::-webkit-scrollbar{display:none}
.hb-vc{position:relative; flex:none; display:grid; gap:6px; width:10.8em; padding:.4em .4em 6px; scroll-snap-align:start; background:#141414!important; border:2px solid #333!important; text-align:left; -webkit-tap-highlight-color:transparent}
.hb-vc .tk{margin:0 auto}
.hb-vc.on{border-color:var(--gold)!important; background:#221c0c!important; box-shadow:3px 3px 0 var(--gold)}
.hb-vc.mine:not(.on){border-color:#F4F5F7!important}
.hb-vc:disabled{cursor:default; opacity:1}
.hb-vc:focus-visible{outline:2px solid #fff; outline-offset:2px}
.hb-tick,.hb-mine{position:absolute; z-index:5; right:-2px; top:-2px; font:700 13px/1 var(--disp); font-style:normal; text-transform:uppercase}
.hb-tick{width:28px; height:28px; display:grid; place-items:center; background:var(--gold); color:#000; border:2px solid #000}
.hb-mine{padding:4px 6px; background:#F4F5F7; color:#000; border:2px solid #000; font-size:11px}
.hb-vn{display:grid; place-items:center; height:13.4em; font-size:15px; text-align:center}
.hb-vs{display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:2px; padding:0 2px}
.hb-vs div{display:grid; justify-items:center; min-width:0}
.hb-vs dd{font:700 18px/1.05 var(--disp)}
.hb-vs dt{font:700 10px var(--body); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); white-space:nowrap}
.hb-vbar{position:relative; display:block; height:20px; background:#000; border:1px solid #333}
.hb-vbar i{position:absolute; inset:0 auto 0 0; background:color-mix(in srgb,var(--jc) 55%,transparent)}
.hb-vbar b{position:relative; display:block; padding:0 6px; font:700 11px/18px var(--body); white-space:nowrap}
.hb-go{position:sticky; bottom:-24px; z-index:6; display:flex; align-items:center; justify-content:space-between; gap:10px; margin:6px -16px 0; padding:10px 16px 34px; background:#0a0a0af2; border-top:2px solid #222}
.hb-go span{display:grid; min-width:0}
.hb-go small{font:700 11px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--gold)}
.hb-go b{font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.hb-go .fp-btn{flex:none; min-width:132px}
/* flat ticket in a vote card: the tray card's rules */
.hb-vc .tk .L{translate:none}.hb-vc .tk{perspective:none}.hb-vc .tk-rot{transform-style:flat}.hb-vc .L.player{z-index:1}.hb-vc .L.low{z-index:2}.hb-vc .L.sheen{display:none}.hb-vc .L.name,.hb-vc .L.pos,.hb-vc .L.rate,.hb-vc .L.rib{z-index:3}

/* hub screens: one look for section heads, empty states, panels */
.fp-none{padding:14px 12px; border:2px dashed #333; color:var(--muted); text-align:center; font-size:14px}
.fp a.fp-dl{background:#F4F5F7; color:#000}   /* the «next match» link lost its card under .fp a */
.hb-mgr{margin-top:20px; padding:2px 12px 12px; background:#111; border:2px solid #2a2a2a; border-left:4px solid var(--jc)}
.hb-mgr>.fp-h:first-child{margin-top:12px}
.hb-mgr .fp-stats>div{background:#0a0a0a}
.fp-h{display:flex; align-items:center; gap:8px}.fp-h::after{content:""; flex:1; height:1px; background:#2a2a2a}
.hb-fxs{gap:8px}
.hb-fx.mine{border-color:var(--jc); box-shadow:3px 3px 0 var(--jc)}
.hb-fx span{grid-template-columns:minmax(0,1fr) minmax(64px,auto) minmax(0,1fr)}
.hb-fx span b{display:flex; align-items:center; gap:6px; min-width:0}.hb-fx span b:last-child{justify-content:flex-end}
.hb-fx em{justify-self:center; min-width:52px; white-space:nowrap; padding:2px 6px; text-align:center; background:#000; border:1px solid #333}
.hb-fx.done em{background:#F4F5F7; color:#000; border-color:#000}
.hb-rd{font:700 13px var(--disp); text-transform:uppercase; letter-spacing:.04em; margin:16px 0 6px}
.fp-mine::before{content:attr(data-you); display:block; font:700 11px var(--body); letter-spacing:.1em; text-transform:uppercase; color:var(--gold); margin:10px 0 4px}
.hb-fx b span{display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.hb-fxs .hb-rd{display:block; margin:12px 0 0; color:var(--muted)}

.hb-vk{position:absolute; z-index:5; right:5px; top:34px; width:22px; height:22px; display:grid; place-items:center; background:#000c; border-radius:50%}.hb-vk img,.hb-vk svg{width:16px; height:16px; object-fit:contain}
