@font-face {
  font-family: "Londrina Solid";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/londrina-solid-400.woff2") format("woff2");
}

@font-face {
  font-family: "Londrina Solid";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/londrina-solid-900.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/outfit-variable.woff2") format("woff2");
}

:root {
  --felt: #ede3e5;
  --ink: #2b1d28;
  --cherry: #c9184a;
  --teal: #1a8f8a;
  --mustard: #e0a800;
  --rule: #d8c6cb;
  --face: #faf5f6;
  --cherry-deep: #a50f3a;
  --teal-deep: #0f625e;
  --ink-soft: #5a4756;
  --display: "Londrina Solid", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --card-r: 0.9rem;
  --btn-r: 0.6rem;
  --pad: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--felt);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: var(--cherry-deep);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite {
  position: absolute;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--face);
  border-radius: var(--btn-r);
}

.skip:focus {
  top: 0.5rem;
}

.wrap {
  width: min(72rem, 100% - 2 * var(--pad));
  margin-inline: auto;
}

.ico {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark {
  flex: none;
}

.mark-card {
  fill: var(--cherry);
}

.mark-edge {
  fill: none;
  stroke: var(--face);
  stroke-width: 1.5;
}

.mark-coin {
  fill: var(--mustard);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.mark-eye {
  fill: var(--teal);
}

.pip {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--k, var(--ink));
  color: var(--k-ink, var(--face));
  border: 3px solid var(--face);
}

.k-gate {
  --k: var(--teal);
  --k-ink: var(--ink);
}

.k-fight,
.k-camp {
  --k: var(--cherry);
  --k-ink: var(--face);
}

.k-treasure {
  --k: var(--mustard);
  --k-ink: var(--ink);
}

.k-shop {
  --k: var(--teal);
  --k-ink: var(--ink);
}

.k-death {
  --k: var(--ink);
  --k-ink: var(--face);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.5rem 1.3rem;
  background: var(--cherry);
  color: var(--face);
  font: 600 1rem/1.2 var(--text);
  text-decoration: none;
  border-radius: var(--btn-r);
  border: 3px solid var(--ink);
}

.btn:hover {
  background: var(--cherry-deep);
  color: var(--face);
}

.deckbar {
  border-bottom: 3px dashed var(--rule);
}

.deckbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font: 900 1.55rem/1 var(--display);
  letter-spacing: 0.02em;
}

.mapbtn,
.dlg-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 1rem 0.35rem 0.8rem;
  font: 600 1rem/1 var(--text);
  color: var(--face);
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--btn-r);
  cursor: pointer;
}

.mapbtn:hover,
.dlg-close:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

dialog {
  width: min(34rem, 100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0 1rem 1.5rem;
  color: var(--ink);
  background: var(--felt);
  border: 3px solid var(--ink);
  border-radius: 1.1rem;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgb(43 29 40 / 0.72);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dlg-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  margin-bottom: 0.5rem;
  background: var(--felt);
  border-bottom: 3px dashed var(--rule);
}

.dlg-title {
  margin: 0;
  font: 900 1.7rem/1 var(--display);
}

.runmap {
  --cw: clamp(8.2rem, 38vw, 12rem);
  --row: calc(var(--cw) * 1.4 + 3.2rem);
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
  padding-top: 0.8rem;
}

.runmap-small {
  --cw: clamp(7rem, 30vw, 9.5rem);
  --row: calc(var(--cw) * 1.4 + 2.4rem);
}

.runmap-lines {
  position: absolute;
  inset: 0.8rem 0 0;
  width: 100%;
  height: calc(100% - 0.8rem);
}

.runmap-lines path {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 3;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.runmap-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, var(--row));
  margin: 0;
  padding: 0;
  list-style: none;
}

.stop {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stop-left {
  grid-column: 1;
}

.stop-right {
  grid-column: 2;
}

.stop-mid {
  grid-column: 1 / -1;
}

.stop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--cw);
  aspect-ratio: 5 / 7;
  padding: 0.4rem 0.4rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--face);
  border: 3px solid var(--k);
  border-radius: var(--card-r);
  box-shadow: 0 0.3rem 0 rgb(43 29 40 / 0.14);
}

.stop-card .pip {
  position: absolute;
  top: -0.8rem;
  left: -0.8rem;
  z-index: 2;
}

.stop-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--card-r) - 0.45rem);
}

.stop-name {
  margin-top: 0.5rem;
  padding-inline: 0.2rem;
  font: 900 clamp(1.1rem, 4.6vw, 1.5rem) / 1 var(--display);
  letter-spacing: 0.01em;
}

