:root {
  color-scheme: dark;
  --bg: #121214;
  --panel: #1b1b1f;
  --text: #e8e8ea;
  --muted: #9a9aa2;
  --accent: #4f9dff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.02em;
}

h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.status {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card {
  background: var(--panel);
  border: 1px solid #2a2a30;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  background: #101013;
  color: var(--text);
  border: 1px solid #303038;
  border-radius: 8px;
}

button {
  margin-top: 8px;
  padding: 8px 14px;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #06121f;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  background: #34343c;
  color: var(--muted);
  cursor: default;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #2a2a30;
}

li:first-child {
  border-top: 0;
}

li span {
  color: var(--muted);
  font-size: 13px;
}

#stage {
  position: relative;
}

video {
  width: 100%;
  background: #000;
  border-radius: 12px;
  outline: none;
}

.overlay {
  position: absolute;
  inset: 8px 8px auto 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.overlay button {
  pointer-events: auto;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.pair {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.pair input {
  flex: 1;
  margin: 0;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.pair button {
  margin: 0;
}

.hidden {
  display: none;
}
