/* ══════════════════════════════════════════════════════════════
   TORNEI — lista + dettaglio (classifica, calendario, bracket)
   Poggia sui token di style.css (--bg-card, --green-bright, --gold…)
   ══════════════════════════════════════════════════════════════ */

/* ── Hero torneo in evidenza (lista) ── */
.t-hero {
  position: relative;
  display: block;
  margin-bottom: 26px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(77, 184, 77, 0.14), transparent 55%),
    linear-gradient(160deg, #131a13 0%, var(--bg-card) 70%);
  border: 1px solid rgba(77, 184, 77, 0.18);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  padding: 30px 30px 26px;
  overflow: hidden;
  color: inherit;
}
.t-hero__wm {
  position: absolute; right: -10px; bottom: -28px;
  font-family: var(--font-title); font-weight: 700;
  font-size: 6rem; letter-spacing: 0.06em;
  color: rgba(77, 184, 77, 0.06);
  pointer-events: none; white-space: nowrap;
  text-transform: uppercase;
}
.t-hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono, monospace); font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--green-bright); border: 1px solid var(--green-dark);
  padding: 4px 12px; margin-bottom: 14px;
}
.t-hero__tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright);
}
.t-hero__title {
  font-family: var(--font-title); color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.5rem); text-transform: uppercase;
  line-height: 1.05; letter-spacing: 0.04em; margin: 0;
}
.t-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.t-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono, monospace); font-size: 0.82rem; letter-spacing: 0.08em;
  background: var(--bg-card-hover); border: 1px solid #2e2e2e;
  color: var(--gray-light); padding: 8px 16px;
}
.t-chip b { color: var(--gold); font-weight: 600; }
/* Il premio è il chip protagonista */
.t-chip--prize {
  font-family: var(--font-title); font-size: 1.05rem; letter-spacing: 0.06em;
  border-color: var(--gold); color: var(--gold-light);
  background: linear-gradient(160deg, rgba(201, 168, 96, 0.12), var(--bg-card-hover));
  box-shadow: 0 0 14px rgba(201, 168, 96, 0.12);
  padding: 8px 18px;
}
.t-chip--prize b { font-size: 1.15em; }
.t-hero__cta {
  display: inline-block; font-family: var(--font-title); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.95rem;
  background: var(--green-bright); color: var(--bg-main);
  padding: 10px 26px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

/* ── Card archivio (lista) ── */
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.t-card {
  display: block;
  background: var(--bg-card); border: 1px solid #2a2a2a;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  padding: 18px 20px; color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.t-card:hover { border-color: rgba(77, 184, 77, 0.3); transform: translateY(-2px); }
.t-card__series {
  display: block; font-family: var(--font-mono, monospace); font-size: 0.66rem;
  letter-spacing: 0.16em; color: var(--gray-mid); text-transform: uppercase; margin-bottom: 6px;
}
.t-card__title {
  font-family: var(--font-title); color: var(--white);
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0;
}
.t-card__meta { display: flex; gap: 14px; margin-top: 10px; font-family: var(--font-mono, monospace); font-size: 0.7rem; color: var(--gray-mid); }
.t-badge {
  display: inline-block; font-family: var(--font-mono, monospace); font-size: 0.64rem;
  letter-spacing: 0.14em; padding: 3px 10px; text-transform: uppercase; margin-top: 12px;
}
/* nella riga chip del dettaglio il badge si allinea ai chip grandi */
.t-hero__meta .t-badge { font-size: 0.78rem; padding: 8px 14px; margin-top: 0; }
.badge--live { color: var(--green-bright); border: 1px solid var(--green-dark); }
.badge--soon { color: var(--gold);        border: 1px solid #6b5a32; }
.badge--done { color: var(--gray-mid);    border: 1px solid #3a3a3a; }
.t-card__champ { display: block; margin-top: 10px; font-family: var(--font-title); color: var(--gold-light); font-size: 0.95rem; letter-spacing: 0.06em; }
.t-empty { text-align: center; color: var(--gray-mid); padding: 60px 0; }
.t-empty-small { color: var(--gray-mid); font-size: 0.85rem; }

/* ── Dettaglio: hero con banner opzionale ── */
.t-detail-hero { padding: 46px 0 8px; position: relative; }
.t-detail-hero.has-img::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(13,13,13,0.55), var(--bg-main) 92%), var(--t-banner);
  background-size: cover; background-position: center;
  pointer-events: none;
}
.t-detail-hero .container { position: relative; }
.t-detail-hero__series {
  font-family: var(--font-mono, monospace); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--green-bright); text-transform: uppercase; margin: 0 0 6px;
}
.t-detail-hero__desc { max-width: 640px; color: var(--gray-light); font-size: 0.92rem; margin: 6px 0 0; }
/* Programma del torneo: righe "· Etichetta: valore" della descrizione */
.t-program { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; max-width: 760px; }
.t-program__item {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-card); border: 1px solid #2a2a2a;
  padding: 8px 14px; min-width: 96px;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.t-program__item b {
  font-family: var(--font-mono, monospace); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--green-bright); text-transform: uppercase;
}
.t-program__item span { font-family: var(--font-title); font-size: 0.92rem; color: var(--white); letter-spacing: 0.04em; }
.t-winner-banner {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  border: 1px solid var(--gold); color: var(--gold-light);
  font-family: var(--font-title); font-size: 1.2rem; letter-spacing: 0.08em;
  padding: 12px 22px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(160deg, rgba(201, 168, 96, 0.1), transparent);
}
.t-winner-banner small { font-family: var(--font-mono, monospace); font-size: 0.6rem; letter-spacing: 0.24em; color: var(--gold); }

