:root {
  --gold: #d9b45a;
  --gold-hi: #f1d88f;
  --gold-deep: #a9802f;
  --ink: #050608;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', Arial, sans-serif;
  --foot: 34px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--ink); color: #f4efe3; font-family: var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.panel-open { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- Space background ---------- */
.space { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, #111a33 0%, #070a14 45%, #030407 80%); }
.stars { position: absolute; inset: 0; background-repeat: repeat; }
.s1 { background-image:
  radial-gradient(1px 1px at 18px 22px, #fffd, transparent),
  radial-gradient(1px 1px at 74px 58px, #fff9, transparent),
  radial-gradient(1px 1px at 132px 14px, #f3d99acc, transparent),
  radial-gradient(1px 1px at 196px 86px, #fff8, transparent),
  radial-gradient(1px 1px at 42px 128px, #fff7, transparent),
  radial-gradient(1px 1px at 110px 164px, #fffb, transparent),
  radial-gradient(1px 1px at 168px 112px, #f6dd9faa, transparent),
  radial-gradient(1px 1px at 214px 148px, #fff8, transparent),
  radial-gradient(1px 1px at 28px 198px, #fff6, transparent),
  radial-gradient(1px 1px at 156px 206px, #fff9, transparent);
  background-size: 240px 220px; }
.s2 { background-image:
  radial-gradient(1.4px 1.4px at 48px 72px, #fffef4ee, transparent),
  radial-gradient(1px 1px at 140px 28px, #fff9, transparent),
  radial-gradient(1.3px 1.3px at 220px 118px, #f6dd9fdd, transparent),
  radial-gradient(1px 1px at 310px 54px, #fff8, transparent),
  radial-gradient(1.2px 1.2px at 86px 176px, #fffc, transparent),
  radial-gradient(1px 1px at 268px 210px, #f3d99abb, transparent),
  radial-gradient(1.3px 1.3px at 180px 248px, #fffef6ee, transparent),
  radial-gradient(1px 1px at 24px 284px, #fff8, transparent);
  background-size: 340px 310px; animation: twinkle 6s ease-in-out infinite alternate; }
.s3 { background-image:
  radial-gradient(2.2px 2.2px at 110px 70px, #fff8e8, transparent),
  radial-gradient(7px 7px at 110px 70px, #f9e2a655, transparent),
  radial-gradient(1.8px 1.8px at 380px 200px, #ffffffee, transparent),
  radial-gradient(6px 6px at 380px 200px, #ffffff33, transparent),
  radial-gradient(2px 2px at 240px 360px, #f9e2a6ee, transparent),
  radial-gradient(6px 6px at 240px 360px, #f3d99a44, transparent),
  radial-gradient(1.6px 1.6px at 460px 40px, #fffdf6cc, transparent);
  background-size: 520px 460px; opacity: .9; animation: twinkle 9s ease-in-out infinite alternate-reverse; }
@keyframes twinkle { from { opacity: .7; } to { opacity: 1; } }


/* ---------- Layout (locked Dec 1 login landing) ---------- */
.stage { position: relative; z-index: 1; height: calc(100vh - var(--foot)); height: calc(100dvh - var(--foot));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); align-items: center;
  column-gap: clamp(16px, 3vw, 56px); padding: clamp(8px, 2vh, 20px) clamp(16px, 4vw, 64px); max-width: 1500px; margin: 0 auto; }
.crest-wrap { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.crest { -webkit-mask-image: linear-gradient(#000 93%, transparent); mask-image: linear-gradient(#000 93%, transparent); display: block; height: 100%; max-height: 100%; width: auto; max-width: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }

.card { justify-self: start; width: min(440px, 100%); padding: clamp(14px, 3.4vh, 34px) clamp(16px, 2.4vw, 32px) clamp(10px, 2.2vh, 20px);
  border: 1px solid #d9b45a8c; border-radius: 22px; box-shadow: 0 0 40px #d9b45a14, inset 0 0 40px #00000066;
  background: linear-gradient(180deg, #0c0e15f2 0%, #06070bf5 100%); }
.card h1 { margin: 0; text-align: center; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 6.2vh, 54px); line-height: 1.05;
  color: var(--gold); letter-spacing: .5px; text-shadow: 0 0 22px #d9b45a33; }
.sub { margin: clamp(4px, 1vh, 10px) 0 clamp(10px, 2.6vh, 24px); text-align: center; font-size: clamp(13px, 2.4vh, 16px); color: #f4efe3; }
.providers { display: grid; gap: clamp(7px, 1.5vh, 12px); }
.prov { display: flex; align-items: center; gap: 22px; width: 100%; height: clamp(40px, 8.4vh, 54px); padding: 0 clamp(16px, 2vw, 28px);
  border: 1px solid #ffffff1c; border-radius: 10px; background: #ffffff08; color: #f6f2e8; font-size: clamp(14px, 2.5vh, 17px); text-align: left; transition: border-color .15s, background .15s; }
.prov:hover { border-color: #d9b45a99; background: #d9b45a12; }
.ico { width: 24px; height: 24px; flex: none; }
.rule { height: 1px; margin: clamp(10px, 2.4vh, 22px) 0 clamp(2px, .8vh, 8px);
  background: linear-gradient(90deg, transparent, #d9b45a99, transparent); }
.create { display: block; width: 100%; padding: clamp(8px, 1.8vh, 14px) 0; text-align: center; color: var(--gold); font-size: clamp(14px, 2.5vh, 17px); border-radius: 8px; }
.create:hover { color: var(--gold-hi); }

.foot { position: relative; z-index: 1; height: var(--foot); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 18px;
  font-size: 12px; color: #b9b2a2; padding: 0 12px; }
.legal { color: #d8cfba; font-size: 12px; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #d9b45a66; }
.legal em { font-style: normal; color: var(--gold); }
.legal:hover { color: var(--gold-hi); }

/* ---------- Coming soon / Draft panel ---------- */
.panel-wrap { position: fixed; inset: 0; z-index: 100; background: #000b; display: flex; align-items: center; justify-content: center; padding: 16px; }
.panel-wrap[hidden] { display: none; }
.panel { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 24px 20px; border-radius: 18px;
  background: linear-gradient(180deg, #0f1220, #07080d); border: 1px solid #d9b45a88; box-shadow: 0 20px 60px #000c; }
.panel h2 { margin: 6px 0 8px; font-family: var(--serif); font-size: 28px; color: var(--gold-hi); line-height: 1.1; padding-right: 36px; }
.panel p { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: #ece5d4; }
.panel-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; font-size: 26px; line-height: 1; color: #e9d6a6; border-radius: 50%; }
.panel-x:hover { background: #ffffff12; }
.panel-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-gold { padding: 10px 22px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); color: #1a1409; font-weight: 500; font-size: 15px; }

/* ---------- Phones: crest stacked above the panel ---------- */
@media (max-width: 760px) {
  .stage { height: auto; min-height: calc(100dvh - var(--foot)); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; row-gap: 6px; padding: 10px 14px 6px; }
  .crest-wrap { height: auto; }
  .crest { height: auto; width: auto; max-height: min(33dvh, 300px); max-width: 100%; }
  .card { justify-self: center; width: min(440px, 100%); padding: 18px 16px 10px; }
  .card h1 { font-size: 36px; }
  .sub { font-size: 15px; margin: 4px 0 14px; }
  .prov { height: 48px; font-size: 16px; gap: 18px; }
  .providers { gap: 9px; }
  .rule { margin: 14px 0 2px; }
  .create { padding: 10px 0; font-size: 16px; }
  .foot { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .stars { animation: none !important; } }
