:root {
  --bg: #000000;
  --panel: rgba(18, 22, 24, 0.9);
  --panel-soft: rgba(18, 22, 24, 0.62);
  --text: #ffffff;
  --secondary: #e4e6eb;
  --muted: #b0b3b8;
  --focus: #00d4ff;
  --front: #7dd3fc;
  --right: #86efac;
  --rear: #fca5a5;
  --left: #fde68a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

button {
  font: inherit;
}

.screen {
  position: relative;
  width: 600px;
  height: 600px;
  padding: 8px;
}

.topbar {
  position: relative;
  z-index: 4;
  height: 74px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  background: linear-gradient(to bottom, rgba(18, 22, 24, 0.94), rgba(18, 22, 24, 0.52));
}

h1 {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.app-version {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  vertical-align: middle;
}

.topbar p {
  width: 382px;
  margin-top: 8px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listener-pill {
  min-width: 92px;
  height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#scene {
  position: absolute;
  inset: 0;
  width: 600px;
  height: 600px;
  display: block;
}

.reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  pointer-events: none;
}

.reticle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
}

.control-rail {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.control-button {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  opacity: 0.82;
  transition:
    transform 475ms cubic-bezier(0.6, 0, 0.4, 1),
    opacity 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    border-color 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.control-button:focus {
  outline: none;
  opacity: 1;
  transform: scale(0.91);
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.26);
}

.control-button:active {
  transform: scale(0.88);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 28px;
  line-height: 1;
}
