:root {
  --bg: #0b0b0d;
  --fg: #f2f2f3;
  --muted: #9a9aa0;
  --accent: #ffffff;
  --panel: #131316;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1);
  transition: 0.2s all ease;
}

::selection {
  background: #2e2e39;
  color: #fff;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  padding: 30px 50px;
  display: flex;
  justify-content: right;
  align-items: center;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  max-height: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

header img {
  height: 30px;
  position: absolute;
  left: 50px;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

code {
  padding: 3px 5px;
  color: #cdcdcd;
  margin: 0px 2px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

pre {
  padding: 20px 20px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.1);
  outline: 2px solid rgba(255, 255, 255, 0.01);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  justify-content: start;
  display: flex;
}

a {
  color: #81bcda;
  text-decoration: none;
  cursor: pointer;
}

select {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 5px;
  border: none;
  background-color: #131316;
  color: #f2f2f3;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition:
    border 0.2s,
    background-color 0.2s;
  background: var(--panel);
  outline: 2px solid rgba(255, 255, 255, 0.03);
}

fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  border: none;
}

fieldset label {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #f2f2f3;
  cursor: pointer;
}

fieldset input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background-color: #131316;
  cursor: pointer;
}

fieldset input[type="checkbox"]:hover {
  border-color: #81bcda;
}

fieldset input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #fff;
}

.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  user-select: none;
}

h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 1px;
  height: 70px;
  display: flex;
}

.words {
  overflow: hidden;
  min-width: fit-content;
}

.words span {
  display: block;
  height: 100%;
  padding-left: 10px;
  animation: rotateWord 60s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.tagline {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}

.panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 420px;
  align-items: center;
}

.panels > * {
  width: 100%;
}

.panels .button {
  padding: 26px 28px;
  border-radius: 40px;
  transform: rotate(-5deg);
}

.panels .button:hover {
  outline-color: rgba(255, 255, 255, 0.25);
}

.panels .button:nth-child(1) {
  background-color: #9b8043;
  border-bottom-right-radius: 5px;
}

.panels .button:nth-child(2) {
  background-color: #4c457e;
  border-bottom-left-radius: 5px;
}

.panels .button:nth-child(3) {
  background-color: #3a8178;
  border-top-right-radius: 5px;
}

.panels .button:nth-child(4) {
  background-color: #782b3d;
  border-top-left-radius: 5px;
}

.input {
  position: relative;
  outline: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 28px;
  border-radius: 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  z-index: 1;
  overflow: hidden;
}

.input input {
  width: 100%;
  position: absolute;
  height: 100%;
  padding: 0px 20px;
  font-size: 18px;
  background: none;
  outline: none;
  border: none;
  color: var(--fg);
}

form {
  max-width: 500px;
  display: grid;
  margin: auto;
  gap: 20px;
}

footer {
  padding: 10px;
  font-size: 12px;
  color: #000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
}

.notification {
  position: absolute;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  pointer-events: none;
  top: 50%;
  left: 50%;
  opacity: 0;
  z-index: 20000;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(11, 11, 13, 0.95);
  transition: 1s all ease;
}

.notification.active {
  opacity: 1;
  pointer-events: auto;
}

.notification-load {
  width: 36px;
  height: 36px;
  opacity: 0;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  transition: 0.5s;
  position: absolute;
  animation: spin 0.8s linear infinite;
}

.notification-load.active {
  opacity: 1;
}

.notification-error {
  width: 36px;
  height: 36px;
  opacity: 0;
  border: 3px solid #f55;
  border-radius: 50%;
  transition: 0.5s;
  position: absolute;
}

.notification-error.active {
  opacity: 1;
}

.page {
  cursor: pointer;
  position: fixed;
  inset: 0;
  background: #0f0f11;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  z-index: 1000;
  transition: 0.5s all ease;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-inner {
  cursor: auto;
  max-width: 900px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 64px 64px 48px;
  background: var(--panel);
  position: relative;
  transform: translateY(100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: fit-content;
  overflow: hidden;
  overflow-y: auto;
  transition: 1s transform ease;
}

.page.active .page-inner {
  transform: translateY(0);
}

section {
  display: grid;
  gap: 10px;
}

.page section:first-of-type {
  gap: 30px;
}

.page h2 {
  font-size: 50px;
  font-weight: 300;
}

.page .h3 {
  text-transform: capitalize;
}

.page p {
  color: var(--muted);
  line-height: 1.7;
}

.page .banner {
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  margin: auto;
  max-height: 300px;
  display: flex;
  align-items: center;
}

.page .banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page hr {
  margin: 15px 0px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.page ul {
  line-height: 1.7;
  color: var(--muted);
}

.page small {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.page-close {
  position: fixed;
  top: 20px;
  right: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  font-size: 27px;
  cursor: pointer;
  padding: 20px;
  z-index: 1001;
  mix-blend-mode: difference;
  background: transparent;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-close:hover {
  scale: 1.2;
}

.page-close.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0%);
}

.page-branding {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 30px;
  height: 30px;
  pointer-events: none;
  opacity: 0.2;
}

.button-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  background: rgba(255, 255, 255, 0.01);
  outline: 2px solid rgba(255, 255, 255, 0.03);
  outline-offset: 0px;
  padding: 15px 28px;
  cursor: pointer;
  border-radius: 5px;
  flex: 1;
  text-align: center;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
  touch-action: manipulation;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: var(--indicator, transparent);
  pointer-events: none;
  transition: 0.5s opacity ease;
  z-index: -1;
}

.button:hover::before {
  opacity: 0.2;
}

.button > use:nth-child(1) {
  background: #2c1117;
}

.button > use:nth-child(2) {
  background: #22180d;
}

.button > use:nth-child(3) {
  background: #171c0b;
}

.button:hover {
  outline-offset: 2px;
  outline-color: var(--indicator, rgba(255, 255, 255, 0.06));
}

.button h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--indicator, inherit);
  min-width: max-content;
}

