/* Step 1 only: compact event setup and readable category cards. */
body[data-page="tournament-creator-step-1"] {
  background:#edf3f8!important;
  color:#19324a;
}
body[data-page="tournament-creator-step-1"] main.league-creator-page {
  padding:18px 0 48px!important;
  background:linear-gradient(145deg,#eaf2fb,#f1f7f4 75%)!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-hero>.container {
  width:min(1040px,calc(100% - 32px))!important;
  max-width:1040px!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-topbar {
  margin-bottom:12px!important;
  grid-template-columns:auto minmax(140px,260px)!important;
  gap:14px!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-back {
  background:#e0ecf9!important;
  border-color:#bfd1e4!important;
  color:#255178!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-back:hover {
  background:#d5e6f7!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-step__label {
  color:#49637e!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-progress {
  background:#d0dfec!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-grid {
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-intro.card-glass {
  position:static!important;
  padding:20px 24px!important;
  border:1px solid #245375!important;
  border-radius:15px!important;
  background:linear-gradient(115deg,#112c43,#174d60)!important;
  box-shadow:none!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-intro h1 {
  max-width:none!important;
  margin:0 0 7px!important;
  font-size:29px!important;
  line-height:1.15!important;
  letter-spacing:-.025em!important;
  color:#f5fbff!important;
  -webkit-text-fill-color:#f5fbff;
}
body[data-page="tournament-creator-step-1"] .league-creator-intro p {
  max-width:none!important;
  color:#c9e1ef!important;
  font-size:13px!important;
  line-height:1.45!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-eyebrow {
  margin-bottom:7px!important;
  color:#96e4cc!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-benefits {
  display:none!important;
}
body[data-page="tournament-creator-step-1"] .league-creator-form-card {
  padding:18px!important;
  background:#f6f9fd!important;
  border-color:#cfdeeb!important;
  border-radius:15px!important;
  box-shadow:0 10px 30px #2649680d!important;
}
#tournamentStep1Form { min-width:0; }
#tournamentStep1Form *,#tournamentStep1Form *::before,#tournamentStep1Form *::after {
  box-sizing:border-box;
}
#tournamentStep1Form [hidden],#tournamentStep1Form input[type="hidden"] {
  display:none!important;
}
#tournamentStep1Form :is(h2,h3,strong,label,label>span) {
  color:#19334c!important;
  -webkit-text-fill-color:currentColor;
}
#tournamentStep1Form :is(p,small) {
  color:#526b81!important;
  -webkit-text-fill-color:currentColor;
  font-size:12px!important;
  line-height:1.5!important;
}
#tournamentStep1Form label { font-size:12px!important; }
#tournamentStep1Form :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select,textarea) {
  display:block;
  width:100%!important;
  max-width:100%;
  min-width:0!important;
  height:40px!important;
  min-height:40px!important;
  padding:8px 10px!important;
  color:#1c374e!important;
  -webkit-text-fill-color:#1c374e;
  background:#ffffffd9!important;
  border:1px solid #bdcfdf!important;
  border-radius:8px!important;
  font:600 13px/1.35 Inter,system-ui,sans-serif!important;
  box-shadow:none!important;
  color-scheme:light;
}
#tournamentStep1Form input::placeholder,#tournamentStep1Form textarea::placeholder {
  color:#627c92!important;
  -webkit-text-fill-color:#627c92;
  opacity:1;
  font-weight:400;
}
#tournamentStep1Form textarea {
  height:66px!important;
  min-height:66px!important;
  resize:vertical;
}
#tournamentStep1Form :is(input,select,textarea):focus {
  outline:2px solid #9bc3ed!important;
  outline-offset:1px;
  border-color:#3477b7!important;
  background:#fff!important;
  box-shadow:none!important;
}
#tournamentStep1Form input[type="number"] { appearance:textfield; }
#tournamentStep1Form input[type="number"]::-webkit-inner-spin-button,
#tournamentStep1Form input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance:none;
  margin:0;
}
#tournamentStep1Form .league-form__field {
  margin:0!important;
  min-width:0!important;
}
#tournamentStep1Form .league-form__field>label {
  margin-bottom:5px!important;
  line-height:1.4!important;
}
#tournamentStep1Form .league-form__field>small {
  display:block!important;
  margin-top:5px!important;
  font-size:11px!important;
}
#tournamentStep1Form .tfp-series-mode-box {
  padding:14px;
  border:1px solid #c8daed;
  border-radius:12px;
  background:#eaf2fc;
  margin-bottom:14px!important;
}
#tournamentStep1Form .league-choice-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
#tournamentStep1Form .league-choice-card {
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  gap:3px 9px!important;
  min-height:64px!important;
  padding:10px!important;
  margin:0!important;
  border:1px solid #bfd1e5!important;
  border-radius:9px!important;
  background:#f7faff!important;
  cursor:pointer;
}
#tournamentStep1Form .league-choice-card__icon {
  grid-column:1!important;
  grid-row:1/3!important;
  width:28px;
  text-align:center;
  font-size:19px!important;
  line-height:1.2;
}
#tournamentStep1Form .league-choice-card__title {
  grid-column:2!important;
  grid-row:1!important;
  color:#1f405f!important;
  font-size:12px!important;
  line-height:1.35!important;
}
#tournamentStep1Form .league-choice-card__text {
  grid-column:2!important;
  grid-row:2!important;
  color:#55728a!important;
  font-size:10px!important;
  line-height:1.4!important;
}
#tournamentStep1Form .league-choice-card:is(.is-active,:has(input:checked)) {
  border-color:#318f74!important;
  background:#e3f4eb!important;
  box-shadow:inset 0 0 0 1px #318f7433!important;
}
#tournamentStep1Form .league-choice-card:focus-within {
  outline:2px solid #639fcf;
  outline-offset:2px;
}
#tournamentStep1Form .tfpc-basics {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;
  padding:14px;
  border:1px solid #c7deec;
  border-radius:12px;
  background:#edf6fb;
  margin-bottom:14px;
}
#tournamentStep1Form .tfpc-basics>.league-form__field { grid-column:1/-1; }
#tournamentStep1Form .tfpc-basics>:is(.tfpc-field-name,.tfpc-field-city) { grid-column:auto; }
#tournamentStep1Form .tfpc-field-name input { max-width:440px; }
#tournamentStep1Form .tfpc-field-city input { max-width:300px; }
#tournamentStep1Form .tfpc-section-head {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:10px;
}
#tournamentStep1Form .tfpc-section-head>span {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:8px;
  background:#d0e7f6;
  color:#2a648a;
  font-size:11px;
  font-weight:800;
}
#tournamentStep1Form .tfpc-section-head h2 { margin:0;font-size:15px;line-height:1.3; }
#tournamentStep1Form .tfpc-section-head p { margin:3px 0 0;font-size:11px!important; }
#tournamentStep1Form .tfpc-optional {
  font-size:10px;
  font-weight:500;
  margin-left:5px;
  color:#617b90!important;
}
#tournamentStep1Form .tfpe-creator {
  padding:14px;
  margin:0 0 14px;
  border-radius:12px;
  background:#eaf4ef;
  border:1px solid #bbd9ca;
}
#tournamentStep1Form .tfpe-creator>.tfpe-section-title { margin-bottom:12px; }
#tournamentStep1Form .tfpe-eyebrow {
  margin-bottom:5px;
  color:#396f5a!important;
  font-size:10px;
  letter-spacing:.07em;
}
#tournamentStep1Form .tfpe-creator h2 { font-size:19px;line-height:1.25; }
#tournamentStep1Form .tfpe-section-title p { margin-top:5px;max-width:650px; }
#tournamentStep1Form .tfpe-creator h3 { font-size:15px; }
#tournamentStep1Form .tfpc-event-details {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px 12px;
  padding:12px;
  border:1px solid #b8d8c8;
  border-radius:10px;
  background:#dff0e8;
}
#tournamentStep1Form .tfpc-event-details .tfpc-field-venue { grid-column:1/-1;max-width:560px; }
#tournamentStep1Form .tfpe label:not(.tfpe-check) { gap:4px;line-height:1.3; }
#tournamentStep1Form .tfpe-check {
  display:flex!important;
  align-items:center;
  margin:12px 0 14px;
  gap:8px;
  padding:8px 10px;
  background:#d8eddf;
  border:1px solid #b4d6bd;
  border-radius:8px;
}
#tournamentStep1Form :is(.tfpe-check,.league-private-toggle) input {
  appearance:auto!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  flex:0 0 18px;
  margin:0!important;
  accent-color:#278664;
}
#tournamentStep1Form .tfpe-check span { line-height:1.4; }
#tournamentStep1Form .tfpc-categories-title { margin:0 0 6px; }
#tournamentStep1Form .tfpe-note { margin:6px 0 12px!important;font-size:11px!important; }
#tournamentStep1Form .tfpe-error { color:#942b43!important; }
#tournamentStep1Form .tfpe-category-editor {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:start;
}
#tournamentStep1Form .tfpe-category-edit {
  padding:12px;
  min-width:0;
  border:1px solid #bfd3e4;
  border-top:3px solid #5e9bc7;
  border-radius:10px;
  background:#f0f7fd;
}
#tournamentStep1Form .tfpe-category-edit:nth-child(even) {
  border-color:#b8d6c8;
  border-top-color:#68ad91;
  background:#edf7f1;
}
#tournamentStep1Form .tfpe-category-edit__head {
  display:flex;
  flex-wrap:wrap;
  gap:6px 8px;
  margin-bottom:10px;
  align-items:center;
  justify-content:space-between;
}
#tournamentStep1Form .tfpe-category-edit__head strong {
  min-width:0;
  max-width:none;
  flex:1 1 170px;
  font-size:13px;
  line-height:1.3;
}
#tournamentStep1Form .tfpe-category-edit__head>div { gap:5px; }
#tournamentStep1Form .tfpe-text-btn {
  min-height:32px;
  padding:6px 9px;
  border:1px solid #bdd2e5;
  border-radius:7px;
  color:#245e8b!important;
  background:#e0edf9;
  font-size:11px;
  line-height:1.3;
}
#tournamentStep1Form .tfpe-text-btn--danger {
  color:#9b3548!important;
  background:#fae8ec;
  border-color:#e5bec8;
}
#tournamentStep1Form .tfpe-category-edit .tfpe-form-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px 8px;
}
#tournamentStep1Form .tfpe-field { min-width:0; }
#tournamentStep1Form .tfpe-field--name { grid-column:1/-1; }
#tournamentStep1Form .tfpe-field--name input { max-width:420px; }
#tournamentStep1Form .tfpe-field--format { grid-column:span 2; }
#tournamentStep1Form .tfpe-field>span {
  font-size:11px;
  line-height:1.3;
  min-height:15px;
}
#tournamentStep1Form .tfpe-field:is(.tfpe-field--age_min,.tfpe-field--age_max,.tfpe-field--registration_limit,.tfpe-field--entry_fee)>span {
  min-height:28px;
  display:flex;
  align-items:flex-end;
}
#tournamentStep1Form .tfpe-field:is(.tfpe-field--age_min,.tfpe-field--age_max) input { max-width:110px; }
#tournamentStep1Form .tfpe-field:is(.tfpe-field--registration_limit,.tfpe-field--entry_fee) input { max-width:140px; }
#tournamentStep1Form .tfpc-category-hint {
  font-size:10px!important;
  line-height:1.4!important;
  margin:9px 0 0;
}
#tournamentStep1Form .tfpe-btn {
  min-height:38px;
  padding:8px 12px;
  border-radius:8px;
  font-size:12px;
}
#tournamentStep1Form .tfpe-btn--secondary {
  background:#246f9c;
  color:#fff!important;
  border-color:#246f9c;
}
#tournamentStep1Form .tournament-registration-box {
  padding:12px!important;
  background:#e4f2e9;
  border:1px solid #bdd6c6!important;
  border-radius:10px!important;
  margin-bottom:12px!important;
}
#tournamentStep1Form #singleTournamentPrivateBox {
  padding:12px;
  background:#eaf0f9;
  border:1px solid #c7d7e8;
  border-radius:10px;
  margin-bottom:12px!important;
}
#tournamentStep1Form .league-private-toggle {
  display:flex!important;
  flex-direction:row!important;
  gap:8px!important;
  align-items:center!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
