.de-dm-hero-coins {
  display: grid;
  grid-template-columns: 16.5fr 18.5fr 21.5fr;
  align-items: center;
  gap: clamp(8px, 1.8vw, 24px);
  padding: clamp(12px, 3vw, 32px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #10243a;
}

.de-dm-hero-image .de-dm-hero-coins img,
.de-dm-photo img { border-radius: 50%; }

.de-dm-grid,
.de-dm-example {
  display: grid;
  gap: clamp(12px, 1.8vw, 24px);
}
.de-dm-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}
.de-dm-example {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
}
.de-dm-example p { margin-top: 12px; }
.de-dm-example .de-dm-faces { max-width: 424px; }

.de-dm-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(12px, 1.5vw, 24px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(15, 29, 49, .74);
}
.de-dm-card h3 { text-wrap: balance; }
.de-dm-card p { margin: 0; font-size: .875rem; line-height: 1.5; }
.de-dm-portrait .de-dm-faces { margin-top: auto; }
.de-dm-portrait strong { color: var(--text-primary); }

.de-dm-faces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.de-dm-photo {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #0b1524;
  cursor: zoom-in;
}
.de-dm-photo:hover { border-color: var(--accent-cyan); }
.de-dm-photo:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
.de-dm-photo img { display: block; width: 100%; height: auto; }

.de-dm-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--card-border);
}
.de-dm-specs dt { font-size: .75rem; line-height: 1.375; color: var(--text-secondary); }
.de-dm-specs dd {
  margin: 4px 0 0;
  font-size: .875rem;
  line-height: 1.375;
  font-weight: 650;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.de-dm-exchange {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.de-dm-exchange div {
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #10243a;
  font-variant-numeric: tabular-nums;
}
.de-dm-exchange dt { font-size: .875rem; color: var(--text-secondary); }
.de-dm-exchange dd { margin: 4px 0 0; font-size: 1.125rem; color: var(--accent-cyan); font-weight: 700; }

.de-dm-dialog {
  width: min(94vw, 600px);
  max-height: 94dvh;
  margin: auto;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: #0b1524;
  color: var(--text-primary);
}
.de-dm-dialog::backdrop { background: rgb(3 8 16 / .86); }
.de-dm-dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.de-dm-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(94dvh - 92px);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 1050px) {
  .de-dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .de-dm-grid,
  .de-dm-example { grid-template-columns: minmax(0, 1fr); }
  .de-dm-exchange { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
