/* ══════════════════════════════════════════════════════
   MULTI.CSS — PhysEdBoard · Tableau multi-équipes
══════════════════════════════════════════════════════ */
:root {
  --timer-fs:   clamp(83px, 29vh, 234px);
  --btn-fs:     clamp(12px, 1.2vw, 15px);
  --btn-pad:    clamp(7px, .9vh, 11px) clamp(12px, 1.4vw, 20px);

  --bg:         #061428;
  --panel:      #0d2040;
  --panel2:     #112548;
  --panel-rgb:  13,32,64;
  --border:     #1a3a60;
  --border-hi:  #2a5282;
  --accent:     #ffd43b;
  --accent-rgb: 255,212,59;
  --red:        #ff3c3c;
  --text:       #ffffff;
  --text-mid:   rgba(255,255,255,.70);
  --text-dim:   rgba(255,255,255,.42);
  --dim:        #3a608a;
  --dim2:       rgba(255,255,255,.10);

  --bg-main-glow-rgb:   0,80,200;
  --bg-main-corner-rgb: 0,50,130;
  --bg-main-top:        #04101e;
  --bg-main-mid:        #061428;
  --bg-main-bot:        #091a34;

  /* settings-panel tokens */
  --sp-panel-bg:      var(--panel);
  --sp-panel-border:  var(--border);
  --sp-divider:       var(--border);
  --sp-accent:        var(--accent);
  --sp-accent-rgb:    var(--accent-rgb);
  --sp-text:          var(--text);
  --sp-text-dim:      var(--text-dim);
  --sp-section-label: rgba(255,255,255,.25);
  --sp-hover-bg:      rgba(255,255,255,.05);
  --sp-fab-bg:        rgba(var(--panel-rgb),.95);
  --sp-icon-muted:    rgba(255,255,255,.45);

  --radius:    12px;
  --radius-lg: 16px;
  --ctrl-h:    clamp(52px, 7vh, 68px);
  --tr:        0.22s cubic-bezier(.4,0,.2,1);
}

/* ════════ RESET ════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; touch-action: manipulation; }

/* ════════ BACKGROUND ════════ */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
}
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-main {
  background:
    radial-gradient(ellipse 130% 70% at 50% 115%, rgba(var(--bg-main-glow-rgb),.22) 0%, transparent 65%),
    radial-gradient(ellipse 70%  50% at 12%   0%, rgba(var(--bg-main-corner-rgb),.16) 0%, transparent 55%),
    radial-gradient(ellipse 70%  50% at 88%   0%, rgba(var(--bg-main-corner-rgb),.16) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-main-top) 0%, var(--bg-main-mid) 40%, var(--bg-main-bot) 100%);
}
.bg-vignette {
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 35%, rgba(0,0,0,.52) 100%);
}
.bg-scanlines {
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
  opacity: .45;
}

/* ════════ APP SHELL ════════ */
.app {
  position: relative;
  width: 100%; height: 100dvh;
  display: flex; flex-direction: column;
  z-index: 1;
}
.stage {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(12px, 2vh, 28px);
  padding: clamp(10px, 1.8vh, 22px) clamp(12px, 2vw, 28px);
  overflow: hidden;
}

/* ════════ TIMER ZONE ════════ */
.timer-zone {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 50px;
}
.timer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, .6vh, 8px);
  width: clamp(280px, 40vw, 480px);
}

/* ════════ TIMER DISPLAY ════════ */
#time {
  font-family: 'Bebas Neue', cursive;
  font-size: var(--timer-fs);
  line-height: .88; letter-spacing: .04em;
  color: #fff; user-select: none; text-align: center;
  text-shadow: 0 2px 0 rgba(0,0,0,.9);
  transition: color .3s, text-shadow .3s;
}
#time.warning {
  color: var(--accent);
  text-shadow: 0 3px 0 rgba(0,0,0,.8), 0 0 50px rgba(var(--accent-rgb),.65);
}
#time.danger {
  color: var(--red);
  text-shadow: 0 3px 0 rgba(0,0,0,.8), 0 0 50px rgba(255,60,60,.72);
  animation: pulse .45s infinite alternate;
}
#time.done { color: var(--dim); text-shadow: none; animation: none; }

