:root {
  --clr-primary: rgb(28 121 200);
  --clr-secondary: rgb(8 91 153);
  --clr-tertiary: rgb(9 33 45);
  --clr-accent: rgb(229 57 78);
  --clr-ghost: rgb(210 225 239);
  --background: linear-gradient(
  	180deg,
  	var(--clr-primary),
  	var(--clr-secondary),
  	var(--clr-tertiary)
  );
  --fs-200: clamp(0.82rem, calc(0.8rem + 0.08vw), 0.86rem);
  --fs-300: clamp(0.94rem, calc(0.92rem + 0.08vw), 0.98rem);
  --fs-400: clamp(1.13rem, calc(1.06rem + 0.33vw), 1.31rem);
  --fs-500: clamp(1.35rem, calc(1.21rem + 0.69vw), 1.75rem);
  --fs-600: clamp(1.62rem, calc(1.37rem + 1.24vw), 2.33rem);
  --fs-700: clamp(1.94rem, calc(1.54rem + 2.03vw), 3.11rem);
  --fs-800: clamp(2.33rem, calc(1.7rem + 3.15vw), 4.14rem);
  --fs-900: clamp(2.8rem, calc(1.85rem + 4.74vw), 5.52rem);
  --fs-1000: clamp(5.2rem, calc(2.46rem + 6.5vw), 12rem);
  --trans-lazy: linear(
  	0,
  	0.008 1.1%,
  	0.031 2.2%,
  	0.129 4.8%,
  	0.257 7.2%,
  	0.671 14.2%,
  	0.789 16.5%,
  	0.881 18.6%,
  	0.957 20.7%,
  	1.019 22.9%,
  	1.063 25.1%,
  	1.094 27.4%,
  	1.114 30.7%,
  	1.112 34.5%,
  	1.018 49.9%,
  	0.99 59.1%,
  	1
  );
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding: 0;
  position: relative;
  color: #ffffff;
  background-color: var(--clr-tertiary);
  background-image: url("/assets/img/back_dither-left.png"), url("/assets/img/back_dither-right.png");
  background-position: left, right;
  background-size: 45%;
  background-repeat: repeat-y;
  font-family: "range-sans-variable", sans-serif;
  font-variation-settings: "wght" 300;
  font-size: var(--fs-400);
}

main {
  container-type: inline-size;
  container-name: main;
  width: 80%;
  margin-inline: auto;
  text-wrap: balance;
}

section {
  position: relative;
}

h1,
h2,
h3 {
  margin: 1rem;
  text-wrap: pretty;
}

h1 {
  margin: 1rem;
  color: var(--clr-primary);
  font-size: var(--fs-800);
  font-variation-settings: "wght" 100;
}

h2 {
  margin: 1rem;
  color: var(--clr-tertiary);
  font-size: var(--fs-500);
  font-variation-settings: "wght" 500;
}

h3 {
  font-variation-settings: "wght" 600;
}

a {
  color: currentColor;
  text-decoration-color: var(--clr-accent);
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  -webkit-transition: color 250ms ease-in;
  transition: color 250ms ease-in;
}
a:hover {
  color: var(--clr-accent);
}

strong,
b {
  font-variation-settings: "wght" 600;
}

p {
  text-wrap: balance;
}

p,
ul,
ol {
  margin: 1rem;
}

button {
  border: 0;
  outline: 0;
}

menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
menu li {
  padding: 0;
  margin: 0;
}
menu a {
  text-decoration: none;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 5;
  overflow: clip;
}
footer .footer-content {
  padding-block: 4rem;
  text-align: center;
  color: var(--clr-secondary);
  background-color: var(--clr-tertiary);
  border-bottom: 10px solid var(--clr-accent);
  font-family: "tt-autonomous-mono", monospace;
  font-size: var(--fs-300);
}
footer .footer-grid {
  --grid-col-start: 1;
  --grid-row-start: 1;
  --grid-span: 1;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[10];
  grid-template-columns: repeat(10, 1fr);
  -ms-grid-rows: (1fr)[4];
  grid-template-rows: repeat(4, 1fr);
  -webkit-transform-origin: bottom;
          transform-origin: bottom;
}
footer .footer-grid > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}
footer .footer-grid > *:nth-child(2) {
  -ms-grid-row: 1;
  -ms-grid-column: 2;
}
footer .footer-grid > *:nth-child(3) {
  -ms-grid-row: 1;
  -ms-grid-column: 3;
}
footer .footer-grid > *:nth-child(4) {
  -ms-grid-row: 1;
  -ms-grid-column: 4;
}
footer .footer-grid > *:nth-child(5) {
  -ms-grid-row: 1;
  -ms-grid-column: 5;
}
footer .footer-grid > *:nth-child(6) {
  -ms-grid-row: 1;
  -ms-grid-column: 6;
}
footer .footer-grid > *:nth-child(7) {
  -ms-grid-row: 1;
  -ms-grid-column: 7;
}
footer .footer-grid > *:nth-child(8) {
  -ms-grid-row: 1;
  -ms-grid-column: 8;
}
footer .footer-grid > *:nth-child(9) {
  -ms-grid-row: 1;
  -ms-grid-column: 9;
}
footer .footer-grid > *:nth-child(10) {
  -ms-grid-row: 1;
  -ms-grid-column: 10;
}
footer .footer-grid > *:nth-child(11) {
  -ms-grid-row: 2;
  -ms-grid-column: 1;
}
footer .footer-grid > *:nth-child(12) {
  -ms-grid-row: 2;
  -ms-grid-column: 2;
}
footer .footer-grid > *:nth-child(13) {
  -ms-grid-row: 2;
  -ms-grid-column: 3;
}
footer .footer-grid > *:nth-child(14) {
  -ms-grid-row: 2;
  -ms-grid-column: 4;
}
footer .footer-grid > *:nth-child(15) {
  -ms-grid-row: 2;
  -ms-grid-column: 5;
}
footer .footer-grid > *:nth-child(16) {
  -ms-grid-row: 2;
  -ms-grid-column: 6;
}
footer .footer-grid > *:nth-child(17) {
  -ms-grid-row: 2;
  -ms-grid-column: 7;
}
footer .footer-grid > *:nth-child(18) {
  -ms-grid-row: 2;
  -ms-grid-column: 8;
}
footer .footer-grid > *:nth-child(19) {
  -ms-grid-row: 2;
  -ms-grid-column: 9;
}
footer .footer-grid > *:nth-child(20) {
  -ms-grid-row: 2;
  -ms-grid-column: 10;
}
footer .footer-grid > *:nth-child(21) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}
footer .footer-grid > *:nth-child(22) {
  -ms-grid-row: 3;
  -ms-grid-column: 2;
}
footer .footer-grid > *:nth-child(23) {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
}
footer .footer-grid > *:nth-child(24) {
  -ms-grid-row: 3;
  -ms-grid-column: 4;
}
footer .footer-grid > *:nth-child(25) {
  -ms-grid-row: 3;
  -ms-grid-column: 5;
}
footer .footer-grid > *:nth-child(26) {
  -ms-grid-row: 3;
  -ms-grid-column: 6;
}
footer .footer-grid > *:nth-child(27) {
  -ms-grid-row: 3;
  -ms-grid-column: 7;
}
footer .footer-grid > *:nth-child(28) {
  -ms-grid-row: 3;
  -ms-grid-column: 8;
}
footer .footer-grid > *:nth-child(29) {
  -ms-grid-row: 3;
  -ms-grid-column: 9;
}
footer .footer-grid > *:nth-child(30) {
  -ms-grid-row: 3;
  -ms-grid-column: 10;
}
footer .footer-grid > *:nth-child(31) {
  -ms-grid-row: 4;
  -ms-grid-column: 1;
}
footer .footer-grid > *:nth-child(32) {
  -ms-grid-row: 4;
  -ms-grid-column: 2;
}
footer .footer-grid > *:nth-child(33) {
  -ms-grid-row: 4;
  -ms-grid-column: 3;
}
footer .footer-grid > *:nth-child(34) {
  -ms-grid-row: 4;
  -ms-grid-column: 4;
}
footer .footer-grid > *:nth-child(35) {
  -ms-grid-row: 4;
  -ms-grid-column: 5;
}
footer .footer-grid > *:nth-child(36) {
  -ms-grid-row: 4;
  -ms-grid-column: 6;
}
footer .footer-grid > *:nth-child(37) {
  -ms-grid-row: 4;
  -ms-grid-column: 7;
}
footer .footer-grid > *:nth-child(38) {
  -ms-grid-row: 4;
  -ms-grid-column: 8;
}
footer .footer-grid > *:nth-child(39) {
  -ms-grid-row: 4;
  -ms-grid-column: 9;
}
footer .footer-grid > *:nth-child(40) {
  -ms-grid-row: 4;
  -ms-grid-column: 10;
}
footer .footer-grid .footer-grid-item {
  background-color: var(--clr-tertiary);
  grid-column: var(--grid-col-start)/span var(--grid-span);
  -ms-grid-row: var(--grid-row-start);
      grid-row-start: var(--grid-row-start);
  height: 5vw;
}
footer .footer-grid .footer-grid-arrow {
  -ms-grid-column: 5;
  -ms-grid-column-span: 2;
  grid-column: 5/span 2;
  -ms-grid-row: 1;
  -ms-grid-row-span: 4;
  grid-row: 1/span 4;
  display: -ms-grid;
  display: grid;
}
footer .footer-grid .footer-grid-arrow img,
footer .footer-grid .footer-grid-arrow span {
  -ms-grid-row-align: center;
  -ms-grid-column-align: center;
  place-self: center;
}
footer .footer-grid .footer-grid-arrow[data-visible=false] {
  display: none;
}

/* ------- Phase UI ------- */
.hero {
  min-height: 100dvh;
  display: -ms-grid;
  display: grid;
  place-items: end center;
}

.content {
  margin-inline: auto;
  text-align: center;
  min-height: 100dvh;
}

.the-line {
  height: 600dvh;
  min-height: 5000px;
  margin-inline: auto;
  --s: 2px; /* size of the wave */
  --b: 1px; /* thickness of the line */
  --m: 0.5; /* curvature of the wave [0 2] */
  background: var(--clr-primary);
  --R: calc(var(--s) * sqrt(var(--m) * var(--m) + 1) + var(--b) / 2);
  width: calc(2 * var(--R));
  --_g: #0000 calc(99% - var(--b)), #000 calc(101% - var(--b)) 99%, #0000 101%;
  -webkit-mask: radial-gradient(var(--R) at top 50% right calc(-1 * var(--m) * var(--s)), var(--_g)) calc(50% - var(--s) / 2 - var(--b) / 2) calc(50% - 2 * var(--s))/calc(var(--s) + var(--b)) calc(4 * var(--s)) repeat-y, radial-gradient(var(--R) at top 50% left calc(-1 * var(--m) * var(--s)), var(--_g)) calc(50% + var(--s) / 2 + var(--b) / 2) 50%/calc(var(--s) + var(--b)) calc(4 * var(--s)) repeat-y;
          mask: radial-gradient(var(--R) at top 50% right calc(-1 * var(--m) * var(--s)), var(--_g)) calc(50% - var(--s) / 2 - var(--b) / 2) calc(50% - 2 * var(--s))/calc(var(--s) + var(--b)) calc(4 * var(--s)) repeat-y, radial-gradient(var(--R) at top 50% left calc(-1 * var(--m) * var(--s)), var(--_g)) calc(50% + var(--s) / 2 + var(--b) / 2) 50%/calc(var(--s) + var(--b)) calc(4 * var(--s)) repeat-y;
}

.check-in {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(calc(-50% + 2px));
          transform: translateX(calc(-50% + 2px));
  border: 1px solid var(--clr-primary);
  border-radius: 0 10px 0 10px;
  corner-shape: bevel;
  display: inline-block;
  color: #ffffff;
  background-color: var(--clr-secondary);
  margin: 0;
  padding: 0.5lh 2ch;
  text-align: center;
}

.too-far {
  z-index: 1;
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(calc(-50% + 2px));
          transform: translateX(calc(-50% + 2px));
}

/* ------- Content ------- */
/* ----- Game Elements ----- */
.event {
  display: block;
  background-color: transparent;
  cursor: pointer;
}

