:root {
  color-scheme: dark;
  --blue: #375a7f;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #e74c3c;
  --orange: #fd7e14;
  --yellow: #f39c12;
  --green: #00ffcc;
  --teal: #20c997;
  --cyan: #3498db;
  --black: #000;
  --white: #fff;
  --gray: #888;
  --gray-dark: #303030;
  --gray-100: #f8f9fa;
  --gray-200: #ebebeb;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #888;
  --gray-700: #444;
  --gray-800: #303030;
  --gray-900: #222;
  --primary: #375a7f;
  --secondary: #444;
  --success: #00bc8c;
  --info: #3498db;
  --warning: #f39c12;
  --danger: #e74c3c;
  --light: #adb5bd;
  --dark: #303030;
  --primary-rgb: 55, 90, 127;
  --secondary-rgb: 68, 68, 68;
  --success-rgb: 0, 188, 140;
  --info-rgb: 52, 152, 219;
  --warning-rgb: 243, 156, 18;
  --danger-rgb: 231, 76, 60;
  --light-rgb: 173, 181, 189;
  --dark-rgb: 48, 48, 48;
  --primary-text-emphasis: #162433;
  --secondary-text-emphasis: #1b1b1b;
  --success-text-emphasis: #004b38;
  --info-text-emphasis: #153d58;
  --warning-text-emphasis: #613e07;
  --danger-text-emphasis: #5c1e18;
  --light-text-emphasis: #444;
  --dark-text-emphasis: #444;
  --primary-bg-subtle: #d7dee5;
  --secondary-bg-subtle: #dadada;
  --success-bg-subtle: #ccf2e8;
  --info-bg-subtle: #d6eaf8;
  --warning-bg-subtle: #fdebd0;
  --danger-bg-subtle: #fadbd8;
  --light-bg-subtle: #fcfcfd;
  --dark-bg-subtle: #ced4da;
  --primary-border-subtle: #afbdcc;
  --secondary-border-subtle: #b4b4b4;
  --success-border-subtle: #99e4d1;
  --info-border-subtle: #aed6f1;
  --warning-border-subtle: #fad7a0;
  --danger-border-subtle: #f5b7b1;
  --light-border-subtle: #ebebeb;
  --dark-border-subtle: #adb5bd;
  --white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;
  --font-sans-serif: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-num: "Playball", "Courier New", monospace;
  --gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --body-font-family: var(--font-sans-serif);
  --body-font-size: 1rem;
  --body-font-weight: 400;
  --body-line-height: 1.5;
  --body-color: #fff;
  --body-color-rgb: 255, 255, 255;
  --emphasis-color: #000;
  --emphasis-color-rgb: 0, 0, 0;
  --secondary-color: rgba(255, 255, 255, 0.75);
  --secondary-color-rgb: 255, 255, 255;
  --secondary-bg: #ebebeb;
  --secondary-bg-rgb: 235, 235, 235;
  --tertiary-color: rgba(255, 255, 255, 0.5);
  --tertiary-color-rgb: 255, 255, 255;
  --tertiary-bg: #f8f9fa;
  --tertiary-bg-rgb: 248, 249, 250;
  --link-color: #00bc8c;
  --link-color-rgb: 0, 188, 140;
  --link-decoration: underline;
  --link-hover-color: #009670;
  --link-hover-color-rgb: 0, 150, 112;
  --code-color: #e83e8c;
  --highlight-color: #fff;
  --highlight-bg: #fdebd0;
  --border-width: 1px;
  --border-style: solid;
  --border-color: #dee2e6;
  --border-color-translucent: rgba(0, 0, 0, 0.175);
  --border-radius: 0.375rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 1rem;
  --border-radius-xxl: 2rem;
  --border-radius-2xl: var(--border-radius-xxl);
  --border-radius-pill: 50rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  --focus-ring-width: 0.25rem;
  --focus-ring-opacity: 0.25;
  --focus-ring-color: rgba(55, 90, 127, 0.25);
  --form-valid-color: #00bc8c;
  --form-valid-border-color: #00bc8c;
  --form-invalid-color: #e74c3c;
  --form-invalid-border-color: #e74c3c;
  --body-color: #dee2e6;
  --body-color-rgb: 222, 226, 230;
  --body-bg: #222;
  --body-bg-rgb: 34, 34, 34;
  --emphasis-color: #fff;
  --emphasis-color-rgb: 255, 255, 255;
  --secondary-color: rgba(222, 226, 230, 0.75);
  --secondary-color-rgb: 222, 226, 230;
  --secondary-bg: #303030;
  --secondary-bg-rgb: 48, 48, 48;
  --tertiary-color: rgba(222, 226, 230, 0.5);
  --tertiary-color-rgb: 222, 226, 230;
  --tertiary-bg: #292929;
  --tertiary-bg-rgb: 41, 41, 41;
  --primary-text-emphasis: #879cb2;
  --secondary-text-emphasis: #8f8f8f;
  --success-text-emphasis: #66d7ba;
  --info-text-emphasis: #85c1e9;
  --warning-text-emphasis: #f8c471;
  --danger-text-emphasis: #f1948a;
  --light-text-emphasis: #f8f9fa;
  --dark-text-emphasis: #dee2e6;
  --primary-bg-subtle: #0b1219;
  --secondary-bg-subtle: #0e0e0e;
  --success-bg-subtle: #00261c;
  --info-bg-subtle: #0a1e2c;
  --warning-bg-subtle: #311f04;
  --danger-bg-subtle: #2e0f0c;
  --light-bg-subtle: #303030;
  --dark-bg-subtle: #181818;
  --primary-border-subtle: #21364c;
  --secondary-border-subtle: #292929;
  --success-border-subtle: #007154;
  --info-border-subtle: #1f5b83;
  --warning-border-subtle: #925e0b;
  --danger-border-subtle: #8b2e24;
  --light-border-subtle: #444;
  --dark-border-subtle: #303030;
  --heading-color: inherit;
  --link-color: #879cb2;
  --link-hover-color: #9fb0c1;
  --link-color-rgb: 135, 156, 178;
  --link-hover-color-rgb: 159, 176, 193;
  --code-color: #f18bba;
  --highlight-color: #dee2e6;
  --highlight-bg: #613e07;
  --border-color: #444;
  --border-color-translucent: rgba(255, 255, 255, 0.15);
  --form-valid-color: #66d7ba;
  --form-valid-border-color: #66d7ba;
  --form-invalid-color: #f1948a;
  --form-invalid-border-color: #f1948a;
}
.category {
  --list-group-color: #fff;
  --list-group-bg: #303030;
  --list-group-border-color: #444;
  --list-group-border-width: var(--border-width);
  --list-group-border-radius: var(--border-radius);
  --list-group-item-padding-x: 1rem;
  --list-group-item-padding-y: 0.5rem;
  --list-group-action-color: var(--secondary-color);
  --list-group-action-hover-color: #fff;
  --list-group-action-hover-bg: #444;
  --list-group-action-active-color: var(--body-color);
  --list-group-action-active-bg: #222;
  --list-group-disabled-color: var(--secondary-color);
  --list-group-disabled-bg: #303030;
  --list-group-active-color: #fff;
  --list-group-active-bg: #375a7f;
  --list-group-active-border-color: #375a7f;
}
main #calc-base-damage #stats {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 10px minmax(0, 1fr);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1.75rem;
}
main #calc-base-damage #stats .stat-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
}
main #calc-base-damage [type=number] {
  height: 2em;
}
main #calc-base-damage #input {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  margin: -0.5rem 0 1.25rem 0;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
main #calc-base-damage #input #random-config {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
main #calc-base-damage #input #random-config .settings-label,
main #calc-base-damage #input #random-config .settings-unit {
  font-size: 12px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 1px 1px 1px #000;
}
main #calc-base-damage #input #random-config #variance {
  width: 6ex;
  margin: 0 1px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.025);
  text-align: center;
  font-family: var(--font-num);
  letter-spacing: 1px;
}
main #calc-base-damage #input #dmg {
  width: 16ex;
  font-family: var(--font-num);
  letter-spacing: 1px;
}
main #calc-base-damage #input #dmg::-webkit-input-placeholder {
  font-size: 11px;
  letter-spacing: 0;
}
main #calc-base-damage #input #dmg::-moz-placeholder {
  font-size: 11px;
  letter-spacing: 0;
}
main #calc-base-damage #input #dmg:-ms-input-placeholder {
  font-size: 11px;
  letter-spacing: 0;
}
main #calc-base-damage #input #dmg::-ms-input-placeholder {
  font-size: 11px;
  letter-spacing: 0;
}
main #calc-base-damage #input #dmg::placeholder {
  font-size: 11px;
  letter-spacing: 0;
}
main #calc-base-damage #notice {
  display: none;
  margin-bottom: 1.25rem;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  color: #fff !important;
  text-shadow: 1px 1px 1px #000;
}
main #calc-base-damage #notice.is-error {
  background: rgba(255, 99, 99, 0.5);
  color: #4A1B0C;
}
main #calc-base-damage #notice.is-confirmed {
  border: 3px double rgba(99, 199, 199, 0.5);
  border-radius: 3px;
  background: rgba(99, 155, 155, 0.5);
  color: #085041;
}
main #calc-base-damage #notice b {
  font-family: var(--font-num);
  letter-spacing: 1px;
}
main #calc-base-damage #compare {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 200, 100, 0.2);
  border-radius: var(--border-radius-md);
  background: rgba(255, 200, 100, 0.04);
}
main #calc-base-damage #compare .compare-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 12px;
  color: rgba(255, 200, 100, 0.65);
  letter-spacing: 0.5px;
}
main #calc-base-damage #compare #compare-stats {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 1fr);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
main #calc-base-damage #compare #compare-stats .stat-card {
  border: 1px solid rgba(255, 200, 100, 0.12);
  background-color: rgba(255, 200, 100, 0.05);
  text-align: center;
}
main #calc-base-damage #compare #compare-stats .stat-card#diff-card {
  background-color: rgba(255, 200, 100, 0.2);
}
main #calc-base-damage #compare #clear-ref {
  font-size: 11px;
  padding: 2px 8px;
}
main #calc-base-damage #viz {
  display: none;
  margin-bottom: 1.25rem;
}
main #calc-base-damage #viz .viz-heading {
  display: none;
  margin-bottom: 8px;
  text-align: center;
  font-size: 12px;
}
main #calc-base-damage #list .list-heading {
  font-size: 12px;
  margin-bottom: 6px;
}
main #calc-base-damage #list table {
  width: 100%;
  border-collapse: collapse;
}
main #calc-base-damage #explanation {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}
main #calc-base-damage #explanation dl {
  margin: 0;
  padding: 0;
}
main #calc-base-damage #explanation dt {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-top: 0.375rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-transition: background 0.15s;
  transition: background 0.15s;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  text-shadow: 1px 1px 1px #000;
}
main #calc-base-damage #explanation dt:hover {
  background: rgba(255, 255, 255, 0.08);
}
main #calc-base-damage #explanation dt.is-open {
  background: rgba(93, 202, 165, 0.12);
  border-color: rgba(93, 202, 165, 0.25);
}
main #calc-base-damage #explanation dt.is-open .arrow {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
main #calc-base-damage #explanation dt .arrow {
  font-size: 10px;
  color: rgba(150, 255, 255, 0.75);
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  text-shadow: 1px 1px 1px #000;
}
main #calc-base-damage #explanation dd {
  display: none;
  margin: 0;
  padding: 0.875rem 1rem 1rem;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  background: rgba(255, 200, 125, 0.1);
  border-top: none;
}
main #calc-base-damage #explanation dd p {
  margin: 0 0 1rem;
  line-height: 1.4;
  font-size: 12.5px;
}
main #calc-base-damage #explanation dd p:last-child {
  margin-bottom: 0;
}
main #calc-base-damage #explanation b.number {
  line-height: 1.4;
  font-family: 'Playball', cursive;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: #fff;
}
main .stat-card {
  border-radius: 3px;
  padding: 0.875rem 1rem;
}
main .stat-label {
  font-size: 12px;
  margin-bottom: 3px;
}
main .stat-label span.wide {
  font-size: 12px;
}
main .stat-value {
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font-num);
  letter-spacing: 1px;
}
main .stat-value--sm {
  font-size: 16px;
}
main .diff-positive {
  color: #6dda97;
}
main .diff-negative {
  color: #f87878;
}
main .stat-card--est {
  position: relative;
  overflow: visible;
}
main #precision {
  display: none;
  position: absolute;
  bottom: -15px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 1px 9px 2px;
  border-radius: 10px;
  border: 1px solid currentColor;
  -webkit-transition: color 0.35s, background 0.35s, -webkit-box-shadow 0.35s;
  transition: color 0.35s, background 0.35s, -webkit-box-shadow 0.35s;
  transition: color 0.35s, background 0.35s, box-shadow 0.35s;
  transition: color 0.35s, background 0.35s, box-shadow 0.35s, -webkit-box-shadow 0.35s;
}
main #precision b {
  font-size: 12px;
  font-family: var(--font-num);
  letter-spacing: 1px;
}
main #precision[data-stage="1"] {
  color: rgba(168, 228, 255, 0.8);
  background: rgba(12, 52, 62, 0.92);
}
main #precision[data-stage="2"] {
  color: rgba(55, 195, 160, 0.95);
  background: rgba(10, 58, 54, 0.92);
}
main #precision[data-stage="3"] {
  color: #20C090;
  background: rgba(10, 58, 52, 0.92);
}
main #precision[data-stage="4"] {
  color: #97f757;
  background: rgba(14, 58, 40, 0.92);
}
main #precision[data-stage="5"] {
  color: #f85f67;
  background: rgba(62, 40, 42, 0.92);
}
main #precision[data-stage="6"] {
  color: #FFD166;
  background: rgba(66, 56, 6, 0.92);
  border-color: rgba(255, 209, 102, 0.65);
  -webkit-box-shadow: 0 0 6px rgba(255, 209, 102, 0.4);
          box-shadow: 0 0 6px rgba(255, 209, 102, 0.4);
}
main .bar-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
main .bar-label {
  width: 64px;
  text-align: right;
  font-family: var(--font-num);
  letter-spacing: 1px;
  font-size: 12px;
}
main .bar-track {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 18px;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}
main .bar-track--intersection {
  height: 22px;
}
main .bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #5DCAA5;
  opacity: 0.45;
}
main .bar-fill--intersection {
  background: #1D9E75;
  opacity: 1;
  -webkit-transition: background-color 0.35s ease;
  transition: background-color 0.35s ease;
}
main .bar-row--intersection {
  padding: 10px 5px 5px 5px;
  background-color: rgba(255, 255, 255, 0.075);
}
main .bar-row--intersection[data-stage="1"] .bar-label {
  color: rgba(168, 228, 255, 0.7);
}
main .bar-row--intersection[data-stage="1"] .bar-fill--intersection {
  background: rgba(113, 170, 211, 0.55);
}
main .bar-row--intersection[data-stage="2"] .bar-label {
  color: rgba(55, 195, 160, 0.9);
}
main .bar-row--intersection[data-stage="2"] .bar-fill--intersection {
  background: rgba(45, 185, 148, 0.85);
}
main .bar-row--intersection[data-stage="3"] .bar-label {
  color: #20C090;
}
main .bar-row--intersection[data-stage="3"] .bar-fill--intersection {
  background: #1DB88A;
}
main .bar-row--intersection[data-stage="4"] .bar-label {
  color: #97f757;
}
main .bar-row--intersection[data-stage="4"] .bar-fill--intersection {
  background: #8bf54e;
}
main .bar-row--intersection[data-stage="5"] .bar-label {
  color: #ff737a;
}
main .bar-row--intersection[data-stage="5"] .bar-fill--intersection {
  background: #f85f67;
}
main .bar-row--intersection[data-stage="6"] .bar-label {
  color: #FFD166;
  text-shadow: 0 0 6px rgba(255, 200, 80, 0.6);
}
main .bar-row--intersection[data-stage="6"] .bar-track--intersection {
  -webkit-box-shadow: 0 0 5px 2px rgba(255, 209, 102, 0.4);
          box-shadow: 0 0 5px 2px rgba(255, 209, 102, 0.4);
}
main .bar-row--intersection[data-stage="6"] .bar-fill--intersection {
  background: #FFD166;
}
main .bar-row--intersection[data-stage="1"] + .bar-scale .bar-scale-labels span {
  color: rgba(156, 219, 248, 0.7);
}
main .bar-row--intersection[data-stage="2"] + .bar-scale .bar-scale-labels span {
  color: rgba(55, 195, 160, 0.9);
}
main .bar-row--intersection[data-stage="3"] + .bar-scale .bar-scale-labels span {
  color: #20C090;
}
main .bar-row--intersection[data-stage="4"] + .bar-scale .bar-scale-labels span {
  color: #8bf54e;
}
main .bar-row--intersection[data-stage="5"] + .bar-scale .bar-scale-labels span {
  color: #f85f67;
}
main .bar-row--intersection[data-stage="6"] + .bar-scale .bar-scale-labels span {
  color: #FFD166;
}
main .bar-separator {
  height: 0.5px;
  margin: 5px 0 5px 72px;
}
main .bar-scale {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  margin-top: -5px;
  padding: 0 5px;
  background-color: rgba(255, 255, 255, 0.075);
}
main .bar-scale-labels {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-num);
  letter-spacing: 1px;
}
main .bar-scale-labels span {
  font-family: var(--font-num);
  letter-spacing: 1px;
}
main #log {
  background-color: rgba(200, 255, 255, 0.05);
}
main th,
main td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  text-shadow: 1px 1px 1px #000;
}
main th {
  padding: 5px 8px;
  font-weight: 400;
  font-size: 12px;
}
main td {
  padding: 5px 8px;
  font-size: 13px;
  font-family: var(--font-num);
  letter-spacing: 1px;
}
main td.is-binding {
  color: #fc3;
}
main td.constraint {
  text-align: right;
}
main .constraint-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  background: #E1F5EE;
  color: #085041;
  text-shadow: none;
}
main .btn-remove {
  font-size: 11px;
  padding: 2px 8px;
}
main #undo {
  opacity: 0.6;
  position: relative;
  width: 1.25em;
  height: 1.25em;
  border: none;
  border-radius: 100%;
  vertical-align: middle;
  font-size: 16px;
}
main #undo::before {
  content: '↺';
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 1px #000;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}
main #undo:hover {
  opacity: 1;
}
main #set-ref {
  font-size: 12px;
  padding: 3px 14px;
  opacity: 0.8;
}
/* スマホ */
@media screen and (max-width: 519px) {
  span.wide {
    display: none;
  }
}