/* ── Tab fasi (gironi + eliminazione) ── */
.t-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.t-tab {
  font-family: var(--font-title); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 18px; border: 1px solid #2e2e2e; color: var(--gray-mid); background: none; cursor: pointer;
}
.t-tab.on { color: var(--bg-main); background: var(--green-bright); border-color: var(--green-bright); font-weight: 600; }
.t-pane.is-hidden { display: none; }

/* ── Gironi: classifica + calendario ── */
.t-group { margin-bottom: 30px; }
.t-group__name {
  font-family: var(--font-title); color: var(--white); text-transform: uppercase;
  font-size: 1.3rem; letter-spacing: 0.06em; margin: 0 0 12px;
}
.t-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.t-panel {
  background: var(--bg-card); border: 1px solid #262626; padding: 20px 22px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.t-panel__title {
  font-family: var(--font-mono, monospace); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--green-bright); margin: 0 0 14px; text-transform: uppercase;
}

.t-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.t-table th {
  font-family: var(--font-mono, monospace); font-size: 0.64rem; letter-spacing: 0.16em;
  color: var(--gray-mid); text-transform: uppercase; text-align: left;
  padding: 8px 12px; border-bottom: 1px solid #2c2c2c;
}
.t-table td { padding: 10px 12px; border-bottom: 1px solid #1f1f1f; font-variant-numeric: tabular-nums; }
.t-table td.num, .t-table th.num { text-align: center; }
.t-table tr td:first-child { border-left: 3px solid transparent; }
.t-table tr.ours td { background: rgba(255, 255, 255, 0.015); }
.t-table tr.ours td:first-child { border-left-color: var(--green-bright); }
.t-pos { font-family: var(--font-mono, monospace); color: var(--gray-mid); font-size: 0.8rem; }
.t-teamcell { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 1.02rem; letter-spacing: 0.04em; color: var(--white); }
.t-wins { color: var(--green-bright); font-weight: 600; }
.t-diff-pos { color: var(--green-bright); }
.t-diff-neg { color: #c96a5a; }

.t-tlogo {
  width: 26px; height: 26px; border-radius: 3px; flex: 0 0 26px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 700; font-size: 0.78rem;
  background: var(--bg-card-hover); color: var(--gray-light); border: 1px solid #333;
  object-fit: contain;
}

/* ── Calendario ── */
.t-day {
  font-family: var(--font-mono, monospace); font-size: 0.66rem; letter-spacing: 0.18em;
  color: var(--gray-mid); text-transform: uppercase; margin: 16px 0 8px;
}
.t-day:first-of-type { margin-top: 0; }
.t-mrow {
  display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: center;
  background: var(--bg-card-hover); border: 1px solid #2a2a2a;
  padding: 9px 14px; margin-bottom: 6px;
}
.t-mrow__t { display: flex; align-items: center; gap: 8px; font-family: var(--font-title); font-size: 0.98rem; color: var(--white); min-width: 0; }
.t-mrow__t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-mrow__t.right { justify-content: flex-end; }
.t-mrow__t.is-win span { color: var(--green-bright); }
.t-mrow__t.is-tbd span { color: #555; font-style: italic; }
.t-score {
  font-family: var(--font-mono, monospace); font-size: 0.95rem; color: var(--white);
  background: #101010; border: 1px solid #2e2e2e; padding: 3px 10px; white-space: nowrap;
}
.t-score .w { color: var(--green-bright); font-weight: 700; }
.t-score--played { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.t-score--played:hover { border-color: var(--gold); box-shadow: 0 0 10px rgba(201, 168, 96, 0.25); }
.t-mrow__side { min-width: 58px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
/* VS cliccabile quando l'evento scommesse è aperto: accento arancio betting */
.t-score--bet {
  color: #f97316; border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.08);
  font-weight: 700; cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.t-score--bet:hover {
  background: rgba(249, 115, 22, 0.2); color: #fdba74;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}
.t-when { font-family: var(--font-mono, monospace); font-size: 0.68rem; color: var(--gray-mid); white-space: nowrap; }
.t-when.is-hot { color: #e5484d; animation: t-pulse 1s ease-in-out infinite; }
@keyframes t-pulse { 50% { opacity: 0.55; } }
.t-vod { color: var(--green-bright); font-size: 0.75rem; font-family: var(--font-mono, monospace); }
.t-vod--live { color: #e5484d; animation: t-pulse 1.2s ease-in-out infinite; }

/* ── Bracket ── */
.t-bracket-scroll { overflow-x: auto; padding-bottom: 8px; }
.t-bracket { display: flex; gap: 34px; min-width: 640px; }
.t-round { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; flex: 1; min-width: 190px; }
.t-round__label {
  font-family: var(--font-mono, monospace); font-size: 0.64rem; letter-spacing: 0.2em;
  color: var(--gray-mid); text-transform: uppercase; text-align: center; margin-bottom: 2px;
}
.t-bmatch {
  position: relative; display: block;
  background: var(--bg-card-hover); border: 1px solid #2c2c2c;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.t-bmatch--link { cursor: pointer; transition: border-color 0.15s; }
.t-bmatch--link:hover { border-color: var(--gold); }
.t-bside {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 12px; font-family: var(--font-title); font-size: 0.95rem; color: var(--gray-light);
}
.t-bside + .t-bside { border-top: 1px solid #242424; }
.t-bside__nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.t-bside__nm em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-bside__sc { font-family: var(--font-mono, monospace); font-size: 0.85rem; color: var(--gray-mid); }
.t-bside.is-win { color: var(--white); }
.t-bside.is-win .t-bside__sc { color: var(--green-bright); font-weight: 700; }
.t-bside.is-tbd em { color: #555; font-style: italic; }
.t-bvs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  font-family: var(--font-mono, monospace); font-size: 0.62rem; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 700; cursor: pointer;
  padding: 2px 9px; border-radius: 20px;
  color: #f97316; border: 1px solid rgba(249, 115, 22, 0.55); background: rgba(249, 115, 22, 0.12);
  transition: background 0.15s, box-shadow 0.15s;
}
.t-bvs:hover { background: rgba(249, 115, 22, 0.25); color: #fdba74; box-shadow: 0 0 10px rgba(249, 115, 22, 0.25); }
.t-bmatch::after {
  content: ''; position: absolute; top: 50%; right: -34px; width: 34px; height: 1px;
  background: #2f3f2f;
}
.t-round.is-last .t-bmatch::after { display: none; }
.t-champion {
  align-self: center; text-align: center;
  border: 1px solid var(--gold); color: var(--gold-light);
  font-family: var(--font-title); font-size: 1.15rem; letter-spacing: 0.08em;
  padding: 14px 22px; min-width: 160px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(160deg, rgba(201, 168, 96, 0.08), transparent);
}
.t-champion small {
  display: block; font-family: var(--font-mono, monospace); font-size: 0.6rem;
  letter-spacing: 0.24em; color: var(--gold); margin-bottom: 6px;
}

/* Doppia eliminazione */
.t-tier { margin-bottom: 26px; }
.t-tier__label {
  font-family: var(--font-mono, monospace); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 10px;
}
.t-tier__label.wb { color: var(--green-bright); }
.t-tier__label.lb { color: #c96a5a; }
.t-tier__label.gf { color: var(--gold); }
.t-tier.lb .t-bmatch::after { background: #3f2b28; }

.t-back { margin-top: 34px; }
.t-back a { font-family: var(--font-mono, monospace); font-size: 0.78rem; color: var(--gray-mid); }
.t-back a:hover { color: var(--green-bright); }

/* ── Dettaglio match: header, box score, sondaggio MVP ── */
.t-match__header {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  margin: 24px 0 8px;
}
.t-match__side {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-title); font-size: 1.3rem; color: var(--gray-light);
}
.t-match__side.right { justify-content: flex-end; text-align: right; }
.t-match__side.is-win { color: var(--white); }
.t-tlogo--lg { width: 46px; height: 46px; flex: 0 0 46px; font-size: 1.1rem; border-radius: 6px; }
.t-match__score {
  text-align: center; font-family: var(--font-mono, monospace); font-size: 1.6rem; color: var(--white);
  white-space: nowrap;
}
.t-match__score .w { color: var(--green-bright); }
.t-match__score small {
  display: block; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-mid); margin-top: 4px;
}
.t-match__vod { text-align: center; margin-bottom: 10px; }

.t-match__data { margin-top: 22px; }
.t-game-pills, .t-stat-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.t-game-pill, .t-stat-tab {
  font-family: var(--font-title); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 16px; border: 1px solid #2e2e2e; color: var(--gray-mid); background: none; cursor: pointer;
}
.t-game-pill.is-active, .t-stat-tab.is-active {
  color: var(--bg-main); background: var(--green-bright); border-color: var(--green-bright); font-weight: 600;
}
.t-boxscore { margin-bottom: 14px; }
.t-boxscore:last-child { margin-bottom: 0; }
.t-table td.is-max {
  color: var(--gold-light); font-weight: 700; text-shadow: 0 0 8px rgba(201, 168, 96, 0.35);
}
.t-teamcell--click { cursor: pointer; }
.t-teamcell--click:hover { color: var(--green-bright); }
.t-champ-icon { width: 22px; height: 22px; border-radius: 4px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.t-riot-tag {
  color: rgba(255, 255, 255, 0.35); font-weight: 600; font-size: 0.72em;
  letter-spacing: 0.02em; margin-left: 6px;
}

.t-upload {
  margin-top: 20px; background: var(--bg-card); border: 1px solid var(--green-dark); padding: 20px;
}
.t-upload__title { font-family: var(--font-title); font-size: 1rem; color: var(--green-bright); margin: 0 0 6px; }
.t-upload__hint { color: var(--gray-mid); font-size: 0.82rem; line-height: 1.5; margin: 0 0 16px; }
.t-upload__hint code { color: var(--gray-light); }
.t-upload__slots { display: flex; flex-wrap: wrap; gap: 12px; }
.t-upload__slot {
  flex: 1 1 160px; background: var(--bg-card-hover); border: 1px solid #262626;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.t-upload__slot.is-filled { border-color: var(--green-dark); }
.t-upload__slot-label { font-family: var(--font-title); font-size: 0.8rem; color: var(--gray-light); }
.t-upload__slot-status { font-size: 0.76rem; color: var(--gray-mid); line-height: 1.4; }
.t-upload__slot.is-filled .t-upload__slot-status { color: var(--green-bright); }
.t-upload__slot-status.is-error { color: #c96a5a; }
.t-upload__filebtn {
  display: inline-block; background: var(--green-dark); color: var(--green-bright);
  border: 1px solid var(--green-bright); padding: 7px 12px; font-size: 0.76rem;
  font-weight: 600; cursor: pointer; text-align: center; transition: background var(--transition), color var(--transition);
}
.t-upload__filebtn:hover { background: var(--green-bright); color: var(--bg-main); }
.t-upload__filebtn input[type="file"] { display: none; }
.t-upload__done { color: var(--green-bright); font-size: 0.88rem; margin: 0 0 12px; }
.t-upload__report { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.t-upload__report-msg { color: var(--gray-mid); font-size: 0.82rem; margin-top: 10px; }

.t-oc-title { font-family: var(--font-title); font-size: 1rem; color: var(--gold-light); margin: 0 0 14px; }
.t-oc-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; max-height: 260px; overflow-y: auto; }
.t-oc-row { font-size: 0.85rem; color: var(--gray-light); }
.t-oc-actions { display: flex; gap: 10px; }

.t-mvp {
  margin-top: 26px; background: var(--bg-card); border: 1px solid #3a3222; padding: 22px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.t-mvp__title {
  font-family: var(--font-title); font-size: 1.1rem; color: var(--gold-light); margin: 0 0 6px;
}
.t-mvp__countdown, .t-mvp__result {
  font-family: var(--font-mono, monospace); font-size: 0.78rem; color: var(--gray-mid); margin: 0 0 16px;
}
.t-mvp__result strong { color: var(--gold-light); }
.t-mvp__candidates {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.t-mvp-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: var(--bg-card-hover); border: 1px solid #2a2a2a; padding: 14px 10px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.t-mvp-card:not(:disabled):hover { border-color: var(--gold); background: rgba(201, 168, 96, 0.08); }
.t-mvp-card:disabled { cursor: default; }
.t-mvp-card.is-selected { border-color: var(--green-bright); box-shadow: 0 0 0 1px var(--green-bright) inset; }
.t-mvp-card.is-voted { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.t-mvp-card.is-winner { border-color: var(--gold); background: linear-gradient(160deg, rgba(201, 168, 96, 0.12), transparent); }
.t-mvp__submit { margin-top: 16px; }
.t-mvp-card__photo {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #1a1a1a;
}
.t-mvp-card__photo--ph { border: 1px solid #333; }
.t-mvp-card__name { font-family: var(--font-title); font-size: 0.92rem; color: var(--white); }
.t-mvp-card__role { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-mid); }
.t-mvp-card__bar {
  width: 100%; height: 4px; background: #1c1c1c; margin-top: 4px; overflow: hidden;
}
.t-mvp-card__bar span { display: block; height: 100%; background: var(--gold); transition: width 0.3s; }
.t-mvp-card__pct { font-family: var(--font-mono, monospace); font-size: 0.68rem; color: var(--gray-mid); }
/* Risultati nascosti finché non voti (o il sondaggio non chiude) — niente bandwagon */
.t-mvp__candidates:not(.is-revealed) .t-mvp-card__bar,
.t-mvp__candidates:not(.is-revealed) .t-mvp-card__pct { visibility: hidden; }
.t-mvp__login { margin-top: 14px; font-size: 0.82rem; }
.t-mvp__login a { color: var(--gold-light); }
.t-mvp__msg { margin-top: 12px; font-size: 0.8rem; color: var(--gray-light); }

/* ── Modale player (click sul nome in tabella) ── */
.t-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 44px 16px; overflow-y: auto; }
.t-modal[hidden] { display: none; }
.t-modal__backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.t-modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 480px;
  background: var(--bg-card); border: 1px solid rgba(201, 168, 96, 0.4);
  padding: 30px 26px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  animation: tModalIn 0.2s cubic-bezier(.22, .61, .36, 1);
}
@keyframes tModalIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.t-modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--gray-mid); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px; }
.t-modal__close:hover { color: var(--white); }
.t-modal__title { font-family: var(--font-title); font-size: 1.25rem; color: var(--gold-light); margin: 0 0 4px; }
.t-modal__sub { font-size: 0.85rem; color: var(--gray-light); margin: 0 0 16px; }
.t-pmodal-win { color: var(--green-bright); font-weight: 700; }
.t-pmodal-loss { color: #c96a5a; font-weight: 700; }
.t-pmodal-kda {
  font-family: var(--font-mono, monospace); font-size: 1.5rem; color: var(--white);
  margin-bottom: 16px;
}
.t-pmodal-kda small {
  display: block; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-mid); margin-top: 2px;
}
.t-pmodal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.t-pmodal-stat {
  display: flex; flex-direction: column; gap: 2px; background: var(--bg-card-hover);
  border: 1px solid #262626; padding: 8px 10px;
}
.t-pmodal-stat span { font-size: 0.62rem; color: var(--gray-mid); }
.t-pmodal-stat strong { font-family: var(--font-mono, monospace); font-size: 0.95rem; color: var(--white); }
.t-pmodal-row { font-size: 0.82rem; color: var(--gray-light); margin-bottom: 6px; }
.t-pmodal-row b { color: var(--gray-mid); font-weight: 600; margin-right: 6px; }
.t-pmodal-items { display: inline-flex; gap: 4px; vertical-align: middle; }
.t-pmodal-item { width: 26px; height: 26px; border-radius: 4px; border: 1px solid #262626; }
@media (max-width: 480px) {
  .t-modal { padding: 0; align-items: flex-end; }
  .t-modal__panel { max-width: 100%; max-height: 92vh; overflow-y: auto; }
  .t-pmodal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile ── */
@media (max-width: 780px) {
  .t-split { grid-template-columns: 1fr; }
  .t-hero { padding: 22px 18px; }
  .t-hero__wm { font-size: 3.6rem; }
  .t-mrow { grid-template-columns: 1fr auto 1fr; }
  .t-mrow__side { grid-column: 1 / -1; min-width: 0; flex-direction: row; justify-content: center; align-items: center; gap: 10px; }
  .t-mrow__side:empty { display: none; }
  .t-match__header { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .t-match__side, .t-match__side.right { justify-content: center; text-align: center; }
  .t-boxscore { overflow-x: auto; display: block; }
  .t-mvp__candidates { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
