/* BALAURIA — the public landing page (public/index.php). Same tokens as game.css; no inline styles. */

body.has-landing { background: var(--bg); }
.lp { position: relative; isolation: isolate; max-width: 1180px; margin: 0 auto; padding: 0 16px 3em; overflow-x: clip; }
.lp h2 { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--gold); text-align: center; margin: 0 0 1.1em; letter-spacing: .01em; }
.lp h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--text); margin: .3em 0 .35em; }
.lp p { line-height: 1.55; }

/* The sky: a deep ember glow behind the hero, slow drifting sparks. */
.lp-sky { position: absolute; inset: -40vh 0 auto 0; height: 110vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 25%, rgba(194, 69, 45, .28) 0%, rgba(194, 69, 45, 0) 70%),
    radial-gradient(ellipse 40% 30% at 18% 60%, rgba(214, 168, 74, .10) 0%, rgba(214, 168, 74, 0) 70%),
    radial-gradient(ellipse 50% 40% at 85% 40%, rgba(60, 20, 80, .25) 0%, rgba(60, 20, 80, 0) 70%); }
.lp-ember { position: absolute; left: 20%; top: 60%; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-2);
  box-shadow: 0 0 8px 2px rgba(242, 193, 78, .6); opacity: 0; animation: lp-rise 9s linear infinite; }
.lp-ember-2 { left: 58%; top: 70%; animation-duration: 12s; animation-delay: 3s; }
.lp-ember-3 { left: 78%; top: 55%; animation-duration: 10s; animation-delay: 6s; }
@keyframes lp-rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: .9; } 90% { opacity: .2; } 100% { transform: translateY(-55vh) translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lp-ember { animation: none; display: none; } }

.lp-top { display: flex; justify-content: space-between; align-items: center; padding: 1em 0; }
.lp-brand { display: inline-flex; align-items: center; gap: .5em; font-family: var(--serif); font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: .04em; }
.lp-langs { display: flex; gap: .25em; }
.lp-langs a { padding: .3em .6em; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); text-decoration: none; font-size: .85em; }
.lp-langs a.on { color: var(--gold-2); border-color: var(--gold); }

.lp-hero { display: grid; grid-template-columns: 1.25fr minmax(300px, 420px); gap: 2.5em; align-items: center; padding: 2.5em 0 3.5em; }
.lp-hero-text { text-align: left; }
.lp-logo { display: block; filter: drop-shadow(0 6px 28px rgba(194, 69, 45, .55)); margin-bottom: .6em; }
.lp-hero h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0; line-height: 1; letter-spacing: .06em;
  background: linear-gradient(180deg, #f6d98a 0%, var(--gold) 55%, #9c7430 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-tagline { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--text); margin: .5em 0 .4em; font-style: italic; }
.lp-lead { color: var(--muted); max-width: 56ch; font-size: 1.05em; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: .7em; align-items: center; margin: 1.3em 0 1.6em; }
.lp-ctas .btn { padding: .75em 1.5em; font-size: 1.05em; text-decoration: none; }
.lp-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5em 1.6em; color: var(--muted); font-size: .92em; }
.lp-stats strong { color: var(--gold-2); font-family: var(--serif); font-size: 1.35em; margin-right: .2em; }

.lp-auth .auth-card { box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(214, 168, 74, .12) inset; }
.lp-auth-title { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; margin: 0 0 .6em; text-align: center; }
.lp-auth .boot { min-height: 160px; }
#era-slot:not([hidden]) { display: inline-block; margin: .2em 0 1em; }

.lp-section { padding: 2.6em 0; border-top: 1px solid var(--line); }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1em; }
.lp-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 1.3em 1.2em 1.1em;
  transition: transform .2s ease, border-color .2s ease; }
.lp-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.lp-card img { border-radius: 50%; border: 1px solid var(--line-2); box-shadow: 0 0 18px rgba(194, 69, 45, .25); }
.lp-card p { color: var(--muted); margin: 0; font-size: .95em; }

