/* Liga Melancolía — twilight, amber and rose. */
:root {
  color-scheme: dark;
  --bg: #0e0c1d;
  --bg-2: #15122b;
  --card: rgba(27, 24, 51, 0.78);
  --card-solid: #1b1833;
  --card-hi: rgba(40, 35, 74, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eeeaf9;
  --text-2: #b3acd3;
  --muted: #7f79a1;
  --amber: #f2b25c;
  --rose: #e0577e;
  --lilac: #b9a8ff;
  --win: #5cc48d;
  --draw: #8f8aad;
  --loss: #e46a6a;
  --radius: 18px;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--body);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---- sky ------------------------------------------------------------- */
body { background:
    radial-gradient(120% 900px at 50% 0%, #2a1f4f 0%, rgba(42,31,79,0) 60%),
    linear-gradient(180deg, #120f26 0%, #0e0c1d 900px, #0b0a17 100%); }
.sky { position: absolute; left: 0; right: 0; top: 0; height: 760px; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 70%, transparent);
          mask: linear-gradient(180deg, #000 70%, transparent);
  background:
    radial-gradient(120% 70% at 50% 0%, #2a1f4f 0%, rgba(42,31,79,0) 60%),
    radial-gradient(90% 55% at 50% 38%, rgba(224,87,126,0.22) 0%, rgba(224,87,126,0) 65%),
    linear-gradient(180deg, #120f26 0%, #0e0c1d 55%, #0b0a17 100%);
}
.stars { position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 22%, #ffe9c4 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 8%, #d9d2ff 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 4%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 31%, #fff 50%, transparent 51%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }
.sun { position: absolute; left: 50%; top: 150px; width: 420px; height: 420px;
  transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #f6c77a 0%, #f2b25c 25%, #e0577e 70%, #9b3f8f 100%);
  filter: saturate(.9);
  opacity: .28;
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 32px);
          mask: repeating-linear-gradient(180deg, #000 0 26px, transparent 26px 32px);
}
.horizon { position: absolute; left: 0; right: 0; top: 470px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,178,92,.45), transparent); }

/* ---- hero ------------------------------------------------------------ */
.hero { text-align: center; padding: 56px 20px 26px; max-width: 900px; margin: 0 auto; }
.kicker { margin: 0 0 6px; color: var(--text-2); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.title { margin: 0; font-family: var(--display); font-weight: 650; font-size: clamp(46px, 11vw, 104px);
  line-height: .95; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.title em { font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--amber) 10%, #ef8a7a 50%, var(--rose) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em; }
.tagline { margin: 16px auto 0; max-width: 520px; color: var(--text-2);
  font-family: var(--display); font-style: italic; font-size: 19px; min-height: 1.5em;
  transition: opacity .6s ease; }
.progress { margin: 26px auto 0; max-width: 560px; }
.progress .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress .bar i { display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--amber), var(--rose)); transition: width .8s ease; }
.progress .meta { display: flex; justify-content: space-between; margin-top: 8px; color: var(--text-2); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 14px; backdrop-filter: blur(8px); }
.chip b { font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--card-solid); }

/* ---- nav --------------------------------------------------------------- */
.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; justify-content: center;
  padding: 10px 12px; overflow-x: auto; scrollbar-width: none;
  background: linear-gradient(180deg, rgba(14,12,29,.92), rgba(14,12,29,.75));
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-decoration: none; color: var(--text-2); padding: 6px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: rgba(255,255,255,.06); }

main { max-width: 1040px; margin: 0 auto; padding: 8px 16px 40px; }
.block { margin-top: 34px; scroll-margin-top: 64px; }
.block-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.block-head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.01em; }
.block-head .sub { color: var(--muted); font-size: 14px; }
.hint { color: var(--text-2); font-size: 14px; margin: -4px 0 12px; min-height: 0; }
.hint:empty { display: none; }
.legend-note { color: var(--muted); font-size: 13px; margin: 10px 2px 0; }
.muted { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); }

/* ---- next match -------------------------------------------------------- */
.next { position: relative; overflow: hidden; padding: 22px 18px 20px; text-align: center; }
.next::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, rgba(242,178,92,.7), rgba(224,87,126,.5), rgba(185,168,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.next .label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin: 0 0 4px; }
.next .what { color: var(--text-2); font-size: 14px; margin: 0 0 18px; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.side .club { font-weight: 600; font-size: 16px; }
.side .names { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.vs { font-family: var(--display); font-style: italic; font-size: 30px; color: var(--muted); }
.next .btn { margin-top: 20px; }
.champion { padding: 30px 18px; text-align: center; }
.champion .crown { font-size: 46px; line-height: 1; }
.champion h3 { font-family: var(--display); font-size: 34px; margin: 8px 0 4px; }

.name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* ---- badges -------------------------------------------------------------- */
.badge { --c1: #444; --c2: #444; --t: #fff; position: relative; flex: none; display: grid; place-items: center;
  width: 46px; height: 54px; color: var(--t); font-weight: 800; font-size: 13px; letter-spacing: .04em;
  background: linear-gradient(135deg, var(--c1) 0 50%, var(--c2) 50% 100%);
  clip-path: polygon(50% 0, 100% 12%, 100% 58%, 50% 100%, 0 58%, 0 12%);
  text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.badge.striped { background: repeating-linear-gradient(90deg, var(--c1) 0 7px, var(--c2) 7px 14px); }
.badge span { position: relative; z-index: 1; padding: 1px 3px; border-radius: 4px; }
.badge.striped span { background: rgba(0,0,0,.45); color: #fff; text-shadow: none; }
.badge.light span { text-shadow: none; }
.badge.lg { width: 74px; height: 86px; font-size: 19px; }
.badge.sm { width: 30px; height: 35px; font-size: 9px; }
.badge::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%, rgba(0,0,0,.18)); }

/* ---- segmented control ----------------------------------------------- */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); margin-left: auto; }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 9px; cursor: pointer; color: var(--text-2); font-size: 14px; font-weight: 600; }
.seg button[aria-selected="true"] { background: var(--card-hi); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }

