/* Sport games pages (/products/sport-games and its sub-pages; partial sg-live-assets). Builds on subpages.css (--sp-*),
   tournaments.css (.tr-card, .tr-tiles, .tr-tl, .tr-eyebrow, .tr-more: the pages load tr-assets too). The live Vibe
   Studio widgets are another file (sport-games-live.css). Components:
   .sg-fix      a matchday of the Nova League: fixtures with crests, kick-off chips and the player's own picks
   .sg-seasons  four seasons on one year line; each next season opens before the previous one ends
   .sg-led      a MatchX prediction on a dark LED scoreboard, with the points rule
   .sg-q        a Sport Quiz question with "the crowd says" bars
   .sg-res      a resolved matchday: final score, the player's pick and the points */

.sg-fix li, .sg-seasons li, .sg-q li, .sg-res li { margin: 0; }
.sg-fix, .sg-seasons, .sg-q, .sg-res { width: 100%; max-width: 30rem; margin: 0 auto; border: 1px solid var(--sp-line); border-radius: 1rem; background: #fff; box-shadow: 0 1.5rem 3rem rgba(24, 27, 43, .14); overflow: hidden; font-family: "Lexend Deca", sans-serif; color: var(--sp-ink); text-align: left; }
.sp-hero_visual .sg-fix, .sp-hero_visual .sg-led, .sp-hero_visual .sg-q { box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .35); }
.sg-crest { width: 1.75rem; height: 1.75rem; flex: none; object-fit: contain; }