.event__hidden {
  opacity: 0;
  -webkit-transition: opacity 250ms ease-in;
  transition: opacity 250ms ease-in;
}
.event__hidden:hover {
  opacity: 1;
}

.event__pending {
  opacity: 1;
}
.event__pending > * {
  -webkit-animation: event 500ms infinite ease-in-out, poof 500ms 1 2000ms forwards;
          animation: event 500ms infinite ease-in-out, poof 500ms 1 2000ms forwards;
}

.item {
  background-color: transparent;
  padding: 0;
  margin: 0;
  display: block;
  cursor: pointer;
}

.item--shovel {
  position: absolute;
  bottom: 5px;
  left: 10%;
  display: block;
  width: 60px;
  font-size: 2rem;
  color: var(--clr-accent);
}

.item--key {
  position: absolute;
  top: 15%;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  display: block;
  width: 60px;
  font-size: 3rem;
  color: #ffffff;
}

.object {
  display: block;
  padding: 0;
  margin: 0;
}

.object--camp {
  position: absolute;
  bottom: -10px;
  right: 20%;
  display: block;
  width: 60px;
  font-size: 3rem;
  color: var(--clr-accent);
}

.badge {
  display: block;
  position: relative;
  width: 60%;
  aspect-ratio: 1;
}

.badge--achievement::before {
  position: absolute;
  inset: 50%;
  display: block;
  content: "";
  background: radial-gradient(rgba(28, 121, 200, 0), rgba(28, 121, 200, 0.5));
  border: 1px dashed var(--clr-primary);
  border-radius: 100vw;
  -webkit-animation: badge 1s infinite ease-in-out;
          animation: badge 1s infinite ease-in-out;
}

@-webkit-keyframes badge {
  0% {
    inset: 50%;
    opacity: 1;
  }
  100% {
    inset: 0%;
    opacity: 0;
  }
}

@keyframes badge {
  0% {
    inset: 50%;
    opacity: 1;
  }
  100% {
    inset: 0%;
    opacity: 0;
  }
}
@-webkit-keyframes event {
  0% {
    -webkit-transform: rotate(0deg);
  }
  20% {
    -webkit-transform: translate(2px, 0px) rotate(-1deg);
  }
  40% {
    -webkit-transform: translate(1px, -1px) rotate(1deg);
  }
  60% {
    -webkit-transform: translate(-1px, -2px) rotate(0deg);
  }
  80% {
    -webkit-transform: translate(1px, 1px) rotate(1deg);
  }
  100% {
    -webkit-transform: translate(2px, -1px) rotate(-1deg);
  }
}
@keyframes event {
  0% {
    -webkit-transform: rotate(0deg);
  }
  20% {
    -webkit-transform: translate(2px, 0px) rotate(-1deg);
  }
  40% {
    -webkit-transform: translate(1px, -1px) rotate(1deg);
  }
  60% {
    -webkit-transform: translate(-1px, -2px) rotate(0deg);
  }
  80% {
    -webkit-transform: translate(1px, 1px) rotate(1deg);
  }
  100% {
    -webkit-transform: translate(2px, -1px) rotate(-1deg);
  }
}
@-webkit-keyframes poof {
  0% {
    scale: 1;
    opacity: 1;
  }
  100% {
    scale: 1.5;
    opacity: 0;
  }
}
@keyframes poof {
  0% {
    scale: 1;
    opacity: 1;
  }
  100% {
    scale: 1.5;
    opacity: 0;
  }
}
/* ----- Home Content ----- */
.intro {
  margin-inline: auto;
  max-width: 65ch;
}

