* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Bitcount', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
  background: transparent;
}

.physics {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 40px;
  padding-left: 300px;         
}

.info {
  max-width: 300px;
}
.headline {
  font-size: 3.2rem;
  margin-bottom: 18px;
}
.lead {
  font-size: 1.05rem;
  opacity: 0.8;
  line-height: 1.6;
}

.viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#tesseract {
  width: min(44vw, 820px);
  height: min(44vw, 820px);
  display: block;
}

.controls {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.ctrl-caption {
  display: block;
  font-size: 0.9rem;
  opacity: 0.6;
  text-align: center;
  margin-bottom: 10px;
}
.ctrl-grid {
  display: flex;
  gap: 12px;
}
.ctrl-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.plane {
  font-size: 0.95rem;
  opacity: 0.85;
}
.ctrl-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  touch-action: none;
}
.ctrl-btn:hover {
  background: rgba(72, 72, 72, 0.25);
}
.ctrl-btn:active {
  background: rgba(158, 158, 158, 0.5);
}