/* Dedicated football setup only. Do not alter the match screen or other games. */
.football-page .config-panel>.card-head{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;
  min-height:68px;margin:0 0 13px;padding:10px 15px;
  border:0;border-radius:12px;
  background:#173e2b;color:#f5f8ee;overflow:hidden;
}
.football-page .config-panel>.card-head h2{
  color:#f5f8ee;font-size:clamp(19px,1.6vw,23px);font-weight:650;
  margin:0;line-height:1.25;
}
.football-page .football-setup-pitch{
  position:relative;flex:0 0 clamp(112px,11vw,156px);height:45px;overflow:hidden;
  border:1.5px solid #c9e7c083;border-radius:3px;
  background:repeating-linear-gradient(90deg,#276446 0,#276446 20%,#2c704b 20%,#2c704b 40%);
  box-shadow:0 0 0 1px #ffffff0a;
}
.football-page .football-setup-pitch i{display:block;position:absolute;pointer-events:none}
.football-page .setup-pitch-midline{left:50%;height:100%;top:0;border-left:1.4px solid #e1f1d2ad}
.football-page .setup-pitch-circle{width:28px;height:28px;border:1.4px solid #e1f1d2ad;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%)}
.football-page .setup-pitch-box{width:19%;height:64%;top:18%;border:1.4px solid #e1f1d2ad}
.football-page .setup-pitch-left{left:-1px;border-left:0}
.football-page .setup-pitch-right{right:-1px;border-right:0}
.football-page .setup-pitch-ball{width:8px;height:8px;background:#f3f6e8;box-shadow:0 0 0 2px #19472d;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}
.football-page .task-panel{border-top:3px solid #99c74d}
.football-page .config-panel>.config-block{margin:0 0 8px}
.football-page .config-panel .space-bottom{margin-bottom:6px}
.football-page .config-panel .teams-edit{
  display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);
  gap:8px;align-items:center;
}
.football-page .config-panel .team-edit{
  min-width:0;padding:9px 10px;border:1px solid #c9d5be;border-radius:10px;
  background:#f9fbf6;
}
.football-page .config-panel .team-edit input{min-width:0;font-size:14px}
.football-page .config-panel .vs-label{justify-self:center;align-self:center}
.football-page .config-panel .reset-team-names{margin-top:5px;line-height:1.5;font-size:11px}
.football-page .config-panel .setting-row{min-height:44px;padding:8px 0;gap:10px}
.football-page .config-panel .setting-row select{min-height:36px}
.football-page .config-panel .stepper{padding:2px;gap:6px}
.football-page .config-panel .stepper button{width:30px;height:30px}
.football-page .config-panel .game-launchers{
  padding-top:12px;margin-top:12px;gap:4px;
}
.football-page .config-panel .start-btn{
  margin:0;min-height:54px;padding:12px 16px;
  background:#c8f34c;color:#15291b;border-radius:11px;
}
.football-page .config-panel .start-note{display:none}
@media(min-width:1100px) and (min-height:700px){
  .football-page #builder-screen{
    display:flex;flex-direction:column;
    height:100dvh;max-height:100dvh;overflow:hidden;
  }
  /* Keep the shared header's full height in the viewport-sized editor. */
  .football-page #builder-screen>.rz-header{
    flex:0 0 auto;
  }
  .football-page #builder-screen>.main-layout{
    display:flex;flex:1 1 auto;flex-direction:column;min-height:0;
    padding:0 0 12px;overflow:hidden;
  }
  .football-page #builder-screen .intro{
    flex:0 0 auto;min-height:0;width:100%;max-width:none;
    padding:10px 0 12px;margin:0;gap:16px;
  }
  .football-page #builder-screen .intro h1{
    font-size:clamp(28px,2.5vw,36px);line-height:1.2;
  }
  .football-page #builder-screen .builder-grid{
    display:grid;flex:1 1 auto;min-height:0;
    grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
    align-items:stretch;gap:18px;
  }
  .football-page #builder-screen .task-panel,
  .football-page #builder-screen .config-panel{
    display:flex!important;flex-direction:column;
    height:100%;min-height:0;overflow:hidden;padding:16px 18px;
  }
  .football-page #builder-screen .builder-right{height:100%;min-height:0}
  .football-page #builder-screen .builder-footer{display:none}
  .football-page #builder-screen .task-panel .card-head{flex:0 0 auto;margin-bottom:12px}
  .football-page #builder-screen .entry-mode-bar{flex:0 0 auto;margin-bottom:10px}
  .football-page #builder-screen #list-editor{
    display:flex;flex:1 1 auto;min-height:0;flex-direction:column;
  }
  .football-page #builder-screen #list-editor .input-label{flex:0 0 auto;margin-bottom:6px}
  .football-page #builder-screen #tasks-input{
    flex:1 1 auto;min-height:95px;height:auto!important;
    overflow-y:auto;resize:none;line-height:1.55;
  }
  .football-page #builder-screen .input-hint{flex:0 0 auto;margin-top:5px;line-height:1.5}
  .football-page #builder-screen .examples-row{
    flex:0 0 auto;margin-top:7px;gap:10px 16px;
  }
  .football-page #builder-screen #cards-editor:not(.hidden){
    display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden;
  }
  .football-page #builder-screen #cards-list{
    flex:1 1 auto;min-height:0;max-height:none;overflow:auto;
  }
  .football-page #builder-screen #add-card{flex:0 0 auto}
  .football-page #builder-screen .selection-panel{
    flex:0 0 auto;margin-top:10px;padding:9px 0 0;
  }
  .football-page #builder-screen .task-panel .file-tools-panel{
    flex:0 0 auto;margin-top:10px;padding:9px 0 0;
  }
  .football-page #builder-screen .file-tools-actions{gap:4px 9px}
  .football-page #builder-screen .file-tools-actions>*{min-height:29px;padding:5px 8px}
  .football-page #builder-screen .config-panel>.card-head{flex:0 0 auto;min-height:62px;margin-bottom:10px}
  .football-page #builder-screen .config-panel>.config-block{flex:0 0 auto}
  .football-page #builder-screen .config-panel>.settings-rows{
    flex:1 1 auto;min-height:0;overflow-y:auto;
    margin:0;padding-right:4px;scrollbar-width:thin;
  }
  .football-page #builder-screen .config-panel>.game-launchers{
    flex:0 0 auto;margin-top:auto;border-top:1px solid #d6ddca;
  }
}
@media(max-width:1099px), (max-height:699px){
  .football-page #builder-screen{height:auto;max-height:none;overflow:visible}
  .football-page #builder-screen .task-panel,
  .football-page #builder-screen .config-panel{height:auto;overflow:visible}
  .football-page #tasks-input{min-height:180px}
}
@media(max-width:600px){
  .football-page .config-panel>.card-head{padding:10px 12px;min-height:59px}
  .football-page .football-setup-pitch{flex-basis:112px;height:38px}
  .football-page .config-panel .teams-edit{grid-template-columns:minmax(0,1fr)}
}
