/* The reference plate is deliberately empty: all quest data and controls remain HTML. */
@font-face {
  font-family: "Quest Typewriter";
  src: url("/contrats/fonts/SpecialElite-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Quest Slab";
  src: url("/contrats/fonts/RobotoSlab-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.qb-page-bg { background: #100d0a; }
/* The site's top bar (Roue, Vote...) stays: it is the only way out of the page (Bobsta 2026-11-27). */
.qb-page-bg .zc-page, .qb-world { display: none; }
.qb-page-bg #main { padding: 0 0 48px; }
.qb-page-bg #main > .wrap { max-width: none; padding: 0; }
.qb-scene {
  container-type: inline-size;
  position: relative;
  width: min(100%, 1910px);
  aspect-ratio: 1910 / 823;
  margin: 0 auto;
  overflow: hidden;
  background: #211811 url("/contrats/questbook-plate.jpg") center / 100% 100% no-repeat;
  font-family: "Quest Typewriter", "Courier New", monospace;
}
.qb-scene *, .qb-scene *::before, .qb-scene *::after { box-sizing: border-box; }
.qb-scene .zc-ico { image-rendering: auto; }

/* The steel nameplate is part of the image. */
.qb-scene .qb-intro {
  position: absolute;
  z-index: 3;
  top: .8%; left: 9.8%; right: 9.2%;
  display: grid;
  grid-template-columns: 31.5% minmax(0,1fr) auto;
  align-items: center;
  gap: 1cqw;
  min-height: 6.8%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.qb-scene .qb-intro::before, .qb-scene .qb-intro::after { display: none; }
.qb-home { min-width: 0; color: #f5e5c8; text-decoration: none; }
.qb-home:focus-visible { outline: 2px solid #e6c28c; outline-offset: 3px; }
.qb-scene .qb-intro h1 {
  margin: 0;
  color: #efe2ca;
  font: 850 2.34cqw/.96 "Quest Slab", Georgia, serif;
  letter-spacing: .035em;
  white-space: nowrap;
  text-shadow: 0 2px 2px #050302, 1px 0 #75624c;
}
.qb-scene .qb-kicker {
  margin: 0;
  padding-left: 2cqw;
  border-left: 1px solid rgba(235,219,189,.55);
  color: #e4d3b4;
  font: 400 1.03cqw/1.35 "Quest Typewriter", monospace;
  letter-spacing: .14em;
  white-space: nowrap;
}
.qb-scene .qb-intro-tools { display: flex; justify-content: end; align-items: center; gap: .45cqw; min-width: 0; }
.qb-scene .qb-status {
  display: inline-flex; gap: .65cqw;
  padding: 0 .4cqw 0 0;
  min-height: 3cqw;
  border: 0;
  border-right: 1px solid rgba(235,219,189,.55);
  background: none;
  color: #e7d6b9;
  font: 400 .94cqw/1.2 "Quest Typewriter", monospace;
  letter-spacing: .11em;
  white-space: nowrap;
}
.qb-scene .qb-status::before { width: .85cqw; height: .85cqw; background: #a13520; box-shadow: none; }
.qb-scene .qb-sound {
  display: inline-flex;
  gap: .65cqw;
  padding: 0;
  min-height: 3cqw;
  border: 0;
  color: #eadbc0;
  background: none;
  font: 400 .94cqw/1.2 "Quest Typewriter", monospace;
  letter-spacing: .09em;
  white-space: nowrap;
  box-shadow: none;
}
.qb-scene .qb-sound:hover, .qb-scene .qb-sound:focus-visible { color: white; border: 0; outline: 2px solid #e0b57b; outline-offset: 4px; }
.qb-scene .qb-sound[aria-pressed="true"] { color: #f4ca8e; border: 0; }
.qb-sound-mark { display: none; }
.qb-speaker { width: 1.8cqw; height: 1.8cqw; flex: none; }
.qb-scene .qb-page-sound { display: grid; gap: .15cqw; min-width: 9.4cqw; color: #eadbc0; }
.qb-scene .qb-page-sound label { font: 400 max(10px,.7cqw)/1.05 "Quest Typewriter", monospace; letter-spacing: .05em; white-space: nowrap; }
.qb-scene .qb-page-sound select {
  width: 100%; min-height: 2.3cqw; padding: .2cqw .45cqw;
  border: 1px solid #b99a72; border-radius: 2px; color: #f4e5c9; background: #211b16;
  font: 700 max(12px,.87cqw)/1.15 "Quest Slab", Georgia, serif; cursor: pointer;
}
.qb-scene .qb-page-sound select:focus-visible { outline: 2px solid #e0b57b; outline-offset: 2px; }

/* The pages and their edges are photographic, with live text over them. */
.qb-scene .qb-book {
  position: absolute;
  top: 13.5%; left: 11.4%;
  display: grid;
  grid-template-columns: minmax(0,45.5%) minmax(0,54.5%);
  width: 78.8%; height: 79%;
  margin: 0; padding: 0;
  border: 0; border-radius: 0;
  background: none;
  box-shadow: none;
  color: #2d251d;
  font-family: "Quest Typewriter", "Courier New", monospace;
}
.qb-scene .qb-book::before, .qb-scene .qb-book::after { display: none; }
.qb-scene .qb-index, .qb-scene .qb-leaf {
  position: relative;
  min-width: 0; min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.qb-scene .qb-index { display: block; padding-right: 4cqw; }
.qb-scene .qb-index::before {
  content: "ZCRISIS / ARCHIVES";
  display: inline-block;
  margin: 0;
  padding: .16cqw .5cqw .06cqw;
  border: .11cqw solid #8e291d;
  color: #85271e;
  font: 700 .94cqw/1.25 "Quest Slab", Georgia, serif;
  letter-spacing: .05em;
}
.qb-scene .qb-index h2 {
  width: max-content;
  margin: .6cqw 0 .25cqw;
  padding: 0 0 .1cqw;
  border-bottom: .19cqw solid #9d281e;
  color: #2c2119;
  font: 900 2.4cqw/.95 "Quest Slab", Georgia, serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 1px 1px #7b5a42;
}
.qb-scene .qb-index-sub { display: none; }
.qb-scene .qb-index-list {
  display: grid;
  align-content: start;
  width: 100%;
  height: 42%;
  min-height: 0;
  margin-top: .75cqw;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #987957 transparent;
}
.qb-scene .qb-chapter {
  margin: 0 0 .42cqw;
  padding: 0 0 .35cqw;
  border: 0;
  border-bottom: 1px dashed #8b765f;
  color: #6b5844;
  font: 800 1.2cqw/1.25 "Quest Slab", Georgia, serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.qb-scene .qb-entry {
  display: grid;
  grid-template-columns: 2.6cqw minmax(0,1fr) 2cqw;
  align-items: center;
  gap: .75cqw;
  width: 100%;
  min-height: 2.1cqw;
  padding: .2cqw .8cqw;
  border: 0;
  border-bottom: 1px dashed rgba(83,60,45,.45);
  border-radius: 0;
  color: #31251a;
  background: transparent;
  font: 400 1.04cqw/1.15 "Quest Typewriter", monospace;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}
.qb-scene .qb-entry:hover, .qb-scene .qb-entry:focus-visible { color: #7d2419; outline: 1px solid #8d3427; outline-offset: -1px; background: rgba(225,198,153,.36); }
.qb-scene .qb-entry[aria-current="page"] {
  border: 0;
  color: #742019;
  background: linear-gradient(90deg, #d9b98d, #e9cda4 75%, transparent);
  box-shadow: 0 2px 5px #5b3d2770, inset 0 1px #f2dbb8;
  transform: rotate(-.6deg);
}
.qb-scene .qb-entry-num { color: inherit; font-size: 1.03cqw; }
.qb-scene .qb-entry-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.qb-scene .qb-entry[aria-current="page"] .qb-entry-title { text-decoration: underline 1px #9e2b20; text-underline-offset: .32cqw; }
.qb-scene .qb-entry-mark { color: inherit; font: 700 .94cqw/1 "Quest Slab", Georgia, serif; }
.qb-photo-note {
  position: absolute;
  top: 63%; left: 64%;
  transform: rotate(-9deg);
  color: #4e4438;
  font: italic 1.55cqw/1.15 Georgia, serif;
  opacity: .82;
  pointer-events: none;
}
.qb-photo-note::after { content: ""; display: block; width: 76%; margin: .25cqw 0 0 1.2cqw; border-bottom: 1px solid #544435; transform: rotate(-7deg); }
.qb-scene .qb-index-foot {
  position: absolute;
  bottom: .25cqw; left: 0; right: 4cqw;
  display: block;
  margin: 0;
  padding: .55cqw 0 0;
  border-top: 1px solid rgba(84,61,43,.58);
  color: #5c4c3a;
  font: 700 .76cqw/1.2 "Quest Slab", Georgia, serif;
  letter-spacing: .12em;
}
.qb-scene .qb-index-foot::before { display: none; }

.qb-scene .qb-leaf {
  display: flex;
  flex-direction: column;
  padding: 0 .2cqw 0 4.2cqw;
  overflow: visible;
}
.qb-scene .qb-leaf::before, .qb-scene .qb-leaf::after { display: none; }
.qb-scene .qb-page-content {
  position: relative;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  padding: 0 .15cqw 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #9c805b transparent;
}
.qb-scene .qb-page-overline {
  display: block;
  width: fit-content;
  margin: 0 0 .8cqw;
  padding: .1cqw 2.8cqw .28cqw 0;
  border-bottom: .11cqw solid #a12e20;
  color: #8b291e;
  font: 800 1.05cqw/1.1 "Quest Slab", Georgia, serif;
  letter-spacing: .055em;
}
.qb-scene .qb-page-overline::before { display: none; }
.qb-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 1cqw; }
.qb-scene .qb-page-title {
  margin: 0;
  color: #241b15;
  font: 900 2.65cqw/.96 "Quest Slab", Georgia, serif;
  letter-spacing: .025em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 1px 1px #80644a;
}
.qb-level {
  align-self: end;
  margin-bottom: .15cqw;
  padding: .35cqw .55cqw;
  border: .08cqw solid #962c22;
  color: #9a2b20;
  font: 700 1.33cqw/1 "Quest Slab", Georgia, serif;
  letter-spacing: .12em;
  white-space: nowrap;
}
.qb-scene .qb-page-deck {
  margin: .55cqw 0 .85cqw;
  padding: 0 0 .8cqw;
  border-bottom: 1px solid rgba(91,67,47,.5);
  color: #30251b;
  font: 400 1.04cqw/1.3 "Quest Typewriter", monospace;
}
.qb-scene .qb-page-content .qs-card { position: relative; padding: 0; border: 0; outline: 0; background: none; box-shadow: none; }
.qb-scene .qb-page-content .qs-paper { position: relative; display: block; height: 0; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.qb-scene .qb-page-content .qs-paper::before, .qb-scene .qb-page-content .qs-paper h3, .qb-scene .qb-page-content .qs-pool { display: none; }
.qb-scene .qb-page-content .qs-paper .zc-ico { position: absolute; top: .2cqw; left: .1cqw; width: 2cqw; height: 2cqw; opacity: .8; }
.qb-scene .qb-page-content .qs-body { padding: .1cqw 0 0; }
.qb-scene .qb-page-content .qs-desc, .qb-scene .qb-page-content .ct-text {
  min-height: 4.2cqw;
  margin: 0 0 1.05cqw;
  padding-left: 3.1cqw;
  color: #30241b;
  font: 400 1.02cqw/1.34 "Quest Typewriter", monospace;
}
.qb-scene .qb-page-content .qs-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  width: 100%;
  border: 1px solid #8d7356;
}
.qb-scene .qb-page-content .qs-facts span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5cqw;
  min-height: 2.15cqw;
  padding: .25cqw .4cqw;
  border: 0;
  border-right: 1px solid #8d7356;
  border-radius: 0;
  color: #292119;
  background: rgba(223,200,163,.13);
  font: 400 .88cqw/1.15 "Quest Typewriter", monospace;
  text-align: center;
}
.qb-scene .qb-page-content .qs-facts span:nth-child(4) { border-right: 0; }
.qb-scene .qb-page-content .qs-facts span:nth-child(n+5) { grid-column: 1 / -1; justify-content: start; border-top: 1px solid #8d7356; border-right: 0; padding-left: 1cqw; }
.qb-scene .qb-page-content .qs-facts span:nth-child(1)::before { content: "♟"; font-size: 1.3cqw; }
.qb-scene .qb-page-content .qs-facts span:nth-child(2)::before { content: "♧"; font-size: 1.35cqw; }
.qb-scene .qb-page-content .qs-facts span:nth-child(3)::before { content: "◷"; font-size: 1.4cqw; }
.qb-scene .qb-page-content .qs-facts span:nth-child(4)::before { content: "↗"; font-size: 1.3cqw; }
.qb-scene .qb-page-content .qs-facts span:nth-child(5)::before { content: "♜"; font-size: 1.2cqw; }
.qb-scene .qb-page-content .qs-state { border-left: .2cqw solid #933022; background: rgba(153,71,50,.1); color: #6b2a1f; font: 400 .92cqw/1.2 "Quest Typewriter", monospace; }
.qb-scene .qb-page-content .qs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
  min-height: 5.6cqw;
  margin: 1.4cqw 0 0;
  padding: 0;
  border: 0;
}
.qb-scene .qb-page-content .qs-reward, .qb-scene .qb-page-content .ct-reward {
  display: inline-flex;
  align-items: center;
  gap: .45cqw;
  color: #30231a;
  font: 400 1cqw/1.15 "Quest Typewriter", monospace;
  white-space: nowrap;
}
.qb-scene .qb-page-content .qs-reward .zc-ico, .qb-scene .qb-page-content .ct-reward .zc-ico { display: none; }
.qb-scene .qb-page-content .qs-reward::before, .qb-scene .qb-page-content .ct-reward::before {
  content: "";
  display: block;
  flex: none;
  width: 4.4cqw;
  height: 4.4cqw;
  background: url("/contrats/quest-skull-small.png") center / contain no-repeat;
}
.qb-scene .qb-page-content .qs-reward b, .qb-scene .qb-page-content .ct-reward b { color: #8d2b20; font: 900 2.8cqw/1 "Quest Slab", Georgia, serif; }
.qb-scene .qb-page-content .qs-go {
  flex: none;
  min-width: 13.6cqw;
  min-height: 3.7cqw;
  padding: .3cqw .8cqw;
  border: .13cqw solid #a2644c;
  border-radius: .25cqw;
  color: #f6e9cb;
  background: linear-gradient(#8b2b20,#712018);
  box-shadow: inset 0 0 0 .12cqw #a13d2b, inset 0 2px 2px #d18b6a, 0 4px 5px #3920167a;
  font: 900 1.8cqw/1 "Quest Slab", Georgia, serif;
  letter-spacing: .025em;
  text-shadow: 1px 2px #43130e;
  cursor: pointer;
}
.qb-scene .qb-page-content .qs-go:hover { filter: brightness(1.18); }
.qb-scene .qb-page-content .qs-go:focus-visible { outline: .15cqw solid #a12f22; outline-offset: .15cqw; }
.qb-scene .qb-page-content .zc-panel, .qb-scene .qb-page-content .zc-panel-bar, .qb-scene .qb-page-content .zc-panel-body { background: none; box-shadow: none; }
.qb-scene .qb-page-content .zc-panel { border: 0; }
.qb-scene .qb-page-content .zc-panel-bar { border-bottom: 1px solid #8d7356; }
.qb-scene .qb-page-content .zc-panel-body { color: #30251b; }

.qb-scene .qb-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex: 0 0 5cqw;
  gap: 1cqw;
  margin: 0;
  padding: 1.1cqw .2cqw .1cqw 0;
  border-top: 1px solid rgba(83,57,39,.62);
}
.qb-scene .qb-turn {
  min-width: 8.5cqw;
  min-height: 2.2cqw;
  padding: .25cqw .6cqw;
  border: 1px solid #75573e;
  border-radius: 0;
  color: #291d15;
  background: rgba(215,190,151,.16);
  font: 800 1.02cqw/1 "Quest Slab", Georgia, serif;
  letter-spacing: .04em;
  white-space: nowrap;
}
.qb-scene .qb-turn:hover:not(:disabled), .qb-scene .qb-turn:focus-visible:not(:disabled) { border-color: #8b3022; color: #8b3022; background: rgba(239,219,182,.35); outline: 1px solid #8b3022; }
.qb-scene .qb-turn:disabled { opacity: .6; }
.qb-scene .qb-folio { color: #281d15; font: 700 1.25cqw/1 "Quest Slab", Georgia, serif; letter-spacing: .02em; }

.qb-support, .qb-after, .qb-page-bg .ct-admin-zone { width: min(100% - 32px, 1280px); margin-left: auto; margin-right: auto; }
.qb-support { margin-top: 18px; }
.qb-after { margin-top: 24px; }
@media (min-width: 1101px) { .qb-page-bg .zc-chat.float { display: none; } }

@media (max-width: 1100px) {
  .qb-scene { container-type: normal; width: 100%; aspect-ratio: auto; padding: 10px 10px 18px; overflow: visible; background: #1b1611; }
  .qb-scene .qb-intro { position: relative; inset: auto; display: flex; flex-wrap: wrap; gap: 8px 16px; min-height: 0; margin: 0 0 10px; padding: 13px 14px; border: 1px solid #614834; background: linear-gradient(#30261d,#17120e); }
  .qb-scene .qb-intro h1 { font-size: clamp(23px,5.5vw,34px); white-space: normal; }
  .qb-scene .qb-kicker { padding-left: 0; border: 0; font-size: 12px; }
  .qb-scene .qb-intro-tools { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px 14px; }
  .qb-scene .qb-status, .qb-scene .qb-sound { min-height: 27px; font-size: 12px; }
  .qb-scene .qb-sound { min-height: 40px; }
  .qb-scene .qb-status { gap: 8px; padding-right: 12px; }
  .qb-scene .qb-status::before { width: 8px; height: 8px; }
  .qb-speaker { width: 23px; height: 23px; }
  .qb-scene .qb-page-sound { display: grid; gap: 2px; width: 120px; min-width: 0; }
  .qb-scene .qb-page-sound label { font-size: 12px; }
  .qb-scene .qb-page-sound select { width: 100%; min-height: 40px; padding: 6px 9px; font-size: 13px; }
  .qb-scene .qb-book { position: relative; inset: auto; display: block; width: 100%; height: auto; border: 8px solid #382719; border-radius: 9px; background: #d8bf96; box-shadow: 0 15px 20px #0008; }
  .qb-scene .qb-index { padding: 20px 18px 12px; background: radial-gradient(circle at 15% 20%,#efe1bd,#dac59d 75%,#c8ab80); }
  .qb-scene .qb-index::before { padding: 2px 5px; border-width: 1px; font-size: 13px; }
  .qb-scene .qb-index h2 { margin: 10px 0 8px; padding: 0 0 3px; border-bottom-width: 2px; font-size: 30px; }
  .qb-scene .qb-index-list { display: flex; gap: 5px; height: auto; max-height: none; margin: 0; padding-bottom: 5px; overflow-x: auto; overflow-y: hidden; }
  .qb-scene .qb-chapter, .qb-photo-note, .qb-scene .qb-index-foot { display: none; }
  .qb-scene .qb-entry { display: flex; flex: 0 0 168px; gap: 5px; min-height: 44px; padding: 5px; border: 1px solid #a68a65; font-size: 13px; }
  .qb-scene .qb-entry-num, .qb-scene .qb-entry-mark { font-size: 11px; }
  .qb-scene .qb-entry-title { flex: 1; }
  .qb-scene .qb-leaf { min-height: 420px; padding: 19px 17px 13px; background: radial-gradient(circle at 70% 22%,#f2e2c4,#dec8a4 72%,#c6a67b); box-shadow: inset 0 12px 17px #6f4d2538; }
  .qb-scene .qb-page-content { min-height: 0; overflow: visible; }
  .qb-scene .qb-page-overline { margin: 0 0 14px; padding: 0 28px 5px 0; border-bottom-width: 2px; font-size: 14px; }
  .qb-heading { gap: 8px; }
  .qb-scene .qb-page-title { font-size: clamp(25px,6vw,39px); }
  .qb-level { padding: 3px 5px; border-width: 1px; font-size: 14px; letter-spacing: 0; }
  .qb-scene .qb-page-deck { margin: 8px 0 12px; padding-bottom: 10px; font-size: 13px; }
  .qb-scene .qb-page-content .qs-paper .zc-ico { top: 8px; width: 24px; height: 24px; }
  .qb-scene .qb-page-content .qs-body { padding-top: 3px; }
  .qb-scene .qb-page-content .qs-desc, .qb-scene .qb-page-content .ct-text { min-height: 0; margin: 0 0 18px; padding-left: 31px; font-size: 14px; }
  .qb-scene .qb-page-content .qs-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qb-scene .qb-page-content .qs-facts span { min-height: 37px; padding: 5px; font-size: 12px; }
  .qb-scene .qb-page-content .qs-facts span:nth-child(2) { border-right: 0; }
  .qb-scene .qb-page-content .qs-facts span:nth-child(3), .qb-scene .qb-page-content .qs-facts span:nth-child(4) { border-top: 1px solid #8d7356; }
  .qb-scene .qb-page-content .qs-facts span:nth-child(-n+5)::before { font-size: 18px; }
  .qb-scene .qb-page-content .qs-state { border-left-width: 3px; font-size: 13px; }
  .qb-scene .qb-page-content .qs-foot { min-height: 70px; margin: 16px 0 0; gap: 8px; }
  .qb-scene .qb-page-content .qs-reward, .qb-scene .qb-page-content .ct-reward { gap: 4px; font-size: 13px; }
  .qb-scene .qb-page-content .qs-reward::before, .qb-scene .qb-page-content .ct-reward::before { width: 45px; height: 45px; }
  .qb-scene .qb-page-content .qs-reward b, .qb-scene .qb-page-content .ct-reward b { font-size: 29px; }
  .qb-scene .qb-page-content .qs-go { min-width: 112px; min-height: 44px; padding: 6px 9px; border-width: 2px; border-radius: 3px; font-size: 18px; }
  .qb-scene .qb-controls { align-items: center; flex-basis: auto; gap: 6px; margin-top: 14px; padding: 12px 0 0; }
  .qb-scene .qb-turn { min-width: 86px; min-height: 36px; padding: 5px; font-size: 11px; }
  .qb-scene .qb-folio { font-size: 16px; }
}
@media (max-width: 420px) {
  .qb-scene .qb-status { display: none; }
  .qb-scene .qb-page-title { font-size: 25px; }
  .qb-scene .qb-page-content .qs-foot { display: grid; grid-template-columns: 1fr; }
  .qb-scene .qb-page-content .qs-go { order: 0; width: 100%; margin: 0; }
}
