/* ============================================================
   suite.css — Impro Suite shell styles.

   Loaded AFTER styles.css. Every selector is namespaced under
   .suite-* so it never collides with the 4463-line styles.css.
   Reuses the existing design tokens (--gold / --ink / --radius /
   glass surfaces) so the suite looks native to the app.
   ============================================================ */

.suite-body { min-height: 100svh; }

/* ---- login gate (welcome.html requires an account) ---- */
.suite-auth-checking .suite-topbar,
.suite-auth-checking .suite-hero,
.suite-auth-checking .suite-shell,
.suite-auth-checking .suite-footer { display: none !important; }
.suite-auth-overlay { display: none; }
.suite-auth-checking .suite-auth-overlay {
  display: flex; position: fixed; inset: 0; z-index: 500;
  align-items: center; justify-content: center;
}
.suite-auth-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--gold) 25%, transparent);
  border-top-color: var(--gold);
  animation: suite-spin 0.8s linear infinite;
}
@keyframes suite-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .suite-auth-spinner { animation: none; } }

/* ---- top chrome ---- */
.suite-topbar { gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100vw - 1rem); }
.suite-topbar a { text-decoration: none; }
@media (max-width: 420px) {
  .suite-locale { padding: 0.4rem 0.55rem; font-size: 0.78rem; max-width: 7.5rem; }
}
.suite-locale-wrap { display: inline-flex; }
.suite-locale {
  appearance: none;
  background: color-mix(in srgb, var(--bg-velvet) 70%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: 600 0.85rem/1 "Inter", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.suite-locale:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.suite-hero { padding-top: clamp(3.2rem, 9vw, 4.5rem); }
.suite-hero-logo { max-width: clamp(150px, 34vw, 240px); }

.suite-shell {
  position: relative;
  z-index: 5;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 0 clamp(0.85rem, 4vw, 1.5rem) 5.5rem;
}
.suite-root { width: 100%; }

.suite-footer { position: relative; z-index: 5; }

/* ============================================================
   ACCUEIL (launcher)
   ============================================================ */
.suite-home-head { text-align: center; margin: 0.5rem 0 1.4rem; }
.suite-home-title {
  font: 400 clamp(2rem, 7vw, 3rem)/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
}
.suite-home-sub {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--gold-soft);
  margin: 0.35rem 0 0;
}

.suite-launch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.suite-launch-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.95rem;
  align-items: center;
  text-align: left;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
  background:
    linear-gradient(160deg,
      color-mix(in srgb, #ffffff 8%, transparent),
      color-mix(in srgb, #ffffff 2%, transparent));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.suite-launch-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .5;
}
.suite-launch-card:hover,
.suite-launch-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: var(--shadow-card), 0 0 24px color-mix(in srgb, var(--gold) 18%, transparent);
  outline: none;
}
.suite-launch-icon { grid-row: 1 / 3; font-size: 2.1rem; line-height: 1; }
.suite-launch-title {
  font: 400 1.55rem/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.suite-launch-desc { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.35; }
.suite-soon-tag {
  position: absolute; top: 0.7rem; right: 0.8rem;
  font: 700 0.62rem/1 "Inter", sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--gold-soft);
  padding: 0.22rem 0.5rem; border-radius: 999px;
}

/* ============================================================
   SECTION CHROME (heads / buttons)
   ============================================================ */
.suite-section-head { margin: 0.2rem 0 1.1rem; }
.suite-back {
  display: inline-flex; align-items: center;
  background: none; border: none; cursor: pointer;
  color: var(--ink-muted);
  font: 600 0.85rem/1 "Inter", sans-serif;
  padding: 0.3rem 0; margin-bottom: 0.5rem;
}
.suite-back:hover { color: var(--gold); }
.suite-h1 {
  font: 400 clamp(1.7rem, 6vw, 2.4rem)/1.05 "Bebas Neue", sans-serif;
  letter-spacing: 0.02em; color: var(--ink); margin: 0;
}
.suite-sub { color: var(--ink-muted); margin: 0.3rem 0 0; font-size: 0.9rem; }

.suite-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: 600 0.92rem/1 "Inter", sans-serif;
  padding: 0.78rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 46px;
  transition: transform .14s ease, filter .14s ease, background .14s ease;
}
.suite-btn:active { transform: translateY(1px); }
.suite-btn-primary {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 25%, transparent);
}
.suite-btn-primary:hover { filter: brightness(1.06); }
.suite-btn-ghost {
  color: var(--ink);
  background: color-mix(in srgb, #ffffff 6%, transparent);
  border-color: color-mix(in srgb, #ffffff 16%, transparent);
}
.suite-btn-ghost:hover { border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.suite-btn-danger {
  color: var(--ink);
  background: color-mix(in srgb, var(--crimson) 22%, transparent);
  border-color: color-mix(in srgb, var(--crimson) 45%, transparent);
}
.suite-btn-danger:hover { background: color-mix(in srgb, var(--crimson) 34%, transparent); }
.suite-btn-mini { min-height: 38px; padding: 0.5rem 0.85rem; font-size: 0.82rem; }

/* ============================================================
   CHOICE GRID (Match landing)
   ============================================================ */
.suite-choice-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.suite-choice {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; row-gap: 0.15rem;
  align-items: center; text-align: left;
  padding: 1rem 1.1rem; border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, #ffffff 7%, transparent), color-mix(in srgb, #ffffff 2%, transparent));
  backdrop-filter: blur(10px); color: var(--ink); cursor: pointer;
  transition: transform .16s ease, border-color .16s ease;
}
.suite-choice:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.suite-choice-icon { grid-row: 1 / 3; font-size: 1.8rem; }
.suite-choice-title { font: 400 1.3rem/1 "Bebas Neue", sans-serif; letter-spacing: .02em; color: var(--gold); }
.suite-choice-desc { font-size: 0.82rem; color: var(--ink-muted); }

/* ============================================================
   FORMS (PrepForm)
   ============================================================ */
.suite-form { display: flex; flex-direction: column; gap: 1.15rem; }
.suite-field { display: flex; flex-direction: column; gap: 0.5rem; }
.suite-label {
  font: 700 0.72rem/1.2 "Inter", sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
}
.suite-auto { color: var(--ink-faint); font-weight: 500; text-transform: none; letter-spacing: 0; }
.suite-help { font-size: 0.78rem; color: var(--ink-faint); margin: 0; }

.suite-seg {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  background: color-mix(in srgb, var(--bg-velvet) 40%, transparent);
  padding: 0.3rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
}
.suite-seg-opt {
  flex: 1 1 auto; min-width: 64px;
  font: 600 0.85rem/1 "Inter", sans-serif;
  color: var(--ink-muted);
  background: none; border: none; border-radius: 999px;
  padding: 0.6rem 0.7rem; cursor: pointer; white-space: nowrap;
  transition: background .14s ease, color .14s ease;
}
.suite-seg-opt.is-on {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  font-weight: 700;
}

.suite-stepper {
  display: inline-flex; align-items: center; gap: 0;
  width: max-content;
  border: 1px solid color-mix(in srgb, #ffffff 14%, transparent);
  border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--bg-velvet) 35%, transparent);
}
.suite-step-btn {
  width: 46px; height: 46px; font-size: 1.3rem; line-height: 1;
  background: none; border: none; color: var(--gold); cursor: pointer;
}
.suite-step-btn:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.suite-step-val {
  min-width: 48px; text-align: center;
  font: 700 1.1rem/1 "Inter", sans-serif; color: var(--ink);
}

.suite-form-actions { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
.suite-form-actions .suite-btn { flex: 1; }

/* ============================================================
   SETLIST EDITOR
   ============================================================ */
.suite-setlist { display: flex; flex-direction: column; gap: 0.8rem; }
.suite-empty {
  text-align: center; color: var(--ink-faint);
  padding: 1.6rem 1rem; font-style: italic;
}
.suite-seg-card {
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, #ffffff 11%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, #ffffff 7%, transparent), color-mix(in srgb, #ffffff 2%, transparent));
  backdrop-filter: blur(10px);
  padding: 0.85rem 0.9rem;
}
.suite-seg-top {
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.suite-seg-n {
  font: 400 1.2rem/1 "Bebas Neue", sans-serif; letter-spacing: .03em;
  color: var(--gold); margin-right: auto;
}
.suite-nature-pill {
  font: 700 0.66rem/1 "Inter", sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--troupe);
  background: color-mix(in srgb, var(--troupe) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--troupe) 40%, transparent);
  border-radius: 999px; padding: 0.34rem 0.6rem; cursor: pointer;
}
.suite-nature-pill.is-comparee {
  color: var(--match);
  background: color-mix(in srgb, var(--match) 16%, transparent);
  border-color: color-mix(in srgb, var(--match) 45%, transparent);
}
.suite-seg-move { display: inline-flex; gap: 0.25rem; }

.suite-icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, #ffffff 6%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
  color: var(--ink); cursor: pointer; font-size: 0.95rem;
  transition: background .14s ease, border-color .14s ease;
}
.suite-icon-btn:hover { border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.suite-icon-btn:disabled { opacity: 0.3; cursor: default; }
.suite-icon-btn.is-on { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold); }
.suite-icon-danger:hover { border-color: color-mix(in srgb, var(--crimson) 55%, transparent); background: color-mix(in srgb, var(--crimson) 20%, transparent); }

.suite-seg-fields { display: flex; flex-direction: column; gap: 0.4rem; }
.suite-frow {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center; gap: 0.55rem;
  padding: 0.35rem 0;
  border-top: 1px solid color-mix(in srgb, #ffffff 7%, transparent);
}
.suite-frow:first-child { border-top: none; }
.suite-flabel {
  font: 700 0.66rem/1.1 "Inter", sans-serif; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-faint);
}
.suite-fval { color: var(--ink); font-size: 0.92rem; word-break: break-word; }
.suite-frow.is-locked .suite-fval { color: var(--gold-soft); }
.suite-fbtns { display: inline-flex; gap: 0.25rem; }
.suite-edit-select {
  width: 100%;
  background: color-mix(in srgb, var(--bg-velvet) 70%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: 8px; padding: 0.45rem 0.5rem;
  font: 500 0.9rem/1 "Inter", sans-serif;
}

.suite-addseg {
  width: 100%;
  padding: 0.8rem; border-radius: var(--radius-md);
  border: 1px dashed color-mix(in srgb, var(--gold) 40%, transparent);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
  color: var(--gold); cursor: pointer;
  font: 600 0.9rem/1 "Inter", sans-serif;
}
.suite-addseg:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); }

