@font-face {
  font-family: Silk;
  src: url(type/Silkscreen-Regular.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url(type/cormorant-garamond-medium.ttf) format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #111729;
  --deep: #171e33;
  --gold: #edcd91;
  --ivory: #fff2ce;
  --bronze: #a08055;
  --enamel: linear-gradient(#30354d, #1b243b 28%, #161d32);
  --paper: #eadfc5;
  --ink: #393529;
  --pixel: Silk, monospace;
  --serif: Cormorant, Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font:
    16px/1.5 Georgia,
    serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
summary {
  cursor: pointer;
  font: inherit;
  color: inherit;
}
button {
  background: none;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
video:focus-visible {
  outline: 3px solid #d28e39;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  z-index: 20;
  left: 16px;
  top: -90px;
  background: var(--gold);
  color: var(--ink);
  padding: 9px;
}
.skip:focus {
  top: 8px;
}
.hud {
  background: var(--enamel);
  border-bottom: 1px solid #b39260;
  box-shadow: 0 3px #111729;
  position: relative;
  z-index: 2;
}
.hud-inner,
footer {
  width: min(1320px, 91%);
  margin: auto;
  display: flex;
  align-items: center;
}
.hud-inner {
  min-height: 66px;
  gap: 38px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 36px/0.9 var(--serif);
  color: var(--ivory);
}
.brand img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.hud nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
}
.hud nav a,
.hud button,
.speaker,
.subtitle,
.kicker,
.folios a,
.map-key,
.veil-switch,
.ink-link,
.reel-link,
.capture small,
footer > a:not(.brand),
#screening p,
.item-tag {
  font: 12px/1.4 var(--pixel);
}
.hud nav a {
  color: #d7d4cb;
}
.hud a:hover,
.hud button:hover,
footer a:hover {
  color: var(--gold);
}
.hud button {
  border: 1px solid #927953;
  box-shadow: inset 0 0 0 2px #151b2f;
  background: #212a40;
  padding: 8px 12px;
  color: var(--gold);
}
.hud button span:first-child {
  font-family: Georgia;
  font-size: 16px;
}
.title-screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #161e34;
  min-height: clamp(520px, 70svh, 840px);
  display: grid;
  align-items: center;
}
.title-screen picture,
.backdrop,
.title-screen:before,
.motes,
.screen-edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.backdrop {
  object-fit: cover;
  object-position: 92% 24%;
}
.title-screen picture {
  z-index: -4;
}
.title-screen:before {
  content: "";
  z-index: -2;
  background:
    linear-gradient(90deg, #060c1b70, #0b14293d 35%, transparent 64%),
    linear-gradient(0deg, #1117298f, transparent 18%);
}
.screen-edge {
  inset: 14px;
  width: auto;
  height: auto;
  border: 1px solid #efe1a844;
  z-index: -1;
  background:
    linear-gradient(var(--gold), var(--gold)) left top/30px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top/2px 30px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom/30px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom/2px 30px no-repeat;
}
.screen-edge:before,
.screen-edge:after {
  content: "◆";
  position: absolute;
  color: var(--gold);
  font: 11px/1 Georgia;
}
.screen-edge:before {
  top: -6px;
  right: -5px;
}
.screen-edge:after {
  bottom: -6px;
  left: -5px;
}
.title-content {
  position: relative;
  width: min(1270px, 84%);
  margin: 0 auto;
  padding: 56px 0 64px;
}
.title-lockup {
  width: max-content;
  max-width: 100%;
}
.title-lockup h1 {
  font: 500 clamp(100px, 10.8vw, 160px) / 0.82 var(--serif);
  letter-spacing: -0.045em;
  color: #f6dfa9;
  margin: 13px 0 17px;
  text-shadow:
    0 2px #a77e52,
    2px 4px #141c34,
    0 9px 28px #070d21;
}
.crown {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 24px;
}
.crown i {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ddbd7d);
}
.crown i:first-child {
  display: none;
}
.crown i:last-child {
  transform: rotate(180deg);
}
.crown b {
  width: 31px;
  height: 22px;
  background: var(--gold);
  clip-path: polygon(
    0 15%,
    30% 45%,
    49% 0,
    60% 20%,
    47% 48%,
    57% 50%,
    50% 85%,
    66% 46%,
    57% 43%,
    68% 28%,
    72% 45%,
    100% 12%,
    88% 84%,
    13% 84%,
    13% 91%,
    87% 91%,
    86% 100%,
    15% 100%
  );
}
.subtitle {
  color: #f5d89c;
  font-size: clamp(11px, 1.17vw, 18px);
  letter-spacing: 0.11em;
  margin: 0;
  text-shadow: 1px 2px 1px #051222;
}
.game-menu {
  display: grid;
  margin-top: 36px;
  width: min(328px, 100%);
  padding: 7px;
  background: linear-gradient(112deg, #323b53f2, #1b233bee 64%, #171e32ef);
  border: 1px solid #99805a;
  box-shadow:
    inset 0 0 0 3px #141a2b,
    0 0 0 2px #131322,
    4px 5px 0 #070f215c;
}
.game-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: #e1decc;
  font: 15px/1.4 var(--pixel);
  border: 1px solid transparent;
}
.game-menu small {
  margin-left: auto;
  font: 15px monospace;
}
.game-menu .pointer {
  width: 12px;
  font: 11px/1 Arial;
  opacity: 0;
}
.game-menu a:first-child,
.game-menu:has(a:hover) a:hover,
.game-menu:has(a:focus-visible) a:focus-visible {
  color: #302c26;
  background: linear-gradient(90deg, #ebce91, #d1ae75);
  border-color: #f3dba5;
  box-shadow: inset 0 0 0 2px #bc995c;
}
.game-menu a:first-child .pointer,
.game-menu a:hover .pointer,
.game-menu a:focus-visible .pointer {
  opacity: 1;
}
.game-menu:has(a:not(:first-child):hover) a:first-child:not(:hover),
.game-menu:has(a:not(:first-child):focus-visible)
  a:first-child:not(:focus-visible) {
  background: transparent;
  border-color: transparent;
  color: #e1decc;
  box-shadow: none;
}
.game-menu:has(a:not(:first-child):hover) a:first-child .pointer,
.game-menu:has(a:not(:first-child):focus-visible) a:first-child .pointer {
  opacity: 0;
}
.motes {
  z-index: -1;
  overflow: hidden;
}
.motes i {
  position: absolute;
  top: 69%;
  left: 58%;
  width: 3px;
  height: 3px;
  background: #ffda8a;
  box-shadow: 0 0 8px #ffc86c;
  animation: drift 6s infinite ease-in-out both;
}
.motes i:nth-child(2) {
  top: 45%;
  left: 71%;
  animation-delay: -2s;
}
.motes i:nth-child(3) {
  top: 59%;
  left: 84%;
  animation-delay: -4s;
}
.motes i:nth-child(4) {
  top: 73%;
  left: 63%;
  animation-delay: -1s;
}
.motes i:nth-child(5) {
  top: 78%;
  left: 79%;
  animation-delay: -3s;
}
.motes i:nth-child(6) {
  top: 66%;
  left: 44%;
  animation-delay: -5s;
}
.motes i:nth-child(7) {
  top: 81%;
  left: 70%;
  animation-delay: -2.7s;
}
@keyframes drift {
  0%,
  100% {
    opacity: 0;
    transform: translate(0, 5px);
  }
  40% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.2;
    transform: translate(7px, -22px);
  }
}
.dialogue {
  border-block: 1px solid #968256;
  background: var(--enamel);
  box-shadow:
    inset 0 3px #121622,
    inset 0 -3px #121622;
}
.dialogue-inner {
  width: min(1160px, 86%);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 110px;
  padding: 15px 0;
}
.dialogue img {
  width: 54px;
  height: auto;
}
.speaker {
  color: var(--gold);
  margin: 0 0 5px;
}
.speaker span {
  margin-left: 8px;
  color: #9fa6ae;
  font-size: 10px;
}
.dialogue #speech {
  margin: 0;
  font: 500 clamp(20px, 2vw, 28px) / 1.18 var(--serif);
  color: #eee8d5;
}
.dialogue button {
  margin-left: auto;
  padding: 14px 8px;
  border: 0;
  color: var(--gold);
  font-size: 16px;
}
.gameplay,
.journal {
  max-width: 1250px;
  width: 89%;
  margin-inline: auto;
}
.gameplay {
  padding: clamp(40px, 5.5vw, 76px) 0 0;
}
.gameplay-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 22px;
}
.gameplay h2,
.journal h2 {
  font: 500 clamp(42px, 4.7vw, 66px) / 0.98 var(--serif);
  margin: 0;
  letter-spacing: -0.035em;
}
.reel-link {
  padding: 10px 15px;
  color: var(--gold);
  border: 1px solid var(--bronze);
  background: var(--deep);
}
.reel-link:hover {
  background: #262e47;
  color: var(--ivory);
}
.capture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 30px);
}
.capture {
  margin: 0;
  padding: 5px;
  border: 1px solid var(--bronze);
  box-shadow: inset 0 0 0 2px #0b1020;
  background: var(--enamel);
}
.capture img {
  display: block;
  width: 100%;
  height: auto;
}
.capture figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 12px;
  flex-wrap: wrap;
  padding: 9px 12px 6px;
  color: var(--ivory);
  font: 500 clamp(24px, 2.55vw, 34px) / 1.06 var(--serif);
}
.capture small {
  color: var(--gold);
  font-size: 10px;
}
.journal {
  padding: clamp(56px, 7vw, 96px) 0 68px;
}
.journal-head {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 22px;
}
.rule {
  flex: 1;
  height: 5px;
  border-block: 1px solid #776b50;
  position: relative;
}
.rule:after {
  content: "◆";
  font-size: 11px;
  position: absolute;
  right: 0;
  top: -8px;
  color: var(--gold);
}
.folios {
  display: flex;
  gap: 4px;
  align-items: end;
}
.folios a {
  color: #cdc8b8;
  background: #282a33;
  border: 1px solid #7b6f55;
  border-bottom: 0;
  padding: 12px 20px 10px;
  clip-path: polygon(0 6px, 6px 0, 100% 0, 100% 100%, 0 100%);
}
.folios a[aria-current="page"] {
  color: var(--ink);
  background: #dfd0ad;
}
.paper {
  scroll-margin-top: 10px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 95%, #d6c7a2aa, transparent 52%),
    repeating-linear-gradient(94deg, #b2a17c0a 0 1px, transparent 2px 5px),
    #e9ddc1;
  border: 5px double #9e8860;
  box-shadow:
    3px 4px #292837,
    5px 6px #736447;
  padding: clamp(22px, 3.2vw, 44px);
  margin: 0 0 12px;
  color-scheme: light;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #a99a79;
  padding-bottom: 15px;
  margin-bottom: 22px;
}
.kicker,
.item-tag {
  font-size: 10px;
  color: #696044;
}
.paper h3 {
  font: 400 clamp(37px, 4.2vw, 60px) / 0.98 var(--serif);
  letter-spacing: -0.045em;
  margin: 2px 0 0;
}
.veil-switch,
.ink-link {
  border: 1px solid #857452;
  padding: 10px 13px;
  background: #dacaa6;
  color: #393729;
}
.veil-switch:hover,
.ink-link:hover {
  background: #ccbb93;
}
.atlas-spread {
  display: grid;
  grid-template-columns: 1.23fr 1fr;
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  aspect-ratio: 5/3;
  background: #ccc09a url(journal/atlas-0.webp?v=0610692) center/100% 100%;
  outline: 1px solid #9c8c66;
  border: 3px solid #d9caab;
}
.map-grid.dark {
  background-image: url(journal/atlas-1.webp?v=0610692);
}
.map-grid button {
  position: relative;
  border: 1px dashed #847a5d35;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 2px;
  line-height: 1.1;
}
.map-grid button > span {
  font:
    600 clamp(10px, 0.85vw, 13px) / 1.05 Georgia,
    serif;
  background: #ece1c3e8;
  color: #3e3a2b;
  padding: 3px 5px;
}
.map-grid button[aria-pressed="true"] {
  outline: 2px solid #8a552d;
  outline-offset: -3px;
  background: #ffdf7e20;
}
.map-grid button[aria-pressed="true"] > span {
  background: #59462f;
  color: #fff1bd;
}
.map-grid button:hover {
  background: #fff3bb41;
}
.map-key {
  color: #736347;
  font-size: 10px;
  margin: 10px 0 0;
}
.region,
.item-detail {
  margin: 0;
}
.mat {
  padding: 4px;
  background: #2d302b;
  outline: 1px solid #968666;
}
.mat img {
  display: block;
  width: 100%;
  height: auto;
}
.paper h4 {
  font: 500 31px/1.06 var(--serif);
  margin: 13px 0 6px;
  letter-spacing: -0.025em;
}
.paper p {
  margin: 5px 0 0;
  color: #514c3c;
}
.gear-spread,
.handbook {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  align-items: start;
}
.gear-spread {
  margin-top: 20px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.item-grid button {
  aspect-ratio: 1.3;
  background: var(--enamel);
  border: 3px double #948260;
  padding: 2px;
}
.item-grid button[aria-pressed="true"] {
  background: #36415e;
  border-color: #f7cf78;
  outline: 2px solid #685735;
}
.item-grid button:hover {
  background: #3b4563;
}
.item-grid img,
.item-detail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.item-detail img {
  width: 190px;
  height: 145px;
  background: radial-gradient(ellipse, #b8a37966, transparent 68%);
}
.handbook h4 {
  margin-top: 2px;
}
.ink-link {
  display: inline-block;
  margin-top: 20px;
}
.control-list details {
  border-bottom: 1px solid #af9f7e;
  padding-bottom: 7px;
}
.control-list summary {
  font: 500 24px var(--serif);
  padding: 5px 0;
}
.control-list dl {
  font: 14px/1.5 Georgia;
  margin: 7px 0;
}
.control-list dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}
.control-list dd {
  margin: 0;
  text-align: right;
}
.control-list p {
  font-size: 15px;
}
footer {
  border-top: 1px solid #726a50;
  min-height: 84px;
  gap: 26px;
}
footer > a:nth-child(2) {
  margin-left: auto;
}
footer a:not(.brand) {
  font-size: 10px;
}
#screening {
  width: min(930px, 94vw);
  padding: 0;
  max-height: 94svh;
  overflow: auto;
  background: #1b2030;
  color: var(--ivory);
  border: 4px double #ac9466;
}
#screening::backdrop {
  background: #080d1deb;
}
.film-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
}
.film-top h2 {
  font: 500 38px var(--serif);
  margin: 0;
}
.film-top button {
  font: 25px monospace;
  border: 0;
  min-width: 42px;
  min-height: 42px;
}
#screening video {
  display: block;
  width: 100%;
}
#screening p {
  font-size: 10px;
  margin: 10px 15px 15px;
}
@media (max-width: 850px) {
  .hud-inner {
    gap: 16px;
  }
  .hud nav {
    gap: 15px;
  }
  .hud nav a,
  .hud button {
    font-size: 10px;
  }
  .atlas-spread {
    grid-template-columns: 1fr 1fr;
  }
  .map-grid {
    aspect-ratio: 1.4;
  }
  .brand {
    font-size: 28px;
  }
  .title-content {
    width: 85%;
  }
}
@media (max-width: 740px) {
  .hud nav {
    display: none;
  }
  .hud button {
    margin-left: auto;
  }
}
@media (max-width: 650px) {
  .hud-inner {
    width: 91%;
    min-height: 52px;
  }
  .hud button {
    padding: 5px 8px;
  }
  .title-screen {
    min-height: clamp(552px, 73svh, 675px);
    align-items: end;
  }
  .title-screen picture {
    height: 74%;
  }
  .title-screen:before {
    background: linear-gradient(
      0deg,
      #111729 25%,
      #111729ad 38%,
      #10192f35 51%,
      transparent 66%
    );
  }
  .backdrop {
    object-position: center 46%;
  }
  .title-content {
    width: 88%;
    padding: 85px 0 28px;
  }
  .title-lockup {
    margin-inline: auto;
    text-align: center;
  }
  .title-lockup h1 {
    font-size: clamp(70px, 21.5vw, 116px);
    margin: 8px 0 11px;
  }
  .crown {
    justify-content: center;
    height: 16px;
  }
  .crown i:first-child {
    display: block;
  }
  .crown b {
    height: 17px;
    width: 24px;
  }
  .subtitle {
    font-size: clamp(9px, 2.7vw, 14px);
    letter-spacing: 0.07em;
  }
  .game-menu {
    width: min(290px, 93%);
    margin: 17px auto 0;
    padding: 4px;
  }
  .game-menu a {
    font-size: 12px;
    padding: 6px 9px;
  }
  .screen-edge {
    inset: 8px;
  }
  .dialogue-inner {
    width: 91%;
    gap: 10px;
    min-height: 111px;
    padding: 12px 0;
  }
  .dialogue img {
    width: 43px;
  }
  .dialogue #speech {
    font-size: 20px;
  }
  .speaker {
    font-size: 11px;
  }
  .speaker span {
    font-size: 8px;
    margin-left: 4px;
  }
  .dialogue button {
    font-size: 12px;
    padding: 14px 5px;
  }
  .capture-grid {
    grid-template-columns: 1fr;
  }
  .gameplay h2 {
    font-size: 40px;
  }
  .gameplay,
  .journal {
    width: 91%;
  }
  .journal {
    padding: 35px 0 45px;
  }
  .journal-head {
    gap: 12px;
    margin-bottom: 16px;
  }
  .journal h2 {
    font-size: 39px;
  }
  .folios {
    gap: 3px;
  }
  .folios a {
    padding: 9px 10px;
    font-size: 10px;
  }
  .paper {
    padding: 15px;
  }
  .atlas-spread,
  .handbook,
  .gear-spread {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .map-grid {
    aspect-ratio: 1.68;
  }
  .map-grid button > span {
    font-size: 10px;
    padding: 2px;
  }
  .page-head {
    gap: 8px;
    margin-bottom: 15px;
  }
  .veil-switch {
    padding: 7px;
    font-size: 9px;
    max-width: 130px;
  }
  .gear-spread {
    grid-template-columns: 1.1fr 1fr;
    gap: 12px;
  }
  .item-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }
  .item-detail img {
    width: 115px;
    height: 80px;
  }
  .paper h4 {
    font-size: 26px;
  }
  .paper p {
    font-size: 15px;
  }
  .map-key {
    font-size: 9px !important;
  }
  .hud .brand img,
  footer .brand img {
    width: 25px;
    height: 25px;
  }
  footer {
    gap: 12px;
    min-height: 66px;
  }
  footer > a:nth-child(2) {
    display: none;
  }
  footer > a:last-child {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motes {
    display: none;
  }
}
.ringing .crown {
  filter: drop-shadow(0 0 8px #ffd97c);
}
.ringing .screen-edge {
  border-color: #edce89;
}
.ringing #ring {
  color: #fff2cb;
  background: #41383b;
}
.journal-intro {
  max-width: 690px;
  color: #d2cbb7;
  margin: -8px 0 21px;
  font: 21px/1.28 var(--serif);
}
.resonance {
  position: absolute;
  left: 85%;
  top: 66%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
}
.ringing .resonance:before,
.ringing .resonance:after {
  content: "";
  position: absolute;
  inset: -24px;
  border: 1px solid #fff1b5;
  border-radius: 50%;
  animation: echo 1.5s ease-out both;
}
.ringing .resonance:after {
  animation-delay: 0.25s;
}
@keyframes echo {
  from {
    opacity: 0.75;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(3.3);
  }
}
@media (max-width: 850px) {
  .resonance {
    left: 82%;
    top: 58%;
  }
}
@media (max-width: 650px) {
  .resonance {
    left: 73%;
    top: 47%;
  }
  .journal-intro {
    font-size: 19px;
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ringing .resonance {
    display: none;
  }
}
