/* Page blocks: every page sits on its own rounded block in one of three soft tones, so the deck
   reads as a run of cards. Light: grey, pale blue, soft pink. Dark: deep versions of the same.
   On a tinted page the cards inside use the surface colour (white, or deep navy in dark) so they
   stay distinct. 01 (video), 03 (the blue jelly) and 10 (dark) keep their own. */
:root { --pg-grey: #f2f4f8; --pg-blue: #e8eeff; --pg-pink: #fdecf2; }
:root[data-theme='dark'] { --pg-grey: #161e2e; --pg-blue: #111a34; --pg-pink: #241622; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --pg-grey: #161e2e; --pg-blue: #111a34; --pg-pink: #241622; } }

#problem.block { background: var(--pg-grey); }
#engine > .engine__stick { background: var(--pg-blue); }
#formats.block { background: var(--pg-pink); }
#features > .feat__stick { background: var(--pg-grey); }
#ugc.block { background: var(--pg-blue); }
#season.block { background: var(--pg-pink); }
#pay.block { background: var(--pg-grey); }
#fandata.block { background: var(--pg-blue); }
#delivery > .dl__stick { background: var(--pg-pink); }
#demo.closing { background: var(--pg-grey); }
#live.block { background: var(--pg-blue); }

/* Cards on a tinted page take the surface colour. */
#formats .game, #pay .pay__step, #fandata .rpt__card { background: var(--surface); }
#season .ssn__summer { fill: var(--surface); }
#pay .pay__token { box-shadow: 0 0 0 4px var(--pg-grey); }


/* 16: the live matchday (matchday.css) on the blue block, its heading row centred over the board.
   Sized to fit one screen: shorter rows, and an opened match scrolls inside the card. */
#live .feat__idx { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin: 0 0 4px; font-family: var(--body); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--slate); }
#live .mdx { --row-h: 60px; }
#live .mdx__hero { gap: 10px; margin-bottom: 20px; }
#live .mdx__head { font-size: clamp(34px, 4vw, 58px); }
@media (min-width: 900px) {
  #live .mdx__rows { max-height: calc(6 * 61px); overflow-y: auto; scrollbar-width: thin; }
}
/* 06 League of Brands, the clean board: no line under the title, no caption bar, and each row only
   the teams, crests and score (status, flags, members and likes stay on the standalone page). */
#live .mdx__hero { margin-bottom: 28px; }
#live .mdx__cap, #live .mdx__t small, #live .mdx__t b img { display: none; }
#live .mdx__st { visibility: hidden; }
#live .mdx__rw { grid-template-columns: 40px minmax(0, 1fr) 40px; }
#live .mdx__t b { font-size: 16px; }
#live .mdx__sc { font-size: 22px; }
#live .mdx__xi { padding-left: 40px; }
@media (max-width: 760px) {
  #live .mdx__rw { grid-template-columns: 8px minmax(0, 1fr) 16px; }
  #live .mdx__t b { font-size: 13px; }
  #live .mdx__xi { padding-left: 10px; }
}
