/*
 * DonutHeist theme styles. Uses the theme tokens (--cl-*) so colors follow the theme settings.
 * Pink = accent color, gold = coins.
 */
:root {
  --dh-gold: 247, 190, 62;
  --dh-gold-deep: 222, 172, 75;
  --dh-ink: 14, 10, 18;
  --dh-card: 32, 23, 40;
  --dh-card-2: 41, 29, 51;
}

/* ── Buttons ─────────────────────────────────────────────── */
.dh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: 9999px;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
  cursor: pointer;
  user-select: none;
}
.dh-btn--lg { padding: 0.95rem 1.6rem; font-size: 1.1rem; }
.dh-btn--primary {
  color: rgb(var(--cl-on-accent));
  background: linear-gradient(135deg, rgb(var(--cl-accent)) 0%, color-mix(in srgb, rgb(var(--cl-accent)), #ff2f6d 35%) 100%);
  box-shadow: 0 10px 28px -10px rgba(var(--cl-accent), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
@media (hover: hover) { .dh-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(var(--cl-accent), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3); } }
.dh-btn--primary:active:not(:disabled) { transform: translateY(0); }
.dh-btn--ghost {
  color: rgb(var(--cl-t-primary));
  border: 1px solid var(--cl-border);
  background: rgba(var(--cl-t-primary), 0.04);
}
@media (hover: hover) { .dh-btn--ghost:hover { background: rgba(var(--cl-t-primary), 0.09); transform: translateY(-2px); } }
.dh-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* ── Navbar wordmark ─────────────────────────────────────── */
.dh-wordmark {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.005em;
  line-height: 1;
  color: rgb(var(--cl-t-primary));
}
.dh-wordmark b { font-weight: 800; color: rgb(var(--cl-accent)); }

/* ── Shared bits ─────────────────────────────────────────── */
.dh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--cl-accent), 0.35);
  background: rgba(var(--cl-accent), 0.1);
  color: rgb(var(--cl-t-primary));
  font-size: 0.85rem;
  font-weight: 600;
}
.dh-eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgb(var(--dh-gold));
  box-shadow: 0 0 0 4px rgba(var(--dh-gold), 0.18);
}
.dh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--cl-border);
  background: rgba(var(--cl-t-primary), 0.04);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgb(var(--cl-t-primary));
}
.dh-chip i { color: rgb(var(--dh-gold)); }

/* Highlighted words in titles: pink to gold */
.sa-tpl-shop .hl-accent .mk,
.dh-hero .hl-accent .mk {
  background: linear-gradient(100deg, rgb(var(--cl-accent)) 10%, rgb(var(--dh-gold)) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Hero ────────────────────────────────────────────────── */
.dh-hero-title {
  margin-top: 1.1rem;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.dh-hero-art-wrap { display: flex; justify-content: center; }
.dh-hero-art {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.dh-hero-halo {
  position: absolute;
  inset: 6%;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--cl-accent), 0.45), transparent 62%),
    radial-gradient(circle at 60% 70%, rgba(var(--dh-gold), 0.28), transparent 55%);
  filter: blur(18px);
  animation: dh-pulse 5s ease-in-out infinite;
}
.dh-hero-ring {
  position: absolute;
  inset: 9%;
  border-radius: 9999px;
  border: 2px dashed rgba(var(--dh-gold), 0.28);
  animation: dh-spin 40s linear infinite;
}
.dh-hero-mascot {
  position: relative;
  width: 74%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  animation: dh-float 4.5s ease-in-out infinite;
  z-index: 2;
}
.dh-hero-floaters { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.dh-floater { position: absolute; display: block; animation: dh-bob 3.6s ease-in-out infinite; }
.dh-floater svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.dh-floater-0 { width: 46px; left: 6%;  top: 18%; animation-delay: -0.4s; }
.dh-floater-1 { width: 32px; left: 16%; top: 62%; animation-delay: -1.6s; }
.dh-floater-2 { width: 54px; right: 6%; top: 24%; animation-delay: -2.2s; }
.dh-floater-3 { width: 28px; right: 18%; top: 8%;  animation-delay: -0.9s; }
.dh-floater-4 { width: 40px; right: 10%; top: 70%; animation-delay: -2.8s; }
.dh-floater-5 { width: 24px; left: 30%; top: 4%;   animation-delay: -1.2s; }
.dh-floater-6 { width: 30px; left: 2%;  top: 44%;  animation-delay: -3.1s; }
.dh-floater-7 { width: 36px; left: 40%; top: 86%;  animation-delay: -2s; }
.dh-floater-8 { width: 26px; right: 30%; top: 90%; animation-delay: -0.2s; }
.dh-floater-bill-0 { width: 70px; left: 8%;  top: 80%; animation-delay: -1.1s; --dh-tilt: -14deg; }
.dh-floater-bill-1 { width: 62px; right: 2%; top: 48%; animation-delay: -2.5s; --dh-tilt: 12deg; }
.dh-spark-0 { width: 22px; left: 22%; top: 26%; animation: dh-twinkle 2.4s ease-in-out infinite; }
.dh-spark-1 { width: 18px; right: 22%; top: 60%; animation: dh-twinkle 2.4s ease-in-out infinite -1.2s; }
.dh-sticker {
  position: absolute;
  z-index: 4;
  right: 2%;
  bottom: 10%;
  padding: 0.55rem 0.95rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(var(--dh-gold)), rgb(var(--dh-gold-deep)));
  color: rgb(var(--dh-ink));
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.05rem;
  transform: rotate(-6deg);
  box-shadow: 0 14px 30px -12px rgba(var(--dh-gold), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(var(--dh-ink), 0.85);
  animation: dh-sticker 5s ease-in-out infinite;
}

/* ── Packs ───────────────────────────────────────────────── */
.dh-pack-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (min-width: 640px) { .dh-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .dh-pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.dh-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--cl-border);
  background: linear-gradient(180deg, rgba(var(--dh-card-2), 0.95), rgba(var(--dh-card), 0.95));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
}
@media (hover: hover) { .dh-pack:hover { transform: translateY(-6px); border-color: rgba(var(--cl-accent), 0.45); box-shadow: 0 24px 50px -24px rgba(var(--cl-accent), 0.55); } }
.dh-pack--1b {
  border-color: rgba(var(--dh-gold), 0.45);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--dh-gold), 0.16), transparent 60%),
    linear-gradient(180deg, rgba(var(--dh-card-2), 0.95), rgba(var(--dh-card), 0.95));
}
@media (hover: hover) { .dh-pack--1b:hover { border-color: rgba(var(--dh-gold), 0.8); box-shadow: 0 26px 60px -22px rgba(var(--dh-gold), 0.55); } }

.dh-pack-badge {
  position: absolute;
  z-index: 5;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgb(var(--cl-on-accent));
  background: rgb(var(--cl-accent));
}
.dh-pack--1b .dh-pack-badge { color: rgb(var(--dh-ink)); background: linear-gradient(135deg, rgb(var(--dh-gold)), rgb(var(--dh-gold-deep))); }