/* ---------------------------------------------------------------- matchday fixtures */
.sg-fix_list { margin: 0; padding: .375rem 0; list-style: none; }
.sg-fix_row { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: .625rem; padding: .5625rem 1.125rem; font-size: .875rem; }
.sg-fix_row + .sg-fix_row { border-top: 1px dashed var(--sp-line); }
.sg-fix_team { display: flex; align-items: center; gap: .5rem; min-width: 0; font-weight: 600; }
.sg-fix_team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-fix_team.is-away { flex-direction: row-reverse; text-align: right; }
.sg-fix_ko { padding: .1875rem .5rem; background: var(--sp-ink); color: #c6ff3d; font-size: .75rem; font-weight: 700; transform: skewX(-8deg); white-space: nowrap; }
.sg-fix_ko.is-ft { background: #e9ecf3; color: var(--sp-ink); }
.sg-fix_pick { min-width: 3.25rem; padding: .1875rem .4375rem; border: 1px solid var(--sp-line); border-radius: .375rem; color: var(--sp-muted); font-size: .75rem; font-weight: 600; text-align: center; white-space: nowrap; }
.sg-fix_pick.is-set { border-color: #f5a623; background: rgba(245, 166, 35, .12); color: #9a5b00; }
.sg-fix_foot { display: flex; justify-content: space-between; gap: .75rem; padding: .625rem 1.125rem; border-top: 1px solid var(--sp-line); background: var(--sp-soft); color: var(--sp-muted); font-size: .8125rem; }
.sg-fix_foot b { color: var(--sp-ink); }

/* ---------------------------------------------------------------- seasons on a year line */
.sg-seasons { max-width: 34rem; }
.sg-seasons_body { position: relative; padding: 2.125rem 1.125rem 1.25rem; }
.sg-seasons_months { display: grid; grid-template-columns: repeat(12, 1fr); margin: 0 0 .75rem; color: var(--sp-muted); font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sg-seasons_list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.sg-seasons_row { position: relative; height: 2.25rem; }
.sg-seasons_bar { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: .375rem; padding: 0 .625rem; border-radius: .5rem; color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; overflow: hidden; background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(255, 255, 255, .28) calc(100% / 12 - 1px) calc(100% / 12)); }
.sg-seasons_bar small { font-weight: 500; opacity: .85; }
.sg-seasons_bar.is-1 { left: 0; width: 26%; background-color: #1d4ed8; }
.sg-seasons_bar.is-2 { left: 21%; width: 26%; background-color: #16a34a; }
.sg-seasons_bar.is-3 { left: 44%; width: 26%; background-color: #f97316; }
.sg-seasons_bar.is-4 { left: 67%; width: 26%; background-color: #8b5cf6; }
/* today is before Season 1's first matchday: the marker stands at the left edge, behind the bars */
.sg-seasons_now { position: absolute; z-index: 0; top: 1.875rem; bottom: 1rem; left: calc(1.125rem - .375rem); width: 2px; background: #f15851; }
.sg-seasons_now::before { content: "Today"; position: absolute; top: -1.375rem; left: -.125rem; padding: .0625rem .375rem; border-radius: .25rem; background: #f15851; color: #fff; font-size: .625rem; font-weight: 700; }
.sg-seasons_list { position: relative; z-index: 1; }
.sg-seasons_note { margin: 0; padding: .75rem 1.125rem; border-top: 1px solid var(--sp-line); background: var(--sp-soft); color: var(--sp-muted); font-size: .8125rem; line-height: 1.45; }
.sg-seasons_note b { color: var(--sp-ink); }

/* ---------------------------------------------------------------- MatchX LED scoreboard */
.sg-led { width: 100%; max-width: 30rem; margin: 0 auto; border-radius: 1rem; background: #04130b; color: #e9f5ec; overflow: hidden; font-family: "Lexend Deca", sans-serif; text-align: left; box-shadow: 0 1.5rem 3rem rgba(4, 19, 11, .35); }
.sg-led_top { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1.125rem; border-bottom: 1px solid #1f3a2a; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8fb39b; }
.sg-led_top b { color: #2bd46b; }
.sg-led_match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; padding: 1.125rem; }
.sg-led_team { display: flex; flex-direction: column; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 600; text-align: center; }
.sg-led_team .sg-crest { width: 3rem; height: 3rem; }
.sg-led_score { display: flex; align-items: center; gap: .375rem; padding: .5rem .75rem; border: 1px solid #1f3a2a; border-radius: .625rem; background: #020604 radial-gradient(rgba(255, 176, 32, .08) 1px, transparent 1.5px) 0 0 / 5px 5px; }
.sg-led_d { display: flex; flex-direction: column; align-items: center; }
.sg-led_d i { font-style: normal; color: #4f7a5f; font-size: .625rem; line-height: 1; }
.sg-led_d b { font-family: "Courier New", monospace; font-size: 2.75rem; line-height: 1.1; font-weight: 700; color: #ffb020; text-shadow: 0 0 .75rem rgba(255, 176, 32, .55); }
.sg-led_colon { color: #ffb020; font-size: 2rem; font-weight: 700; opacity: .8; }
.sg-led_rule { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #1f3a2a; }
.sg-led_rule span { padding: .625rem .5rem; text-align: center; font-size: .75rem; color: #8fb39b; }
.sg-led_rule span + span { border-left: 1px solid #1f3a2a; }
.sg-led_rule b { display: block; font-size: 1.125rem; color: #fff; }
.sg-led_rule .is-gold b { color: #ffb020; }
.sg-led_rule .is-silver b { color: #c9d6cf; }

/* ---------------------------------------------------------------- Quiz card with the crowd */
.sg-q { border: 3px solid #151018; border-radius: 1rem; box-shadow: 6px 6px 0 #151018; background: #fff8ef; }
.sp-hero_visual .sg-q { box-shadow: 6px 6px 0 #ff4d6d; }
.sg-q_head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1.125rem; border-bottom: 3px solid #151018; background: #ff4d6d; color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sg-q_text { margin: 0; padding: 1rem 1.125rem .25rem; font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.sg-q_match { display: flex; align-items: center; gap: .5rem; padding: 0 1.125rem .75rem; color: #6b6170; font-size: .8125rem; }
.sg-q_match .sg-crest { width: 1.375rem; height: 1.375rem; }
.sg-q_list { margin: 0; padding: 0 1.125rem 1rem; list-style: none; display: grid; gap: .5rem; }
.sg-q_opt { position: relative; display: flex; justify-content: space-between; gap: .75rem; padding: .5625rem .75rem; border: 2px solid #151018; border-radius: .625rem; background: #fff; font-size: .875rem; font-weight: 700; overflow: hidden; }
.sg-q_opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: rgba(108, 76, 255, .14); }
.sg-q_opt span, .sg-q_opt b { position: relative; }
.sg-q_opt b { color: #6c4cff; }
.sg-q_opt.is-you { border-color: #6c4cff; box-shadow: 0 0 0 2px rgba(108, 76, 255, .25); }
.sg-q_opt.is-you span::after { content: " \00b7  your call"; color: #6c4cff; font-weight: 600; font-size: .75rem; }
.sg-q_foot { padding: .625rem 1.125rem; border-top: 3px solid #151018; background: #fff; font-size: .8125rem; color: #6b6170; }
.sg-q_foot b { color: #151018; }

/* ---------------------------------------------------------------- a resolved matchday */
.sg-res_list { margin: 0; padding: .375rem 0; list-style: none; }
.sg-res_row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .75rem; padding: .5625rem 1.125rem; font-size: .875rem; }
.sg-res_row + .sg-res_row { border-top: 1px dashed var(--sp-line); }
.sg-res_m { min-width: 0; }
.sg-res_m b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-res_m span { color: var(--sp-muted); font-size: .75rem; }
.sg-res_ft { font-family: "Courier New", monospace; font-weight: 700; font-size: 1rem; }
.sg-res_b { min-width: 4.75rem; padding: .1875rem .5rem; border-radius: 1rem; font-size: .6875rem; font-weight: 700; text-align: center; letter-spacing: .03em; }
.sg-res_b.is-full { background: rgba(245, 166, 35, .16); color: #9a5b00; }
.sg-res_b.is-part { background: #e9ecf3; color: #4a5068; }
.sg-res_b.is-miss { background: #f4f5f8; color: #9aa0b4; }
.sg-res_foot { display: flex; justify-content: space-between; padding: .625rem 1.125rem; border-top: 1px solid var(--sp-line); background: var(--sp-soft); font-size: .8125rem; color: var(--sp-muted); }
.sg-res_foot b { color: var(--sp-ink); }

@media (max-width: 479px) {
  .sg-fix_row { grid-template-columns: 1fr auto 1fr; }
  .sg-fix_pick { grid-column: 1 / -1; justify-self: center; }
  .sg-led_d b { font-size: 2.25rem; }
  .sg-seasons_bar small { display: none; }
}
