:root {
  --bg: #0d1117;
  --fg: #c9d1d9;
  --accent: #e8553f;
  --blue: #3f7ee8;
  --green: #3fb87e;
  --muted: #8b949e;
  --card: #161b22;
  --border: #30363d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wrap {
  max-width: 420px;
  width: 100%;
  text-align: center;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
#quiz .q-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  text-align: left;
}
#quiz .q-text {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--fg);
}
#quiz .q-options {
  display: flex;
  gap: 8px;
}
#quiz .opt {
  flex: 1;
  padding: 12px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.15s;
  text-align: center;
}
#quiz .opt:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
#quiz .opt.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
#quiz .opt.selected-b {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.q-num {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  margin-top: 12px;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.4; cursor: default; }
#result { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
#dna-viz { margin: 0 auto 16px; }
#dna-viz svg { max-width: 100%; height: auto; }
#style-name {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 8px;
}
#philosophy {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 0 8px;
}
#pct-bar {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pct-i { background: var(--accent); transition: width 0.6s ease; }
.pct-a { background: var(--blue); transition: width 0.6s ease; }
.pct-label {
  font-size: 10px;
  color: #fff;
  line-height: 24px;
  font-weight: bold;
}
#share-text {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--fg);
  text-align: left;
  word-break: break-all;
}
.pay-section {
  margin-top: 24px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
}
.pay-section h3 {
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 4px;
}
.pay-section p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.wallet-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  word-break: break-all;
}
.wallet-box code {
  font-size: 10px;
  color: var(--green);
}
#tx-hash {
  width: 100%;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: inherit;
  font-size: 11px;
  margin-bottom: 8px;
}
#pay-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.lang-switch {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
.lang-switch a {
  color: var(--blue);
  text-decoration: none;
}
.loading {
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
}
