:root {
  --dl-accent: #b63bc7;
  --dl-accent-2: #6f2b8c;
  --dl-bg: #101014;
  --dl-card: #1b1921;
  --dl-text: #f7f4fb;
  --dl-text-muted: rgba(247, 244, 251, 0.62);
  --dl-border: rgba(255, 255, 255, 0.1);
}

.desktop-page,
#desktop-landing {
  background: var(--dl-bg);
  color: var(--dl-text);
  font-family: "Nunito Sans", system-ui, sans-serif;
}

.desktop-page {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

#desktop-landing {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
}

#desktop-landing[hidden] {
  display: none;
}

#desktop-landing.desktop-standalone {
  position: relative;
  inset: auto;
  min-height: 100vh;
}

.dl-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(182, 59, 199, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  pointer-events: none;
}

.dl-content {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  border: 1px solid var(--dl-border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(182, 59, 199, 0.1), transparent 220px),
    var(--dl-card);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  padding: 34px;
}

.dl-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--dl-border);
  padding-bottom: 26px;
}

.dl-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex: 0 0 auto;
}

.dl-title {
  margin: 0;
  font-family: "Russo One", system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.dl-subtitle {
  margin: 10px 0 0;
  color: var(--dl-text-muted);
  font-size: 16px;
}

.dl-main {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 34px;
  align-items: end;
  padding-top: 34px;
}

.dl-copy p {
  max-width: 430px;
  margin: 0 0 18px;
  color: var(--dl-text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
}

.dl-url {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--dl-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--dl-text-muted);
  padding: 10px 12px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  user-select: all;
}

.dl-qr-wrap {
  display: flex;
  justify-content: flex-end;
}

.dl-qr {
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  line-height: 0;
}

.dl-qr img,
.dl-qr canvas {
  display: block;
  width: 220px;
  height: 220px;
  image-rendering: pixelated;
}

#landscape-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #101014;
  color: #f7f4fb;
}

#landscape-overlay[hidden] {
  display: none;
}

.lo-content {
  max-width: 320px;
  text-align: center;
}

.lo-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  color: var(--dl-accent);
  animation: lo-rotate 2.4s ease-in-out infinite;
}

@keyframes lo-rotate {
  0%, 100% { transform: rotate(0deg); }
  45%, 55% { transform: rotate(-90deg); }
}

.lo-title {
  margin: 0 0 8px;
  font-family: "Russo One", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

.lo-subtitle {
  margin: 0;
  color: var(--dl-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  #desktop-landing:not(.desktop-standalone) {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .dl-main {
    grid-template-columns: 1fr;
  }

  .dl-qr-wrap {
    justify-content: flex-start;
  }
}
