/* KICKOFF · Créateur de perso footballer */

.ch-wrap { padding-bottom: 40px; }

.ch-back {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: var(--disp); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: 12px; padding: 4px 0; margin-bottom: 6px;
  -webkit-tap-highlight-color: transparent;
}
.ch-back:active { transform: translateX(-2px); }

/* ----- en-tête + aperçu live ----- */
.ch-hero { text-align: center; margin-bottom: 4px; }
.ch-hero .kicker { display: block; margin-bottom: 2px; }
.ch-title { font-size: 26px; line-height: 1.05; }
.ch-title .s { color: var(--red); }
.ch-sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

.ch-stage {
  position: sticky; top: 6px; z-index: 5;
  margin: 12px 0 16px;
  display: flex; justify-content: center;
}
.ch-canvas {
  width: 210px; height: 210px; max-width: 62vw; max-height: 62vw;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(232,0,13,.18), transparent 60%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; position: relative;
}
.ch-canvas::before {
  content: "/"; position: absolute; right: 10px; top: 4px;
  font-family: var(--disp); font-style: italic; font-weight: 700; font-size: 40px;
  color: rgba(255,255,255,.05); pointer-events: none;
}
.ch-canvas svg { width: 100%; height: 100%; display: block; }

/* ----- barre d'actions rapides ----- */
.ch-quick { display: flex; gap: 10px; margin-bottom: 14px; }
.ch-quick .btn { flex: 1; }

/* ----- onglets ----- */
.ch-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 18px; -webkit-overflow-scrolling: touch;
  position: sticky; top: 232px; z-index: 4;
}
.ch-tabs::-webkit-scrollbar { height: 0; }
.ch-tab {
  flex: 1 0 auto; border: none; background: transparent; color: var(--muted);
  font-family: var(--disp); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; font-size: 12.5px; padding: 9px 14px; border-radius: 9px;
  cursor: pointer; white-space: nowrap; transition: color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ch-tab.active {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; box-shadow: var(--glow-red);
}

/* ----- sections de slots ----- */
.ch-slot { margin-bottom: 16px; }
.ch-slot-head {
  display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px 2px;
}
.ch-slot-head .kicker { font-size: 11px; }
.ch-slot-head .ch-val { font-size: 11px; color: var(--txt); opacity: .7; font-family: var(--body); }

.ch-row {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.ch-row::-webkit-scrollbar { height: 4px; }
.ch-row::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

/* pastille couleur */
.ch-sw {
  flex: none; width: 42px; height: 42px; border-radius: 13px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.14); padding: 0; position: relative;
  scroll-snap-align: start; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.28), inset 0 3px 6px rgba(255,255,255,.22);
}
.ch-sw:active { transform: scale(.92); }
.ch-sw.sel {
  border-color: var(--red-glow);
  box-shadow: 0 0 0 2px var(--red), 0 6px 16px rgba(232,0,13,.4),
              inset 0 -6px 12px rgba(0,0,0,.28);
}
.ch-sw.sel::after {
  content: ""; position: absolute; inset: 0; border-radius: 11px;
  border: 2px solid rgba(255,255,255,.5);
}

/* vignette de forme (mini-perso) */
.ch-vig {
  flex: none; width: 66px; cursor: pointer; padding: 0; background: none; border: none;
  scroll-snap-align: start; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.ch-vig:active { transform: scale(.94); }
.ch-vig-box {
  width: 66px; height: 66px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #1a1a1e, #101014);
  border: 2px solid var(--line); display: flex; align-items: flex-end; justify-content: center;
}
.ch-vig.sel .ch-vig-box {
  border-color: var(--red-glow);
  box-shadow: 0 0 0 2px var(--red), 0 6px 16px rgba(232,0,13,.35);
}
.ch-vig-box svg { width: 118%; height: 118%; display: block; margin-bottom: -6%; }
.ch-vig-lbl {
  display: block; text-align: center; font-size: 10.5px; margin-top: 5px;
  color: var(--muted); font-weight: 600;
}
.ch-vig.sel .ch-vig-lbl { color: var(--txt); }

/* pastilles texte (col, motifs, numéro, style crampons) */
.ch-choice, .ch-num {
  flex: none; cursor: pointer; scroll-snap-align: start;
  border: 1px solid var(--line-2); background: var(--ink-3); color: var(--txt);
  font-family: var(--disp); font-style: italic; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; border-radius: 11px; padding: 10px 15px; font-size: 13px;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ch-num {
  min-width: 46px; height: 46px; padding: 0; display: flex; align-items: center;
  justify-content: center; font-size: 17px; border-radius: 12px;
}
.ch-choice:active, .ch-num:active { transform: scale(.93); }
.ch-choice.sel, .ch-num.sel {
  background: linear-gradient(135deg, rgba(232,0,13,.28), var(--ink-3));
  border-color: var(--red-glow); color: #fff;
  box-shadow: 0 0 0 1px var(--red), 0 6px 16px rgba(232,0,13,.3);
}

/* champ flocage */
.ch-text { margin-top: 2px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ----- pied : enregistrer ----- */
.ch-save { margin-top: 20px; }
.ch-save-hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }
