@font-face {
  font-family: Averia;
  src: url("fonts/AveriaSerifLibre-Bold.42898c121d13.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Atkinson;
  src: url("fonts/AtkinsonHyperlegibleNext.4cb8eaa42c20.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f1f5f4;
  --surface: #ffffff;
  --ink: #173d48;
  --route: #0d554e;
  --gold: #d2a64b;
  --cloud: #8270aa;
  --line: #cddcd8;
  --muted: #526971;
  --error: #a72d38;
  --soft: #e5eeeb;
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #10262e;
  --surface: #193943;
  --ink: #edf5f2;
  --route: #8accb3;
  --gold: #e5be69;
  --cloud: #b9a7dc;
  --line: #36535c;
  --muted: #b7cbcb;
  --error: #ffa9ac;
  --soft: #23434c;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --paper: #10262e;
    --surface: #193943;
    --ink: #edf5f2;
    --route: #8accb3;
    --gold: #e5be69;
    --cloud: #b9a7dc;
    --line: #36535c;
    --muted: #b7cbcb;
    --error: #ffa9ac;
    --soft: #23434c;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.55 Atkinson,
    sans-serif;
  font-variant-numeric: tabular-nums;
}
h1,
h2,
h3,
.wordmark,
.footer-brand {
  font-family: Averia, serif;
  font-weight: 700;
  line-height: 1.12;
}
h1 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
h2 {
  font-size: 30px;
  margin: 0 0 20px;
}
h3 {
  font-size: 24px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 16px;
}
a {
  color: var(--route);
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
a,
button,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
input,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-height: 44px;
}
input,
select {
  padding: 10px 12px;
  max-width: 100%;
  min-width: 0;
}
button {
  padding: 8px 16px;
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--route);
}
:focus-visible {
  outline: 3px solid var(--route);
  outline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
[hidden] {
  display: none !important;
}
ul {
  padding-left: 22px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 48px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid var(--line);
  line-height: 1.25;
}
.primary {
  background: var(--route);
  color: var(--surface);
  border-color: var(--route);
}
html[data-theme="dark"] .primary {
  color: #10262e;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .primary {
    color: #10262e;
  }
}
.secondary {
  background: var(--surface);
  color: var(--route);
}
.small,
small {
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.error,
.errorlist {
  color: var(--error);
}
.errorlist {
  font-size: 15px;
  padding-left: 20px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: var(--surface);
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1264px;
  padding: 20px 32px;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: center;
  min-height: 96px;
}
.wordmark {
  font-size: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.wordmark-dot {
  color: var(--gold);
  margin-left: -10px;
}
.header-inner nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.header-inner nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0;
}
.login-link {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}
.user-menu {
  position: relative;
  max-width: 230px;
}
.user-menu > button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
}
.username {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu #user-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  z-index: 10;
}
.user-menu a,
.user-menu #user-panel button {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  border: 0;
  background: transparent;
}
.user-menu #user-panel a:hover,
.user-menu #user-panel button:hover {
  background: var(--soft);
}
.main-shell {
  max-width: 1264px;
  margin: auto;
  padding: 0 32px 64px;
  min-height: 60vh;
}
.hero {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 16px;
  align-items: center;
  padding: 64px 0 56px;
}
.hero h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1.04;
  margin: 0 0 28px;
}
.hero-intro {
  font-size: 20px;
  max-width: 380px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}
