:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #f5f5f5;
  background: #101114;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #101114;
}

.shell {
  width: min(100% - 40px, 420px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

button {
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 9px;
  color: #101114;
  background: #f5f5f5;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #dcdcdc;
}

button:focus-visible {
  outline: 3px solid #a8b7ff;
  outline-offset: 3px;
}

button:disabled {
  color: #777980;
  background: #2b2c31;
  cursor: not-allowed;
}

.details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #303137;
  border-radius: 10px;
  background: #18191e;
  text-align: left;
}

.details div {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.details dt {
  color: #b8bac2;
}

.details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.wallets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallets button {
  width: 100%;
}

.wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wallet img {
  flex: none;
  border-radius: 50%;
  object-fit: contain;
}

.secondary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 9px;
  color: #101114;
  background: #f5f5f5;
  font-weight: 650;
  text-decoration: none;
}

.secondary:hover {
  background: #dcdcdc;
}

.secondary:focus-visible {
  outline: 3px solid #a8b7ff;
  outline-offset: 3px;
}

.secondary[hidden] {
  display: none;
}

.message {
  min-height: 1.5em;
  margin: 0;
  color: #b8bac2;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.message.ok {
  color: #69d391;
}

.message a {
  color: #a8b7ff;
  font-weight: 600;
}

.message.err {
  color: #ff7777;
}
