/* Gameweek Brain – design v3 "Floodlight" (2026-11-15): light lavender page, deep plum header with top navigation,
   mint + cyan accents (inspired by Premier League colours, not the same shades), white cards. Patrick picked the light version.
   Colour rule: up / good = green, down / bad = red. */
:root {
  --p9: #1C062C; --p8: #2A0942; --p7: #3B105C; --p6: #55207F; --p5: #7A4FA3;
  --neon: #14E29A; --cyan: #3AD6EE;
  --bg: #F5F1FA; --text: #1C062C; --ink: #1C062C; --muted: #6D5E7D; --dim: #9A8CA8; --ink-muted: #6D5E7D;
  --line: #E8E0F1; --line2: #D8CCE6; --card: #FFFFFF; --card2: #F4EFF9; --field: #FBF9FD;
  --mint: #0C9F6C; --mint-bg: #E3F8EE; --violet: #55207F; --violet-bg: #F0E8F8; --pink: #D92D20; --pink-bg: #FDECEC;
  --amber: #A86400; --amber-bg: #FFF3D6; --blue: #1D6FB0; --on-lime: #FFFFFF;
  --r: 18px; --r-sm: 11px;
  --shadow: 0 1px 2px rgba(28, 6, 44, .06), 0 10px 30px rgba(28, 6, 44, .08);
  --head: 'Space Grotesk', system-ui, sans-serif; --body: Inter, system-ui, -apple-system, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); background: var(--bg); font: 400 15px/1.5 var(--body); min-height: 100vh; }
