:root {
  --ink: #11110f;
  --muted: #6a6256;
  --paper: #fbf6eb;
  --panel: rgba(255, 252, 244, 0.88);
  --line: #ded2bd;
  --accent: #a84f2b;
  --accent-strong: #7e321d;
  --good: #327a46;
  --bad: #a73428;
  --shadow: 0 24px 80px rgba(61, 43, 24, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(168, 79, 43, 0.24), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(24, 87, 113, 0.14), transparent 24rem),
    linear-gradient(135deg, #fbf6eb 0%, #f1e3ca 100%);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  max-width: 780px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.panel {
  margin: 22px 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-panel {
  display: grid;
  gap: 8px;
}

.status-panel > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1a53b;
  box-shadow: 0 0 0 6px rgba(209, 165, 59, 0.16);
}

.status-dot.ready {
  background: var(--good);
  box-shadow: 0 0 0 6px rgba(50, 122, 70, 0.14);
}

.status-dot.error {
  background: var(--bad);
  box-shadow: 0 0 0 6px rgba(167, 52, 40, 0.14);
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.section-heading > span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-strong);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.section-heading p,
.muted,
.status-text,
#config-detail {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label > span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  padding: 14px 16px;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(168, 79, 43, 0.12);
}

button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf1;
  cursor: pointer;
  font-weight: 700;
  padding: 0 24px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

button.primary:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.errors {
  display: grid;
  gap: 6px;
  margin: 8px 0 18px;
  color: var(--bad);
}

.receipt {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.receipt > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.receipt span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
}

code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.92rem;
}

.wallet-area {
  margin-bottom: 18px;
}

.wallet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wallet-option {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  cursor: pointer;
  padding: 10px 14px;
}

.wallet-option.selected {
  border-color: var(--accent);
  background: rgba(168, 79, 43, 0.12);
}

.success {
  border-color: rgba(50, 122, 70, 0.35);
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding: 28px 0;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .panel {
    border-radius: 22px;
  }
}
