@font-face {
  font-family: Jua;
  src: url(/assets/jua.woff2) format("woff2");
  font-display: swap;
}
:root {
  --ink: #473d37;
  --paper: #fff9ed;
  --rule: #cfbea5;
  --round: Jua, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family:
    system-ui,
    -apple-system,
    "Malgun Gothic",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-image: radial-gradient(#987d5423 0.8px, transparent 0.9px);
  background-size: 11px 11px;
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible {
  outline: 3px solid #15625b;
  outline-offset: 4px;
}
.inner {
  width: min(1260px, calc(100% - clamp(30px, 6vw, 96px)));
  margin: auto;
}
.top {
  border-bottom: 1px solid var(--rule);
  background: #fff9eee8;
}
.top .inner {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.top h1 {
  font: clamp(25px, 3vw, 37px)/1 var(--round);
  letter-spacing: -0.042em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.top h1 img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.top nav {
  display: flex;
  gap: 15px;
}
.top nav a {
  font: 17px var(--round);
  display: grid;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
}
.top nav a:hover,
.top nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}
#map {
  padding-top: clamp(13px, 2vw, 28px);
}
.map-view {
  width: 100%;
  position: relative;
  isolation: isolate;
  border: 2px solid #5d5147;
  border-radius: 16px;
  box-shadow: 0 4px 0 #a08c714a;
  overflow: hidden;
  background: #829295;
}
.map-view picture {
  display: block;
}
.map-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.map-view {
  aspect-ratio: 2.65;
}
.map-view picture {
  height: 100%;
}
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 3px;
  white-space: nowrap;
  font: clamp(14px, 1.25vw, 19px) var(--round);
  color: #3a332f;
  isolation: isolate;
}
.pin span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 5px;
  background: #fff8e6;
  border: 2px solid #55453c;
  border-radius: 7px;
  box-shadow: 0 2px 0 #463b3590;
}
.pin span:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #684f42;
  background: var(--tone);
}
.pin span:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: calc(50% - 4px);
  bottom: -6px;
  background: #fff8e6;
  border-right: 2px solid #55453c;
  border-bottom: 2px solid #55453c;
  transform: rotate(45deg);
}
.pin:hover span,
.pin:focus-visible span,
.pin:hover span:after,
.pin:focus-visible span:after {
  background: var(--tone);
}
.pin:hover {
  z-index: 2;
}
.pin-lighthouse {
  left: 13%;
  top: 48%;
}
.pin-last-train {
  left: 41%;
  top: 39%;
}
.pin-drum {
  left: 78%;
  top: 42%;
}
.pin-glasshouse {
  left: 66%;
  top: 74%;
}
.pin-post {
  left: 30%;
  top: 77%;
}
.caption {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #68584c;
  padding: 10px 4px 0;
}
.map-dot {
  height: 10px;
  width: 10px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #bb765e;
}
#games {
  padding: clamp(20px, 2.4vw, 33px) 0 32px;
}
.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 11px;
}
.section-title h2 {
  margin: 0;
  font: clamp(25px, 2vw, 31px) var(--round);
  letter-spacing: -0.04em;
}
.section-title span {
  font-size: 13px;
  color: #776659;
}
.library {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}
.card {
  position: relative;
  border: 1.5px solid #776658;
  border-radius: 12px;
  background: #fffdf6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 0 #b6a58b65;
}
.card:hover,
.card:focus-visible {
  border-color: #44382e;
  box-shadow: 0 4px 0 #a18a69;
  transform: translateY(-2px);
}
.character {
  height: clamp(83px, 8.2vw, 113px);
  border-bottom: 1px solid #9a887866;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 110%, #fff7dc6b 0 40%, transparent 41%),
    var(--tone);
}
.character img {
  height: 88%;
  max-width: 75%;
  object-fit: contain;
}
.info {
  padding: 10px 13px 15px;
}
.type {
  font: 13px var(--round);
  color: #786051;
}
.info h3 {
  margin: 3px 14px 5px 0;
  font: clamp(18px, 1.65vw, 23px)/1.15 var(--round);
  letter-spacing: -0.05em;
  word-break: keep-all;
}
.info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
  color: #61564b;
}
.arrow {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 18px;
  color: #675c4c;
}
.skip {
  position: absolute;
  z-index: 5;
  left: 5px;
  top: -80px;
  padding: 12px;
  background: white;
}
.skip:focus {
  top: 5px;
}
@media (max-width: 860px) {
  .library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .map-view {
    aspect-ratio: 2.12;
  }
  .top .inner {
    min-height: 62px;
  }
  .character {
    height: 90px;
  }
}
@media (max-width: 620px) and (orientation: portrait) {
  .inner {
    width: calc(100% - 24px);
  }
  .top h1 {
    font-size: 24px;
    gap: 5px;
  }
  .top h1 img {
    width: 33px;
    height: 34px;
  }
  .top nav {
    gap: 3px;
  }
  .top nav a {
    font-size: 14px;
    padding: 0 4px;
  }
  .top .inner {
    min-height: 52px;
  }
  .map-view {
    aspect-ratio: 1.12;
    border-radius: 12px;
  }
  .pin {
    font-size: 13px;
  }
  .pin span {
    padding: 4px 8px;
  }
  .pin-lighthouse {
    left: 20%;
    top: 32%;
  }
  .pin-last-train {
    left: 71%;
    top: 29%;
  }
  .pin-drum {
    left: 78%;
    top: 48%;
  }
  .pin-glasshouse {
    left: 70%;
    top: 75%;
  }
  .pin-post {
    left: 25%;
    top: 70%;
  }
  .library {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .card {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    min-height: 84px;
  }
  .character {
    height: 100%;
    min-height: 82px;
    border-bottom: 0;
    border-right: 1px solid #9989765c;
  }
  .character img {
    width: 76%;
    height: 68px;
    max-width: none;
  }
  .info {
    padding: 9px 5px 9px 11px;
  }
  .info h3 {
    font-size: 19px;
    margin: 2px 0 3px;
  }
  .info p {
    font-size: 12px;
    line-height: 1.35;
  }
  .arrow {
    position: static;
    align-self: center;
    margin: 0 11px 0 3px;
  }
  .caption {
    font-size: 12px;
  }
  #games {
    padding-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}
.map-view {
  aspect-ratio: 2.35;
}
.map-image {
  object-fit: cover;
}
.pin span:after {
  bottom: auto;
  top: -6px;
  transform: rotate(225deg);
}
.pin-lighthouse {
  left: 12.2%;
  top: 58%;
}
.pin-last-train {
  left: 46%;
  top: 46%;
}
.pin-drum {
  left: 85%;
  top: 49%;
}
.pin-glasshouse {
  left: 67.5%;
  top: 80%;
}
.pin-post {
  left: 29%;
  top: 88%;
}
@media (max-width: 620px) and (orientation: portrait) {
  .map-view {
    aspect-ratio: 0.89;
  }
  .pin-lighthouse {
    left: 18%;
    top: 32%;
  }
  .pin-last-train {
    left: 78%;
    top: 25%;
  }
  .pin-drum {
    left: 81%;
    top: 49%;
  }
  .pin-glasshouse {
    left: 81%;
    top: 76%;
  }
  .pin-post {
    left: 21%;
    top: 73%;
  }
}
.character {
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
@media (min-width: 1000px) and (max-height: 900px) {
  .inner {
    max-width: 1140px;
  }
  .top .inner {
    min-height: 63px;
  }
  #map {
    padding-top: 17px;
  }
  #games {
    padding-top: 19px;
  }
  .character {
    height: 76px;
  }
}
.top nav a.study-link {
  border: 1px solid #546d59;
  border-radius: 9px;
  background: #e2ecd8;
  color: #294e3f;
  min-height: 40px;
  align-self: center;
  padding: 0 12px;
}
@media (max-width: 520px) {
  .top nav a[href="#map"] {
    display: none;
  }
  .top nav a.study-link {
    padding: 0 8px;
  }
}
