/* Breakline career screens (G10): graphics-led and premium. Depth (layered glass panels over the club's arena key art), glow in
   the club's colour, and short entrance motion only (no idle animation, so nothing renders while the screen rests). */
.cr { --club: #ffb347; --club2: #1b1d2a; display: grid; grid-template: "top top" auto "rail main" minmax(0, 1fr) / auto minmax(0, 1fr); gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));
  background: radial-gradient(ellipse at 70% 0%, color-mix(in srgb, var(--club) 18%, #0b1424) 0%, #070b13 62%); overflow: hidden; z-index: 5; }
.cr.busy { cursor: progress; } .cr.busy button { pointer-events: none; }
.cr-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .16; filter: blur(14px) saturate(1.3); transform: scale(1.08); pointer-events: none; }
.cr::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,11,19,.2), rgba(7,11,19,.85) 70%); }
.cr > * { position: relative; z-index: 1; }
.cr .cr-modal { position: absolute; z-index: 4; }
.cr-dim { color: var(--dim); }

/* glass card */
.cr-card, .cr-sheet { background: linear-gradient(155deg, rgba(26,38,60,.92), rgba(9,14,24,.94)); border: 1px solid rgba(140,200,255,.16); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(0,0,0,.4); }

/* top bar */
.cr-top { grid-area: top; display: flex; align-items: center; gap: 10px; min-width: 0; }
.cr-club { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.cr-clubcrest { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--club) 55%, transparent)); }
.cr-clubname { display: grid; min-width: 0; line-height: 1.1; }
.cr-clubname b { font-size: 20px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; font-style: italic; }
.cr-clubname small, .cr-title small { color: var(--club); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.cr-title { display: grid; flex: 1; line-height: 1.1; } .cr-title b { font-size: 20px; font-weight: 900; text-transform: uppercase; font-style: italic; letter-spacing: .04em; }
.cr-pills { display: flex; gap: 8px; flex: none; }
.cr-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(8,13,23,.8); border: 1px solid var(--line); font-weight: 800; font-size: 14px; white-space: nowrap; }
.cr-pill svg { width: 18px; height: 18px; } .cr-pill.gold { color: var(--gold); border-color: rgba(255,179,71,.4); }