a { color: var(--p6); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.4px; margin: 0 0 .4em; }
h1 { font-size: 32px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.num, .big { font-family: var(--head); font-variant-numeric: tabular-nums; }

/* ---------- header: plum bar with the main navigation ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--p9); color: #fff; padding-top: env(safe-area-inset-top); }
.top-in { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 22px; height: 64px; padding: 0 20px; }
.top::after { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--neon), var(--cyan) 55%, #8B5CF6); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 19px var(--head); white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.brand b { color: var(--neon); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 14.5px; color: #D9CCE6; white-space: nowrap; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.on { color: var(--neon); font-weight: 600; }
.deadline { font-size: 13px; color: #D9CCE6; white-space: nowrap; }
.deadline b { color: #fff; font-family: var(--head); }
.acct { font-size: 14px; font-weight: 600; background: var(--neon); color: var(--p9); border-radius: 11px; padding: 8px 15px; white-space: nowrap; }
.acct:hover { text-decoration: none; filter: brightness(1.06); }

/* ---------- layout ---------- */
.shell { max-width: var(--max); margin: 0 auto; padding: 22px 20px 0; }
main { min-width: 0; outline: none; }
#view { padding: 4px 0 40px; outline: none; }
.tabbar { display: none; }
.foot { margin-top: 30px; background: var(--p9); color: #BBA8CF; font-size: 12.5px; padding: 26px 20px 100px; }
.foot > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.foot a { color: #fff; font-weight: 600; }
@media (max-width: 1060px) { .deadline { display: none; } }
@media (max-width: 900px) {
  .nav { display: none; }
  .top-in { height: 58px; padding: 0 14px; justify-content: space-between; }
  .shell { padding: 14px 14px 0; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: #fff; box-shadow: 0 -4px 20px rgba(28, 6, 44, .14);
    padding: 6px 6px calc(6px + var(--safe-b)); justify-content: space-around; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 12px; color: var(--muted); }
  .tabbar a i { font-style: normal; font-size: 18px; color: var(--dim); }
  .tabbar a.on { background: var(--p8); color: #fff; }
  .tabbar a.on i { color: var(--neon); }
  .tabbar a:hover { text-decoration: none; }
}

/* section tabs (white strip feel, underline) */
.subnav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: -6px 0 18px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 10px 0 11px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.on { color: var(--text); box-shadow: inset 0 -3px 0 var(--p6); }

/* page titles */
#view > h1, #view > .row h1 { color: var(--text); letter-spacing: -.8px; }
.more-h { font-size: 12px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--mint); font-weight: 600; margin: 22px 0 8px; }
.eyebrow { font: 600 12.5px var(--body); letter-spacing: 1.3px; text-transform: uppercase; color: var(--mint); }

/* ---------- building blocks ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card h2 .sub, .muted { color: var(--muted); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--card); border-radius: 16px; padding: 15px 17px; box-shadow: var(--shadow); }
.stat .l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .v { font: 700 28px var(--head); margin-top: 2px; letter-spacing: -.5px; }
.stat .s { font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .stats.three .stat { padding: 11px 11px; } .stats.three .v { font-size: 21px; } .stats.three .l, .stats.three .s { font-size: 11px; } }
.mint { color: var(--mint); } .pink { color: var(--pink); } .violet { color: var(--violet); } .amber { color: var(--amber); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.sp { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--card); border: 1px solid var(--line2); color: var(--text); border-radius: var(--r-sm); padding: 9px 15px; font-weight: 600; }
.btn:hover { border-color: var(--p5); text-decoration: none; }
.btn.primary { background: var(--p8); border-color: var(--p8); color: #fff; }
.btn.mint { background: var(--neon); border-color: var(--neon); color: var(--p9); }
.btn.primary:hover, .btn.mint:hover { filter: brightness(1.1); }
.btn.sm { padding: 5px 11px; font-size: 13px; }
.btn.ghost { background: transparent; }
input[type=text], input[type=email], input[type=number], input[type=search], select, textarea {
  background: var(--field); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 9px 12px; color: var(--ink); min-width: 0; }
select option { color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid rgba(85, 32, 127, .25); outline-offset: 1px; border-color: var(--p6); }
textarea { width: 100%; min-height: 110px; font: inherit; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; background: var(--card2); color: var(--muted); white-space: nowrap; }
.pill.mint { background: var(--mint-bg); color: var(--mint); } .pill.pink { background: var(--pink-bg); color: var(--pink); }
.pill.violet { background: var(--violet-bg); color: var(--violet); } .pill.amber { background: var(--amber-bg); color: var(--amber); }
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--card2); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { background: none; border: 0; padding: 7px 13px; border-radius: 9px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(28, 6, 44, .12); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--p6); border-radius: 3px; }
.empty { color: var(--muted); padding: 24px 8px; text-align: center; }
.err { color: var(--pink); }
.loading { color: var(--muted); padding: 30px 8px; text-align: center; }
.loading::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid var(--line2); border-top-color: var(--p6); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* tables */
.tw { overflow-x: auto; margin: 0 -4px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th.s { cursor: pointer; } table.t th.s:hover, table.t th.on { color: var(--p6); }
table.t td { padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t td:first-child, table.t th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
table.t tr.me td, table.t tr.me td:first-child { background: #EFE6F8; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #F7F3FB; }

/* players */
.badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 8.5px var(--head); letter-spacing: -.2px; flex: none; border: 1.5px solid rgba(0, 0, 0, .1); }
.pl { display: inline-flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.pl .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pl .m { font-size: 12px; color: var(--muted); }
.flag { color: var(--amber); font-size: 12px; }
.flag.out { color: var(--pink); }

/* fixture difficulty: 1 easy (green) … 5 hard (red) */
.fx { display: inline-block; min-width: 48px; text-align: center; padding: 4px 4px; border-radius: 7px; font-size: 11.5px; font-weight: 700; }
.d1 { background: #0E9F68; color: #fff; } .d2 { background: #86DDB2; color: #053B27; } .d3 { background: #EEE8F4; color: var(--muted); }
.d4 { background: #F6B0B2; color: #5A1014; } .d5 { background: #E5484D; color: #fff; } .d0 { background: transparent; color: var(--dim); border: 1px dashed var(--line2); }

/* pitch */
.pitch { position: relative; border-radius: 14px; padding: 16px 6px 10px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #1F9D62 0 46px, #1B9159 46px 92px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), inset 0 0 0 8px #1B9159, inset 0 0 0 10px rgba(255, 255, 255, .3); }
.pitch::before { content: ''; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 50%; }
.pitch::after { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; border-top: 2px solid rgba(255, 255, 255, .3); }
.line { position: relative; z-index: 1; display: flex; justify-content: center; gap: 4px; margin: 6px 0 12px; }
.shirt { width: 84px; text-align: center; cursor: pointer; position: relative; }
.shirt .badge { width: 34px; height: 34px; font-size: 10px; margin: 0 auto 3px; }
.shirt .ava { display: block; margin: 0 auto -2px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.ava { flex: none; }
.shirt .nm { background: #fff; color: var(--ink); border-radius: 6px 6px 0 0; font-size: 12px; font-weight: 700; padding: 2px 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shirt .xp { background: var(--p8); color: var(--neon); border-radius: 0 0 6px 6px; font: 700 12px var(--head); padding: 1px 3px; }
.shirt .fxs { font-size: 10.5px; color: rgba(255, 255, 255, .92); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.shirt .cap { position: absolute; top: -4px; right: 12px; width: 21px; height: 21px; border-radius: 50%; background: var(--neon); color: var(--p9); font: 700 11px/21px var(--head); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.shirt .cap.v { background: #fff; color: var(--ink); }
.shirt.out .nm { box-shadow: inset 0 -2px 0 #E5484D; }
.benchrow { position: relative; z-index: 1; display: flex; justify-content: center; gap: 4px; padding: 12px 6px 4px; margin: 8px 4px 0; border-radius: 10px; background: rgba(0, 0, 0, .14); }
@media (max-width: 480px) { .shirt { width: 66px; } .shirt .nm { font-size: 11px; } }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; color: #fff; border-radius: 26px; margin: 0 0 16px; box-shadow: var(--shadow);
  background: radial-gradient(800px 380px at 95% 0%, rgba(58, 214, 238, .25), transparent 60%), radial-gradient(640px 380px at 0% 100%, rgba(20, 226, 154, .18), transparent 60%), linear-gradient(135deg, var(--p8), var(--p7)); }
.hero .net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .13; pointer-events: none; }
.hero-in > * { min-width: 0; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; padding: 44px 40px 46px; align-items: center; }
.kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 226, 154, .14); color: var(--neon); }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.02; letter-spacing: -1.5px; margin: 16px 0 14px; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--neon), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: #E2D6EE; max-width: 540px; margin: 0 0 24px; }
.hero-or { display: flex; align-items: center; gap: 12px; color: #BBA8CF; font-size: 13px; margin: 18px 0 2px; max-width: 480px; }
.hero-or::before, .hero-or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .18); }
.hero .small.muted, .hero .muted { color: #BBA8CF; }
.hero code { color: var(--neon); }
.hero a { color: #fff; }
.hero .idpic { color: var(--neon); }
.glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 22px; }
.glass h3 { margin: 0 0 2px; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--neon); }
.glass .when { color: #D2C2E2; font-size: 13.5px; }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 14px; }
.clock div { background: rgba(0, 0, 0, .25); border-radius: 12px; padding: 10px 0 8px; text-align: center; }
.clock b { display: block; font: 700 28px/1 var(--head); font-variant-numeric: tabular-nums; } .clock i { font-style: normal; font-size: 11px; color: #BBA8CF; }
.gl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); cursor: pointer; }
.gl-row .t { flex: 1; min-width: 0; } .gl-row .t b { display: block; } .gl-row small { display: block; color: #BBA8CF; font-size: 12.5px; }
.gl-row .v { font: 700 20px var(--head); color: var(--neon); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 8px; }
.trust div { background: var(--card); border-radius: 16px; padding: 15px 17px; box-shadow: var(--shadow); font-size: 13.5px; color: var(--muted); }
.trust b { display: block; color: var(--text); font: 700 16.5px var(--head); margin-bottom: 2px; }
.sec { margin-top: 44px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.sec-h h2 { margin: 2px 0 0; font-size: 28px; letter-spacing: -.6px; }
.sec-h p { margin: 4px 0 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .card { margin: 0; }
.steps .n { width: 34px; height: 34px; border-radius: 10px; background: var(--p8); color: var(--neon); display: grid; place-items: center; font: 700 16px var(--head); }
.steps h3 { margin: 14px 0 6px; font-size: 19px; } .steps p { margin: 0; color: var(--muted); font-size: 14px; }
.xpc { display: inline-block; min-width: 46px; text-align: center; padding: 4px 0; border-radius: 8px; font: 700 13px var(--head); }
.x3 { background: #0E9F68; color: #fff; } .x2 { background: #63D7A6; color: #052F1F; } .x1 { background: #C9F1DE; color: #0B4B33; } .x0 { background: var(--card2); color: var(--muted); }
.pulse .pr { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pulse .pr:first-of-type { border-top: 0; }
.up { color: var(--mint); font-weight: 700; } .dn { color: var(--pink); font-weight: 700; }
.proof { margin-top: 44px; background: linear-gradient(135deg, var(--p8), var(--p7)); color: #fff; border-radius: 24px; padding: 32px; display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 20px; align-items: center; }
.proof .big { font-size: 38px; color: var(--neon); line-height: 1.1; } .proof small { color: #D2C2E2; }
.proof .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); margin-top: 12px; }
.feat { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 18px; }
.feat .card { margin: 0; }
.tryfree { font: 700 22px/1.15 var(--head); color: var(--text); margin-top: 4px; }
.tryfree span { display: block; margin-top: 4px; font: 500 14px/1.4 var(--body); color: var(--muted); }
.hero .tryfree { display: none; }
.idform { display: flex; gap: 8px; max-width: 480px; margin-top: 12px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 0 0 1px var(--line2), 0 6px 20px rgba(28, 6, 44, .08); }
.hero .idform { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.idform input { flex: 1; font-size: 16.5px; padding: 11px 12px; border: 0 !important; background: transparent !important; outline: none !important; color: var(--p9); }
.idform .btn.primary { padding: 10px 20px; font-size: 15.5px; }
.idpic { color: var(--p6); }
.hero-logo { display: none; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding: 28px 20px 26px; gap: 24px; }
  .hero { border-radius: 20px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr 1fr; padding: 24px; }
  .sec-h h2 { font-size: 24px; }
  .hide-m { display: none; }
}

/* transfers */
.move { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.move:last-child { border-bottom: 0; }
.move .arr { color: var(--dim); }
.plan { background: var(--bg); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.plan.best { background: var(--bg); }
.plan.best > .row:first-child > b::after { content: 'Best'; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: #fff; font: 700 10.5px/1.4 var(--head); letter-spacing: .6px; text-transform: uppercase; vertical-align: 2px; }
.advice { background: var(--card); border-radius: var(--r); padding: 18px 20px 16px 22px; margin-bottom: 16px; box-shadow: var(--shadow); border-left: 6px solid var(--p6); }
.advice.mint { border-left-color: var(--mint); }
.advice .badge { border-color: rgba(0, 0, 0, .15); }

/* to-do box on My team: plum "team sheet" */
.todo { background: linear-gradient(135deg, var(--p8), var(--p7)); color: #fff; border-radius: 22px; padding: 22px 22px 8px; margin-bottom: 16px; box-shadow: var(--shadow); }
.todo h2 { font-size: 22px; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; color: #fff; }
.todo-dl { font: 600 13px var(--body); color: var(--neon); }
.todo .step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.todo .no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--neon); color: var(--p9); display: grid; place-items: center; font: 700 15px var(--head); }
.todo .what { min-width: 0; flex: 1; }
.todo .l { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; color: #CDB9E0; font-weight: 600; }
.todo .big { font: 700 20px/1.3 var(--head); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.todo .big svg, .todo .big img { flex: none; }
.todo .fx { font: 600 13px var(--body); color: #CDB9E0; min-width: 0; padding: 0; }
.todo .out { color: #FFB4B6; text-decoration: line-through; text-decoration-thickness: 2px; }
.todo .arr { color: #CDB9E0; }
.todo .s { font-size: 14px; color: #E2D6EE; }
.todo .s b { color: var(--neon); }
.todo a { color: var(--neon); font-weight: 700; }
.team-top { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; align-items: start; }
.team-top .stats { grid-template-columns: 1fr 1fr; }
.team-top .stats .stat.wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .team-top { grid-template-columns: 1fr; } }
.tvd .v.up { color: var(--mint); } .tvd .v.dn { color: var(--pink); }

/* folded sections */
.fold > summary { cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; }
.fold > summary h2::after { content: '＋ show'; margin-left: auto; font: 600 13px var(--body); color: var(--p6); }
.fold[open] > summary h2::after { content: '－ hide'; }
.fold[open] > summary { margin-bottom: 12px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(28, 6, 44, .55); display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.sheet { background: #fff; border-radius: 20px 20px 0 0; width: min(720px, 100%); max-height: 88vh; overflow: auto; padding: 18px 16px calc(18px + var(--safe-b)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); }
@media (min-width: 720px) { .modal { align-items: center; } .sheet { border-radius: 20px; } }
.close { float: right; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; }

/* charts and misc */
.spark { width: 100%; height: 120px; display: block; }
.barsv { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.barsv span { flex: 1; max-width: 28px; background: var(--p6); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.notice { max-width: var(--max); margin: 14px auto 0; padding: 10px 16px; border-radius: var(--r-sm); background: #fff; border-left: 5px solid var(--mint); font-size: 14px; box-shadow: var(--shadow); }
.notice.warning { border-left-color: var(--amber); background: #FFF8E6; }
.ad.on { margin: 0 0 16px; padding: 8px; background: #fff; border-radius: var(--r); min-height: 90px; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.more-grid a { background: #fff; border-radius: 16px; padding: 16px; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.more-grid a:hover { text-decoration: none; }
.more-grid a i { display: block; font-style: normal; color: var(--p6); font-size: 20px; margin-bottom: 4px; }

/* player vibes */
.vibe { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; line-height: 1; vertical-align: -4px; margin-left: 2px; cursor: help; }
.vibe.fire { background: #FFF1DD; box-shadow: 0 0 0 1px #FFD8A8; }
.vibe.fire, .flame { animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 80%; }
.vibe.ice { background: #E6F4FF; box-shadow: 0 0 0 1px #BFE0FA; }
.vibe.gem { background: #EFEAFF; box-shadow: 0 0 0 1px #D7CCFF; }
.vibe.up { background: #E5F5EA; box-shadow: 0 0 0 1px #B8E2C5; }
.vibe.on-shirt { position: absolute; top: -4px; left: 12px; z-index: 2; width: 22px; height: 22px; font-size: 13px; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.vibe.on-shirt.fire { background: #FFF1DD; }
.vibe-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; background: var(--card2); }
.vibe-line.fire { background: #FFF4E5; color: #8A3B00; }
.vibe-line.ice { background: #EAF5FF; color: #0E4A7A; }
.vibe-line.gem { background: #F2EEFF; color: #43308F; }
.vibe-line.up { background: #E8F6EC; color: #0E5A2C; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.12) rotate(-6deg); } 50% { transform: scale(.96) rotate(3deg); } 75% { transform: scale(1.08) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .vibe.fire, .flame { animation: none; } }

/* "On fire right now" strip */
.hot { margin: 36px 0 0; }
.hot h2 { display: flex; align-items: center; gap: 8px; }
.flame { display: inline-block; }
.hot-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hot-card { flex: none; width: 128px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; border: 0; border-radius: 16px;
  background: linear-gradient(180deg, #FFF6E8, #fff 55%); color: var(--ink); box-shadow: var(--shadow); position: relative; transition: transform .15s ease; }
.hot-card:hover { transform: translateY(-3px); }
.hot-card::after { content: '🔥'; position: absolute; top: 6px; right: 8px; font-size: 14px; animation: flicker 1.6s ease-in-out infinite; }
.hot-card b { font: 700 14px var(--head); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-form { font: 700 20px var(--head); color: #C2410C; }
.hot-form small { font: 500 11px var(--body); color: #9A5B2E; }
.hot-next { font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .hot-card::after { animation: none; } .hot-card:hover { transform: none; } }

/* price arrows */
.pmove { font-size: 10px; margin-left: 3px; vertical-align: 1px; cursor: help; }
.pmove.up { color: #16A34A; } .pmove.down { color: #DC2626; }

/* next three opponents under each player on the pitch */
.fx3 { display: flex; justify-content: center; gap: 2px; margin-top: 3px; }
.fx3 i { font-style: normal; font-size: 9px; font-weight: 800; line-height: 1; padding: 2px 0; width: 20px; border-radius: 4px; text-align: center; letter-spacing: -.2px; overflow: hidden; }
.fx3 i.d0 { background: rgba(255, 255, 255, .55); border: 0; color: #555; }
.fx3 i.d3 { box-shadow: inset 0 0 0 1px rgba(28, 6, 44, .15); }
@media (max-width: 480px) { .fx3 i { width: 17px; font-size: 8px; } }
/* player sheet */
.pinfo h3 { margin-top: 18px; }
.pinfo .stats .v small { font-size: 12px; font-weight: 500; opacity: .7; }
.newsbox { background: #FFF4DB; color: #6B4300; border-radius: 10px; padding: 9px 12px; margin: 0 0 6px; }
.pbars { display: flex; align-items: flex-end; gap: 3px; height: 92px; padding: 0 0 16px; overflow-x: auto; }
.pb { flex: 1 0 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.pb span { width: 100%; border-radius: 3px 3px 0 0; background: #63D7A6; }
.pb span.hi { background: #0E9F68; } .pb span.lo { background: #F6B0B2; } .pb span.z { background: #E2DBE9; }
.pb small { position: absolute; bottom: -15px; font-size: 9.5px; color: var(--muted); }
.ycard, .rcard { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: #FACC15; vertical-align: -1px; margin-right: 2px; }
.rcard { background: #DC2626; margin-left: 6px; }
.fdr { display: inline-block; min-width: 22px; text-align: center; border-radius: 6px; font-weight: 800; font-size: 12px; padding: 2px 4px; }
.fdr.f1, .fdr.f2 { background: #0E9F68; color: #fff; } .fdr.f3 { background: #EEE8F4; color: var(--muted); } .fdr.f4 { background: #F6B0B2; color: #5A1014; } .fdr.f5 { background: #E5484D; color: #fff; }
.pinfo .stats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 4px; }
.pinfo .stat { padding: 9px 12px; box-shadow: none; border: 1px solid var(--line); } .pinfo .stat .v { font-size: 20px; line-height: 1.2; } .pinfo .stat .s { font-size: 11.5px; }

/* transfer cards: out = red, in = green */
.xfer { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 6px; align-items: stretch; margin: 8px 0; }
.xo, .xi { border-radius: var(--r-sm); padding: 8px 12px; min-width: 0; color: var(--ink); }
.xo { background: #FCE8E7; }
.xi { background: #D9F4E6; }
.xl { display: block; font-family: var(--head); font-size: 10.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; margin-bottom: 3px; }
.xo .xl { color: #B42318; } .xi .xl { color: #0B7A50; }
.xa { display: grid; place-items: center; color: var(--dim); font-size: 18px; font-weight: 700; }
.todo .xa { color: #CDB9E0; }
@media (max-width: 480px) { .xfer { grid-template-columns: 1fr; gap: 4px; } .xa { transform: rotate(90deg); height: 16px; } }

/* demo team: big button in the hero + bar on every page while the demo is on */
.demo-cta { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 16px; background: var(--neon); color: var(--p9); text-decoration: none; box-shadow: 0 12px 30px rgba(20, 226, 154, .28); max-width: 480px; transition: transform .15s; }
.demo-cta:hover { transform: translateY(-2px); text-decoration: none; }
.demo-cta b { display: block; font: 700 19px/1.2 var(--head); color: var(--p9); }
.demo-cta small { display: block; font-size: 13px; color: #1E4D3A; margin-top: 2px; }
.dc-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--p9); color: var(--neon); display: grid; place-items: center; font-size: 16px; animation: dcPulse 2.4s infinite; }
@keyframes dcPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(28, 6, 44, .4); } 50% { box-shadow: 0 0 0 10px rgba(28, 6, 44, 0); } }
@media (prefers-reduced-motion: reduce) { .dc-ico { animation: none; } }
.demobar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #E4F8EE; color: var(--p9); border: 1px solid #AFE5CB; border-radius: 14px; padding: 9px 12px 9px 14px; margin-bottom: 16px; font-size: 14px; }
.demobar .btn { background: var(--p8); color: #fff; border-color: var(--p8); }

/* "Continue with Google" button (Google's own look: white, G logo) */
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; background: #fff; color: #1F1F1F; border: 1px solid #DADCE0; border-radius: 999px; font: 500 15px Inter, system-ui, sans-serif; text-decoration: none; }
.gbtn:hover { background: #F7F8F8; text-decoration: none; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; font-size: 13px; opacity: .7; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .25; }