.dh-pack-media {
  position: relative;
  aspect-ratio: 1 / 0.9;
  display: grid;
  place-items: center;
  padding: 1.25rem 1.25rem 0.25rem;
  cursor: pointer;
}
.dh-pack-glow {
  position: absolute;
  inset: 14% 12% 6%;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(var(--cl-accent), 0.32), transparent 65%);
  filter: blur(14px);
  z-index: 0;
}
.dh-pack--250m .dh-pack-glow { background: radial-gradient(circle, rgba(var(--cl-accent), 0.4), rgba(var(--dh-gold), 0.12) 45%, transparent 68%); }
.dh-pack--500m .dh-pack-glow { background: radial-gradient(circle, rgba(var(--dh-gold), 0.38), rgba(var(--cl-accent), 0.22) 45%, transparent 70%); }
.dh-pack--1b .dh-pack-glow { inset: 6% 4% 0; background: radial-gradient(circle, rgba(255, 170, 60, 0.55), rgba(var(--dh-gold), 0.25) 40%, transparent 70%); animation: dh-pulse 3.2s ease-in-out infinite; }
.dh-pack-glow.is-flash { animation: dh-flash 0.7s ease-out; }
.dh-pack--1b .dh-pack-glow.is-flash { animation: dh-flash 0.7s ease-out, dh-pulse 3.2s ease-in-out 0.7s infinite; }

.dh-pack-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-width: 260px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4));
  animation: dh-float 4.2s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.dh-pack--250m .dh-pack-img { animation-delay: -1s; }
.dh-pack--500m .dh-pack-img { animation-delay: -2s; }
.dh-pack--1b .dh-pack-img { animation-delay: -3s; }
@media (hover: hover) { .dh-pack:hover .dh-pack-img { transform: scale(1.05) rotate(-1.5deg); } }

.dh-pack-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.dh-p { position: absolute; left: 50%; top: 52%; display: block; pointer-events: none; will-change: transform, opacity; }
.dh-p svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.dh-p-coin { width: 26px; }
.dh-p-bill { width: 44px; }

.dh-pack-body { padding: 0.5rem 1.25rem 1.35rem; text-align: center; display: flex; flex-direction: column; flex: 1; }
.dh-pack-tagline { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--cl-t-muted)); }
.dh-pack-amount {
  margin-top: 0.15rem;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  color: rgb(var(--cl-t-primary));
}
.dh-pack--1b .dh-pack-amount {
  background: linear-gradient(100deg, rgb(var(--dh-gold)), #ffdf8a 50%, rgb(var(--dh-gold-deep)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dh-pack-price { margin: 0.4rem 0 1rem; font-size: 1.3rem; font-weight: 700; color: rgb(var(--cl-t-primary)); }
.dh-pack-body .dh-btn { margin-top: auto; }

.dh-shake { animation: dh-shake 0.55s cubic-bezier(.36,.07,.19,.97); }

/* Custom amount */
.dh-custom {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(var(--cl-accent), 0.3);
  background:
    radial-gradient(90% 120% at 0% 50%, rgba(var(--cl-accent), 0.14), transparent 60%),
    linear-gradient(180deg, rgba(var(--dh-card-2), 0.95), rgba(var(--dh-card), 0.95));
}
@media (min-width: 768px) {
  .dh-custom { grid-template-columns: 200px 1fr; padding: 1.5rem 2rem 1.5rem 1rem; gap: 1.5rem; }
}
.dh-custom-art { display: grid; place-items: center; }
.dh-custom-art img { width: 100%; max-width: 200px; height: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4)); animation: dh-float 4.8s ease-in-out infinite; }
@media (max-width: 767px) { .dh-custom-art img { max-width: 150px; } }
.dh-custom-amount { font-size: 2.6rem; line-height: 1; font-weight: 800; color: rgb(var(--cl-t-primary)); font-variant-numeric: tabular-nums; }
.dh-custom-total { margin-top: 0.25rem; font-size: 1.15rem; font-weight: 700; color: rgb(var(--dh-gold)); font-variant-numeric: tabular-nums; }

.dh-range {
  /* The knob's centre travels from half a knob in from the left to half a knob in from the right. */
  --dh-thumb: 28px;
  --dh-stop: calc(var(--dh-thumb) / 2 + (100% - var(--dh-thumb)) * var(--dh-p, 0.5));
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgb(var(--cl-accent)) 0%, rgb(var(--dh-gold)) var(--dh-stop), rgba(var(--cl-t-primary), 0.12) var(--dh-stop));
  outline: none;
  cursor: pointer;
}
.dh-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: var(--dh-thumb);
  height: var(--dh-thumb);
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #fff3c4, rgb(var(--dh-gold)) 55%, rgb(var(--dh-gold-deep)));
  border: 3px solid rgb(var(--dh-ink));
  box-shadow: 0 4px 14px rgba(var(--dh-gold), 0.55);
}
.dh-range::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--dh-thumb);
  height: var(--dh-thumb);
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #fff3c4, rgb(var(--dh-gold)) 55%, rgb(var(--dh-gold-deep)));
  border: 3px solid rgb(var(--dh-ink));
  box-shadow: 0 4px 14px rgba(var(--dh-gold), 0.55);
}
.dh-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(var(--cl-accent), 0.45); }

.dh-quick {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--cl-border);
  background: rgba(var(--cl-t-primary), 0.05);
  color: rgb(var(--cl-t-primary));
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
@media (hover: hover) { .dh-quick:hover { background: rgba(var(--cl-t-primary), 0.1); } }
.dh-quick.is-active { border-color: rgb(var(--cl-accent)); background: rgba(var(--cl-accent), 0.18); }
.dh-amount-input {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid var(--cl-border);
  background: rgba(var(--cl-t-primary), 0.05);
  padding: 0 0.85rem 0 0.35rem;
}
.dh-amount-input input {
  width: 6.5rem;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0.45rem 0.5rem;
  font-weight: 700;
  text-align: right;
  color: rgb(var(--cl-t-primary));
  font-variant-numeric: tabular-nums;
}
.dh-amount-input span { font-weight: 700; color: rgb(var(--cl-t-muted)); }
.dh-packs-note { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; color: rgb(var(--cl-t-muted)); }
.dh-packs-note i { color: rgb(var(--dh-gold)); margin-right: 0.35rem; }

/* ── How it works / delivery demo ────────────────────────── */
.dh-steps { display: flex; flex-direction: column; gap: 1.6rem; }
.dh-step { display: flex; gap: 1.1rem; align-items: flex-start; }
.dh-step-icon {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 18px;
  font-size: 1.3rem;
  color: rgb(var(--cl-on-accent));
  background: linear-gradient(135deg, rgb(var(--cl-accent)), color-mix(in srgb, rgb(var(--cl-accent)), #ff2f6d 35%));
  box-shadow: 0 12px 26px -12px rgba(var(--cl-accent), 0.8);
}
.dh-step-num {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgb(var(--dh-ink));
  background: rgb(var(--dh-gold));
  border: 2px solid rgb(var(--cl-background));
}

.dh-demo {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--cl-border);
  background: linear-gradient(180deg, rgba(10, 7, 14, 0.92), rgba(18, 12, 24, 0.92));
  box-shadow: 0 30px 70px -35px rgba(var(--cl-accent), 0.55);
  overflow: hidden;
}
.dh-demo-top { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--cl-border); }
.dh-demo-dots { display: inline-flex; gap: 0.35rem; }
.dh-demo-dots i { width: 0.6rem; height: 0.6rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.18); }
.dh-demo-dots i:first-child { background: rgba(var(--cl-accent), 0.85); }
.dh-demo-title { font-size: 0.85rem; font-weight: 600; color: rgb(var(--cl-t-muted)); }
.dh-demo-label {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--dh-gold));
  border: 1px solid rgba(var(--dh-gold), 0.4);
}
.dh-demo-screen {
  min-height: 260px;
  padding: 1.1rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}
