:root {
  color-scheme: dark;
  --ink: #13282c;
  --night: #112528;
  --paper: #f5eddb;
  --mute: #abbcb3;
  --gold: #efd394;
  --line: #72837a55;
  --size: 1;
  --sans: 'Avenir Next', Avenir, 'Trebuchet MS', Arial, sans-serif;
  --serif: Baskerville, 'Iowan Old Style', Georgia, serif;
  --mono: 'SFMono-Regular', Menlo, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  font: calc(15px * var(--size))/1.5 var(--sans);
  color: var(--paper);
}
[hidden] {
  display: none !important;
}
button,
select,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ffdb85;
  outline-offset: 4px;
}
button:hover {
  filter: brightness(1.13);
}
button:active {
  transform: translateY(1px);
}
svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
#jeu,
#accueil,
#hud,
#overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
#jeu {
  display: block;
}
#accueil {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #456064;
}
.coverArt,
.coverShade {
  position: absolute;
  inset: 0 0 65px;
  z-index: -2;
}
.coverArt {
  background: url(../ressources/ourlemer.webp) 62% 56% / cover no-repeat;
}
.coverShade {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(13, 31, 35, 0.95) 0%,
      rgba(18, 37, 39, 0.86) 18%,
      rgba(21, 40, 43, 0.62) 37%,
      rgba(24, 43, 42, 0.19) 61%,
      transparent 78%
    ),
    linear-gradient(0deg, #172e319c 0%, transparent 22%, transparent 84%, #122d2f65 100%);
}
.mast {
  margin: 0 5.25%;
  height: 84px;
  min-height: 68px;
  border-bottom: 1px solid #d8dec139;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark,
.mastActions,
.mastActions button,
.startActions,
.dock,
.dock nav,
.dock button,
.caption,
.kicker,
.chapterSeal,
.hudtools,
.place,
.panelHead,
.itemrow,
.rowButtons,
.meta {
  display: flex;
  align-items: center;
}
.wordmark {
  gap: 12px;
  letter-spacing: 0.23em;
  font-size: 18px;
  font-weight: 750;
}
.wordmark svg {
  width: 37px;
  height: 37px;
  color: var(--gold);
}
.mastActions {
  gap: 18px;
}
.mastActions button {
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 6px #14292a;
}
.mastActions i,
.place i {
  height: 19px;
  border-left: 1px solid #d8dfc96e;
}
.heroMenu {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 7.2%;
  padding: 24px 0 45px;
  min-height: 0;
}
.kicker,
.caption,
.panelHead small,
.overline,
.chapterSeal small,
.tiny,
.guideLabel {
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.145em;
}
.kicker {
  color: #efd39a;
  gap: 12px;
  font-size: 11px;
}
.kicker b {
  font-size: 6px;
}
.dash {
  display: block;
  width: 39px;
  height: 1px;
  background: #e7c784;
}
h1 {
  font: normal clamp(73px, 8.4vw, 153px)/0.82 var(--serif);
  letter-spacing: -0.062em;
  margin: 32px 0 24px;
  text-shadow: 1px 3px 1px #172f3015;
  color: #f8efd9;
}
h1 em {
  font-weight: 400;
  line-height: 0.96;
  color: #ebcf93;
}
.tagline {
  font-size: clamp(15px, 1.35vw, 22px);
  line-height: 1.52;
  color: #eee9d6;
  margin: 0 0 28px;
  letter-spacing: 0.004em;
}
.startActions {
  gap: 12px;
}
.gold,
.ghost,
.quiet,
.action {
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 43px;
  padding: 10px 17px;
  font-weight: 650;
}
.gold {
  background: var(--gold);
  color: #1c3537;
  border: 1px solid var(--gold);
}
.play {
  min-width: 154px;
  min-height: 49px;
  font-size: 17px;
  gap: 14px;
}
.play svg {
  width: 16px;
  height: 16px;
}
.ghost,
.quiet {
  background: #203a3b66;
  border: 1px solid #e0ddc563;
}
.ghost {
  min-height: 49px;
  padding: 10px 17px;
}
.ghost svg {
  color: #dbdac1;
}
.caption {
  position: absolute;
  right: 5.3%;
  bottom: 100px;
  font-size: 10px;
  letter-spacing: 0.1em;
  gap: 8px;
  text-shadow: 0 1px 5px #132826;
}
.caption span {
  width: 29px;
  border-top: 1px solid #d4c5a1;
}
.caption svg {
  width: 14px;
  height: 14px;
  color: #e8cc96;
}
.caption i {
  opacity: 0.65;
}
.dock {
  min-height: 77px;
  padding: 12px 5.25%;
  justify-content: space-between;
  background: #142a2c;
  border-top: 1px solid #d3bf905e;
  gap: 16px;
}
.chapterSeal {
  gap: 15px;
}
.chapterNum {
  font: italic 39px/0.99 var(--serif);
  color: #d6bf8b;
  padding-right: 14px;
  border-right: 1px solid #c4bc9859;
}
.chapterSeal div {
  display: grid;
  gap: 3px;
}
.chapterSeal small {
  color: #9bb0a7;
  font-size: 9px;
}
.chapterSeal strong {
  font-weight: 550;
  font-size: 15px;
}
.dock nav {
  gap: clamp(10px, 2.3vw, 39px);
}
.dock button {
  padding: 7px 0;
  gap: 7px;
  font-size: 12px;
  color: #d8e0d4;
}
.dock button span {
  margin-left: -7px;
}
.dock svg {
  color: #bfccb9;
  width: 16px;
  height: 16px;
}
#storeWarn {
  max-width: 390px;
  font-size: 12px;
  color: #f6d099;
  margin: 10px 0 0;
}
#hud {
  pointer-events: none;
  text-shadow: 0 1px 2px #0005;
}
.topHUD {
  display: flex;
  justify-content: space-between;
  padding: 22px 25px;
}
.place,
.hudtools,
#speed,
#guide,
#context,
#notice,
#listening {
  background: #193538ed;
  border: 1px solid #f0dfb548;
  border-radius: 5px;
  box-shadow: 0 3px 14px #0c242726;
}
.place {
  gap: 13px;
  padding: 7px 13px;
  align-self: flex-start;
}
.place span {
  font: 600 13px var(--mono);
  color: #f1d596;
}
.place strong {
  font-weight: 600;
  font-size: 14px;
}
.place i {
  height: 14px;
}
.hudtools {
  pointer-events: auto;
  padding: 3px;
}
.hudtools button,
.iconButton {
  display: grid;
  place-items: center;
  height: 32px;
  width: 36px;
}
.hudtools button + button {
  border-left: 1px solid #c2cab52e;
}
.hudtools button:hover,
.iconButton:hover {
  background: #f5f1cc14;
}
#retro {
  position: absolute;
  right: 26px;
  top: 81px;
  width: clamp(138px, 16vw, 240px);
  aspect-ratio: 2.7;
  border: 4px solid #344849;
  border-radius: 5px;
  box-shadow: 0 3px 7px #13242655;
}
#retro small {
  position: absolute;
  bottom: -19px;
  right: 0;
  font: 8px var(--mono);
  letter-spacing: 0.14em;
  color: #fff4d7;
  background: #203537a6;
  padding: 2px 5px;
}
#context {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  padding: 9px 18px 9px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 630;
  white-space: nowrap;
}
kbd {
  display: inline-block;
  font: 600 0.8em var(--mono);
  color: #f6ddaa;
  background: #3d514c;
  border: 1px solid #c9c6a656;
  border-bottom-width: 2px;
  padding: 4px 7px;
  border-radius: 3px;
  text-shadow: none;
}
#context kbd {
  background: var(--gold);
  border-color: #d2b980;
  color: #203a3a;
  font-size: 13px;
  padding: 5px 9px;
}
#notice {
  position: absolute;
  bottom: 93px;
  max-width: min(650px, 90vw);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  text-align: center;
  color: #fff0d3;
}
#speed {
  position: absolute;
  bottom: 26px;
  left: 25px;
  padding: 12px 15px;
  font: 12px var(--mono);
}
#speed strong {
  font-size: 24px;
  color: var(--gold);
}
#guide {
  position: absolute;
  top: 80px;
  left: 25px;
  padding: 9px 13px;
  max-width: 340px;
  font-size: 12px;
}
#listening {
  position: absolute;
  top: 25%;
  left: 25px;
  padding: 13px 17px;
  min-width: 230px;
}
#overlay {
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0d2328ad;
  backdrop-filter: blur(5px);
}
#panel {
  width: min(640px, 100%);
  max-height: 89vh;
  max-height: 89dvh;
  display: flex;
  flex-direction: column;
  background: #183032;
  color: var(--paper);
  border: 1px solid #89978a82;
  border-radius: 9px;
  box-shadow: 0 15px 90px #071a2366;
  overflow: hidden;
}
#panel.wide {
  width: min(1050px, 100%);
}
.panelHead {
  gap: 15px;
  justify-content: space-between;
  padding: 21px 26px 16px;
  border-bottom: 1px solid var(--line);
}
.panelHead small,
.overline {
  color: #d6bf8d;
}
.panelHead h2 {
  font: normal calc(34px * var(--size))/1.1 var(--serif);
  margin: 4px 0 0;
}
.iconButton {
  border: 1px solid #a9b49f66;
  border-radius: 50%;
  flex: none;
}
#panelBody {
  overflow: auto;
  padding: 17px 26px 24px;
  scrollbar-color: #72887a #1c3335;
}
#panelBody p {
  margin: 2px 0 16px;
}
#panelBody h3 {
  font: normal 25px/1.1 var(--serif);
  margin: 19px 0 10px;
}
.quiet {
  border-color: #9fac9777;
  background: #294441;
  font-size: 0.93em;
}
.action {
  color: #203638;
  background: #d5c79e;
}
.rowButtons {
  gap: 9px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.itemrow {
  gap: 14px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.itemrow small,
.subtle,
.meta {
  color: #b1c1b5;
  font-size: 0.87em;
}
.itemrow b {
  font-weight: 620;
}
.choices {
  display: grid;
  gap: 7px;
}
.choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 11px 13px;
  border: 1px solid #81928060;
  border-radius: 4px;
  text-align: left;
  background: #25413f;
  font-weight: 550;
}
.choice:after {
  content: '›';
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}
.choice.primary {
  border-color: #d5bd82;
  background: #3c5046;
}
.choice small {
  display: block;
  font-weight: 400;
  color: #b7c6b9;
}
.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.tabs button {
  padding: 6px 11px;
  border: 1px solid #8c9b8559;
  border-radius: 3px;
  font-size: 0.87em;
}
.tabs .active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
select {
  background: #29423f;
  border: 1px solid #7d917e;
  color: var(--paper);
  padding: 6px 9px;
  border-radius: 3px;
}
input[type='range'],
input[type='checkbox'] {
  accent-color: #e5c985;
}
input[type='range'] {
  width: min(44%, 220px);
}
.gridBook {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
}
.bookList {
  display: grid;
  gap: 4px;
  align-content: start;
}
.bookList button {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9em;
}
.bookList .sel {
  background: #395048;
  color: var(--gold);
}
.bookList small {
  font: 10px var(--mono);
  color: #bba97e;
}
.bookList .locked {
  opacity: 0.64;
}
.paperMap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
}
#cityMap {
  display: block;
  width: 100%;
  background: #ddd3b3;
  border-radius: 4px;
  cursor: crosshair;
  touch-action: none;
}
.legend {
  font-size: 11px;
  color: #bbc9bc;
  padding-top: 8px;
}
.mapSide {
  max-height: 49vh;
  overflow: auto;
}
.mapSide button {
  font-size: 0.85em;
  padding: 6px;
  text-align: left;
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  margin: 6px 0;
}
.wave i {
  display: block;
  width: 3px;
  background: #e4c994;
}
.logEntry {
  border-left: 2px solid #a7a184;
  padding: 4px 10px;
  margin: 6px 0;
  font-size: 0.92em;
}
.logEntry time {
  color: #d8c28b;
  font: 11px var(--mono);
  margin-right: 6px;
}
#toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 17px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #e5d7b3;
  color: #203a3b;
  padding: 10px 18px;
  box-shadow: 0 3px 12px #14232e44;
  max-width: 90%;
  text-align: center;
  font-weight: 550;
}
@media (min-aspect-ratio: 19/10) {
  .mast {
    height: 66px;
  }
  .heroMenu {
    padding: 8px 0 18px;
  }
  h1 {
    font-size: clamp(65px, 14vh, 120px);
    margin: 20px 0 14px;
  }
  .tagline {
    margin-bottom: 14px;
  }
  .dock {
    min-height: 62px;
  }
  .caption {
    bottom: 77px;
  }
}
@media (max-width: 760px) {
  .mast {
    height: 65px;
  }
  .wordmark {
    font-size: 15px;
    gap: 8px;
  }
  .mastActions {
    gap: 9px;
  }
  .mastActions button {
    font-size: 12px;
  }
  .heroMenu {
    margin: 0 6%;
    padding-bottom: 39px;
  }
  .coverArt {
    background-position: 62% center;
  }
  .coverShade {
    background:
      linear-gradient(90deg, #132c31df, #132c3199 44%, #132c3122 82%),
      linear-gradient(0deg, #132c31c4, transparent 50%);
  }
  h1 {
    font-size: clamp(64px, 14vw, 96px);
  }
  .caption {
    bottom: 84px;
    font-size: 8px;
  }
  .dock {
    min-height: 67px;
  }
  .dock nav {
    gap: 14px;
  }
  .dock nav span {
    display: none;
  }
  .dock button {
    font-size: 11px;
  }
  .chapterSeal {
    gap: 8px;
  }
  .chapterSeal strong {
    font-size: 12px;
  }
  .chapterNum {
    font-size: 32px;
    padding-right: 8px;
  }
  .gridBook,
  .paperMap {
    grid-template-columns: 1fr;
  }
  .mapSide {
    max-height: 115px;
  }
  .bookList {
    grid-template-columns: 1fr 1fr;
  }
  .panelHead {
    padding: 14px 17px;
  }
  #panelBody {
    padding: 13px 17px;
  }
  .topHUD {
    padding: 12px;
  }
  .place {
    gap: 8px;
  }
  #context {
    max-width: 94vw;
    white-space: normal;
  }
  .kicker {
    font-size: 9px;
  }
  .play {
    min-width: 121px;
  }
}
@media (max-width: 520px) {
  .dock .chapterSeal {
    display: none;
  }
  .dock nav {
    justify-content: space-between;
    width: 100%;
  }
  .mastActions button span {
    display: none;
  }
  .caption {
    right: 5%;
    bottom: 82px;
  }
  .coverArt {
    background-position: 65% center;
  }
  .startActions {
    gap: 8px;
  }
  .ghost {
    padding: 9px 12px;
  }
  .topHUD {
    gap: 5px;
  }
  .place strong {
    font-size: 12px;
  }
  #overlay {
    padding: 10px;
  }
  #speed {
    bottom: 85px;
  }
  .place {
    padding: 7px 8px;
  }
}
