@charset "utf-8";

/* 生まれ・能力値：列が多いので横スクロールを許容し、無理に詰めない */
#ability {
  overflow-x: auto;
}
.ability-table {
  min-width: 56em;
}
.ability-table th, .ability-table td {
  text-align: center;
  padding: 0.4em 0.5em;
  white-space: nowrap;
}
.ability-table input[type="number"] {
  width: 3.5em;
}

/* 技能：カテゴリごとの箱を、幅に余裕がある時だけ2列に */
.skill-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
}
.skill-box {
  flex: 1 1 100%;
  min-width: 0;
}
@media screen and (min-width: 900px) {
  .skill-box {
    flex: 1 1 calc(50% - 0.4em);
  }
}
.skill-table {
  table-layout: fixed;
}
.skill-table th, .skill-table td {
  text-align: center;
  padding: 0.35em 0.4em;
  vertical-align: middle;
}
.skill-table th {
  text-align: left;
  width: 30%;
}
.skill-table thead th {
  text-align: center;
}
.skill-table td.base {
  color: #666;
  white-space: nowrap;
}
.skill-table td.total {
  font-weight: bold;
}
.skill-table input[type="number"] {
  width: 100%;
  min-width: 2.6em;
  box-sizing: border-box;
}
.skill-table input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}
.skill-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.04);
  .night & {
    background-color: rgba(255, 255, 255, 0.06);
  }
}

#skill-points p,
#san p {
  font-size: 1.05rem;
}
