#supply .supply-fitting {
  display: grid;
  gap: clamp(9px, 1.4vw, 15px);
  min-width: 0;
}

#supply .supply-fitting .supply-preview { position: static; }

#founders-crew-panel {
  --founders-light: #ffe3a0;
  min-width: 0;
  padding: clamp(7px, 1.4vw, 14px);
  border: 1px solid #bc9255;
  border-radius: 3px 15px 3px 12px;
  background:
    linear-gradient(90deg, #f9dda1, #bb7d34 44%, transparent 80%) left top / 100% 2px no-repeat,
    radial-gradient(ellipse at top, #614527 0, transparent 74%),
    linear-gradient(150deg, #362d24, #1a2021 80%);
  box-shadow: inset 0 0 0 3px #4a3a28a3, 0 5px 12px #10181977;
}

.founders-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid #8e6839;
}

.founders-heading h3,
.founders-card :is(h4, p) { margin: 0; }

.founders-heading h3,
#founders-ownership { color: var(--founders-light); }

#founders-ownership {
  padding: 3px 5px;
  border: 1px solid #ad8349;
  border-radius: 2px 6px;
  background: #211e19;
  font-size: 9px;
}

#founders-crew-panel[data-owned="true"] #founders-ownership {
  color: #e9f4c3;
  border-color: #9aaf72;
  background: #242d22;
}

.founders-card {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.founders-card h4 {
  color: #fff0c5;
  font-size: clamp(15px, 2vw, 23px);
  font-weight: 850;
  line-height: 1.08;
}

.founders-card .founders-subtitle {
  margin-top: 4px;
  color: #f2cc89;
  font-size: 11px;
  font-weight: 690;
  line-height: 1.25;
}

.founders-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 4px;
  border: 1px solid #80613d;
  border-radius: 2px 10px 2px 8px;
  background:
    radial-gradient(ellipse at 38% 46%, #dba05338, transparent 71%),
    linear-gradient(110deg, #282721, #182123 70%);
}

.founders-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

.founders-weapons {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding-left: 4px;
  border-left: 1px solid #b98c4b55;
}

.founders-weapons canvas {
  max-width: 92px;
  margin-inline: auto;
  border-bottom: 1px solid #a681484a;
}

.founders-weapons canvas:last-child { border-bottom: 0; }

.founders-contents {
  color: #f2d291;
  font-size: 11px;
  font-weight: 730;
  line-height: 1.3;
}

.founders-description,
#founders-feedback {
  color: #e6d9c5;
  font-size: 11px;
  line-height: 1.35;
}

#founders-feedback { color: var(--founders-light); }
#founders-feedback:empty { display: none; }

.founders-claim-controls,
.founders-controls { display: grid; gap: 6px; }

#founders-membership {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#supply .founders-card .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 5px 7px;
  border-radius: 2px 8px 2px 8px;
  line-height: 1.1;
}

#supply #founders-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px 7px;
  flex-wrap: wrap;
  border-color: #8b93ff;
  background: #5865f2;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

#supply #founders-discord:hover { background: #4752c4; }
#supply #founders-discord:is(:focus-visible, [data-pad-focus]) { outline: 3px solid #fff2ba; outline-offset: 2px; }
#founders-discord img { flex: none; }

#supply #founders-claim {
  border-color: #ffdd87;
  color: #2c1d14;
  background: linear-gradient(174deg, #ffefbd, #e6b657 57%, #ce9440);
}

#supply #founders-claim:disabled {
  border-color: #81704f;
  color: #e0cba9;
  background: #40372b;
  cursor: default;
  opacity: 1;
}

#supply .founders-controls .btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 5px;
  border-color: #9e7946;
  color: #f5dfbd;
  background: linear-gradient(110deg, #483923, #242a28);
  font-size: 12px;
  text-align: left;
}

.founders-controls strong { color: #ffda91; }
#supply .founders-controls .btn[aria-pressed="true"] {
  border-color: #b9cc8a;
  background: linear-gradient(110deg, #404832, #283328);
}
.founders-controls [aria-pressed="true"] strong { color: #e1f2ab; }

@media (max-width: 650px) {
  .founders-heading h3 { font-size: 9px; }
  .founders-preview {
    grid-template-columns: minmax(0, 1fr);
    padding: 2px;
  }
  .founders-preview > canvas {
    width: min(100%, 98px);
    justify-self: center;
  }
  .founders-weapons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 2px 0 0;
    border: 0;
    border-top: 1px solid #b98c4b55;
  }
  .founders-weapons canvas { border: 0; }
  #supply .founders-controls .btn { font-size: 11px; }
}
