.desktop-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-dark);
}

.dt-titlebar {
  position: relative;
  min-height: 54px;
  padding: 6px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background:
    linear-gradient(90deg, transparent, var(--cyber-cyan), var(--neon-pink), transparent) 0% 100% / 35% 1px no-repeat,
    rgba(5, 2, 12, 0.94);
  border-bottom: 1px solid var(--rule);
  -webkit-app-region: drag;
  flex-shrink: 0;
  animation: laserHorizon 6s linear infinite;
}

.dt-titlebar button,
.dt-titlebar a {
  -webkit-app-region: no-drag;
}

.dt-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dt-brand .brand-logo {
  height: clamp(24px, 3vw, 32px);
  max-width: min(180px, 46vw);
}

.dt-status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dt-playtime-pill {
  padding: 5px 12px;
  border: 1px solid rgba(0, 255, 136, 0.45);
  background: rgba(0, 255, 136, 0.08);
  color: var(--retro-green);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.dt-playtime-pill.is-upcoming {
  border-color: rgba(255, 176, 0, 0.55);
  background: rgba(255, 176, 0, 0.12);
  color: #FFB000;
}

.dt-playtime-pill.is-none {
  border-color: rgba(255, 42, 85, 0.55);
  background: rgba(255, 42, 85, 0.12);
  color: #FF8FA3;
}

.dt-user-pill {
  padding: 5px 11px;
  border: 1px solid var(--rule);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 0.72rem;
  max-width: min(260px, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dt-login-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
}

.dt-login-card {
  width: 100%;
  max-width: 450px;
  animation: monolithReveal 0.35s var(--ease-snap) both;
}

.dt-no-slot-alert {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 42, 85, 0.5);
  border-left: 3px solid var(--retro-red);
  background: rgba(255, 42, 85, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: monolithReveal 0.25s var(--ease-snap) both;
}

/* Spatial 1px Hairline Shell */
.dt-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 224px 1fr;
}

.dt-rail {
  background: var(--bg-surface);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dt-rail-head {
  padding: 18px 18px 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-muted);
}

.dt-rail-nav {
  display: flex;
  flex-direction: column;
}

.dt-rail-btn {
  width: 100%;
  text-align: left;
  padding: 13px 18px;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: background 0.16s ease, color 0.16s ease;
}

.dt-rail-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-primary);
}

.dt-rail-btn.active {
  background: #FFFFFF;
  color: #05020C;
}

.dt-rail-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--neon-pink);
}

.dt-pass-box {
  padding: 18px;
  border-top: 1px solid var(--rule);
  background: var(--bg-dark);
}

.dt-content {
  padding: 24px 28px 36px;
  overflow-y: auto;
  min-height: 0;
}

.dt-slot-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--retro-red);
  background: rgba(255, 42, 85, 0.08);
  animation: monolithReveal 0.28s var(--ease-snap) both;
}

.dt-slot-banner.is-upcoming {
  border-color: rgba(255, 176, 0, 0.45);
  border-left-color: #FFB000;
  background: rgba(255, 176, 0, 0.09);
}

.dt-slot-banner.is-none {
  border-color: rgba(255, 42, 85, 0.45);
  border-left-color: var(--retro-red);
  background: rgba(255, 42, 85, 0.09);
}

.dt-slot-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 260px;
}

.dt-slot-banner-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF8FA3;
}

.dt-slot-banner.is-upcoming .dt-slot-banner-tag {
  color: #FFB000;
}

.dt-slot-banner-title {
  font-family: var(--font-display);
  font-size: clamp(0.84rem, 1.7vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-primary);
  overflow-wrap: anywhere;
}

.dt-slot-banner-sub {
  font-size: 0.88rem;
  color: var(--ink-secondary);
}

.dt-slot-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.is-slot-locked {
  opacity: 0.56;
  cursor: not-allowed !important;
  filter: grayscale(0.25);
}

.btn.is-slot-locked::after {
  display: none;
}

.btn.is-slot-locked:hover {
  background: rgba(17, 8, 40, 0.72);
  color: var(--ink-secondary);
  border-color: rgba(255, 176, 0, 0.45);
}