.dh-demo-line { line-height: 1.45; }
.dh-demo-tag { display: inline-block; padding: 0 0.45rem; border-radius: 6px; background: rgb(var(--cl-accent)); color: #fff; font-weight: 700; }
.dh-demo-crew { color: rgb(var(--dh-gold)); font-weight: 700; }
.dh-demo-caret { display: inline-block; margin-left: 1px; animation: dh-blink 0.9s steps(1) infinite; }
.dh-demo-ok { color: #7EE787; }
.dh-demo-balance {
  margin-top: 0.4rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dh-demo-balance span { color: rgba(255, 255, 255, 0.6); }
.dh-demo-balance b { font-size: 1.5rem; color: rgb(var(--dh-gold)); font-variant-numeric: tabular-nums; }
.dh-demo-done {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-family: var(--ff-body);
  font-weight: 700;
  color: #0b2a12;
  background: #7EE787;
}
.dh-demo-caption { padding: 0 1.1rem 1rem; font-size: 0.8rem; color: rgb(var(--cl-t-muted)); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes dh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dh-bob {
  0%, 100% { transform: translateY(0) rotate(var(--dh-tilt, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--dh-tilt, 0deg) + 10deg)); }
}
@keyframes dh-spin { to { transform: rotate(360deg); } }
@keyframes dh-pulse { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes dh-flash { 0% { opacity: 1; transform: scale(1); } 35% { opacity: 1; transform: scale(1.35); filter: blur(10px) brightness(1.6); } 100% { opacity: 0.9; transform: scale(1); } }
@keyframes dh-twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes dh-sticker { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-6px); } }
@keyframes dh-blink { 50% { opacity: 0; } }
@keyframes dh-shake {
  10%, 90% { transform: translate3d(-2px, -6px, 0) rotate(-0.4deg); }
  20%, 80% { transform: translate3d(4px, -6px, 0) rotate(0.6deg); }
  30%, 50%, 70% { transform: translate3d(-6px, -6px, 0) rotate(-0.8deg); }
  40%, 60% { transform: translate3d(6px, -6px, 0) rotate(0.8deg); }
}

/* Announcement bar: keep a gap where the scrolling strip loops */
.sa-announcement .animate-announcement-scroll { padding-right: 3rem; }
/* The free 5M item (every copy) waits for custom.js (dhFree) to hear that a bank can pay it: <html> gets dh-free-on.
   The static bar's stand-in for it steps aside then. */
html:not(.dh-free-on) .dh-bar-free { display: none; }
html.dh-free-on .dh-bar-free-alt { display: none; }

@media (max-width: 1023px) {
  .dh-hero-art { width: min(72%, 360px); }
}

/* Phones: packs in two compact columns */
@media (max-width: 639px) {
  .dh-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .dh-pack { border-radius: 18px; }
  .dh-pack:hover { transform: none; }
  .dh-pack-badge { top: 0.55rem; left: 0.55rem; padding: 0.2rem 0.5rem; font-size: 0.65rem; }
  .dh-pack-media { padding: 1.6rem 0.6rem 0; }
  .dh-pack-img { max-width: 150px; }
  .dh-pack-body { padding: 0.25rem 0.7rem 0.85rem; }
  .dh-pack-tagline { font-size: 0.62rem; letter-spacing: 0.06em; }
  .dh-pack-amount { font-size: 1.85rem; }
  .dh-pack-price { margin: 0.25rem 0 0.7rem; font-size: 1.05rem; }
  .dh-pack-body .dh-btn { padding: 0.65rem 0.6rem; font-size: 0.9rem; }
  .dh-custom { padding: 1rem; }
  .dh-custom-amount { font-size: 2rem; }
  .dh-hero-title { font-size: clamp(2.5rem, 12vw, 3.2rem); }
}

/* ── FAQ help card (desktop, left column) ───────────────── */
.dh-help {
  position: relative;
  max-width: 26rem;
  margin-top: 6rem; /* room for the mascot poking out of the top */
  padding: 5rem 1.75rem 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(var(--cl-accent), 0.25);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(var(--cl-accent), 0.2), transparent 70%),
    linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.dh-help-art {
  position: absolute;
  left: 50%;
  top: 0;
  width: 230px;
  height: 150px;
  transform: translate(-50%, -58%);
  pointer-events: none;
}
.dh-help-mascot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 150px;
  height: auto;
  margin-left: -75px;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5));
  animation: dh-float 4.5s ease-in-out infinite;
}
.dh-help-coin { position: absolute; display: block; animation: dh-bob 3.6s ease-in-out infinite; }
.dh-help-coin svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.dh-help-coin-0 { width: 30px; left: 0; top: 40px; animation-delay: -0.6s; }
.dh-help-coin-1 { width: 22px; left: 30px; top: 0; animation-delay: -1.8s; }
.dh-help-coin-2 { width: 26px; right: 4px; top: 96px; animation-delay: -2.7s; }
.dh-help-bubble {
  position: absolute;
  right: -48px;
  top: -2px;
  padding: 0.4rem 0.75rem;
  border-radius: 14px;
  background: #fff;
  color: rgb(var(--dh-ink));
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  rotate: 5deg;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  animation: dh-float 3.4s ease-in-out infinite -1s;
}
.dh-help-bubble::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -5px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.dh-help-title { font-size: 1.6rem; line-height: 1.15; text-align: center; color: rgb(var(--cl-t-primary)); }
.dh-help-text { margin-top: 0.4rem; text-align: center; color: rgb(var(--cl-t-muted)); }
.dh-help-facts {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--cl-border);
  font-size: 0.92rem;
  color: rgb(var(--cl-t-primary));
}
.dh-help-facts li { display: flex; align-items: center; gap: 0.7rem; }
.dh-help-facts i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9999px;
  background: rgba(var(--dh-gold), 0.12);
  color: rgb(var(--dh-gold));
  font-size: 0.85rem;
}

/* ── No sideways page drift on phones ─────────────────────
   Coin bursts and pack glows reach past the screen edge; clip them so the page can't be dragged sideways.
   (clip, unlike hidden, keeps the sticky navbar working.) */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
.dh-packs { overflow-x: clip; }

/* ── Stars (a 4.9 rating fills 98% of the last star row) ── */
.dh-stars {
  position: relative;
  display: inline-flex;
  gap: 3px;
  color: rgba(var(--cl-t-primary), 0.16);
  line-height: 1;
}
.dh-stars-fill {
  position: absolute;
  inset: 0;
  display: inline-flex;
  gap: 3px;
  width: var(--dh-fill, 100%);
  overflow: hidden;
  white-space: nowrap;
  color: rgb(var(--dh-gold));
}