.the-boxes {
  position: absolute;
  bottom: 50%;
  left: 50%;
  padding: 0;
  margin: 0;
  list-style: none;
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: 1000px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 1;
}
.the-boxes .box-title {
  -ms-grid-column: 1;
      grid-column-start: 1;
  -ms-grid-column-span: -2;
  grid-column-end: -1;
  border-radius: 0 10px 0 10px;
  corner-shape: bevel;
  background-color: var(--clr-tertiary);
  color: var(--clr-accent);
  font-size: var(--fs-200);
  font-variation-settings: "wght" 900;
  line-height: 100%;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.the-boxes .box-title p {
  margin: 0.5rem;
}
.the-boxes .box-arrow {
  -ms-grid-column: 1;
      grid-column-start: 1;
  -ms-grid-column-span: -2;
  grid-column-end: -1;
  margin-block: 0.5rem;
}
.the-boxes .box-card {
  border-radius: 0 10px 0 10px;
  corner-shape: bevel;
  overflow: clip;
  background-color: #ffffff;
  padding: 0;
  color: var(--clr-tertiary);
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  opacity: 0;
  scale: 0.5;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.the-boxes .box-card > article {
  padding-block: 1rem;
}
.the-boxes .box-card h3 {
  -webkit-margin-after: -0.5rem;
          margin-block-end: -0.5rem;
}
.the-boxes .box-card a.btn {
  -webkit-margin-before: auto;
          margin-block-start: auto;
}

.profile {
  position: absolute;
  top: 15%;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 1;
}
.profile .profile-image {
  display: block;
  margin-inline: auto;
  width: 400px;
  max-width: 90%;
  aspect-ratio: 1;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1.5px solid var(--clr-primary);
  border-radius: 100vw;
}
.profile .profile-content {
  color: var(--clr-tertiary);
  padding: 2rem;
  margin-block: 2rem;
  background-color: #ffffff;
  border-radius: 0 10px 0 10px;
  corner-shape: bevel;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.profile .profile-content a::after {
  content: "\f0c8";
  font-family: "Font Awesome 7 Pro";
  font-weight: 200;
  display: inline-block;
  margin-left: 0.25rem;
}
.profile .profile-content a.achievement-clicked::after {
  content: "\f14a";
}

.link-wrapper {
  position: absolute;
  bottom: 35%;
  left: 50%;
  padding: 0;
  margin: 0;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: 80%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 1;
}
.link-wrapper .link-title {
  font-size: var(--fs-600);
}
.link-wrapper .link-list {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.25rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0;
}
.link-wrapper .link-list li {
  position: relative;
}
.link-wrapper .link-list a {
  display: block;
  padding: 0.25rem 1rem;
  font-family: "tt-autonomous-mono", monospace;
  font-size: var(--fs-300);
  color: #ffffff;
  background-color: var(--clr-tertiary);
  text-decoration: none;
  -webkit-transition: background-color 250ms ease-in;
  transition: background-color 250ms ease-in;
}
.link-wrapper .link-list a:hover {
  background-color: var(--clr-accent);
}

.a-mysterious-object {
  position: absolute;
  top: 60%;
  right: 5%;
  z-index: 1;
  max-width: 200px;
}
.a-mysterious-object img {
  display: block;
  margin: 0;
}

.back-image {
  --bg-bottom-offset: 50%;
  pointer-events: none;
  bottom: var(--bg-bottom-offset);
  position: absolute;
  left: 50%;
  width: 100%;
  aspect-ratio: 3/2;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.ascii-box {
  position: absolute;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  bottom: 10%;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  font-family: "tt-autonomous-mono", monospace;
  font-weight: 400;
  line-height: 100%;
  font-size: var(--fs-300);
  z-index: 1;
  overflow: clip;
}
.ascii-box span {
  background-color: rgb(from var(--clr-accent) r g b/0.25);
}

/* ----- Posters ----- */
/* ----- Games ----- */
.object--dark-cave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 3/2;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  -ms-grid-rows: 1fr;
  grid-template-rows: 1fr;
  background-image: url(/assets/img/back_cave.png);
  background-size: cover;
  background-position: center;
}
.object--dark-cave > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}
.object--dark-cave .a-dungeon-door {
  position: relative;
  z-index: 10;
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-column: 1;
  grid-column: 1;
  -ms-grid-row-align: center;
  -ms-grid-column-align: center;
  place-self: center;
}

/* ----- Media ----- */
.media-list {
  list-style: none;
  margin-inline: auto;
  margin-block: 4rem;
  padding: 0;
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: 80%;
}
.media-list li {
  margin: 0;
  padding: 0;
}
.media-list li img {
  display: block;
  aspect-ratio: 1;
  -o-object-fit: cover;
     object-fit: cover;
  border: 5px solid #ffffff;
  -webkit-box-shadow: 0px 0px 5px var(--clr-tertiary);
          box-shadow: 0px 0px 5px var(--clr-tertiary);
}

/* ----- Modifiers ----- */
body:has(#darkCave) .extra-space {
  height: 100dvh;
}

/* ----- Modifiers ----- */
.achievement {
  padding: 0;
  width: 60ch;
  max-width: 80%;
  color: #ffffff;
  background-color: transparent;
  text-align: center;
  border: 0;
  outline: 0;
}
.achievement::-ms-backdrop {
  background-color: rgba(9, 33, 45, 0.9);
}
.achievement::backdrop {
  background-color: rgba(9, 33, 45, 0.9);
}
.achievement .achievement-icon {
  display: inline-block;
  padding: 2rem;
  aspect-ratio: 1;
  background-color: var(--clr-accent);
  border-radius: 100vw;
  font-size: var(--fs-800);
  line-height: 100%;
  text-align: center;
  text-shadow: none;
}
.achievement .achievement-icon::before {
  content: attr(data-before-content);
  font-family: "Font Awesome 7 Pro";
  font-weight: 200;
}
.achievement .achievement-title {
  font-size: var(--fs-600);
  font-family: "connemara-old-style", sans-serif;
  font-weight: 700;
  line-height: 100%;
  color: #ffffff;
  margin-block: 1rem;
}
.achievement p {
  margin-inline: 4rem;
  margin-block: 1rem 0;
  text-shadow: 0 0 5px rgb(9, 33, 45);
}
.achievement button {
  margin-inline: 1rem;
  margin-block: 2rem 1rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  color: #ffffff;
  background-color: var(--clr-accent);
  padding: 0.5lh;
  font-variation-settings: "wght" 900;
  text-decoration: none;
  -webkit-transition: background-color 250ms ease-in;
  transition: background-color 250ms ease-in;
}
.btn:hover, .btn:focus-visible {
  color: #ffffff;
  background-color: var(--clr-tertiary);
}

.btn__outline {
  background-color: transparent;
  color: var(--clr-tertiary);
  border: 2px solid currentColor;
  font-variation-settings: "wght" 400;
  -webkit-transition: border 250ms ease-in;
  transition: border 250ms ease-in;
}
.btn__outline:hover, .btn__outline:focus-visible {
  background-color: transparent;
  color: var(--clr-accent);
}

.btn__block {
  display: block;
  width: 100%;
}

/* ----- Identity ----- */
#d52 {
  margin: 1rem;
  scale: 1;
  -webkit-transform-origin: bottom;
          transform-origin: bottom;
}
#d52 .box {
  fill: #ffffff;
}
#d52 .five {
  fill: var(--clr-primary);
}
#d52 .two {
  fill: var(--clr-primary);
}

#miniD52 {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 60px;
  display: block;
}
#miniD52 .box {
  fill: var(--clr-tertiary);
}

/* ----- System ----- */
/* ------- Main Navigation ------- */
.nav-btn {
  position: fixed;
  z-index: 100;
  top: 1rem;
  right: 1rem;
  height: 48px;
  width: 48px;
  anchor-name: --main-menu;
  padding: 0;
  margin: 0;
  color: var(--clr-tertiary);
  border: 0;
  border-radius: 50%;
  background-color: #ffffff;
  cursor: pointer;
  -webkit-transition: color 250ms ease-in, background-color 250ms ease-in;
  transition: color 250ms ease-in, background-color 250ms ease-in;
}
.nav-btn:hover, .nav-btn:focus {
  color: var(--clr-primary);
}
.nav-btn[aria-expanded=true] {
  color: #ffffff;
  background-color: var(--clr-accent);
}
.nav-btn::before {
  content: "\f279";
  font-family: "Font Awesome 7 Pro";
  font-weight: 200;
}
.nav-btn::after {
  content: unset;
}
.nav-btn[aria-expanded=true]::before {
  content: "\f59f";
}