/* ════════ PROGRESS BAR ════════ */
.progress-track {
  width: 100%; height: 3px;
  background: rgba(255,255,255,.10);
  border-radius: 3px; flex-shrink: 0; position: relative;
}
.progress-fill {
  height: 100%; background: var(--accent); border-radius: 3px;
  transition: width .1s linear, background .3s;
  box-shadow: 0 0 8px rgba(var(--accent-rgb),.5);
  position: relative;
}
.progress-fill::after {
  content: ''; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.progress-fill.danger        { background: var(--red); box-shadow: 0 0 8px rgba(255,60,60,.6); }
.progress-fill.danger::after { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ════════ STATUS BAR ════════ */
.status-bar {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: clamp(10px, 1.1vw, 13px); font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--text-dim);
  margin: 5px 0;
}
.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  transition: background .3s, box-shadow .3s;
}
.status-dot.running { background: var(--accent); box-shadow: 0 0 7px var(--accent); animation: blink 1.1s infinite; }
.status-dot.done    { background: var(--red);    box-shadow: 0 0 7px var(--red); }

/* ════════ CONTROL BUTTONS ════════ */
.control-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, .8vw, 10px);
  width: 100%;
}

/* ════════ BUTTONS ════════ */
.btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--btn-fs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 9px; padding: var(--btn-pad);
  cursor: pointer; transition: all .15s;
  min-height: 50px;
  display: flex; align-items: center; justify-content: center;
  gap: 7px; white-space: nowrap; border: 1px solid transparent;
}
.btn:active { transform: scale(.96) !important; }

.btn-main { background: var(--accent); color: #000; box-shadow: 0 3px 14px rgba(var(--accent-rgb),.3); }
.btn-main:hover            { filter: brightness(1.08); transform: translateY(-1px); }
.btn-main.is-running       { background: var(--dim2); color: var(--text); box-shadow: none; }
.btn-main.is-running:hover { background: #243550; }
.btn-main.is-paused        { background: transparent; color: var(--accent); border-color: rgba(var(--accent-rgb),.4); }
.btn-main.is-paused:hover  { background: rgba(var(--accent-rgb),.07); }

.btn-reset { background: transparent; color: rgba(255,255,255,.30); border-color: rgba(255,255,255,.10); }
.btn-reset:hover { color: var(--red); border-color: rgba(255,60,60,.40); background: rgba(255,60,60,.06); }

/* ════════ TEAMS GRID ════════ */
.teams-grid {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  align-items: center; justify-content: center;
  gap: clamp(8px, 1.5vw, 20px);
  width: 100%; flex: 1; min-height: 0;
}

/* ── Team card ── */
.team-card {
  flex: 1; min-width: 0; max-width: 420px;
  aspect-ratio: 9/7;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  background:
    linear-gradient(160deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.52) 100%),
    var(--team-color, #1a3a60);
  border-radius: var(--radius);
  overflow: hidden; position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 6px 28px rgba(0,0,0,.6),
    0 0 40px -8px var(--team-color-glow, transparent);
  transition: transform .18s, box-shadow .18s;
  cursor: default;
}
.team-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 100%);
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 14px 44px rgba(0,0,0,.65),
    0 0 60px -6px var(--team-color-glow, transparent);
}

/* Team name */
.team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(14px, 2vw, 26px); font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255,255,255,.90); text-align: center;
  padding: clamp(12px, 2vh, 20px) 8px clamp(4px, .8vh, 8px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 100%; flex-shrink: 0;
  position: relative; z-index: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}

/* Score row */
.team-score-row {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 1.2vw, 18px);
  position: relative; z-index: 1;
  padding: 0 clamp(10px, 1.8vw, 24px) clamp(24px, 3vh, 40px);
}
.team-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(68px, min(10.4vw, 15.6vh), 169px);
  line-height: 1; font-variant-numeric: tabular-nums;
  user-select: none; color: #fff;
  transition: color .15s, text-shadow .15s;
  flex-shrink: 0; min-width: 2.2ch; text-align: center;
}
.team-score.scored { animation: scoreFlash .45s ease forwards; }

