/* Arcadely shared design tokens + game-page chrome */
:root {
  --bg: #0e0f14;
  --surface: #171923;
  --surface-2: #1f2230;
  --border: #2b2f42;
  --text: #e8eaf2;
  --text-dim: #9aa0b4;
  --accent: #7c5cff;
  --accent-2: #00d4a6;
  --danger: #ff5c7a;
  --warn: #ffb84d;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: var(--font);
  cursor: pointer;
}

.gp-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
}
.gp-btn:active { transform: translateY(1px); }
.gp-btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Game page layout */
.gp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.gp-header .gp-back {
  font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
}
.gp-header .gp-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gp-header .gp-best {
  font-size: 13px;
  color: var(--accent-2);
  font-family: var(--mono);
  white-space: nowrap;
}

.game-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.game-wrap canvas {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  touch-action: none;
}

.gp-hud {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-dim);
}
.gp-hud b { color: var(--text); }

.gp-howto {
  max-width: 720px;
  margin: 8px auto 40px;
  padding: 0 16px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.gp-howto h2 { color: var(--text); font-size: 16px; }
