@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* Aika United demo site — deliberately the Ashat Hub / AGP Studios design
   language (same tokens, chrome, and footer), so the game site reads as part
   of the same family. Mirror hub changes here until the owning thread builds
   the real site. */
:root {
  --page: #101417;
  --bg: #191f23;
  --bg-raised: #1f272d;
  --surface: #242b30;
  --surface-2: #2a333a;
  --border: rgba(240, 238, 232, 0.12);
  --border-strong: rgba(240, 238, 232, 0.26);
  --text: #f0eee8;
  --text-muted: #a8adb1;
  --gold: #b79a65;
  --gold-bright: #cdb287;
  --gold-deep: #97794c;
  --live: #5cc693;
  --coming: #8fa3b8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(183, 154, 101, 0.22);
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}

::selection { background: rgba(183, 154, 101, 0.35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0c0f12 url('/background.jpg') center center / cover no-repeat fixed; background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.portal {
  min-height: 100vh;
  position: relative;
  z-index: 0;
  background:
    radial-gradient(1000px 520px at 82% -8%, rgba(70, 88, 100, 0.16), transparent 65%),
    radial-gradient(760px 480px at -12% 32%, rgba(70, 88, 100, 0.12), transparent 60%),
    radial-gradient(560px 320px at 50% 108%, rgba(183, 154, 101, 0.05), transparent 70%),
    linear-gradient(rgba(16, 20, 23, 0.72), rgba(12, 15, 18, 0.78) 60%, rgba(16, 20, 23, 0.82));
  overflow-x: hidden;
  padding-top: 57px;
  padding-bottom: 47px;
}

.site-header-inner,
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-weight: 700; }

/* ---------- Buttons (hub) ---------- */
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(var(--gold-bright), var(--gold-deep));
  color: #1d1810;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  text-decoration: none;
}
.primary-button:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 0 30px rgba(183, 154, 101, 0.35); }
.primary-button.large { padding: 14px 26px; font-size: 14px; }
.primary-button.block { width: 100%; justify-content: center; }

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(16, 20, 23, 0.6);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.secondary-button:hover { background: var(--surface-2); border-color: rgba(183, 154, 101, 0.5); }

/* ---------- Header (hub chrome) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(5, 16, 24, 0.5);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.wordmark { font-size: 16px; letter-spacing: 0.16em; white-space: nowrap; }
.wordmark b { color: var(--gold); }
.main-nav { display: flex; gap: 28px; flex: 1; }
.main-nav a { position: relative; padding: 8px 0; color: var(--text-muted); font-size: 13.5px; }
.main-nav a:hover { color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.demo-pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 12px; color: var(--gold-bright);
}
.hub-link { color: var(--gold); font-weight: 700; font-size: 13px; white-space: nowrap; }
.hub-link:hover { color: var(--gold-bright); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border-strong);
  color: var(--text); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 18px; cursor: pointer; }
.mobile-nav { display: none; }

/* ---------- Layout ---------- */
main { max-width: 1440px; margin: 0 auto; padding: 0 48px 40px; }

.hero { position: relative; text-align: center; padding: 84px 12px 56px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(183, 154, 101, 0.14), transparent 65%),
    radial-gradient(760px 480px at 82% 20%, rgba(70, 88, 100, 0.18), transparent 60%),
    linear-gradient(rgba(16, 20, 23, 0.25), rgba(16, 20, 23, 0.55)); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.hero .eyebrow { margin-bottom: 10px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(44px, 7vw, 80px); line-height: 1.05; margin: 10px 0 16px; }
.hero h1 .gold { color: var(--gold); text-shadow: 0 0 40px rgba(183, 154, 101, 0.35); }
.lede { max-width: 640px; margin: 0 auto 28px; font-size: 17px; color: var(--text-muted); }
.lede b { color: var(--text); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-muted); }

.section { padding: 36px 0 8px; scroll-margin-top: 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 6px 0 0; font-family: 'Playfair Display', serif; font-size: 32px; }
.section-lede { color: var(--text-muted); max-width: 700px; margin: 0 0 4px; }
.refresh-state { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }

/* Hub card treatment: thin border, raised gradient, strong shadow. */
.news-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(42, 51, 58, 0.78), rgba(16, 20, 23, 0.85));
  box-shadow: var(--shadow);
}
.news-card h3 { margin: 8px 0; font-size: 20px; font-family: 'Playfair Display', serif; }
.news-card h4 { margin: 18px 0 6px; color: var(--gold-bright); font-size: 14px; }
.news-card p { color: var(--text-muted); margin: 6px 0; }
.news-card ul { margin: 8px 0; padding-left: 20px; color: var(--text-muted); }
.news-card li { margin: 4px 0; }

