/* The World Elimination Tournament (uses worldmatch.css for buttons, cards and type) */
.wt [hidden] { display: none !important; }
.wt-hero { background: radial-gradient(circle at 80% 15%, #2a7a5b 0, #0d3b2e 55%); }
.wt-hero::after { display: none; }

.wt-app { scroll-margin-top: 70px; margin-bottom: 28px; }
.wt-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
.wt-top h2 { margin: 0; font-size: clamp(1.35rem, 3.2vw, 2rem); }
.wt-top .wm-kicker { margin-bottom: 4px; }
.wt-count { text-align: right; margin: 0; line-height: 1.2; }
.wt-count span { display: block; font-weight: 700; }
.wt-count small { color: var(--g-ink-2); }
.wt-progress { height: 6px; border-radius: 6px; background: var(--g-line); margin: 12px 0 16px; overflow: hidden; }
.wt-progress i { display: block; height: 100%; background: var(--wm-gold); transition: width .3s ease; }

.wt-match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.wt-vs { align-self: center; font-family: var(--wm-serif); font-weight: 700; font-size: 1.3rem; color: var(--g-ink-2); }
.wt-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 2px solid var(--g-line); border-radius: 18px; overflow: hidden; background: var(--g-bg); color: var(--g-ink); cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; font: inherit; }
.wt-card:hover, .wt-card:focus-visible { border-color: var(--g-accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); outline: none; }
.wt-card:active { transform: scale(.98); }
.wt-photo { display: block; aspect-ratio: 16 / 10; background: #0d3b2e; }
.wt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-scenery .wt-photo { aspect-ratio: 4 / 3; }
.wt-name { display: flex; align-items: center; gap: 8px; font-family: var(--wm-serif); font-weight: 700; font-size: 1.35rem; padding: 12px 16px 4px; }
.wt-body { display: block; padding: 0 16px 6px; font-size: .95rem; }
.wt-body p { margin: 0 0 6px; }
.wt-body ul { margin: 0 0 6px; padding-left: 1.1em; }
.wt-sub { color: var(--g-ink-2); font-size: .85rem; }
.wt-credit-s { display: block; padding: 0 16px 10px; margin-top: auto; font-size: .7rem; color: var(--g-ink-2); }
.wt-hint { text-align: center; margin-top: 12px; }

.wt-end { scroll-margin-top: 70px; }
.wt-champ { position: relative; border-radius: 16px; overflow: hidden; background: #0d3b2e; color: #fff; min-height: 260px; display: flex; align-items: flex-end; }
.wt-champ > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wt-champ::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 22, 16, .9) 0%, rgba(6, 22, 16, .15) 70%); }
.wt-champ-text { position: relative; z-index: 1; padding: 22px 24px; }
.wt-champ-text h2 { color: #fff; margin: 0 0 6px; font-size: clamp(2rem, 5vw, 3rem); display: flex; align-items: center; gap: 12px; }
.wt-champ-text h2 .wm-flag { width: 40px; height: 30px; }
.wt-champ-text p { margin: 0; }
.wt-champ .wm-kicker { color: var(--wm-gold); }
.wt-credit { font-size: .75rem; color: var(--g-ink-2); margin: 6px 2px 0; }
.wt-preview { max-width: 320px; margin: 18px 0; }
.wt-preview canvas { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); display: block; }

.wt-bracket { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; font-size: .82rem; }
.wt-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--g-ink-2); margin: 0 0 6px; }
.wt-col { display: flex; flex-direction: column; gap: 6px; }
.wt-pair { border: 1px solid var(--g-line); border-radius: 8px; overflow: hidden; }
.wt-pair span { display: flex; align-items: center; gap: 6px; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-pair span + span { border-top: 1px solid var(--g-line); }
.wt-pair .is-out { color: var(--g-ink-2); opacity: .7; }
.wt-pair .is-win { font-weight: 700; }
.wt-pair .is-champ { background: var(--g-accent-soft); color: var(--g-accent); }
.wt-col-champ .wt-pair { border-color: var(--wm-gold); }
.wt-col { justify-content: space-around; }

.wt-champions { padding-left: 1.4em; max-width: 520px; }
.wt-champions li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--g-line); }
.wt-champions a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 640px) {
    .wt-match { grid-template-columns: 1fr 1fr; gap: 8px; }
    .wt-vs { display: none; }
    .wt-name { font-size: 1.05rem; padding: 8px 10px 2px; }
    .wt-body { padding: 0 10px 4px; font-size: .82rem; }
    .wt-credit-s { padding: 0 10px 8px; font-size: .62rem; }
    .wt-top { flex-direction: column; align-items: flex-start; }
    .wt-count { text-align: left; }
}
