/* Design E, Monday Nights. Builds on /styles.css (The Story) and adds the matchday, season, squad and kit sections. */

.e-label { font-weight: 700; color: var(--flamingo-soft); margin-bottom: 14px; }
.e-h3 {
  font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: .95; letter-spacing: -.02em;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.e-hint { display: none; font-weight: 700; }

/* ---------- Matchday ---------- */
.e-matchday {
  position: relative;
  padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(64px, 8vw, 110px);
  background: var(--night);
}
.e-matchday__grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
@media (max-width: 900px) { .e-matchday__grid { grid-template-columns: 1fr; } }

.e-clock { display: flex; align-items: flex-start; gap: clamp(6px, 1.4vw, 18px); font-variant-numeric: tabular-nums; }
.e-clock div { display: grid; }
.e-clock b {
  font-stretch: 125%; font-weight: 900; font-style: italic;
  font-size: clamp(2.6rem, 5.9vw, 6.8rem); line-height: .82; letter-spacing: -.05em;
}
.e-clock span { font-size: .85rem; font-weight: 600; opacity: .7; margin-top: 10px; }
.e-clock i { font-style: normal; font-weight: 300; font-size: clamp(2rem, 4.6vw, 5.4rem); line-height: .82; color: var(--flamingo); }
.e-clock.is-live b { color: var(--flamingo); }
@media (max-width: 900px) { .e-clock b { font-size: clamp(2.4rem, 12vw, 5.6rem); } .e-clock i { font-size: clamp(2rem, 9vw, 4.6rem); } }

.e-fixture {
  margin-top: clamp(26px, 4vw, 44px);
  font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: .98; letter-spacing: -.02em;
}
.e-v { font-weight: 400; opacity: .55; }
.e-when { margin-top: 10px; font-weight: 500; font-size: 1.1rem; }
.e-actions { margin-top: 24px; }

.e-court svg { width: 100%; height: auto; display: block; overflow: visible; }
.e-court .turf { fill: var(--court); }
.e-court .glass { fill: rgba(157, 180, 255, .12); stroke: rgba(246, 244, 255, .5); stroke-width: 1.2; }
.e-court .mesh { fill: none; stroke: rgba(246, 244, 255, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.e-court .white { fill: none; stroke: #fff; stroke-width: 2; }
.e-court .net { fill: rgba(255, 255, 255, .3); stroke: #fff; stroke-width: 1.4; }
.e-court .ln { fill: none; stroke: var(--flamingo); stroke-width: 2.6; stroke-linejoin: round; }
.e-court .tag { font: 700 13px var(--sans); fill: var(--line); }
.e-court .venue { font: italic 900 15px var(--sans); font-stretch: 125%; fill: var(--flamingo); text-transform: uppercase; }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.e-court.is-drawn .draw { animation: e-draw 1.8s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes e-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw { stroke-dashoffset: 0 !important; animation: none !important; } }

.e-monday {
  margin-top: clamp(56px, 8vw, 100px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px clamp(24px, 4vw, 64px);
  border-top: 6px solid var(--line); padding-top: 22px;
}
.e-monday__h { font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; }
.e-monday > p { max-width: 58ch; font-size: 1.1rem; }
.e-slots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 18px; border: 2px solid var(--line); }
.e-slots li { padding: 16px; display: grid; gap: 4px; }
.e-slots li + li { border-left: 2px solid var(--line); }
.e-slots b { font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.15rem; color: var(--flamingo); }
.e-slots span { font-size: .92rem; opacity: .8; }
@media (max-width: 760px) {
  .e-monday { grid-template-columns: 1fr; }
  .e-slots { grid-template-columns: 1fr 1fr; }
  .e-slots li:nth-child(3) { border-left: 0; }
  .e-slots li:nth-child(n+3) { border-top: 2px solid var(--line); }
}

/* ---------- Slide sections (stacked by default, pinned sideways on wide screens) ---------- */
.e-track { display: flex; flex-direction: column; }
.e-intro {
  padding: clamp(80px, 11vw, 140px) var(--gutter) clamp(28px, 4vw, 48px);
  display: grid; gap: 20px; align-content: center;
}
.e-intro > p:not(.e-hint) { max-width: 38ch; font-size: 1.15rem; font-weight: 500; }
.e-slide.is-horizontal { height: 100vh; height: 100svh; overflow: hidden; }
.e-slide.is-horizontal .e-track { flex-direction: row; align-items: stretch; height: 100%; width: max-content; }
.e-slide.is-horizontal .e-intro { width: min(46vw, 640px); padding-top: var(--bug-h); padding-bottom: var(--switcher-h, 0px); flex: none; }
.e-slide.is-horizontal .e-hint { display: block; }

/* ---------- Season ---------- */
.e-season { background: var(--court); }
.e-season .marker { color: var(--line); }
.e-tally { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 0; border-top: 6px solid var(--line); max-width: 620px; }
.e-tally div { padding: 14px 18px 0 0; }
.e-tally div + div { padding-left: 18px; border-left: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.e-tally dt { font-size: .85rem; font-weight: 600; }
.e-tally dd { font-stretch: 125%; font-weight: 900; font-style: italic; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.e-tally dd small { font-size: .45em; opacity: .7; margin-left: 2px; }
.e-tally div:last-child dd { color: var(--flamingo); }
@media (max-width: 560px) {
  .e-tally { grid-template-columns: 1fr 1fr; }
  .e-tally div:nth-child(3) { padding-left: 0; border-left: 0; }
  .e-tally div:nth-child(n+3) { padding-top: 16px; }
}

.e-rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 0 var(--gutter) clamp(40px, 6vw, 72px); }
.e-slide.is-horizontal .e-rounds { display: flex; gap: 18px; align-items: center; padding: var(--bug-h) var(--gutter) var(--switcher-h, 0px) 0; }
.e-slide.is-horizontal .e-round { width: 300px; flex: none; }
.e-round {
  background: var(--night); color: var(--line);
  border: 2px solid var(--line);
  padding: 18px; display: grid; gap: 14px; align-content: start;
}
.e-round header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .88rem; font-weight: 600; }
.e-round header b { font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 1rem; color: var(--flamingo-soft); }
.e-round h3 { font-stretch: 112%; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.25rem; line-height: 1.05; }
.e-round .e-score { display: flex; align-items: baseline; gap: 12px; }
.e-round .e-score strong { font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 2.6rem; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.e-res { font-weight: 900; font-style: italic; font-size: .85rem; padding: 3px 10px; transform: skewX(-8deg); }
.e-res--w { background: var(--flamingo); color: var(--night); }
.e-res--d { background: var(--line); color: var(--night); }
.e-res--l { border: 2px solid var(--line); }
.e-games { display: grid; gap: 7px; }
.e-game { display: grid; grid-template-columns: 1.2rem 1fr 2.6rem; gap: 10px; align-items: center; font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.e-game em { font-style: normal; opacity: .65; }
.e-bar { display: flex; height: 12px; background: rgba(246, 244, 255, .12); }
.e-bar i { display: block; height: 100%; }
.e-bar .us { background: var(--flamingo); }
.e-bar .them { background: #5B7BE0; }
.e-round--next { border-style: dashed; background: transparent; }
.e-round--next .e-score strong { font-size: 1.6rem; }
.e-round--next p { font-size: .95rem; }

.e-table-wrap { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(72px, 10vw, 130px); }
.e-table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.e-table caption { text-align: left; font-weight: 600; padding-bottom: 14px; opacity: .85; }
.e-table th, .e-table td { text-align: left; padding: 15px 12px 15px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.e-table thead th { font-size: .85rem; font-weight: 600; opacity: .8; border-bottom: 2px solid var(--line); }
.e-table .n { text-align: right; padding-right: 0; padding-left: 12px; }
.e-table .pos { width: 3.4rem; padding-left: 12px; }
.e-table tbody th { font-weight: 800; font-size: 1.05rem; }
.e-table tr.us { background: var(--flamingo); color: var(--night); }
.e-table tr.us th, .e-table tr.us td { border-bottom-color: var(--flamingo); }
.e-table tr.us th { font-stretch: 112%; font-weight: 900; font-style: italic; text-transform: uppercase; }

/* ---------- Squad ---------- */
.e-squad { background: var(--flamingo); color: var(--night); }
.e-squad .marker { color: var(--night); }
.e-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 0 var(--gutter) clamp(56px, 8vw, 100px); }
.e-slide.is-horizontal .e-roster { display: flex; gap: 18px; align-items: center; padding: var(--bug-h) var(--gutter) var(--switcher-h, 0px) 0; }
.e-slide.is-horizontal .e-player { width: clamp(260px, 24vw, 340px); min-height: min(62vh, 520px); flex: none; grid-template-rows: 1fr auto auto; }
.e-slide.is-horizontal .e-player .no { font-size: clamp(8rem, 13vw, 12rem); align-self: center; }
.e-slide.is-horizontal .e-player:nth-child(odd) { transform: translateY(-4vh); }
.e-slide.is-horizontal .e-player:nth-child(even) { transform: translateY(4vh); }
.e-player {
  display: grid; grid-template-rows: auto auto auto; gap: 4px;
  border: 3px solid var(--night); border-top-width: 7px;
  background: var(--flamingo);
}
.e-player:nth-child(even) { background: var(--court); color: var(--line); border-color: var(--night); }
.e-player .no {
  display: block; padding: 12px 14px 0;
  font-stretch: 125%; font-weight: 900; font-style: italic;
  font-size: clamp(6rem, 9vw, 8.4rem); line-height: .8; letter-spacing: -.06em;
  background: linear-gradient(180deg, var(--line) 0 56%, var(--court) 56% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 3px var(--night);
}
.e-player:nth-child(even) .no { background-image: linear-gradient(180deg, var(--line) 0 56%, var(--flamingo) 56% 100%); }
.e-player h3 { padding: 10px 14px 0; font-size: 1.2rem; font-weight: 800; }
.e-player p { padding: 0 14px 14px; font-size: .92rem; opacity: .85; }
.e-player p b { font-style: italic; }

/* ---------- Kit ---------- */
.e-kit { padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(56px, 8vw, 110px); background: radial-gradient(120% 90% at 70% 40%, #1A2266 0%, var(--night) 62%); }
.e-kit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 900px) { .e-kit__grid { grid-template-columns: 1fr; } }
.e-kit__text { display: grid; gap: 20px; }
.e-kit__text > p { max-width: 38ch; font-size: 1.15rem; }
.e-views { display: inline-flex; border: 2px solid var(--line); transform: skewX(-8deg); justify-self: start; }
.e-views button {
  font: inherit; font-weight: 800; font-style: italic; font-stretch: 112%;
  min-height: 44px; padding: 0 18px; background: none; color: var(--line); border: 0; cursor: pointer;
}
.e-views button + button { border-left: 2px solid var(--line); }
.e-views button[aria-pressed="true"] { background: var(--flamingo); color: var(--night); }
.e-spons { display: grid; gap: 0; border-top: 6px solid var(--line); }
.e-spons li {
  display: grid; grid-template-columns: 2.2rem 1fr; column-gap: 10px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 25%, transparent);
  counter-increment: s; transition: color .25s, opacity .25s; opacity: .55;
}
.e-spons { counter-reset: s; }
.e-spons li::before { content: counter(s); grid-row: span 2; font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 1.2rem; }
.e-spons li b { font-weight: 800; font-size: 1.05rem; }
.e-spons li span { font-size: .9rem; opacity: .8; }
.e-spons li.is-on { opacity: 1; color: var(--flamingo); }

.e-kit__stage { position: relative; aspect-ratio: 1 / 1; max-height: 78vh; width: 100%; justify-self: center; touch-action: pan-y; cursor: grab; }
.e-kit__stage:active { cursor: grabbing; }
.e-kit__stage canvas { width: 100%; height: 100%; display: block; }
.e-kit__stage::after { /* floor shadow */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 4%; height: 7%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); z-index: -1;
}
.e-kit__hint { position: absolute; right: 0; bottom: 0; font-weight: 700; font-size: .9rem; opacity: .7; }
.e-kit__stage.is-static { cursor: default; }

/* ---------- Partners ---------- */
.e-partners { padding: clamp(64px, 9vw, 120px) var(--gutter); background: var(--line); color: var(--night); }
.e-wall { display: grid; gap: 2px; background: var(--night); border: 2px solid var(--night); margin-bottom: 18px; }
.e-wall li {
  background: var(--line); display: grid; place-items: center; text-align: center; padding: 18px;
  font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em;
}
.e-wall--kit { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.e-wall--kit li { min-height: 140px; font-size: clamp(1rem, 1.6vw, 1.35rem); }
.e-wall--support { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.e-wall--support li { min-height: 90px; font-size: .95rem; opacity: .9; }
@media (max-width: 760px) { .e-wall--kit, .e-wall--support { grid-template-columns: 1fr 1fr; } }
.e-partners__cta { margin-top: 10px; font-weight: 600; }
.e-partners__cta a { color: var(--night); text-underline-offset: 4px; }

.e-pick { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--line); transform: skewX(-8deg); justify-self: start; }
.e-pick[hidden] { display: none; }
.e-pick button { font: inherit; font-weight: 900; font-style: italic; font-stretch: 125%; min-height: 40px; padding: 0 16px; background: none; color: var(--line); border: 0; cursor: pointer; }
.e-pick button + button { border-left: 2px solid var(--line); }
.e-pick button[aria-pressed="true"] { background: var(--flamingo); color: var(--night); }
/* table: keep the essentials on phones */
@media (max-width: 600px) {
  .e-table { min-width: 0; }
  .e-table th:nth-child(3), .e-table td:nth-child(3),
  .e-table th:nth-child(5), .e-table td:nth-child(5),
  .e-table th:nth-child(6), .e-table td:nth-child(6) { display: none; }
  .e-table th, .e-table td { padding-right: 6px; }
  .e-table .pos { width: 2.4rem; padding-left: 8px; }
}