.button:hover h3 {
  color: inherit;
}

.button p {
  font-size: 15px;
  color: inherit;
  line-height: 1.4;
  margin: 5px 0px;
  min-width: 150px;
}

.wave-container {
  position: relative;
  overflow: hidden;
  bottom: 0;
  width: 100%;
  height: 145px;
  transition: 3s height cubic-bezier(0.79, 0.14, 0.15, 0.86);
}

.waves {
  width: 100%;
  height: 100%;
  min-height: 100px;
  max-height: 150px;
  display: block;
}

.parallax > use {
  animation: move-forever 25s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  animation-direction: reverse;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.spoiler {
  position: relative;
  cursor: pointer;
  color: transparent;
  background-color: rgba(255, 255, 255, 0.1);
  user-select: none;
  display: inline;
  border-radius: 5px;
}

.spoiler:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.spoiled {
  position: relative;
  cursor: pointer;
  color: inherit;
  background-color: rgba(0, 0, 0, 0.1);
  user-select: none;
  display: inline;
  border-radius: 5px;
}

.popup {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  margin: 0;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.9);
  outline: 2px solid rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 2px;
  font-size: 14px;
  z-index: 60000;
  opacity: 0;
  transition:
    opacity 0.2s ease-in,
    transform 0.2s ease-out;
  font-weight: 700;
  letter-spacing: 1px;
}

.popup.show {
  opacity: 1;
  transform: translate(-50%, -70%);
  transition:
    opacity 0.1s ease-in,
    transform 0.1s ease-out;
}

.noclick {
  pointer-events: none;
}

.disable {
  filter: grayscale(1);
  opacity: 0.2;
  pointer-events: none;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateWord {
  0%,
  7% {
    transform: translateY(0);
  }

  10% {
    transform: translateY(-100%);
  }

  17% {
    transform: translateY(-100%);
  }

  20% {
    transform: translateY(-200%);
  }

  27% {
    transform: translateY(-200%);
  }

  30% {
    transform: translateY(-300%);
  }

  37% {
    transform: translateY(-300%);
  }

  40% {
    transform: translateY(-400%);
  }

  47% {
    transform: translateY(-400%);
  }

  50% {
    transform: translateY(-500%);
  }

  57% {
    transform: translateY(-500%);
  }

  60% {
    transform: translateY(-600%);
  }

  67% {
    transform: translateY(-600%);
  }

  70% {
    transform: translateY(-700%);
  }

  77% {
    transform: translateY(-700%);
  }

  80% {
    transform: translateY(-800%);
  }

  87% {
    transform: translateY(-800%);
  }

  90% {
    transform: translateY(-900%);
  }

  97% {
    transform: translateY(-900%);
  }

  100% {
    transform: translateY(-1000%);
  }
}

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

@media (max-width: 1100px), (max-height: 600px) {
  .container {
    display: flex;
    flex-direction: column;
  }

  .page-inner {
    max-height: 100%;
    height: 100%;
    max-width: 100%;
    width: 100%;
  }

  .content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  h1 {
    display: grid;
    height: 120px;
  }

  .words {
    width: 100%;
  }

  .words span {
    padding-left: 0px;
    animation-direction: reverse;
  }
}

@media (max-width: 600px), (max-height: 600px) {
  main {
    align-items: baseline;
    overflow-y: auto;
    height: calc(100vh - 50px);
  }

  .panels {
    display: flex;
    flex-direction: column;
    padding-bottom: 150px;
    width: auto;
  }

  .panels .button {
    border-bottom-right-radius: 40px !important;
    border-bottom-left-radius: 40px !important;
    border-top-right-radius: 40px !important;
    border-top-left-radius: 40px !important;
  }

  .container {
    padding-top: 50px;
  }
}

@media (max-width: 600px), (max-height: 700px) {
  .wave-container {
    height: 0px;
  }
}