.atlas {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 8px 8px 28px;
  min-height: 0;
}
.atlas img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}
.atlas-links {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 8px;
}
.atlas-pin {
  position: static;
  transform: none;
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.atlas-pin strong {
  font-family: Averia;
  font-size: 23px;
}
.atlas-pin small {
  display: block;
  color: var(--muted);
  line-height: 1.2;
}
.pin-symbol {
  font-size: 28px;
  color: var(--route);
}
.atlas-pin:first-child .pin-symbol {
  color: var(--cloud);
}
.atlas-caption {
  display: block;
  margin: 8px 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: 36px;
  max-width: 470px;
  margin: 0;
}
.section-heading p {
  color: var(--muted);
  margin: 0;
}
.route-section {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.region-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.region-entry {
  padding: 24px 0 24px;
  border-top: 3px solid var(--route);
}
.region-1 {
  border-top-color: var(--cloud);
}
.region-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.region-emblem {
  font-size: 38px;
  line-height: 1;
  color: var(--route);
}
.region-1 .region-emblem {
  color: var(--cloud);
}
.region-heading h3 {
  font-size: 30px;
}
.region-heading h3 a {
  color: var(--ink);
  text-decoration: none;
}
.region-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.text-link {
  margin-left: auto;
  font-weight: 600;
}
.achievement-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
.achievement-links li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.achievement-links a {
  color: var(--ink);
  text-decoration: none;
}
.typed-link,
.typed-heading,
.typed-label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
.typed-heading {
  flex-wrap: wrap;
}
.item-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.item-type {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 600 13px/1.2 Atkinson, sans-serif;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface);
}
.item-type svg {
  flex-shrink: 0;
}
.item-type--quest {
  color: var(--route);
  border-color: color-mix(in srgb, var(--route) 30%, var(--line));
  background: color-mix(in srgb, var(--route) 7%, var(--surface));
}
.item-type--achievement {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--gold) 65%, var(--line));
  background: color-mix(in srgb, var(--gold) 18%, var(--surface));
}
.travel-demo {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  margin-top: 36px;
}
.travel-demo h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.travel-demo p {
  margin: 0;
}
.demo-sign {
  font-size: 56px;
  color: var(--route);
  flex-shrink: 0;
}
.demo-command {
  margin-left: auto;
  font-size: 16px;
  border-bottom: 2px dashed var(--gold);
  white-space: nowrap;
  padding-bottom: 8px;
}
.travel {
  border: none;
  background: transparent;
  color: var(--route);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  padding: 2px 4px;
  min-height: 44px;
  display: inline;
  white-space: nowrap;
  vertical-align: baseline;
  font-weight: 650;
  font-size: inherit;
}
.travel:hover {
  background: var(--soft);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 48px 0 32px;
}
.page-heading h1 {
  font-size: 44px;
  max-width: 700px;
  margin-bottom: 14px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
}
.catalog-count {
  white-space: nowrap;
  font-size: 15px;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 8px;
}
.region-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.region-tabs a {
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.region-tabs a[aria-current="page"] {
  background: var(--route);
  color: var(--surface);
}
html[data-theme="dark"] .region-tabs a[aria-current="page"] {
  color: #10262e;
}
.region-tabs span {
  margin-left: 8px;
  font-size: 14px;
}
.filters {
  display: flex;
  gap: 16px;
  align-items: end;
  padding: 24px 0;
}
.filters > div {
  min-width: 0;
}
.filters .search-field {
  flex: 1;
}
.filters input {
  width: 100%;
}
.filters select {
  width: 100%;
}
.filters > div:not(.search-field) {
  max-width: 280px;
}
.filters .button {
  min-height: 46px;
}
.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.quest-group {
  margin-bottom: 32px;
}
.group-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--line);
  padding: 16px 0;
}
.group-heading h2 {
  font-size: 26px;
  margin: 0;
}
.group-ratio {
  white-space: nowrap;
  color: var(--muted);
  font-size: 15px;
}
.quest-rows {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quest-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  min-height: 92px;
}
.quest-title {
  flex: 1;
  min-width: 0;
}
.quest-title > a {
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.quest-title small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.guide-link {
  font-size: 15px;
  white-space: nowrap;
}
.follow-link {
  font-size: 14px;
  color: var(--muted);
  max-width: 150px;
}
.empty-state {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 24px;
  margin: 32px 0;
}
.empty-state h1,
.empty-state h2 {
  max-width: 700px;
  margin: 0 auto 16px;
}
.pagination {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 24px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.guide-heading {
  padding: 32px 0 24px;
  max-width: 860px;
}
.guide-heading h1 {
  font-size: 44px;
  margin: 0;
}
.region-label {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 15px;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 64px;
  align-items: start;
}
.before-departure {
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.before-departure h2 {
  font-size: 26px;
}
.before-departure h3 {
  font: 600 17px Atkinson;
  margin: 24px 0 8px;
}
.before-departure ul {
  margin: 0;
  font-size: 16px;
}
.before-departure li {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.launch span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.launch strong {
  display: block;
  font-size: 19px;
}
.launch small {
  display: block;
  color: var(--muted);
}
.steps-section {
  padding: 36px 0;
}
.steps-section h2 {
  font-size: 30px;
}
.guide-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.guide-steps > li {
  position: relative;
  counter-increment: step;
  padding: 24px 16px 24px 64px;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.guide-steps > li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  color: var(--route);
  font-weight: 600;
  font-size: 15px;
}
.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}
.step-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}
.step-action svg {
  flex: none;
  width: 20px;
  height: 20px;
}
.step-action--dialogue {
  color: var(--ink);
}
.step-action--dialogue svg {
  color: var(--cloud);
}
.step-action--travel {
  color: var(--route);
}
.step-action--combat svg {
  color: var(--ink);
}
.step-action--tactical-combat,
.step-action--difficult-combat {
  color: var(--error);
  font-weight: 750;
}
.step-action--dungeon {
  color: var(--ink);
  font-weight: 750;
}
.step-action--dungeon svg {
  color: var(--cloud);
}
.step-instruction {
  margin: 0;
}
.combat-details {
  margin-top: 18px;
}
.combat-details section + section {
  margin-top: 18px;
}
.combat-details h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.combat-details ul {
  margin: 0;
  padding-inline-start: 20px;
}
.combat-details li + li {
  margin-top: 8px;
}
.dungeon-source {
  margin: 14px 0 0;
  font-size: 14px;
}
.guide-steps > .guide-step--combat,
.guide-steps > .guide-step--dungeon,
.guide-steps > .guide-step--critical {
  margin: 14px 0;
  padding-left: 72px;
  padding-right: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.guide-steps > .guide-step--combat {
  border-inline-start: 3px solid var(--gold);
}
.guide-steps > .guide-step--dungeon {
  border-inline-start: 3px solid var(--cloud);
  background: color-mix(in srgb, var(--cloud) 5%, var(--surface));
}
.guide-steps > .guide-step--critical {
  border-color: color-mix(in srgb, var(--error) 45%, var(--line));
  border-inline-start: 5px solid var(--error);
  background: color-mix(in srgb, var(--error) 5%, var(--surface));
}
.guide-step--critical .step-instruction {
  font-weight: 600;
}
.guide-steps > .guide-step--combat:before,
.guide-steps > .guide-step--dungeon:before,
.guide-steps > .guide-step--critical:before {
  left: 18px;
}
.guide-steps > .guide-step--critical:before {
  border-color: var(--error);
  color: var(--error);
}
.guide-map {
  margin: 16px 0 0;
  padding: 12px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.guide-map__scroll {
  max-width: 100%;
  overflow-x: auto;
}
.guide-map__scroll:focus-visible {
  outline: 2px solid var(--route);
  outline-offset: 4px;
}
.guide-map__drawing {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
  color: var(--route);
  fill: none;
  font-family: Atkinson, sans-serif;
}
.guide-map--wabbit-chemin-court .guide-map__drawing {
  min-width: 340px;
  max-width: 340px;
  margin-inline: auto;
}
.map-route,
.map-gate {
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-cell,
.map-platforms {
  fill: var(--soft);
  stroke: currentColor;
  stroke-width: 1.5;
}
.map-platform-unused {
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.map-selection {
  stroke: currentColor;
  stroke-width: 2;
}
.map-number,
.map-label {
  fill: var(--ink);
  stroke: none;
  font-size: 16px;
  text-anchor: middle;
}
.map-number {
  font-weight: 700;
}
.guide-map figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.guide-aside {
  font-size: 15px;
  padding-top: 8px;
}
.guide-aside h2 {
  font: 600 17px Atkinson;
  margin-bottom: 16px;
}
.guide-aside ul {
  padding-left: 18px;
}
.guide-aside li {
  margin: 10px 0;
}
.guide-aside section,
.guide-state {
  margin-bottom: 32px;
}
.guide-state {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.guide-state p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}
.source-note {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  overflow-wrap: anywhere;
}
.source-note p {
  margin-bottom: 8px;
}
.class-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 32px;
}
.class-picker label {
  margin: 0;
}
.class-picker .error {
  flex-basis: 100%;
}
.egg-shelf {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 24px;
}
.egg-entry {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 12px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.egg-entry h2 {
  font: 600 18px Atkinson;
  margin: 12px 0;
  min-height: 48px;
}
.egg-entry p {
  font-size: 14px;
  margin-top: 16px;
}
.egg-entry a {
  font-size: 14px;
}
.egg-entry .external-reference {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.quest-route {
  border-top: 3px solid var(--gold);
  background: var(--soft);
  border-radius: 20px;
}
.quest-route-links {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  line-height: 1.3;
}
.egg {
  height: 108px;
  width: 86px;
  color: var(--route);
  flex-shrink: 0;
}
.egg-body {
  fill: var(--soft);
  stroke: currentColor;
  stroke-width: 2;
}
.egg-mark {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 1.5;
}
.egg-detail,
.egg-light {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}
.egg-light {
  stroke: var(--surface);
  stroke-width: 4;
}
.egg-1,
.egg-6,
.egg-11,
.egg-16,
.egg-21,
.egg-26 {
  color: var(--gold);
}
.egg-2,
.egg-7,
.egg-12,
.egg-17,
.egg-22,
.egg-27 {
  color: var(--cloud);
}
.egg.obtained .egg-body {
  fill: var(--route);
  stroke: var(--ink);
}
.prose {
  max-width: 760px;
  margin: 48px auto;
}
.prose h1 {
  margin-bottom: 40px;
}
.prose h2 {
  font-size: 26px;
  margin: 32px 0 16px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px max(32px, calc((100vw - 1200px) / 2));
  display: flex;
  gap: 32px;
  align-items: start;
  font-size: 13px;
  color: var(--muted);
}
.site-footer p {
  flex: 1;
  margin: 0;
  max-width: 780px;
}
.footer-brand {
  font-size: 24px;
  text-decoration: none;
  color: var(--ink);
}
.site-footer > a:last-child {
  white-space: nowrap;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  z-index: 50;
  font-size: 15px;
  pointer-events: none;
}
.toast:not(:empty) {
  padding: 12px 20px;
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 520px;
}
dialog::backdrop {
  background: rgb(0 0 0/0.4);
}
dialog input {
  width: 100%;
  margin: 8px 0 24px;
}
dialog h2 {
  font-size: 26px;
}
.messages {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--soft);
  border-left: 3px solid var(--route);
}
.messages p {
  margin: 0;
}
.auth-shell {
  max-width: 480px;
  margin: 48px auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.auth-shell h1 {
  font-size: 36px;
}
.auth-shell form > p {
  margin: 18px 0;
}
.auth-shell input:not([type="checkbox"]) {
  width: 100%;
}
.auth-shell label:has(input[type="checkbox"]) {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
}
.auth-shell .helptext {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.auth-shell form ul:not(.errorlist) {
  font-size: 13px;
  color: var(--muted);
}
.auth-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.auth-shell button {
  margin-top: 12px;
}
.progress-form {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  max-width: 240px;
}
.progress-form label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-size: 14px;
  cursor: pointer;
}
.save-state {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.progress-form button {
  font-size: 13px;
  padding: 6px 10px;
}
.progress-form .progress-error {
  color: var(--error);
  flex-basis: 100%;
  overflow-wrap: anywhere;
}
.progress-form.enhanced {
  flex-wrap: wrap;
}
.progress-form.enhanced > .save-button {
  display: none;
}
.guide-state .progress-form {
  max-width: none;
}
.progress-form[data-kind="milestone"] {
  max-width: none;
  flex-wrap: wrap;
  margin-top: 12px;
}
.progress-form input[type="checkbox"] {
  flex-shrink: 0;
}
.progress-bar {
  height: 10px;
  border-radius: 10px;
  background: var(--line);
  overflow: hidden;
  margin: 16px 0;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--route);
}
.global-progress {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  max-width: 900px;
}
.global-progress h1 {
  font-size: 44px;
}
.progress-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.progress-number {
  font-family: Averia;
  font-size: 42px;
}
.progress-percent {
  font-size: 26px;
}
.dashboard-regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 40px 0;
}
.region-progress h2 {
  font-size: 32px;
}
.region-progress header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.region-metrics {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-variant-numeric: tabular-nums;
}
.region-percent {
  font-weight: 600;
}
.region-progress ul {
  list-style: none;
  padding: 0;
}
.region-progress li {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 15px;
}
.next-quests {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.available-zone {
  margin-top: 28px;
}
.available-zone h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.available-zone .quest-title details {
  margin-top: 8px;
  font-size: 14px;
}
.progress-badge {
  font-size: 13px;
  color: var(--route);
  white-space: nowrap;
}
.dofus-band {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  margin: 24px 0;
  background: var(--surface);
}
.dofus-band header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.dofus-band h2 {
  margin-bottom: 12px;
}
.mini-eggs {
  display: flex;
  gap: 16px;
  overflow: auto;
  align-items: end;
  padding: 16px 0;
}
.mini-eggs > div {
  min-width: 96px;
  text-align: center;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-eggs .egg {
  height: 70px;
  width: 60px;
}
.recent-list {
  list-style: none;
  padding: 0;
  max-width: 760px;
}
.recent-list li {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.recent-list time {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
}
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-nav a {
  padding: 8px 0;
}
.settings-section {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.settings-section:first-child {
  border-top: 0;
}
.settings-section h2 {
  font-size: 28px;
}
.settings-section form {
  max-width: 520px;
}
.settings-section input:not([type="checkbox"]),
.settings-section select {
  width: 100%;
  margin-bottom: 20px;
}
.settings-section input[type="checkbox"] {
  margin-right: 10px;
}
.settings-section .check-label {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-weight: 400;
}
.settings-section .danger {
  color: var(--error);
  border-color: var(--error);
}
.settings-section form:has(.danger) {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.data-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dialog-trigger {
  margin-top: 16px;
}
.confirm-fallback {
  margin-top: 24px;
}
@media (min-width: 901px) {
  .user-menu #user-panel,
  dialog[open] {
    transition:
      opacity 150ms,
      transform 150ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1100px) {
  .header-inner {
    gap: 24px;
  }
  .header-inner nav {
    gap: 20px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: start;
  }
  .guide-layout {
    gap: 32px;
  }
  .egg-shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .filters > div:not(.search-field) {
    max-width: 230px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 16px 24px;
    gap: 16px;
  }
  .header-inner nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .header-inner .login-link,
  .header-inner .user-menu {
    margin-left: auto;
  }
  .main-shell {
    padding: 0 24px 48px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0;
    gap: 32px;
  }
  .hero-copy {
    max-width: 600px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-intro {
    max-width: 520px;
  }
  .hero-actions {
    flex-direction: row;
  }
  .region-spread {
    gap: 32px;
  }
  .achievement-links {
    grid-template-columns: 1fr;
  }
  .travel-demo {
    gap: 20px;
  }
  .demo-command {
    display: none;
  }
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-aside {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
  }
  .guide-state {
    border-bottom: 0;
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
  }
  .guide-aside section {
    margin: 0;
    flex: 1;
  }
  .guide-aside > a {
    flex-basis: 100%;
  }
  .guide-heading h1 {
    font-size: 38px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters .search-field {
    flex-basis: 100%;
  }
  .filters > div:not(.search-field) {
    flex: 1;
    max-width: none;
  }
  .quest-row {
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 12px;
  }
  .quest-title {
    flex-basis: 60%;
  }
  .follow-link {
    max-width: none;
  }
  .page-heading h1 {
    font-size: 38px;
  }
  .catalog-count {
    white-space: normal;
  }
  .egg-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer {
    flex-wrap: wrap;
    padding: 24px;
  }
  .site-footer p {
    flex-basis: 70%;
  }
  .dashboard-regions {
    gap: 32px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .settings-nav a {
    font-size: 15px;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .header-inner {
    padding: 12px 20px;
    gap: 12px;
  }
  .wordmark {
    font-size: 28px;
  }
  .header-inner nav {
    gap: 16px;
    font-size: 14px;
  }
  .login-link {
    font-size: 14px;
    padding: 8px 12px;
  }
  .user-menu {
    max-width: 155px;
  }
  .main-shell {
    padding: 0 20px 40px;
  }
  .hero h1 {
    font-size: 40px;
    margin-bottom: 24px;
  }
  .hero-intro {
    font-size: 18px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-note {
    margin-top: 20px;
  }
  .atlas {
    padding: 0 0 32px;
  }
  .atlas-links {
    grid-template-columns: minmax(0, 1fr);
  }
  .atlas-pin {
    padding: 10px 12px;
    gap: 8px;
  }
  .atlas-pin strong {
    font-size: 21px;
  }
  .atlas-pin small {
    font-size: 12px;
  }
  .pin-symbol {
    font-size: 22px;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    font-size: 30px;
    margin-bottom: 16px;
  }
  .section-heading p br {
    display: none;
  }
  .region-spread {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .region-heading {
    margin-bottom: 16px;
  }
  .achievement-links {
    grid-template-columns: 1fr;
  }
  .travel-demo {
    padding: 24px;
    display: block;
  }
  .demo-sign {
    font-size: 40px;
    margin-bottom: 12px;
  }
  .travel-demo h2 {
    font-size: 25px;
  }
  .travel-demo p br {
    display: none;
  }
  .page-heading {
    display: block;
    padding-top: 32px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .catalog-count {
    display: inline-block;
    margin-top: 20px;
  }
  .region-tabs a {
    padding: 10px 16px;
  }
  .filters > div:not(.search-field) {
    flex-basis: 100%;
  }
  .filters > .button {
    width: 100%;
  }
  .group-heading {
    align-items: start;
    gap: 12px;
  }
  .group-heading h2 {
    font-size: 23px;
  }
  .group-ratio {
    font-size: 13px;
    padding-top: 3px;
  }
  .quest-row {
    padding: 18px 0;
  }
  .quest-title {
    flex-basis: 100%;
  }
  .quest-title > a {
    font-size: 18px;
  }
  .guide-link {
    margin-right: auto;
  }
  .guide-heading h1 {
    font-size: 34px;
    overflow-wrap: anywhere;
  }
  .breadcrumb {
    font-size: 13px;
  }
  .before-departure {
    padding: 24px;
  }
  .guide-steps > li {
    padding-left: 48px;
    padding-right: 0;
  }
  .guide-steps > li:before {
    width: 30px;
    height: 30px;
  }
  .guide-steps > .guide-step--combat,
  .guide-steps > .guide-step--dungeon,
  .guide-steps > .guide-step--critical {
    padding-left: 54px;
    padding-right: 16px;
  }
  .guide-steps > .guide-step--combat:before,
  .guide-steps > .guide-step--dungeon:before,
  .guide-steps > .guide-step--critical:before {
    left: 10px;
  }
  .class-picker select {
    flex: 1;
    min-width: 180px;
  }
  .class-picker .button {
    width: 100%;
  }
  .guide-aside {
    gap: 16px;
  }
  .guide-aside h2 {
    font-size: 16px;
  }
  .egg-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  .egg-entry {
    padding: 24px 4px;
  }
  .egg-entry h2 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .site-footer {
    display: block;
    padding: 24px 20px;
  }
  .site-footer p {
    margin: 16px 0;
  }
  .auth-shell {
    margin: 32px 0;
    padding: 24px;
  }
  .auth-shell h1 {
    font-size: 32px;
  }
  .global-progress {
    padding-top: 32px;
  }
  .global-progress h1 {
    font-size: 36px;
  }
  .progress-number {
    font-size: 34px;
  }
  .progress-percent {
    font-size: 22px;
  }
  .dashboard-regions {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px 0;
  }
  .dofus-band {
    padding: 24px;
  }
  .dofus-band header {
    display: block;
  }
  .recent-list li {
    flex-wrap: wrap;
    gap: 4px;
  }
  .recent-list time {
    flex-basis: 100%;
  }
  .settings-nav {
    gap: 12px;
  }
  .settings-section form:has(.danger) {
    padding: 16px;
  }
  .progress-form {
    max-width: none;
  }
  .prose {
    margin-top: 32px;
  }
}