.nav-mobile {
  position-anchor: --main-menu;
  inset: auto;
  top: calc(anchor(bottom) - 26px);
  right: calc(anchor(left) - 26px);
  max-width: calc(100% - 80px);
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  min-width: 320px;
  max-height: 80dvh;
  opacity: 1;
  z-index: 99;
  visibility: visible;
  border: 0;
  border-radius: 0 36px 0 10px;
  corner-shape: bevel scoop bevel bevel;
  background-color: #ffffff;
  background-image: url("/assets/img/back_menu.png");
  background-position: right;
  background-repeat: repeat-y;
  -webkit-box-shadow: 0px 0px 5px var(--clr-tertiary);
          box-shadow: 0px 0px 5px var(--clr-tertiary);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 2rem;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 0;
  color: var(--clr-tertiary);
  -webkit-transition: all 250ms var(--trans-lazy);
  transition: all 250ms var(--trans-lazy);
  transition-behavior: allow-discrete;
  -webkit-transform-origin: top;
          transform-origin: top;
}
.nav-mobile .nav-mobile--close {
  border: 0;
  color: #ffffff;
  background-color: var(--clr-accent);
  margin-top: auto;
  margin-bottom: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-mobile .nav-mobile-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 4rem;
}

/* ------- User Status/Data ------- */
.user-status {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.5rem;
}
.user-status .status-title {
  margin-inline: 0;
  margin-block: 1rem 0;
  font-family: "tt-autonomous-mono", monospace;
}
.user-status .user-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.5rem;
  -webkit-margin-before: auto;
          margin-block-start: auto;
}
.user-status .user-menu .btn {
  padding: 0.25rem 2rem;
  font-size: var(--fs-200);
}

/* ------- Mini-Map ------- */
.mini-map {
  position: relative;
  height: 60dvh;
  min-height: 400px;
  aspect-ratio: 1/6;
  margin-inline: auto;
  margin-block: 1rem;
  background: -webkit-gradient(linear, left top, left bottom, from(var(--clr-tertiary)), to(var(--clr-primary)));
  background: linear-gradient(180deg, var(--clr-tertiary), var(--clr-primary));
  border: 2px solid var(--clr-tertiary);
}
.mini-map .mini-map-element {
  position: absolute;
  left: 0%;
  display: block;
  width: 100%;
  opacity: 1;
  z-index: 2;
  -webkit-transition: opacity 250ms ease-in;
  transition: opacity 250ms ease-in;
}
.mini-map .mini-map-element[data-transform=true] {
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: unset;
}
.mini-map .mini-map-element img {
  display: block;
}
.mini-map .mini-map-tile {
  position: absolute;
  left: 0%;
  display: block;
  width: 100%;
  opacity: 1;
  z-index: 0;
  -webkit-transition: opacity 250ms ease-in;
  transition: opacity 250ms ease-in;
}
.mini-map .mini-map-tile img {
  display: block;
}
.mini-map .mini-map-carrot {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  display: block;
  opacity: 1;
  z-index: 3;
  color: #ffffff;
  pointer-events: none;
  -webkit-transition: opacity 250ms ease-in;
  transition: opacity 250ms ease-in;
}
.mini-map .mini-map-tile[data-visible=false],
.mini-map .mini-map-element[data-visible=false],
.mini-map .mini-map-carrot[data-visible=false] {
  display: block;
  opacity: 0;
}
.mini-map .mini-map--focus {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 3/2;
  outline: 2px dashed var(--clr-accent);
  outline-offset: 3px;
  pointer-events: none;
  -webkit-animation: map-focus linear forwards;
          animation: map-focus linear forwards;
  animation-timeline: scroll(y root);
}
.mini-map .mini-color-bar {
  --bar-width-inc: 1;
  --bar-growth-factor: 1;
  position: absolute;
  max-width: calc(10% * var(--bar-width-inc));
  height: 100%;
  background-color: hsl(from var(--clr-accent) h s l/0.25);
  top: 0px;
  -webkit-animation: bars linear forwards;
          animation: bars linear forwards;
  animation-timeline: scroll(root y);
  pointer-events: none;
}
.mini-map .mini-color-bar__left {
  left: 0px;
}
.mini-map .mini-color-bar__right {
  right: 0px;
}