.pledge { margin-top: 12px; }
.pledge-result { min-height: 24px; color: var(--gold-bright); font-style: italic; }

.status-list { margin: 0; }
.status-list > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.status-list dt { color: var(--text-muted); }
.status-list dd { margin: 0; font-weight: 600; }
.soon { color: var(--coming); }
.open { color: var(--live); }
.reqs { font-size: 14px; }

form label { display: block; margin: 12px 0; font-size: 13px; color: var(--text-muted); }
form input, form select { display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: #101318; color: var(--text); font-size: 15px; font-family: inherit; }
.muted { font-size: 13px; }

/* ---------- Footer (hub chrome, slim pinned row) ---------- */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  border-top: 1px solid var(--border);
  background: rgba(5, 16, 24, 0.6);
  backdrop-filter: blur(18px);
}
.footer-inner { display: flex; align-items: center; gap: 16px; padding-block: 8px; flex-wrap: nowrap; min-height: 30px; }
.footer-inner .wordmark { font-size: 13px; flex-shrink: 0; }
.footer-identity { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-muted); }
.footer-legal-inline { margin: 0; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.footer-group { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { display: grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid var(--border); border-radius: 50%; color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease; }
.footer-socials a:hover { color: var(--gold); border-color: rgba(241, 194, 91, 0.4); }

@media (max-width: 900px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header-inner, .footer-inner, main { padding-inline: 20px; }
  main { padding-bottom: 30px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .main-nav, .hub-link { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 20px 14px; border-top: 1px solid var(--border); }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 8px 0; color: var(--text-muted); font-size: 14px; }
  .mobile-nav a:hover { color: var(--text); }
  .hero { padding: 56px 8px 36px; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .footer-identity { display: none; }
}

.nav-divider { width: 1px; align-self: stretch; background: var(--border-strong); margin: 6px 2px; }

.hub-bell { position: relative; color: var(--text-muted); font-size: 18px; line-height: 1; text-decoration: none; }
.hub-bell:hover { color: var(--text); }
.hub-bell-count { position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: #14181d; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hub-user { position: relative; }
.hub-pill { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 12px 3px 3px; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.hub-pill:hover { border-color: var(--gold); }
.hub-avatar { width: 26px; height: 26px; border-radius: 50%; background: #5a4632; color: #f0eee8; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.hub-role { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--gold-bright); border: 1px solid var(--gold-deep); border-radius: 5px; padding: 2px 6px; }
.hub-caret { font-size: 11px; color: var(--text-muted); }
.hub-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 10px; padding: 6px; z-index: 50; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.hub-menu a, .hub-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; color: var(--text); font-size: 13.5px; border-radius: 6px; cursor: pointer; text-decoration: none; font-family: inherit; }
.hub-menu a:hover, .hub-menu button:hover { background: var(--surface-2); }
.hub-online { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }
.hub-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 6px rgba(61,220,132,.9); }
@media (max-width: 700px) { .hub-online, .hub-bell { display: none; } }

/* ---------- In Remembrance (permanent tribute, not promo) ---------- */
.remembrance .memorial-card { text-align: center; border-color: rgba(183, 154, 101, 0.45);
  background: linear-gradient(160deg, rgba(42, 51, 58, 0.55), rgba(16, 20, 23, 0.92)),
    radial-gradient(520px 200px at 50% 0%, rgba(183, 154, 101, 0.12), transparent 70%);
  box-shadow: var(--shadow), 0 0 40px rgba(183, 154, 101, 0.10); }
.memorial-lede { margin: 0 auto 18px; }
.memorial-names { list-style: none; margin: 18px auto 6px; padding: 0; max-width: 720px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.memorial-names li { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--text);
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(16, 20, 23, 0.55); overflow-wrap: anywhere; }
.memorial-names li:hover { border-color: rgba(183, 154, 101, 0.55); color: var(--gold-bright); }
.memorial-inscription { margin: 20px auto 6px; max-width: 640px; font-style: italic;
  font-family: 'Playfair Display', serif; font-size: 18px; color: var(--gold-bright); }
.memorial-note { margin-top: 10px; }
@media (max-width: 700px) { .memorial-names { grid-template-columns: 1fr; } .memorial-names li { font-size: 17px; } }

/* ---------- Gated download ---------- */
#download-card .primary-button.block { margin-top: 12px; }
#download-status { min-height: 20px; }

/* Hidden attribute must win over button display (else gated download shows both). */
[hidden] { display: none !important; }