/* Hero rating: a gold-outlined pill lined up with the buttons and chips (a bare line looked off to the left). */
.dh-hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  padding: 0.5rem 1.05rem 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--dh-gold), 0.35);
  background: rgba(var(--dh-gold), 0.08);
  font-size: 0.92rem;
  line-height: 1.3;
  color: rgb(var(--cl-t-muted));
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dh-hero-rating strong { color: rgb(var(--cl-t-primary)); font-weight: 700; }
@media (hover: hover) {
  .dh-hero-rating:hover { background: rgba(var(--dh-gold), 0.15); border-color: rgba(var(--dh-gold), 0.6); color: rgb(var(--cl-t-primary)); }
}
.dh-hero-rating .dh-stars { flex: none; font-size: 0.85rem; }
.dh-hero-rating:focus-visible { outline: 2px solid rgb(var(--dh-gold)); outline-offset: 3px; }
/* Phones: smaller, on one line; below 360px the longer translations (de, nl, sv) may wrap inside the pill. */
@media (max-width: 639px) {
  .dh-hero-rating { gap: 0.45rem; padding: 0.4rem 0.85rem 0.4rem 0.7rem; font-size: 0.8125rem; white-space: nowrap; }
  .dh-hero-rating .dh-stars { font-size: 0.72rem; }
}
@media (max-width: 359px) {
  .dh-hero-rating { white-space: normal; text-align: left; }
}

/* ── Sale (theme setting sale_on, components/dh-packs.njk) ── */
/* Red-orange "sale sticker" look, so the discount stands apart from the pink buttons and the gold badges. */
:root {
  --dh-sale-red: 227, 38, 28;     /* white text 4.6:1 */
  --dh-sale-orange: 201, 74, 10;  /* white text 4.7:1 */
  --dh-sale-flame: 255, 140, 48;  /* rims, glow and the strike line only, never behind text */
}
.dh-sale {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  max-width: 40rem;
  margin: -1.25rem auto 2rem;
  padding: 0.85rem 1.2rem 0.85rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(var(--dh-sale-red), 0.5);
  background:
    radial-gradient(120% 160% at 0% 50%, rgba(var(--dh-sale-red), 0.22), transparent 55%),
    linear-gradient(90deg, rgba(var(--dh-sale-orange), 0.1), rgba(var(--dh-sale-orange), 0.03));
  box-shadow: 0 18px 44px -26px rgba(var(--dh-sale-red), 0.8), inset 0 1px 0 rgba(var(--dh-sale-flame), 0.12);
  text-align: left;
}
.dh-sale-text { margin: 0; line-height: 1.4; font-size: 0.95rem; color: rgb(var(--cl-t-muted)); }
.dh-sale-text strong { display: block; font-size: 1.08rem; color: rgb(var(--cl-t-primary)); }
.dh-sale-text strong i { margin-right: 0.35rem; font-style: normal; }
/* Banner tag: a hang tag with a punch hole and a slow ember glow. */
.dh-sale-tag {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  padding: 0.45rem 0 0;
  border-radius: 16px;
  border: 2px solid rgba(var(--dh-ink), 0.85);
  background: linear-gradient(145deg, rgb(var(--dh-sale-red)), rgb(var(--dh-sale-orange)));
  color: #fff;
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(90, 12, 0, 0.55);
  transform: rotate(-6deg);
  box-shadow:
    0 0 0 1px rgba(var(--dh-sale-flame), 0.55),
    0 10px 24px -10px rgba(var(--dh-sale-red), 0.65),
    inset 0 1px 0 rgba(255, 214, 160, 0.5),
    inset 0 -3px 0 rgba(110, 18, 0, 0.35);
  animation: dh-ember 3.6s ease-in-out infinite;
}
.dh-sale-tag::before {
  content: "";
  position: absolute;
  top: 0.36rem;
  left: 50%;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: -0.21rem;
  border-radius: 50%;
  background: rgb(var(--dh-ink));
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 200, 150, 0.4);
}
@keyframes dh-ember {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(var(--dh-sale-flame), 0.55), 0 10px 24px -10px rgba(var(--dh-sale-red), 0.65),
      inset 0 1px 0 rgba(255, 214, 160, 0.5), inset 0 -3px 0 rgba(110, 18, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(var(--dh-sale-flame), 0.8), 0 10px 30px -6px rgba(var(--dh-sale-flame), 0.6),
      inset 0 1px 0 rgba(255, 214, 160, 0.5), inset 0 -3px 0 rgba(110, 18, 0, 0.35);
  }
}
/* Pack corner tag (top right; the top left holds the Starter / Biggest heist badge). */
.dh-pack-off {
  position: absolute;
  z-index: 5;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--dh-sale-flame), 0.7);
  background: linear-gradient(135deg, rgb(var(--dh-sale-red)), rgb(var(--dh-sale-orange)));
  color: #fff;
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(90, 12, 0, 0.5);
  transform: rotate(4deg);
  box-shadow: 0 0 0 2px rgba(var(--dh-ink), 0.6), 0 6px 16px -4px rgba(var(--dh-sale-red), 0.7), inset 0 1px 0 rgba(255, 214, 160, 0.45);
}
/* Cards with a Starter / Biggest heist badge: the tag sits under the badge, so long translations never meet it. */
.dh-pack-badge + .dh-pack-off { top: 2.75rem; }
/* Hero sticker corner tag. */
.dh-sticker-off {
  position: absolute;
  z-index: 1;
  top: -0.75rem;
  right: -0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 9999px;
  border: 2px solid rgb(var(--dh-ink));
  background: linear-gradient(135deg, rgb(var(--dh-sale-red)), rgb(var(--dh-sale-orange)));
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(90, 12, 0, 0.5);
  transform: rotate(10deg);
  box-shadow: 0 5px 12px -3px rgba(var(--dh-sale-red), 0.75), inset 0 1px 0 rgba(255, 214, 160, 0.45);
}
/* Prices: the sale price, then the regular price crossed out. */
.dh-pack-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: 0.45rem; }
.dh-was {
  font-size: 0.8em;
  font-weight: 600;
  color: rgb(var(--cl-t-muted));
  text-decoration: line-through;
  text-decoration-color: rgb(var(--dh-sale-flame));
  text-decoration-thickness: 2px;
}
.dh-custom-total .dh-was { margin-left: 0.4rem; }
@media (max-width: 639px) {
  .dh-sale { margin: -1rem auto 1.5rem; gap: 0.75rem; padding: 0.7rem 0.9rem 0.7rem 0.7rem; }
  .dh-sale-text { font-size: 0.85rem; }
  .dh-sale-text strong { font-size: 0.95rem; }
  .dh-sale-tag { width: 3.1rem; height: 3.1rem; padding-top: 0.38rem; border-radius: 14px; font-size: 1rem; }
  .dh-sale-tag::before { top: 0.3rem; width: 0.36rem; height: 0.36rem; margin-left: -0.18rem; }
  .dh-pack-off { top: 0.55rem; right: 0.55rem; padding: 0.2rem 0.45rem; border-radius: 6px; font-size: 0.65rem; }
  .dh-pack-badge + .dh-pack-off { top: 2.05rem; }
}