.lp-races { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9em; }
.lp-races li { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: .8em; align-items: center;
  padding: .8em; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.lp-races img { grid-row: 1 / 3; border-radius: 50%; border: 1px solid var(--line-2); }
.lp-races strong { font-family: var(--serif); color: var(--gold-2); }
.lp-races span { color: var(--muted); font-size: .85em; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1em; counter-reset: step; }
.lp-steps li { position: relative; padding: 1.2em 1.2em 1em 1.2em; border: 1px dashed var(--line-2); border-radius: 12px; }
.lp-step-no { display: inline-grid; place-content: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: linear-gradient(#a33a25, #7a2a1a);
  color: #fff3e6; font-family: var(--serif); font-weight: bold; margin-bottom: .3em; }
.lp-steps p { color: var(--muted); margin: 0; font-size: .95em; }

.lp-faq { max-width: 760px; margin: 0 auto; }
.lp-faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin-bottom: .6em; padding: .2em 1em; }
.lp-faq summary { cursor: pointer; padding: .7em 0; font-family: var(--serif); color: var(--text); font-size: 1.05em; list-style: none; position: relative; padding-right: 1.6em; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 0; top: .55em; color: var(--gold); font-size: 1.2em; }
.lp-faq details[open] summary::after { content: '−'; }
.lp-faq p { color: var(--muted); margin: 0 0 .9em; }

.lp-foot { text-align: center; color: var(--muted); font-size: .85em; padding-top: 2em; border-top: 1px solid var(--line); }
.lp-foot p { margin: .3em 0; }

@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 1.6em; padding: 1.2em 0 2.2em; }
  .lp-hero-text { text-align: center; }
  .lp-logo { margin-left: auto; margin-right: auto; }
  .lp-lead { margin-left: auto; margin-right: auto; }
  .lp-ctas, .lp-stats { justify-content: center; }
}

