@font-face {
  font-family: "Quadrant Text Mono";
  src: url("fonts/QuadrantTextMono-Regular.woff2") format("woff2"), url("fonts/QuadrantTextMono-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quadrant Text Mono";
  src: url("fonts/QuadrantTextMono-RegularItalic.woff2") format("woff2"), url("fonts/QuadrantTextMono-RegularItalic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Director";
  src: url("fonts/Director-Regular.woff2") format("woff2"), url("fonts/Director-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Director";
  src: url("fonts/Director-Light.woff2") format("woff2"), url("fonts/Director-Light.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Director";
  src: url("fonts/Director-bold.woff2") format("woff2"), url("fonts/Director-bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Compagnon";
  src: url("fonts/Compagnon-Bold.woff2") format("woff2"), url("fonts/Compagnon-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
:root {
  --scriptFont: "Compagnon";
  --bodyFont: "Director";
  --serifFont: "Director";
  --pink: #F38DA7;
  --pink-light: #F3BEBC;
  --red: #FB4201;
  --orange: #F09318;
  --yellow: #E7C615;
  --green: #72BA3E;
  --blue: #90C1E1;
  --brown: #BD9067;
  --gray: #9c9c9c;
  --white: #fff;
  --bg: #fff;
  --bg-light: #fff;
  --text: #000;
  --text-shadow: #121212;
  --hover-shadow: rgba(221, 221, 221, 0.5);
  --hover-shadow-light: rgba(221, 221, 221, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serifFont), serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lightbg, [fx~=lightbg] {
  background: #fff;
}

.bVignette, [fx~=bVignette] {
  box-shadow: 0 0 100px 100px rgba(0, 0, 0, 0.5) inset;
}

.darken, [fx~=darken] {
  filter: contrast(1.2) brightness(0.8);
}

.xdarken, [fx~=xdarken] {
  filter: contrast(1.4) brightness(0.8);
}

.xdarkengray, [fx~=xdarkengray] {
  filter: contrast(1.5) brightness(0.7) grayscale(1);
}

.blur, [fx~=blur] {
  filter: blur(2px);
}

.blur5, [fx~=blur5] {
  filter: blur(5px);
}

.blur8, [fx~=blur8] {
  filter: blur(8px);
}

.bright, [fx~=bright] {
  filter: brightness(4) contrast(1.5);
}

.xbw, [fx~=xbw] {
  filter: grayscale(1) contrast(1.5) brightness(0.7);
}

.xxbw, [fx~=xxbw] {
  filter: grayscale(1) contrast(2) brightness(1);
}

.xdark, [fx~=xdark] {
  filter: brightness(0.5) contrast(2);
}

.xxdark, [fx~=xxdark] {
  filter: brightness(0.1) contrast(2);
}

.contrast, [fx~=contrast] {
  filter: contrast(1.5);
}

.xcontrast, [fx~=xcontrast] {
  filter: contrast(2);
}

.xxcontrast, [fx~=xxcontrast] {
  filter: contrast(2.5);
}

.xbright, [fx~=xbright] {
  filter: brightness(6) contrast(2);
}

.xxbright, [fx~=xxbright] {
  filter: brightness(10) contrast(3);
}

.invert, [fx~=invert] {
  filter: invert(1);
}

.xxbrightHover, [fx~=xxbrightHover] {
  pointer-events: all;
  z-index: 10;
  transition: all 0.3s ease-in-out;
}
.xxbrightHover:hover, [fx~=xxbrightHover]:hover {
  filter: brightness(10) contrast(3);
}

* {
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* ---- LANDING ---- */
#landing {
  position: relative;
  z-index: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}
#landing h1 {
  font-size: 7.5vw;
  line-height: 130%;
  text-transform: uppercase;
}
#landing small {
  background: #fff;
}
#landing img {
  width: 80%;
  max-width: 220px;
  margin: 2rem 0;
}

.enter {
  font-size: 0.8rem;
}

#title-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 700;
  width: 100%;
  padding: 0 1.5rem;
  pointer-events: auto;
  cursor: pointer;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
}
#title-hint.visible {
  opacity: 1;
}
#title-hint span {
  display: inline;
  padding: 0.12em 0.35em 0.18em;
  color: #fff;
  font-family: var(--scriptFont), serif;
  font-size: clamp(1.25rem, 3.2vw, 2.8rem);
  line-height: 1.35;
}

#title-vignette {
  position: fixed;
  inset: -12%;
  z-index: 699;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.52) 70%, rgba(255, 255, 255, 0.94) 100%);
  transition: opacity 0.8s ease;
}
#title-vignette.visible {
  opacity: 1;
}

#landing-return {
  font-size: 0.7rem;
  margin-top: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
}
#landing-return:hover {
  color: #000;
}

hr {
  border: 0;
}

/* ---- WORLD (the game canvas) ---- */
#world {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  transition: background-color 1s ease;
}
#world.active {
  display: block;
}

#world-bg-a,
#world-bg-b {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease;
  opacity: 0;
  pointer-events: none;
}
#world-bg-a.visible,
#world-bg-b.visible {
  opacity: 1;
}

#world-objects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.world-obj {
  position: absolute;
  pointer-events: none;
  image-rendering: pixelated;
  /* SPECIAL CLASSES HERE */
}
.world-obj img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---- CAPTION ---- */
#caption {
  position: fixed;
  width: 100%;
  left: 0;
  z-index: 600; /* above the auto depth band (160-440) and sky (460) */
  pointer-events: none;
  text-align: center;
  opacity: 0;
  line-height: 1.5;
}
#caption span {
  background: yellow;
  color: rgb(0, 0, 0);
  padding-bottom: 1rem;
  max-width: max(80%, 600px);
  font-size: 1.5rem;
  font-weight: normal;
  font-family: var(--scriptFont), script;
}
#caption.visible {
  opacity: 1;
}
#caption.top {
  top: 64px;
  bottom: auto;
}
#caption.bottom {
  bottom: 64px;
  top: auto;
}
#caption.muted {
  color: rgba(0, 0, 0, 0.8);
}
#caption.secret {
  color: #c44;
  font-size: 0.75rem;
}

/* ---- DEBUG ---- */
[id^=dbg-] {
  position: fixed;
  font: 10px monospace;
  color: rgba(0, 0, 0, 0.3);
  z-index: 600;
  pointer-events: none;
}

#dbg-tl {
  top: 4px;
  left: 4px;
}

#dbg-tr {
  top: 4px;
  right: 4px;
  text-align: right;
}

#dbg-bl {
  bottom: 4px;
  left: 4px;
}

#dbg-br {
  bottom: 4px;
  right: 4px;
  text-align: right;
}

#dbg-story {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

#dbg-flags {
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  white-space: pre-line;
  line-height: 1.6;
}

/* ---- HUD ---- */
#hud {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.25);
  z-index: 600;
  pointer-events: none;
  letter-spacing: 1px;
}

/*# sourceMappingURL=index.css.map */