.stop-note {
  margin-top: auto;
  padding-inline: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.runmap-small .stop-note {
  display: none;
}

.stop-card:hover {
  transform: translateY(-0.25rem) rotate(-1.5deg);
  color: var(--ink);
}

.stop-card[aria-current="page"] {
  background: var(--mustard);
  border-color: var(--ink);
}

.stop-card[aria-current="page"] .stop-note {
  color: var(--ink);
  font-weight: 600;
}

.stop-card[aria-current="page"] .pip {
  background: var(--ink);
  color: var(--face);
}

.stop-spare {
  pointer-events: none;
}

.pip-spare {
  width: 3.6rem;
  height: 3.6rem;
  background: var(--felt);
  color: var(--ink-soft);
  border: 3px dashed var(--ink-soft);
}

.table {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  padding-block: 1.75rem 3rem;
}

.intro {
  max-width: 34rem;
}

.brand-big {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  font: 900 1.7rem/1 var(--display);
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 1.1rem;
  font: 900 clamp(2.8rem, 9vw, 5rem) / 0.95 var(--display);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
}

.intro p {
  margin: 0 0 1rem;
}

.actions {
  margin-block: 1.5rem 1rem;
}

.intro .fine {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.pagehead {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  padding-block: 2rem 1.5rem;
}

.pagehead-title {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.pagehead-title .pip {
  width: 3.4rem;
  height: 3.4rem;
  margin-top: 0.35rem;
  border-color: var(--felt);
}

.pagehead-title h1 {
  margin: 0;
}

.pagehead .lead {
  max-width: 38rem;
  margin: 1.2rem 0 0;
}

.hand {
  --hw: clamp(5.2rem, 21vw, 9.5rem);
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0.8rem 0 0.5rem;
  list-style: none;
}

.hand li {
  width: var(--hw);
  margin-left: calc(var(--hw) * -0.26);
  padding: 0.3rem;
  background: var(--face);
  border: 3px solid var(--k, var(--ink));
  border-radius: var(--card-r);
  box-shadow: 0 0.3rem 0 rgb(43 29 40 / 0.14);
  transform: rotate(var(--r, 0deg));
  transform-origin: 50% 100%;
}

.hand li:first-child {
  margin-left: 0;
}

.hand img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: calc(var(--card-r) - 0.45rem);
}

@keyframes deal {
  from {
    opacity: 0;
    transform: translateY(-1.6rem) rotate(0deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hand li,
  .stop-card {
    animation: deal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  .stop-card {
    transition: transform 0.18s ease-out;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem 3rem;
  padding-block: 1.9rem;
  border-top: 3px dashed var(--rule);
}

.split h2 {
  margin: 0;
  font: 900 clamp(1.9rem, 4.6vw, 2.6rem) / 1.02 var(--display);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.split h3 {
  margin: 1.4rem 0 0.4rem;
  font: 400 1.45rem/1.15 var(--display);
}

.body > :first-child {
  margin-top: 0;
}

.body p {
  max-width: 42rem;
  margin: 0 0 1rem;
}

.body > :last-child {
  margin-bottom: 0;
}

.scroll {
  margin: 0 0 1.2rem;
  overflow-x: auto;
  background: var(--face);
  border: 3px solid var(--ink);
  border-radius: var(--card-r);
}

.ledger {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.45;
}

.ledger th,
.ledger td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 2px dashed var(--rule);
}

.ledger thead th {
  background: var(--ink);
  color: var(--face);
  font: 400 1.2rem/1.2 var(--display);
  letter-spacing: 0.03em;
  border-bottom: 0;
}

.ledger tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.ledger tbody tr:last-child th,
.ledger tbody tr:last-child td {
  border-bottom: 0;
}

.ledger-key th {
  width: 11rem;
}

.bigcard {
  margin: 0 0 1.4rem;
  padding: 0.55rem 0.55rem 0.9rem;
  background: var(--face);
  border: 3px solid var(--k, var(--teal));
  border-radius: var(--card-r);
  box-shadow: 0 0.3rem 0 rgb(43 29 40 / 0.14);
}

.bigcard img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--card-r) - 0.4rem);
}

.bigcard figcaption {
  padding: 0.7rem 0.4rem 0;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.cast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.cast li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cast-card {
  padding: 0.3rem;
  background: var(--face);
  border: 3px solid var(--k);
  border-radius: var(--card-r);
  box-shadow: 0 0.3rem 0 rgb(43 29 40 / 0.14);
}

.cast-card .crop {
  display: block;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border-radius: calc(var(--card-r) - 0.45rem);
}

.cast-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.7);
}

.cast p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cast strong {
  display: block;
  font: 900 1.5rem/1 var(--display);
  letter-spacing: 0.01em;
}

.hero-rock {
  --k: var(--teal);
}

.hero-jack {
  --k: var(--ink);
}

.hero-rae {
  --k: var(--cherry);
}

.hero-empty {
  --k: var(--mustard);
}

.unsure {
  margin: 0 0 1.2rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 3px dashed var(--cherry-deep);
  border-radius: var(--card-r);
}

.unsure p {
  margin: 0 0 0.5rem;
  font: 900 1.4rem/1.1 var(--display);
}

.unsure ul {
  margin: 0;
  padding-left: 1.2rem;
}

.unsure li {
  margin-bottom: 0.3rem;
}

.unsure li::marker {
  color: var(--cherry-deep);
}

.hops {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem 3rem;
  border-top: 3px dashed var(--rule);
}

.hop {
  position: relative;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex: 1 1 15rem;
  max-width: 24rem;
  padding: 0.9rem 1rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--face);
  border: 3px solid var(--k);
  border-radius: var(--card-r);
}

.hop-next {
  margin-left: auto;
}

.hop:hover {
  background: var(--k);
  color: var(--k-ink);
}

.hop:hover .pip {
  border-color: var(--k);
}

.hop-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hop-dir {
  font-size: 0.85rem;
}

.hop-name {
  font: 900 1.4rem/1.1 var(--display);
  letter-spacing: 0.01em;
}

.legal {
  padding-bottom: 3rem;
}

.legal-card {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  padding: 1.4rem 1.5rem 1.5rem;
  background: var(--face);
  border: 3px solid var(--ink);
  border-radius: var(--card-r);
}

.legal-card h2 {
  margin: 0 0 0.6rem;
  font: 900 1.7rem/1.1 var(--display);
}

.legal-card p {
  margin: 0 0 0.8rem;
}

.legal-card > :last-child {
  margin-bottom: 0;
}

.aboutcard {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  max-width: 44rem;
  margin: 0 0 1.5rem;
}

.aboutcard img {
  flex: none;
  width: 6.5rem;
  height: 6.5rem;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: var(--card-r);
}

.aboutcard p {
  margin: 0;
}

.foot {
  margin-top: 1rem;
  padding-block: 2.2rem 2.5rem;
  background: var(--ink);
  color: var(--face);
}

.foot a {
  color: var(--mustard);
}

.foot a:hover {
  color: var(--face);
}

.foot :focus-visible {
  outline-color: var(--mustard);
}

.foot-in {
  display: grid;
  gap: 1.8rem;
}

.foot-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font: 900 1.6rem/1 var(--display);
  letter-spacing: 0.02em;
}