/* ---- Game guide (public/guide.php, batch 49b) ---- */
.lp-guide-link { color: var(--gold-2); text-decoration: none; font-family: var(--serif); margin-left: auto; margin-right: 1em; }
.lp-guide-link:hover { text-decoration: underline; }
.lp-crumbs { color: var(--muted); font-size: .9em; margin: .2em 0 1.2em; }
.lp-crumbs a { color: var(--muted); }
.lp-guide-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2em; align-items: start; }
.lp-guide-nav { position: sticky; top: 1em; display: flex; flex-direction: column; gap: .2em; }
.lp-guide-nav a { padding: .5em .8em; border-radius: 8px; color: var(--text); text-decoration: none; border: 1px solid transparent; }
.lp-guide-nav a:hover { background: var(--panel); }
.lp-guide-nav a.on { color: var(--gold-2); border-color: var(--line-2); background: var(--panel); font-weight: 600; }
.lp-guide-nav .lp-guide-play { margin-top: 1em; text-align: center; color: #fff3e6; }
.lp-guide-body h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--gold); margin: 0 0 .5em; line-height: 1.15; }
.lp-guide-body h2 { text-align: left; margin: 1.6em 0 .6em; font-size: clamp(1.25rem, 2.2vw, 1.6rem); display: flex; align-items: center; gap: .5em; }
.lp-guide-body h2 img { border-radius: 50%; border: 1px solid var(--line-2); }
.lp-guide-body p { line-height: 1.6; max-width: 72ch; }
.lp-guide-body .lp-lead { font-size: 1.1em; color: var(--text); }
.lp-guide-hero-img { float: right; margin: 0 0 1em 1.5em; border-radius: 50%; border: 1px solid var(--line-2); box-shadow: 0 0 28px rgba(194, 69, 45, .3); }
.lp-guide-cards .lp-card { display: block; color: inherit; text-decoration: none; }
.lp-entry { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.2em; padding: 1.3em 0; border-top: 1px solid var(--line); }
.lp-entry > img { border-radius: 50%; border: 1px solid var(--line-2); }
.lp-entry h2 { margin: 0 0 .3em; }
.lp-entry h3 { margin-top: 1em; }
.lp-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .25em 1em; margin: .6em 0 0; font-size: .95em; }
.lp-facts dt { color: var(--gold-2); font-family: var(--serif); }
.lp-facts dd { margin: 0; color: var(--text); }
.lp-specs { list-style: none; margin: .3em 0 0; padding: 0; display: grid; gap: .6em; }
.lp-specs li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .3em .8em; padding: .7em .9em; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: .95em; }
.lp-specs li img { grid-row: 1 / 3; border-radius: 50%; }
.lp-specs small { grid-column: 2; display: block; color: var(--muted); line-height: 1.45; }
.lp-table-wrap { overflow-x: auto; margin: .4em 0 1.4em; border: 1px solid var(--line); border-radius: 10px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: .92em; min-width: 720px; }
.lp-table th, .lp-table td { padding: .5em .6em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lp-table thead th { color: var(--gold-2); font-family: var(--serif); font-weight: normal; background: var(--panel); }
.lp-table tbody tr:last-child th, .lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table td { white-space: nowrap; }
.lp-table td:nth-child(8), .lp-table td:nth-child(9) { white-space: normal; min-width: 11em; color: var(--muted); }
.lp-table img { border-radius: 50%; display: block; }
.lp-muted { color: var(--muted); }
.lp-grid-list { list-style: none; margin: .4em 0 1em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7em; }
.lp-grid-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: .15em .8em; padding: .8em; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.lp-grid-list li img { grid-row: 1 / 4; border-radius: 50%; border: 1px solid var(--line-2); }
.lp-grid-list strong { font-family: var(--serif); color: var(--gold-2); }
.lp-grid-list span { color: var(--muted); font-size: .88em; line-height: 1.4; }
.lp-grid-list small { color: var(--text); font-size: .82em; opacity: .9; }
.lp-grid-list.lp-small li { grid-template-columns: 40px minmax(0, 1fr); }
.lp-emblems { list-style: none; margin: .4em 0 1em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6em; text-align: center; }
.lp-emblems li { padding: .6em .3em; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: .85em; color: var(--muted); }
.lp-emblems img { display: block; margin: 0 auto .3em; border-radius: 50%; }
.lp-glossary { margin: 1em 0; }
.lp-glossary dt { font-family: var(--serif); color: var(--gold-2); font-size: 1.1em; margin-top: 1em; }
.lp-glossary dd { margin: .2em 0 0; color: var(--text); line-height: 1.55; max-width: 72ch; }
.lp-guide-cta { margin: 2.4em 0 1em; text-align: center; }
@media (max-width: 820px) {
  .lp-guide-grid { grid-template-columns: 1fr; }
  .lp-guide-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .lp-guide-nav .lp-guide-play { margin: 0; flex-basis: 100%; }
  .lp-entry { grid-template-columns: 64px minmax(0, 1fr); }
  .lp-entry > img { width: 64px; height: 64px; }
  .lp-guide-hero-img { float: none; display: block; margin: 0 auto 1em; width: 140px; height: 140px; }
  .lp-guide-link { margin-left: 0; }
}

/* ---- Analytics consent notice (assets/js/analytics.js) ---- */
.consent-bar { position: fixed; left: 50%; bottom: 1em; transform: translateX(-50%); z-index: 60; width: min(92vw, 560px);
  display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1em; padding: .8em 1em; background: var(--panel-2, #1b1612); color: var(--text, #e9dcc5);
  border: 1px solid var(--line-2, #5a4a36); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: .92em; }
.consent-bar p { margin: 0; flex: 1 1 260px; line-height: 1.4; }
.consent-bar a { color: var(--gold-2, #e0b35a); }
.consent-actions { display: flex; gap: .5em; }