/* Score buttons */
.team-btn {
  background: transparent; border: none;
  cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 0;
  width: clamp(44px, 6vw, 70px); height: clamp(44px, 6vw, 70px);
  transition: transform .1s;
}
.team-btn i {
  font-size: clamp(36px, 5.2vw, 68px);
  color: rgba(255,255,255,.80);
  transition: color .15s, transform .12s;
}
.team-btn:hover i { color: #fff; transform: scale(1.15); }
.team-btn:active  { transform: scale(.88); }

/* ════════ CARD COLOR PICKER ════════ */
.team-card-hint {
  position: absolute; bottom: 10px; right: 12px; z-index: 5;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.20);
  border-radius: 8px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,.55); cursor: pointer;
  transition: color .15s, background .15s, transform .15s, border-color .15s;
}
.team-card-hint:hover {
  color: #fff; background: rgba(0,0,0,.45);
  border-color: rgba(255,255,255,.5); transform: scale(1.12);
}
.card-color-picker {
  position: absolute; bottom: 48px; right: 8px; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; padding: 10px 12px;
  background: var(--bg-main-mid, #061428); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.8);
  animation: pickerIn .14s cubic-bezier(.34,1.5,.64,1);
}
.card-picker-swatch {
  width: 30px; height: 30px; border-radius: 5px;
  border: 2px solid transparent; cursor: pointer; outline: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s, border-color .12s, filter .12s;
  overflow: hidden;
}
.card-picker-swatch:hover:not(.disabled) { transform: scale(1.06); border-color: rgba(255,255,255,.65); }
.card-picker-swatch.active   { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.card-picker-swatch.disabled { filter: brightness(.25) saturate(.2); cursor: not-allowed; }

/* ════════ MODAL ════════ */
.teams-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(2,8,20,.88);
  align-items: center; justify-content: center;
  backdrop-filter: blur(12px);
}
.teams-overlay.visible { display: flex; }

.teams-modal {
  background: #07162a; border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  width: min(600px, 94vw); max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.85);
  animation: modalIn .2s cubic-bezier(.34,1.3,.64,1);
}
.tm-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
}
.tm-title {
  flex: 1; font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 8px;
}
.tm-title i { color: var(--accent); font-size: 12px; }
.tm-close {
  width: 34px; height: 34px; background: transparent;
  border: 1px solid rgba(255,255,255,.10); border-radius: 8px;
  color: rgba(255,255,255,.35); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--tr);
}
.tm-close:hover { border-color: var(--red); color: var(--red); background: rgba(255,60,60,.08); }

.tm-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }

.tm-divider {
  width: 1px; flex-shrink: 0;
  background: linear-gradient(to bottom,
    transparent 0%, rgba(255,212,59,.15) 20%,
    rgba(255,212,59,.22) 50%, rgba(255,212,59,.15) 80%, transparent 100%);
}

.tm-params {
  flex: 0 0 clamp(260px, 48%, 380px);
  display: flex; flex-direction: column;
  padding: 16px 18px; gap: 2px; overflow-y: auto;
}
.tm-field {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-height: 54px;
  flex-shrink: 0;
}
.tm-field:last-child { border-bottom: none; }
.tm-field-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tm-field-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tm-field-sub { font-size: 10px; color: var(--text-dim); letter-spacing: .03em; }

/* Modal spin inputs — matches minuteur pattern exactly */
.tm-duration {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.tm-dur-sep {
  font-family: 'Bebas Neue', sans-serif; font-size: 30px;
  line-height: 1; color: var(--text-dim);
}

/* Shared s-spin inside modal (duration + team count) */
.tm-params .s-spin { position: relative; width: 76px; }
.tm-params .s-spin input {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px; line-height: 1;
  height: 44px; text-align: center;
  background: rgba(var(--input-rgb,4,14,32),0.88);
  border: 1px solid var(--border); border-radius: 10px;
  color: #fff; width: 100%; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  padding: 6px 32px 6px 4px;
  -moz-appearance: textfield; appearance: textfield;
}
.tm-params .s-spin input:focus {
  border-color: rgba(var(--accent-rgb),0.52);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.08);
}
.tm-params .s-spin input::-webkit-outer-spin-button,
.tm-params .s-spin input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tm-params .spin-btns {
  position: absolute; top: 2px; right: 3px; bottom: 2px;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
}
.tm-params .spin-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 13px; padding: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  transition: color 0.14s, background 0.14s;
}
.tm-params .spin-btn:hover { color: var(--accent); background: rgba(var(--accent-rgb),0.08); }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  width: 46px; height: 26px; border-radius: 26px;
  background: var(--dim2); border: 1px solid rgba(255,255,255,.2);
  transition: background .2s, border-color .2s; position: relative;
}
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--text-mid);
  transition: transform .2s, background .2s; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.toggle-switch input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); background: #000; }