.foot-name .mark-edge {
  stroke: var(--face);
}

.foot-fine {
  max-width: 36rem;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.foot-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-block;
  padding-block: 0.4rem;
}

.foot-mail {
  margin: 0;
  font-weight: 600;
}

.page-lost {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem var(--pad);
}

.deadcard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(20rem, 100%);
  aspect-ratio: 5 / 7;
  padding: 1.5rem;
  text-align: center;
  background: var(--face);
  border: 3px solid var(--ink);
  border-radius: 1.1rem;
  box-shadow: 0 0.4rem 0 rgb(43 29 40 / 0.14);
  transform: rotate(-2deg);
}

.deadcard .pip {
  width: 4.6rem;
  height: 4.6rem;
  margin: 0 auto 1rem;
}

.deadcard .ico {
  width: 2.6rem;
  height: 2.6rem;
}

.deadcard h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.4rem, 11vw, 3.2rem);
}

.deadcard p {
  margin: 0;
}

@media (min-width: 40rem) {
  :root {
    --pad: 1.5rem;
  }

  .cast {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .foot-in {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 48rem) {
  .pagehead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    padding-block: 3rem 2rem;
  }

  .hand {
    --hw: clamp(7rem, 15vw, 9.5rem);
  }
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  }

  .split h2 {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}

@media (min-width: 62rem) {
  .table {
    grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
    gap: 4rem;
    align-items: start;
    padding-block: 3rem 4rem;
  }

  .intro {
    position: sticky;
    top: 2rem;
  }
}

.sigil {
  position: absolute;
  left: 50%;
  bottom: 2.1rem;
  width: 28%;
  aspect-ratio: 1;
  color: var(--k);
  opacity: 0.2;
  transform: translateX(-50%);
  pointer-events: none;
}

.sigil .ico {
  width: 100%;
  height: 100%;
  stroke-width: 1.4;
}

@media (min-width: 40rem) {
  .sigil {
    width: 34%;
    bottom: 2.15rem;
  }
}

.runmap-small .sigil {
  bottom: 0.7rem;
  width: 24%;
}

.runmap-small .stop-card[aria-current="page"] .stop-note {
  display: block;
}

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(201 24 74 / 0.2);
}
