/* ── Hexmaps embed card ────────────────────────────────────────────── */
.hexmap-embed {
  background: #fff;
  border: 1px solid var(--mg-hairline-light);
  border-radius: 20px;
  padding: 32px;
}
.hexmap-embed--flush {
  margin-top: 32px;
}

.hexmap-embed__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--mg-hairline-light);
}

.hexmap-embed__accent {
  width: 6px;
  height: 48px;
  border-radius: 3px;
  flex: none;
  background: var(--mg-green);
}

.hexmap-embed__eyebrow {
  font-family: var(--mg-font-pixel);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--mg-green);
  margin-bottom: 6px;
}

.hexmap-embed__title {
  font-family: var(--mg-font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--mg-ink);
  margin: 0;
  letter-spacing: -0.3px;
}

.hexmap-embed__desc {
  font-family: var(--mg-font-body);
  font-size: 14px;
  color: #4f5764;
  margin: 4px 0 0;
}

.hexmap-embed__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hexmap-embed__control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hexmap-embed__label {
  font-family: var(--mg-font-body);
  font-weight: 600;
  font-size: 12px;
  color: #4f5764;
}

.hexmap-embed__select {
  padding: 6px 12px;
  border: 1px solid var(--mg-hairline-light);
  border-radius: 9999px;
  font-family: var(--mg-font-mono);
  font-size: 13px;
  background: #fff;
  outline: none;
}

.hexmap-embed__select:focus {
  border-color: var(--mg-green);
}

.hexmap-embed__seed {
  font-family: var(--mg-font-mono);
  font-size: 12px;
  color: #4f5764;
  margin-left: auto;
}

.hexmap-embed__iframe {
  width: 100%;
  aspect-ratio: 5 / 4;
  border: none;
  border-radius: 12px;
  background: #fff;
  display: block;
}

.hexmap-embed__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hexmap-embed--flush {
  background: var(--mg-canvas-light);
  border: none;
  padding: 0;
}
.hexmap-embed--flush .hexmap-embed__iframe {
  background: var(--mg-canvas-light);
  border-radius: 12px;
}

/* ── Powered by Moddable Hexmaps engine band ─────────────────────── */
.hex-engine-band {
  background: var(--mg-cosmic-deep);
  color: #fff;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hex-engine-band__hex {
  position: absolute;
  inset: 0;
  background-image: url('../img/hex-grid-green.svg');
  background-size: 56px 64px;
  opacity: 0.06;
  pointer-events: none;
  animation: hexFloat 30s linear infinite;
}

.hex-engine-band__inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hex-engine-band__heading {
  font-family: var(--mg-font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hex-engine-band__body {
  font-family: var(--mg-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hex-engine-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.hex-engine-band__usp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
}

.hex-engine-band__usp-num {
  font-family: var(--mg-font-display);
  font-weight: 700;
  font-size: 28px;
  color: #6dff6d;
}

.hex-engine-band__usp-label {
  font-family: var(--mg-font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.3px;
}

.hex-engine-band__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hexmap-embed { padding: 20px; }
  .hexmap-embed__iframe { aspect-ratio: 4 / 3; }
  .hexmap-embed__controls { flex-direction: column; align-items: stretch; gap: 10px; }
  .hexmap-embed__control-group { justify-content: center; }
  .hexmap-embed__select { width: 100%; text-align: center; }
  .hexmap-embed__seed { margin-left: 0; width: 100%; text-align: center; }
  .hexmap-embed__header { flex-direction: column; align-items: center; text-align: center; }
  .hexmap-embed__accent { display: none; }
  .hex-engine-band { padding: 56px 20px; }
  .hex-engine-band__grid { grid-template-columns: 1fr 1fr; }
}
