/* ReyaMon Showdown – Teams: volle Breite, Tabellen ohne Abschneiden; große Team-Ansicht (js/teamview.js) */
main:has(.d-teams) { max-width: none; }
.d-teams { grid-template-columns: repeat(auto-fill, minmax(min(100%, 720px), 1fr)) !important; }
.d-team-head { cursor: pointer; }
.d-team-head:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.d-team-head .d-team-title::after { content: "Click for the full team view"; font-size: .72rem; color: var(--muted); opacity: 0; transition: opacity .15s; }
.d-team-head:hover .d-team-title::after { opacity: 1; }

.modal-box.wide { max-width: min(1200px, 96vw); max-height: 92vh; }
.tv-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tv-logo .avatar, .tv-logo img { width: 150px; height: 150px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.tv-title h2 { margin: 0 0 8px; font-size: 1.7rem; line-height: 1.15; overflow-wrap: anywhere; }
.tv-coach { display: flex; align-items: center; gap: 12px; }
.tv-coach .avatar.lg { width: 64px; height: 64px; }
.tv-sprite { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; margin-left: 6px; }
.tv-honours { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tv-honours .badge { font-size: .85rem; padding: 3px 9px; }
.tv-nums { display: grid; grid-template-columns: repeat(2, minmax(96px, auto)); gap: 8px; }
.tv-nums > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; text-align: center; }
.tv-nums b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.tv-nums small { font-size: .75rem; color: var(--muted); font-weight: 500; }
.tv-nums span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tv-nums .pos { color: var(--good); } .tv-nums .neg { color: var(--accent); }
.tv-mvp { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #e0a400 12%, transparent); }
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.tv-mon { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tv-mon-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; }
.tv-cost { background: var(--accent); color: #fff; font-weight: 700; border-radius: 8px; padding: 1px 8px; font-size: .85rem; }
.tv-pic img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; margin-top: 8px; }
.tv-name { font-size: 1rem; margin-top: 2px; }
.tv-types { margin: 4px 0; }
.tv-abil { min-height: 2.4em; }
.tv-stats { width: 100%; margin-top: 6px; display: grid; gap: 2px; }
.tv-stat { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 6px; font-size: .74rem; }
.tv-stat span { color: var(--muted); text-align: left; }
.tv-stat i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #6a3cf0 var(--w), color-mix(in srgb, var(--line) 70%, transparent) var(--w)); }
.tv-stat i.hi { background: linear-gradient(90deg, var(--good) var(--w), color-mix(in srgb, var(--line) 70%, transparent) var(--w)); }
.tv-stat i.lo { background: linear-gradient(90deg, var(--accent) var(--w), color-mix(in srgb, var(--line) 70%, transparent) var(--w)); }
.tv-stat b { text-align: right; font-variant-numeric: tabular-nums; }
.tv-bst { font-size: .75rem; color: var(--muted); text-align: right; }
.tv-kd { display: flex; gap: 10px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.tv-kd b { color: var(--ink); }
@media (max-width: 760px) {
  .tv-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tv-coach { justify-content: center; }
  .tv-logo .avatar, .tv-logo img { width: 110px; height: 110px; }
}