/* ------- Achievements ------- */
.achievement-list {
  list-style: none;
  padding: 0;
  margin-inline: 0;
  margin-block: 0 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.25rem;
}
.achievement-list li {
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.5rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.achievement-list li span {
  display: block;
}
.achievement-list li .achievement-icon {
  width: 60px;
  aspect-ratio: 1;
  text-align: center;
}
.achievement-list li .achievement-icon::before {
  content: "\f091";
  font-family: "Font Awesome 7 Pro";
  font-weight: 200;
  font-size: 2.5rem;
}
.achievement-list li .achievement-title {
  margin: 0;
  text-transform: capitalize;
  font-family: "connemara-old-style", sans-serif;
  font-weight: 700;
}
.achievement-list li .achievement-text {
  font-size: 60%;
  line-height: 100%;
  text-transform: capitalize;
  font-variation-settings: "wght" 300;
}
.achievement-list li[data-achievement="1"] .achievement-icon::before {
  content: "\f70f";
}
.achievement-list li[data-achievement="2"] .achievement-icon::before {
  content: "\e418";
}
.achievement-list li[data-achievement="3"] .achievement-icon::before {
  content: "\e1cb";
}
.achievement-list li[data-achievement="4"] .achievement-icon::before {
  content: "\f5a0";
}
.achievement-list li[data-found=false] {
  color: var(--clr-ghost);
}
.achievement-list li[data-found=false] .achievement-icon::before {
  content: "\e3dd";
}

/* ------- Inventory ------- */
.inventory-list {
  list-style: none;
  padding: 0;
  margin-inline: 0;
  margin-block: 0 1rem;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 0.25rem 1fr 0.25rem 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}
.inventory-list li {
  position: relative;
  padding: 0;
  margin: 0;
  border: 1px solid var(--clr-ghost);
  border-radius: 0 5px 0 5px;
  corner-shape: bevel;
  color: var(--clr-ghost);
  text-align: center;
  padding: 0.5rem;
}
.inventory-list li p {
  margin-block: 0;
  font-size: var(--fs-200);
  overflow-wrap: break-word;
}
.inventory-list li[data-held=true] {
  color: var(--clr-tertiary);
  border-color: var(--clr-tertiary);
}
.inventory-list li[data-tip]::before {
  border-color: var(--clr-tertiary) transparent transparent transparent;
}
.inventory-list li[data-tip]::after {
  background-color: var(--clr-tertiary);
  color: #ffffff;
}

@-webkit-keyframes map-focus {
  0% {
    top: 0;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    top: 100%;
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
}

@keyframes map-focus {
  0% {
    top: 0;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  100% {
    top: 100%;
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
  }
}
/* ------- Social Menu - Footer ------- */
.console-btn {
  position: fixed;
  z-index: 99;
  top: 5rem;
  right: 1rem;
  height: 48px;
  width: 48px;
  padding: 0;
  margin: 0;
  color: #ffffff;
  background-color: var(--clr-tertiary);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-transition: color 250ms ease-in, background-color 250ms ease-in;
  transition: color 250ms ease-in, background-color 250ms ease-in;
}
.console-btn:hover, .console-btn:focus {
  background-color: var(--clr-secondary);
}
.console-btn::before {
  content: "\f120";
  font-family: "Font Awesome 7 Pro";
  font-weight: 200;
}
.console-btn::after {
  content: unset;
}

/* ------- Social Menu - Footer ------- */
.menu-social {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 0.25rem 1fr 0.25rem 1fr 0.25rem 1fr 0.25rem 1fr 0.25rem 1fr;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: -webkit-max-content;
  max-width: -moz-max-content;
  max-width: max-content;
  margin-inline: auto;
}
.menu-social li {
  font-size: var(--fs-200);
}
.menu-social li a {
  position: relative;
  display: block;
  border-radius: 0 5px 0 5px;
  corner-shape: bevel;
  border: 1px solid rgb(from var(--clr-secondary) r g b/0.5);
  padding: 1rem;
  cursor: pointer;
  color: #ffffff;
  text-align: center;
  -webkit-transition: color 250ms ease-in, opacity 250ms ease-in, border-radius 250ms ease-in;
  transition: color 250ms ease-in, opacity 250ms ease-in, border-radius 250ms ease-in;
}
.menu-social li a:hover {
  color: #ffffff;
  border-radius: 0 8px 0 8px;
}
.menu-social li a:hover i {
  color: var(--clr-primary);
}
.menu-social li a i {
  display: block;
  margin-inline: auto;
  margin-block: 0.25rem;
  font-size: 2rem;
  color: var(--clr-secondary);
  -webkit-transition: color 250ms ease-in;
  transition: color 250ms ease-in;
}

.menu-social:has(a:hover) a:not(:hover) {
  opacity: 0.3;
}

/* ------- Nav Utilities ------- */
#mobileMenu[data-visible=false] {
  visibility: hidden;
  opacity: 0;
  width: 0;
}
#mobileMenu[data-visible=false] ul {
  opacity: 0;
}

/* ----- System ----- */
/* ------- Utilities ------- */
.type__sml {
  font-size: var(--fs-200);
}

.type__lrg {
  font-size: var(--fs-400);
}

.type__center {
  margin-inline: auto;
  width: 80ch;
  max-width: 80%;
}

.extra-space {
  height: 60dvh;
}

/* ------- Session Console ------- */
.session-log-popover {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 400px;
  max-width: 80%;
  max-height: 80vh;
  color: var(--clr-secondary);
  background-color: var(--clr-tertiary);
  -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.25) inset;
          box-shadow: 0 0 20px rgba(0, 0, 0, 0.25) inset;
  border: 5px solid color-mix(in srgb, var(--clr-tertiary) 90%, var(--clr-secondary));
  border-radius: 0 10px 0 10px;
  corner-shape: bevel;
  padding-inline: 1rem;
  padding-block: 1rem 2rem;
  font-family: "tt-autonomous-mono", monospace;
  font-size: var(--fs-200);
  z-index: 10000;
  display: none;
  overflow-y: auto;
}
.session-log-popover::-webkit-scrollbar {
  width: 10px;
}
.session-log-popover::-webkit-scrollbar-track {
  background: val(--clr-tertiary);
}
.session-log-popover::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background-color: val(--clr-primary);
}
.session-log-popover .session-log--header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-margin-after: 1rem;
          margin-block-end: 1rem;
}
.session-log-popover .session-log--header .session-log--title {
  color: #ffffff;
  margin-block: 0.5rem;
}
.session-log-popover .session-log--content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.25rem;
}
.session-log-popover .session-log--entry .session-log--time {
  opacity: 0.5;
}
.session-log-popover .session-log--entry .session-log--type {
  font-weight: 700;
  color: var(--clr-accent);
}
.session-log-popover .session-log--entry .session-log--inventory-item {
  color: #ffffff;
}
.session-log-popover .session-log--entry .session-log--inventory-hint {
  color: var(--clr-primary);
}

/* ------- Messaging ------- */
.status-box {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  max-width: 40%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 0.25rem;
  z-index: 6000;
  pointer-events: none;
}

.status-msg {
  display: none;
  width: 100%;
  gap: 1rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  opacity: 0;
  pointer-events: none;
  color: var(--clr-tertiary);
  background-color: #ffffff;
  font-family: "tt-autonomous-mono", monospace;
  font-size: var(--fs-200);
  text-align: left;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  padding: 1rem 2rem;
}
.status-msg::before {
  content: "\f05a";
  font-family: "Font Awesome 7 Pro";
  font-size: 2rem;
  font-weight: 200;
}
.status-msg.status-msg--type__action {
  border-left: 5px solid var(--clr-primary);
}
.status-msg.status-msg--type__action::before {
  content: "\e5bf";
}
.status-msg.status-msg--type__inventory {
  border-left: 5px solid var(--clr-primary);
}
.status-msg.status-msg--type__inventory::before {
  content: "\f5d4";
}
.status-msg.status-msg--type__event {
  border-left: 5px solid var(--clr-primary);
}
.status-msg.status-msg--type__event::before {
  content: "\f5a0";
}
.status-msg.status-msg--type__achievement {
  border-left: 5px solid var(--clr-primary);
}
.status-msg.status-msg--type__achievement::before {
  content: "\f2eb";
}
.status-msg.status-msg--type__yikes {
  border-left: 5px solid var(--clr-primary);
}
.status-msg.status-msg--type__yikes::before {
  content: "\f57f";
}
.status-msg.status-msg--type__confirm {
  border-left: 5px solid var(--clr-primary);
}
.status-msg.status-msg--type__confirm::before {
  content: "\f336";
}
.status-msg.status-msg--type__warning {
  border-left: 5px solid var(--clr-secondary);
}
.status-msg.status-msg--type__warning::before {
  content: "\f059";
}
.status-msg.status-msg--type__error {
  border-left: 5px solid var(--clr-accent);
}
.status-msg.status-msg--type__error::before {
  content: "\f06a";
}

