:root {
  color-scheme: dark;
  --bg0: #070c14;
  --bg1: #0b1630;
  --panel: rgba(10, 16, 28, 0.72);
  --panel-border: rgba(170, 210, 255, 0.16);
  --text: #f3f7ff;
  --muted: rgba(243, 247, 255, 0.78);
  --accent: #f59e0b;
  --accent2: #f97316;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Trebuchet MS', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: radial-gradient(1200px 700px at 50% 20%, #111b3a, var(--bg0));
  color: var(--text);
  overflow: hidden;
}

#app {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

#game-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  border-radius: 16px;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  outline: 1px solid rgba(255, 255, 255, 0.06);
  touch-action: none;
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#overlay-inner {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
}

#overlay-inner .overlay-meta {
  text-align: center;
  font-size: 12px;
  color: rgba(243, 247, 255, 0.78);
  line-height: 1.5;
  max-width: 320px;
}

#overlay-inner .overlay-title {
  font-weight: 800;
  font-size: 16px;
  color: #f8fafc;
  margin-bottom: 4px;
}

#overlay-inner .overlay-controls {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(248, 250, 252, 0.7);
}

#brand-logo {
  width: min(320px, 70vw);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}

.btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 90ms ease, background 120ms ease, border-color 120ms ease;
  min-width: 180px;
}

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

.btn-primary {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.98), rgba(249, 115, 22, 0.82));
  border-color: rgba(249, 115, 22, 0.78);
}

.btn-primary:hover {
  border-color: rgba(255, 255, 255, 0.36);
}

.hidden {
  display: none !important;
}
