:root {
  --navy: #270015;
  --panel: #390d25;
  --gold: #e4a72c;
  --gold-yellow: #e9bf0e;
  --pearl: #fcfbf5;
  --muted: rgba(252, 251, 245, 0.72);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(228, 167, 44, 0.16), transparent 42%),
    linear-gradient(165deg, #3a0f28 0%, var(--navy) 48%, #1a0010 100%);
  color: var(--pearl);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 40px;
}

.shell {
  width: min(440px, 100%);
  background: rgba(57, 13, 37, 0.92);
  border: 1px solid rgba(228, 167, 44, 0.28);
  border-radius: 28px;
  padding: 28px 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.wordmark {
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}

.gate {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-yellow);
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-yellow);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 15px;
}

.status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.status.error {
  background: rgba(255, 110, 110, 0.12);
  color: #ffc9c9;
}

.status.ok {
  background: rgba(233, 191, 14, 0.12);
  color: #ffe9a0;
}

.frame {
  background: var(--pearl);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 18px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.frame.hidden,
.actions.hidden,
#shareButton.hidden {
  display: none;
}

.actions {
  display: grid;
  gap: 10px;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.button.primary {
  background: var(--gold-yellow);
  color: var(--navy);
}

.button.secondary {
  background: var(--pearl);
  color: var(--navy);
}

.footnote {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(252, 251, 245, 0.55);
  text-align: center;
}

.ghost-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.home h1 {
  font-size: 36px;
}