/* ── Reviews ─────────────────────────────────────────────── */
.dh-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 22px;
  border: 1px solid rgba(var(--dh-gold), 0.25);
  background: linear-gradient(180deg, rgba(var(--dh-gold), 0.09), rgba(var(--dh-gold), 0.02));
}
.dh-rating-score { display: flex; align-items: baseline; gap: 0.15rem; }
.dh-rating-num {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  background: linear-gradient(180deg, #fff3c4, rgb(var(--dh-gold)) 60%, rgb(var(--dh-gold-deep)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dh-rating-of { font-family: var(--ff-heading); font-weight: 800; font-size: 1.35rem; color: rgb(var(--cl-t-muted)); }
.dh-rating-meta { display: flex; flex-direction: column; gap: 0.35rem; }
.dh-rating-meta .dh-stars { font-size: 1.2rem; }
.dh-rating-count { color: rgb(var(--cl-t-muted)); }
.dh-rating-count strong { font-family: var(--ff-heading); font-weight: 800; font-size: 1.15rem; color: rgb(var(--cl-t-primary)); }
.dh-rating-src {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--cl-border);
  font-size: 0.88rem;
  color: rgb(var(--cl-t-muted));
}
.dh-rating-src i { color: #8c9eff; font-size: 1.05rem; }

/* Reviews panel (components/dh-vouches.njk): the reviews live on our Discord for now. */
.dh-reviews-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.75rem 1.75rem 1.9rem;
  border-radius: 24px;
  border: 1px solid rgba(88, 101, 242, 0.45);
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(88, 101, 242, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(var(--dh-card-2), 0.95), rgba(var(--dh-card), 0.95));
  box-shadow: 0 24px 60px -32px rgba(88, 101, 242, 0.8);
  text-align: center;
}
.dh-reviews-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  font-size: 1.75rem;
  color: #fff;
  background: #5865f2;
  box-shadow: 0 12px 28px -12px rgba(88, 101, 242, 0.9);
}
.dh-reviews-cta-text { max-width: 34rem; line-height: 1.55; color: rgb(var(--cl-t-muted)); text-wrap: pretty; }
.dh-reviews-cta .dh-discord-btn {
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #7983f5);
  box-shadow: 0 10px 28px -10px rgba(88, 101, 242, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
@media (hover: hover) {
  .dh-reviews-cta .dh-discord-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(88, 101, 242, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}
.dh-reviews-cta .dh-discord-btn:focus-visible { outline: 2px solid rgb(var(--dh-gold)); outline-offset: 3px; }
@media (max-width: 639px) {
  .dh-reviews-cta { padding: 1.4rem 1.2rem 1.5rem; }
  .dh-reviews-cta .dh-discord-btn { width: 100%; }
}

.dh-marquees { display: grid; gap: 16px; }
/* Review rows. Each card slides on its own small layer (custom.js dhMarquee): one huge moving strip
   stutters on iPhones. Before the script starts, or with reduced motion, the cards sit in a plain row. */
.dh-marquee { position: relative; overflow: hidden; padding-block: 4px; }
.dh-marquee::before,
.dh-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 7%;
  pointer-events: none;
}
.dh-marquee::before { left: 0; background: linear-gradient(90deg, rgb(var(--cl-background)), rgba(var(--cl-background), 0)); }
.dh-marquee::after { right: 0; background: linear-gradient(270deg, rgb(var(--cl-background)), rgba(var(--cl-background), 0)); }
.dh-marquee-track { display: flex; gap: 16px; }
.dh-marquee.is-running .dh-marquee-track { position: relative; display: block; height: var(--dh-row-h, 160px); }
/* Cards a phone doesn't animate stay out of sight (.dh-vouch's display would otherwise beat [hidden]). */
.dh-vouch[hidden] { display: none; }
.dh-marquee.is-running .dh-vouch {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  will-change: transform;
  backface-visibility: hidden;
}

.dh-vouch {
  /* A real width (not just flex-basis) so Safari measures each row the same as Chrome. */
  flex: 0 0 auto;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--cl-border);
  background: linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
}
.dh-vouch-top { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.dh-vouch-top figcaption { display: flex; flex-direction: column; }
.dh-vouch-av {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(var(--dh-av), 0.2);
  border: 1px solid rgba(var(--dh-av), 0.55);
  color: rgb(var(--dh-av));
  font-family: var(--ff-heading);
  font-weight: 800;
}
.dh-vouch-name { font-weight: 700; color: rgb(var(--cl-t-primary)); line-height: 1.2; }
.dh-vouch-date { font-size: 0.78rem; color: rgb(var(--cl-t-muted)); }
.dh-vouch-amt {
  margin-left: auto;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(var(--dh-gold), 0.4);
  background: rgba(var(--dh-gold), 0.08);
  color: rgb(var(--dh-gold));
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.dh-vouch-stars { display: flex; gap: 2px; font-size: 0.78rem; color: rgb(var(--dh-gold)); }
.dh-vouch-stars .is-off { color: rgba(var(--cl-t-primary), 0.16); }
.dh-vouch-text {
  margin: 0;
  color: rgb(var(--cl-t-primary));
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dh-vouch-text::before { content: "“"; }
.dh-vouch-text::after { content: "”"; }
.dh-vouch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.dh-vouch.is-full { width: 100%; height: 100%; }
.dh-vouch.is-full .dh-vouch-text { -webkit-line-clamp: unset; display: block; }

@media (max-width: 639px) {
  .dh-rating { padding: 0.85rem 1.1rem; gap: 0.6rem 1rem; }
  .dh-rating-num { font-size: 2.6rem; }
  .dh-rating-src { padding-left: 0; border-left: 0; flex-basis: 100%; justify-content: center; }
  .dh-vouch { width: 260px; }
}

/* ── "Who gets the money?" step (snippets/dh-buy-modal.njk) ── */
html.dh-modal-open { overflow: hidden; }
.dh-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
/* No backdrop blur: it's costly to draw on phones while the page animates behind it. */
.dh-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 5, 12, 0.82); }
.dh-modal-card {
  position: relative;
  width: 100%;
  max-width: 30rem;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(var(--cl-accent), 0.25);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(var(--cl-accent), 0.14), transparent 60%),
    linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  animation: dh-modal-in 0.22s ease-out;
}
@keyframes dh-modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.dh-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(var(--cl-t-primary), 0.06);
  color: rgb(var(--cl-t-muted));
}
.dh-modal-order { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; padding-right: 2.5rem; font-size: 0.92rem; color: rgb(var(--cl-t-muted)); }
.dh-modal-order-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--cl-accent)); }
.dh-modal-order strong { font-family: var(--ff-heading); font-weight: 800; font-size: 1.1rem; color: rgb(var(--dh-gold)); }
.dh-modal-title { margin-top: 0.3rem; font-size: 1.7rem; line-height: 1.15; color: rgb(var(--cl-t-primary)); }
.dh-modal-step { margin: 1.35rem 0 0.6rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--cl-t-muted)); }

