/* The Mortalcraft website (server/website): the launcher's colours (tools/launcher/ui.html), the owner's medallion
   as a faint backdrop. No outside fonts or images: nothing that would hand a visitor's address to anyone else. */
:root {
  --bg: #0d0b08; --ink: #eee5cf; --dim: #b3a892; --mute: #8a8070;
  --gold: #e0b04a; --gold-hi: #f6d27a; --gold-deep: #9a6d1e; --gold-ink: #1c1407;
  --panel: rgba(20, 17, 12, .62); --panel-solid: #18140f; --line: rgba(224, 176, 74, .18); --line-hi: rgba(224, 176, 74, .42);
  --ember: rgba(214, 112, 38, .22); --blood: rgba(120, 28, 20, .22); --bad: #f08d6e; --discord: #5865f2;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); font: 16px/1.6 var(--sans); background: transparent; overflow-x: hidden; }
a { color: var(--gold-hi); }
code { font-family: Consolas, "Courier New", monospace; font-size: .95em; color: var(--gold-hi); }

/* ---- The backdrop: embers and the medallion, faint and still ---- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--ember), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, var(--blood), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 70%, rgba(180, 120, 40, .10), transparent 70%),
    var(--bg); }
.backdrop::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 130vw, 130vh); aspect-ratio: 1;
  transform: translate(-50%, -46%); background: url("/icon.png") center / contain no-repeat;
  opacity: .17; filter: blur(.5px) saturate(.85); }
.backdrop::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .65) 100%); }

/* ---- The bar along the top ---- */
nav.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px max(16px, calc((100% - 1080px) / 2)); background: rgba(13, 11, 8, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-hi); text-decoration: none;
  font: 700 19px/1 var(--serif); letter-spacing: 1px; }
.links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.links a { color: var(--dim); text-decoration: none; padding: 6px 10px; border-radius: 4px; font-size: 15px; }
.links a:hover, .links a.on { color: var(--gold-hi); background: rgba(224, 176, 74, .08); }
.links a.discord { color: #fff; background: var(--discord); margin-left: 6px; }
.links a.discord:hover { background: #6d78f4; }

/* ---- The hero ---- */
.hero { max-width: 820px; margin: 0 auto; padding: 56px 16px 40px; text-align: center; }
.seal { width: 168px; height: 168px; filter: drop-shadow(0 0 28px rgba(224, 160, 60, .35)) drop-shadow(0 8px 18px rgba(0, 0, 0, .8)); }
h1 { margin: 10px 0 6px; font: 700 clamp(46px, 9vw, 76px)/1 var(--serif); letter-spacing: 3px;
  background: linear-gradient(180deg, #fff1c4 0%, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #2e1d06) drop-shadow(0 0 24px rgba(0, 0, 0, .9)); }
.kicker { margin: 0 0 18px; color: var(--gold); font: 600 14px/1.4 var(--sans); letter-spacing: 3px; text-transform: uppercase; }
.lead { max-width: 680px; margin: 0 auto; color: var(--ink); font: 19px/1.65 var(--serif); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.status { margin: 0; color: var(--mute); font-size: 14px; }

/* ---- Buttons ---- */
.button { display: inline-block; padding: 10px 22px; border-radius: 5px; text-decoration: none; font-weight: 600;
  color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border: 1px solid #8a6420; box-shadow: 0 2px 0 #4a3210, 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .12s ease, filter .12s ease; }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button.big { padding: 13px 28px; font-size: 17px; }
.button.ghost { color: var(--gold-hi); background: rgba(13, 11, 8, .55); border-color: var(--line-hi); box-shadow: none; }
.button.discord { color: #fff; background: var(--discord); border-color: #4752c4; box-shadow: 0 2px 0 #333c99; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Sections ---- */
main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 26px 30px;
  margin: 26px 0; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 700 28px/1.2 var(--serif); color: var(--gold-hi); }
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-hi), transparent); }
h3 { margin: 0 0 6px; font: 700 19px/1.3 var(--serif); color: var(--gold-hi); }
p { margin: 8px 0; }
.notice { color: var(--bad); font-size: 14px; }

/* The six features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 12px 0 8px; }
.features article { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 20px 20px 18px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.features article::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.features p { color: var(--dim); font-size: 15px; margin: 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 62px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 700 20px/1 var(--serif); color: var(--gold-ink);
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 60%, var(--gold-deep));
  box-shadow: 0 0 0 3px rgba(224, 176, 74, .15), 0 4px 12px rgba(0, 0, 0, .5); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: -14px; width: 2px;
  background: linear-gradient(var(--line-hi), transparent); }
.steps p { color: var(--dim); }
.address code { display: inline-block; padding: 9px 16px; border-radius: 5px; background: rgba(0, 0, 0, .5);
  border: 1px solid var(--line-hi); font-size: 19px; user-select: all; }

/* About */
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about ul { margin: 6px 0 0; padding-left: 18px; color: var(--dim); font-size: 15px; }
.about li { margin: 0 0 8px; }
.about li::marker { color: var(--gold); }

/* Questions */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 14px 36px 14px 2px; position: relative;
  font: 600 17px/1.4 var(--serif); color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font: 400 24px/1 var(--sans); }
details[open] summary::after { content: "\2212"; }
summary:hover { color: var(--gold-hi); }
details p { margin: 0 0 16px; color: var(--dim); max-width: 760px; }

/* Help */
.help { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.help article { background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-left: 3px solid var(--gold-deep);
  border-radius: 6px; padding: 14px 18px; }
.help article p { color: var(--dim); font-size: 15px; margin: 4px 0; }
.help .ask { border-left-color: var(--discord); background: rgba(88, 101, 242, .08); }

footer { max-width: 1080px; margin: 0 auto; padding: 18px 16px 48px; text-align: center; color: var(--mute); font-size: 13px; }
footer a { color: var(--dim); }

/* ---- Narrower screens ---- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  nav.top { flex-direction: column; align-items: stretch; gap: 6px; }
  .brand { justify-content: center; }
  .links { justify-content: center; }
  .links a { padding: 5px 8px; font-size: 14px; }
  .hero { padding-top: 34px; }
  .seal { width: 124px; height: 124px; }
  .lead { font-size: 17px; }
  .features, .help { grid-template-columns: 1fr; }
  .panel { padding: 20px 18px; }
  .steps li { padding-left: 54px; }
  .steps li::before { width: 38px; height: 38px; font-size: 18px; }
  .steps li:not(:last-child)::after { left: 18px; top: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
