html, body {
  margin: 0;
  min-height: 100%;
  background: #0b0202;
  color: #f0e6d4;
  font-family: Verdana, Geneva, sans-serif;
}

.dl-stripes,
.dl-bg,
.dl-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.dl-stripes {
  z-index: 0;
  background-color: #0b0202;
  background-image:
    radial-gradient(circle at 50% 30%, rgba(139, 10, 10, 0.4) 0%, rgba(0, 0, 0, 0.8) 85%),
    linear-gradient(to right,
      #000 0%, #150202 4%, #350404 12%, #550707 20%,
      #350404 28%, #150202 36%, #000 40%, #150202 44%,
      #350404 52%, #550707 60%, #350404 68%, #150202 76%, #000 80%);
  background-size: 320px 100%;
  background-repeat: repeat;
}

.dl-bg {
  z-index: 1;
  background: url("/public/assets/images/bg_login.webp") center center / cover no-repeat;
  transform: scale(1.06);
  animation: dlDrift 26s ease-in-out infinite alternate;
}

.dl-shade {
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 70% at 50% 46%, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.dl-embers {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dl-logo-glow {
  position: fixed;
  z-index: 7;
  top: 0;
  left: 50%;
  width: min(680px, 56vw);
  height: 30vh;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 196, 80, 0.34), rgba(255, 120, 30, 0.08) 46%, transparent 70%);
  animation: dlGlow 4.6s ease-in-out infinite;
}

@keyframes dlDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.6%, -1.1%, 0); }
}

@keyframes dlGlow {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}

@keyframes dlLogoIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.94); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes dlLogoFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

@keyframes dlPanelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.dl-curtain {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: url("/public/assets/images/bg_lager.webp") center center / 100% 100% no-repeat;
}

.dl-page {
  position: fixed;
  z-index: 4;
  top: 27vh;
  right: 22vw;
  bottom: 3vh;
  left: 22vw;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px 16px;
  box-sizing: border-box;
}

.dl-page::-webkit-scrollbar {
  width: 8px;
}
.dl-page::-webkit-scrollbar-thumb {
  background: #6a4e22;
}

.dl-logo {
  position: fixed;
  z-index: 8;
  top: 1.2vh;
  left: 50%;
  width: min(460px, 40vw);
  height: auto;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.75));
  animation: dlLogoIn 1.15s ease-out both, dlLogoFloat 5.6s ease-in-out 1.15s infinite;
}

.dl-panel {
  width: min(640px, 100%);
  box-sizing: border-box;
  padding: 20px 24px 22px;
  background: linear-gradient(180deg, #5a4120 0%, #3a2812 28%, #2a1c0c 100%);
  border: 2px solid #8d6a34;
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px #2a1c0c,
    inset 0 0 0 3px #6a4e22,
    0 18px 48px rgba(0, 0, 0, 0.78);
  animation: dlPanelIn 0.9s ease-out 0.2s both;
}

.dl-panel h1 {
  margin: 0 0 10px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #f0d78a;
  text-shadow: 0 1px 0 #1a1006;
}

.dl-panel h2 {
  margin: 22px 0 10px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f0d78a;
  text-shadow: 0 1px 0 #1a1006;
}

.dl-note,
.dl-steps {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #f0e6d4;
}

.dl-note {
  margin-top: 8px;
  color: #e08a28;
  font-size: 12px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  height: 40px;
  margin-top: 16px;
  padding: 0 22px;
  background: #d7c09a url("/public/assets/classic-reference/button-normal.png") center / 100% 100% no-repeat;
  color: #1a1208;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.dl-btn:hover {
  background-image: url("/public/assets/classic-reference/button-hover.png");
  color: #1a1208;
}

.dl-req {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  margin: 0;
}

.dl-req div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 8px;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(141, 106, 52, 0.55);
}

.dl-req dt {
  margin: 0;
  color: #f0d78a;
  font-size: 12px;
  font-weight: normal;
}

.dl-req dd {
  margin: 0;
  color: #f0e6d4;
  font-size: 12px;
}

.dl-steps {
  margin: 0;
  padding-left: 18px;
}

.dl-steps li + li {
  margin-top: 4px;
}

.dl-langs {
  width: min(640px, 100%);
  display: flex;
  margin-top: 14px;
  border-top: 2px solid #2b1509;
  background: linear-gradient(180deg, #6b4a2a 0%, #3d2510 55%, #2b1509 100%);
  box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.12);
}

.dl-langs a {
  flex: 1 1 0;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #f0e6d4;
  padding: 8px 4px;
  border-right: 1px solid rgba(0, 0, 0, 0.45);
}

.dl-langs a:last-child {
  border-right: none;
}

.dl-langs a:hover,
.dl-langs a.is-active {
  background: rgba(255, 215, 0, 0.12);
  color: #fff;
}

.dl-foot {
  width: min(640px, 100%);
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: #a08060;
}

.dl-foot a {
  color: #c9a96a;
  text-decoration: none;
}

.dl-foot a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.dl-foot .sep {
  margin: 0 6px;
  color: #6a5040;
}

@media (prefers-reduced-motion: reduce) {
  .dl-bg,
  .dl-logo,
  .dl-logo-glow,
  .dl-panel {
    animation: none;
  }
  .dl-embers { display: none; }
}

@media (max-width: 900px) {
  .dl-page {
    top: 24vh;
    right: 14vw;
    bottom: 2vh;
    left: 14vw;
  }
  .dl-req {
    grid-template-columns: 1fr;
  }
  .dl-panel {
    padding: 16px 14px 18px;
  }
}
