:root {
  --dl-accent: #242124;
  --dl-accent-2: #2B292B;
  --dl-bg: #F4F4F4;
  --dl-text: #2B292B;
  --dl-text-muted: #777377;
}

#desktop-landing {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  overflow: auto;
  background: var(--dl-bg);
  color: var(--dl-text);
  padding: 40px;
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

.dl-bg,
.dl-overlay {
  display: none;
}

.dl-content {
  position: relative;
  display: grid;
  width: min(100%, 720px);
  grid-template-columns: minmax(220px, 1fr) 244px;
  grid-template-areas:
    "logo qr"
    "subtitle qr"
    "instruction qr"
    "url qr";
  gap: 18px 54px;
  align-items: end;
  border-block: 1px solid rgba(43, 41, 43, 0.24);
  padding: 44px 0;
}

.dl-logo {
  grid-area: logo;
  display: block;
  width: min(100%, 280px);
  height: auto;
  align-self: start;
}

.dl-subtitle {
  grid-area: subtitle;
  color: var(--dl-text);
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dl-qr-wrap {
  grid-area: qr;
  align-self: center;
}

.dl-qr {
  border: 1px solid rgba(43, 41, 43, 0.24);
  background: #fff;
  padding: 16px;
  line-height: 0;
}

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

.dl-instruction {
  grid-area: instruction;
  color: var(--dl-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.dl-url {
  grid-area: url;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--dl-text);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  user-select: all;
}

#landscape-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dl-bg);
  color: var(--dl-text);
  padding: 24px;
}

.lo-content {
  max-width: 360px;
  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 6px;
  font-size: 22px;
  font-weight: 500;
}

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

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