:root {
  --bg: #f4f9ff;
  --panel: #ffffff;
  --primary: #1e88e5;
  --accent: #ff6d00;
  --text: #13314d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 15% 8%, #e8f3ff, #f7fbff 45%, #ffffff);
  color: var(--text);
  font-family: "Poppins", "Noto Sans SC", "Segoe UI", sans-serif;
}

.game-shell {
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 14px;
}

.game-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.panel {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid rgba(30, 136, 229, 0.2);
  box-shadow: 0 10px 26px rgba(30, 136, 229, 0.14);
  padding: 10px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #ff9f43, #ff6d00);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

canvas {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(30, 136, 229, 0.22);
  background: #fff;
  touch-action: none;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.arrow-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 6px;
  justify-content: center;
}

.arrow-grid button {
  border: none;
  border-radius: 12px;
  background: #e3f2fd;
  color: #0d5aa1;
  font-size: 20px;
  min-height: 46px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}
