.clan-detail-crest {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.clan-detail-crest-button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.clan-detail-crest-button:hover,
.clan-detail-crest-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 218, 142, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 239, 198, 0.22), 0 1.25rem 2.8rem rgba(0, 0, 0, 0.42);
  outline: none;
}

.clan-detail-crest-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  padding: 0.35rem;
  object-fit: contain;
  border-radius: inherit;
}

.clan-detail-crest-edit-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.35rem;
  object-fit: contain;
  border: 1px solid rgba(255, 224, 160, 0.6);
  border-radius: 999px;
  background: rgba(7, 16, 28, 0.88);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.36);
}

.clan-detail-crest small {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  margin-top: 0;
}

.clan-icon-messages {
  display: grid;
  gap: 0.5rem;
}

.clan-icon-message {
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(244, 196, 103, 0.32);
  border-radius: 0.8rem;
  background: rgba(16, 27, 42, 0.9);
  color: rgba(249, 239, 216, 0.96);
}

.clan-icon-message.is-success {
  border-color: rgba(112, 214, 143, 0.5);
}

.clan-icon-message.is-error {
  border-color: rgba(239, 147, 125, 0.56);
}

.clan-icon-dialog {
  width: min(34rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid rgba(244, 200, 112, 0.48);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(21, 35, 53, 0.99), rgba(6, 14, 26, 0.99));
  color: rgba(246, 238, 219, 0.96);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.62);
}

.clan-icon-dialog::backdrop {
  background: rgba(2, 7, 14, 0.78);
  backdrop-filter: blur(4px);
}

.clan-icon-upload-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.clan-icon-upload-form > p {
  margin: 0;
  color: rgba(229, 222, 205, 0.8);
  line-height: 1.55;
}

.clan-icon-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.clan-icon-dialog-head h2 {
  margin: 0.15rem 0 0;
  font-family: "Cinzel", serif;
  color: #f5d58f;
}

.clan-icon-dialog-close {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid rgba(230, 195, 123, 0.28);
  border-radius: 999px;
  background: rgba(7, 16, 28, 0.78);
  color: rgba(246, 238, 219, 0.92);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.clan-icon-file-field {
  display: grid;
  gap: 0.55rem;
  font-weight: 800;
}

.clan-icon-file-field input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(230, 195, 123, 0.28);
  border-radius: 0.75rem;
  background: rgba(4, 12, 22, 0.72);
  color: rgba(246, 238, 219, 0.92);
}

.clan-icon-file-note {
  font-size: 0.88rem;
}

.clan-icon-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.clan-icon-dialog-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}