/* ----- Modals & Dialog ----- */
.modal {
  padding: 0;
  width: 60ch;
  max-width: 80%;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  border: 0;
  outline: 0;
  -webkit-box-shadow: 0px 0px 10px rgba(9, 33, 45, 0.5);
          box-shadow: 0px 0px 10px rgba(9, 33, 45, 0.5);
}
.modal::-ms-backdrop {
  background-color: rgba(9, 33, 45, 0.75);
}
.modal::backdrop {
  background-color: rgba(9, 33, 45, 0.75);
}
.modal .modal-icon {
  font-size: var(--fs-800);
  line-height: 100%;
  -webkit-margin-before: 2rem;
          margin-block-start: 2rem;
}
.modal .modal-icon::before {
  content: attr(data-before-content);
  font-family: "Font Awesome 7 Pro";
  font-weight: 200;
}
.modal .modal-title {
  font-size: var(--fs-500);
  font-weight: 700;
  line-height: 100%;
  color: var(--clr-accent);
  margin-block: 1rem;
}
.modal p {
  margin-inline: 4rem;
  margin-block: 1rem 0;
}
.modal button {
  margin-inline: 1rem;
  margin-block: 2rem 1rem;
  display: block;
  width: calc(100% - 2rem);
}

dialog {
  -webkit-transform: scale(105%);
          transform: scale(105%);
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
  background-color: transparent;
}
dialog::-ms-backdrop {
  -ms-transition: display 500ms allow-discrete, overlay 500ms allow-discrete, opacity 250ms ease, transform 500ms ease;
  transition: display 500ms allow-discrete, overlay 500ms allow-discrete, opacity 250ms ease, transform 500ms ease;
  opacity: 0;
}
dialog, dialog::backdrop {
  -webkit-transition: display 500ms allow-discrete, overlay 500ms allow-discrete, opacity 250ms ease, -webkit-transform 500ms ease;
  transition: display 500ms allow-discrete, overlay 500ms allow-discrete, opacity 250ms ease, -webkit-transform 500ms ease;
  transition: display 500ms allow-discrete, overlay 500ms allow-discrete, opacity 250ms ease, transform 500ms ease;
  transition: display 500ms allow-discrete, overlay 500ms allow-discrete, opacity 250ms ease, transform 500ms ease, -webkit-transform 500ms ease;
  opacity: 0;
}
dialog[open] {
  opacity: 1;
  -webkit-transform: scale(100%);
          transform: scale(100%);
}
dialog[open]::-ms-backdrop {
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
  opacity: 0.8;
}
dialog[open]::backdrop {
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
  opacity: 0.8;
}
@starting-style {
  dialog[open]::-ms-backdrop {
    opacity: 0;
  }
  dialog[open], dialog[open]::backdrop {
    opacity: 0;
  }
  dialog[open] {
    -webkit-transform: scale(105%);
            transform: scale(105%);
  }
}

/* ----- Color Bars ----- */
.color-bar {
  --bar-width-inc: 1;
  --bar-growth-factor: 1;
  position: fixed;
  max-width: calc(10% * var(--bar-width-inc));
  height: 120dvh;
  background-color: hsl(from var(--clr-accent) h s l/0.25);
  top: 0px;
  -webkit-animation: bars linear forwards;
          animation: bars linear forwards;
  animation-timeline: scroll(root y);
  pointer-events: none;
}

@-webkit-keyframes bars {
  0% {
    width: 0;
  }
  95% {
    width: calc(10% * var(--bar-width-inc) * var(--bar-growth-factor));
  }
  100% {
    width: calc(10% * var(--bar-width-inc) * var(--bar-growth-factor));
  }
}

@keyframes bars {
  0% {
    width: 0;
  }
  95% {
    width: calc(10% * var(--bar-width-inc) * var(--bar-growth-factor));
  }
  100% {
    width: calc(10% * var(--bar-width-inc) * var(--bar-growth-factor));
  }
}
.color-bar__left {
  left: 0px;
}

.color-bar__right {
  right: 0px;
}

/* ------- Tool-Tips ------- */
[data-tip]:before,
[data-tip]:after {
  position: absolute;
  left: 50%;
  -webkit-transform: translate(-50%);
          transform: translate(-50%);
  -webkit-font-smoothing: antialiased;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  z-index: 20;
  -webkit-transition: 0.6s ease-in-out 0.4s;
  transition: 0.6s ease-in-out 0.4s;
}

[data-tip]:before {
  content: "";
  height: 0;
  width: 0;
  bottom: calc(100% - 5px);
  border-style: solid;
  border-width: 8px;
  border-color: #ffffff transparent transparent transparent;
}

[data-tip]:after {
  content: attr(data-tip);
  background: #ffffff;
  padding: 0.5rem 1rem 0.5rem 1rem;
  max-width: 60ch;
  font-family: "tt-autonomous-mono", monospace;
  font-size: var(--fs-200);
  font-weight: 300;
  text-wrap: pretty;
  line-height: 120%;
  text-align: center;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  bottom: calc(100% + 11px);
  color: var(--clr-tertiary);
  border-radius: 2px;
  z-index: 9;
}

[data-tip]:hover:before,
[data-tip]:hover:after {
  opacity: 1;
  visibility: visible;
  -webkit-transition: 125ms ease-in-out 125ms;
  transition: 125ms ease-in-out 125ms;
}

/* ------- Scrolly Helper ------- */
.scroll-helper {
  --pulse-color: var(--clr-accent);
  position: relative;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  -ms-grid-rows: 1fr;
  grid-template-rows: 1fr;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
}
.scroll-helper > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}
.scroll-helper > * {
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  grid-area: 1/1/2/2;
  -ms-grid-row-align: center;
  -ms-grid-column-align: center;
  place-self: center;
}