/* sticky bottom action bar */
.suite-sticky-actions {
  position: sticky; bottom: 0; z-index: 6;
  display: flex; gap: 0.5rem;
  margin: 1rem -0.4rem 0; padding: 0.7rem 0.4rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-deep) 92%, transparent) 35%);
  backdrop-filter: blur(6px);
}
.suite-sticky-actions .suite-btn { flex: 1; }

/* ============================================================
   SAVED LIST
   ============================================================ */
.suite-list { display: flex; flex-direction: column; gap: 0.6rem; }
.suite-list-item {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 0.85rem 0.9rem; border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, #ffffff 11%, transparent);
  background: color-mix(in srgb, #ffffff 5%, transparent);
}
.suite-list-title { font: 600 1.05rem/1.2 "Inter", sans-serif; color: var(--ink); display: block; }
.suite-list-meta { font-size: 0.78rem; color: var(--ink-faint); }
.suite-list-actions { display: flex; gap: 0.45rem; }
.suite-list-actions .suite-btn { flex: 1; }

/* ============================================================
   DIALOG + TOAST + STUB
   ============================================================ */
.suite-dialog {
  border: none; padding: 0; background: transparent;
  max-width: min(440px, 92vw);
  max-height: 100svh;
}
.suite-dialog::backdrop { background: color-mix(in srgb, var(--bg-deep) 72%, transparent); backdrop-filter: blur(4px); }
.suite-dialog-body {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  background: linear-gradient(160deg, var(--bg-velvet), var(--bg-mid));
  box-shadow: var(--shadow-card);
  /* never let a tall dialog (teams editor on a short/landscape phone) push its
     Save/Cancel row off-screen — scroll within the viewport instead. */
  max-height: calc(100svh - 1.5rem);
  overflow-y: auto;
}
.suite-dialog-title { font: 400 1.5rem/1 "Bebas Neue", sans-serif; color: var(--gold); margin: 0; }
.suite-dialog-text { color: var(--ink-muted); margin: 0; line-height: 1.5; font-size: 0.92rem; }
.suite-dialog-actions { display: flex; gap: 0.5rem; }
.suite-dialog-actions .suite-btn { flex: 1; }
.suite-input {
  background: color-mix(in srgb, var(--bg-deep) 60%, transparent);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, #ffffff 16%, transparent);
  border-radius: var(--radius-sm); padding: 0.7rem 0.8rem;
  font: 500 1rem/1.2 "Inter", sans-serif;
}
.suite-input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.suite-toast {
  position: fixed; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(16px);
  z-index: 300;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--bg-deep); font: 700 0.9rem/1 "Inter", sans-serif;
  padding: 0.8rem 1.2rem; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.suite-toast.is-in { opacity: 1; transform: translateX(-50%) translateY(0); }

.suite-stub {
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, #ffffff 11%, transparent);
  background: color-mix(in srgb, #ffffff 4%, transparent);
  padding: 1.6rem; text-align: center;
}
.suite-stub-text { color: var(--ink-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   TEAMS card + editor
   ============================================================ */
.suite-teams-card {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, #ffffff 11%, transparent);
  background: color-mix(in srgb, #ffffff 5%, transparent);
}
.suite-teams-vs { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; flex-wrap: wrap; }
.suite-vs {
  font: 400 0.95rem/1 "Bebas Neue", sans-serif; letter-spacing: 0.08em;
  color: var(--ink-faint); flex: 0 0 auto;
}
.suite-tc { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 0; }
.suite-tc-logo {
  width: 28px; height: 28px; border-radius: 7px; object-fit: cover;
  background: color-mix(in srgb, #ffffff 10%, transparent);
  flex: 0 0 auto;
}
.suite-tc-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 2px color-mix(in srgb, #000 25%, transparent) inset; }
.suite-tc-nm {
  font: 600 0.92rem/1.2 "Inter", sans-serif; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9rem;
}
.suite-tc-pc {
  font: 700 0.66rem/1 "Inter", sans-serif; color: var(--bg-deep);
  background: var(--gold-soft); border-radius: 999px; padding: 0.16rem 0.42rem; flex: 0 0 auto;
}
.suite-teams-card .suite-btn { flex: 0 0 auto; margin-left: auto; }

.suite-teams-dialog { max-width: min(640px, 94vw); }
.suite-teams-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.suite-team-panel {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 0.8rem; border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, #ffffff 11%, transparent);
  background: color-mix(in srgb, #ffffff 4%, transparent);
}
.suite-team-h {
  display: flex; align-items: center; gap: 0.45rem;
  font: 400 1.1rem/1 "Bebas Neue", sans-serif; letter-spacing: 0.03em; color: var(--gold);
}
.suite-team-logo-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.suite-logo-prev {
  width: 52px; height: 52px; border-radius: 10px; flex: 0 0 auto;
  border: 1px dashed color-mix(in srgb, var(--gold) 35%, transparent);
  background: color-mix(in srgb, #ffffff 5%, transparent);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.suite-logo-prev.has { border-style: solid; }
.suite-logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.suite-team-logo-btns { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.suite-color-pick {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font: 600 0.72rem/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.suite-color-in {
  width: 34px; height: 34px; padding: 0; border: none; border-radius: 8px;
  background: none; cursor: pointer;
}
.suite-team-players { resize: vertical; min-height: 84px; font-family: "Inter", sans-serif; line-height: 1.5; }

@media (min-width: 560px) {
  .suite-teams-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   LIVE MODE — hide shell chrome for presenter + display
   ============================================================ */
.suite-live-mode .suite-topbar, .suite-live-mode .suite-hero, .suite-live-mode .suite-footer,
.suite-display-mode .suite-topbar, .suite-display-mode .suite-hero, .suite-display-mode .suite-footer,
.suite-record-mode .suite-topbar, .suite-record-mode .suite-hero, .suite-record-mode .suite-footer { display: none !important; }
.suite-live-mode .suite-shell, .suite-display-mode .suite-shell, .suite-record-mode .suite-shell { max-width: none; padding: 0; }
.suite-record-mode .suite-sectionnav { display: none !important; }
.suite-record-mode .suite-root { padding: 0; }
.suite-live-mode .suite-root { max-width: 680px; margin: 0 auto; padding: 0.7rem 0.8rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
.suite-display-mode, .suite-display-mode body { overflow: hidden; }
.suite-display-mode .suite-root { padding: 0; }

/* ---- record device (#/record): camera + synced match overlay ---- */
.rec-stage { position: relative; display: flex; flex-direction: column; height: 100svh; background: #000; }
.rec-videowrap { position: relative; flex: 1 1 auto; min-height: 0; background: #05030a; overflow: hidden; }
.rec-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #05030a; }
.rec-dot { position: absolute; top: 0.9rem; right: 1rem; width: 14px; height: 14px; border-radius: 50%; background: #e4534f; box-shadow: 0 0 14px rgba(228,83,79,.8); animation: rec-blink 1.1s steps(2, start) infinite; }
@keyframes rec-blink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.rec-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(0.6rem, 2vw, 1.2rem);
  background: linear-gradient(to top, rgba(5,3,10,0.82), rgba(5,3,10,0)); }
.rec-info { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.rec-teams { display: flex; align-items: center; justify-content: center; gap: clamp(0.6rem, 3vw, 2rem); width: 100%; }
.rec-team { display: flex; align-items: center; gap: 0.45rem; color: var(--ink); min-width: 0; }
.rec-team-logo { width: clamp(28px,5vw,44px); height: clamp(28px,5vw,44px); border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.rec-team-dot { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; }
.rec-team-nm { font: 400 clamp(1rem,2.6vw,1.8rem)/1 "Bebas Neue", sans-serif; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28vw; }
.rec-team-sc { font: 400 clamp(1.4rem,4vw,2.6rem)/1 "Bebas Neue", sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.rec-clock { font: 400 clamp(1.6rem,5vw,3rem)/1 "Bebas Neue", sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; padding: 0 clamp(0.4rem,2vw,1.2rem); }
.rec-teams-solo { justify-content: center; }
.rec-cat { font: 700 clamp(0.85rem,2.4vw,1.4rem)/1.1 "Inter", sans-serif; color: var(--gold-soft); text-transform: uppercase; letter-spacing: .04em; }
.rec-theme { font: italic 400 clamp(0.8rem,2vw,1.1rem)/1.2 "Playfair Display", serif; color: var(--ink-muted); }
.rec-controls { flex: 0 0 auto; display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem clamp(0.6rem,2vw,1rem); background: var(--bg-deep); border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.rec-toggle.is-recording { background: #e4534f; border-color: #e4534f; color: #fff; }
.rec-status { color: var(--ink-muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; flex: 1 1 auto; }
.rec-msg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--ink-muted);
  background: rgba(5,3,10,0.85); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 0.8rem 1.2rem; max-width: 80%; text-align: center; font-size: 0.92rem; }

/* ---- presenter ---- */
.live-bar-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.live-title { flex: 1; text-align: center; font: 600 0.95rem/1.2 "Inter", sans-serif; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-bar-top .suite-back { margin: 0; }

.live-seg {
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, #ffffff 8%, transparent), color-mix(in srgb, #ffffff 2%, transparent));
  padding: 0.9rem 1rem; margin-bottom: 0.8rem;
}
.live-seg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.live-seg-n { font: 600 0.8rem/1 "Inter", sans-serif; color: var(--ink-faint); }
.live-cat { font: 400 clamp(1.6rem, 6vw, 2.3rem)/1.05 "Bebas Neue", sans-serif; letter-spacing: 0.02em; color: var(--gold); }
.live-theme { font: 500 1.02rem/1.35 "Inter", sans-serif; color: var(--ink); margin-top: 0.25rem; }
.live-meta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.5rem; color: var(--ink-muted); font-size: 0.85rem; }
.live-seg-empty { color: var(--ink-faint); font-style: italic; text-align: center; }

.live-chrono-wrap { text-align: center; margin-bottom: 0.85rem; }
.live-chrono {
  font: 400 clamp(3.4rem, 17vw, 5.4rem)/1 "Bebas Neue", sans-serif;
  letter-spacing: 0.04em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.live-chrono.is-warn { color: var(--gold); }
.live-chrono.is-danger { color: var(--crimson-bright); }
.live-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, #ffffff 12%, transparent); overflow: hidden; margin: 0.3rem 0 0.7rem; }
.live-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width .25s linear; }
.live-timer-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.live-timer-btns .suite-btn { flex: 1 1 30%; white-space: nowrap; font-size: 0.86rem; padding-left: 0.5rem; padding-right: 0.5rem; }
.live-prim { flex: 1 1 100%; }
.live-phase-btns { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.live-phase-btns .suite-btn { flex: 1; }

.live-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.8rem; }
.live-team {
  border-radius: var(--radius-md); padding: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--team) 50%, transparent);
  background: color-mix(in srgb, var(--team) 12%, transparent);
}
.live-team-h { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.5rem; }
.live-team-logo { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.live-team-nm { font: 600 0.95rem/1.1 "Inter", sans-serif; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-score-row { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.live-score-btn {
  width: 54px; height: 54px; border-radius: 12px; flex: 0 0 auto;
  font-size: 1.7rem; line-height: 1; color: var(--ink);
  background: color-mix(in srgb, var(--team) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--team) 55%, transparent); cursor: pointer;
}
.live-score-btn:active { transform: scale(0.94); }
.live-score-val { font: 400 2.4rem/1 "Bebas Neue", sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
.live-pens { display: flex; gap: 0.4rem; justify-content: center; margin-top: 0.55rem; }
.live-pen-dot {
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, #ffffff 10%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 25%, transparent);
}
.live-pen-dot.is-on { background: var(--crimson-bright); border-color: var(--crimson-bright); }

.live-transport { display: flex; gap: 0.5rem; margin-bottom: 0.7rem; }
.live-transport .suite-btn { flex: 1; }
.live-foot { display: flex; gap: 0.5rem; }
.live-foot .suite-btn { flex: 1; font-size: 0.82rem; }
.live-scores-toggle.is-on { border-color: color-mix(in srgb, var(--gold) 50%, transparent); color: var(--gold); }

.live-done { text-align: center; padding: 1rem; margin-bottom: 0.8rem;
  border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  background: color-mix(in srgb, var(--gold) 8%, transparent); }
.live-done-title { font: 400 1.4rem/1 "Bebas Neue", sans-serif; color: var(--gold); letter-spacing: 0.04em; }
.live-done-score { font: 400 3rem/1 "Bebas Neue", sans-serif; color: var(--ink); margin: 0.3rem 0; }
.live-done-msg { color: var(--ink-muted); }

/* ---- public display board ---- */
.disp-wait { display: flex; align-items: center; justify-content: center; height: 100vh; height: 100svh;
  color: var(--ink-faint); font: 400 clamp(1.4rem,4vw,2.2rem)/1.2 "Bebas Neue", sans-serif; letter-spacing: 0.05em; }
.disp-board { display: flex; flex-direction: column; height: 100vh; height: 100svh; }
.disp-teams { display: flex; align-items: stretch; flex: 1.1; min-height: 0; }
.disp-team { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1rem; background: color-mix(in srgb, var(--team) 20%, transparent); min-width: 0; }
.disp-team-a { border-right: 1px solid color-mix(in srgb, #fff 10%, transparent); }
.disp-team-b { border-left: 1px solid color-mix(in srgb, #fff 10%, transparent); }
.disp-logo { width: clamp(60px, 12vw, 130px); height: clamp(60px, 12vw, 130px); border-radius: 16px; object-fit: cover; }
.disp-logo-ph { background: color-mix(in srgb, var(--team) 40%, transparent); }
.disp-team-nm { font: 400 clamp(1.3rem, 4.2vw, 3rem)/1 "Bebas Neue", sans-serif; letter-spacing: 0.02em; color: var(--ink);
  text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disp-score { font: 400 clamp(3.5rem, 11vw, 8rem)/0.9 "Bebas Neue", sans-serif; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
/* Penalties (fautes) on the public board */
.disp-pens { display: flex; gap: 0.45rem; margin-top: 0.5rem; }
.disp-pen-dot { width: clamp(0.7rem, 1.8vw, 1.1rem); height: clamp(0.7rem, 1.8vw, 1.1rem); border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--team, #888) 70%, #fff 10%); background: transparent; box-sizing: border-box; }
.disp-pen-dot.is-on { background: #e4534f; border-color: #e4534f; box-shadow: 0 0 12px rgba(228,83,79,.6); }

/* Presenter: étoiles row */
.live-stars-row { display: flex; justify-content: center; margin: 0 0 0.8rem; }
.live-stars-row .suite-btn.is-on { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold); color: var(--gold); }

/* Public board: étoiles ceremony */
.disp-stars .disp-overlay-label { color: var(--gold); }
.disp-stars-list { display: flex; flex-direction: column; gap: clamp(0.8rem, 2.5vh, 1.6rem); margin-top: clamp(1rem, 4vh, 2.4rem); width: min(90vw, 880px); }
.disp-star-row { display: flex; align-items: center; gap: clamp(0.7rem, 2.5vw, 1.6rem);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(245,196,81,0.22); border-radius: 16px; padding: clamp(0.6rem, 2vh, 1.2rem) clamp(0.9rem, 3vw, 1.8rem); }
.disp-star-medal { font-size: clamp(2rem, 6vw, 4rem); line-height: 1; flex: 0 0 auto; }
.disp-star-label { font: 700 clamp(0.8rem, 2vw, 1.3rem)/1.1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); flex: 0 0 auto; min-width: clamp(7rem, 22vw, 12rem); }
.disp-star-name { font: 400 clamp(1.6rem, 5vw, 3.4rem)/1 "Bebas Neue", sans-serif; color: #fff; flex: 1 1 auto; }
.disp-star-team { font: 600 clamp(0.75rem, 1.8vw, 1.1rem)/1 "Inter", sans-serif; color: var(--team, #888);
  border: 1px solid color-mix(in srgb, var(--team, #888) 55%, transparent); padding: 0.3rem 0.7rem; border-radius: 999px; flex: 0 0 auto; }
.disp-star-empty { font: 400 clamp(1.4rem, 4vw, 2.6rem)/1 "Bebas Neue", sans-serif; color: var(--ink-faint); flex: 1 1 auto; }

/* ============================================================
   MES ÉQUIPES (teams library + editor)
   ============================================================ */
.suite-section-title { font: 400 clamp(1.6rem,4vw,2.4rem)/1 "Bebas Neue", sans-serif; color: var(--gold); letter-spacing: 0.03em; margin: 0; flex: 1 1 auto; }
.suite-section-sub { color: var(--ink-muted); font-size: 0.9rem; margin: 0 0 1.1rem; }
.suite-section-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }

.suite-home-extra { display: flex; justify-content: center; margin-top: 1.2rem; }
.suite-home-link { appearance: none; cursor: pointer; background: rgba(255,255,255,0.04); border: 1px solid rgba(245,196,81,0.25);
  color: var(--ink); border-radius: 999px; padding: 0.55rem 1.2rem; font: inherit; font-size: 0.92rem; font-weight: 600;
  transition: border-color .15s, background .15s; }
.suite-home-link:hover { border-color: var(--gold); background: rgba(245,196,81,0.1); }

.teams-empty { color: var(--ink-muted); text-align: center; padding: 2.4rem 1rem; border: 1px dashed rgba(255,255,255,0.12); border-radius: 14px; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; }
.teams-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-left: 3px solid var(--team, #888);
  border-radius: 14px; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.7rem; }
.teams-card-h { display: flex; align-items: center; gap: 0.7rem; }
.teams-card-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.teams-card-logo-ph { display: inline-block; }
.teams-card-meta { min-width: 0; }
.teams-card-name { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teams-card-count { color: var(--ink-faint); font-size: 0.8rem; }
.teams-card-actions { display: flex; gap: 0.4rem; }
.teams-card-actions .suite-btn { flex: 1; }

/* editor */
.suite-team-edit-body { gap: 0.8rem; }
.team-edit-top { display: flex; gap: 0.7rem; }
.team-name-field { flex: 1 1 auto; }
.team-color-field { flex: 0 0 auto; }
.team-color-in { width: 48px; height: 38px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; background: none; padding: 2px; cursor: pointer; }
.team-pl-head { font-weight: 700; color: var(--gold-soft); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; margin-top: 0.3rem; }
.team-pl-n { color: var(--ink-faint); }
.team-pl-list { display: flex; flex-direction: column; gap: 0.45rem; max-height: 46vh; overflow-y: auto; }
.team-pl-row { display: flex; align-items: center; gap: 0.45rem; }
.team-pl-ava { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; }
.team-pl-photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); font-size: 1.1rem; }
.team-pl-photo-ph { color: var(--ink-faint); }
.team-pl-row .team-player-name { flex: 1 1 auto; min-width: 0; }
.team-pl-link { flex: 0 0 auto; appearance: none; cursor: pointer; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14);
  color: var(--ink-muted); border-radius: 999px; padding: 0.35rem 0.6rem; font: inherit; font-size: 0.75rem; white-space: nowrap; }
.team-pl-link:hover { border-color: var(--gold); color: var(--gold-soft); }
.team-pl-link.is-linked { border-color: var(--troupe); color: var(--troupe); background: color-mix(in srgb, var(--troupe) 12%, transparent); }
.team-pl-del { flex: 0 0 auto; appearance: none; cursor: pointer; background: none; border: 0; color: var(--ink-faint); font-size: 1rem; padding: 0.2rem 0.4rem; border-radius: 6px; }
.team-pl-del:hover { color: #e4534f; background: rgba(228,83,79,0.12); }
.team-pl-add { align-self: flex-start; }
.team-edit-err { color: #e4534f; font-size: 0.85rem; margin: 0; }

/* account-link sub-popup */
.suite-link-dialog .link-results { display: flex; flex-direction: column; gap: 0.35rem; max-height: 40vh; overflow-y: auto; }
.link-hint { color: var(--ink-faint); font-size: 0.85rem; padding: 0.5rem 0.2rem; }
.link-res { display: flex; align-items: baseline; gap: 0.5rem; appearance: none; cursor: pointer; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--ink); border-radius: 10px; padding: 0.5rem 0.7rem; font: inherit; }
.link-res:hover { border-color: var(--gold); background: rgba(245,196,81,0.1); }
.link-res-nm { font-weight: 600; }
.link-res-pn { color: var(--ink-faint); font-size: 0.82rem; }

/* match team editor: player rows + present toggles + load-saved picker */
.suite-pl-headrow { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.4rem; }
.suite-pl-present-n { color: var(--ink-faint); font-size: 0.75rem; }
.suite-pl-list { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.35rem 0; max-height: 38vh; overflow-y: auto; }
.suite-pl-none { color: var(--ink-faint); font-size: 0.82rem; font-style: italic; padding: 0.3rem 0.1rem; }
.suite-pl-row { display: flex; align-items: center; gap: 0.4rem; }
.suite-pl-row.is-absent .suite-pl-name { opacity: 0.45; text-decoration: line-through; }
.suite-pl-present-l { flex: 0 0 auto; display: inline-flex; cursor: pointer; }
.suite-pl-present { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.suite-pl-row .suite-pl-name { flex: 1 1 auto; min-width: 0; }
.suite-pl-badge { flex: 0 0 auto; font-size: 0.95rem; }
.suite-pl-mini { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.suite-pl-del2 { flex: 0 0 auto; appearance: none; cursor: pointer; background: none; border: 0; color: var(--ink-faint); font-size: 0.95rem; padding: 0.15rem 0.35rem; border-radius: 6px; }
.suite-pl-del2:hover { color: #e4534f; background: rgba(228,83,79,0.12); }
.suite-pl-tools { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.suite-load-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 50vh; overflow-y: auto; }
.suite-load-item { display: flex; align-items: center; gap: 0.6rem; appearance: none; cursor: pointer; text-align: left;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--ink); border-radius: 12px; padding: 0.55rem 0.7rem; font: inherit; }
.suite-load-item:hover { border-color: var(--gold); background: rgba(245,196,81,0.1); }
.suite-load-logo { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.suite-load-logo-ph { display: inline-block; }
.suite-load-nm { font-weight: 600; flex: 1 1 auto; }
.suite-load-c { color: var(--ink-faint); font-size: 0.8rem; flex: 0 0 auto; }

@media (max-width: 520px) {
  .team-pl-link span, .team-pl-link { font-size: 0.72rem; }
  .teams-grid { grid-template-columns: 1fr; }
}
.disp-center { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; padding: 0 clamp(0.5rem, 3vw, 2rem); }
.disp-clock { font: 400 clamp(2.8rem, 9vw, 6rem)/1 "Bebas Neue", sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; }
.disp-nature { font: 700 clamp(0.7rem,1.6vw,1rem)/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--troupe); padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--troupe) 45%, transparent); }
.disp-nature.is-comparee { color: var(--match); border-color: color-mix(in srgb, var(--match) 50%, transparent); }
.disp-info { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  text-align: center; padding: 1rem clamp(1rem, 5vw, 3rem); }
.disp-cat { font: 400 clamp(2.2rem, 7vw, 5rem)/1.05 "Bebas Neue", sans-serif; letter-spacing: 0.02em; color: var(--gold); }
.disp-theme { font: 500 clamp(1.1rem, 3.2vw, 2.2rem)/1.3 "Inter", sans-serif; color: var(--ink); }
.disp-players { font: 500 clamp(0.9rem, 2vw, 1.4rem)/1 "Inter", sans-serif; color: var(--ink-muted); }

.disp-overlay { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; height: 100vh; height: 100svh; }
.disp-overlay-label { font: 400 clamp(2rem, 8vw, 5.5rem)/1 "Bebas Neue", sans-serif; letter-spacing: 0.06em; color: var(--gold); text-transform: uppercase; }
.disp-clock-big { font-size: clamp(4rem, 18vw, 11rem); }
.disp-final { font: 400 clamp(4rem, 14vw, 9rem)/0.9 "Bebas Neue", sans-serif; color: var(--ink); }
.disp-winner { font: 400 clamp(1.6rem, 5vw, 3.2rem)/1.1 "Bebas Neue", sans-serif; color: var(--gold-soft); }
.disp-fs { position: fixed; bottom: 0.8rem; right: 0.8rem; width: 44px; height: 44px; border-radius: 10px;
  background: color-mix(in srgb, #000 35%, transparent); border: 1px solid color-mix(in srgb, #fff 20%, transparent);
  color: var(--ink); font-size: 1.1rem; cursor: pointer; opacity: 0.5; }
.disp-fs:hover { opacity: 1; }

/* ============================================================
   SECTION SWITCHER (persistent nav between sections)
   ============================================================ */
.suite-sectionnav {
  display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center;
  margin: 0 auto clamp(1rem, 3vw, 1.5rem);
  width: 100%;
}
.suite-live-mode .suite-sectionnav, .suite-display-mode .suite-sectionnav { display: none !important; }
.suite-navpill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ffffff 12%, transparent);
  background: color-mix(in srgb, #ffffff 5%, transparent);
  color: var(--ink-muted); cursor: pointer;
  font: 600 0.85rem/1 "Inter", sans-serif;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.suite-navpill:hover { color: var(--ink); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.suite-navpill.is-on {
  color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}
.suite-navpill-icon { font-size: 1rem; }
@media (max-width: 480px) {
  .suite-navpill { padding: 0.5rem 0.7rem; }
  .suite-navpill-label { display: none; }   /* icons-only on small phones */
  .suite-navpill-icon { font-size: 1.2rem; }
}

/* ============================================================
   DÉCOUVERTE
   ============================================================ */
.suite-h2 {
  font: 400 clamp(1.3rem, 4vw, 1.7rem)/1.1 "Bebas Neue", sans-serif;
  letter-spacing: 0.02em; color: var(--ink); margin: 0 0 0.2rem;
}
.suite-discover-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin-bottom: 1.6rem; }
/* launch-card "more info" button + keyboard focus (cards are now divs) */
.suite-launch-card { cursor: pointer; }
.suite-launch-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.suite-launch-info { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; appearance: none; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: var(--ink-muted);
  width: 26px; height: 26px; border-radius: 50%; font-size: 0.9rem; line-height: 1; display: grid; place-items: center; padding: 0; }
.suite-launch-info:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,196,81,0.12); }

/* concepts card rendered as a button + the rules/concepts popup */
.suite-discover-card-btn { appearance: none; cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.suite-discover-card-btn:hover { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.suite-discover-more { display: inline-block; margin-top: 0.5rem; color: var(--gold-soft); font-size: 0.82rem; font-weight: 600; }
.suite-info-text { display: flex; flex-direction: column; gap: 0.55rem; max-height: 62vh; overflow-y: auto; }
.suite-info-text p { margin: 0; color: var(--ink-muted); line-height: 1.55; font-size: 0.92rem; white-space: pre-wrap; }

/* Contribuer hub + forms */
.suite-contrib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.7rem; }
.suite-contrib-card { appearance: none; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0.1rem 0.7rem; align-items: center;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 0.9rem 1rem; transition: border-color .15s, background .15s; }
.suite-contrib-card:hover { border-color: var(--gold); background: rgba(245,196,81,0.08); }
.suite-contrib-icon { grid-row: 1 / 3; font-size: 1.7rem; }
.suite-contrib-name { font-weight: 700; }
.suite-contrib-desc { color: var(--ink-faint); font-size: 0.82rem; }
.suite-contrib-fields { display: flex; flex-direction: column; gap: 0.6rem; max-height: 60vh; overflow-y: auto; }
.suite-req { color: var(--gold); }
.suite-contrib-msg { margin: 0.2rem 0 0; font-size: 0.85rem; }
.suite-contrib-msg.is-err { color: #e4534f; }
.suite-contrib-msg.is-ok { color: var(--ink-muted); }
.suite-contrib-thanks { color: var(--gold-soft); font-size: 1rem; text-align: center; padding: 1.2rem 0.5rem; margin: 0; }

.suite-discover-card {
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, #ffffff 11%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, #ffffff 7%, transparent), color-mix(in srgb, #ffffff 2%, transparent));
  padding: 1rem 1.1rem;
}
.suite-discover-h {
  display: flex; align-items: center; gap: 0.5rem;
  font: 400 1.3rem/1 "Bebas Neue", sans-serif; letter-spacing: 0.02em; color: var(--gold);
  margin-bottom: 0.45rem;
}
.suite-discover-body { color: var(--ink-muted); line-height: 1.55; margin: 0; font-size: 0.92rem; }
.suite-discover-exos { margin-top: 0.5rem; }
.suite-exo-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.7rem; }
.suite-exo-card {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 0.9rem; border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
  background: color-mix(in srgb, #ffffff 4%, transparent);
}
.suite-exo-main { flex: 1; min-width: 0; }
.suite-exo-name { font: 600 1rem/1.25 "Inter", sans-serif; color: var(--ink); }
.suite-exo-desc { font-size: 0.84rem; color: var(--ink-muted); line-height: 1.4; margin-top: 0.15rem; }
.suite-exo-card .suite-btn { flex: 0 0 auto; }

/* simple-exercise timer overlay */
.suite-exo-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg-deep) 90%, transparent);
  backdrop-filter: blur(10px); padding: 1rem;
}
.suite-exo-panel {
  position: relative; width: min(460px, 100%);
  max-height: calc(100svh - 1.5rem); overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 8%, transparent), color-mix(in srgb, var(--bg-velvet) 80%, transparent));
  padding: 1.6rem 1.5rem; text-align: center;
}
.suite-exo-close {
  position: absolute; top: 0.6rem; right: 0.8rem;
  background: none; border: none; color: var(--ink-muted); font-size: 1.3rem; cursor: pointer;
}
.suite-exo-close:hover { color: var(--gold); }
.suite-exo-title { font: 400 1.5rem/1.05 "Bebas Neue", sans-serif; letter-spacing: 0.02em; color: var(--gold); }
.suite-exo-paneldesc { color: var(--ink-muted); font-size: 0.9rem; line-height: 1.5; margin: 0.5rem 0 0.8rem; }
.suite-exo-presets { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-top: 0.7rem; }

/* ============================================================
   PROGRAM extras (training segment desc + dual add buttons)
   ============================================================ */
.suite-seg-desc {
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px solid color-mix(in srgb, #ffffff 7%, transparent);
  color: var(--ink-muted); font-size: 0.86rem; line-height: 1.45;
}
.suite-addseg-row { display: flex; gap: 0.5rem; }
.suite-addseg-row .suite-addseg { flex: 1; }

/* Match/Spectacle settings card (caucus + vote durations, scores toggle) */
.suite-settings-card {
  margin: 0 0 0.9rem; padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, #ffffff 11%, transparent);
  background: color-mix(in srgb, #ffffff 4%, transparent);
}
.suite-settings-title {
  font: 700 0.72rem/1.2 "Inter", sans-serif; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 0.6rem;
}
.suite-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.suite-set-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.suite-set-field > span {
  font: 600 0.7rem/1.1 "Inter", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint);
}
.suite-set-field .suite-edit-select { width: 100%; }
.suite-set-toggle {
  display: flex; align-items: center; gap: 0.55rem; cursor: pointer;
  margin-top: 0.7rem; color: var(--ink); font-size: 0.9rem;
}
.suite-set-toggle input { width: 20px; height: 20px; accent-color: var(--gold); flex: 0 0 auto; }
@media (max-width: 360px) { .suite-settings-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DISPLAY board — Show / Training (no teams)
   ============================================================ */
.disp-board-solo { align-items: center; justify-content: center; gap: 0; }
.disp-solo-top { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-top: 6vh; }
.disp-board-solo .disp-clock { font-size: clamp(4rem, 16vw, 10rem); }
.disp-board-solo .disp-info { flex: 0 0 auto; padding-top: 2vh; }
.disp-board-solo .disp-cat { font-size: clamp(2.4rem, 8vw, 6rem); }

/* ============================================================
   RESPONSIVE — landscape / wider screens
   ============================================================ */
@media (min-width: 640px) {
  .suite-launch-grid { grid-template-columns: 1fr 1fr; }
  .suite-choice-grid { grid-template-columns: 1fr 1fr 1fr; }
  .suite-list-item { flex-direction: row; align-items: center; }
  .suite-list-main { flex: 1; }
  .suite-list-actions { flex: 0 0 auto; }
  .suite-list-actions .suite-btn { flex: 0 0 auto; }
}
@media (min-width: 880px) {
  .suite-launch-grid { grid-template-columns: repeat(4, 1fr); }
}

/* keep the form comfortable on very small phones */
@media (max-width: 360px) {
  .suite-seg-opt { min-width: 56px; padding: 0.55rem 0.4rem; font-size: 0.8rem; }
  .suite-frow { grid-template-columns: 72px 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  .suite-launch-card, .suite-choice, .suite-btn, .suite-toast { transition: none; }
}
