﻿:root {
  color-scheme: dark;
  --bg: #141210;
  --ink: #f3ead8;
  --muted: #bcad99;
  --gold: #e6bd84;
  --gold-dark: #302316;
  --line: #41362b;
  --panel: #211b17;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --width: 1312px;
  font: 16px/1.53 var(--sans);
  color: var(--ink);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 290px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 9%, #2b2118 0%, transparent 60%),
    var(--bg);
}

button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #ffcf8f; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[id] { scroll-margin-top: 1.35rem; }

.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: .7rem 1rem;
  color: #1b150f;
  background: var(--gold);
}

.section-wrap, .site-header, .site-footer {
  width: min(calc(100% - 6vw), var(--width));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  gap: 1.25rem;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  font: 400 1.45rem/1 var(--serif);
  font-variant: small-caps;
  letter-spacing: .095em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 1.72rem;
  height: 1.72rem;
  flex: none;
  border: 1px solid #a87d4d;
  color: var(--gold);
  font-size: 1.23rem;
  line-height: 1;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #312318;
}

.site-nav {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.25;
}

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem clamp(.85rem, 2.8vw, 2.2rem); }
.site-nav a:hover, .site-nav a[aria-current], .wordmark:hover { color: var(--gold); }
.site-nav .account-link { color: var(--gold); font-weight: 650; }
.site-nav .account-link[aria-current] { text-decoration: underline; text-underline-offset: .36rem; }

.prototype {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem .66rem;
  border: 1px solid #48392a;
  color: #ddc5a6;
  font-size: .78rem;
  letter-spacing: .065em;
}

