:root {
  --bg-a: #08111f;
  --bg-b: #122540;
  --panel: #0f1f36;
  --line: #2f4d78;
  --text: #ebf4ff;
  --muted: #a9bfd9;
  --accent: #ffd45e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 700px at 50% -20%, #1d3a66, var(--bg-a)) fixed;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.game-shell {
  width: min(1120px, 96vw);
  margin: 16px auto 22px;
  padding: 12px;
  background: linear-gradient(180deg, #1a2f50, var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(20px, 3.1vw, 30px);
  letter-spacing: 0.4px;
}

.topbar p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: clamp(13px, 2vw, 15px);
}

#game {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid #3f628f;
  background: #111;
}

.touch-controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.touch-btn {
  min-width: 92px;
  min-height: 44px;
  border: 1px solid #436896;
  background: linear-gradient(180deg, #264875, #1a3557);
  color: var(--text);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  touch-action: none;
}

.touch-btn.jump {
  background: linear-gradient(180deg, #7f5a17, #5e4214);
  border-color: #a67b2f;
  color: #fff6d8;
}

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

@media (min-width: 880px) {
  .touch-controls {
    display: none;
  }
}
