:root{
  --bg1: #0f1724;
  --bg2: #1b2a4a;
  --accent: #ffcc00;
  --panel: rgba(0,0,0,0.35);
  --glass: rgba(255,255,255,0.03);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial; background: linear-gradient(180deg,var(--bg1),var(--bg2)); color: #e6eef8; }

#game {
  display: block;
  margin: 4vh auto;
  width: min(920px, 94vw);
  height: calc(min(920px, 94vw) * 0.45); /* wide rectangle */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), inset 0 -4px 12px rgba(0,0,0,0.3);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
  touch-action: none;
}

.ui {
  max-width: 920px;
  margin: 1.25rem auto 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  color: #d8e7ff;
}

#title { font-weight: 700; letter-spacing: .6px; }
#score, #highscore { font-weight: 600; }
#controls { font-size: 0.82rem; opacity: 0.9; }

.buttons { display:flex; gap:8px; align-items:center; }
button {
  background: var(--panel);
  color: inherit;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
button:active { transform: translateY(1px); }

/* small screens */
@media (max-width:600px) {
  #game { height: calc(min(920px, 94vw) * 0.6); }
  .ui { flex-direction: column; gap: 6px; align-items: flex-start; padding-left: 12px; }
  .buttons { width: 100%; justify-content: flex-start; }
}