#tournamentStep1Form .tournament-registration-fields {
  grid-template-columns:140px repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
#tournamentStep1Form #tournamentPasswordField { max-width:380px; }
#tournamentStep1Form .tfps-config { margin:0 0 14px; }
#tournamentStep1Form :is(.tfps-config-head,.tfps-form-section) { padding:16px; }
#tournamentStep1Form .tfps-config-head { background:#e8f0fa; }
#tournamentStep1Form .tfps-config-head h2 { font-size:20px; }
#tournamentStep1Form .tfps h3 { font-size:16px; }
#tournamentStep1Form .league-form__footer {
  display:flex!important;
  justify-content:flex-end;
  padding-top:12px!important;
  margin-top:12px!important;
  border-top:1px solid #cddce9;
}
#tournamentStep1Form .league-creator-submit {
  width:auto!important;
  max-width:100%;
  min-width:200px!important;
  height:auto!important;
  min-height:44px!important;
  padding:10px 18px!important;
  border-radius:9px!important;
  color:#fff!important;
  background:#267858!important;
  border:1px solid #1d6448!important;
  font-size:13px!important;
  line-height:1.4!important;
  white-space:normal;
}
#tournamentStep1Form .league-creator-submit:hover { background:#1f684c!important; }
#tournamentStep1Form button:focus-visible {
  outline:3px solid #77b2df!important;
  outline-offset:2px;
}
@media(max-width:980px) {
  #tournamentStep1Form .tfpe-category-editor { grid-template-columns:minmax(0,1fr); }
  #tournamentStep1Form .tfpe-category-edit .tfpe-form-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  #tournamentStep1Form .tfpe-field--name input { max-width:480px; }
}
@media(max-width:680px) {
  body[data-page="tournament-creator-step-1"] main.league-creator-page { padding:12px 0 32px!important; }
  body[data-page="tournament-creator-step-1"] .league-creator-hero>.container {
    width:calc(100% - 24px)!important;
  }
  body[data-page="tournament-creator-step-1"] .league-creator-intro.card-glass { padding:15px 16px!important; }
  body[data-page="tournament-creator-step-1"] .league-creator-intro h1 { font-size:24px!important; }
  body[data-page="tournament-creator-step-1"] .league-creator-intro p { font-size:12px!important; }
  body[data-page="tournament-creator-step-1"] .league-creator-form-card { padding:12px!important; }
  #tournamentStep1Form :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select,textarea) {
    font-size:16px!important;
    height:42px!important;
    min-height:42px!important;
    padding:8px!important;
  }
  #tournamentStep1Form textarea { height:70px!important;min-height:70px!important; }
  #tournamentStep1Form .tfp-series-mode-box { padding:10px; }
  #tournamentStep1Form .tfp-series-mode-grid { grid-template-columns:minmax(0,1fr)!important; }
  #tournamentStep1Form .tfp-series-mode-grid .league-choice-card { min-height:57px!important; }
  #tournamentStep1Form .league-choice-card { grid-template-columns:23px minmax(0,1fr)!important;padding:8px!important;gap:2px 6px!important; }
  #tournamentStep1Form .league-choice-card__icon { width:23px;font-size:17px!important; }
  #tournamentStep1Form .league-choice-card__title { font-size:12px!important; }
  #tournamentStep1Form .league-choice-card__text { font-size:10px!important; }
  #tournamentStep1Form .tfpc-basics { padding:11px;gap:10px; }
  #tournamentStep1Form .tfpc-basics>:is(.tfpc-field-name,.tfpc-field-city) { grid-column:1/-1; }
  #tournamentStep1Form .tfpc-basics [data-single-game-type] .league-choice-grid { grid-template-columns:minmax(0,1fr)!important; }
  #tournamentStep1Form .tfpc-basics [data-single-game-type] .league-choice-card { min-height:52px!important; }
  #tournamentStep1Form .tfpe-creator { padding:10px; }
  #tournamentStep1Form .tfpc-event-details { grid-template-columns:minmax(0,1fr);padding:10px;gap:10px; }
  #tournamentStep1Form .tfpc-field-venue { max-width:none; }
  #tournamentStep1Form .tfpe-creator h2 { font-size:18px; }
  #tournamentStep1Form .tfpe-category-edit { padding:10px; }
  #tournamentStep1Form .tfpe-category-edit .tfpe-form-grid { gap:8px 6px; }
  #tournamentStep1Form .tfpe-field--gender,#tournamentStep1Form .tfpe-field--game_type { grid-column:span 2; }
  #tournamentStep1Form .tfpe-field--format { grid-column:1/-1; }
  #tournamentStep1Form .tfpe-field>span { font-size:11px; }
  #tournamentStep1Form .tfpe-category-edit__head { flex-direction:row;align-items:center;gap:5px; }
  #tournamentStep1Form .tfpe-category-edit__head strong { flex-basis:100%;font-size:13px; }
  #tournamentStep1Form .tfpe-category-edit__head>div { gap:6px; }
  #tournamentStep1Form .tfpe-text-btn { min-height:36px; }
  #tournamentStep1Form .tfpe-check { padding:8px;margin-top:10px; }
  #tournamentStep1Form .tfpe-check span { font-size:12px; }
  #tournamentStep1Form .tournament-registration-fields { grid-template-columns:minmax(0,1fr)!important; }
  #tournamentStep1Form .league-creator-submit { width:100%!important;min-width:0!important; }
}
@media(max-width:360px) {
  #tournamentStep1Form .tfpe-category-edit .tfpe-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #tournamentStep1Form .tfpe-field--gender,#tournamentStep1Form .tfpe-field--game_type { grid-column:auto; }
}
