/* Grafisk profil: mörk grönsvart botten, turkos accent. Hemmalaget har klubbens färg, bortalaget den ljusa färgen. */
:root {
  color-scheme: dark;
  --brand: #3cc8b4;
  --brand-light: #eef6f3;
  --bg: #050d0c;
  --glow: radial-gradient(90% 420px at 15% -60px, rgba(38, 140, 108, .55), transparent 75%),
          radial-gradient(70% 380px at 95% -60px, rgba(20, 105, 135, .5), transparent 75%);
  --card: #12201e;
  --card-grad: linear-gradient(165deg, #1a2f2b, var(--card) 60%);
  --card-2: #1a2c29;
  --card-edge: rgba(255, 255, 255, .07);
  --line: #25342f;
  --text: #f2f7f5;
  --text-2: #c3d0cc;
  --muted: #8fa09b;
  --header-text: var(--brand-light);
  --accent: var(--brand);     /* länkar och text */
  --accent-fill: var(--brand);
  --on-accent: #04211c;
  --home: var(--brand);
  --away: var(--brand-light);
  --home-text: var(--brand);
  --away-text: var(--brand-light);
  /* På matchsidan skrivs lagfärgerna över med klubbens färger (applyTeamColors i common.js) */
  --home-fill: #1f8f7f;
  --on-home: #ffffff;
  --away-fill: var(--brand-light);
  --win: #3fae5a;
  --win-ot: #86c98e;
  --loss-ot: #c95a61;         /* samma röda som förlust, fast ljusare */
  --loss: #AD2831;
  --chip: #25342f;
  --highlight: rgba(60, 200, 180, .14);
  --shadow: none;
  --radius: 20px;
}

/* Ljus variant – inte färdig. Den ljusa bortafärgen behöver en mörkare ersättare här. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f3f5;
  --glow: none;
  --card: #ffffff;
  --card-grad: none;
  --card-2: #f7f8fa;
  --card-edge: transparent;
  --line: #e4e6ea;
  --text: #111418;
  --text-2: #4d5560;
  --muted: #858c96;
  --accent: #0f8f7d;
  --chip: #eef0f3;
  --highlight: #e3f5f2;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: clip; /* de fasta radernas bakgrund går kant i kant */
}
/* Grönblått sken i toppen av sidan */
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 480px; z-index: -1; background: var(--glow); pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }

.site-header { color: var(--header-text); border-bottom: 1px solid var(--card-edge); }
.site-header .inner { max-width: 980px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 86px; width: auto; }
.site-header .sub { margin-left: auto; font-size: 12px; opacity: .7; }

main { max-width: 980px; margin: 0 auto; padding: 16px; }

.card { background: var(--card) var(--card-grad); border: 1px solid var(--card-edge); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--brand); }
.sub-card-head { margin: 22px -16px 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.card-head .hint { color: var(--muted); font-size: 12px; }
.card-body { padding: 8px 16px 16px; }

/* Växlare (segmented control) */
.seg { margin-left: auto; display: inline-flex; background: var(--chip); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 10px; white-space: nowrap; border-radius: 999px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.seg button.on { background: var(--accent-fill); color: var(--on-accent); font-weight: 600; box-shadow: var(--shadow); }

/* ---------- Startsida ---------- */
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filters select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.page-title { font-size: 22px; font-weight: 800; margin: 4px 0 12px; }

.day-head { padding: 12px 16px; font-weight: 700; font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.day-head .muted { color: var(--muted); font-weight: 500; }
.day-head .day-round { margin-left: auto; }

/* En rad per match: lagen på två rader till vänster, tid och arena längst till höger.
   Kolumnrubrikerna (.gr-cols) använder samma rutnät så att siffrorna hamnar under rätt rubrik. */
.game-row, .gr-cols { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; padding: 0 16px; }
.game-row { align-items: center; padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--line); }
.game-row:hover { background: var(--card-2); }
.gr-when { min-width: 0; line-height: 1.25; text-align: right; align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); padding-left: 16px; }
.gr-when b { font-size: 16px; font-weight: 800; color: var(--brand-light); font-variant-numeric: tabular-nums; }
.gr-when small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-when-h { text-align: right; }
.gl { display: grid; grid-template-columns: 24px minmax(0, 1fr) 112px 44px 44px; align-items: center; gap: 12px; padding: 1px 0; }
.gl img { width: 24px; height: 24px; }
.gl-name { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.gl-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-name small { color: var(--muted); font-size: 12px; flex: none; }
.nm-s { display: none; } /* kortnamn används bara på mobil */
.gl-n { text-align: right; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gl-n.best { color: var(--text); font-weight: 800; }
.gr-cols { padding-bottom: 4px; font-size: 11px; color: var(--muted); font-weight: 600; }
.gr-cols .gl { padding: 0; }
.gr-cols .gl-n { font-size: 11px; color: var(--muted); }
.chips { display: flex; gap: 3px; }
.chip { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; color: #fff; letter-spacing: -.2px; }
.chip.r-OTV { color: #10301a; }
.gr-cols .chips-h { white-space: nowrap; }
.dots { display: flex; gap: 3px; margin-left: auto; flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.r-V { background: var(--win); } .r-OTV { background: var(--win-ot); } .r-OTF { background: var(--loss-ot); } .r-F { background: var(--loss); }
.more-btn { display: block; width: 100%; padding: 12px; border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; border-top: 1px solid var(--line); }

/* ---------- Matchsida ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; margin-bottom: 10px; }
.match-hero { padding: 18px 16px 16px; text-align: center; background: radial-gradient(70% 100% at 50% 100%, rgba(60, 200, 180, .2), transparent 75%), var(--card) var(--card-grad); }
.match-hero .comp { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.hero-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.hero-team img { width: 92px; height: 92px; padding: 12px; border-radius: 50%; background: rgba(0, 0, 0, .3); border: 1px solid var(--card-edge); }
.hero-team .name { font-weight: 800; font-size: 17px; }
.hero-team .team-bar { width: 36px; height: 4px; border-radius: 2px; }
.hero-mid .clock { color: var(--brand-light); }
.hero-team .meta { color: var(--muted); font-size: 12px; }
.hero-mid .clock { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.hero-mid .date { color: var(--text-2); font-size: 13px; }
.hero-info { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid transparent; border-image: linear-gradient(to right, transparent, var(--brand), transparent) 1; color: var(--text-2); font-size: 13px; }
.hero-info span b { color: var(--text); font-weight: 600; }

/* Fast block i toppen: omgångsrad (--roundbar-h) och sektionsrad (--secnav-h) med fasta höjder */
:root { --roundbar-h: 56px; --secnav-h: 44px; }

.round-nav { position: sticky; top: 0; z-index: 10; height: var(--roundbar-h); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
/* Bakgrund kant i kant. Skenet ligger fast mot fönstret, så raden smälter ihop med sidans sken längst upp. */
.round-nav::before, .section-nav::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: -1; background-color: var(--bg); background-image: var(--glow); background-attachment: fixed; }
.rn-back { flex: none; display: flex; flex-direction: column; justify-content: center; height: 44px; padding: 0 8px; border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.rn-back small { color: var(--muted); font-size: 11px; font-weight: 400; }
.rn-back:hover { background: var(--card-2); color: var(--text); }
.rn-scroll { position: relative; flex: 1; min-width: 0; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.rn-scroll::-webkit-scrollbar, .sn-scroll::-webkit-scrollbar { display: none; }
.rcard { flex: none; width: 114px; height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 6px; border: 1px solid transparent; border-bottom-width: 2px; border-radius: 8px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rcard:hover { background: var(--card-2); }
.rcard[aria-current="page"] { background: var(--card); border-color: var(--line); border-bottom-color: var(--brand); color: var(--text); }
.rc-teams { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-t { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; line-height: 18px; }
.rc-t img { width: 18px; height: 18px; flex: none; }
.rc-when { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 1.2; }
.rc-when b { font-weight: 800; color: var(--text); }
.rc-day { font-size: 11px; color: var(--muted); }

.section-nav { position: sticky; top: var(--roundbar-h); z-index: 10; height: var(--secnav-h); margin-bottom: 6px; border-bottom: 1px solid transparent; display: flex; align-items: center; }
.section-nav.scrolled { border-bottom-color: var(--line); }
.sn-scroll { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; position: relative; }
.section-nav a { flex: none; display: flex; align-items: center; padding: 6px 12px; border: 1px solid transparent; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow); }
.section-nav a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--brand); }
.section-nav a[aria-current="true"] { background: var(--accent-fill); color: var(--on-accent); }
.section-nav .short { display: none; }
.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
.fade-r { -webkit-mask-image: linear-gradient(to left, transparent, #000 28px); mask-image: linear-gradient(to left, transparent, #000 28px); }
.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.rn-back:focus-visible, .rcard:focus-visible, .section-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.card[id] { scroll-margin-top: calc(var(--roundbar-h) + var(--secnav-h) + 8px); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radar-pick { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.radar-pick select { padding: 5px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.radar { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; overflow: visible; }
.form-cols { column-gap: 56px; position: relative; }
.form-cols::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.team-label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.team-label img { width: 22px; height: 22px; }
.team-label .sw { width: 10px; height: 10px; border-radius: 3px; }

.team-label .hint { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 2px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 10px; }
.legend i, .mini-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.mini-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Nyckeltal i rutor */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; margin-bottom: 10px; }
.tiles > div { background: var(--card-2); border-radius: 10px; padding: 8px 10px; }
.tiles b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tiles span { display: block; font-size: 11px; color: var(--muted); }
.tiles-h > div { background: var(--home-fill); color: var(--on-home); }
.tiles-h span { color: var(--on-home); opacity: .8; }
.tiles-a > div { background: var(--away-fill); color: #1a1410; }
.tiles-a span { color: #5c5243; }

/* Form */
.curve-wrap { width: 100%; overflow: hidden; }
.form-curve { display: block; }
.flist { border-top: 1px solid var(--line); }
.flist .frow:first-child .fdate { color: var(--text); font-weight: 700; }
.frow { display: grid; grid-template-columns: 48px 30px 18px 22px 1fr auto 20px; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.frow .pill { color: #fff; font-weight: 700; font-size: 11px; border-radius: 6px; text-align: center; padding: 3px 0; }
.frow .fha { color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; background: var(--chip); border-radius: 4px; }
.frow img { width: 22px; height: 22px; }
.frow .fopp { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .fscore { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.frow .fdate { color: var(--text-2); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.15; }
.frow .fdate small { display: block; color: var(--muted); font-size: 11px; }

/* Jämförelse */
.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 4px 0 6px; font-weight: 700; }
.cmp-head .r { justify-self: end; display: flex; gap: 6px; align-items: center; }
.cmp-head .l { display: flex; gap: 6px; align-items: center; }
.cmp-head img { width: 22px; height: 22px; }
.sbar-row { display: grid; grid-template-columns: 84px 1fr 84px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.subhead + .sbar-row { border-top: 0; }
.sbar-mid { min-width: 0; }
.sbar-lbl { text-align: center; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.sbar-lbl span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.sbar { display: flex; gap: 3px; height: 6px; }
.sbar span { border-radius: 999px; }
.sbar .h { background: var(--home); }
.sbar .a { background: var(--away); flex: 1; }
.sbar .dim { opacity: .3; }
.sbar-row.even .sbar span { opacity: .55; }
.sv { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-variant-numeric: tabular-nums; cursor: default; }
.sv.r { align-items: flex-end; }
.pillv { font-size: 18px; font-weight: 700; padding: 3px 10px; border-radius: 8px; color: var(--text-2); min-width: 58px; text-align: center; }
.pillv.best-h { background: var(--home-fill); color: var(--on-home); }
.pillv.best-a { background: var(--away-fill); color: #1a1410; }
.bdg { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.bdg.top { background: rgba(63, 174, 90, .18); color: #7fd394; }
.bdg.low { background: rgba(232, 103, 76, .18); color: #f19a85; }
.edge { display: grid; grid-template-columns: 84px 1fr 84px; gap: 12px; align-items: center; background: var(--card-2); border-radius: 12px; padding: 12px 14px; margin: 6px 0 4px; }
.edge-n { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.edge-n:last-child { text-align: right; }
.edge-lbl { text-align: center; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.cmp-note { color: var(--muted); font-size: 12px; margin-top: 10px; }

/* Mönster: mål per period */
.bf-head, .bf-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 6px; }
.bf-head { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.bf-head span:first-child { text-align: right; }
.bf-row { padding: 3px 0; }
.bf-l, .bf-r { display: flex; align-items: center; gap: 6px; }
.bf-l { justify-content: flex-end; }
.bf-l span, .bf-r span { height: 14px; border-radius: 4px; min-width: 2px; }
.bf-r span { background: var(--muted); opacity: .55; }
.bf-l b, .bf-r b { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 16px; }
.bf-l b { text-align: right; }
.bf-lbl { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--chip); border-radius: 6px; padding: 2px 0; }

/* Staplar upp/ner från en mittlinje */
.dcols { display: flex; gap: 4px; }
.dcol { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.dcol .up, .dcol .dn { height: 62px; display: flex; flex-direction: column; align-items: center; }
.dcol .up { justify-content: flex-end; border-bottom: 1px solid var(--text-2); }
.dcol .dn { justify-content: flex-start; }
.dcol span { width: 70%; max-width: 30px; border-radius: 4px 4px 0 0; }
.dcol .dn span { border-radius: 0 0 4px 4px; opacity: .8; }
.dcol b { font-size: 11px; font-variant-numeric: tabular-nums; padding: 1px 0; white-space: nowrap; }
.dcol .lb { font-size: 10px; color: var(--muted); text-align: center; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2h-cols .dcol .dn span { opacity: 1; }

/* Mönster: matchsituationer */
.tor-row { padding: 8px 0; border-top: 1px solid var(--line); }
.tor-lbl { text-align: center; font-size: 14px; margin-bottom: 6px; }
.tor-line { display: grid; grid-template-columns: 70px 1fr 1fr 70px; gap: 4px; align-items: center; }
.tor-track { height: 12px; background: var(--chip); display: flex; }
.tor-track.l { justify-content: flex-end; border-radius: 999px 0 0 999px; }
.tor-track.r { border-radius: 0 999px 999px 0; }
.tor-track.l span { background: var(--home); border-radius: 999px 0 0 999px; }
.tor-track.r span { background: var(--away); border-radius: 0 999px 999px 0; }
.tor-v { line-height: 1.1; font-variant-numeric: tabular-nums; }
.tor-v.r { text-align: right; }
.tor-v b { display: block; font-size: 17px; font-weight: 800; }
.tor-v small { font-size: 11px; color: var(--muted); }

/* Tidigare möten */
.h2h-summary { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; padding: 8px 0 14px; }
.h2h-summary .big { font-size: 28px; font-weight: 800; }
.h2h-summary .lbl { color: var(--muted); font-size: 12px; }
.h2h-bar { display: flex; height: 8px; gap: 2px; margin: 0 0 14px; }
.h2h-bar span { border-radius: 4px; }
.meet { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.meet .t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.meet .t.r { justify-content: flex-end; text-align: right; }
.meet .t img { width: 22px; height: 22px; flex: none; }
.meet .t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.meet .t span.lost { font-weight: 400; color: var(--text-2); }
.meet .sc { text-align: center; }
.meet .sc .s { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; background: var(--chip); padding: 2px 10px; border-radius: 8px; }
.hl-icon { display: inline-flex; width: 20px; height: 20px; color: var(--muted); vertical-align: middle; transition: color .15s; }
.hl-icon:hover { color: #ff3b30; }
.meet .sc .hl-icon { margin-left: 6px; }
.meet .sc .d { color: var(--muted); font-size: 11px; margin-top: 3px; white-space: nowrap; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--text-2); background: var(--chip); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.empty { color: var(--muted); padding: 12px 0; font-size: 14px; }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 10px 0 0; }

/* Spelare */
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ptable th { color: var(--muted); font-weight: 600; text-align: right; padding: 4px; font-size: 12px; }
.ptable td { text-align: right; padding: 6px 4px; border-top: 1px solid var(--line); }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable .pl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ptable .pl img, .ptable .pl .ph { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--chip); flex: none; }
.ptable .pl .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ptable .pl .pos { color: var(--muted); font-size: 11px; }
.ptable td.hl { font-weight: 700; }
.subhead { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 4px; }

/* Tabell */
.stable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.stable th { color: var(--muted); font-weight: 600; padding: 6px 4px; text-align: right; font-size: 12px; }
.stable td { padding: 7px 4px; text-align: right; border-top: 1px solid var(--line); }
.stable th:nth-child(1), .stable td:nth-child(1) { text-align: center; width: 30px; }
.stable th:nth-child(2), .stable td:nth-child(2) { text-align: left; }
.stable .tm { display: flex; align-items: center; gap: 8px; }
.stable .tm img { width: 20px; height: 20px; }
.stable tr.me td { background: var(--highlight); font-weight: 700; }
.stable tr.me td.pts { color: var(--brand-light); }
.stable .st-power { width: 58px; }
.stable .st-power .pr-gap { min-width: 40px; padding: 1px 4px; }
.stable a.pr-gap:hover { box-shadow: inset 0 0 0 1px currentColor; }
.stable td.rk { position: relative; }
.stable td.rk::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; }
.z-Playoff td.rk::before { background: var(--win); }
.z-Playin td.rk::before { background: #eda100; }
.z-QualificationDown td.rk::before { background: var(--loss); }
.stable tr.cut td { border-top: 2px solid var(--muted); }
.stable .pts { font-weight: 700; }
.zone-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 10px; }
.zone-legend i { display: inline-block; width: 3px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -2px; }

.placeholder { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }

.news-item { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.team-label + .news-item { border-top: 0; }
.news-item:hover .news-title { color: var(--accent); }
.news-thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--chip) center / 40% no-repeat; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-text { min-width: 0; }
.news-summary { margin-top: 3px; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.news-title { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

.yt-channel { margin-left: auto; font-weight: 500; }
/* Desktop: mellanstor bild med rubriken bredvid. När klippet spelas växer spelaren till hela kolumnen. */
.yt-main { display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: start; padding: 4px 0 10px; }
.yt-main.playing { grid-template-columns: 1fr; gap: 8px; }
.yt-main .news-meta { margin-top: 4px; }
.yt-player { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.yt-player iframe, .yt-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster { padding: 0; background: #000; cursor: pointer; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 34px; transform: translate(-50%, -50%); border-radius: 10px; background: rgba(0, 0, 0, .7); transition: background .15s; }
.yt-play::after { content: ""; position: absolute; left: 19px; top: 10px; border-left: 13px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.yt-poster:hover .yt-play { background: #e00; }
.yt-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; background: var(--card-2); color: var(--text); font-size: 13px; line-height: 1.4; text-align: center; overflow: auto; }
.yt-gate p { margin: 0; max-width: 420px; }
.yt-gate a { color: var(--accent); text-decoration: underline; }
.yt-gate-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.yt-accept { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; }

/* Kakor och integritet */
.legal { padding: 4px 20px 20px; line-height: 1.6; }
.legal h2 { margin: 22px 0 6px; font-size: 16px; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal a, footer a, .cookie-link { color: var(--accent); text-decoration: underline; }
.cookie-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.disclaimer { max-width: 760px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10.5px; line-height: 1.45; }

/* Samtyckesruta: Neka och Godkänn ser likadana ut så att båda valen är lika enkla */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .35); }
.cookie-inner { max-width: 980px; margin: 0 auto; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.cookie-inner p { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.cookie-inner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { flex: 0 1 auto; display: flex; gap: 8px; }
.cookie-actions button { min-width: 110px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent-fill); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; }
.cookie-actions button:focus-visible, .cookie-link:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 480px) { .cookie-actions { flex: 1 1 100%; } .cookie-actions button { flex: 1; } }
.yt-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 8px 0; margin: 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.yt-item .news-title, .yt-item .news-meta { display: block; }
.yt-item .news-title { display: -webkit-box; }
.yt-item:hover .news-title { color: var(--accent); }

/* ---------- Huvudmeny ---------- */
/* Aktuell sida är en ifylld turkos kapsel */
.site-header { position: relative; z-index: 20; }
.site-header .inner { padding: 24px 16px; }
.main-menu { margin-left: auto; align-self: center; display: flex; gap: 4px; }
.menu-item { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--header-text); font-size: 14px; font-weight: 600; letter-spacing: .2px; cursor: pointer; transition: background .15s; }
.menu-item:hover, .menu-item[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.menu-item[aria-current="page"], .menu-item[data-current="true"] { background: var(--accent-fill); color: var(--on-accent); }
.menu-item:focus-visible, .team-link:focus-visible { outline: 2px solid var(--brand-light); outline-offset: -2px; }
.menu-caret { width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s, margin-top .15s; }
[aria-expanded="true"] > .menu-caret { margin-top: 3px; transform: rotate(225deg); }

/* Lagen som rutor i menyn. Flex gör att en ofull sista rad hamnar i mitten. */
.team-menu { --tile: calc((100% - 6 * 6px) / 7); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; color: var(--text); }
.team-menu { position: absolute; left: 0; right: 0; top: calc(100% + 1px); padding: 16px max(16px, calc((100% - 980px) / 2 + 16px)) 18px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); clip-path: inset(0 0 -100vmax 0); animation: menu-in .16s ease-out; }
.team-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .team-menu { animation: none; } }
.team-link { flex: 0 0 var(--tile); min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 10px; background: var(--card-2); font-size: 12.5px; font-weight: 600; text-align: center; color: var(--text-2); transition: background .15s, color .15s; }
.team-link img { width: 40px; height: 40px; flex: none; object-fit: contain; transition: transform .15s; }
.team-link span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-link:hover { background: var(--chip); color: var(--text); }
.team-link:hover img { transform: scale(1.08); }
.team-link[aria-current="page"] { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--brand-light); }

/* ---------- Lagsida ---------- */
.team-page { --roundbar-h: 0px; }
.team-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-bottom: 12px; }
.team-strip a { padding: 5px; border-radius: 10px; border: 1px solid transparent; }
.team-strip a:hover { background: var(--card-2); }
.team-strip a[aria-current="page"] { background: var(--card); border-color: var(--line); border-bottom-color: var(--home); }
.team-strip a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.team-strip img { width: 30px; height: 30px; }
.hero-link { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-link:hover .name { color: var(--accent); }
.stable a.tm:hover { color: var(--accent); }

.team-hero { padding: 18px 16px 16px; border-top: 4px solid var(--home); }
.th-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.th-top > img { width: 84px; height: 84px; flex: none; }
.th-name { min-width: 0; }
.th-name h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.th-meta { color: var(--text-2); font-size: 13px; margin: 3px 0 7px; }
.th-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 12px; }

.trow { grid-template-columns: 62px 30px 18px 22px 1fr auto 20px; position: relative; }
a.trow:hover, .trow:hover { background: var(--card-2); }
.row-link { position: absolute; inset: 0; }
.trow .hl-icon { position: relative; z-index: 1; }
.row-arrow { justify-content: center; font-size: 18px; line-height: 20px; }
.fday { color: var(--text-2); font-size: 11px; font-weight: 700; text-align: center; background: var(--chip); border-radius: 6px; padding: 3px 0; }
.team-page .flist .frow:first-child .fdate { font-weight: 400; color: var(--text-2); }

.trend-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.trend-head .subhead { margin: 0; }
.trend-table td:last-child, .trend-table th:last-child { width: 86px; white-space: nowrap; }
.tr-up { color: #7fd394; font-weight: 700; }
.tr-down { color: #f19a85; font-weight: 700; }
.tr-same { color: var(--muted); }

.stat-row, .sit-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 54px 44px; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.sit-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 54px 64px; }
.subhead + .stat-row, .subhead + .sit-row { border-top: 0; }
.stat-head { font-size: 15px; color: var(--text); font-weight: 800; margin: 22px 0 6px; }
.stat-head:first-child { margin-top: 4px; }
.stat-lbl, .sit-lbl { font-size: 14px; }
.stat-lbl small { display: block; font-size: 11px; color: var(--muted); }
.stat-bar { display: block; height: 8px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.stat-bar span { display: block; height: 100%; background: var(--home); border-radius: 999px; }
.stat-val { text-align: right; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-rank { text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-rank.good { color: #7fd394; font-weight: 700; }
.stat-rank.bad { color: #f19a85; font-weight: 700; }

.tile-nm { color: var(--text-2) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-btn { border: 0; background: none; padding: 0; color: inherit; font-weight: inherit; font-size: inherit; cursor: pointer; }
.th-btn:hover { color: var(--text); }
.th-btn.on { color: var(--text); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--home); }
.opp-table .tm { display: flex; align-items: center; gap: 8px; }
.opp-table .tm img { width: 20px; height: 20px; }
.opp-table a.tm:hover { color: var(--accent); }

/* ---------- Power ranking ---------- */
.menu-item .short { display: none; }
.subhead a { margin-left: 8px; color: var(--accent); font-weight: 600; text-transform: none; letter-spacing: 0; }
.meta-link { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.meta-link:hover, .note-link:hover { color: var(--text); }
.note-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
.tiles b span { display: inline; font-size: inherit; }
.tiles span.tr-up { color: #7fd394; }
.tiles span.tr-down { color: #f19a85; }
.tiles span.tr-same { color: var(--muted); }

.pr-intro { margin: -6px 0 14px; color: var(--text-2); max-width: 680px; }
.pr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pr-tile { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.pr-tile:hover { background: var(--card-2); }
.pr-tile img { width: 40px; height: 40px; flex: none; }
.pr-tile span { min-width: 0; }
.pr-tile b { display: block; font-size: 16px; font-weight: 800; }
.pr-tile small { display: block; font-size: 12px; color: var(--muted); }
.pr-tile small:first-of-type { color: var(--text-2); font-weight: 600; }
.prtable th, .prtable td { white-space: nowrap; }
.prtable td.rk { font-weight: 800; }
.prtable .tag { margin-left: 2px; }
.prtable .short { display: none; }
.prtable th:nth-child(n+3), .prtable td:nth-child(n+3) { text-align: center; }
.pr-row { cursor: pointer; }
.pr-row:hover td { background: var(--card-2); }
.pr-row.open td { background: var(--card-2); }
.pr-bar { width: 100%; min-width: 80px; max-width: 150px; margin: 0 auto; }
.pr-bar span { background: var(--brand-light); }
.rk-pill { display: inline-block; min-width: 38px; padding: 2px 6px; border-radius: 6px; background: var(--chip); color: var(--text-2); font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rk-pill.good { background: rgba(63, 174, 90, .2); color: #7fd394; }
.rk-pill.bad { background: rgba(232, 103, 76, .2); color: #f19a85; }
.pr-table { color: var(--text-2); }
.pr-gap { display: inline-block; min-width: 42px; padding: 2px 6px; border-radius: 6px; background: var(--chip); color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.35; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-gap.up { background: rgba(63, 174, 90, .2); color: #7fd394; }
.pr-gap.down { background: rgba(232, 103, 76, .2); color: #f19a85; }
.pr-exp { width: 28px; padding-left: 0 !important; padding-right: 0 !important; }
.pr-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.pr-row:hover .pr-toggle { color: var(--text); }
.pr-toggle:focus-visible { outline: 2px solid var(--brand-light); outline-offset: -2px; border-radius: 6px; }
.prtable tr.pr-detail td, .prtable tr.pr-detail td:nth-child(1) { width: auto; padding: 4px 8px 14px; border-top: 0; background: var(--card-2); text-align: left; white-space: normal; }
.pr-detail[hidden] { display: none; }
.pr-detail-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 8px; }
.pr-detail-tiles > div { background: var(--card); }
.pr-trend { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; }
.pr-spark { display: block; max-width: 100%; }
.pr-team-link { display: inline-block; margin-top: 6px; font-size: 13px; }
.pr-legend { align-items: center; gap: 8px 16px; margin-top: 14px; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pr-more { margin-top: 12px; }
.pr-more summary { padding: 8px 0; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.pr-more summary:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; border-radius: 4px; }
.pr-method p { margin: 0 0 10px; color: var(--text-2); max-width: 720px; }
.pr-method p b { color: var(--text); }
.pr-method p.cmp-note { color: var(--muted); margin: 12px 0 0; }

.tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--text); color: var(--card); font-size: 12px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; transition: opacity .1s; }
.tooltip.show { opacity: 1; }

footer { max-width: 980px; margin: 0 auto; padding: 8px 16px 30px; color: var(--muted); font-size: 12px; }

.hide-sm { }
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
  .form-cols::after { display: none; }
  .hide-sm { display: none; }
  .yt-main { grid-template-columns: 1fr; gap: 8px; }
  .yt-play { width: 64px; height: 44px; border-radius: 12px; }
  .yt-play::after { left: 26px; top: 13px; border-left-width: 16px; border-top-width: 9px; border-bottom-width: 9px; }
  .hero-team img { width: 72px; height: 72px; padding: 10px; }
  .hero-team .name { font-size: 15px; }
  .hero-mid .clock { font-size: 24px; }
  .day-head .day-round { margin-left: 0; width: 100%; }
  /* Mobil: lag och form till vänster, tid och arena längst till höger, inga målkolumner */
  .game-row, .gr-cols { grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; padding-left: 12px; padding-right: 12px; }
  .gr-when { padding-left: 10px; }
  .gr-when b { font-size: 15px; }
  .gr-when small { white-space: normal; font-size: 11px; line-height: 1.2; margin-top: 2px; }
  .gl { grid-template-columns: 22px minmax(0, 1fr) 112px; gap: 6px; }
  .gl .gl-n { display: none; }
  .gl img { width: 22px; height: 22px; }
  .gl-name { flex-direction: column; gap: 0; line-height: 1.2; }
  .gl-name b { font-size: 14px; max-width: 100%; }
  .nm-l { display: none; }
  .nm-s { display: inline; }
  .gl-name small { font-size: 11px; }
  .gl-n { font-size: 13px; }
  .seg { margin-left: 0; }
  .card-head .seg { width: 100%; justify-content: stretch; }
  .card-head .seg button { flex: 1; }
  /* Fast block: båda raderna scrollar i sidled, klickytor minst 40 px */
  :root { --roundbar-h: 56px; --secnav-h: 48px; }
  .rn-back { min-width: 40px; align-items: center; padding: 0 6px; }
  .rn-text { display: none; }
  .section-nav a { height: 40px; padding: 0 12px; font-size: 12.5px; }
  .section-nav .long { display: none; }
  .section-nav .short { display: inline; }
  .sbar-row, .edge { grid-template-columns: 64px 1fr 64px; gap: 8px; }
  .pillv { font-size: 16px; min-width: 52px; padding: 3px 6px; }
  .sbar-lbl { font-size: 13px; }
  .tor-line { grid-template-columns: 58px 1fr 1fr 58px; }
  .site-header .inner { padding: 18px 8px 18px 12px; }
  .menu-item { padding: 0 10px; }
  .team-menu { --tile: calc((100% - 3 * 6px) / 4); }
  .team-menu { padding: 12px; }
  .team-link { padding: 10px 2px 8px; font-size: 12px; }
  .team-link img { width: 34px; height: 34px; }
  .team-strip { justify-content: flex-start; }
  .team-strip img { width: 28px; height: 28px; }
  .th-top > img { width: 64px; height: 64px; }
  .th-name h1 { font-size: 21px; }
  .th-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row, .sit-row { grid-template-columns: minmax(0, 1fr) 54px 56px; gap: 8px; }
  .stat-row .stat-bar, .sit-row .stat-bar { grid-column: 1 / -1; grid-row: 2; }
  .ptable .pl .nm { max-width: 118px; }
  .menu-item .long { display: none; }
  .menu-item .short { display: inline; }
  .brand img { width: min(380px, calc(100vw - 211px)); height: auto; } /* så stor som menyn tillåter */
  .main-menu { gap: 0; }
  .menu-item { height: 34px; padding: 0 8px; gap: 6px; font-size: 13px; }
  .pr-tiles { grid-template-columns: 1fr; }
  .pr-tile { padding: 10px 12px; }
  .pr-tile img { width: 32px; height: 32px; }
  .prtable .long { display: none; }
  .prtable .short { display: inline; }
  .prtable { font-size: 12.5px; }
  .prtable th, .prtable td { padding-left: 2px; padding-right: 2px; }
  .prtable .tm { gap: 5px; }
  .rk-pill { min-width: 32px; padding: 2px 3px; font-size: 11.5px; }
  .pr-gap { min-width: 34px; padding: 2px 3px; font-size: 11.5px; }
  .pr-exp { width: 22px; }
  .pr-toggle { width: 22px; }
  .pr-detail-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Smala mobiler: logon får en egen rad ovanför menyn så att den kan vara stor */
@media (max-width: 480px) {
  .site-header .inner { flex-wrap: wrap; justify-content: center; gap: 14px; padding: 24px 8px 10px; }
  .brand img { width: min(340px, calc(100vw - 48px)); }
  .main-menu { width: 100%; margin-left: 0; justify-content: center; }
}

/* Startsidan i mobil: logon scrollar bort, menyraden stannar kvar i toppen.
   display: contents gör att menyn inte begränsas av sidhuvudets höjd när den fastnar. */
@media (max-width: 720px) {
  .start-page .site-header, .start-page .site-header .inner { display: contents; }
  .start-page .brand { padding: 24px 24px 14px; }
  .start-page .brand img { width: min(340px, calc(100vw - 48px)); margin: 0 auto; }
  .start-page .main-menu { position: sticky; top: 0; z-index: 20; width: 100%; margin-left: 0; padding: 6px 8px; justify-content: center; background-color: var(--bg); background-image: var(--glow); background-attachment: fixed; border-bottom: 1px solid var(--card-edge); }
}
