/* ── גביע המדינה ──────────────────────────────────────────────────────────────
   A cup round interrupts the season's reveal, so it is a modal over the results
   screen rather than a screen of its own — the same shape the January window
   uses, for the same reason: you have to come back to where you were. */

.cup-wrap {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(4, 8, 16, .78);
  backdrop-filter: blur(3px);
  animation: cup-in .25s ease;
}
.cup-box {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, #17203a, var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
  animation: cup-rise .3s ease;
}
.cup-box.won  { border-color: #2ea04366; }
.cup-box.lost { border-color: #da363366; }
@keyframes cup-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes cup-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.cup-kicker {
  font-size: 11px; letter-spacing: 1.6px; color: var(--dim);
  font-weight: 700; text-align: center; margin-bottom: 14px;
}

.cup-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cup-side { flex: 1; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.cup-side:last-child { text-align: end; }
.cup-side i { display: block; font-style: normal; font-size: 10px; color: var(--dim); font-weight: 400; }
.cup-score {
  font-size: 32px; font-weight: 900; flex-shrink: 0;
  padding: 2px 12px; border-radius: 11px;
  background: rgba(255, 215, 0, .08);
  text-shadow: 0 0 22px rgba(255, 215, 0, .35);
}

.cup-clock { font-size: 11px; color: var(--dim); font-weight: 700; margin: 10px 0 5px; }
.cup-bar { height: 5px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin-bottom: 12px; }
.cup-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.cup-feed { display: flex; flex-direction: column; gap: 5px; min-height: 44px; }
.cup-ev {
  font-size: 12px; padding: 6px 9px; border-radius: 9px;
  background: var(--surface2);
  animation: cup-pop .3s ease;
}
.cup-ev.them { opacity: .72; }
.cup-ev span { font-size: 10px; color: var(--dim); font-weight: 700; margin-inline-end: 5px; }
@keyframes cup-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.cup-verdict {
  margin: 12px 0 4px; padding: 10px; border-radius: 10px;
  font-size: 14px; font-weight: 900; text-align: center;
}
.cup-verdict.won  { background: #2ea04318; color: #6bff6b; }
.cup-verdict.lost { background: #da363318; color: #ff8f8f; }
.cup-verdict span { display: block; font-size: 11px; font-weight: 400; color: var(--dim); margin-top: 3px; }

.cup-champ {
  font-size: 24px; font-weight: 900; text-align: center; margin: 4px 0 2px;
  text-shadow: 0 0 30px rgba(255, 215, 0, .4);
}
.cup-note { font-size: 12px; color: var(--dim); text-align: center; margin: 0 0 12px; }
.cup-path { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--dim); }
.cup-path span {
  padding: 6px 9px; border-radius: 8px; background: var(--surface2);
}

.cup-btns { margin-top: 14px; }
.cup-b {
  width: 100%; padding: 13px; cursor: pointer; border: 0; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--accent-ink); font-size: 14px; font-weight: 800;
}
.cup-b:hover { filter: brightness(1.06); }

/* ── the bracket, opened from the results screen ──────────────────────────── */
.cup-open-link {
  display: block; width: 100%; margin-top: 8px; padding: 9px;
  background: transparent; color: var(--dim); cursor: pointer;
  border: 1px dashed var(--border); border-radius: 9px;
  font-size: 12px; font-weight: 700;
}
.cup-open-link:hover { color: var(--text); border-color: var(--accent); }

.cup-br { max-height: 52vh; overflow-y: auto; margin-bottom: 4px; }
.cup-br-round { margin-bottom: 12px; }
.cup-br-h {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--dim); font-weight: 700; margin-bottom: 6px;
}
.cup-br-h span { letter-spacing: 0; text-transform: none; opacity: .7; }
/* before the quarter-finals only your own tie is shown at full height; the rest
   of the round scrolls inside its own box rather than burying the screen */
.cup-br-only { max-height: 118px; overflow-y: auto; }
.cup-br-row {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px;
  padding: 6px 8px; border-radius: 8px; margin-bottom: 3px;
  background: var(--surface2);
}
.cup-br-row.me { background: rgba(255,215,0,.12); border: 1px solid rgba(255,215,0,.3); font-weight: 700; }
.cup-br-row.upset .cup-br-w { color: #ff9d5c; }
.cup-br-w { flex: 1; }
.cup-br-l { flex: 1; text-align: end; color: var(--dim); }
.cup-br-s { font-weight: 900; flex-shrink: 0; }
.cup-br-row i { font-style: normal; font-size: 9.5px; color: var(--dim); }

/* Who went through, said outright. Without it a bold "me" row shows both clubs
   in the same weight and a defeat reads like an advance. */
.cup-br-go { width: 12px; flex-shrink: 0; color: #6bff6b; font-weight: 900; }
.cup-br-row.me .cup-br-l { color: var(--dim); font-weight: 400; }
.cup-br-row.me .cup-br-w { color: var(--text); }
.cup-br-d { color: var(--dim); flex-shrink: 0; }
