/* Tile Explorer — base layout & reset */

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

:root {
  --bg-0: #0d1018;
  --bg-1: #1a1f2e;
  --bg-2: #232a3d;
  --fg-0: #f4f5fa;
  --fg-1: #c5c9d6;
  --fg-2: #8b91a5;
  --accent: #6ee7b7;
  --accent-2: #fbbf24;
  --danger: #f87171;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#game-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

#dom-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#dom-overlay > * {
  pointer-events: auto;
}

.hidden {
  display: none !important;
}
