:root {
  --bg: #0b0b0b;
  --panel: #121212;
  --border: #303030;
  --text: #f1f1f1;
  --muted: #8e8e8e;
  --accent: #3d7bff;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

.wrap { max-width:1100px; margin:0 auto; padding:16px; }

.card {
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:20px;
}

header {
  padding:14px 18px;
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

header h1 { margin:0; }
.content { padding:18px; }

.panel {
  border:1px solid var(--border);
  border-radius:16px;
  background:#151515;
  padding:14px;
}

.panel.inset {
  background:#101010;
  border-color:#262626;
}

.row { display:flex; gap:10px; }

.primary {
  background:var(--accent);
  border:0;
  padding:10px 14px;
  border-radius:10px;
  color:#fff;
}

button {
  background:#1a1a1a;
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:10px;
  color:var(--text);
}

button.ghost {
  background:transparent;
  border:none;
  font-size:18px;
  cursor:pointer;
}

input {
  width:100%;
  background:#111;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px;
  color:var(--text);
}

.exampleList { padding-left:18px; margin-top:8px; }

.num {
  font-size:52px;
  font-weight:900;
}

.phaseTitle {
  font-weight:700;
  font-size:20px;
}

.jump {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
  margin-top:8px;
}

.jump button.active {
  background:var(--accent);
  color:#fff;
}

.bar {
  background:#222;
  border-radius:8px;
  height:8px;
  margin-top:8px;
  overflow:hidden;
}

.bar div {
  background:var(--accent);
  height:100%;
  width:0%;
}

.roster {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:6px;
}

.roster .pRow {
  display:flex;
  justify-content:space-between;
  padding:6px 8px;
  border-radius:10px;
  background:#0f0f0f;
  border:1px solid #2a2a2a;
  align-items:center;
}

.avatarIcon {
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--border);
}

.avatarPreview {
  width:64px;
  height:64px;
  border-radius:50%;
  background:#222;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  border:2px solid var(--border);
}

.avatarGrid {
  display:grid;
  grid-template-columns:repeat(6,50px);
  gap:6px;
  margin-top:10px;
}

.avatarGrid div {
  width:44px;
  height:44px;
  border-radius:50%;
  background:#222;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  cursor:pointer;
  border:1px solid #333;
}

.chatBox {
  height:200px;
  overflow-y:auto;
  background:#0e0e0e;
  border:1px solid #222;
  padding:10px;
  border-radius:10px;
}

.chatMsg {
  margin-bottom:6px;
}

.scoreCol {
  flex:1;
  display:flex;
  flex-direction:column;
}

.small { font-size:12px; }

.tag {
  padding:6px 10px;
  border-radius:20px;
  background:#1a1a1a;
  border:1px solid var(--border);
}

.hidden { display:none !important; }

.errorText { color:#ff4444; margin-top:6px; }

.two {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
