/* optional extra style */
body { background: #f6f8fa; color:#222; }
input[type=number] { width:70px; }
input[type=text] { width:190px; }

:root{
  --bg:#f6f7f9;
  --card:#fff;
  --muted:#6b6b6b;
  --accent:#111827;
  --green:#16a34a;
  --red:#ef4444;
}

/* Global */
*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  padding:14px;
  color:#111;
}

/* Layout */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px
}
.h1{font-size:20px;margin:0}
.small{font-size:13px;color:var(--muted)}
.card{
  background:var(--card);
  padding:12px;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(16,24,40,0.04);
  margin-top:12px
}

.btn{
  background:var(--accent);
  color:#fff;
  padding:10px 12px;
  border-radius:8px;
  border:none;
  font-weight:700
}
.btn-ghost{
  background:#fff;
  border:1px solid #ddd;
  padding:10px;
  border-radius:8px
}
.input, select{
  width:100%;
  padding:8px;
  border-radius:8px;
  border:1px solid #e6e6e6
}

/* Player rows */
.rowDeck{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:12px 6px;
  -webkit-overflow-scrolling:touch
}

.cardPlayer{
  flex:0 0 280px;
  background:#fff;
  border-radius:10px;
  padding:6px;
  border:1px solid #eee;
  min-height:200px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.label{
  font-size:12px;
  color:var(--muted)
}

.small-input{
  padding:8px;
  border-radius:8px;
  border:1px solid #e6e6e6
}

.badge{
  padding:6px 10px;
  border-radius:20px;
  font-weight:700;
  border:none;
  font-size:12px;
}

.badge.playing{background:var(--green);color:#fff}
.badge.notplaying{background:var(--red);color:#fff}

.toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:20px;
  background:var(--green);
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  display:none;
}

/* Skill block */
.skillBlock{
  border:1px solid #e5e7eb;
  background:#fafafa;
  padding:6px;
  margin-top:4px;
  border-radius:8px;
}

.skillBlockTitle{
  font-size:13px;
  font-weight:700;
  margin-bottom:8px;
  color:#444;
}

.skillBlock.goalkeeping .skillRow{
  grid-template-columns: 1fr 1fr;
}


.skillRow{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:6px ;
  margin-bottom:4px;
}

.skillRow .cell{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.cell label{
  font-size:12px;
}
.cell input{
  width:45px;
  text-align:center;
}



@media(min-width:900px){
  .cardPlayer{flex:0 0 320px}
}