.dh-editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.dh-edition {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1.5px solid var(--cl-border);
  background: rgba(var(--cl-t-primary), 0.04);
  color: rgb(var(--cl-t-primary));
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dh-edition.is-on { border-color: rgb(var(--cl-accent)); background: rgba(var(--cl-accent), 0.1); }
.dh-edition-icon { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; }
.dh-edition-icon--java { background: linear-gradient(135deg, #4a9a3f, #2c5f2a); color: #dcf7c9; }
.dh-edition-icon--bedrock { background: linear-gradient(135deg, #6656dc, #3a2f99); color: #e6dfff; }
.dh-edition-text { display: flex; flex-direction: column; min-width: 0; }
.dh-edition-text strong { font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.dh-edition-text small { font-size: 0.78rem; color: rgb(var(--cl-t-muted)); }
.dh-edition-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: rgb(var(--cl-accent));
  color: #fff;
  font-size: 0.62rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dh-edition.is-on .dh-edition-check { opacity: 1; transform: none; }
.dh-edition-note { margin-top: 0.6rem; padding: 0.6rem 0.8rem; border-radius: 12px; background: rgba(var(--cl-t-primary), 0.05); font-size: 0.86rem; color: rgb(var(--cl-t-muted)); }
.dh-edition-note strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: rgb(var(--cl-t-primary)); }

.dh-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.95rem;
  border-radius: 14px;
  border: 1.5px solid var(--cl-border);
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dh-name:focus-within { border-color: rgba(var(--cl-accent), 0.8); box-shadow: 0 0 0 4px rgba(var(--cl-accent), 0.15); }
.dh-name.is-ok { border-color: rgba(var(--cl-success), 0.8); }
.dh-name.is-missing, .dh-name.is-invalid { border-color: rgba(var(--cl-error), 0.8); }
/* 16px+ text, or iPhones zoom the page when the box is tapped. */
.dh-name input { flex: 1; min-width: 0; padding: 0.85rem 0; border: 0; outline: none; background: transparent; color: rgb(var(--cl-t-primary)); font-size: 1.05rem; font-weight: 600; }
.dh-name input::placeholder { color: rgba(var(--cl-t-muted), 0.6); font-weight: 500; }
.dh-name-status { font-size: 1.15rem; color: rgb(var(--cl-t-muted)); }
.dh-name.is-ok .dh-name-status { color: rgb(var(--cl-success)); }
.dh-name.is-missing .dh-name-status, .dh-name.is-invalid .dh-name-status { color: rgb(var(--cl-error)); }

.dh-player {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--cl-border);
  background: rgba(var(--cl-t-primary), 0.04);
}
.dh-player.is-confirmed { border-color: rgba(var(--cl-success), 0.45); background: rgba(var(--cl-success), 0.08); }
.dh-player img { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; image-rendering: pixelated; }
.dh-player strong { display: block; font-weight: 700; color: rgb(var(--cl-t-primary)); }
.dh-player.is-confirmed strong { color: rgb(var(--cl-success)); }
.dh-player-name { display: block; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: rgb(var(--cl-t-muted)); }
.dh-name-msg { margin-top: 0.55rem; font-size: 0.88rem; color: rgb(var(--cl-t-muted)); }
.dh-name-msg.is-bad { color: rgb(var(--cl-error)); }
.dh-name-msg.is-warn { color: rgb(var(--dh-gold)); }
.dh-captcha { margin-bottom: 0.9rem; }
.dh-modal-note { display: flex; align-items: flex-start; gap: 0.5rem; margin: 1.2rem 0 1rem; font-size: 0.88rem; color: rgb(var(--cl-t-muted)); }
.dh-modal-note i { margin-top: 0.2rem; color: rgb(var(--dh-gold)); }

/* Phones: a sheet that slides up from the bottom. */
@media (max-width: 639px) {
  .dh-modal { align-items: flex-end; padding: 0; }
  .dh-modal-card {
    max-width: none;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    padding: 1.35rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
    animation-name: dh-sheet-in;
  }
  .dh-modal-title { font-size: 1.5rem; }
}
@keyframes dh-sheet-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (max-width: 479px) {
  .dh-edition { flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 0.75rem; }
  .dh-edition-icon { width: 38px; height: 38px; }
}
@media (max-width: 300px) { .dh-editions { grid-template-columns: minmax(0, 1fr); } }

/* ── Free 5M popup (snippets/dh-free.njk): the buy step's card, with gold ── */
/* Above SellAuth's cookie banner (on the welcome screen's old layer, 2147483000): it may open before that question is answered. */
.dh-modal.dh-free { z-index: 2147483001; }
.dh-free .dh-modal-card {
  border-color: rgba(var(--dh-gold), 0.4);
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(var(--dh-gold), 0.15), transparent 60%),
    linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
}
.dh-free .dh-modal-title { margin-top: 0.8rem; }
.dh-free .dh-modal-title:focus { outline: none; }
.dh-free-head { display: flex; align-items: center; gap: 0.7rem; padding-right: 2.75rem; }
.dh-free-coins { position: relative; flex: none; width: 50px; height: 40px; }
.dh-free-coins svg { position: absolute; width: 28px; height: 28px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.dh-free-coins svg:nth-child(1) { left: 0; bottom: 0; }
.dh-free-coins svg:nth-child(2) { right: 0; bottom: 2px; }
.dh-free-coins svg:nth-child(3) { left: 11px; top: 0; animation: dh-free-coin 2.8s ease-in-out infinite; }
@keyframes dh-free-coin { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-4px) rotate(8deg); } }
.dh-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 2px solid rgba(var(--dh-ink), 0.85);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  color: rgb(var(--dh-ink));
  background: linear-gradient(135deg, rgb(var(--dh-gold)), rgb(var(--dh-gold-deep)));
  box-shadow: 0 10px 24px -10px rgba(var(--dh-gold), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.dh-free-lead { margin-top: 0.45rem; font-size: 0.95rem; line-height: 1.5; color: rgb(var(--cl-t-muted)); }
.dh-free-lead strong { color: rgb(var(--cl-t-primary)); overflow-wrap: anywhere; }
.dh-free-label { display: block; margin: 1.1rem 0 0.45rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--cl-t-muted)); }
.dh-free .dh-name-msg:empty { display: none; }
/* A compact edition toggle: one row at every width, the device line only where there's room. */
.dh-free .dh-editions { margin-bottom: 0.55rem; }
.dh-free .dh-edition { flex-direction: row; align-items: center; gap: 0.55rem; padding: 0.55rem 1.8rem 0.55rem 0.6rem; border-radius: 14px; }
.dh-free .dh-edition-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 0.95rem; }
.dh-free .dh-edition-text strong { font-size: 0.9rem; }
.dh-free .dh-edition-check { top: 50%; right: 8px; width: 18px; height: 18px; margin-top: -9px; }
@media (max-width: 479px) { .dh-free .dh-edition-text small { display: none; } }
/* The deals box is required for the 5M: a small card, lit up red (with a line under it) when it's needed. */
.dh-free-check { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1rem; padding: 0.65rem 0.8rem; border-radius: 12px; border: 1px solid var(--cl-border); background: rgba(var(--cl-t-primary), 0.03); font-size: 0.9rem; line-height: 1.4; color: rgb(var(--cl-t-muted)); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.dh-free-check input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; accent-color: rgb(var(--cl-accent)); cursor: pointer; }
.dh-free-check.is-invalid { border-color: rgba(var(--cl-error), 0.8); background: rgba(var(--cl-error), 0.1); color: rgb(var(--cl-t-primary)); }
.dh-free .dh-free-code input { padding-left: 0.4em; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.dh-free-hint { margin-top: 0.5rem; font-size: 0.84rem; color: rgb(var(--cl-t-muted)); }
/* Turnstile stays out of sight unless Cloudflare wants a click; then it gets some room. */
.dh-free-captcha { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.dh-free-captcha iframe { margin-top: 0.9rem; }
.dh-free-msg { margin-top: 0.9rem; padding: 0.6rem 0.8rem; border-radius: 12px; border: 1px solid rgba(var(--cl-error), 0.45); background: rgba(var(--cl-error), 0.1); font-size: 0.9rem; color: rgb(var(--cl-t-primary)); }
.dh-free-msg.is-ok { border-color: rgba(var(--cl-success), 0.45); background: rgba(var(--cl-success), 0.1); }
.dh-free-actions { margin-top: 1.1rem; }
.dh-free-fine { margin-top: 0.85rem; font-size: 0.78rem; line-height: 1.45; text-align: center; color: rgb(var(--cl-t-muted)); }
.dh-free-fine a { color: rgb(var(--cl-t-primary)); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.dh-free-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; margin-top: 0.8rem; }
.dh-free-link { padding: 0.4rem 0.2rem; font-size: 0.9rem; font-weight: 600; color: rgb(var(--cl-t-primary)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--cl-t-primary), 0.35); }
.dh-free-link:disabled { color: rgb(var(--cl-t-muted)); text-decoration: none; cursor: default; }
.dh-free-result { position: relative; }
.dh-free-result .dh-btn { margin-top: 1.1rem; }
/* The coins of the "Sent!" burst stay inside the card (no sideways scroll on phones). */
.dh-free-fx { position: absolute; inset: -1rem 0 0; overflow: hidden; pointer-events: none; }
.dh-free-wait { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.9rem; }
.dh-free-spin { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 9999px; background: rgba(var(--dh-gold), 0.12); color: rgb(var(--dh-gold)); font-size: 1.2rem; }
.dh-free-pos { padding: 0.25rem 0.75rem; border-radius: 9999px; border: 1px solid rgba(var(--dh-gold), 0.4); background: rgba(var(--dh-gold), 0.08); color: rgb(var(--dh-gold)); font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.dh-free-lead, .dh-free-fine, .dh-free-msg, .dh-free-check { text-wrap: pretty; }
@media (max-width: 639px) {
  .dh-free-head { gap: 0.55rem; }
  .dh-free .dh-modal-title { margin-top: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-free-coins svg, .dh-free .fa-spin { animation: none !important; }
}

/* Contact page */
.dh-contact-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .dh-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-contact-card--main { grid-column: 1 / -1; }
}
.dh-contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.75rem;
  border-radius: 24px;
  border: 1px solid rgba(var(--cl-t-primary), 0.08);
  background: linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.dh-contact-card--main {
  border-color: rgba(var(--cl-accent), 0.28);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(var(--cl-accent), 0.18), transparent 70%),
    linear-gradient(180deg, rgb(var(--dh-card-2)), rgb(var(--dh-card)));
}
@media (min-width: 768px) {
  .dh-contact-card--main { flex-direction: row; align-items: center; gap: 2rem; padding: 2.25rem 2.5rem; }
}
.dh-contact-main-copy { display: flex; flex-direction: column; gap: 0.65rem; flex: 1 1 auto; min-width: 0; }
.dh-contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(var(--cl-accent), 0.15);
  color: rgb(var(--cl-accent));
  font-size: 1.15rem;
}
.dh-contact-title { font-size: 1.5rem; line-height: 1.15; color: rgb(var(--cl-t-primary)); }
.dh-contact-text { color: rgb(var(--cl-t-muted)); }
.dh-contact-email { font-weight: 600; color: rgb(var(--cl-t-primary)); overflow-wrap: anywhere; }
.dh-contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; padding-top: 0.5rem; }
.dh-contact-card--main .dh-contact-actions { margin-top: 0.25rem; }
.dh-contact-hint { font-size: 0.85rem; color: rgb(var(--cl-t-muted)); }
.dh-contact-art { position: relative; flex: 0 0 auto; width: 210px; height: 190px; display: none; }
@media (min-width: 768px) { .dh-contact-art { display: block; } }
.dh-contact-mascot { position: absolute; inset: 10px 0 0 10px; width: 190px; height: auto; animation: dh-bob 4.2s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
.dh-contact-art .dh-help-bubble { top: -6px; left: auto; right: -6px; }
.dh-contact-art .dh-help-coin-0 { width: 34px; left: 0; top: 30px; }
.dh-contact-art .dh-help-coin-1 { width: 26px; right: 4px; bottom: 18px; animation-delay: -1.4s; }
.dh-contact-tips {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  border: 1px dashed rgba(var(--cl-t-primary), 0.16);
}
.dh-contact-tips-title { font-size: 1.15rem; color: rgb(var(--cl-t-primary)); }
.dh-contact-tips ul { display: grid; gap: 0.5rem; margin-top: 0.75rem; color: rgb(var(--cl-t-muted)); }
@media (min-width: 768px) { .dh-contact-tips ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dh-contact-tips li { display: flex; align-items: center; gap: 0.6rem; }
.dh-contact-tips li i { color: rgb(var(--cl-accent)); width: 1rem; text-align: center; }

/* Buy step: the exact USD amount when the site shows another currency */
.dh-modal-usd { margin-top: -0.35rem; margin-bottom: 0.5rem; font-size: 0.8rem; color: rgb(var(--cl-t-muted)); }

/* Line breaks that read well in every language: balanced titles, and no lonely last word on short lines. */
.component h1, .component h2, .component h3, .dh-modal-title, .dh-custom-main .text-sm, .dh-help-facts li { text-wrap: balance; }
.component p, .dh-modal-note, .dh-name-msg, .dh-edition-note { text-wrap: pretty; }

/* Legal pages (Terms, Refund, Privacy): the editor's blocks come with no spacing and page-sized headings. */
.sa-page-terms-body > * + * { margin-top: 0.85rem; }
.sa-page-terms-body .e-heading-h2 { font-size: 1.375rem; line-height: 1.3; margin-top: 2rem; }
.sa-page-terms-body .e-heading-h3 { font-size: 1.125rem; line-height: 1.35; margin-top: 1.5rem; }
.sa-page-terms-body .e-heading-h2 + *,
.sa-page-terms-body .e-heading-h3 + * { margin-top: 0.5rem; }
.sa-page-terms-body .e-paragraph { line-height: 1.65; }
.sa-page-terms-body .e-list-ul,
.sa-page-terms-body .e-list-ol { margin-left: 1.25rem; }
.sa-page-terms-body .e-listitem { margin: 0.4rem 0 0 0.25rem; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .dh-hero-halo, .dh-hero-ring, .dh-hero-mascot, .dh-floater, .dh-sticker,
  .dh-pack-img, .dh-pack-glow, .dh-custom-art img, .dh-demo-caret,
  .dh-help-mascot, .dh-help-coin, .dh-help-bubble, .dh-modal-card, .dh-sale-tag { animation: none !important; }
  .dh-pack, .dh-btn, .dh-hero-rating { transition: none; }
  /* No motion: the rows become swipeable instead, with one copy of the reviews. */
  .dh-marquee { overflow-x: auto; }
  .dh-marquee::before, .dh-marquee::after { display: none; }
}

/* ── Welcome screen (snippets/dh-gate.njk): Discord or Store, once per visitor ── */
html.dh-gate-open { overflow: hidden; }
/* SellAuth's cookie banner has the same z-index and comes later in the page: it waits (and can't take focus)
   until they pick. Nothing it guards runs before the answer. */
html.dh-gate-open .sa-cc { visibility: hidden !important; }
.dh-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  color: rgb(var(--cl-t-primary));
  background:
    radial-gradient(60% 45% at 50% 18%, rgba(var(--cl-accent), 0.16), transparent 70%),
    rgb(var(--cl-background));
  animation: dh-gate-in 0.25s ease-out;
}
.dh-gate[hidden] { display: none; }
.dh-gate:focus { outline: none; }
.dh-gate-inner { width: 100%; max-width: 560px; margin: auto; text-align: center; }
.dh-gate-logo { width: 132px; height: 132px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(var(--cl-accent), 0.35)); }
.dh-gate-title { margin-top: 1.1rem; font-size: clamp(2.4rem, 9vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.dh-gate-sub { margin-top: 0.75rem; font-size: 1.05rem; color: rgb(var(--cl-t-muted)); }
.dh-gate-cards { display: grid; gap: 0.9rem; margin-top: 2rem; }
.dh-gate-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(var(--dh-card-2), 0.92), rgba(var(--dh-card), 0.92));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
@media (hover: hover) {
  .dh-gate-card:hover { transform: translateY(-2px); border-color: rgba(var(--cl-accent), 0.55); box-shadow: 0 18px 40px -22px rgba(var(--cl-accent), 0.7); }
  .dh-gate-card:hover .dh-gate-arrow { transform: translateX(3px); color: rgb(var(--cl-t-primary)); }
}
.dh-gate-card:focus-visible { outline: 2px solid rgb(var(--dh-gold)); outline-offset: 3px; }
.dh-gate-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; border-radius: 16px; font-size: 1.6rem; }
.dh-gate-icon--discord { color: #8f99ff; background: rgba(88, 101, 242, 0.18); border: 1px solid rgba(88, 101, 242, 0.45); }
.dh-gate-icon--store { color: rgb(var(--cl-success)); background: rgba(var(--cl-success), 0.14); border: 1px solid rgba(var(--cl-success), 0.4); }
.dh-gate-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.dh-gate-name { font-family: var(--ff-heading); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.dh-gate-text { font-size: 0.98rem; line-height: 1.35; color: rgb(var(--cl-t-muted)); }
.dh-gate-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  vertical-align: 0.05em;
  background: rgb(var(--cl-success));
  animation: dh-gate-pulse 2s ease-out infinite;
}
.dh-gate-arrow { flex: none; color: rgb(var(--cl-t-muted)); transition: transform 0.18s ease, color 0.18s ease; }
.dh-gate-cond { font-size: 0.82rem; line-height: 1.35; color: rgb(var(--cl-t-muted)); opacity: 0.85; text-wrap: pretty; }
@keyframes dh-gate-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dh-gate-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--cl-success), 0.55); }
  70%, 100% { box-shadow: 0 0 0 0.5rem rgba(var(--cl-success), 0); }
}
@media (max-width: 480px) {
  .dh-gate-logo { width: 104px; height: 104px; }
  .dh-gate-cards { margin-top: 1.6rem; }
  .dh-gate-card { gap: 0.85rem; padding: 0.95rem 1rem; }
  .dh-gate-icon { width: 3rem; height: 3rem; font-size: 1.4rem; border-radius: 14px; }
}
@media (max-width: 380px) { .dh-gate-arrow { display: none; } }
/* Short screens (small phones with browser bars, landscape): both choices stay in view. */
@media (max-height: 640px) {
  .dh-gate { padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .dh-gate-logo { width: 72px; height: 72px; }
  .dh-gate-title { margin-top: 0.5rem; font-size: 2rem; }
  .dh-gate-sub { margin-top: 0.4rem; }
  .dh-gate-cards { margin-top: 1rem; }
}
@media (max-height: 460px) and (min-width: 520px) {
  .dh-gate-logo { display: none; }
  .dh-gate-inner { max-width: 760px; }
  .dh-gate-cards { grid-template-columns: 1fr 1fr; }
}

/* ── Discord banner (components/dh-discord.njk): free 5M + 250M daily giveaways ── */
.dh-discord { padding-block: 0.5rem; }
.sa-tpl-contact .dh-discord { padding-bottom: var(--section-py); }
.dh-discord-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.6rem;
  border-radius: 24px;
  border: 1px solid rgba(88, 101, 242, 0.45);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(88, 101, 242, 0.26), transparent 60%),
    linear-gradient(180deg, rgba(var(--dh-card-2), 0.95), rgba(var(--dh-card), 0.95));
  box-shadow: 0 24px 60px -32px rgba(88, 101, 242, 0.8);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
