:root {
  --dl-accent: #E63946;
  --dl-accent-2: #FF6B6B;
  --dl-bg: #0E0E10;
  --dl-text: #F6F4F2;
  --dl-text-muted: #A7A3A0;
}

#desktop-landing {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 26%, rgba(230, 57, 70, 0.18), transparent 32%),
    var(--dl-bg);
  color: var(--dl-text);
  font-family: 'Inter', system-ui, sans-serif;
}

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

.dl-content {
  width: min(100%, 420px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #18181B;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.dl-brand-panel {
  width: 100%;
  background: #FFFFFF;
  padding: 26px 26px 22px;
}

.dl-logo {
  display: block;
  width: min(100%, 290px);
  height: auto;
  margin: 0 auto;
}

.dl-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 24px 16px;
}

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

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

.dl-instruction {
  margin: 0 0 12px;
  color: var(--dl-text-muted);
  font-size: 14px;
  font-weight: 700;
}

.dl-url {
  display: inline-block;
  max-width: calc(100% - 48px);
  margin: 0 0 24px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dl-text);
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

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

#landscape-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--dl-bg);
  color: var(--dl-text);
  font-family: 'Inter', system-ui, sans-serif;
}

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

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

.lo-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 16px;
  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-size: 22px;
  font-weight: 800;
}

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