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

html {
  background: var(--bg-void);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("../img/ui/bg.png");
  background-repeat: repeat;
  background-size: 32px 32px;
  image-rendering: pixelated;
  opacity: 0.55;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(239, 91, 253, 0.10), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(127, 48, 134, 0.14), transparent 70%);
  pointer-events: none;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--c-gray);
  font-family: Minecraft, monospace;
  font-size: var(--fs-sm);
  line-height: 1.3333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: var(--px) solid var(--c-lilac);
  outline-offset: var(--px);
}

#fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-4);
  padding: var(--gap-4) var(--gap-6);
  background: #120c1a;
  box-shadow: 0 2px 0 0 #2b1b3a;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  flex-shrink: 0;
}

.nav-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.nav-wordmark {
  font-size: var(--fs-md);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-5);
}

.nav-links a {
  font-size: var(--fs-sm);
  padding: var(--gap-2) 0;
  border-bottom: var(--px) solid transparent;
}

.nav-links a:hover {
  color: var(--c-white);
  --sh: var(--c-white-sh);
  border-bottom-color: var(--c-pink);
}

.nav-links .nav-off {
  font-size: var(--fs-sm);
  padding: var(--gap-2) 0;
  border-bottom: var(--px) solid transparent;
  cursor: default;
}

.nav-links a.is-here {
  color: var(--c-white);
  --sh: var(--c-white-sh);
  border-bottom-color: var(--c-pink);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 260ms steps(5), transform 260ms steps(5);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.skel {
  min-height: 180px;
  background: rgba(23, 16, 31, 0.6);
  box-shadow: inset 2px 2px 0 0 #2b1b3a, inset -2px -2px 0 0 #150d1e;
  animation: skel 1.1s steps(3, end) infinite alternate;
}

.detail-skel .skel {
  min-height: 320px;
}

@keyframes skel {
  from { opacity: 0.45; }
  to { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .skel {
    animation: none;
  }
}

.btn {
  display: inline-block;
  position: relative;
  padding: 14px 30px;
  font-size: var(--fs-sm);
  color: var(--c-white);
  --sh: var(--c-white-sh);
  background: #2b1b3a;
  box-shadow:
    inset 2px 2px 0 0 #4c3166,
    inset -2px -2px 0 0 #150d1e,
    2px 2px 0 0 rgba(0, 0, 0, 0.55);
}

.btn:hover {
  background: #3a2450;
  color: var(--c-yellow);
  --sh: var(--c-yellow-sh);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow:
    inset 2px 2px 0 0 #4c3166,
    inset -2px -2px 0 0 #150d1e;
}

.btn-primary {
  background: #8f2a99;
  box-shadow:
    inset 2px 2px 0 0 #d24ce0,
    inset -2px -2px 0 0 #4a1250,
    2px 2px 0 0 rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
  background: #a832b4;
  color: var(--c-white);
  --sh: var(--c-white-sh);
}

.btn-primary:active {
  box-shadow:
    inset 2px 2px 0 0 #d24ce0,
    inset -2px -2px 0 0 #4a1250;
}