.dt-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.dt-search {
  width: 260px;
  min-height: 38px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* Split Monolith Hero inside Launcher */
.dt-monolith-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--rule);
  background: var(--bg-dark);
  min-height: 250px;
  margin-bottom: 26px;
  animation: monolithReveal 0.4s var(--ease-snap) both;
}

.dt-monolith-copy {
  padding: 24px 26px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.dt-spotlight-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 0.98;
  margin: 12px 0 8px;
}

.dt-spotlight-sub {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}

.dt-spotlight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dt-monolith-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  min-height: 220px;
}

.dt-spotlight-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurnsSlow 18s ease-in-out infinite;
}

/* Shared 1px Grid Plates (Zero Rounded Cards) */
.dt-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.dt-game-card {
  position: relative;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  animation: monolithReveal 0.4s var(--ease-snap) both;
  transition: background 0.18s ease;
}

.dt-game-card:hover {
  background: var(--bg-card-solid);
}

.dt-game-card::before,
.dt-game-card::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-snap);
}

.dt-game-card::before {
  top: 6px;
  left: 6px;
  border-top: 2px solid var(--cyber-cyan);
  border-left: 2px solid var(--cyber-cyan);
  transform: translate(-3px, -3px);
}

.dt-game-card::after {
  top: 6px;
  right: 6px;
  border-top: 2px solid var(--neon-pink);
  border-right: 2px solid var(--neon-pink);
  transform: translate(3px, -3px);
}

.dt-game-card:hover::before,
.dt-game-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.dt-game-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--rule);
}

.dt-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-snap);
}

.dt-game-card:hover .dt-game-thumb img {
  transform: scale(1.045);
}

.dt-game-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.dt-game-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dt-game-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-game-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.dt-empty {
  grid-column: 1 / -1;
  padding: 52px 24px;
  text-align: center;
  background: var(--bg-dark);
  color: var(--ink-secondary);
}

/* Stream Viewport */
.dt-stream-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dt-stream-hud {
  padding: 10px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dt-timer-pill {
  padding: 5px 11px;
  border: 1px solid rgba(255, 230, 0, 0.4);
  background: rgba(255, 230, 0, 0.08);
  color: var(--retro-yellow);
  font-size: 0.82rem;
  font-weight: 700;
}

.dt-kiosk-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #05020C;
}

/* Fullscreen Clean Gameplay in Desktop App */
body.dt-playing-fullscreen .dt-titlebar,
body.dt-playing-fullscreen .dt-stream-hud {
  display: none !important;
}

body.dt-playing-fullscreen .dt-main {
  height: 100vh;
}

body.dt-playing-fullscreen .dt-stream-stage {
  position: fixed;
  inset: 0;
  height: 100vh;
  z-index: 40;
}

@media (max-width: 900px) {
  .dt-monolith-hero {
    grid-template-columns: 1fr;
  }
  .dt-monolith-copy {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 820px) {
  .dt-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .dt-rail {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    flex-direction: row;
    overflow-x: auto;
  }
  .dt-rail-head,
  .dt-rail-footer {
    display: none;
  }
  .dt-rail-nav {
    flex-direction: row;
    width: 100%;
  }
  .dt-rail-btn {
    flex: 1;
    width: auto;
    border-bottom: none;
    border-right: 1px solid var(--rule);
    text-align: center;
    white-space: nowrap;
    padding: 11px 12px;
  }
  .dt-rail-btn:last-child {
    border-right: none;
  }
  .dt-content {
    padding: 16px 14px 28px;
  }
  .dt-search {
    width: 100%;
  }
  .dt-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dt-titlebar {
    padding: 8px 14px;
    flex-wrap: wrap;
  }
  .dt-status-right {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }
  .dt-slot-banner {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .dt-slot-banner-actions {
    width: 100%;
  }
  .dt-slot-banner-actions .btn {
    flex: 1;
  }
  .dt-rail-btn {
    padding: 10px 8px;
    font-size: 0.68rem;
  }
  .dt-monolith-copy {
    padding: 16px;
  }
  .dt-games-grid {
    grid-template-columns: 1fr;
  }
}
