.dt-popup {
  --dt-gold: #ffd975;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  box-sizing: border-box;
  overflow: auto;
  color: #fff5de;
  background: radial-gradient(ellipse at 50% 75%, #731d21cc, #170b12f5 75%);
  font-family: "Trebuchet MS", Arial, sans-serif;
}
.dt-popup[open] { display: grid; place-items: center; }
.dt-popup::backdrop { background: #13090de6; backdrop-filter: blur(7px); }
.dt-popup *, .dt-popup *::before, .dt-popup *::after { box-sizing: border-box; }
html.dt-popup-open { overflow: hidden; }
.dt-popup__sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dt-popup__meteor {
  position: absolute; top: -180px; left: var(--x);
  width: 2px; height: var(--length);
  background: linear-gradient(transparent, #ffb744 75%, #fff7ce);
  border-radius: 50%; filter: drop-shadow(0 0 5px #ffc251);
  animation: dt-meteor var(--duration) linear var(--delay) infinite;
}
.dt-popup__coin {
  position: absolute; top: -70px; left: var(--x);
  width: var(--size); height: var(--size);
  display: grid; place-items: center;
  border: 2px solid #ffe99d; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff3b4, #e9a82e 48%, #9e570a);
  box-shadow: inset 0 0 0 3px #c28622, 0 0 16px #ffc44055;
  color: #895007; font: bold calc(var(--size) * .53) Georgia, serif;
  animation: dt-coin var(--duration) linear var(--delay) infinite;
}
.dt-popup__card {
  position: relative; width: min(100%, 440px); margin: auto;
  padding: 54px 32px 34px; text-align: center;
  border: 1px solid #c79848; border-radius: 22px;
  background: radial-gradient(ellipse at top, #72232b, #390f19 65%);
  box-shadow: 0 30px 100px #0009, inset 0 0 0 5px #ffc96a0a, 0 0 60px #e7a23a1a;
}
.dt-popup__close {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 34px; height: 34px;
  padding: 0; border: 1px solid #ffd97555; border-radius: 50%;
  color: #fff5de; background: #19070d66; cursor: pointer;
  font: 25px/1 Arial, sans-serif;
}
.dt-popup__logo { display: block; width: 100%; max-width: 320px; height: 108px; object-fit: contain; margin: 0 auto 28px; }
.dt-popup__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dt-popup__cta {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 14px 16px; border: 1px solid var(--dt-gold); border-radius: 9px;
  color: #3d1708; background: linear-gradient(135deg, #ffe9a2, #efb642);
  text-decoration: none; font: 700 17px/1.3 "Trebuchet MS", Arial, sans-serif;
  box-shadow: 0 4px 0 #926010; transition: filter .15s, transform .15s;
}
.dt-popup__cta--login { color: #ffe3a0; background: #280c15; box-shadow: 0 4px 0 #16070c; }
.dt-popup__cta:hover { filter: brightness(1.12); transform: translateY(-2px); }
.dt-popup :focus-visible { outline: 3px solid #fff3c6; outline-offset: 5px; }
@keyframes dt-meteor {
  from { transform: translate3d(15vw, -180px, 0) rotate(35deg); opacity: 0; }
  8%, 75% { opacity: .8; }
  to { transform: translate3d(-65vw, calc(100dvh + 360px), 0) rotate(35deg); opacity: 0; }
}
@keyframes dt-coin {
  from { transform: translate3d(0, -70px, 0) rotateY(0) rotate(-20deg); }
  to { transform: translate3d(-12vw, calc(100dvh + 140px), 0) rotateY(720deg) rotate(45deg); }
}
@media (max-width: 480px) {
  .dt-popup { padding: 18px; }
  .dt-popup__card { padding: 50px 22px 28px; border-radius: 18px; }
  .dt-popup__logo { height: 90px; margin-bottom: 24px; }
  .dt-popup__actions { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dt-popup__meteor, .dt-popup__coin { animation: none; display: none; }
  .dt-popup__cta { transition: none; }
}
