:root {
  --red: #c91832;
  --dark: #11110f;
  --gold: #caa44f;
  --paper: #f5f3ee;
  --muted: #746f68;
  --line: #e7e2d9;
  --white: #fff;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--dark); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; }
button { font: inherit; }

.shell {
  width: min(100%, 720px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand img { width: 72px; height: 72px; object-fit: contain; transform: scale(1.5); margin: 0 10px; }
.brand h1 { margin: 1px 0 2px; font-family: Georgia, serif; font-size: clamp(32px, 8vw, 46px); letter-spacing: .02em; }
.brand p { margin: 0; color: var(--muted); }
.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.gold { color: var(--gold); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 26px;
  border-radius: 30px;
  color: var(--white);
  background: linear-gradient(135deg, #171714, #292519);
  box-shadow: 0 22px 60px rgba(30, 24, 18, .14);
}
.hero::after {
  content: "N";
  position: absolute;
  right: -8px;
  bottom: -54px;
  font: 220px/1 Georgia, serif;
  color: rgba(202, 164, 79, .11);
}
.hero h2 { position: relative; z-index: 1; margin: 10px 0; font-family: Georgia, serif; font-size: clamp(34px, 9vw, 55px); line-height: 1.02; }
.hero > p { position: relative; z-index: 1; max-width: 520px; line-height: 1.45; }
.status { position: relative; z-index: 1; display: inline-flex; margin-top: 12px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; }
.status.online::before { content: ""; width: 8px; height: 8px; margin: 4px 8px 0 0; border-radius: 50%; background: #62d48b; }

.actions { display: grid; gap: 12px; margin-top: 20px; }
.actions button { min-height: 58px; border: 0; border-radius: 18px; padding: 14px 18px; font-weight: 800; cursor: pointer; }
.primary { color: var(--white); background: var(--red); }
.secondary { color: var(--dark); background: var(--white); border: 1px solid var(--line) !important; }
.actions button:focus-visible { outline: 3px solid rgba(201,24,50,.25); outline-offset: 3px; }

.notice { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.notice h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: 23px; }
.notice p { margin: 0; color: var(--muted); line-height: 1.5; }
.pairing-form { display: grid; gap: 12px; margin-top: 16px; }
.pairing-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pairing-form input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--dark); font: inherit; }
.pairing-form input:focus { outline: 3px solid rgba(201,24,50,.14); border-color: var(--red); }
.pairing-form button { min-height: 52px; border: 0; border-radius: 14px; font-weight: 800; }
.pairing-result { margin-top: 12px !important; font-weight: 700; }
.privacy { margin: 22px 8px 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center; }

@media (min-width: 620px) {
  .actions { grid-template-columns: repeat(3, 1fr); }
}