/* tab rail */
.cr-rail { grid-area: rail; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.cr-tab { position: relative; width: 78px; min-height: 58px; flex: none; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 14px; border: 1px solid transparent; background: rgba(8,13,23,.55); color: var(--dim); padding: 6px 2px; transition: background .2s, color .2s, box-shadow .2s; }
.cr-tab svg { width: 24px; height: 24px; } .cr-tab small { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.cr-tab:hover { color: var(--ink); }
.cr-tab.on { color: #0b0f17; background: linear-gradient(160deg, var(--club), color-mix(in srgb, var(--club) 60%, #000)); box-shadow: 0 0 18px color-mix(in srgb, var(--club) 45%, transparent); }
.cr-dot { position: absolute; top: 6px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* main pane */
.cr-main { grid-area: main; min-width: 0; min-height: 0; overflow: auto; padding: 2px 4px 8px 2px; scrollbar-width: thin; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.cr-main.in { opacity: 1; transform: none; }
.cr-strip-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.cr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(8,13,23,.75); border: 1px solid var(--line); font-weight: 700; font-size: 13px; white-space: nowrap; }
.cr-chip svg { width: 16px; height: 16px; flex: none; } .cr-chip.gold { color: var(--gold); } .cr-chip.home { color: #7dffb0; } .cr-chip.away { color: #ffc27d; } .cr-chip.cup { color: var(--gold); }
.cr-h { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cr-h svg { width: 18px; height: 18px; color: var(--club); }
.cr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,179,71,.5); background: linear-gradient(160deg, #ffc66b, #e08a1e); color: #1a1405; font-weight: 800; }
.cr-btn svg { width: 18px; height: 18px; } .cr-btn.ghost { background: rgba(8,13,23,.75); color: var(--ink); border-color: var(--line); }
.cr-play { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; font-weight: 900; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; font-style: italic;
  color: #0b0f17; background: linear-gradient(160deg, #fff2c8, var(--gold) 45%, #d47a10); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 10px 24px rgba(255,150,40,.3), 0 0 26px rgba(255,179,71,.35); animation: cr-glow 1.6s ease-in-out 2; }
.cr-play svg { width: 20px; height: 20px; } .cr-play.sm { min-height: 44px; font-size: 14px; padding: 0 16px; margin-left: auto; }
.cr-play.wait, .cr-play:disabled { filter: grayscale(.8) brightness(.7); animation: none; cursor: default; }
@keyframes cr-glow { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 10px 30px rgba(255,150,40,.45), 0 0 40px rgba(255,179,71,.6); } }
.cr-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(8,13,23,.8); border: 1px solid var(--line); }
.cr-segb { min-height: 44px; min-width: 96px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--dim); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.cr-segb.on { background: linear-gradient(160deg, var(--club), color-mix(in srgb, var(--club) 55%, #000)); color: #0b0f17; }

/* ---------- club pane ---------- */
.cr-clubgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; min-height: 100%; }
.cr-hero { position: relative; overflow: hidden; min-height: 300px; display: grid; grid-template: "crest pos" 1fr "xi xi" auto "form stats" auto / 1fr auto; padding: 16px; gap: 10px; }
.hero-xi { grid-area: xi; display: flex; gap: 8px; flex-wrap: wrap; }
.xi { position: relative; width: 56px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--club) 50%, transparent); background: #05080e; box-shadow: 0 6px 14px rgba(0,0,0,.5); animation: cr-rise .4s ease-out both; }
.xi svg { width: 100%; height: 100%; } .xi i { position: absolute; left: 3px; bottom: 3px; width: 18px; height: 18px; padding: 2px; border-radius: 6px; background: rgba(5,8,14,.8); color: var(--club); } .xi b { position: absolute; right: 3px; top: 3px; font-size: 11px; font-weight: 900; padding: 0 4px; border-radius: 5px; color: #0b0f17; background: var(--gold); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(5,8,14,.2), rgba(5,8,14,.55) 55%, rgba(5,8,14,.92)), linear-gradient(0deg, rgba(5,8,14,.85), transparent 45%); }
.cr-hero > :not(img):not(.hero-shade) { position: relative; }
.hero-crest { grid-area: crest; width: clamp(90px, 22vh, 150px); height: clamp(90px, 22vh, 150px); align-self: center; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--club) 60%, transparent)) drop-shadow(0 8px 14px rgba(0,0,0,.6)); animation: cr-rise .5s ease-out both; }
.hero-pos { grid-area: pos; align-self: start; display: grid; justify-items: end; line-height: 1; }
.hero-pos b { font-size: clamp(40px, 10vh, 72px); font-weight: 900; font-style: italic; text-shadow: 0 0 24px color-mix(in srgb, var(--club) 50%, transparent); }
.hero-pos small { font-weight: 800; color: var(--club); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-top: 4px; }
.hero-pos.down b { color: #ff7a6b; } .hero-pos.up b { color: #6dffa8; } .hero-pos.top b { color: var(--gold); }
.hero-form { grid-area: form; display: flex; gap: 5px; align-self: end; }
.hero-stats { grid-area: stats; display: flex; gap: 8px; align-self: end; }
.hero-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(5,8,14,.7); border: 1px solid var(--line); font-weight: 800; }
.hero-stats svg { width: 18px; height: 18px; color: var(--club); }
.pip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-style: normal; font-weight: 900; font-size: 12px; color: #0b0f17; background: #3a4558; }
.pip.W { background: #4fe08a; } .pip.D { background: #c9cfd8; } .pip.L { background: #ff6b5a; } .pip.none { color: var(--dim); background: rgba(255,255,255,.08); }
@keyframes cr-rise { from { opacity: 0; transform: translateY(10px) scale(.96); } }

.cr-next { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 0; }
.cr-next .cr-play { margin-top: auto; }
.nx-head { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.nx-side { display: grid; justify-items: center; gap: 2px; position: relative; padding: 8px 4px 6px; border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, transparent), transparent); }
.nx-side::before { content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.nx-side svg { width: 64px; height: 64px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.nx-side b { font-size: 18px; font-weight: 900; letter-spacing: .06em; } .nx-side i { font-style: normal; font-size: 12px; color: var(--dim); font-weight: 700; }
.nx-v { font-weight: 900; font-style: italic; font-size: 22px; color: var(--dim); }
.nx-arena { position: relative; flex: 1 1 74px; min-height: 74px; max-height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.nx-arena img { width: 100%; height: 100%; object-fit: cover; }
.nx-arena span { position: absolute; left: 8px; bottom: 6px; right: 8px; font-weight: 800; font-size: 13px; text-shadow: 0 1px 4px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-modes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.nx-mode { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 56px; min-width: 44px; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8,13,23,.7); color: var(--ink); }
.nx-mode svg { width: 24px; height: 24px; } .nx-mode small { font-size: 11px; font-weight: 700; white-space: nowrap; }
.nx-mode.on { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(255,179,71,.35); background: rgba(51,41,26,.8); }
.nx-mode:disabled { opacity: .38; cursor: default; }
.nx-lock { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; }
.nx-fixed { display: flex; align-items: center; gap: 10px; justify-content: center; }
.nx-mode.solo { grid-auto-flow: column; padding: 8px 14px; gap: 8px; } .nx-mode.solo small { font-size: 14px; }
.nx-by { width: 28px; height: 28px; color: var(--gold); }
.cr-next .cr-play { width: 100%; }
.cr-next.end { text-align: center; }
.end-big { display: grid; place-items: center; }
.end-pos { font-size: 64px; font-weight: 900; font-style: italic; }
.end-up, .end-down { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; padding: 14px; }
.end-up { color: #6dffa8; background: rgba(109,255,168,.12); box-shadow: 0 0 24px rgba(109,255,168,.35); } .end-down { color: #ff7a6b; background: rgba(255,122,107,.12); }
.end-row { display: flex; justify-content: center; gap: 18px; } .end-row span { display: inline-flex; align-items: center; gap: 6px; } .end-row svg { width: 26px; height: 26px; } .end-row span > svg:first-child { width: 20px; color: var(--gold); }

/* ---------- player cards ---------- */
.cr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pc { position: relative; display: grid; grid-template: "face face" auto "name name" auto "bars bars" auto "foot foot" auto / 1fr 1fr; gap: 4px; padding: 8px; border-radius: 16px; text-align: left; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--club) 40%, transparent); background: linear-gradient(170deg, color-mix(in srgb, var(--club) 26%, #111a2a) 0%, #0b111c 52%); box-shadow: 0 10px 22px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08); animation: cr-rise .35s ease-out both; transition: transform .15s, box-shadow .15s; }
.pc:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0,0,0,.5), 0 0 18px color-mix(in srgb, var(--club) 35%, transparent); }
.pc-face { grid-area: face; display: block; width: 100%; aspect-ratio: 1.35; border-radius: 12px; overflow: hidden; }
.pc-face svg { width: 100%; height: 100%; } .pc-face svg { transform: scale(1.02); }
.pc-face { background: #05080e; } .pc-face svg { object-fit: cover; }
/* G12 painted faces: the transparent portrait sits on a code-drawn card in the club's colours (kit stays neutral in the art) */
.face { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: radial-gradient(75% 70% at 50% 46%, color-mix(in srgb, var(--f1) 58%, #0a0f1a) 0%, color-mix(in srgb, var(--f2) 55%, #060a12) 72%, #04070d 100%); }
.face::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(112deg, rgba(255,255,255,.05) 0 2px, transparent 2px 11px); opacity: .7; }
.face::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(0deg, color-mix(in srgb, var(--f1) 55%, transparent), transparent); }
.face img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.face-fb { display: contents; }
.pd-star .face { width: 100%; max-width: 110px; height: auto; aspect-ratio: 1; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--club) 50%, transparent); }
.rl-p .face { width: 36px; height: 36px; border-radius: 8px; }
.pc-ovr { position: absolute; top: 12px; left: 12px; min-width: 34px; height: 30px; padding: 0 6px; display: grid; place-items: center; border-radius: 9px; font-weight: 900; font-size: 17px; color: #0b0f17; background: linear-gradient(160deg, #fff2c8, var(--gold)); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.pc-role { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: rgba(5,8,14,.75); color: var(--club); border: 1px solid color-mix(in srgb, var(--club) 50%, transparent); }
.pc-start { position: absolute; top: 46px; right: 12px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #4fe08a; color: #0b0f17; }
.pc-name { grid-area: name; display: grid; line-height: 1.05; min-width: 0; }
.pc-name b { font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-name small { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-bars { grid-area: bars; display: grid; gap: 3px; }
.pc-bars i, .pk-stats i { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 6px; font-style: normal; }
.pc-bars em, .pk-stats em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--dim); letter-spacing: .04em; }
.pc-bars u, .pk-stats u { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.pc-bars u::after, .pk-stats u::after { content: ''; position: absolute; inset: 0; width: calc(var(--v) * 100%); border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--club) 70%, #fff), #fff2c8); box-shadow: 0 0 8px color-mix(in srgb, var(--club) 60%, transparent); }
.pc-foot { grid-area: foot; display: flex; align-items: center; gap: 8px; color: var(--dim); font-weight: 700; font-size: 12px; min-width: 0; }
.pc-trait { width: 18px; height: 18px; } .pc-trait.hot { color: #ff8a3d; } .pc-trait.cold { color: #7fc8ff; } .pc-trait.leader, .pc-trait.prospect { color: var(--gold); }
.pc.sm { grid-template: "face name" auto "face bars" auto "face foot" auto / 64px 1fr; padding: 6px; gap: 2px 8px; width: 100%; }
.pc.sm .pc-face { aspect-ratio: 1; width: 64px; } .pc.sm .pc-ovr { top: 4px; left: 4px; min-width: 26px; height: 22px; font-size: 13px; border-radius: 7px; }
.pc.sm .pc-role { top: auto; right: auto; left: 44px; bottom: 6px; width: 22px; height: 22px; padding: 3px; } .pc.sm .pc-start { display: none; }
.pc.sm .pc-bars i:nth-child(n + 4) { display: none; } .pc.sm .pc-name b { font-size: 13px; }

/* player card sheet */
.cr-modal { inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; background: rgba(4,6,10,.72); padding: 14px; backdrop-filter: blur(3px); }
.cr-sheet { position: relative; width: min(760px, 100%); max-height: 100%; overflow: auto; padding: 18px; animation: cr-rise .25s ease-out both; }
.cr-x { position: absolute; top: 10px; right: 10px; z-index: 2; }
.pcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; border-color: color-mix(in srgb, var(--club) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--club) 24%, #121c2e), #0a0f19 60%); }
.pk-left { position: relative; display: grid; justify-items: center; gap: 8px; align-content: start; }
.pk-face { width: min(100%, 220px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 2px color-mix(in srgb, var(--club) 60%, transparent), 0 0 30px color-mix(in srgb, var(--club) 35%, transparent); }
.pk-ovr { position: absolute; top: 8px; left: 8px; min-width: 52px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 26px; font-weight: 900; color: #0b0f17; background: linear-gradient(160deg, #fff2c8, var(--gold)); }
.pk-id { display: grid; justify-items: center; gap: 4px; text-align: center; } .pk-id b { font-size: 20px; font-weight: 900; text-transform: uppercase; }
.pk-meta { display: flex; align-items: center; gap: 10px; color: var(--dim); font-weight: 700; } .pk-meta svg { width: 20px; height: 20px; }
.pk-role { display: inline-flex; align-items: center; gap: 4px; color: var(--club); }
.pk-stars { display: flex; gap: 3px; } .pk-stars i { width: 18px; height: 18px; color: rgba(255,255,255,.15); } .pk-stars i.on { color: var(--gold); } .pk-stars i.maybe { color: rgba(255,179,71,.45); }
.pk-money { display: flex; gap: 12px; } .pk-money span { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; } .pk-money svg { width: 16px; height: 16px; color: var(--gold); }
.pk-right { display: grid; gap: 12px; align-content: start; padding-top: 52px; }
.pk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; }
.pk-stats i { grid-template-columns: 34px 1fr 22px; } .pk-stats b { font-size: 13px; text-align: right; } .pk-stats u { height: 8px; }
.pk-stats i.b3 b { color: var(--gold); } .pk-stats i.b0 b { color: #ff7a6b; }
.pk-eff, .pk-hist { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.pk-eff span, .pk-hist span { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; background: rgba(5,8,14,.6); border: 1px solid var(--line); }
.pk-eff svg, .pk-hist svg { width: 20px; height: 20px; color: var(--dim); } .pk-eff b, .pk-hist b { font-size: 15px; font-weight: 900; }
.pk-eff .pos { border-color: rgba(79,224,138,.5); } .pk-eff .pos b, .pk-eff .pos svg { color: #4fe08a; } .pk-eff .neg b, .pk-eff .neg svg { color: #ff7a6b; }

/* ---------- table ---------- */
.cr-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); } .cr-legend svg { width: 16px; height: 16px; }
.z { display: inline-block; width: 14px; height: 14px; border-radius: 4px; } .z.top { background: var(--gold); } .z.down { background: #ff6b5a; } .z.up { background: #4fe08a; }
.cr-table { display: grid; gap: 4px; }
.tr { display: grid; grid-template-columns: 30px 32px minmax(60px, 1.6fr) 34px 30px 30px 30px 42px minmax(70px, 1.4fr) 120px; align-items: center; gap: 6px; min-height: 40px; padding: 2px 8px; border-radius: 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--club) 14%, rgba(14,21,34,.92)), rgba(10,15,25,.92) 40%); border-left: 4px solid var(--club); font-weight: 700; font-size: 14px; animation: cr-rise .3s ease-out both; animation-delay: calc(var(--i, 0) * 18ms); }
.tr > span { text-align: center; white-space: nowrap; } .tr .tn { text-align: left; display: grid; min-width: 0; line-height: 1.05; }
.tr .tn b { font-weight: 900; letter-spacing: .04em; } .tr .tn small { color: var(--dim); font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tr .tc svg { width: 28px; height: 28px; } .tpos { font-weight: 900; font-size: 16px; }
.tr.th { background: none; border-left-color: transparent; min-height: 22px; color: var(--dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; animation: none; }
.tr.me { box-shadow: 0 0 0 1px var(--gold) inset, 0 0 18px rgba(255,179,71,.18); }
.tr.up .tpos { color: #4fe08a; } .tr.down .tpos { color: #ff6b5a; } .tr.top .tpos { color: var(--gold); }
.tr.up { box-shadow: inset 3px 0 0 #4fe08a; } .tr.down { box-shadow: inset 3px 0 0 #ff6b5a; } .tr.me.up, .tr.me.down { box-shadow: 0 0 0 1px var(--gold) inset; }
.tp { display: grid; grid-template-columns: 1fr 28px; align-items: center; gap: 6px; } .tp u { height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
.tp u::after { content: ''; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: linear-gradient(90deg, color-mix(in srgb, var(--club) 80%, #fff), #fff); border-radius: 4px; }
.tp b { font-weight: 900; font-size: 15px; text-align: right; } .tr.th .tp { display: block; }
.tf { display: flex; gap: 3px; justify-content: flex-start; } .tf .pip { width: 16px; height: 16px; border-radius: 4px; }

/* ---------- fixtures ---------- */
.cr-fxstrip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.fx { position: relative; flex: none; width: 66px; min-height: 92px; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 4px 2px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10,15,25,.88); }
.fx small { font-size: 10px; color: var(--dim); font-weight: 800; } .fx-crest svg { width: 30px; height: 30px; }
.fx-ha { font-size: 10px; font-weight: 900; padding: 0 5px; border-radius: 4px; } .fx-ha.h { background: rgba(125,255,176,.18); color: #7dffb0; } .fx-ha.a { background: rgba(255,194,125,.16); color: #ffc27d; }
.fx b { font-size: 13px; font-weight: 900; } .fx-tbd { color: var(--dim); }
.fx-mode { position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; color: var(--dim); }
.fx.W { border-bottom: 3px solid #4fe08a; } .fx.D { border-bottom: 3px solid #c9cfd8; } .fx.L { border-bottom: 3px solid #ff6b5a; }
.fx.now { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,179,71,.35); } .fx.on { background: linear-gradient(180deg, color-mix(in srgb, var(--club) 30%, #142033), #0b111c); }
.cr-fxdetail { position: relative; padding: 6px 2px; border-radius: 18px; overflow: hidden; }
.md-art { position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none; } .md-art img { width: 100%; height: 100%; object-fit: cover; opacity: .35; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.cr-fxdetail > :not(.md-art) { position: relative; } .md-next { text-align: center; margin: 8px 0; } .md-next svg { width: 40px; height: 40px; margin: 0 auto; color: var(--club); opacity: .6; }
.cr-recap .md-art { display: none; }
.md-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.md-side { display: grid; justify-items: center; gap: 2px; } .md-side svg { width: 48px; height: 48px; } .md-side b { font-weight: 900; letter-spacing: .06em; }
.md-score { font-size: 40px; font-weight: 900; font-style: italic; letter-spacing: .02em; } .md-score i { color: var(--dim); margin: 0 6px; font-style: normal; }
.md-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; }
.rc-tags { display: flex; justify-content: center; gap: 18px; margin: 6px 0; } .rc-tags span { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; } .rc-tags svg { width: 18px; height: 18px; }
.rc-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 4px; max-width: 520px; }
.rc { display: grid; grid-template-columns: 34px 24px 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 34px; padding: 2px 10px; border-radius: 10px; background: rgba(10,15,25,.85); border: 1px solid var(--line); font-weight: 700; }
.rc-r { font-size: 11px; color: var(--dim); font-weight: 800; } .rc-i svg { width: 20px; height: 20px; } .rc-c svg { width: 20px; height: 20px; }
.rc-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rc-t { font-weight: 900; display: inline-flex; align-items: center; gap: 4px; } .rc-t svg { width: 16px; height: 16px; }
.rc.score .rc-i, .rc.bank .rc-i { color: var(--gold); } .rc.intercept .rc-i { color: #ff8a7a; } .rc.golden { border-color: rgba(255,179,71,.5); } .rc.golden .rc-i { color: var(--gold); }
.rc.carry.in .rc-t { color: #4fe08a; } .rc.carry.out .rc-t { color: #ff6b5a; }

/* ---------- cup ---------- */
.cr-bracket { display: flex; gap: 12px; width: max-content; padding-bottom: 8px; align-items: stretch; }
.cb-col { display: flex; flex-direction: column; gap: 6px; flex: none; width: 128px; }
.cb-ties { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 6px; }
.cb-col.champ .cb-win { margin: auto 0; }
.cb-col h4 { margin: 0 0 2px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: center; display: flex; justify-content: center; }
.cb-col h4 svg { width: 22px; height: 22px; color: var(--gold); }
.cb-tie { position: relative; display: grid; gap: 2px; padding: 4px 6px; min-height: 52px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10,15,25,.9); }
.cb-tie.me { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,179,71,.3); }
.cb-team, .cb-bye { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.cb-team svg, .cb-bye svg { width: 20px; height: 20px; } .cb-team i { font-style: normal; } .cb-team.l { opacity: .45; } .cb-team.w b { color: var(--gold); }
.cb-x { position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; color: var(--gold); background: #0b111c; border-radius: 50%; }
.cb-bye { padding: 3px 6px; border-radius: 8px; background: rgba(10,15,25,.7); min-height: 30px; } .cb-bye.me { outline: 1px solid var(--gold); }
.cb-col.byes { width: 100px; justify-content: flex-start; }
.cb-win { display: grid; justify-items: center; gap: 4px; padding: 12px; border-radius: 16px; background: radial-gradient(circle, rgba(255,179,71,.25), transparent 70%); } .cb-win svg { width: 64px; height: 64px; } .cb-win b { font-weight: 900; }

/* ---------- transfers ---------- */
.cr-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.tm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: stretch; padding: 4px; border-radius: 16px; background: rgba(8,13,23,.6); border: 1px solid var(--line); }
.tm-buy { display: grid; align-content: center; justify-items: stretch; gap: 4px; min-width: 88px; }
.tm-price { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-weight: 900; color: var(--gold); } .tm-price svg { width: 16px; height: 16px; }
.tm-from { display: grid; place-items: center; } .tm-from svg { width: 24px; height: 24px; }
.cr-btn.sm { min-height: 44px; padding: 0 10px; font-size: 13px; }
.tm.bid { border-color: rgba(255,179,71,.4); }
.cr-locked { display: grid; justify-items: center; gap: 4px; padding: 18px; margin-bottom: 12px; border-radius: 18px; background: rgba(8,13,23,.6); border: 1px dashed var(--line); }
.lk-i { width: 42px; height: 42px; color: var(--dim); } .cr-locked b { font-size: 18px; font-weight: 900; text-transform: uppercase; font-style: italic; } .cr-locked small { color: var(--dim); }
.cr-moves { display: flex; flex-wrap: wrap; gap: 6px; } .mv { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(8,13,23,.75); border: 1px solid var(--line); font-size: 12px; font-weight: 700; } .mv svg { width: 18px; height: 18px; }

/* ---------- records ---------- */
.rec-honours { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-h { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: linear-gradient(160deg, rgba(255,179,71,.18), rgba(8,13,23,.8)); border: 1px solid rgba(255,179,71,.3); } .rec-h svg { width: 22px; height: 22px; color: var(--gold); } .rec-h b { font-size: 20px; font-weight: 900; }
.rec-seasons { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.rec-s { flex: none; display: grid; justify-items: center; gap: 4px; width: 92px; padding: 8px 6px; border-radius: 14px; background: rgba(10,15,25,.88); border: 1px solid var(--line); font-weight: 800; }
.rec-s span { display: inline-flex; align-items: center; gap: 4px; } .rec-s svg { width: 22px; height: 22px; } .rec-s span > svg:first-child { width: 16px; height: 16px; color: var(--gold); }
.rec-you { font-size: 12px; } .rec-you.up { color: #4fe08a; } .rec-you.down { color: #ff6b5a; } .rec-s.empty { opacity: .6; }
.rec-leads { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.rec-lead { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)); align-items: center; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(10,15,25,.88); border: 1px solid var(--line); }
.rl-i { width: 30px; height: 30px; padding: 4px; color: var(--club); }
.rl-p { display: grid; justify-items: center; gap: 1px; min-height: 44px; min-width: 44px; padding: 3px 2px; border-radius: 10px; border: 1px solid transparent; background: rgba(5,8,14,.5); }
.rl-p svg { width: 36px; height: 36px; border-radius: 8px; } .rl-p b { font-size: 14px; font-weight: 900; } .rl-p small { font-size: 10px; color: var(--dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-p.first { border-color: rgba(255,179,71,.5); } .rl-p.first b { color: var(--gold); }
.rec-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ---------- club pick ---------- */
.cr-pick { grid-area: rail / rail / main / main; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 12px; min-height: 0; }
.cr-pickgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px; overflow: auto; min-height: 0; padding: 2px; }
.cc-str { width: 60%; } .cc-str u { display: block; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; } .cc-str u::after { content: ''; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--club), #fff); }
.cr-crestcard { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 12px 6px 14px; min-height: 104px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(170deg, color-mix(in srgb, var(--club) 22%, #121b2b), #0b111c 70%); overflow: hidden; animation: cr-rise .3s ease-out both; transition: transform .15s; }
.cr-crestcard:hover { transform: translateY(-2px); }
.cc-crest { width: clamp(40px, 11vh, 92px); height: clamp(40px, 11vh, 92px); filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); } .cc-name { font-weight: 900; letter-spacing: .08em; }
.cc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--club), var(--club2)); }
.cr-crestcard.on { border-color: var(--club); box-shadow: 0 0 0 1px var(--club) inset, 0 0 22px color-mix(in srgb, var(--club) 45%, transparent); }
.cr-pickdetail { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 12px; min-height: 0; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--club) 22%, #121c2e), #0a0f19 65%); border: 1px solid color-mix(in srgb, var(--club) 45%, transparent); overflow: hidden; }
.pd-art { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 8; }
.pd-art img { width: 100%; height: 100%; object-fit: cover; } .pd-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,14,.85), transparent 60%); }
.pd-crest { position: absolute; left: 10px; bottom: 6px; width: 84px; height: 84px; z-index: 1; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--club) 60%, transparent)); }
.pd-body { display: grid; gap: 8px; align-content: start; min-height: 0; overflow: hidden; } .pd-body h3 { margin: 0; font-size: 22px; font-weight: 900; text-transform: uppercase; font-style: italic; }
.pd-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-str { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 900; } .pd-str svg { width: 22px; height: 22px; color: var(--club); }
.pd-stars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-star { position: relative; display: grid; justify-items: center; gap: 2px; } .pd-star svg { width: 100%; height: auto; max-width: 110px; aspect-ratio: 1; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--club) 50%, transparent); } .pd-star i { position: absolute; top: 4px; left: 4px; font-style: normal; font-weight: 900; font-size: 12px; padding: 1px 5px; border-radius: 6px; background: var(--gold); color: #0b0f17; } .pd-star small { font-weight: 800; font-size: 12px; text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-modes { display: flex; gap: 8px; } .pd-mode { display: grid; justify-items: center; gap: 2px; padding: 6px 10px; border-radius: 12px; background: rgba(5,8,14,.6); border: 1px solid var(--line); } .pd-mode svg { width: 24px; height: 24px; } .pd-mode small { font-size: 11px; font-weight: 700; } .pd-mode.pref { border-color: var(--gold); color: var(--gold); }
.cr-pickdetail .cr-play { width: 100%; }

/* ---------- sheets ---------- */
.cr-recap { width: min(640px, 100%); } .rp-badge { justify-self: center; display: block; width: max-content; margin: 0 auto 8px; padding: 4px 16px; border-radius: 999px; font-weight: 900; letter-spacing: .2em; font-style: italic; }
.rp-badge.W { background: #4fe08a; color: #0b0f17; } .rp-badge.L { background: #ff6b5a; color: #0b0f17; } .rp-badge.D { background: #c9cfd8; color: #0b0f17; }
.cr-recap .row { margin-top: 12px; }
.info { width: min(460px, 100%); text-align: center; display: grid; justify-items: center; gap: 6px; } .info h3 { margin: 0; font-size: 20px; } .info p { margin: 0; color: var(--dim); } .in-i { width: 44px; height: 44px; color: var(--club); }
.cr-err { grid-area: main; display: grid; place-items: center; gap: 10px; }

/* menu tile */
.tile-career { border-color: rgba(255,179,71,.45); background: linear-gradient(160deg, #2a2213, #0b1320); } .tile-career .tile-icon { color: var(--gold); }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) { .tr { grid-template-columns: 26px 30px minmax(52px, 1fr) 30px 40px minmax(60px, 1fr) 96px; } .tr .wdl { display: none; } .tr .tn small { display: none; } }
@media (orientation: portrait) and (min-width: 600px) {
  .cr-clubgrid { grid-template-columns: 1fr; } .cr-hero { min-height: 260px; }
  .cr-pick { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; } .pd-art { aspect-ratio: 16 / 6; }
  .pcard { grid-template-columns: 1fr; } .pk-right { padding-top: 0; }
}
@media (max-height: 520px) {
  .cr { gap: 6px; padding-top: calc(6px + env(safe-area-inset-top)); padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .cr-top { gap: 8px; } .cr-top .icon-btn { width: 44px; height: 44px; padding: 9px; } .cr-clubcrest { width: 34px; height: 34px; }
  .cr-clubname b, .cr-title b { font-size: 16px; } .cr-clubname small, .cr-title small { font-size: 10px; } .cr-pill { min-height: 32px; font-size: 13px; padding: 0 10px; }
  .cr-rail { gap: 3px; } .cr-tab { width: 58px; min-height: 44px; padding: 3px 1px; gap: 1px; border-radius: 12px; } .cr-tab svg { width: 20px; height: 20px; } .cr-tab small { font-size: 9px; }
  .cr-hero { min-height: 0; padding: 10px; } .hero-crest { width: 84px; height: 84px; } .hero-pos b { font-size: 44px; }
  .cr-next { padding: 10px; gap: 6px; } .nx-arena { flex: 0 0 44px; min-height: 44px; } .nx-side svg { width: 40px; height: 40px; } .nx-side b { font-size: 14px; } .nx-side { padding: 4px 2px; } .nx-arena { height: 44px; } .nx-v { font-size: 16px; }
  .nx-mode { min-height: 44px; padding: 3px 1px; } .nx-mode svg { width: 20px; height: 20px; } .nx-mode small { font-size: 9px; }
  .cr-play { min-height: 44px; font-size: 15px; } .cr-segb { min-width: 80px; }
  .cr-cards { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; } .pc { padding: 6px; } .pc-face { aspect-ratio: 1.6; } .pc-name b { font-size: 14px; } .pc-ovr { top: 9px; left: 9px; } .pc-role { top: 9px; right: 9px; }
  .pc-bars i:nth-child(n + 4) { display: none; } .pc-start { top: 40px; right: 9px; }
  .pcard { grid-template-columns: 180px minmax(0, 1fr); gap: 10px; padding: 12px; } .pk-face { width: 120px; } .pk-right { padding-top: 26px; gap: 6px; } .pk-stats { gap: 3px 10px; } .pk-id b { font-size: 16px; }
  .pk-eff span, .pk-hist span { padding: 3px 2px; } .cr-sheet { padding: 12px; } .cr-modal { padding: 6px; }
  .tr { min-height: 30px; font-size: 13px; padding: 1px 6px; } .tr .tc svg { width: 22px; height: 22px; }
  .fx { min-height: 78px; width: 58px; } .md-score { font-size: 30px; } .md-side svg { width: 34px; height: 34px; }
  .cr-pick { grid-template-columns: minmax(0, 1.2fr) minmax(230px, 1fr); gap: 8px; } .cr-pickgrid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; } .cr-crestcard { min-height: 80px; padding: 8px 4px 10px; } .cc-crest { width: 40px; height: 40px; }
  .cr-pickgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pd-stars { display: none; } .pd-str { font-size: 16px; } .hero-xi { gap: 4px; } .xi { width: 44px; height: 48px; } .xi i { width: 14px; height: 14px; padding: 1px; } .xi b { font-size: 10px; }
  .cr-pickdetail { padding: 8px; gap: 6px; } .pd-art { aspect-ratio: 16 / 7; } .pd-crest { width: 54px; height: 54px; } .pd-body h3 { font-size: 16px; } .pd-mode { padding: 3px 8px; }
  .cr-row { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
}
@media (max-height: 400px) { .cr { gap: 4px; padding-top: calc(4px + env(safe-area-inset-top)); padding-bottom: calc(4px + env(safe-area-inset-bottom)); } .cr-rail { gap: 1px; } .nx-arena { display: none; } .hero-stats { display: none; } .pd-chips { display: none; } .pd-star small { display: none; } }
@media (prefers-reduced-motion: reduce) { .cr *, .cr { animation: none !important; transition: none !important; } .cr-main { opacity: 1; transform: none; } }

.pc-stars { display: inline-flex; gap: 1px; margin-left: auto; } .pc-stars i { width: 11px; height: 11px; color: rgba(255,255,255,.15); } .pc-stars i.on { color: var(--gold); } .pc-stars i.maybe { color: rgba(255,179,71,.45); }

/* buttons inside the shared .row keep the career look */
.cr .row .cr-btn { background: linear-gradient(160deg, #ffc66b, #e08a1e); color: #1a1405; border: 1px solid rgba(255,179,71,.5); min-width: 120px; }
@media (max-width: 760px) { .nx-mode small { display: none; } .nx-mode { min-height: 44px; } }
.cr-toast { position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 6; max-width: 80vw; padding: 10px 16px; border-radius: 12px; background: #1c2a3a; border: 1px solid var(--ok); color: #d9f1ff; font-weight: 700; text-align: center; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
/* recap on short screens: badge in the corner, tighter rows, so the sheet never scrolls */
@media (max-height: 520px) {
  .cr-recap .rp-badge { position: absolute; top: 12px; left: 12px; margin: 0; font-size: 12px; padding: 3px 10px; }
  .cr-recap .md-tags { margin: 4px 0; } .cr-recap .md-tags .cr-chip { min-height: 26px; }
  .cr-recap .rc-tags { margin: 2px 0; } .cr-recap .rc-list { gap: 2px; } .cr-recap .rc { min-height: 28px; }
  .cr-recap .row { margin-top: 6px; } .cr-recap .md-score { font-size: 26px; } .cr-recap .md-side svg { width: 30px; height: 30px; }
}