/* ---- standings ------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px); }
table.standings { width: 100%; border-collapse: collapse; min-width: 540px; }
.standings th { text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 12px 10px 8px; }
.standings td { text-align: right; padding: 12px 10px; border-top: 1px solid var(--line); }
.standings th.l, .standings td.l { text-align: left; }
.standings td.pos { width: 36px; text-align: center; font-family: var(--display); font-size: 20px; color: var(--text-2); }
.standings tr.first td.pos { color: var(--amber); }
.standings td.pts { font-weight: 800; font-size: 18px; }
.standings td.dg.pos-v { color: var(--win); }
.standings td.dg.neg-v { color: var(--loss); }
.standings tr.first { background: linear-gradient(90deg, rgba(242,178,92,.12), rgba(242,178,92,0) 70%); }
.standings .player { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.standings .tag { font-size: 12px; color: var(--muted); font-weight: 500; }
.form { display: inline-flex; gap: 4px; }
.form i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #0e0c1d; }
.form i.G { background: var(--win); } .form i.E { background: var(--draw); } .form i.P { background: var(--loss); }
.form i.none { background: rgba(255,255,255,.07); }

/* ---- chart -------------------------------------------------------------- */
.chart { position: relative; padding: 14px 10px 6px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .endlabel { font-size: 12px; font-weight: 700; fill: var(--text); }
.chart .cross { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.chart .empty { fill: var(--muted); font-size: 14px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 4px 0; color: var(--text-2); font-size: 13px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }

.tooltip { position: fixed; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .12s;
  background: #241f45; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); min-width: 150px; }
.tooltip.on { opacity: 1; }
.tooltip .tt-h { color: var(--text-2); font-size: 12px; margin-bottom: 4px; }
.tooltip .tt-r { display: flex; align-items: center; gap: 8px; }
.tooltip .tt-r b { margin-left: auto; padding-left: 12px; }

/* ---- head to head --------------------------------------------------- */
.h2h { display: grid; grid-template-columns: 90px repeat(4, minmax(0, 1fr)); gap: 6px; }
.h2h .hd { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px; min-width: 0; }
.h2h .rh { justify-content: flex-start; }
.h2h .cell { border-radius: 12px; min-height: 58px; display: grid; place-items: center; text-align: center; padding: 6px;
  background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 18px; }
.h2h .cell small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.h2h .cell.self { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px); border-style: dashed; }
.h2h .cell.G { background: rgba(92,196,141,.14); border-color: rgba(92,196,141,.35); }
.h2h .cell.E { background: rgba(143,138,173,.14); }
.h2h .cell.P { background: rgba(228,106,106,.12); border-color: rgba(228,106,106,.3); }
.h2h .cell.todo { color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---- fixtures ------------------------------------------------------- */
.round { margin-bottom: 22px; }
.round h3 { font-family: var(--display); font-weight: 500; font-style: italic; font-size: 20px; color: var(--text-2); margin: 0 0 10px 2px; }
.fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx { cursor: pointer; text-align: left; width: 100%; padding: 12px 14px; display: grid; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: transform .15s, border-color .15s, background .15s; }
.fx:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--card-hi); }
.fx:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.fx.next-up { border-color: rgba(242,178,92,.55); box-shadow: 0 0 0 1px rgba(242,178,92,.25), 0 8px 30px rgba(242,178,92,.08); }
.fx.pending { opacity: .78; }
.fx-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.fx-top .type { font-weight: 800; letter-spacing: .06em; color: var(--text-2); padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.06); }
.fx-top .state { margin-left: auto; }
.fx-top .state.up { color: var(--amber); font-weight: 700; }
.fx-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.fx-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-side.r { flex-direction: row-reverse; text-align: right; }
.fx-side .who { min-width: 0; }
.fx-side .club { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-side .ppl { font-weight: 600; font-size: 14px; line-height: 1.25; }
.fx-side.win .ppl { color: var(--text); }
.fx-side.lose .ppl { color: var(--text-2); }
.score { font-weight: 800; font-size: 22px; min-width: 64px; text-align: center; letter-spacing: .02em; }
.score.empty { color: var(--muted); font-weight: 500; font-size: 15px; }

/* ---- teams ---------------------------------------------------------- */
.team-group { margin-bottom: 18px; }
.team-group h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 2px; font-weight: 600; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.team { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.team .club { font-weight: 700; }
.team .ppl { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.team .rec { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---- facts ---------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fact { padding: 16px; }
.fact .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.1; margin-top: 6px; }
.fact .d { color: var(--text-2); font-size: 13px; margin-top: 4px; }

/* ---- buttons / modal / toast ---------------------------------------- */
.btn { border: 1px solid var(--line-2); background: rgba(255,255,255,.06); padding: 10px 18px; border-radius: 12px; cursor: pointer; font-weight: 700; }
.btn:hover { background: rgba(255,255,255,.1); }
.btn.primary { border: 0; color: #1a1020; background: linear-gradient(100deg, var(--amber), #ee8a78); box-shadow: 0 8px 24px rgba(242,178,92,.25); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: none; }
.btn.danger { color: var(--loss); border-color: rgba(228,106,106,.35); }
.btn[disabled] { opacity: .5; cursor: default; }

.modal { width: min(560px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(180deg, #221d42, #17142e); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal::backdrop { background: rgba(8,6,18,.7); backdrop-filter: blur(4px); }
.modal form { padding: 22px 18px 18px; }
.modal-kicker { margin: 0 0 16px; text-align: center; color: var(--text-2); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.m-sides { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; }
.m-side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.m-side .club { font-weight: 700; }
.m-side .ppl { font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.m-dash { font-family: var(--display); font-size: 40px; color: var(--muted); padding-top: 166px; }
.stepper { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); font-size: 22px; font-weight: 600; cursor: pointer; line-height: 1; }
.stepper button:active { transform: scale(.94); }
.stepper output { min-width: 52px; text-align: center; font-size: 44px; font-weight: 800; font-family: var(--body); }
.m-error { color: var(--loss); text-align: center; min-height: 1.4em; margin: 14px 0 0; font-size: 14px; }
.m-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.m-actions .spacer { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 30;
  background: #2a2350; border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 12px; font-weight: 600;
  transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.foot { text-align: center; padding: 10px 16px 40px; color: var(--text-2); font-size: 13px; }
.foot p { margin: 4px 0; }

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .sun { width: 300px; height: 300px; top: 130px; }
  .horizon { top: 400px; }
  .block-head h2 { font-size: 26px; }
  .seg { margin-left: 0; }
  .standings .hide-sm { display: none; }
  table.standings { min-width: 0; }
  .standings td, .standings th { padding-left: 6px; padding-right: 6px; }
  .h2h { grid-template-columns: 64px repeat(4, minmax(0, 1fr)); gap: 4px; }
  .h2h .hd { font-size: 11px; }
  .h2h .cell { font-size: 15px; min-height: 50px; }
  .fx-grid { grid-template-columns: 1fr; }
  .tabs { justify-content: flex-start; }
  .m-sides { grid-template-columns: 1fr 1fr; gap: 14px; }
  .m-dash { display: none; }
  .stepper { gap: 6px; }
  .stepper button { width: 38px; height: 38px; font-size: 20px; }
  .stepper output { min-width: 40px; font-size: 38px; }
  .badge.lg { width: 60px; height: 70px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- crests and faces (2026-12-05) ------------------------------------- */
.crest { flex: none; width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.crest.lg { width: 84px; height: 84px; }
.crest.sm { width: 38px; height: 38px; }
.avatar { --size: 32px; --ring: #888; position: relative; flex: none; width: var(--size); height: var(--size);
  border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center;
  background: var(--ring); box-shadow: 0 0 0 2px var(--ring), 0 0 0 4px var(--card-solid); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar .initial { font-weight: 800; color: #0e0c1d; font-size: calc(var(--size) * .45); line-height: 1; }
.pill .avatar, .name .avatar { box-shadow: 0 0 0 1.5px var(--ring); }
.squad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px auto 0; max-width: 560px; }
.mate { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(8px); min-width: 0; }
.mate-pic { position: relative; margin-bottom: 6px; }
.mate-pic .avatar { box-shadow: 0 0 0 3px var(--ring), 0 0 24px rgba(0,0,0,.35); }
.mate-pic .crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.mate-name { font-weight: 700; font-size: 15px; }
.mate-pts { color: var(--text-2); font-size: 13px; }
.mate-pts b { color: var(--text); font-size: 16px; }
.h2h .hd.col { flex-direction: column; gap: 6px; padding-bottom: 6px; }
.h2h .hd.rh { gap: 8px; }
.fx-side .stack { display: flex; margin-bottom: 4px; }
.fx-side .stack .avatar { box-shadow: 0 0 0 1.5px var(--ring), 0 0 0 3px var(--card-solid); }
.fx-side .stack .avatar + .avatar { margin-left: -5px; }
.fx-side.r .stack { justify-content: flex-end; }
@media (max-width: 640px) {
  .squad { gap: 6px; }
  .mate { padding: 12px 4px 10px; }
  .mate-pic .avatar { --size: 56px !important; }
  .mate-name { font-size: 14px; }
  .crest.lg { width: 68px; height: 68px; }
  .h2h .hd.rh span { display: none; }
  .h2h .hd.rh { justify-content: center; }
  .h2h { grid-template-columns: 44px repeat(4, minmax(0, 1fr)); }
}

/* ---- league PIN on the public address ---------------------------------- */
.m-pin { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--text-2); font-size: 14px; }
.m-pin[hidden] { display: none; }
.m-pin input { width: 120px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06);
  color: var(--text); font: 700 18px var(--body); letter-spacing: .3em; text-align: center; }
.m-pin input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
