@charset "utf-8";

#name-form dl,
#scenario dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4em 1em;
  align-items: center;
}
#name-form dt, #scenario dt { font-weight: bold; }

#setting textarea,
#scenario textarea {
  width: 100%;
  min-height: 4em;
}

/* 性格 --------------------------------------------------- */
#personality table {
  width: 100%;
}
#personality input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

/* 生命力・正気度：体温計式トラック --------------------------------------------------- */
.track-table th, .track-table td {
  padding: 0.4em 0.6em;
  text-align: left;
  vertical-align: middle;
}
.track-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
}
.track-check {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  cursor: pointer;
  > input { margin: 0; }
}

/* 特技グリッド --------------------------------------------------- */
#skill-grid-wrap {
  overflow-x: auto;
}
.skill-grid-table {
  border-collapse: collapse;
  min-width: 70em;
  table-layout: fixed;
}
.skill-grid-table th, .skill-grid-table td {
  border: 1px solid var(--box-head-bg-color, #ccc);
  padding: 0.2em;
  text-align: center;
  vertical-align: top;
}
.skill-grid-table thead th {
  background-color: var(--box-head-bg-color, #eee);
}
.skill-grid-table th.row-number {
  width: 2.4em;
  background-color: var(--box-head-bg-color, #eee);
}
.skill-grid-table th.gap-header,
.skill-grid-table td.gap-cell {
  width: 1.6em;
  background-color: color-mix(in srgb, var(--box-head-bg-color, #eee) 50%, transparent);
}
.skill-cell {
  width: 9em;
  font-size: 0.85rem;
}
.skill-cell .skill-name {
  font-weight: bold;
  margin-bottom: 0.2em;
}
.skill-cell .skill-toggles {
  display: flex;
  justify-content: center;
  gap: 0.4em;
  font-size: 0.85em;
}
.skill-cell .judge-value {
  margin-top: 0.2em;
  font-weight: bold;
  min-height: 1.2em;
}

#confusion-notice {
  color: #b00;
  font-weight: bold;
}

#skills > p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}
#skills input[type="text"][readonly] {
  background: color-mix(in srgb, var(--box-head-bg-color, #eee) 30%, transparent);
  width: 100%;
}

/* 狂気・アビリティ・人物欄・アイテム --------------------------------------------------- */
#madness table, #ability table, #person table, #possessions table {
  table-layout: fixed;
  width: 100%;
}
#madness th, #madness td,
#ability th, #ability td,
#person th, #person td,
#possessions th, #possessions td {
  text-align: center;
  padding: 0.3em 0.4em;
}
#madness input[type="text"], #madness textarea,
#ability input[type="text"], #ability textarea,
#person input[type="text"],
#possessions input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}
