* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #e5e5e5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: grab;
  touch-action: pinch-zoom;
}

body.dragging {
  cursor: grabbing;
  user-select: none;
}

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

main {
  position: relative;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p {
  margin: 0.25rem 0 1.5rem;
  color: #777;
}

a {
  color: #e5e5e5;
  text-decoration: underline;
  text-decoration-color: #444;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: #e5e5e5; }

nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

#tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  min-width: 200px;
  padding: 0.6rem 0.75rem;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid #262626;
  border-radius: 4px;
  font: 11px/1.6 ui-monospace, "SF Mono", Menlo, monospace;
  color: #e5e5e5;
}

#tip[hidden] { display: none; }

#tip .tip-title {
  margin-bottom: 0.35rem;
  color: #fff;
}

#tip div:not(.tip-title) {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

#tip div span:first-child { color: #777; }

.leo { color: #a78bfa; }
