:root {
  --bg: #0f1115;
  --panel: #14161c;
  --border: #262a33;
  --text: #d6dae1;
  --muted: #8a909c;
  --accent: #6ee7a8;
  --on-accent: #07130d;
  --warn: #f0b35a;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}
.status {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px;
  text-align: center;
}
.status[hidden] {
  display: none;
}
.mark {
  color: var(--accent);
}
#message {
  max-width: 28em;
  margin: 0;
}
button {
  font: inherit;
  padding: 10px 20px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  min-height: 44px;
}
button[hidden] {
  display: none;
}
/*
 * Pixelican's frame keeps out of a phone's notch and home bar (a frame's own env(safe-area-inset-*) is
 * 0), and to the part of the screen the keyboard leaves (--view-height and --view-top, from the
 * visual viewport: shell.js), so what is typed in shows above the keyboard, not under it.
 */
.app {
  position: fixed;
  top: calc(var(--view-top, 0px) + env(safe-area-inset-top, 0px));
  left: env(safe-area-inset-left, 0px);
  width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  height: calc(var(--view-height, 100%) - env(safe-area-inset-top, 0px) - var(--view-bottom-inset, env(safe-area-inset-bottom, 0px)));
  border: 0;
  background: var(--bg);
}
.line {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--warn);
  font-size: 14px;
  z-index: 10;
  pointer-events: none;
}
.line[hidden] {
  display: none;
}
/* while the frame loads its files through the connection: a ring that turns and how many came */
.loading {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--bg);
  text-align: center;
}
.loading[hidden] {
  display: none;
}
.spin {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.count {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation-duration: 2.5s;
  }
}
