/* #45: one faint "stadium at night" background behind every screen (owner's decision 2026-11-12).
   The drawing is our own SVG (public/assets/stadium-night.svg). Loaded last, so it replaces the older
   per-screen raster backgrounds (stadium-cinematic, stadium-banner, legend-tunnel, miami-night). */
html{background:var(--fl-night)}
body{background:transparent!important}
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;
 background:
  linear-gradient(180deg,color-mix(in srgb,var(--fl-night) 52%,transparent) 0%,color-mix(in srgb,var(--fl-night) 74%,transparent) 45%,color-mix(in srgb,var(--fl-night) 90%,transparent) 100%),
  url('/assets/stadium-night.svg') center top/cover no-repeat,
  var(--fl-night)}
.shell{background:transparent!important}

/* Screens that painted their own photo-like backdrop now let the shared one show through. */
.game-page:before,.stadium-overlay,.offline-intro:before{background-image:none!important}
.results-page{background:transparent!important}

/* Hero cards keep a picture of their own: the same drawing, so the app has one look. */
.cinema-image,.app-home .cinema-image{background:linear-gradient(180deg,color-mix(in srgb,var(--fl-night) 20%,transparent),color-mix(in srgb,var(--fl-night) 70%,transparent)),url('/assets/stadium-night.svg') center 35%/cover no-repeat!important}
.app-home .story-banner:before{background:url('/assets/stadium-night.svg') center/cover no-repeat!important;opacity:.55}
.daily-page .daily-hero,.progress-banner{background-image:linear-gradient(0deg,color-mix(in srgb,var(--fl-night) 88%,transparent),color-mix(in srgb,var(--fl-night) 60%,transparent)),url('/assets/stadium-night.svg')!important;background-size:cover!important;background-position:center 40%!important}

@media (prefers-reduced-transparency:reduce){body::before{background:var(--fl-night)}}

/* #196: the category cards before a Classic match (online and Offline). Two columns on wider screens, one on a
   phone; the Greek tag is gold, the foreign tag neutral (green and red stay for checked answers).
   #282: eight compact cards (two lines, 48px), all on one phone screen; the description opens from «i». */
.cp-head h2{margin:0;font-family:var(--fl-display);font-style:italic;font-weight:800;font-size:1.3rem;line-height:1.1;text-transform:uppercase;color:var(--fl-cream)}
.cp-head p{margin:4px 0 0;font-size:.85rem;color:var(--fl-muted)}
.cp-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:6px}
@media (min-width:640px){.cp-grid{grid-template-columns:1fr 1fr}}
.cp-grid li{display:flex;position:relative;min-width:0}
.cp-card{flex:1;display:grid;align-content:center;justify-items:start;gap:1px;width:100%;min-width:0;min-height:48px;margin:0;padding:5px 44px 5px 12px;border:1px solid var(--fl-line);border-radius:14px;background:color-mix(in srgb,var(--fl-surface-2) 85%,transparent);color:var(--fl-cream);font:inherit;text-align:left;text-transform:none;letter-spacing:0;box-shadow:none}
button.cp-card{cursor:pointer}
/* #232: no card looks chosen before the tap. Hover only where a mouse can hover (a touch screen keeps :hover on the spot
   tapped last, which is where «Ξεκίνα» was); the keyboard ring is dashed cream, unlike the picked state. */
@media (hover:hover) and (pointer:fine){button.cp-card:not(:disabled):hover{border-color:color-mix(in srgb,var(--fl-cream) 45%,transparent)}}
button.cp-card:focus{outline:none}
button.cp-card:focus-visible{outline:2px dashed var(--fl-cream);outline-offset:2px}
button.cp-card:disabled{opacity:.45;cursor:default}
button.cp-card.picked,button.cp-card.picked:disabled{opacity:1;border-color:var(--fl-accent);background:color-mix(in srgb,var(--fl-accent) 16%,var(--fl-surface-2));box-shadow:0 0 0 2px var(--fl-accent)}
@media (prefers-reduced-motion:no-preference){button.cp-card.picked{animation:cp-picked .3s ease-out}}
@keyframes cp-picked{from{transform:scale(.97)}to{transform:none}}
.cp-card[aria-disabled="true"]{opacity:.85}
.cp-line{display:flex;align-items:center;gap:6px;max-width:100%;min-width:0;line-height:1.25}
.cp-card strong{font-size:.95rem;font-weight:700;line-height:1.25;color:var(--fl-cream);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cp-card small{font-size:.75rem;line-height:1.3;color:var(--fl-muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* #282: «i» sits on the card's right edge (a sibling, not inside the card button), a 44px target; its popover below. */
.cp-info{position:absolute;top:50%;right:2px;transform:translateY(-50%);width:44px;height:44px;margin:0;padding:0;border:0;background:none;color:var(--fl-muted);font:italic 700 .95rem/1 Georgia,serif;cursor:pointer;display:grid;place-items:center;box-shadow:none}
.cp-info::before{content:'';position:absolute;width:22px;height:22px;border-radius:50%;border:1px solid currentColor}
.cp-info[aria-expanded="true"],.cp-info:focus-visible{color:var(--fl-cream)}
.cp-info:focus{outline:none}.cp-info:focus-visible::before{outline:2px dashed var(--fl-cream);outline-offset:2px}
.cp-pop{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;padding:10px 12px;border:1px solid var(--fl-line);border-radius:12px;background:var(--fl-surface-2);color:var(--fl-cream);box-shadow:0 10px 30px rgba(0,0,0,.45);font-size:.8rem;line-height:1.4;text-align:left}
.cp-pop strong{display:block;font-size:.85rem;margin-bottom:4px}
.cp-pop p{margin:4px 0 0;color:var(--fl-muted)}
.cp-grid li.open{z-index:31}
/* the last row opens its popover upwards, so it never runs off the screen */
.cp-grid li:nth-last-child(-n+2).open .cp-pop{top:auto;bottom:calc(100% + 4px)}
@media (max-width:639px){.cp-grid li:nth-last-child(2).open .cp-pop{top:calc(100% + 4px);bottom:auto}}
.cp-tag{display:inline-block;flex:none;font-size:10px;line-height:1.4;font-weight:700;letter-spacing:.08em;padding:1px 6px;border-radius:999px;border:1px solid var(--fl-line);color:var(--fl-muted)}
/* #232: equal weight, two colours that are neither the accent («picked») nor the muted grey («disabled»). */
.cp-tag.greek{border-color:color-mix(in srgb,var(--fl-tag-greek) 60%,transparent);color:var(--fl-tag-greek)}
.cp-tag.foreign{border-color:color-mix(in srgb,var(--fl-tag-foreign) 60%,transparent);color:var(--fl-tag-foreign)}
@media (max-height:700px){.cp-head p:not(.starter-line){display:none}}
