:root {
  --bg: #0f1115;
  --card: #1a1d24;
  --text: #e8e8e8;
  --muted: #9aa0aa;
  --accent: #f5a623;
  --ok: #4caf7d;
  --err: #e05c5c;
}

* { box-sizing: border-box; }

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

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

h1 { font-size: 20px; margin: 0; }
h2 { font-size: 15px; margin: 0 0 10px; color: var(--accent); }

.wallet {
  font-size: 12px;
  color: var(--muted);
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.center { text-align: center; }

.score { font-size: 18px; margin-bottom: 12px; }

#tap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #ffd166, var(--accent));
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.05s;
}
#tap:active { transform: scale(0.92); }

.balance {
  font-size: 26px;
  font-weight: bold;
  color: var(--ok);
}

.addr {
  word-break: break-all;
  background: #10131a;
  border-radius: 8px;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  margin-bottom: 10px;
}

input {
  width: 100%;
  background: #10131a;
  color: var(--text);
  border: 1px solid #2a2f3a;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}
input:focus { outline: none; border-color: var(--accent); }

button {
  width: 100%;
  background: #2a2f3a;
  color: var(--text);
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 6px;
}
button.primary { background: var(--accent); color: #111; font-weight: bold; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.muted { color: var(--muted); font-size: 12px; margin: 6px 0; }

.status { text-align: center; font-size: 13px; min-height: 20px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

.hint { text-align: center; color: var(--muted); font-size: 12px; }
