fter {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  background: #0c0c0f;
  color: #e8e4d9;
  font-family: 'IBM Plex Mono', monospace;
  min-height: 100vh;
  padding: 32px 16px
}

.header {
  text-align: center;
  margin-bottom: 40px
}

.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 8vw, 80px);
  letter-spacing: .08em;
  line-height: .95
}

.title span {
  color: #c8a84b
}

.subtitle {
  font-size: 11px;
  letter-spacing: .25em;
  color: #555;
  margin-top: 10px;
  text-transform: uppercase
}

.main {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start
}

@media(max-width:640px) {
  .main {
    grid-template-columns: 1fr
  }
}

.panel {
  background: #111116;
  border: 1px solid #222;
  padding: 24px
}

.panel-title {
  font-size: 10px;
  letter-spacing: .3em;
  color: #c8a84b;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e1e22
}

.field {
  margin-bottom: 20px
}

.field:last-child {
  margin-bottom: 0
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: .2em;
  color: #777;
  margin-bottom: 9px;
  text-transform: uppercase
}

.val {
  color: #c8a84b;
  font-weight: 500;
  cursor: text;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
  white-space: nowrap;
  flex-shrink: 0
}

.val:hover {
  border-bottom-color: #c8a84b55
}

.val-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #c8a84b;
  color: #c8a84b;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  outline: none;
  text-align: right;
  width: 88px;
  padding-bottom: 1px
}

.val-input::-webkit-outer-spin-button,
.val-input::-webkit-inner-spin-button {
  -webkit-appearance: none
}

.val-input[type=number] {
  -moz-appearance: textfield
}

input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  height: 2px;
  background: #222;
  outline: none;
  cursor: pointer;
  display: block;
  margin-top: 2px
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #c8a84b;
  cursor: pointer;
  border-radius: 0
}

input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #c8a84b;
  cursor: pointer;
  border-radius: 0;
  border: none
}

input[type=range].frozen {
  opacity: .18;
  pointer-events: none
}

input[type=range].frozen::-webkit-slider-thumb {
  background: #333
}

.field.frozen-field .field-label {
  opacity: .3
}

.field.frozen-field .hint {
  opacity: .3
}

.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.radio-btn {
  flex: 1;
  min-width: 0;
  padding: 7px 4px;
  background: #0a0a0d;
  border: 1px solid #222;
  color: #555;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  line-height: 1.4
}

.radio-btn.active {
  background: #c8a84b18;
  border-color: #c8a84b;
  color: #c8a84b
}

.radio-btn .sub {
  color: #2e2e2e;
  display: block;
  font-size: 7.5px;
  margin-top: 1px
}

.radio-btn.active .sub {
  color: #c8a84b55
}

.hint {
  font-size: 9px;
  color: #3a3a34;
  margin-top: 6px;
  line-height: 1.6
}

.warn-banner {
  font-size: 9px;
  letter-spacing: .12em;
  padding: 7px 10px;
  border: 1px solid;
  margin-top: 8px;
  line-height: 1.5;
  display: none
}

.warn-banner.age-warn {
  border-color: #7a5a2a;
  color: #8a6a3a;
  background: #1a1400
}

.warn-banner.dart-warn {
  border-color: #7a3a2a;
  color: #8a4a3a;
  background: #150a00
}

.warn-banner.show {
  display: block
}

.divider {
  border: none;
  border-top: 1px solid #1a1a1f;
  margin: 20px 0
}

.profile-summary {
  border: 1px solid #1e1e22;
  padding: 12px 14px;
  margin-top: 4px
}

.profile-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin-bottom: 6px;
  letter-spacing: .1em
}

.profile-row:last-child {
  margin-bottom: 0
}

.profile-row .pk {
  color: #555;
  text-transform: uppercase
}

.profile-row .pv {
  color: #888
}

.mat-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px
}

.mat-btn {
  padding: 7px 4px;
  background: #0a0a0d;
  border: 1px solid #1e1e22;
  color: #444;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  line-height: 1.5
}

.mat-btn:hover {
  border-color: #333;
  color: #666
}

.mat-btn.active {
  background: #c8a84b10;
  border-color: #c8a84b55;
  color: #c8a84b
}

.mat-btn .mat-sub {
  font-size: 7px;
  color: #2a2a2a;
  display: block;
  margin-top: 1px
}

.mat-btn.active .mat-sub {
  color: #c8a84b44
}

.custom-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px
}

.custom-field label {
  display: block;
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px
}

.custom-field input[type=number] {
  width: 100%;
  background: #0a0a0d;
  border: 1px solid #222;
  color: #c8a84b;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 8px;
  outline: none;
  letter-spacing: .1em
}

.custom-field input[type=number]:focus {
  border-color: #c8a84b55
}

.custom-field input::-webkit-outer-spin-button,
.custom-field input::-webkit-inner-spin-button {
  -webkit-appearance: none
}

.custom-field input[type=number] {
  -moz-appearance: textfield
}

.results-panel {
  grid-column: 1/-1;
  background: #111116;
  border: 1px solid #222;
  padding: 24px
}

.metrics-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #1a1a1f;
  border: 1px solid #1a1a1f;
  margin-bottom: 1px
}

.metrics-bot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #1a1a1f;
  border: 1px solid #1a1a1f;
  margin-bottom: 24px
}

@media(max-width:540px) {

  .metrics-top,
  .metrics-bot {
    grid-template-columns: 1fr 1fr
  }
}

.metric {
  background: #111116;
  padding: 16px 16px
}

.metric-label {
  font-size: 9px;
  letter-spacing: .2em;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 6px
}

.metric-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  letter-spacing: .04em;
  line-height: 1;
  color: #e8e4d9
}

.metric-unit {
  font-size: 10px;
  color: #444;
  margin-top: 3px
}

.metric.weight-cell .hold-badge {
  display: inline-block;
  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-top: 5px;
  border: 1px solid
}

.metric.range-cell .metric-value {
  font-size: 34px
}

.metric.range-cell .metric-unit {
  line-height: 1.6
}

.eloss-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px
}

.eloss-label {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #555;
  white-space: nowrap
}

.eloss-track {
  flex: 1;
  height: 2px;
  background: #1a1a1f
}

.eloss-fill {
  height: 100%;
  transition: width .35s ease, background .35s
}

.eloss-val {
  font-size: 9px;
  color: #555;
  white-space: nowrap;
  width: 38px;
  text-align: right
}

.faint-section {
  border-top: 1px solid #1e1e22;
  padding-top: 22px
}

.faint-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px
}

.faint-left .faint-title {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 4px
}

.faint-left .faint-sub {
  font-size: 9px;
  color: #3a3a34;
  letter-spacing: .1em
}

.faint-word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: .08em;
  line-height: 1;
  transition: color .3s
}

.faint-bar-track {
  height: 8px;
  background: #1a1a1f
}

.faint-bar-fill {
  height: 100%;
  transition: width .35s ease, background .35s
}

.faint-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 8px;
  color: #2a2a24;
  letter-spacing: .12em;
  text-transform: uppercase
}