.scroll-helper[data-dir=up] {
  rotate: 180deg;
}

.scroll-helper::before {
  display: block;
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  -ms-grid-column: 1;
  -ms-grid-column-span: 1;
  grid-area: 1/1/2/2;
  content: "";
  border: 1px solid var(--pulse-color);
  border-radius: 100vw;
  width: 40px;
  height: 40px;
  -webkit-transform: translate(50% 50%);
          transform: translate(50% 50%);
  -webkit-animation: pulseScaleOut 1s infinite ease-in-out;
          animation: pulseScaleOut 1s infinite ease-in-out;
}

@-webkit-keyframes pulseScaleOut {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(1.5);
            transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes pulseScaleOut {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(1.5);
            transform: scale(1.5);
    opacity: 0;
  }
}
/* ------- Data Attributes ------- */
[data-visible=false] {
  display: none;
}

/* ------- Media & Container Queries ------- */
@container main ( width <= 1024px) {
  .the-boxes {
    width: 80%;
  }
}
@media (width <= 1024px) {
  /*------- 1024 & Under ------- */
  .profile {
    top: 10%;
    width: 80%;
  }
  #ascii52 {
    font-size: 65%;
    bottom: 9%;
  }
  .object--dark-cave {
    bottom: 3%;
  }
}
@media (width <= 768px) {
  /*------- 768 & Under ------- */
  body {
    background-size: 60%;
    font-size: var(--fs-200);
  }
  .profile {
    top: 8%;
    width: 90%;
  }
  .profile .profile-image {
    max-width: 60%;
  }
  .back-image__forest {
    bottom: 175px;
    aspect-ratio: 1;
  }
  .back-image__clouds {
    aspect-ratio: 1;
    top: 18%;
  }
  .back-image__mountains {
    aspect-ratio: 1;
    bottom: 28%;
  }
  #ascii52 {
    font-size: 75%;
    bottom: 9%;
  }
  .object--dark-cave {
    aspect-ratio: 1;
  }
  footer .footer-grid .footer-grid-item {
    height: 10vw;
  }
  footer .footer-grid .footer-grid-arrow:has(.badge) {
    -ms-grid-column: 4;
    -ms-grid-column-span: 4;
    grid-column: 4/span 4;
  }
}
@media (width <= 480px) {
  /*------- 480 & Under ------- */
  main {
    width: 96%;
  }
  .back-image__forest {
    aspect-ratio: 3/4;
    bottom: 300px;
  }
  .back-image__clouds {
    aspect-ratio: 3/4;
    top: 18%;
  }
  .back-image__mountains {
    aspect-ratio: 3/4;
    bottom: 28%;
  }
  #ascii52 {
    font-size: 50%;
    bottom: 10%;
  }
  .link-wrapper {
    bottom: 28%;
  }
  .inventory-list {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
  .link-wrapper .link-list li a {
    font-size: var(--fs-200);
  }
  .menu-social {
    -ms-grid-columns: (1fr)[3];
    grid-template-columns: repeat(3, 1fr);
  }
  .object--dark-cave {
    aspect-ratio: 2/3;
  }
  .status-box {
    max-width: 80%;
  }
  footer .footer-grid .footer-grid-arrow:has(.badge) {
    -ms-grid-column: 3;
    -ms-grid-column-span: 6;
    grid-column: 3/span 6;
  }
}
@media (pointer: coarse) {
  .event__hidden {
    opacity: 0.05;
  }
}
/* ------- Animation ------- */
@media (prefers-reduced-motion: no-preference) {
  /*------- Body BG Color ------- */
  body {
    -webkit-animation: bg-color linear;
            animation: bg-color linear;
    animation-timeline: scroll(y);
  }
  @-webkit-keyframes bg-color {
    0% {
      background-color: var(--clr-tertiary);
    }
    75% {
      background-color: var(--clr-secondary);
    }
    100% {
      background-color: var(--clr-primary);
    }
  }
  @keyframes bg-color {
    0% {
      background-color: var(--clr-tertiary);
    }
    75% {
      background-color: var(--clr-secondary);
    }
    100% {
      background-color: var(--clr-primary);
    }
  }
  /*------- Content Boxes ------- */
  .the-boxes li {
    -webkit-animation: boxes linear forwards;
            animation: boxes linear forwards;
    animation-timeline: view(y);
    animation-range: 0% 100%;
  }
  @-webkit-keyframes boxes {
    0% {
      opacity: 0;
      scale: 0.5;
    }
    25% {
      scale: 1;
      opacity: 1;
    }
    75% {
      scale: 1;
      opacity: 1;
    }
    100% {
      opacity: 0;
      scale: 0.5;
    }
  }
  @keyframes boxes {
    0% {
      opacity: 0;
      scale: 0.5;
    }
    25% {
      scale: 1;
      opacity: 1;
    }
    75% {
      scale: 1;
      opacity: 1;
    }
    100% {
      opacity: 0;
      scale: 0.5;
    }
  }
  /*------- Footer Grid ------- */
  .footer-grid {
    -webkit-animation: grid linear forwards;
            animation: grid linear forwards;
    animation-timeline: scroll(y);
    animation-range: 0% 100%;
    pointer-events: none;
  }
  @-webkit-keyframes grid {
    94% {
      -webkit-transform: scaleY(0);
              transform: scaleY(0);
    }
    100% {
      -webkit-transform: scaleY(1);
              transform: scaleY(1);
    }
  }
  @keyframes grid {
    94% {
      -webkit-transform: scaleY(0);
              transform: scaleY(0);
    }
    100% {
      -webkit-transform: scaleY(1);
              transform: scaleY(1);
    }
  }
  /*------- 52 Hero Badge ------- */
  #d52 {
    -webkit-animation: main-logo linear;
            animation: main-logo linear;
    animation-timeline: view();
    animation-range: exit -50vh;
  }
  @-webkit-keyframes main-logo {
    to {
      scale: 0.25;
    }
  }
  @keyframes main-logo {
    to {
      scale: 0.25;
    }
  }
}