:root {
  color-scheme: light;
  --ink: #171615;
  --paper: #fbfaf6;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
  touch-action: none;
}

body {
  overflow: hidden;
  background: #f6f4ee;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app {
  position: relative;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#game:active {
  cursor: grabbing;
}

.settle-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  min-width: 72px;
  min-height: 36px;
  border: 1px solid rgba(23, 22, 21, 0.18);
  background: rgba(251, 250, 246, 0.66);
  backdrop-filter: blur(10px);
  color: rgba(23, 22, 21, 0.72);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: opacity 240ms ease, transform 120ms ease, background 240ms ease;
}

body[data-mode="settled"] .settle-btn {
  opacity: 0.62;
}

.settle-btn:active {
  transform: translateY(1px);
}

@media (max-width: 520px) {
  .settle-btn {
    right: 12px;
    bottom: 12px;
  }
}
