/* World Cup Pool ARCHIVE — 2026 FIFA World Cup (/worldcup2026).
   Builds on css/styles.css tokens. Copies the wc26.css bracket/scoreboard
   visuals (admin styling omitted — the archive has no admin) and adds the
   frozen "Archived — Final Result" banner. */
:root { --wc: #1b6e3c; --wc-dark: #124f2b; --wc-soft: #eaf5ee; }

.wc-page { background: var(--bg); }
.wc-header { background: linear-gradient(180deg, var(--wc), var(--wc-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.wc-header .header-inner { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wc-header .back-link { color: #cdeedd; text-decoration: none; font-size: .82rem; font-weight: 600; }
.wc-header .back-link:hover { color: #fff; }
.wc-title { margin: 2px 0 0; font-size: 1.5rem; font-weight: 900; letter-spacing: .01em; }
.wc-header .subtitle { margin: 1px 0 0; font-size: .78rem; color: #d7efe1; }

.wc-main { max-width: 1100px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.wc-updated { font-size: .74rem; color: var(--ink-soft); margin: -2px 2px; font-style: italic; }
.wc-empty { color: var(--ink-soft); font-size: .85rem; padding: 6px 2px; }

/* ---- "ARCHIVED — FINAL RESULT" banner ---- */
.wc-archive-banner { padding: 14px 16px; background: var(--wc-soft); border: 1px solid #d4e6d8;
  border-left: 5px solid var(--gold, #f4b400); border-radius: 12px; }
.wc-archive-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--wc); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.wc-archive-event { font-weight: 800; font-size: 1rem; color: var(--ink); line-height: 1.35; }
.wc-archive-winner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 1.1rem; }
.wc-archive-trophy { font-size: 1.15rem; }
.wc-archive-winner-nm { font-weight: 800; color: var(--wc); }
.wc-archive-winner-sub { font-weight: 700; color: var(--ink-soft); font-size: .85rem; }
.wc-archive-note { margin-top: 8px; font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }

.wc-archive-foot { margin: 4px 0 8px; text-align: center; font-size: .9rem; color: var(--ink-soft); }

/* ---- circular country flags ---- */
.wc-flag { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff;
  border: 2px solid var(--line); box-shadow: var(--shadow-sm); flex: 0 0 auto; }
.wc-flag-sm { width: 32px; height: 32px; border-width: 1.5px; }
.wc-flag-tbd { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft);
  font-size: .62rem; font-weight: 800; background: repeating-linear-gradient(45deg,#eef2f7,#eef2f7 5px,#e3e8ee 5px,#e3e8ee 10px); }
.wc-flag-sm.wc-flag-tbd { font-size: .55rem; }

/* ---- final-stage scoreboard ---- */
.wc-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.wc-game { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; row-gap: 6px; }
.wc-game.is-live { border-color: #bfe6cd; box-shadow: 0 0 0 2px rgba(27,110,60,.12); }
.wc-game.is-pre { opacity: .92; }
.wc-team-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.wc-team-line-r { flex-direction: row-reverse; text-align: right; }
.wc-team-name { font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-score { font-size: 1.05rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; padding: 0 4px; white-space: nowrap; }
.wc-game.is-pre .wc-score { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.wc-game-status { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.wc-game.is-live .wc-game-status { color: var(--wc); }
.wc-game-note { color: var(--ink-soft); font-weight: 500; }
.wc-livedot { width: 7px; height: 7px; border-radius: 50%; background: #e0282e; box-shadow: 0 0 0 0 rgba(224,40,46,.6); animation: wcpulse 1.4s infinite; }
@keyframes wcpulse { 0% { box-shadow: 0 0 0 0 rgba(224,40,46,.5); } 70% { box-shadow: 0 0 0 6px rgba(224,40,46,0); } 100% { box-shadow: 0 0 0 0 rgba(224,40,46,0); } }

/* ---- bracket of 32 ---- */
.wc-bracket-note { font-size: .78rem; color: var(--ink-soft); margin: 0 2px 12px; }
.wc-bracket { display: block; }

/* view toggle (Tree / Rounds) */
.wc-view-toggle { display: inline-flex; gap: 4px; background: var(--wc-soft); border-radius: 999px; padding: 3px; }
.wc-view-btn { border: 0; background: transparent; font: inherit; font-size: .76rem; font-weight: 800; color: var(--ink-soft); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.wc-view-btn.on { background: #fff; color: var(--wc); box-shadow: var(--shadow-sm); }

/* tree view: rounds as columns, horizontally scrollable */
.wc-tree { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 14px; align-items: stretch; -webkit-overflow-scrolling: touch; }
.wc-tree-col { display: flex; flex-direction: column; flex: 0 0 auto; min-width: 210px; }
.wc-tree-title { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--wc); text-align: center; margin-bottom: 8px; }
.wc-tree-matches { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 10px; }

/* round-tabs view */
.wc-round-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin: 0 0 12px; }
.wc-round-tabs[hidden] { display: none; }
.wc-round-tab { border: 1px solid var(--line); background: #fff; font: inherit; font-size: .76rem; font-weight: 800; color: var(--ink-soft); padding: 6px 13px; border-radius: 999px; cursor: pointer; }
.wc-round-tab.on { background: var(--wc); color: #fff; border-color: var(--wc); }
.wc-round-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.wc-round-head { grid-column: 1 / -1; font-size: .82rem; font-weight: 800; color: var(--ink); margin: 2px; }

/* ---- bracket match cards (the real draw) ---- */
.wc-survival { font-size: .82rem; font-weight: 800; color: var(--wc); margin: 0 2px 12px; }
.wc-bk-match { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 7px 9px; display: flex; flex-direction: column; gap: 5px; }
.wc-tree .wc-bk-match { box-shadow: var(--shadow-sm); }
.wc-bk-match.is-live { border-color: #bfe6cd; box-shadow: 0 0 0 2px rgba(27,110,60,.12); }
.wc-bk-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wc-bk-txt { display: flex; flex-direction: column; min-width: 0; }
.wc-bk-country { font-size: .84rem; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-bk-person { font-size: .7rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-bk-score { margin-left: auto; font-size: 1.02rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; padding-left: 8px; }
.wc-bk-side.is-win .wc-bk-country, .wc-bk-side.is-win .wc-bk-score { color: var(--wc); }
.wc-bk-side.is-out { opacity: .45; }
.wc-bk-side.is-out .wc-bk-country { text-decoration: line-through; }
.wc-bk-meta { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .68rem; font-weight: 700; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 4px; }
.wc-bk-meta.is-live { color: var(--wc); }
.wc-bk-pens { font-size: .72em; font-weight: 700; opacity: .8; }
.wc-score-pens { display: block; font-size: .6rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; margin-top: 1px; }

@media (max-width: 520px) {
  .wc-bracket { grid-template-columns: 1fr; }
  .wc-flag { width: 40px; height: 40px; }
}
