/* Home, registration and guide pages. Shared header, footer, colours and
   buttons come from /assets/frontier.css. */

.hero {
  position: relative; min-height: min(86vh, 760px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: url(/assets/hero.webp) center 30% / cover no-repeat;
  isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(7,9,15,.15) 0%, rgba(7,9,15,.65) 58%, rgba(7,9,15,.95) 100%),
    linear-gradient(to bottom, rgba(7,9,15,.2), var(--bg) 97%);
}
.hero-inner { padding: 72px 16px 88px; max-width: 760px; }
.hero-logo { width: min(560px, 90vw); height: auto; filter: drop-shadow(0 10px 40px rgba(40,140,255,.35)); }
.tagline {
  font-family: Cinzel, serif; font-weight: 600; letter-spacing: .06em;
  font-size: clamp(18px, 2.6vw, 24px); color: #f2e3c2; margin: 10px 0 14px;
  text-shadow: 0 2px 14px rgba(0,0,0,.8);
}
.hero-heading {
  margin: 0 auto 12px; max-width: 720px; font-family: Cinzel, serif; font-weight: 800;
  font-size: clamp(22px, 3.4vw, 32px); letter-spacing: .04em; line-height: 1.25;
  color: var(--title); text-shadow: 0 2px 16px rgba(0,0,0,.8);
}
.hero-copy {
  margin: 0 auto 26px; max-width: 660px; color: #d8dee9; line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,.75);
}
.hero-copy a { color: #bfe9ff; text-decoration: underline; }
.hero-status { margin: 18px auto 0; color: #e8edf4; font-size: 14px; }
.hero-status[hidden] { display: none; }
.hero-status a { color: #bfe9ff; text-decoration: underline; }
.status-dot {
  display: inline-block; width: 9px; height: 9px; margin-right: 7px;
  border-radius: 50%; background: #57cf82; box-shadow: 0 0 9px rgba(87,207,130,.7);
}
.hero-status[data-state="offline"] .status-dot {
  background: #e3a84f; box-shadow: 0 0 9px rgba(227,168,79,.6);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.fineprint { margin-top: 14px; color: var(--muted); font-size: 14px; text-shadow: 0 1px 8px #000; }
.fineprint a { color: #bfe9ff; text-decoration: underline; }
.checksum { margin: 6px auto 0; max-width: 640px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; text-shadow: 0 1px 8px #000; }
.checksum code { color: #cfe3f5; }

section { padding: 72px 0; }
h2 {
  font-family: Cinzel, serif; font-weight: 800; font-size: clamp(24px, 3.2vw, 32px);
  letter-spacing: .04em; margin: 0 0 8px; color: var(--title);
}
.section-intro { max-width: 700px; margin: 0 auto 26px; text-align: center; color: var(--muted); line-height: 1.7; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.step { font-family: Cinzel, serif; font-weight: 800; color: var(--gold); font-size: 15px; letter-spacing: .08em; }

.news-list { display: grid; gap: 14px; }
.news-item { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--crystal);
             border-radius: 12px; padding: 18px 20px; }
.news-item time { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.news-item h3 { margin: 4px 0 6px; font-size: 18px; }
.news-item p { margin: 0; color: var(--muted); white-space: pre-line; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.event-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--crystal);
              border-radius: 12px; padding: 18px 20px; }
.event-card h3 { margin: 0 0 6px; font-size: 18px; }
.event-card p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.event-card time { display: block; color: var(--gold); font-size: 13px; font-weight: 600;
                   letter-spacing: .04em; margin-bottom: 4px; }
.event-card .event-badge { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px;
                           font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
                           background: rgba(79,195,255,.14); color: var(--crystal);
                           border: 1px solid rgba(79,195,255,.35); }
.event-card.event-running .event-badge { background: rgba(87,207,130,.14); color: #7fe0a4;
                           border-color: rgba(87,207,130,.4); }
.event-card.event-muted { border-top-color: var(--line); }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.specs dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.band { background: linear-gradient(180deg, var(--bg), var(--panel-2) 40%, var(--bg)); }

.community { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.community p { margin: 0; color: var(--muted); max-width: 560px; }

@media (max-width: 760px) {
  .grid-3, .specs { grid-template-columns: 1fr; }
  .hero { background-image: url(/assets/hero-768.webp); }
  section { padding: 52px 0; }
}

/* Registration page */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 16px;
        background: radial-gradient(ellipse at 50% 0%, rgba(40,120,220,.18), transparent 60%), var(--bg); }
.auth-card { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line);
             border-radius: 16px; padding: 30px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.auth-card h1 { font-family: Cinzel, serif; font-weight: 800; font-size: 28px; margin: 0 0 6px; color: var(--title); }
.auth-card .lead { margin: 0 0 22px; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field span { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; }
.field input { font: inherit; color: var(--text); background: #0a0f1b; border: 1px solid #2a3a58;
               border-radius: 10px; padding: 12px 14px; outline: none; }
.field input:focus { border-color: var(--crystal); box-shadow: 0 0 0 3px rgba(79,195,255,.18); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; color: var(--muted); font-size: 14px; }
.check input { margin-top: 4px; accent-color: var(--crystal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-card .btn { width: 100%; justify-content: center; }
.form-error { min-height: 22px; margin: 12px 0 0; color: var(--bad); font-size: 14px; }
.success h2 { font-family: Cinzel, serif; margin: 0 0 8px; color: var(--title); }
.success ol { color: var(--muted); padding-left: 20px; margin: 14px 0 22px; }
.success li { margin-bottom: 6px; }
.success .btn + .btn { margin-top: 10px; }
.alt { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }

/* Guide page */
.page-banner {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 60px 16px 52px;
  background: url(/assets/frontier-hero.webp) center 30% / cover no-repeat;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgba(7,9,15,.4), rgba(7,9,15,.85) 60%, rgba(7,9,15,.97)),
              linear-gradient(to bottom, rgba(7,9,15,.2), var(--bg) 98%);
}
.page-banner h1 { font-family: Cinzel, serif; font-weight: 800; letter-spacing: .05em; font-size: clamp(30px, 5vw, 44px);
                  margin: 0 0 6px; color: var(--title); text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.page-banner p { margin: 0; color: #f2e3c2; font-family: Cinzel, serif; letter-spacing: .05em; }
.page-banner .rule { margin: 18px auto 0; }
.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 40px 16px 72px; }
.guide-toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 4px; font-size: 14px; }
.guide-toc a { color: var(--muted); padding: 6px 10px; border-left: 2px solid var(--line); }
.guide-toc a:hover { color: var(--text); border-color: var(--gold); text-decoration: none; }
.guide-body section { padding: 0 0 36px; }
.guide-body h2 { font-size: 26px; }
.guide-body p, .guide-body li { color: #cdd8e6; }
.guide-body ol, .guide-body ul { padding-left: 22px; }
.guide-body li { margin-bottom: 6px; }
.guide-body code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 14px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq details[open] summary { color: var(--title); margin-bottom: 8px; }
.faq details p { margin: 0 0 8px; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 14px 18px; }
.guide-body .hotkeys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; padding: 0; list-style: none; }
.guide-body .hotkeys li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.guide-body kbd { min-width: 52px; text-align: center; font: 600 13px/1.6 Inter, sans-serif; color: var(--title); background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.guide-body .checklist { list-style: none; padding-left: 0; }
.guide-body .checklist li { padding-left: 28px; position: relative; }
.guide-body .checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border: 2px solid var(--gold); border-radius: 4px; }
@media (max-width: 760px) {
  .guide-layout { grid-template-columns: 1fr; gap: 16px; }
  .guide-toc { position: static; grid-auto-flow: row; }
}

.invite-note { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--gold, #d6a944); border-radius: 8px;
  background: rgba(214, 169, 68, .1); font-size: 14px; line-height: 1.5; }
.invite-note strong { color: var(--gold, #d6a944); }
