/* Match screens share the cabinet shell and homepage colors. */
.matches-workspace { min-width: 0; --match-gap: 16px; --match-inset: 24px; --match-section-gap: 32px; }
.matches-intro { margin-bottom: var(--match-section-gap); }
.matches-intro :is(h1,h2,p) { text-align: left !important; }
.matches-intro h1 { margin-bottom: 12px; }
.matches-intro p { max-width: 65ch; margin: 0; color: var(--home-muted); font-size: 20px; }
.matches-guest { max-width: 720px; padding: 16px 0 32px; }
.matches-guest > p { color: var(--home-muted); }
.match-lobby { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--match-section-gap); align-items: start; }
.match-panel { min-width: 0; border-top: 2px solid var(--home-green); }
.match-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: var(--match-inset) 0 20px; }
.match-panel-heading h2 { margin: 0; font-size: 28px; }
.match-panel-heading > span { color: var(--home-muted); font-size: 16px; }
.match-request { margin: 0 0 var(--match-gap); padding: var(--match-inset); border: 1px solid var(--home-line); border-radius: var(--radius-sm); }
.match-request h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; }
.match-request p { margin: 0 0 20px; font-size: 20px; color: var(--home-muted); }
.request-own { background: var(--surface-2); border-color: var(--line-strong); }
.match-request .request-label { color: var(--home-green-hover); font-size: 16px; }
.request-club { display: flex; align-items: center; gap: var(--match-gap); min-width: 0; margin-bottom: 20px; }
.request-club > div { min-width: 0; }
.request-club img { width: 96px; height: 96px; object-fit: contain; flex: none; }
.wait-bar { display: flex; gap: 2px; margin: -6px 0 20px; }
.wait-bar i { flex: 1; height: 8px; border-radius: 2px; background: var(--line-strong); transition: background .3s, box-shadow .3s; }
.wait-bar i.on { background: var(--home-green); box-shadow: 0 0 6px var(--home-green); }
.wait-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.request-club h3 { margin-bottom: 4px; }
.request-club p { margin: 0; font-size: 16px; }
.request-bot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--match-gap); }
.request-bot > div { flex: 1 1 180px; min-width: 0; }
.request-bot p { margin: 0; }
.matches-main input.match-secondary, .matches-main a.match-secondary, .matches-main .score-actions a:last-child { min-height: 52px; padding: 12px 22px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--home-text); font-size: 18px; font-weight: 500; text-decoration: none; }
.matches-main input.match-secondary:hover, .matches-main a.match-secondary:hover, .matches-main .score-actions a:last-child:hover { background: var(--surface-2); }
.matches-main .request-list-title { margin: var(--match-section-gap) 0 var(--match-gap); font-size: 20px; font-weight: 500; }
.matches-main .match-empty { margin: 0; padding: var(--match-inset); border: 1px dashed var(--home-line); color: var(--home-muted); font-size: 20px; }
.matches-main .match-empty > p { margin-bottom: var(--match-gap); }
.match-results { display: grid; gap: var(--match-gap); }
/* Crest above name in the same columns, score between crests. */
.match-result { display: grid; width: 100%; margin: 0; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px 16px; padding: var(--match-inset); border: 1px solid var(--home-line); border-spacing: 0; border-radius: var(--radius-sm); text-align: center; }
.match-result :is(tbody,tr) { display: contents; }
.match-result caption { grid-area: 4/1/5/7; color: var(--home-muted); font-size: 16px; margin: 0; }
.match-result td { padding: 0; min-width: 0; overflow-wrap: anywhere; font-size: 20px; align-self: center; }
.match-result img { display: block; width: 104px; height: 104px; object-fit: contain; }
.match-result tr:first-child > td:first-child { grid-area: 2/1/3/3; }
.match-result tr:first-child > td:last-child { grid-area: 2/5/3/7; }
.match-result tr:first-child > td:not(:nth-child(2)) { align-self: start; color: var(--home-text); font-size: 22px; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.match-result tr:first-child > td:nth-child(2), .match-result tr:last-child > td:nth-child(2) { display: none; }
.match-result tr:nth-child(2)>td:first-child { grid-area: 1/1/2/3; justify-self: center; }
.match-result tr:nth-child(2)>td:nth-child(2) { grid-area: 1/3/2/5; font-size: 40px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.match-result tr:nth-child(2)>td:last-child { grid-area: 1/5/2/7; justify-self: center; }
.match-result tr:last-child > td:first-child { grid-area: 3/1/4/3; }
.match-result tr:last-child > td:last-child { grid-area: 3/5/4/7; }
.match-result .scheme { align-self: start; margin: 4px 0 0; color: var(--home-muted); text-align: center; font-size: 18px; line-height: 1.5; }
.matches-main #time { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 820px; margin: 0 auto 28px; padding: 18px 22px; border: 1px solid var(--home-line); border-radius: var(--radius-sm); }
.matches-main #time h4 { margin: 0; font-size: 18px; font-weight: 400; color: var(--home-muted); }
.matches-main #time h2 { margin: 0; color: var(--home-green-hover); font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.matches-main #game { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; width: 100%; max-width: 1080px; margin: 0 auto 28px; border-spacing: 0; }
.matches-main #game > tbody, .matches-main #game > tbody > tr { display: contents; }
.matches-main #game > tbody > tr > td { min-width: 0; padding: 20px; text-align: center; border: 1px solid var(--line-strong); }
.matches-main #game > tbody > tr:first-child > td { padding-bottom: 16px; background: var(--surface-2); border-bottom: 0; }
.matches-main #game > tbody > tr:last-child > td { padding-top: 0; background: var(--surface-2); border-top: 0; }
.matches-main #game > tbody > tr:first-child img { width: 144px; height: 144px; object-fit: contain; }
.matches-main #game > tbody > tr:first-child br { display: none; }
.matches-main #game h3 { margin: 12px 0 4px; font-size: 24px; font-weight: 500; }
.matches-main #game .gate-note { margin: 0; color: var(--home-muted); font-size: 16px; }
.matches-main #game .gate-note span { font-weight: 600; color: var(--home-green-hover); }
.matches-main #game #count0 { color: var(--amber-text); }
.matches-main #game td > div[role=group] { width: 100%; aspect-ratio: 1.5; min-height: 208px; margin: auto; padding: 5% 13% 10%; background: url("/design/match-goal.svg?v=goal-real-2") center / 100% 100% no-repeat; }
.matches-main #game table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
.matches-main #game table td { padding: 0; height: 33.333%; border: 1px solid rgba(255,255,255,.75); }
.matches-main #game button.sector { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(32,70,28,.08); color: white; font-size: 24px; font-weight: 500; text-shadow: 0 1px 3px rgba(20,45,15,.65); }
.matches-main #game button.sector:hover:not(:disabled):not([aria-pressed=true]) { background-color: rgba(255,255,255,.18); }
.matches-main #game button.sector:disabled { opacity: .5; cursor: wait; }
.matches-main #game button.sector:focus-visible { outline-offset: -3px; z-index: 1; }
.matches-main #game button.sector0[aria-pressed=true] { background: rgba(255,222,121,.24); color: var(--warn-bg); }
.matches-main #game button.sector0[aria-pressed=true]::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: clamp(32px,4vw,52px); aspect-ratio: 1; border: 3px solid #ffc044; border-radius: 50%; }
.matches-main #game button.sector1[aria-pressed=true] { background-color: rgba(45,105,25,.8); color: white; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cpath d='M20 2L36 8L34 29Q30 40 20 46Q10 40 6 29L4 8Z' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 36px 44px; }
.matches-main .center { text-align: center; }
.matches-main #sector { color: var(--home-green-hover); font-variant-numeric: tabular-nums; }
.matches-main #gate-msg { min-height: 24px; margin: 0 0 18px; font-size: 18px; color: var(--home-green-hover); }
.matches-main #gate-msg[data-state=error] { color: #a72821; }
.matches-main input[type=submit]:disabled { background: var(--surface-2); border-color: var(--line-strong); color: var(--home-muted); cursor: not-allowed; }
.matches-main #score { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 16px 24px; max-width: 1040px; width: 100%; margin: 28px auto; padding: 32px 24px; border: 1px solid var(--home-line); text-align: center; }
.matches-main #score :is(tbody,tr) { display: contents; }
.matches-main #score td { min-width: 0; padding: 0; overflow-wrap: anywhere; }
.matches-main #score tr:first-child > td:first-child { grid-area: 1/1; }
.matches-main #score tr:first-child > td:last-child { grid-area: 1/3; }
.matches-main #score td[rowspan] { grid-area: 1/2/3/3; align-self: center; font-size: 104px; letter-spacing: -2px; font-weight: 400; font-variant-numeric: tabular-nums; }
.matches-main #score tr:nth-child(2) > td:first-child { grid-area: 2/1; }
.matches-main #score tr:nth-child(2) > td:last-child { grid-area: 2/3; }
.matches-main #score tr:last-child > td:first-child { grid-area: 3/1; }
.matches-main #score tr:last-child > td:last-child { grid-area: 3/3; }
.matches-main #score tr:last-child > td:nth-child(2) { display: none; }
.matches-main #score h3 { margin: 0; font-size: 28px; font-weight: 500; }
.matches-main #score .side { margin: 0 0 8px; color: var(--home-muted); font-size: 16px; }
.matches-main #score img { width: 176px; height: 176px; object-fit: contain; }
.matches-main #score .scheme { padding-top: 20px; border-top: 1px solid var(--home-line); color: var(--home-muted); text-align: left; font-size: 18px; line-height: 1.7; }
.matches-main #score .gate-big { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); gap: 0; width: 100%; max-width: 360px; aspect-ratio: 1.5; margin: 0 auto; padding: 5% 13% 10%; border: 0; background: url("/design/match-goal.svg?v=goal-real-2") center / 100% 100% no-repeat; }
.matches-main #score .gate-big span { position: relative; display: grid; place-items: start; padding: 3px 5px; border: 1px solid rgba(255,255,255,.75); background: rgba(32,70,28,.08) no-repeat center / auto 70%; color: white; font-size: 13px; line-height: 1; text-shadow: 0 1px 2px rgba(20,45,15,.7); }
.matches-main #score .gate-big :is(.goal,.save)::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 46%; max-width: 30px; aspect-ratio: 1; border-radius: 50%; }
.matches-main #score .gate-big .goal { background-color: rgba(255,222,121,.35); }
.matches-main #score .gate-big .goal::after { border: 3px solid var(--warn-bg); background: #ffc044; }
.matches-main #score .gate-big .save { background-color: rgba(45,105,25,.8); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cpath d='M20 2L36 8L34 29Q30 40 20 46Q10 40 6 29L4 8Z' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E"); }
.matches-main #score .gate-big .save::after { width: 30%; border: 2px solid #ffc044; }
.matches-main #score .gate-big .idle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cpath d='M20 2L36 8L34 29Q30 40 20 46Q10 40 6 29L4 8Z' fill='none' stroke='white' stroke-opacity='.8' stroke-width='2' stroke-dasharray='4 3'/%3E%3C/svg%3E"); }
.matches-main #score .gate-sum { margin: 8px 0 0; color: var(--home-text); text-align: center; font-size: 18px; }
.matches-main .gate-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: -12px 0 24px; color: var(--home-muted); font-size: 16px; }
.matches-main .gate-legend span { display: inline-flex; align-items: center; gap: 8px; }
.matches-main .gate-legend span::before { content: ''; width: 16px; height: 16px; border: 1px solid var(--line-strong); }
.matches-main .gate-legend .goal::before { border-color: var(--home-amber); border-radius: 50%; background: #ffc044; }
.matches-main .gate-legend .save::before { border-color: var(--home-defense); background: var(--home-defense); }
.matches-main .gate-legend .idle::before { border: 1px dashed var(--home-defense); }
.matches-main .over-title h2 { margin: 0; font-size: 32px; }
.matches-main .over-title h3 { margin: 8px 0 0; color: var(--home-muted); font-size: 18px; font-weight: 400; }
.matches-main .over-title[data-tech=own] h2 { color: #a72821; }
.matches-main .over-title[data-tech=rival] h2 { color: var(--home-green-hover); }
.matches-main .over-rating { color: var(--home-green-hover); font-size: 20px; }
.matches-main .score-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.matches-main .score-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px; border: 1px solid var(--home-green); border-radius: var(--radius-sm); background: var(--btn); color: white; font-size: 18px; font-weight: 500; text-decoration: none; }
.matches-main .score-actions a:first-child:hover { background: var(--btn-hover); }
.matches-guest .score-actions { justify-content: flex-start; }
@media (max-width: 900px) {
  .match-lobby { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 600px) {
  .matches-workspace { --match-inset: 16px; --match-section-gap: 24px; }
  .matches-intro p, .match-request p, .matches-main .match-empty { font-size: 18px; }
  .matches-guest { padding: 0 0 16px; }
  .match-panel-heading { align-items: baseline; padding: 20px 0 16px; }
  .match-panel-heading h2 { font-size: 26px; }
  .match-request h3 { font-size: 20px; }
  .request-club { gap: 12px; }
  .request-club img { width: 80px; height: 80px; }
  .request-bot { display: flex; flex-direction: column; align-items: stretch; }
  .request-bot > div { flex: auto; }
  .match-request input[type=submit] { width: 100%; }
  .match-result { gap: 12px 8px; }
  .match-result img { width: 80px; height: 80px; }
  .match-result td { font-size: 18px; }
  .match-result tr:first-child > td:not(:nth-child(2)) { font-size: 17px; }
  .match-result tr:nth-child(2)>td:nth-child(2) { font-size: 30px; }
  .match-result .scheme { font-size: 16px; }
  .match-result .gate-view { --cell: 20px; }
  .matches-main #game { grid-template-columns: minmax(0,1fr); gap: 0; }
  .matches-main #game > tbody > tr:first-child > td:first-child { order: 1; }
  .matches-main #game > tbody > tr:last-child > td:first-child { order: 2; margin-bottom: 20px; }
  .matches-main #game > tbody > tr:first-child > td:last-child { order: 3; }
  .matches-main #game > tbody > tr:last-child > td:last-child { order: 4; }
  .matches-main #game > tbody > tr > td { padding: 16px; }
  .matches-main #game > tbody > tr:first-child img { width: 112px; height: 112px; }
  .matches-main #game td > div[role=group] { aspect-ratio: 1.35; }
  .matches-main #game button.sector { min-height: 44px; }
  .matches-main #game button.sector1[aria-pressed=true] { background-size: 30px 36px; }
  .matches-main #time { padding: 14px 18px; }
  .matches-main #time h2 { font-size: 30px; }
  .matches-main #score { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; padding: 24px 14px; }
  .matches-main #score tr:first-child > td:last-child { grid-area: 1/2; }
  .matches-main #score tr:nth-child(2) > td:last-child { grid-area: 2/2; }
  .matches-main #score td[rowspan] { grid-area: 3/1/4/3; }
  .matches-main #score tr:last-child > td:first-child { grid-area: 4/1; }
  .matches-main #score tr:last-child > td:last-child { grid-area: 4/2; }
  .matches-main #score td[rowspan] { font-size: 64px; letter-spacing: -1px; }
  .matches-main #score h3 { font-size: 20px; }
  .matches-main #score img { width: 104px; height: 104px; }
  .matches-main #score .scheme { font-size: 16px; }
  .matches-main #score .gate-big span { font-size: 0; }
  .matches-main .score-actions a { width: 100%; }
}
/* Кубки: список, заявочный лист, сетка, схема пенальти */
.cups-workspace .match-panel { margin-bottom: var(--match-section-gap); }
.cups-workspace .cab-eyebrow a { color: inherit; }
.cup-notice { max-width: 820px; margin: 0 0 24px; padding: 14px 18px; border-left: 3px solid var(--home-green); background: var(--surface-2); font-size: 18px; }
.cup-error { border-left-color: var(--err-text); background: var(--err-bg); }
.cup-note { color: var(--home-muted); font-size: 16px; }
.cup-status { max-width: 820px; margin-bottom: var(--match-section-gap); padding: var(--match-inset); border: 1px solid var(--line-strong); background: var(--surface-2); }
.cup-status p { margin: 0 0 16px; font-size: 20px; }
.cup-status form { margin: 0; }
.cup-status strong { font-variant-numeric: tabular-nums; color: var(--home-green-hover); }
.cup-join { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cup-join label { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.cup-join input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--home-green); }
.cup-club { display: inline-flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: break-word; }
.cup-club img:not(.vip-star) { flex: none; width: 28px; height: 28px; object-fit: contain; }
.cup-own { font-weight: 700; }
.cup-tbd { color: var(--home-muted); }
.cup-list { display: grid; gap: 8px; margin: 0; padding-left: 36px; font-variant-numeric: tabular-nums; }
.cup-list li { padding: 10px 14px; border: 1px solid var(--home-line); background: var(--surface); font-size: 18px; }
.cup-list li::marker { color: var(--home-muted); }
.cup-places { max-width: 820px; }
.cup-list small { display: block; margin-top: 2px; color: var(--home-muted); font-size: 15px; }
.cup-list .cup-reserve { opacity: .6; border-style: dashed; }
.cup-list [data-own] { border-color: var(--home-green); box-shadow: inset 3px 0 0 var(--home-green); }
.cup-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cup-cards li { padding: 14px 16px; border: 1px solid var(--home-line); background: var(--surface); }
.cup-cards li[data-own] { border-color: var(--home-green); box-shadow: inset 3px 0 0 var(--home-green); }
.cup-cards a { display: flex; align-items: baseline; gap: 12px; font-size: 19px; font-weight: 500; }
.cup-cards time { color: var(--home-green-hover); font-variant-numeric: tabular-nums; }
.cup-cards small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: var(--home-muted); font-size: 15px; }
.cup-cards small .cup-club { gap: 6px; }
.cup-bracket { display: grid; grid-template-columns: repeat(var(--rounds), minmax(200px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.cup-round { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; min-width: 0; }
.cup-round h3 { margin: 0 0 4px; color: var(--home-muted); font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.cup-pair { border: 1px solid var(--home-line); background: var(--surface); }
.cup-pair p { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 8px 10px; font-size: 16px; }
.cup-pair p + p { border-top: 1px solid var(--home-line); }
.cup-pair b { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.cup-pair b small { color: var(--home-muted); font-weight: 400; }
.cup-pair .cup-win { background: var(--surface-2); font-weight: 600; }
.cup-penalty { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.cup-penalty fieldset { margin: 0; padding: 0; border: 0; }
.cup-penalty legend { margin-bottom: 12px; font-size: 20px; font-weight: 500; }
.cup-penalty > p { flex-basis: 100%; margin: 0; }
.cup-sectors { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; }
.cup-sectors label { position: relative; }
.cup-sectors input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cup-sectors span { display: grid; place-items: center; height: 64px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 22px; font-variant-numeric: tabular-nums; }
.cup-sectors input:checked + span { background: var(--btn); border-color: var(--home-green); color: white; }
.cup-sectors input:focus-visible + span { outline: 3px solid var(--home-amber); outline-offset: 2px; }
.over-penalty { color: var(--home-muted); font-size: 18px; }
@media (max-width: 600px) {
  .cup-status p { font-size: 18px; }
  .cup-list { padding-left: 28px; }
}
/* Узко для колонок раундов: раунды идут друг под другом, без прокрутки вбок */
@media (max-width: 1000px) {
  .cup-bracket { grid-template-columns: minmax(0, 520px); gap: 24px; overflow: visible; }
  .cup-round { justify-content: flex-start; }
}

/* Cup page hero: city banner (design/cups/<city>.webp, trophy on the right) under the title and the join button */
.cup-hero { position: relative; isolation: isolate; margin-bottom: var(--match-section-gap, 18px); padding: 26px 32px 14px; min-height: clamp(220px, 24vw, 330px); border: 1px solid var(--home-line); border-radius: var(--radius-lg, 24px); overflow: hidden; background: #04110f; color: #f4f7f5; }
.cup-hero:not(.has-art) { min-height: 0; padding-bottom: 20px; }
.cup-hero.has-art::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--art) right 25% / cover no-repeat; }
/* Кубки Легенд: голова у края картинки — не срезаем верх */
.cup-hero.has-art[style*="/legend-"]::before { background-position: right top; }
.cup-hero.has-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #04110f 0%, #04110fe6 26%, #04110f80 50%, #04110f00 66%), linear-gradient(0deg, #04110f8c, #04110f00 45%); }
.cup-hero .matches-intro, .cup-hero .cup-notice, .cup-hero .cup-status { max-width: min(560px, 56%); }
.cup-hero .matches-intro { margin-bottom: 14px; }
.cup-hero .matches-intro h1 { margin-bottom: 10px; color: #fff; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; text-shadow: 0 2px 18px #000a; }
.cup-hero .matches-intro p { color: #c9d6d0; font-size: 17px; }
.cup-hero .cab-eyebrow, .cup-hero .cab-eyebrow a { color: #c9d6d0; }
.cup-hero .matches-intro p.cup-start { margin: 0 0 6px; color: #52f16a; font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.2; text-shadow: 0 2px 14px #000a; }
.cup-hero .cup-status { padding: 0; border: 0; background: none; box-shadow: none; }
.cup-hero .cup-status p { font-size: 17px; }
.cup-hero .cup-status strong { color: #52f16a; }
.cup-hero a:not(.cab-action) { color: #52f16a !important; }
.cup-hero .cup-status p { color: #fff; }
.cup-hero .cup-status p.cup-note, .cup-hero .cup-note { color: #c9d6d0; }
body .cup-hero .cup-status input.match-secondary { border-color: #ffffff59 !important; background: #ffffff14 !important; color: #fff !important; }
body .cup-hero .cup-status input.match-secondary:hover { background: #ffffff29 !important; }
.cup-count { display: inline-flex; align-items: center; gap: 12px; }
.cup-count i { position: relative; width: 120px; height: 6px; border-radius: 3px; background: #ffffff24; overflow: hidden; }
.cup-count i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%); border-radius: inherit; background: linear-gradient(90deg, #35d653, #52f16a); animation: cup-fill .6s var(--ease, ease-out); }
@keyframes cup-fill { from { width: 0; } }
.cup-list { padding-left: 0; list-style: none; }
.cup-list li { display: grid; grid-template-columns: 36px minmax(0, 1.4fr) minmax(0, 1fr) 28px; align-items: center; gap: 12px; min-height: 58px; padding: 8px 16px 8px 8px; border-radius: 12px; transition: background-color var(--dur, .18s) var(--ease, ease-out), border-color var(--dur, .18s) var(--ease, ease-out); }
.cup-list li:hover { background: var(--surface-2); border-color: var(--line-strong); }
.cup-n { color: var(--home-muted); text-align: center; }
.cup-list .cup-club { gap: 12px; }
.cup-list .cup-club img:not(.vip-star) { width: 40px; height: 40px; }
.cup-list .cup-user { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--home-muted); font-size: 16px; }
.cup-list .cup-user::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.600 8 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.600 8 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.cup-go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--home-muted); }
.cup-go::before { content: ""; width: 8px; height: 8px; margin-left: -3px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.cup-go:hover, .cup-go:focus-visible { color: var(--home-green-hover); background: var(--hdr-hover, #ffffff14); text-decoration: none; }
@media (max-width: 700px) {
  .cup-hero { padding: 16px 16px 8px; min-height: 0; }
  .cup-hero.has-art::before { position: static; display: block; aspect-ratio: 3 / 1; margin: -16px -16px 12px; background: var(--art) center / cover no-repeat; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .cup-hero.has-art::after { display: none; }
  .cup-hero .matches-intro, .cup-hero .cup-notice, .cup-hero .cup-status { max-width: none; }
  .cup-hero .matches-intro h1 { font-size: 30px; }
  .cup-list li { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 4px 10px; padding-right: 10px; }
  .cup-list .cup-user { grid-column: 2; grid-row: 2; font-size: 14px; }
  .cup-list .cup-go { grid-column: 3; grid-row: 1 / span 2; }
  .cup-count i { width: 70px; }
}
@media (prefers-reduced-motion: reduce) { .cup-count i::after { animation: none; } }
/* Requests block keeps its height while the list loads, so the chat below does not jump */
#match-requests { min-height: 128px; }