@media (hover: hover) {
  .dh-discord-card:hover { transform: translateY(-2px); border-color: rgba(88, 101, 242, 0.8); }
  .dh-discord-card:hover .dh-discord-btn { box-shadow: 0 16px 34px -12px rgba(88, 101, 242, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}
.dh-discord-card:focus-visible { outline: 2px solid rgb(var(--dh-gold)); outline-offset: 3px; }
.dh-discord-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 18px;
  font-size: 2rem;
  color: #fff;
  background: #5865f2;
  box-shadow: 0 12px 28px -12px rgba(88, 101, 242, 0.9);
}
.dh-discord-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.dh-discord-title { font-weight: 800; font-size: 1.35rem; line-height: 1.2; color: rgb(var(--cl-t-primary)); text-wrap: balance; }
.dh-discord-text { line-height: 1.45; color: rgb(var(--cl-t-muted)); text-wrap: pretty; }
.dh-discord-note { font-size: 0.78rem; color: rgb(var(--cl-t-muted)); opacity: 0.85; }
.dh-discord-card .dh-discord-btn {
  flex: none;
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #7983f5);
  box-shadow: 0 10px 28px -10px rgba(88, 101, 242, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
@media (max-width: 767px) {
  .dh-discord-card { flex-direction: column; text-align: center; padding: 1.4rem 1.2rem; }
  .dh-discord-card .dh-discord-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-gate, .dh-gate-dot { animation: none !important; }
  .dh-gate-card, .dh-gate-arrow, .dh-discord-card, .dh-discord-btn { transition: none; }
}