:root {
  --scene-width: 1920px;
  --scene-height: 1080px;

  --bg-image: url("bg_main.png");

  --title-top: 40px;
  --title-left: 70px;
  --title-font-size: 187px;

  --subtitle-top: 200px;
  --subtitle-left: 90px;
  --subtitle-width: 780px;
  --subtitle-font-size: 48px;

  --ca-top: 380px;
  --ca-left: 90px;
  --ca-width: 720px;
  --ca-height: 80px;
  --ca-font-size: 20px;

  --lore-title-top: 500px;
  --lore-title-left: 30%;
  --lore-title-font-size: 94px;

  --lore-row-top: 620px;
  --lore-row-left: 30%;
  --lore-row-gap: 40px;
  --lore-image-width: 260px;

  --lore-source-offset-x: 0px;
  --lore-source-offset-y: -50px;

  --lore-issue1-offset-x: 0px;
  --lore-issue1-offset-y: 0px;

  --lore-issue2-offset-x: 0px;
  --lore-issue2-offset-y: 0px;

  --source-font-size: 30px;
  --source-margin-bottom: 10px;

  --character-width: 430px;
  --character-bottom: 40px;
  --character-right: 120px;

  --socials-top: 30px;
  --socials-right: 80px;
  --socials-gap: 14px;
  --social-btn-width: 120px;
  --social-btn-height: 46px;

  --social-twitter-offset-x: 0px;
  --social-twitter-offset-y: 0px;

  --social-community-offset-x: 0px;
  --social-community-offset-y: 0px;

  --social-buy-offset-x: 0px;
  --social-buy-offset-y: 0px;

  --toast-top: 40px;
  --toast-left: 50%;
  --toast-font-size: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Jua", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000000;
  overflow: hidden;
}

.bg-layer {
  display: none;
}

.scene-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.scene {
  position: absolute;
  width: var(--scene-width);
  height: var(--scene-height);
  transform-origin: top left;
}

.socials {
  position: absolute;
  top: var(--socials-top);
  right: var(--socials-right);
  display: flex;
  gap: var(--socials-gap);
  z-index: 5;
}

.social-btn {
  width: var(--social-btn-width);
  height: var(--social-btn-height);
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease-out,
    filter 0.15s ease-out;
}

.social-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

.social-btn.disabled {
  opacity: 0.4;
  cursor: default;
  transform: none !important;
  filter: none !important;
}

.social-btn-twitter {
  transform: translate(var(--social-twitter-offset-x), var(--social-twitter-offset-y));
}

.social-btn-community {
  transform: translate(var(--social-community-offset-x), var(--social-community-offset-y));
}

.social-btn-buy {
  transform: translate(var(--social-buy-offset-x), var(--social-buy-offset-y));
}

.social-btn:hover:not(.disabled) {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.85));
}

.title {
  position: absolute;
  top: var(--title-top);
  left: var(--title-left);
  margin: 0;
  font-size: var(--title-font-size);
  line-height: 0.9;
  color: #ffffff;
  letter-spacing: 2px;
  z-index: 2;
}

.subtitle {
  position: absolute;
  top: var(--subtitle-top);
  left: var(--subtitle-left);
  width: var(--subtitle-width);
  margin: 0;
  font-size: var(--subtitle-font-size);
  line-height: 1.1;
  text-align: center;
  color: #ffffff;
  z-index: 2;
}

.ca-wrapper {
  position: absolute;
  top: var(--ca-top);
  left: var(--ca-left);
  width: var(--ca-width);
  height: var(--ca-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ca-banner {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "Jua", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--ca-font-size);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  background: #bfbfbf;
  box-shadow:
    0 0 0 4px #000000,
    6px 6px 0 #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ca-banner span {
  pointer-events: none;
}

.ca-banner.ca-disabled {
  cursor: default;
}

.lore-block {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
}

.lore-title {
  position: absolute;
  top: var(--lore-title-top);
  left: var(--lore-title-left);
  transform: translateX(-50%);
  margin: 0;
  font-size: var(--lore-title-font-size);
  color: #ffffff;
  letter-spacing: 2px;
}

.lore-row {
  position: absolute;
  top: var(--lore-row-top);
  left: var(--lore-row-left);
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: var(--lore-row-gap);
}

.lore-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lore-item img {
  width: var(--lore-image-width);
  height: auto;
  display: block;
  box-shadow: 4px 4px 0 #000000;
}

.lore-item-source img {
  cursor: pointer;
  transition: transform 0.18s ease-out, filter 0.18s ease-out;
}

.lore-item-source img:hover {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.85));
}

.lore-item-source {
  transform: translate(var(--lore-source-offset-x), var(--lore-source-offset-y));
}

.lore-item-issue1 {
  transform: translate(var(--lore-issue1-offset-x), var(--lore-issue1-offset-y));
}

.lore-item-issue2 {
  transform: translate(var(--lore-issue2-offset-x), var(--lore-issue2-offset-y));
}

.source-link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 var(--source-margin-bottom) 0;
  cursor: pointer;
  font-family: "Jua", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--source-font-size);
  color: #ffffff;
  align-self: flex-start;
}

.source-link span {
  border-bottom: 3px solid #ffffff;
}

.source-link.disabled {
  opacity: 0.5;
  cursor: default;
}

.character {
  position: absolute;
  right: var(--character-right);
  bottom: var(--character-bottom);
  width: var(--character-width);
  height: auto;
  z-index: 1;
}

.toast {
  position: absolute;
  top: var(--toast-top);
  left: var(--toast-left);
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-size: var(--toast-font-size);
  font-family: "Jua", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 4px 0 #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  z-index: 10;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

@media (max-width: 900px) {
  :root {
    --scene-width: 1920px;
    --scene-height: 1080px;

    --socials-top: -1500px;
    --socials-right: 200px;
    --social-btn-width: 500px;
    --social-btn-height: 150px;

    --title-top: -1200px;
    --title-left: 250px;
    --title-font-size: 350px;

    --subtitle-top: -800px;
    --subtitle-left: 500px;
    --subtitle-width: 900px;
    --subtitle-font-size: 100px;

    --ca-top: -200px;
    --ca-left: 350px;
    --ca-width: 1200px;
    --ca-height: 150px;
    --ca-font-size: 40px;

    --character-width: 1200px;
    --character-bottom: -800px;
    --character-right: 300px;

    --lore-title-top: 1700px;
    --lore-title-left: 960px;
    --lore-title-font-size: 120px;

    --lore-row-top: 1900px;
    --lore-row-left: 960px;
    --lore-row-gap: 60px;
    --lore-image-width: 400px;

    --lore-source-offset-x: -260px;
    --lore-source-offset-y: -40px;

    --lore-issue1-offset-x: 0px;
    --lore-issue1-offset-y: 0px;

    --lore-issue2-offset-x: 260px;
    --lore-issue2-offset-y: 0px;

    --toast-top: 120px;
    --toast-font-size: 100px;
  }

  body {
    overflow: hidden;
  }

  .scene-wrapper {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .scene {
    position: absolute;
  }
}
