:root {
  --bg1: #f0f2f4;
  --bg2: #d9e0e6;
  --ink: #1b1f24;
  --accent: #1f6b5d;
  --panel: rgba(255, 255, 255, 0.85);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg1), var(--bg2));
  overflow: hidden;
}

.main #sim {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

.hud {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--panel);
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 2;
  width: 280px;
}

.title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.session {
  margin: 8px 0 12px 0;
  font-size: 14px;
}

#addPlayerBtn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

#players {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.player-card {
  background: white;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

.player-card img {
  width: 100%;
  border-radius: 8px;
}

.player-card .label {
  margin-top: 6px;
  font-size: 12px;
  word-break: break-all;
}

.controller {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(160deg, #f5f3ea, #cdd7c7);
}

.controller-card {
  position: relative;
  z-index: 2;
  width: min(520px, 90vw);
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.controller-card h1 {
  margin-top: 0;
}

#enableGyro {
  background: var(--accent);
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
}

.status {
  margin-top: 12px;
  font-size: 14px;
}

.touch-zone {
  position: fixed;
  inset: 0;
  z-index: 1;
}
