/* morituri.gg: the landing page and waitlist, in the game's own look ("arena bold"): flat dark surfaces and thin
   lines, gold for every action, each champion's colour only for what is theirs. Cinzel only for names and titles
   (18px and up); no glows, gradients or side stripes. */
:root {
  color-scheme: dark;
  --ink: #0e0b09;
  --surface: #15110d;
  --raise: #1f1914;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --gold: #e2b866;
  --gold-hi: #ecc679;
  --on-gold: #1c1206;
  --bone: #efe6d6;
  --muted: #c0b29e;
  --faint: #ad9d87;
  --bad: #e0413f;
  --f-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --f-deco: 'Cinzel Decorative', 'Cinzel', 'Times New Roman', serif;
  --f-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 17px/1.55 var(--f-body); min-height: 100vh; overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ the bar */
.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: rgba(14, 11, 9, 0.94); border-bottom: 1px solid var(--line);
}
.brand { font: 900 20px/1 var(--f-deco); letter-spacing: 0.1em; color: var(--bone); text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 500; }
.bar nav a:hover { color: var(--bone); }
.bar nav a.signin { padding: 7px 14px; border: 1px solid var(--gold); border-radius: 8px; color: var(--gold-hi); font-weight: 700; }
.bar nav a.signin:hover { background: var(--gold); color: var(--on-gold); }
@media (max-width: 640px) { .bar nav a:not(.signin) { display: none; } }

main > section { width: min(var(--wide), 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ hero */
.hero { text-align: center; padding-top: clamp(40px, 8vw, 88px) !important; }
.kicker { margin: 0; color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); font-weight: 500; }
.mark { margin: 8px 0 14px; font: 900 clamp(52px, 13vw, 144px)/0.95 var(--f-deco); letter-spacing: 0.06em; color: var(--gold-hi); }
.tag { margin: 0 auto; max-width: 34ch; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; color: var(--bone); }
.ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 10px; border: 1px solid transparent; font: 800 17px/1 var(--f-body); text-decoration: none; cursor: pointer;
}
.btn.gold { background: var(--gold); color: var(--on-gold); }
.btn.gold:hover { background: var(--gold-hi); }
.btn.line { border-color: var(--line-2); color: var(--bone); background: transparent; }
.btn.line:hover { border-color: var(--bone); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ------------------------------------------------------------------ trailer */
.film { margin-top: clamp(32px, 6vw, 56px); }
.player { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #000; }
.player video { width: 100%; height: 100%; display: block; background: #000; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; display: flex; align-items: center; gap: 12px;
  padding: 14px 24px 14px 18px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-gold);
  font: 800 18px/1 var(--f-body); cursor: pointer;
}
.play:hover { background: var(--gold-hi); }
.play svg { width: 26px; height: 26px; }
.film-note { margin: 12px 0 0; text-align: center; color: var(--faint); font-size: 15px; }

/* ------------------------------------------------------------------ sections */
main > section:not(.hero):not(.film) { margin-top: clamp(64px, 10vw, 112px); }
h2 { margin: 0 0 22px; font: 700 clamp(28px, 4vw, 40px)/1.15 var(--f-display); letter-spacing: 0.03em; color: var(--bone); }
h3 { margin: 0 0 6px; font: 700 20px/1.25 var(--f-display); letter-spacing: 0.02em; color: var(--bone); }
.section-lede { margin: -8px 0 24px; color: var(--muted); max-width: 62ch; }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.cols > div { padding-top: 16px; border-top: 1px solid var(--line-2); }
.cols p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

/* the champions: each one's colour on what is theirs (icon, name underline, frame on hover) */
.champs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.champs li { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.champs li:hover { border-color: var(--c); }
.champs img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--raise); }
.champ-text { padding: 14px 14px 16px; }
.champs .role { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.champs .role svg { width: 20px; height: 20px; flex: none; color: var(--c); }
.champs h3 { font-size: 22px; text-decoration: underline 2px var(--c); text-underline-offset: 6px; }
.champs h3 span { display: block; margin-top: 8px; font: 500 15px var(--f-body); color: var(--muted); text-decoration: none; letter-spacing: 0; }
.champs p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 1080px) { .champs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .champs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .champs { grid-template-columns: 1fr; } .champs img { aspect-ratio: 16 / 10; } }

.arena-list { list-style: none; margin: 0; padding: 0; counter-reset: arena; border-top: 1px solid var(--line-2); }
.arena-list li { counter-increment: arena; display: grid; grid-template-columns: 56px minmax(0, 14em) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.arena-list li::before { content: counter(arena, upper-roman); font: 700 20px var(--f-display); color: var(--gold); }
.arena-list h3 { margin: 0; }
.arena-list p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .arena-list li { grid-template-columns: 44px minmax(0, 1fr); } .arena-list p { grid-column: 2; } }

/* ------------------------------------------------------------------ join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 5vw, 64px); align-items: start; padding-bottom: 24px !important; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } }
.join-text p { color: var(--muted); margin: 0 0 16px; }
.facts { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.facts li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.facts b { color: var(--bone); }
.already { font-size: 17px; color: var(--bone) !important; }
.already a { font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: clamp(18px, 3vw, 26px); }
.field { display: block; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { display: block; margin: 0 0 6px; padding: 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.field em { font-style: italic; font-weight: 400; color: var(--faint); }
input[type=email], input[type=text], select {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #0b0907; color: var(--bone); font: 400 16px var(--f-body);
}
input::placeholder { color: #8a7c69; } /* 4.89:1 on the input background */
select { appearance: none; padding-right: 34px; background-color: #0b0907;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e2b866' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
select option { background: #15110d; color: var(--bone); }
.field [aria-invalid=true] { border-color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: block; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 15px; }
.chips input:checked + span { border-color: var(--gold); color: var(--bone); background: rgba(226, 184, 102, 0.12); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.ts { min-height: 65px; margin: 4px 0 12px; }
.msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(224, 65, 63, 0.55); background: rgba(224, 65, 63, 0.12); color: #f3c9c4; font-size: 15px; }
.fine { margin: 12px 0 0; color: var(--faint); font-size: 14px; line-height: 1.45; }
.done { padding: 8px 4px; outline: none; }
.done h3 { font-size: 24px; color: var(--gold-hi); }
.done p { color: var(--muted); margin: 8px 0 0; }

/* ------------------------------------------------------------------ foot */
.foot { margin-top: clamp(64px, 10vw, 104px); padding: 24px var(--gutter) 40px; border-top: 1px solid var(--line); text-align: center; color: var(--faint); font-size: 15px; }
.foot p { margin: 0 0 6px; }
.brand-sm { font: 900 18px var(--f-deco); letter-spacing: 0.08em; color: var(--muted); }
.salute { font-style: italic; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
