/* Shared look for the phone/computer pages: the night sky, paper cards, gold accents. */
* { box-sizing: border-box; }
body { margin: 0; color: #1f2a44; font: 16px/1.5 "DM Sans", "Segoe UI", Roboto, Arial, sans-serif;
  background: #0b1a33 linear-gradient(160deg, #0a1730 0%, #14214f 50%, #2a1c5c 100%) fixed; min-height: 100vh; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 16px 16px 32px; }
h1 { font-family: "Cinzel", Georgia, serif; font-size: 26px; margin: 0; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #f7efe1; }
h1 + p { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: #e9c977; margin: 0; font-size: 19px; }
h2 { font-family: "Cinzel", Georgia, serif; font-size: 15px; margin: 0 0 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9a7a2e; }
a { color: #9a7a2e; }
.card { background: #fbf4ea; border: 1px solid rgba(216,180,95,0.6); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.muted { color: #6a6f80; font-size: 14px; }
button, .btn { font: inherit; font-size: 15px; color: #1f2a44; background: #fff; border: 1px solid #d9cbb2; border-radius: 8px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; min-height: 40px; }
button:hover, .btn:hover { border-color: #c9a24c; }
button:disabled { opacity: 0.55; cursor: default; }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid #c9a24c; outline-offset: 1px; }
button.primary { background: #1c2257; color: #f3d98b; border-color: #1c2257; font-weight: 700; }
button.small { padding: 4px 10px; font-size: 14px; min-height: 32px; }
button.danger:hover { border-color: #b23a2e; color: #b23a2e; }
input, select, textarea { font: inherit; color: #1f2a44; background: #fff; border: 1px solid #d9cbb2; border-radius: 8px; padding: 8px 10px; width: 100%; }
label { display: block; font-size: 14px; color: #6a6f80; margin-bottom: 4px; }
.err { color: #b23a2e; font-size: 14px; margin: 8px 0 0; min-height: 1em; }
.ok { color: #1d7a4a; font-size: 14px; margin: 8px 0 0; }
.hidden { display: none !important; }
.pagehead { margin: 4px 0 16px; }

/* the shared navigation bar */
.topnav { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; align-items: center; overflow-x: auto; white-space: nowrap;
  padding: 8px 12px; background: rgba(10,20,46,0.92); border-bottom: 1px solid rgba(216,180,95,0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.topnav { scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav .brand { font-family: "Cinzel", Georgia, serif; color: #e9c977; font-weight: 700; letter-spacing: 0.06em; margin-right: 8px; font-size: 15px; }
@media (max-width: 480px) { .topnav .brand { display: none; } .topnav a { padding: 8px 9px; } }
.topnav a { color: #d6dbea; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.topnav a[aria-current="page"] { color: #1c2257; background: #e9c977; font-weight: 700; }
.credit { text-align: center; color: #9aa3c0; font-size: 12px; padding: 0 16px 24px; }
.credit a { color: #c9b27a; }

.topnav .brand small { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 500; color: #e9c977; font-size: 14px; }
/* invite code form (hosted version) */
.gate h2 { font-size: 20px; }
.gate-row { display: flex; gap: 8px; }
.gate-row input { font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase; }

/* "this phone isn't set up" banner */
.keybar { background: #fff4d6; border: 1px solid #e3c46c; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