.prototype i { width: .44rem; height: .44rem; background: #cb985e; transform: rotate(45deg); }

.hero {
  --hero-position: center 10%;
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 6vw), 1440px);
  min-height: clamp(470px, 45vw, 590px);
  display: grid;
  place-items: center start;
  margin-inline: auto;
  padding: 3.5rem clamp(1.6rem, 7vw, 6.65rem) 4.05rem;
  overflow: hidden;
  text-align: left;
  border: 1px solid #503c2d;
  background:
    linear-gradient(90deg, #140f0bb9 5%, #140f0b46 47%, #140f0b0d 77%, #140f0b28 100%),
    linear-gradient(0deg, #151210 1%, #16120d60 24%, #17110c12 69%, #1b15114a),
    url('/assets/thalerya.webp') var(--hero-position) / cover,
    #33241a;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: .82rem;
  border: 1px solid #d5ab7540;
  clip-path: polygon(0 0, 11% 0, 11% 1px, 89% 1px, 89% 0, 100% 0, 100% 100%, 89% 100%, 89% calc(100% - 1px), 11% calc(100% - 1px), 11% 100%, 0 100%);
}

.hero-inner { max-width: 760px; }
.heading-mark, .hero-index { color: var(--gold); display: flex; justify-content: center; align-items: center; gap: .94rem; }
.heading-mark { justify-content: flex-start; margin-bottom: 1.25rem; }
.heading-mark i { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, #ddae6b); }
.heading-mark i:last-child { transform: scaleX(-1); }
.hero-index { position: absolute; bottom: 1.5rem; right: 2rem; opacity: .63; font-size: .63rem; }
.hero-index i { width: 13px; height: 1px; background: #a9865d; }

.hero h1 {
  font-size: clamp(3.35rem, 8.3vw, 7.6rem);
  line-height: .90;
  letter-spacing: -.062em;
  text-wrap: balance;
  text-shadow: 0 9px 45px #100a07bf, 0 2px 6px #100a07;
}

.hero h1 em {
  display: block;
  color: #f1d5ac;
  font-size: .78em;
  font-weight: 400;
  margin-top: .11em;
  letter-spacing: -.058em;
}

.hero p {
  max-width: 41ch;
  margin: 1.35rem 0 0;
  color: #f1dfca;
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-shadow: 0 2px 7px #130e0b, 0 0 15px #130e0b;
}

.hero-actions { margin-top: 1.55rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid transparent;
  padding: .65rem 1.2rem;
  font-weight: 650;
  text-align: center;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}

.button-primary {
  background: #e4ba80;
  color: #241a10;
  border-color: #f0c98e;
  box-shadow: inset 0 0 0 2px #5e392738;
}

.button-primary:hover:not(:disabled) { background: #f8d7a4; }
.button-primary:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { opacity: .52; cursor: default; }

.factions { padding-block: clamp(2.6rem, 5.2vw, 4.8rem); }
.section-title { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.35rem; }
.section-title h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.04em; }
.section-title > i { flex: 1; background: linear-gradient(90deg, #8b6947, #a2794914); height: 1px; }

.faction-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.85rem, 1.8vw, 1.4rem); }

.faction {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #211b17;
  border: 1px solid color-mix(in srgb, var(--city), #1a1713 69%);
  box-shadow: 0 .45rem 1.2rem #100d0b72;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.faction:hover {
  border-color: color-mix(in srgb, var(--city), #272019 37%);
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.3rem #0a080695;
}

.banner-art {
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--city), #141010 80%), #161310 72%);
}

.banner-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.faction .banner-art { position: relative; width: 100%; aspect-ratio: 1.1; }
.faction .banner-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #211b17 0%, transparent 17%, transparent 80%, #15120f40 100%);
  pointer-events: none;
}

.faction .banner-art img {
  position: absolute;
  height: 100%;
  transform: scale(1.055);
  transition: transform .24s;
}

.faction:hover .banner-art img { transform: scale(1.096); }
.faction-text { display: flex; flex: 1; flex-direction: column; padding: 0 clamp(1rem, 1.8vw, 1.4rem) 1.22rem; }
.faction h3 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); letter-spacing: -.04em; overflow-wrap: anywhere; }

.city-title {
  color: color-mix(in srgb, var(--city, var(--gold)), #fff0da 48%);
  font-size: .875rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 650;
}

.faction .city-title { margin-top: .35rem; }
.city-copy { flex: 1; margin: .75rem 0 1.02rem; color: var(--muted); font-size: .94rem; }

.city-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  min-height: 44px;
  width: 100%;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--city), #332922 75%);
  padding: .57rem 0 0;
  background: transparent;
  color: #f0d7b4;
  text-align: left;
  font-weight: 650;
}
.city-link span { color: color-mix(in srgb, var(--city), #fff0da 45%); }
.city-link:hover { color: #fff3da; }

.site-footer {
  min-height: 78px;
  display: flex;
  gap: .55rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #c3ae94;
  font: .95rem var(--serif);
  letter-spacing: .11em;
  font-variant: small-caps;
}
.footer-brand { display: flex; gap: .55rem; align-items: center; }
.footer-mark { color: var(--gold); font-size: .78rem; }
.site-footer > a { font: .875rem var(--sans); font-variant: normal; letter-spacing: 0; }
.site-footer > a:hover { color: var(--gold); }

.characters, .creation { min-height: 65vh; padding-bottom: clamp(2.5rem, 5vw, 4.2rem); }
.characters-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: clamp(14.5rem, 28vw, 23rem);
  gap: 1.15rem;
  border: 1px solid #765638;
  padding: clamp(1.45rem, 5vw, 4.2rem);
  background:
    linear-gradient(90deg, #1a130df2 13%, #1a130daa 57%, #1a130d4d 100%),
    linear-gradient(0deg, #1a130dd6, transparent 80%),
    url('/assets/thalerya.webp') center 37% / cover,
    #302219;
}
.characters-hero h1 { font-size: clamp(2.45rem, 6.7vw, 5.2rem); letter-spacing: -.05em; }
.characters-hero p { margin-top: .63rem; color: #e8d6bf; }
.characters-actions { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; }
.account-signout { display: inline-flex; align-items: center; min-height: 44px; color: #f0dfc8; font-size: .9rem; text-decoration: underline; text-underline-offset: .23rem; }
.account-signout:hover { color: var(--gold); }
.character-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .9rem; list-style: none; margin: 1.15rem 0 0; padding: 0; }
.character-card {
  display: grid;
  grid-template-columns: clamp(4.5rem, 8vw, 6.4rem) minmax(0, 1fr);
  gap: .7rem .95rem;
  min-height: 10rem;
  padding: .8rem;
  border: 1px solid color-mix(in srgb, var(--city), #3b2b21 68%);
  background: linear-gradient(120deg, color-mix(in srgb, var(--city), #221b16 82%), #211b17 78%);
}
.character-card[data-character-active] { border-color: color-mix(in srgb, var(--city), #d7ad78 53%); }
.character-card .character-card-art { grid-row: span 2; align-self: stretch; }
.character-card-copy { align-self: center; min-width: 0; }
.character-card-copy h2 { margin: .2rem 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.character-card-copy p:last-child { color: #d3c4ae; font-size: .88rem; }
.character-card-actions { grid-column: 2; align-self: end; display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.character-button { color: #f5deba; border-color: #785b3e; background: #39291d; font-size: .9rem; }
.character-button:hover:not(:disabled) { border-color: #d2a872; background: #4a3524; }
.character-active { color: #f2c689; font-size: .82rem; font-weight: 650; }
.creation { padding-top: 1rem; }
.creation-factions { margin-top: .95rem; }
.creation .section-title h1 { font-size: clamp(2.25rem, 5vw, 3.8rem); letter-spacing: -.045em; }
.enlist-links { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.15rem; }

.enlist { padding-block: 1.2rem 3.5rem; }
.subtle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 0;
  background: none;
  color: var(--muted);
  padding: .1rem;
}
.subtle:hover { color: var(--gold); }
.back { margin-bottom: 1.05rem; }
.back::before { content: '‹'; margin-right: .55rem; font-size: 1.5rem; color: var(--gold); line-height: 1; }

.enlist-grid {
  display: grid;
  grid-template-columns: minmax(230px, .34fr) minmax(0, 1fr);
  border: 1px solid color-mix(in srgb, var(--city), #221c17 67%);
  background: #1c1814;
}

.oath { align-self: stretch; background: #211a15; border-right: 1px solid var(--line); }
.oath-art { width: 100%; aspect-ratio: .84; }
.oath-art img { width: 98%; height: 100%; }
.oath > div { padding: .8rem 1.55rem 1.6rem; }
.oath h2 { margin: .4rem 0 .7rem; font-size: clamp(2rem, 4.5vw, 3rem); overflow-wrap: anywhere; }
.oath p:not(.city-title) { color: var(--muted); }

.enlist-body {
  padding: clamp(1.3rem, 4vw, 3.8rem);
  background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--city), transparent 89%), transparent 58%);
}
.enlist-body h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); letter-spacing: -.055em; }
.enlist-body > p { margin: .65rem 0 1.35rem; color: var(--muted); }
.enlist-body fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.role { position: relative; display: flex; min-width: 0; cursor: pointer; }
.role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-card {
  display: flex;
  flex: 1;
  gap: .7rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #4a3b2d;
  background: #29211b;
  transition: background-color .17s, border-color .17s;
}
.role-card:hover { border-color: #a3845d; }
.role input:checked + .role-card { border-color: var(--gold); background: #3a2c20; box-shadow: inset 0 0 0 1px #d5ad7252; }
.role input:focus-visible + .role-card { outline: 2px solid #ffcf8f; outline-offset: 3px; }
.role-icon { display: inline-grid; place-items: center; font-size: 1.35rem; color: var(--gold); width: 1.6rem; flex: 0 0 1.6rem; }
.role strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.22rem; line-height: 1.2; margin-bottom: .2rem; }
.role small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.42; }

.citizen-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  margin-top: 1.5rem;
  gap: .85rem;
}
.citizen-fields label { display: grid; gap: .37rem; color: #e2d5c3; }
.citizen-fields input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #65513b;
  border-radius: 0;
  padding: .65rem .82rem;
  color: var(--ink);
  background: #171410;
}
.citizen-fields input::placeholder { color: #a69a87; }

.dashboard { padding-bottom: 3rem; }
.city-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(5rem, 8.4rem) minmax(0, 1fr) max-content;
  align-items: center;
  min-height: 210px;
  gap: clamp(.75rem, 2.7vw, 2.35rem);
  overflow: hidden;
  padding: 1rem clamp(1rem, 3.7vw, 3.2rem);
  border: 1px solid color-mix(in srgb, var(--city), #221b15 48%);
  background: linear-gradient(90deg, #17120eed, #17120eac 63%, #17120ede),
    url('/assets/thalerya.webp') center 42% / cover, #221b15;
}
.city-hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 25% 35%, color-mix(in srgb, var(--city), transparent 74%), transparent 65%); }
.city-hero-art { min-height: 125px; aspect-ratio: .84; border: 1px solid #57412f; align-self: center; }
.city-hero-art img { width: 100%; height: 100%; }
.city-hero[data-appearance="gold"] { --trim: #d3a153; --trim-dark: #4b2f19; --plate: #2f1e13dc; --title-ink: #ffe2aa; }
.city-hero[data-appearance="silver"] { --trim: #bac6d8; --trim-dark: #3a4456; --plate: #1d2732e8; --title-ink: #eef4ff; }
.city-hero[data-appearance="gold"] .city-hero-art, .city-hero[data-appearance="silver"] .city-hero-art {
  border: 3px double var(--trim);
  box-shadow: 0 0 0 2px var(--trim-dark), 0 0 0 3px var(--trim);
}
.city-hero[data-appearance="gold"] .city-hero-info, .city-hero[data-appearance="silver"] .city-hero-info {
  position: relative;
  isolation: isolate;
}
.city-hero[data-appearance="gold"] .city-hero-info::before, .city-hero[data-appearance="silver"] .city-hero-info::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -.48rem;
  border: 1px solid var(--trim);
  background:
    radial-gradient(circle at 5px 5px, var(--trim) 1px, transparent 2px),
    radial-gradient(circle at calc(100% - 5px) 5px, var(--trim) 1px, transparent 2px),
    radial-gradient(circle at 5px calc(100% - 5px), var(--trim) 1px, transparent 2px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), var(--trim) 1px, transparent 2px),
    linear-gradient(110deg, var(--plate), #181510d9);
  box-shadow: inset 0 0 0 3px var(--trim-dark);
}
.city-hero[data-appearance="gold"] .city-hero-info::before { border-radius: 9px 2px; }
.city-hero[data-appearance="silver"] .city-hero-info::before { border-radius: 2px 14px; }
.city-hero[data-appearance] .city-hero-info h1 { color: var(--title-ink, var(--ink)); }
.city-hero h1 {
  margin: .16rem 0 .4rem;
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  letter-spacing: -.057em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.character-line { display: flex; flex-wrap: wrap; gap: .1rem .47rem; color: #ddcdb8; }
.character-line strong { overflow-wrap: anywhere; }
.character-line span { color: var(--gold); }
.city-hero-stats { display: flex; flex-wrap: wrap; gap: 1.05rem; color: #f2dfbf; }
.city-hero-stats div { border-left: 1px solid #8e6e44; padding-left: .86rem; }
.city-hero-stats dt { color: #d3bfa4; font-size: .875rem; white-space: nowrap; }
.city-hero-stats dd { font: 1.62rem var(--serif); white-space: nowrap; }
.city-hero-stats dd span, .city-hero-stats small { color: var(--gold); font: .85rem var(--sans); }

.mantle-quest {
  --mantle-line: #5a5868;
  --mantle-muted: #c9c4c0;
  margin-top: clamp(.85rem, 1.8vw, 1.35rem);
  border: 1px solid var(--mantle-line);
  background: #1d1c22;
}
.mantle-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  min-height: 158px;
  padding: clamp(1.05rem, 3.1vw, 2.25rem);
  border-bottom: 1px solid var(--mantle-line);
  background:
    linear-gradient(90deg, #171821 2%, #171821f2 38%, #1b1b2659 80%),
    linear-gradient(0deg, #18171cbf, transparent 70%),
    url('/assets/manteau-du-depart.webp') right 48% / cover,
    #252533;
}
.mantle-hero > div:first-child { max-width: 39rem; }
.mantle-hero h2 { font-size: clamp(2.05rem, 4vw, 3.25rem); letter-spacing: -.042em; }
.mantle-description { margin-top: .55rem; color: #ede5d7; text-shadow: 0 1px 3px #151319; }
.mantle-hero .mantle-npc { padding: .5rem .72rem; border: 1px solid #9c8061; background: #22202ced; }
.mantle-hero .mantle-npc > span { border-color: #9c8061; }
.mantle-board { display: grid; gap: .85rem; padding: clamp(.9rem, 2.4vw, 1.5rem); }
.mantle-choices { min-width: 0; padding: 0; margin: 0; border: 0; }
.mantle-choices legend { padding: 0; color: #f7e9d5; font: clamp(1.3rem, 2.3vw, 1.62rem) var(--serif); }
.mantle-choices > p { margin: .25rem 0 .65rem; color: var(--mantle-muted); }
.mantle-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.mantle-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .58rem;
  padding: .8rem .85rem;
  border: 1px solid var(--mantle-line);
  background: linear-gradient(122deg, #2b2b3a, #252329 75%);
  cursor: pointer;
}
.mantle-option:hover, .mantle-option:has(input:checked) { border-color: #c7a375; background: linear-gradient(122deg, #393245, #302a2c 75%); }
.mantle-option input { width: 1rem; height: 1rem; margin: .18rem 0 0; accent-color: var(--gold); }
.mantle-option > span { display: grid; gap: .26rem; }
.mantle-option strong { color: #f3e7d2; font: 1.2rem/1.26 var(--serif); }
.mantle-option span span { color: var(--mantle-muted); font-size: .925rem; }
.mantle-option small { margin-top: .13rem; color: #e2bd91; font-size: .82rem; }
.mantle-button { justify-self: start; color: #ffe6c4; border-color: #9a7a5a; background: #3a2f31; }
.mantle-button:hover:not(:disabled) { color: #fff1d9; border-color: #dfb68a; background: #534044; }
.mantle-summary { color: var(--mantle-muted); }
.mantle-summary strong { color: #f0d7b4; }
.mantle-job { margin: 0; background: #2a2934; border-color: var(--mantle-line); }
.mantle-job [data-mantle-job-countdown] { color: #f2d1a2; font-size: .875rem; text-align: right; }
.mantle-phase {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem 1.25rem;
  flex-wrap: wrap;
  padding: clamp(.85rem, 2vw, 1.2rem);
  border: 1px solid var(--mantle-line);
  background: linear-gradient(115deg, #2b2a34, #232127 73%);
}
.mantle-phase > div:first-child { flex: 1 1 25rem; }
.mantle-phase h3 { font-size: clamp(1.35rem, 2.4vw, 1.72rem); }
.mantle-phase p:not(.section-tag) { margin-top: .36rem; color: var(--mantle-muted); }
.mantle-end { border-color: #967952; background: linear-gradient(118deg, #352c2c, #29232b 70%); }
.mantle-return { flex: 0 0 auto; display: grid; min-width: 8.5rem; gap: .15rem; color: var(--mantle-muted); font-size: .875rem; }
.mantle-return strong { color: #ffe3b9; font: 1.4rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.mantle-contribution { color: #e9c897; font-size: .875rem; }

.rain-event {
  --rain-line: #5a4940;
  --rain-muted: #c9bcaa;
  --rain-art: url('/assets/porte-des-pluies.webp');
  --rain-shade: #14191d;
  margin-top: clamp(.85rem, 1.8vw, 1.35rem);
  border: 1px solid #6c5447;
  background: #211b18;
}
.rain-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 1rem 2rem;
  min-height: 172px;
  padding: clamp(1.05rem, 3.1vw, 2.25rem);
  border-bottom: 1px solid #79604d;
  background:
    linear-gradient(90deg, var(--rain-shade) 1%, color-mix(in srgb, var(--rain-shade) 84%, transparent) 39%, color-mix(in srgb, var(--rain-shade) 32%, transparent) 73%),
    linear-gradient(0deg, #201912b0, transparent 70%),
    var(--rain-art) right 48% / cover,
    var(--rain-shade);
}
.rain-event[data-city-event-mode="cooperative"] {
  --rain-art: url('/assets/banquet-de-la-couronne.webp');
  --rain-shade: #211710;
}
.rain-event[data-city-event-mode="investigation"] {
  --rain-art: url('/assets/registres-egares.webp');
  --rain-shade: #111f1c;
  --rain-line: #526954;
  --rain-muted: #ccd7c5;
}
.rain-event[data-city-event-mode="ritual"] {
  --rain-art: url('/assets/nuit-des-lanternes.webp');
  --rain-shade: #181629;
  --rain-line: #5c506c;
  --rain-muted: #d3cadf;
}
.rain-hero h2 { font-size: clamp(2.15rem, 4.65vw, 4rem); letter-spacing: -.045em; }
.rain-hero p:last-child { max-width: 39rem; margin-top: .55rem; color: #eadcc9; text-shadow: 0 1px 3px #151310; }
.rain-deadline {
  display: grid;
  align-content: center;
  gap: .12rem;
  min-width: 10.1rem;
  padding: .62rem .85rem;
  border: 1px solid #b38d65;
  background: #201912ed;
  font-variant-numeric: tabular-nums;
}
.rain-deadline > span, .rain-deadline time { color: #e4d1ba; font-size: .875rem; }
.rain-deadline strong { color: #ffe0ad; font: 1.62rem/1.2 var(--serif); }
.rain-board { display: grid; gap: .82rem; padding: clamp(.85rem, 2.4vw, 1.5rem); }
.rain-mission { display: grid; gap: .75rem; min-width: 0; }
.rain-mission-copy { display: flex; align-items: center; gap: .8rem; }
.rain-mission .panel-icon { flex: 0 0 2.65rem; }
.rain-mission .section-tag { margin-bottom: .14rem; }
.rain-mission h3, .rain-objective h3 { font-size: clamp(1.24rem, 2.25vw, 1.58rem); }
.rain-mission-copy div > p:last-child { color: var(--rain-muted); margin-top: .24rem; }
.rain-duration {
  flex: none;
  align-self: flex-start;
  margin-left: auto;
  border: 1px solid var(--rain-line);
  padding: .2rem .54rem;
  color: #eecfa0;
  font-size: .875rem;
  white-space: nowrap;
}
.rain-verdict { min-width: 0; margin: 0; padding: .65rem .82rem .72rem; border: 1px solid #68554a; background: #1b1817; }
.rain-verdict legend { padding-inline: .35rem; color: #f5debb; font-weight: 650; }
.rain-verdict p { color: var(--rain-muted); font-size: .93rem; }
.rain-verdict p strong { color: var(--ink); }
.rain-verdict-options { display: flex; flex-wrap: wrap; gap: .2rem .65rem; margin-top: .45rem; }
.rain-verdict-options label { display: flex; align-items: center; gap: .37rem; padding: .4rem .55rem; min-height: 44px; cursor: pointer; }
.rain-verdict-options label:has(input:checked) { background: #372b20; color: #ffe1af; }
.rain-verdict-options input { flex: none; width: 1rem; height: 1rem; accent-color: var(--gold); }
.rain-objectives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.rain-objective {
  --site-accent: #d7a47d;
  --site-wash: #433025;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .48rem;
  padding: .85rem .95rem;
  border: 1px solid var(--rain-line);
  border-top: 2px solid color-mix(in srgb, var(--site-accent), #25201c 30%);
  background: linear-gradient(145deg, var(--site-wash), #201b18 60%);
}
.rain-objective[data-site="camp"] { --site-accent: #abc0b0; --site-wash: #303e36; }
.rain-objective:is([data-site="archives"], [data-site="canals"]) { --site-accent: #b6d6bd; --site-wash: #27392e; }
.rain-objective:is([data-site="wicks"], [data-site="alignment"]) { --site-accent: #cdb9ed; --site-wash: #332847; }
.rain-objective[data-first] { border-color: var(--site-accent); }
.rain-objective[data-locked] { border-top-color: var(--rain-line); }
.rain-objective-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .2rem .65rem; }
.rain-objective-count { color: var(--rain-muted); font-size: .875rem; white-space: nowrap; }
.rain-objective-count strong { color: var(--site-accent); font: 1.4rem/1 var(--serif); }
.rain-objective progress { margin-top: 0; height: 6px; }
.rain-objective progress::-webkit-progress-value { background: var(--site-accent); }
.rain-objective progress::-moz-progress-bar { background: var(--site-accent); }
.rain-objective > p, .rain-sequel > p { color: var(--rain-muted); font-size: .93rem; }
.rain-shared-objective, .rain-outcome { padding: .8rem .95rem; border: 1px solid var(--rain-line); background: var(--rain-shade); color: var(--rain-muted); }
.rain-shared-objective { display: grid; gap: .55rem; }
.rain-shared-objective .rain-objective-count { --site-accent: #ead8af; }
.rain-shared-objective progress { height: 6px; margin: 0; }
.rain-objective .rain-locked { margin-top: auto; font-size: .875rem; }
.rain-objective .rain-goal, .rain-goal { color: #f4d2a2; font-size: .875rem; font-weight: 650; }
.rain-assignment { display: grid; gap: .5rem; border-top: 1px solid var(--rain-line); margin-top: auto; padding-top: .55rem; }
.rain-assignment p { color: #f0dfc8; font-size: .93rem; }
.rain-action { justify-self: start; color: #f3d9b3; background: #3b2b20; border-color: #9c7658; }
.rain-action:hover:not(:disabled) { color: #ffecd0; background: #523a29; border-color: #dbb084; }
.rain-objective[data-site="camp"] .rain-action { color: #dcebdf; background: #2e3b32; border-color: #738a78; }
.rain-objective[data-site="camp"] .rain-action:hover:not(:disabled) { background: #3e4c40; border-color: #a7bda9; }
.rain-start-hint, .rain-contribution { color: var(--rain-muted); font-size: .875rem; }
.rain-job { margin: 0; }
.rain-job [data-rain-job-countdown] { color: #f2d1a2; font-size: .875rem; text-align: right; }
.rain-sequel { display: grid; gap: .63rem; padding: .8rem .95rem; border: 1px solid #816349; background: linear-gradient(115deg, #3c2c20, #241d18 65%); }
.rain-sequel-head, .rain-sequel-task { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem; }
.rain-sequel h3 { font-size: clamp(1.35rem, 2.25vw, 1.72rem); }
.rain-sequel .section-tag { margin-bottom: .18rem; }
.rain-sequel-task { padding-top: .65rem; border-top: 1px solid var(--rain-line); }
.rain-sequel-task > div { flex: 1 1 18rem; }
.rain-sequel-task p { color: var(--rain-muted); font-size: .9rem; }
.rain-ending { border-color: var(--rain-line); background: #28221d; }

.profession-quests { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .9rem; }
.profession-quests h3 { font-size: 1.13rem; }
.profession-quests ul { display: grid; gap: .2rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.profession-quests li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .1rem .75rem;
  padding: .35rem .7rem;
  border-inline-start: 2px solid transparent;
  color: var(--muted);
}
.profession-quests li[aria-current] { border-color: var(--city); color: var(--ink); background: color-mix(in srgb, var(--city) 13%, transparent); }
.profession-quests small { font-size: .875rem; }

.world-view, .world-teaser {
  --world-line: #4a544a;
  --world-muted: #c3cabe;
  --world-light: #ead9b6;
}
.world-teaser {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem 1rem;
  margin-top: clamp(.85rem, 1.8vw, 1.35rem);
  padding: .68rem clamp(.82rem, 2.4vw, 1.45rem);
  background: linear-gradient(105deg, #30342a, #202725 66%, #212924);
  border: 1px solid var(--world-line);
}
.world-emblem {
  display: grid;
  place-items: center;
  width: 2.45rem;
  aspect-ratio: 1;
  color: #e6c286;
  background: #1d2723;
  border: 1px solid #6c6951;
  font-size: 1.45rem;
  line-height: 1;
}
.world-teaser h2 { font-size: clamp(1.25rem, 2.65vw, 1.63rem); }
.world-teaser p { color: var(--world-muted); font-size: .88rem; }
.world-button { color: #f0dfb9; border-color: #90845f; background: #3a392d; }
.world-button:hover:not(:disabled) { color: #fff3d4; border-color: #d7bc83; background: #50503d; }
.world-view { padding-bottom: 3rem; }
.world-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.25rem;
  min-height: clamp(240px, 31vw, 400px);
  padding: clamp(1.4rem, 4vw, 3.2rem);
  border: 1px solid var(--world-line);
  background:
    linear-gradient(90deg, #161d1bee 0%, #171e1bb0 43%, #171e1b54 68%, #15181225),
    linear-gradient(0deg, #151d1beb, #151d1b19 53%, transparent),
    url('/assets/balises-eteintes.webp') center 53% / cover,
    #252d29;
}
.world-hero h1 { max-width: 13ch; color: #fff1d2; font-size: clamp(2.65rem, 6vw, 5rem); letter-spacing: -.05em; }
.world-description { max-width: 58ch; margin-top: .75rem; color: #e6e2d4; }
.world-deadline {
  display: grid;
  min-width: 11rem;
  gap: .12rem;
  align-content: center;
  padding: .66rem .92rem .74rem;
  border: 1px solid #7d765d;
  background: #202724e8;
  color: var(--world-muted);
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
}
.world-deadline strong { color: var(--world-light); font: 1.5rem/1.2 var(--serif); }
.world-deadline time { color: #b7c1af; }
.world-board { display: grid; gap: clamp(.75rem, 1.6vw, 1.15rem); padding-top: clamp(.75rem, 1.6vw, 1.15rem); }
.world-route, .world-mission, .world-merchant, .world-ending {
  min-width: 0;
  padding: clamp(.9rem, 2.2vw, 1.42rem);
  border: 1px solid var(--world-line);
  background: #242d29;
}
.world-route { background: linear-gradient(145deg, #29312d, #202724 70%); }
.world-route-head, .world-project-head, .world-work-status, .world-merchant-head, .world-transit > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .32rem .75rem;
}
.world-board h2 { font-size: clamp(1.38rem, 3vw, 2rem); }
.world-board h3 { font-size: clamp(1.15rem, 2.5vw, 1.48rem); }
.world-route-head p, .world-project-head span, .world-contribution { color: var(--world-muted); font-size: .9rem; }
.world-route-head p span:not(.sr-only) { padding-inline: .18rem; color: #c6ad7d; }
.world-route-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  margin: 1rem 0 .76rem;
  padding: 0;
  color: var(--world-muted);
  list-style: none;
  text-align: center;
  font-size: .88rem;
}
.world-route-stages::before { content: ''; position: absolute; inset: .51rem 16.66% auto; border-top: 1px dashed #7d8069; }
.world-route-stages li { position: relative; display: grid; align-content: start; gap: .38rem; justify-items: center; overflow-wrap: anywhere; }
.world-route-stages li::before { content: ''; width: 1rem; height: 1rem; border: 1px solid #8e917a; background: #232d29; transform: rotate(45deg); }
.world-route-stages li[data-passed]::before { background: #84937a; }
.world-route-stages li[aria-current] { color: #f5deaa; font-weight: 650; }
.world-route-stages li[aria-current]::before { background: #dab176; border-color: #ffe2a3; box-shadow: 0 0 11px #d5ab7466; }
.world-route > p, .world-transit p, .world-mission p, .world-ending p { color: var(--world-muted); }
.world-transit, .world-order { margin-top: .82rem; padding-top: .65rem; border-top: 1px solid var(--world-line); }
.world-transit [data-world-arrival] { color: #eacf9c; font-variant-numeric: tabular-nums; font-size: .88rem; }
.world-transit p { margin-top: .38rem; font-size: .88rem; }
.world-mission {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem .8rem;
  background: #272d26;
}
.world-mission .panel-icon { border-color: #777252; background: #36382b; }
.world-mission h2 { font-size: clamp(1.2rem, 2.45vw, 1.65rem); }
.world-mission p { font-size: .9rem; }
.world-duration { color: var(--world-light); font-size: .88rem; white-space: nowrap; }
.world-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.15rem); }
.world-project {
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: .66rem;
  min-width: 0;
  padding: clamp(.75rem, 1.8vw, 1.08rem);
  border: 1px solid var(--world-line);
  background: #1e2623;
}
.world-project-head { padding: .06rem .05rem; }
.world-work {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
  padding: .68rem .82rem .8rem;
  border: 1px solid color-mix(in srgb, var(--work-color), #303b33 65%);
  border-left: 2px solid color-mix(in srgb, var(--work-color), #28302a 27%);
  background: linear-gradient(122deg, color-mix(in srgb, var(--work-color), #252d28 86%), #222924 66%);
}
.world-work-head { display: flex; align-items: center; gap: .58rem; }
.world-work-head img { width: 2.35rem; height: 2.76rem; object-fit: cover; object-position: center 35%; border: 1px solid #757363; }
.world-city { color: color-mix(in srgb, var(--work-color), #fff0d6 45%); font-size: .87rem; font-weight: 650; }
.world-city span { margin-left: .48rem; padding-left: .48rem; border-left: 1px solid #706e5a; color: var(--world-muted); font-size: .79rem; font-weight: 400; }
.world-work > p, .world-assignment p, .world-order p { color: var(--world-muted); font-size: .91rem; }
.world-work-status { color: #d8ddce; font-size: .84rem; }
.world-work-status strong { color: color-mix(in srgb, var(--work-color), #f6e8cd 56%); font-variant-numeric: tabular-nums; }
.world-work progress { height: 6px; margin: 0; }
.world-work progress::-webkit-progress-value { background: var(--work-color); }
.world-work progress::-moz-progress-bar { background: var(--work-color); }
.world-assignment { display: grid; justify-items: start; gap: .54rem; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--world-line); }
.world-job { margin: 0; background: #36352a; border-color: #898160; }
.world-job [data-world-job-countdown] { color: #f2d1a2; font-size: .875rem; text-align: right; }
.world-merchant { background: linear-gradient(135deg, #394035, #242c27 65%); border-color: #7d765d; }
.world-merchant-head { margin-bottom: .48rem; }
.world-merchant-kind { color: #e1cc9f; font-size: .9rem; }
.world-merchant > p { color: var(--world-muted); }
.world-cargo { display: flex; flex-wrap: wrap; gap: .42rem; padding: 0; margin: .62rem 0 0; list-style: none; }
.world-cargo li { padding: .2rem .52rem; color: #e8dfc7; background: #282e27; border: 1px solid #626751; font-size: .85rem; }
.world-order { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem .85rem; }
.world-order > div { flex: 1 1 15rem; }
.world-order p, .world-ending p { margin-top: .3rem; }
.world-merchant .world-contribution { margin-top: .55rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.94fr) minmax(270px, 1fr);
  align-items: start;
  gap: clamp(.85rem, 1.8vw, 1.35rem);
  padding-top: clamp(.85rem, 1.8vw, 1.35rem);
}
.play-column, .dashboard-sidebar { display: grid; min-width: 0; gap: clamp(.85rem, 1.8vw, 1.35rem); }
.panel { padding: clamp(1.05rem, 2.6vw, 1.85rem); background: var(--panel); border: 1px solid var(--line); }
.panel h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); overflow-wrap: anywhere; }

.quest {
  background: radial-gradient(ellipse at 7% 0, #46321d66, transparent 80%), #241d17;
  border-color: #5b4530;
}
.quest-heading, .quest-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-tag { margin-bottom: .35rem; color: var(--gold); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; }
.section-tag span { margin-right: .2rem; }
.npc {
  min-width: 7.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  line-height: 1.25;
}
.npc > span { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; flex: none; color: var(--gold); border: 1px solid #776042; }
.npc small { display: block; color: var(--muted); font-size: .875rem; margin-top: .17rem; }
.quest-description { color: #e2d3be; margin: 1.1rem 0 1.2rem; }
.quest-bottom { border-top: 1px solid #5b4530; padding-top: .85rem; }
.quest-progress { color: #e6c898; }
.rewards { display: flex; flex-wrap: wrap; gap: .35rem .85rem; }
.rewards div { display: flex; flex-direction: column-reverse; gap: .07rem; }
.rewards dt { color: var(--muted); font-size: .875rem; }
.rewards dd { color: #f2d5a5; font-weight: 650; }

.panel-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.panel-head p { color: var(--muted); margin-top: .25rem; }
.panel-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  aspect-ratio: 1;
  color: var(--gold);
  font-size: 1.31rem;
  border: 1px solid #634a30;
  background: #33261c;
}

.mastery-panel {
  --mastery-line: #62503c;
  --mastery-ink: #e7d4b8;
  margin-bottom: .85rem;
  background: #25201c;
  border: 1px solid var(--mastery-line);
}
.mastery-panel[data-mastery-forge] { --mastery-line: #886249; background: #2a201a; }
.mastery-panel[data-mastery-militia] {
  --mastery-line: #717a5e;
  --mastery-ink: #e4e1c9;
  --mastery-card-top: #33392d;
  --mastery-card-bottom: #22261f;
  --mastery-card-line: #62694f;
  background: #292d25;
}
.mastery-panel[data-mastery-tavern] {
  --mastery-line: #925f46;
  --mastery-ink: #e9d4bc;
  --mastery-card-top: #482e24;
  --mastery-card-bottom: #2b1f1b;
  --mastery-card-line: #77503c;
  background: #35251e;
}
.mastery-panel[data-mastery-tailor] {
  --mastery-line: #876066;
  --mastery-ink: #eed9cb;
  --mastery-card-top: #423033;
  --mastery-card-bottom: #2a2022;
  --mastery-card-line: #6f4f56;
  background: #322629;
}
.mastery-panel[data-mastery-alchemy] {
  --mastery-line: #76876b;
  --mastery-ink: #e5e2c8;
  --mastery-card-top: #384132;
  --mastery-card-bottom: #232a22;
  --mastery-card-line: #5c6e51;
  background: #2b3429;
}
.mastery-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .65rem 1rem; padding: .8rem 1rem; }
.mastery-panel[data-unlocked]:is([data-mastery-forge], [data-mastery-militia], [data-mastery-tavern], [data-mastery-tailor], [data-mastery-alchemy]) .mastery-head {
  min-height: 7.5rem;
  align-content: end;
}
.mastery-panel[data-mastery-forge][data-unlocked] .mastery-head {
  background: linear-gradient(90deg, #251c17fa 6%, #241b15dc 52%, #241b1555),
    url('/assets/maitrise-forge.webp') 61% 54% / cover, #2e221a;
}
.mastery-panel[data-mastery-militia][data-unlocked] .mastery-head {
  background: linear-gradient(90deg, #1d231dfa 6%, #212820dc 52%, #20291f55),
    url('/assets/patrouille-des-relais.webp') 65% 54% / cover, #293027;
}
.mastery-panel[data-mastery-tavern][data-unlocked] .mastery-head {
  background: linear-gradient(90deg, #271a15fb 6%, #2e1d17dc 52%, #301f1555),
    url('/assets/service-du-soir.webp') 65% 56% / cover, #34241b;
}
.mastery-panel[data-mastery-tailor][data-unlocked] .mastery-head {
  background: linear-gradient(90deg, #251b1efa 6%, #352326dc 52%, #34222655),
    url('/assets/carnet-des-patrons.webp') 65% 56% / cover, #35282a;
}
.mastery-panel[data-mastery-alchemy][data-unlocked] .mastery-head {
  background: linear-gradient(90deg, #20271efa 6%, #2a3528dc 52%, #28332355),
    url('/assets/tournee-infirmerie.webp') 65% 55% / cover, #2d3628;
}
.mastery-head h3 { font-size: clamp(1.38rem, 2.4vw, 1.77rem); }
.mastery-description { max-width: 34rem; margin-top: .28rem; color: var(--mastery-ink); font-size: .9rem; }
.mastery-progress { min-width: min(100%, 10rem); color: var(--mastery-ink); font-size: .85rem; }
.mastery-progress strong, .mastery-status { color: #ffdda4; }
.mastery-status { align-self: flex-start; padding: .25rem .52rem; background: #34251dea; border: 1px solid var(--mastery-line); font-size: .82rem; }
.mastery-plans, .guard-review-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .55rem; }
.mastery-plans { padding: .7rem; border-top: 1px solid var(--mastery-line); }
.mastery-plan, .guard-review-choice { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: .7rem; }
.mastery-plan {
  background: linear-gradient(140deg, var(--mastery-card-top, #39281e), var(--mastery-card-bottom, #241b16) 76%);
  border: 1px solid var(--mastery-card-line, #684b35);
}
.mastery-plan h4 { margin: 0; color: #f5e7cc; font: 1.16rem/1.22 var(--serif); }
.mastery-plan p, .guard-review-choice p { color: var(--mastery-ink); font-size: .9rem; }
.mastery-plan .mastery-materials { margin-top: auto; padding-top: .2rem; color: #f1c99b; font-size: .83rem; }
.mastery-materials span { margin-inline: .12rem; }
.mastery-rewards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.1rem, 1fr));
  gap: .25rem .4rem;
  padding: .45rem .5rem;
  border: 1px solid var(--mastery-card-line);
  background: #1b221b;
}
.mastery-rewards dt { font-size: .79rem; }
.mastery-rewards dd { font-variant-numeric: tabular-nums; }
.mastery-reward-coins dd { color: #f5cd8c; }
.mastery-reward-prosperity dd { color: #d3e6ba; }
.mastery-plan .button, .guard-review-choice .button { align-self: flex-start; min-height: 40px; margin-top: .12rem; white-space: normal; }
.mastery-active { display: flex; flex-wrap: wrap; gap: .12rem .45rem; padding: .55rem .95rem; color: var(--mastery-ink); border-top: 1px solid var(--mastery-line); }
.mastery-active strong { color: #f1c99b; }
.mastery-carnet {
  padding: .65rem .95rem;
  border-top: 1px solid var(--mastery-line);
  background: var(--mastery-card-bottom);
}
.mastery-carnet h4 { margin: 0; color: #f5e7cc; font: 1.13rem/1.2 var(--serif); }
.mastery-carnet ul { margin: .36rem 0 0; padding: 0; list-style: none; }
.mastery-carnet li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .16rem .45rem;
  padding: .38rem 0;
  border-top: 1px solid var(--mastery-card-line);
  color: var(--mastery-ink);
  font-size: .9rem;
}
.mastery-carnet li:first-child { border-top: 0; }
.mastery-pattern-mark { width: .9rem; color: #dab28e; text-align: center; }
.mastery-pattern-name { flex: 1 1 10rem; }
.mastery-pattern-status { margin-left: 1.35rem; color: #d7bda6; font-size: .8rem; }
.mastery-carnet [data-mastered] :is(.mastery-pattern-mark, .mastery-pattern-status) { color: #e3d6aa; }
.mastery-note, .mastery-waiting {
  padding: .62rem .95rem;
  border-top: 1px solid var(--mastery-line);
  color: var(--mastery-ink);
  background: var(--mastery-card-bottom, #261e18);
}
.mastery-note strong, .mastery-waiting strong { color: #ffe2af; }
.mastery-note p, .mastery-waiting p { margin-top: .2rem; font-size: .88rem; }
.mastery-waiting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem 1rem; }
.mastery-waiting > div { flex: 1 1 16rem; }
.mastery-return { color: #f4c996; font-size: .88rem; font-variant-numeric: tabular-nums; }

.action-list { display: grid; gap: .5rem; }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .68rem .75rem .68rem .95rem; background: #1b1713; border: 1px solid #3c3025; }
.action-row h3 { font-family: var(--sans); font-size: .99rem; font-weight: 650; line-height: 1.35; }
.action-row p { margin-top: .18rem; color: var(--muted); font-size: .875rem; }
.action-row.is-locked h3 { color: #c6b7a3; }
.button-action { align-self: center; flex-shrink: 0; min-width: 4.8rem; padding-inline: .62rem; color: #f0cb95; background: #36271a; border-color: #765839; font-size: .875rem; }
.button-action:hover:not(:disabled) { color: #fff0d6; border-color: #d09d64; background: #513921; }

.active-job { margin: .1rem 0 .78rem; padding: .85rem .95rem; background: #34281d; border: 1px solid #765437; }
.active-job > div { display: flex; justify-content: space-between; gap: .5rem; }
.active-job p { margin-top: .28rem; color: #dbc5a7; font-size: .875rem; }
.active-job [data-countdown] { color: #f2d1a2; font-size: .875rem; text-align: right; }

progress { width: 100%; height: 8px; appearance: none; border: 0; background: #443528; margin: .5rem 0 0; display: block; }
progress::-webkit-progress-bar { background: #443528; }
progress::-webkit-progress-value { background: #dab176; transition: width .22s linear; }
progress::-moz-progress-bar { background: #dab176; transition: width .22s linear; }

.prosperity-line { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin: .6rem 0 .4rem; }
.prosperity-line strong { color: var(--gold); font: 2.55rem/1 var(--serif); letter-spacing: -.035em; }
.prosperity-line span { color: #e0c3a0; font-size: .875rem; }
.next-level { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .5rem; color: var(--muted); font-size: .875rem; margin: .55rem 0 .85rem; }
.progress-data { display: grid; gap: .44rem; border-top: 1px solid var(--line); padding-top: .67rem; }
.progress-data div { display: flex; justify-content: space-between; gap: .55rem; }
.progress-data dt { color: #d9c8b3; }
.progress-data dd { color: #f0d3a9; font-weight: 650; }

.journal ol { margin: .65rem 0 0; list-style: none; padding: 0; }
.journal li { display: flex; justify-content: space-between; gap: .45rem; padding: .51rem 0; border-top: 1px solid #433527; }
.journal li:first-child { border-top: 0; }
.journal > p { margin-top: .5rem; color: var(--muted); }

.inventory {
  min-width: 0;
  background: radial-gradient(ellipse at 6% 0, #3e302466, transparent 80%), #201b17;
  border-color: #514133;
}
.inventory [data-rarity="common"] { --item-color: #b6b2ae; }
.inventory [data-rarity="uncommon"] { --item-color: #82c68e; }
.inventory [data-rarity="rare"] { --item-color: #82bbf5; }
.inventory [data-rarity="epic"] { --item-color: #c9a0f4; }
.inventory [data-rarity="legendary"] { --item-color: #ffb85d; }

.inventory-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .22rem .6rem; }
.inventory-heading > span { color: var(--muted); font-size: .79rem; }
.inventory-board { position: relative; margin-top: .8rem; }
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(var(--inventory-columns), minmax(0, 1fr));
  gap: clamp(2px, .34vw, 4px);
  padding: clamp(3px, .55vw, 7px);
  border: 1px solid #735b42;
  background: #100e0d;
  box-shadow: inset 0 0 .65rem #000, 0 0 0 1px #171310;
}
.inventory-slot {
  width: 100%;
  min-width: 0;
  align-self: start;
  aspect-ratio: 1;
  border: 1px solid #493b30;
  background: linear-gradient(155deg, #261f19, #1a1613);
  box-shadow: inset 0 1px #74604b26;
}
.inventory-place { z-index: 1; min-width: 0; min-height: 0; }
.inventory-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--item-color) 76%, #100e0c);
  color: var(--item-color);
  background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--item-color) 19%, #19130e), #171310 88%);
  box-shadow: inset 0 0 .54rem #0a0808;
  transition: filter .14s, border-color .14s;
}
.inventory-item:hover, .inventory-item[aria-pressed="true"] { border-color: var(--item-color); }
.inventory-item:hover { filter: brightness(1.16); }
.inventory-item:focus-visible { z-index: 1; outline: 2px solid #ffe8c8; outline-offset: -3px; }
.inventory-item[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--item-color);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.inventory-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background-image: url("/assets/objets-inventaire.webp");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-position: var(--sprite-x) var(--sprite-y);
  filter: hue-rotate(var(--sprite-hue, 0deg)) drop-shadow(0 2px 2px #0f0b0a);
}
.inventory-item[data-item-width="1"][data-item-height="2"] .inventory-art { aspect-ratio: .75; }
.inventory-item[data-item-width="1"][data-item-height="3"] .inventory-art { aspect-ratio: .51; }
.inventory-item[data-item-width="2"][data-item-height="1"] .inventory-art { width: auto; height: 92%; aspect-ratio: 1.25; }
.inventory-item[data-item-width="2"][data-item-height="3"] .inventory-art { aspect-ratio: .82; }
.inventory-art-fallback { display: grid; place-items: center; background-image: none; }
.inventory-quantity {
  position: absolute;
  right: 1px;
  bottom: 1px;
  padding: 0 .15rem;
  pointer-events: none;
  color: #fff3e0;
  background: #110d0ce8;
  font-size: clamp(.62rem, 1.12vw, .75rem);
  line-height: 1.35;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.inventory-empty {
  position: absolute;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: 95%;
  padding: .26rem .54rem;
  color: #ecddc7;
  background: #181410f4;
  box-shadow: 0 0 .45rem #0d0a08a6;
  font-size: .86rem;
  text-align: center;
  transform: translate(-50%, -50%);
}
.inventory-details {
  display: grid;
  align-content: start;
  min-height: 8.5rem;
  gap: .55rem;
  margin-top: .68rem;
  padding: .62rem .72rem;
  border: 1px solid var(--item-color);
  border-left-width: 3px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--item-color) 12%, #211915), #211915 75%);
}
.inventory-detail-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .55rem; }
.inventory-detail-heading h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
.inventory-rarity { color: var(--item-color); font-size: .78rem; font-weight: 700; }
.inventory-details > p { color: #ddcdb9; font-size: .83rem; line-height: 1.45; }
.inventory-detail-stock { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .8rem; padding-top: .34rem; border-top: 1px solid #665440; }
.inventory-detail-stock > div { display: flex; gap: .36rem; color: var(--muted); font-size: .73rem; }
.inventory-detail-stock dd { color: #f2e5d3; font-weight: 650; }
.inventory-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem .65rem;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}
.inventory-legend li { display: flex; align-items: center; gap: .32rem; color: #d3c3af; font-size: .72rem; white-space: nowrap; }
.inventory-legend i { width: .43rem; height: .43rem; flex: none; background: var(--item-color); transform: rotate(45deg); }
.wardrobe fieldset { display: grid; gap: .16rem; padding: 0; border: 0; margin: .55rem 0 .45rem; }
.wardrobe-choice { display: flex; align-items: center; gap: .55rem; min-height: 42px; cursor: pointer; }
.wardrobe-choice input { width: 1rem; height: 1rem; accent-color: var(--gold); }
.wardrobe-swatch { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; color: #ceaa79; border: 1px solid #725738; background: #261b14; }
.wardrobe-swatch.gold { border: 3px double #d3a153; color: #ffe2aa; background: #4b2f19; }
.wardrobe-swatch.silver { border: 3px double #bac6d8; color: #eef4ff; background: #3a4456; }
.wardrobe > a { display: inline-flex; min-height: 40px; align-items: center; color: var(--gold); text-decoration: underline; text-underline-offset: .23em; }
.journal li { color: #e2d3c0; font-size: .875rem; line-height: 1.4; }
.journal time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }

.guard-desk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .58rem; margin-bottom: .85rem; }
.guard-uniform {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(5.25rem, 8rem) 1fr;
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.3rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--city), #221b15 62%);
  background: linear-gradient(110deg, color-mix(in srgb, var(--city), #201915 80%), #201915);
}
.guard-uniform img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 32%; }
.guard-uniform > div { padding: .65rem .75rem .65rem 0; }
.guard-uniform p { margin-top: .33rem; color: #e0cdb4; font-size: .9rem; }
.guard-code, .guard-case, .ranks { padding: .8rem .85rem; background: #1a1613; border: 1px solid #46372b; }
.guard-desk h3 { color: #f0dfc5; font-size: 1.15rem; }
.guard-desk ol, .guard-desk ul { margin: .55rem 0 0; padding-left: 1.16rem; color: #e0cdb4; font-size: .9rem; }
.guard-desk li + li { margin-top: .32rem; }
.guard-desk li.guard-missing { color: #ffce90; font-weight: 650; }
.visitor { color: #e9cba1; margin-top: .45rem; }
.visitor span { display: block; color: var(--muted); font-size: .875rem; }
.guard-review {
  --mastery-ink: #e3d6c3;
  grid-column: 1 / -1;
  display: grid;
  gap: .62rem;
  padding: .78rem .84rem;
  border: 1px solid color-mix(in srgb, var(--city, var(--gold)), #44352a 54%);
  background: linear-gradient(110deg, color-mix(in srgb, var(--city, var(--gold)), #2e2620 88%), #211b17);
}
.guard-review[data-verified] { border-color: #727d58; background: #282b20; }
.guard-review-head p { margin-top: .3rem; color: var(--mastery-ink); font-size: .9rem; }
.guard-review-head .guard-clue strong { margin-right: .25rem; color: #f5cf95; }
.guard-review-head .guard-review-result { padding: .44rem .58rem; border-left: 2px solid #bd9a68; color: #f3deb8; background: #1c1813; }
.guard-review-choice { justify-content: space-between; background: #1f1915; border: 1px solid #5b4534; }
.guard-choice-duration { color: #e0b989; white-space: nowrap; }
.ranks { grid-column: 1 / -1; }
.ranks summary { cursor: pointer; color: var(--gold); }
.ranks [aria-current] { color: #fff1d2; font-weight: 700; }

.unavailable { padding: 4rem 0; min-height: 55vh; }
.unavailable h1 { font-size: clamp(2rem, 5vw, 4rem); }
.unavailable p { margin: .8rem 0 1.2rem; color: var(--muted); }

.notice {
  position: fixed;
  z-index: 5;
  inset: auto 1.1rem 1.1rem auto;
  width: max-content;
  max-width: min(calc(100% - 2.2rem), 32rem);
  padding: .75rem 1.05rem;
  color: #f9e3be;
  background: #372b20;
  border: 1px solid #9a7a50;
  box-shadow: 0 6px 25px #100b08b5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .16s, transform .16s;
}
.notice.visible { opacity: 1; transform: translateY(0); }
.notice.is-error { background: #421f1a; border-color: #c17d6e; }

@media (max-width: 940px) {
  .city-hero { grid-template-columns: 6rem minmax(0, 1fr); gap: .6rem 1.4rem; }
  .city-hero-art { grid-row: span 2; }
  .city-hero-stats { grid-column: 2; }
  .city-hero-stats dd { font-size: 1.25rem; }
  .enlist-grid { grid-template-columns: minmax(184px, .36fr) minmax(0, 1fr); }
  .role-card { padding: .83rem; }
}
@media (max-width: 780px) {
  .site-header { gap: .7rem; }
  .site-nav { column-gap: .95rem; }
  .faction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faction .banner-art { aspect-ratio: 1.3; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal { grid-column: 1 / -1; }
  .world-projects { grid-template-columns: 1fr; }
  .world-project { grid-template-rows: none; }
}
@media (max-width: 630px) {
  .site-header { min-height: 63px; grid-template-columns: 1fr 1fr; gap: .35rem; }
  .site-header:has(.site-nav) { padding-top: .7rem; }
  .site-nav { grid-row: 2; grid-column: span 2; margin: .4rem 0 .75rem; }
  .wordmark { font-size: 1.24rem; gap: .5rem; }
  .hero { --hero-position: 64% 38%; min-height: 440px; padding-inline: 1.5rem; }
  .hero h1 { font-size: clamp(3.1rem, 13vw, 5rem); }
  .hero p { margin-top: 1.15rem; }
  .characters-hero { grid-template-columns: 1fr; align-content: end; min-height: 15rem; background-position: left center, left center, 65% center; }
  .characters-hero > .button { justify-self: start; }
  .characters-actions { justify-content: start; }
  .enlist-grid { grid-template-columns: 1fr; }
  .oath { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 6rem 1fr; align-items: center; }
  .oath-art { width: 100%; align-self: stretch; }
  .oath > div { padding: .78rem .75rem; }
  .oath h2 { margin: .22rem 0 .35rem; }
  .oath p:not(.city-title) { font-size: .875rem; }
  .enlist-body h1 { font-size: 2.7rem; }
  .mantle-hero { background-position: left center, left center, 63% center; }
  .mantle-options { grid-template-columns: 1fr; }
  .rain-hero { grid-template-columns: minmax(0, 1fr); gap: .72rem; background-position: left center, left center, 67% center; }
  .rain-deadline { justify-self: start; }
  .rain-objectives { grid-template-columns: 1fr; }
  .world-hero { grid-template-columns: 1fr; align-content: end; gap: .8rem; background-position: left center, left center, 66% center; }
  .world-deadline { justify-self: start; }
}
@media (max-width: 450px) {
  .section-wrap, .site-header, .site-footer { width: calc(100% - 1.5rem); }
  .hero { width: calc(100% - 1rem); min-height: 405px; }
  .hero-actions { margin-top: 1.2rem; }
  .faction-grid { gap: .6rem; }
  .faction .banner-art { aspect-ratio: 1.04; }
  .faction-text { padding-inline: .66rem; padding-bottom: .65rem; }
  .faction h3 { font-size: 1.5rem; }
  .city-title { letter-spacing: .04em; font-size: .82rem; }
  .city-copy, .city-link { font-size: .875rem; }
  .city-copy { margin-block: .53rem .65rem; line-height: 1.4; }
  .roles, .citizen-fields { grid-template-columns: 1fr; }
  .city-hero { grid-template-columns: 4.4rem 1fr; gap: .7rem .75rem; }
  .city-hero-art { grid-row: 1; min-height: auto; }
  .city-hero-stats { grid-column: 1 / -1; margin-top: .22rem; }
  .guard-desk { grid-template-columns: 1fr; }
  .quest-heading, .quest-bottom { flex-wrap: wrap; }
  .dashboard-sidebar { grid-template-columns: 1fr; }
  .action-row { padding-inline: .64rem .56rem; }
  .button-action { min-width: 4rem; }
  .guard-uniform { grid-template-columns: 5.3rem minmax(0, 1fr); }
  .action-row:has([data-game-action^="admit:"], [data-game-action^="refuse:"]) { align-items: stretch; flex-direction: column; }
  .action-row:has([data-game-action^="admit:"], [data-game-action^="refuse:"]) button { align-self: stretch; }
  .rain-mission-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .4rem .55rem; }
  .rain-duration { grid-column: 2; justify-self: start; margin: 0; }
  .rain-assignment button { justify-self: stretch; }
  .world-teaser { grid-template-columns: auto minmax(0, 1fr); }
  .world-teaser a { grid-column: 2; justify-self: start; }
  .world-mission { grid-template-columns: auto minmax(0, 1fr); }
  .world-duration { grid-column: 2; }
  .world-assignment, .world-order-button { justify-self: stretch; }
  .world-order-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}

