/* ZyronChain PWA wallet. Self-contained; no remote fonts. */
:root {
  --bg: #080808;
  --panel: #121212;
  --panel-2: #1a1a1a;
  --line: #2b2b2b;
  --text: #f3efe6;
  --muted: #a9a294;
  --gold: #d7a84a;
  --gold-2: #f0c66b;
  --ok: #49b37c;
  --warn: #e0a43a;
  --bad: #e5604f;
  --info: #6aa5d8;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
.app { max-width: 560px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.bar { display: flex; align-items: center; gap: 8px; padding: 6px 0 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; margin-right: auto; min-width: 0; }
.brand img { border-radius: 8px; }
.badge { font: 600 11px/1 var(--mono); letter-spacing: .06em; color: var(--warn); border: 1px solid var(--warn); border-radius: 999px; padding: 6px 8px; white-space: nowrap; }
.lang { min-width: 44px; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 8px 0 10px; }
h2 { font-size: 1.15rem; margin: 0 0 10px; }
h3 { font-size: 1rem; margin: 10px 0 6px; color: var(--gold-2); }
p { margin: 0 0 12px; }
.lead { color: var(--muted); }
a { color: var(--gold-2); }
.screen, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; }
.screen[data-screen="home"] { background: none; border: 0; padding: 0; }
.facts { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.facts li { margin: 0 0 6px; }
label { display: block; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
label > span { display: block; margin-bottom: 4px; }
input, textarea, select {
  width: 100%; font: 16px/1.4 var(--mono); color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 46px;
}
textarea { resize: vertical; }
select { text-overflow: ellipsis; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
label.check input { width: 22px; min-height: 22px; height: 22px; flex: none; margin: 2px 0 0; }
button {
  font: 600 15px/1.2 system-ui, -apple-system, sans-serif; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 46px; cursor: pointer;
}
button.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1b1406; border-color: var(--gold); }
button.danger { border-color: var(--bad); color: #ffd6d0; background: #2a1411; }
button:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.actions button { flex: 1 1 160px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.two { align-items: flex-start; }
.row.two > label { flex: 1 1 0; min-width: 0; }
.notice { overflow-wrap: anywhere; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--line); background: var(--panel-2); font-size: .93rem; }
.notice.warn { border-color: var(--warn); background: #24190a; }
.notice.bad { border-color: var(--bad); background: #2a1411; }
.notice.ok { border-color: var(--ok); background: #0f2219; }
.notice.info { border-color: var(--info); background: #0f1a24; }
.notice.scam { border-color: var(--bad); background: #1f0f0d; }
.notice.scam strong { display: block; color: #ffb4a8; margin-bottom: 2px; }
.hint { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.hint.good { color: var(--ok); }
.hint.badtext { color: #ff9b8d; }
.words { list-style: none; counter-reset: w; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0 0 14px; }
.words li { counter-increment: w; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 600 16px/1.2 var(--mono); user-select: none; -webkit-user-select: none; }
.words li::before { content: counter(w) ". "; color: var(--muted); font-weight: 400; }
.quiz label { font-family: var(--mono); }
.address { font: 600 17px/1.5 var(--mono); word-spacing: 2px; overflow-wrap: anywhere; color: var(--gold-2); margin-bottom: 12px; }
.address-small { font: 13px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.qr { background: #fff; border-radius: 12px; padding: 12px; width: min(100%, 260px); margin: 0 auto 12px; }
.qr svg { display: block; width: 100%; height: auto; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.45 var(--mono); background: #050505; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0 0 10px; max-height: 320px; overflow: auto; }
details.danger-zone { margin-top: 14px; color: var(--muted); }
details.danger-zone summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.install-steps { display: grid; gap: 4px; }
.install-steps ol { margin: 0 0 8px; padding-left: 22px; color: var(--muted); }
.install-steps [data-platform].current h3::after { content: " ←"; color: var(--gold); }
.foot { color: var(--muted); font-size: .82rem; margin-top: 18px; }
.busy { position: fixed; inset: 0; background: rgba(0, 0, 0, .78); display: grid; place-items: center; z-index: 10; text-align: center; padding: 24px; }
.busy[hidden] { display: none; }
.spinner { display: inline-block; width: 38px; height: 38px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
@media (max-width: 380px) {
  h1 { font-size: 1.45rem; }
  .badge { font-size: 10px; padding: 5px 6px; }
  .brand span { display: none; }
  .row.two { flex-direction: column; gap: 0; }
  .row.two > label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}
