:root {
  --bg-top: #1c0508;
  --bg-bottom: #0b0204;
  --card-bg: rgba(42, 11, 16, 0.92);
  --card-border: rgba(212, 168, 83, 0.32);
  --gold: #f0c46c;
  --gold-deep: #b8822a;
  --text-main: #fdf5ea;
  --text-muted: #c9b0a6;
  --danger-bg: rgba(180, 35, 24, 0.25);
  --ok-bg: rgba(21, 128, 61, 0.22);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(circle at top center, #3b0a12 0%, var(--bg-top) 42%, var(--bg-bottom) 100%);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero,
.cta-card,
.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-crest {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5d17e 0%, #b47822 100%);
  color: #2b060a;
  font-weight: 800;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(240, 196, 108, 0.28);
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.brand-copy h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.meta-card {
  background: rgba(15, 3, 5, 0.55);
  border: 1px solid rgba(240, 196, 108, 0.16);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.meta-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.meta-val {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  color: var(--gold);
}

.invite-pill {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(240, 196, 108, 0.12);
  border: 1px solid rgba(240, 196, 108, 0.28);
  font-size: 12px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.status-banner {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  margin-bottom: 14px;
}

.status-banner.is-ready {
  background: var(--ok-bg);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.status-banner.is-error {
  background: var(--danger-bg);
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.btn-primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 800;
  color: #240508;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(212, 168, 83, 0.3);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary {
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--gold);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.copy-feedback {
  font-size: 12px;
  color: var(--text-muted);
}

.hash-box {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hash-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hash-value {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  word-break: break-all;
  color: #e7d7cc;
}

.guide-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--gold);
}

.steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps li strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.steps li span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0;
}
