/* Lobduel website. One stylesheet, no scripts. Colours follow the game. */
:root {
  --bg: #14112e;
  --bg2: #1b1740;
  --panel: #231e4f;
  --line: #3a3470;
  --text: #edeaff;
  --dim: #b4aedb;
  --amber: #ffb648;
  --amber2: #ff9a3c;
  --sky: #6ecbff;
  --rose: #ff8fa3;
  --green: #5fd28a;
  --ink: #2a1a05;
  --w: 46rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: 0.18em; }
a:hover { color: #a6e0ff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--amber); color: var(--ink); padding: 0.5rem 0.8rem; border-radius: 8px; z-index: 9; }
.dim { color: var(--dim); }
small { color: var(--dim); font-size: 0.82em; }

/* ---- header and footer */
.top {
  display: flex; align-items: center; gap: 0.5rem 1.25rem; flex-wrap: wrap;
  max-width: 70rem; margin: 0 auto; padding: 0.8rem 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: 0.01em; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; margin-left: auto; }
.top nav a { color: var(--dim); text-decoration: none; font-weight: 600; padding: 0.3rem 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top nav a[aria-current] { box-shadow: 0 2px 0 var(--amber); }
.btn {
  display: inline-block; background: linear-gradient(180deg, #ffc35e, var(--amber2)); color: var(--ink);
  font-weight: 800; text-decoration: none; border-radius: 14px; padding: 0.85rem 1.7rem; font-size: 1.1rem;
  box-shadow: 0 4px 0 #c96f1c, 0 10px 24px rgba(0, 0, 0, 0.35);
}
.btn:hover { color: var(--ink); filter: brightness(1.06); }
.btn.small { padding: 0.4rem 1.05rem; font-size: 0.98rem; border-radius: 10px; box-shadow: 0 3px 0 #c96f1c; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--sky); }
.foot { border-top: 1px solid var(--line); margin-top: 4rem; background: #100e26; }
.foot-cols { max-width: 70rem; margin: 0 auto; padding: 2.2rem 1.25rem 1rem; display: grid; gap: 1.5rem 3rem; grid-template-columns: 1.4fr 1fr 1fr; }
.foot h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin: 0 0 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0.3rem 0; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--sky); text-decoration: underline; }
.foot p { color: var(--dim); margin: 0.7rem 0 0; font-size: 0.95rem; max-width: 22rem; }
.foot .fine { max-width: 70rem; margin: 0 auto; padding: 0.5rem 1.25rem 2rem; font-size: 0.88rem; }
.foot .fine a { color: var(--dim); text-decoration: underline; }

/* ---- article pages: the text, and beside it a rail that stays in view (contents, then the other guides) */
.layout {
  max-width: 70rem; margin: 0 auto; padding: 1.5rem 1.25rem 0;
  display: grid; grid-template-columns: minmax(0, var(--w)) minmax(0, 17.5rem); column-gap: 3.5rem;
  grid-template-areas: "head rail" "body rail"; grid-template-rows: auto 1fr; justify-content: space-between;
}
.layout.plain { display: block; max-width: calc(var(--w) + 2.5rem); }
.page-head { grid-area: head; }
.page-body { grid-area: body; min-width: 0; }
.page-body h2, .page-body h3, .class-card { scroll-margin-top: 1rem; }
.rail { grid-area: rail; align-self: start; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding-bottom: 0.5rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.rail .toc { margin: 0 0 1rem; }
.rail b { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 0.5rem; }
.rail .toc ol { font-size: 0.93rem; }
.rail .toc a { color: var(--text); text-decoration: none; }
.rail .toc a:hover { color: var(--sky); text-decoration: underline; }
.rail-more { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.rail-more ol { list-style: none; margin: 0 0 0.9rem; padding: 0; }
.rail-more li { margin: 0 0 0.6rem; }
.rail-item { display: grid; grid-template-columns: 5.4rem 1fr; gap: 0.7rem; align-items: center; text-decoration: none; color: var(--text); border-radius: 10px; }
.rail-item img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 8 / 5; object-fit: cover; display: block; }
.rail-item b { text-transform: none; letter-spacing: 0; font-size: 0.98rem; color: #fff; margin: 0; }
.rail-item small { display: block; }
a.rail-item:hover b { color: var(--sky); }
.rail-more .here .rail-item { opacity: 0.6; }
.rail-more .here small { color: var(--amber); }
.rail-more .btn { display: block; text-align: center; }

/* ---- the foot of every page: read next, with pictures */
.next { max-width: 70rem; margin: 3.5rem auto 0; padding: 2rem 1.25rem 0; border-top: 1px solid var(--line); }
.next h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.next h3 { margin: 1.6rem 0 0.8rem; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.tcards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1.2rem 0; }
.tcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.tcard:hover { border-color: var(--sky); color: var(--text); transform: translateY(-2px); }
.tcard img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-bottom: 1px solid var(--line); }
.tcard-text { padding: 0.9rem 1.1rem 1.1rem; display: block; }
.tcard em { display: block; font-style: normal; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 0.25rem; }
.tcard b { display: block; font-size: 1.15rem; color: #fff; margin-bottom: 0.25rem; }
.tcard-text > span { color: var(--dim); font-size: 0.95rem; }
.tcard.big { flex-direction: row; align-items: stretch; }
.tcard.big img { width: 42%; max-width: 24rem; border-bottom: 0; border-right: 1px solid var(--line); }
.tcard.big .tcard-text { align-self: center; padding: 1.2rem 1.5rem; }
.tcard.big b { font-size: 1.5rem; }
.prevnext { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; margin: 1.8rem 0 0; }
.prevnext a { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 1rem; text-decoration: none; color: #fff; font-weight: 700; }
.prevnext a:hover { border-color: var(--sky); }
.prevnext small { display: block; font-weight: 500; }
.prevnext a[rel="next"] { text-align: right; }
.prevnext a:nth-child(2) { text-align: center; }

@media (max-width: 62rem) {
  /* One column: the contents come before the text, the other guides after it. */
  .layout { display: flex; flex-direction: column; }
  .rail { display: contents; }
  .page-head { order: 0; }
  .rail .toc { order: 1; margin: 0.5rem 0 1.5rem; }
  .page-body { order: 2; }
  .rail-more { order: 3; margin-top: 2.5rem; }
  .rail-more ol { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .rail-more li { margin: 0; }
}
@media (max-width: 36rem) {
  .tcard.big { flex-direction: column; }
  .tcard.big img { width: 100%; max-width: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .prevnext { grid-template-columns: 1fr 1fr; }
  .prevnext a:nth-child(2) { grid-column: 1 / -1; order: 3; }
}
.crumbs { font-size: 0.88rem; color: var(--dim); margin-bottom: 1rem; }
.crumbs a { color: var(--dim); }
.crumbs span { margin: 0 0.15rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.15; margin: 0 0 0.6rem; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 2.6rem 0 0.7rem; text-wrap: balance; }
h3 { font-size: 1.16rem; margin: 1.8rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1.05rem; }
li { margin: 0.3rem 0; }
.byline { color: var(--dim); font-size: 0.9rem; margin-bottom: 1.6rem; }
.byline a { color: var(--dim); }
.lead { font-size: 1.2rem; color: #dcd8f7; }
strong, b { color: #fff; }
code { background: var(--panel); border-radius: 5px; padding: 0.1em 0.35em; font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.5rem 0 2rem; }
.toc b { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 0.4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }

.note, .rule, .example, .card-check {
  border-radius: 14px; padding: 1rem 1.2rem; margin: 1.4rem 0; background: var(--panel); border: 1px solid var(--line);
}
.note > :last-child, .rule > :last-child, .example > :last-child, .card-check > :last-child { margin-bottom: 0; }
.rule { border-left: 4px solid var(--amber); }
.example { border-left: 4px solid var(--sky); }
.example h3, .rule h3, .card-check h3, .note h3 { margin-top: 0; }
.card-check { border: 2px dashed var(--amber); background: #1d1942; }
.card-check ul { list-style: none; padding: 0; }
.card-check li { padding-left: 1.7rem; position: relative; }
.card-check li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.95rem; height: 0.95rem; border: 2px solid var(--amber); border-radius: 4px; }

figure { margin: 1.6rem 0; }
figcaption { color: var(--dim); font-size: 0.9rem; margin-top: 0.5rem; }
.fig { display: block; width: 100%; background: linear-gradient(180deg, #1c1846, #2b2260 70%, #3a2b6b); border: 1px solid var(--line); border-radius: 14px; }
.fig .f-ground { stroke: #58d6b0; stroke-width: 3; stroke-linecap: round; }
.fig .f-tick { stroke: #8d87bd; stroke-width: 1.5; }
.fig .f-rule { stroke: #8d87bd; stroke-width: 1.2; stroke-dasharray: 5 6; }
.fig .f-arc { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fig text { font: 600 13px system-ui, sans-serif; }
.fig .f-small { fill: #c1bbe6; font-weight: 500; font-size: 12px; }
.fig .f-label { font-size: 14px; font-weight: 700; }
.fig .f-head { fill: #c1bbe6; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.fig .f-name { fill: #edeaff; font-size: 13px; }
.fig .f-track { fill: rgba(255, 255, 255, 0.08); }

.shot { max-width: 21rem; margin-left: auto; margin-right: auto; }
.shot img, .map img { display: block; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.map { max-width: 26rem; }
.two { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
.two figure { margin: 0; }

.table-wrap { overflow-x: auto; margin: 1.3rem 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--panel); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 700; color: #fff; }
table.num td { font-variant-numeric: tabular-nums; }

/* ---- classes */
.class-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; scroll-margin-top: 1rem; }
.class-card h3 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.role { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.15rem 0.5rem; border-radius: 99px; vertical-align: middle; margin-left: 0.3rem; color: var(--ink); font-weight: 800; }
.role-frontline { background: var(--amber); }
.role-damage { background: var(--rose); }
.role-control { background: #b79cff; }
.role-support { background: var(--green); }
.stats { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; color: var(--dim); font-size: 0.93rem; margin-bottom: 0.7rem; }
.class-card dl { display: grid; grid-template-columns: 6.2rem 1fr; gap: 0.5rem 0.8rem; margin: 0; font-size: 0.96rem; }
.class-card dt { color: var(--dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.15rem; }
.class-card dd { margin: 0; }
.unlock { columns: 2; column-gap: 2rem; }
.unlock li { break-inside: avoid; }

/* ---- hub cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0; padding: 0; list-style: none; }
.cards > li { margin: 0; }
.cards a.card { display: block; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--text); }
.cards a.card:hover { border-color: var(--sky); }
.card b { display: block; font-size: 1.15rem; margin-bottom: 0.3rem; color: #fff; }
.card span { color: var(--dim); font-size: 0.96rem; }
.card em { display: block; font-style: normal; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 0.35rem; }

/* ---- home */
.hero { background: radial-gradient(120% 90% at 50% 100%, #b0587f 0%, #4a3a86 45%, var(--bg2) 80%); border-bottom: 1px solid var(--line); }
.hero-in { max-width: 70rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; display: grid; gap: 2.5rem; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.hero .lead { max-width: 34rem; }
.hero .cta { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; margin: 1.6rem 0 0.9rem; }
.hero .shot { max-width: 19rem; transform: rotate(2deg); }
.band { max-width: 70rem; margin: 0 auto; padding: 3rem 1.25rem 0; }
.band > h2 { margin-top: 0; font-size: 1.8rem; }
.band .narrow { max-width: var(--w); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem 1.1rem; margin: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 800; margin-bottom: 0.5rem; }
.steps b { display: block; font-size: 1.1rem; }
.steps span { color: var(--dim); }
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: center; }
.facts { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); list-style: none; padding: 0; margin: 1.5rem 0; }
.facts li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; margin: 0; }
.facts b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--amber); }
.facts span { color: var(--dim); font-size: 0.92rem; }
.final { text-align: center; padding-bottom: 1rem; }

@media (max-width: 48rem) {
  .hero-in, .split, .two { grid-template-columns: 1fr; }
  .hero .shot { transform: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .top nav { order: 3; width: 100%; margin-left: 0; }
  .top .btn { margin-left: auto; }
  .unlock { columns: 1; }
  .class-card dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .class-card dd { margin-bottom: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
