.play-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  background: #111723;
  color: #fff;
  font: 600 14px system-ui, sans-serif;
}

.play-bar a, .play-bar button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.play-bar button {
  cursor: pointer;
  border: 1px solid #697180;
  border-radius: 6px;
  padding-inline: 14px;
}

.play-bar :focus-visible { outline: 2px solid #9dcaff; outline-offset: 2px; }
.play-status { margin: 0; background: #111723; color: #fff; padding-inline: 16px; }
.play-status:not(:empty) { padding-bottom: 8px; }
.play-status input { display: block; width: 100%; user-select: text; }
#root > div { min-height: calc(100svh - 60px); }

@media (pointer: coarse), (max-width: 639px) {
  #root > div { justify-content: flex-start; padding-top: 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  #root > div > div { gap: 12px; }
  #root header button { min-width: 44px; min-height: 44px; }
  #root .sm\:hidden { display: grid; }
  #root .sm\:hidden button { min-height: 52px; }
}

@media (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  #root canvas { max-height: 42svh; width: auto; margin-inline: auto; }
}