/* Teams list in modal */
.tm-teams {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 16px 14px; gap: 8px;
}
.tm-teams-list {
  flex: 1; min-height: 0; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.10) transparent;
  border-radius: 10px; background: transparent;
}
.tm-teams-list::-webkit-scrollbar       { width: 4px; }
.tm-teams-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); border-radius: 2px; }

.tm-team-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 6px 14px;
  flex-shrink: 0;
}
.tm-team-row:last-child { border-bottom: none; }
.tm-team-row.disabled   { opacity: .28; pointer-events: none; }
.tm-team-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  color: rgba(255,255,255,.75); min-width: 22px; text-align: right; flex-shrink: 0;
}
.tm-team-name-input {
  flex: 1; min-width: 0;
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; color: #fff; padding: 7px 10px; outline: none;
  transition: border-color .16s, background .16s;
}
.tm-team-name-input:focus {
  border-color: rgba(var(--accent-rgb),.42);
  background: rgba(var(--accent-rgb),.04);
}

/* Modal footer */
.tm-footer {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0; justify-content: flex-end;
}
.tm-btn-cancel {
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 8px; min-height: 40px;
  background: transparent; border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.4); cursor: pointer; transition: var(--tr);
}
.tm-btn-cancel:hover { border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.7); }
.tm-btn-confirm {
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 10px 28px; border-radius: 8px; min-height: 40px;
  background: var(--accent); color: #000; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 7px; transition: var(--tr);
  box-shadow: 0 3px 14px rgba(var(--accent-rgb),.35);
}
.tm-btn-confirm:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tm-btn-confirm i { font-size: 12px; }

/* ════════ INTRO OVERLAY ════════ */
#introOverlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  background: rgba(6,20,40,.93); backdrop-filter: blur(6px);
}
#introOverlay.visible { opacity: 1; pointer-events: all; }
#introNumber {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(140px, 38vw, 400px); line-height: 1;
  color: var(--accent); opacity: 0;
  text-shadow: 0 0 100px rgba(255,212,59,.35);
}
#introNumber.pop { animation: introPop .85s cubic-bezier(.16,1,.3,1) forwards; }
#introNumber.go  { color: #fff; text-shadow: 0 0 80px rgba(255,255,255,.2); animation: introPop .85s cubic-bezier(.16,1,.3,1) forwards; }

/* ════════ ANIMATIONS ════════ */
@keyframes pulse     { from { opacity: 1; } to { opacity: .42; } }
@keyframes blink     { 0%, 100% { opacity: 1; } 50% { opacity: .10; } }
@keyframes scoreFlash {
  0%   { color: var(--flash-color, var(--accent)); transform: scale(1.12);
         text-shadow: 0 0 40px var(--flash-color, var(--accent)), 0 0 80px var(--flash-color, var(--accent)); }
  60%  { transform: scale(1.04); }
  100% { color: #fff; transform: scale(1); text-shadow: 0 4px 0 rgba(0,0,0,.85); }
}
@keyframes introPop {
  0%   { transform: scale(.4);  opacity: 0; }
  45%  { transform: scale(1.05); opacity: 1; }
  70%  { transform: scale(.98); opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes modalIn  {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
@keyframes pickerIn {
  from { opacity: 0; transform: scale(.94) translateY(-6px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 900px) {
  :root { --timer-fs: clamp(72px, 20vw, 160px); }
  .team-name { font-size: clamp(12px, 2.5vw, 26px); }
}
@media (max-width: 767px) {
  .teams-modal { width: min(560px, 96vw); max-height: 90vh; }
  .tm-body     { flex-direction: column; overflow-y: auto; }
  .tm-divider  { width: auto; height: 1px; background: rgba(255,212,59,.12); }
  .tm-params   { flex: 0 0 auto; overflow: visible; }
  .tm-teams    { flex: 1; min-height: 200px; }
}
@media (max-width: 640px) {
  :root { --timer-fs: clamp(60px, 22vw, 120px); }
  .teams-grid { flex-wrap: wrap; gap: 10px; }
  .team-card  { flex: none; width: calc(50% - 5px); max-width: none; }
}
@media (max-width: 599px) {
  .teams-modal { width: 100vw; max-height: 100dvh; border-radius: 0; }
}
@media (max-width: 420px) {
  .teams-grid { flex-direction: column; align-items: center; }
  .team-card  { width: 90%; max-width: 360px; }
}