html {
  height: 100%;
  font-size: 16px;
}

body {
  background: #000000;
  color: #ffffff;
  font-size: 100%;
}

h1 {
  margin-left: .3em;
  font-family: "Kokoro";
  font-size: 1.5em;
  font-feature-settings: "palt";
}

.button {
  margin: 0;
  padding: .3em 1em .5em;
  background: none;
  border: 1px solid #ffffff;
  color: #ffffff;
  border-radius: .3em;
  line-height: 1.2;
  font-size: 1em;
  font-family: "Kokoro";
  font-feature-settings: "palt";
}
.button:focus {
  outline: none;
  border: 1px solid #ff9933;
}

.description {
  position: fixed;
  top: 0em;
  left: 0;
  width: 100%;
  z-index: 9999;
  font-family: "Kokoro";
  font-feature-settings: "palt";
}

#option {
  margin: 0 1em;
  text-align: center;
}
#option input[name="message"] {
  display: block;
  padding: .3em;
  width: 100%;
  box-sizing: border-box;
  background: #000000;
  color: #ffffff;
  border: 2px solid transparent;
  border-bottom: 2px solid #ffffff;
  font-size: 1em;
  outline: none;
  transition: border 400ms, background 400ms;
  text-align: center;
}
#option input[name="message"]:focus {
  border-bottom: 2px solid #ff9933;
}
#option p.notes {
  display: block;
  margin: 0;
  padding: 0;
  font-size: .75em;
  opacity: .8;
}
#option .button {
  margin: 1em 0;
}

#result {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#result.ig .fw {
  transform: translate(0, 0);
}
#result.ig .fw:after {
  transform: scale(1);
}

.retry {
  position: fixed;
  top: 40%;
  left: 0;
  z-index: 9999;
  width: 100%;
  text-align: center;
}
.retry button, .retry .button {
  display: inline-block;
  margin: .5em;
  padding: .3em 1em .5em;
  border: 1px solid #ffffff;
  background: none;
  border-radius: .3em;
  text-decoration: none;
  font-size: 1em;
  color: #ffffff;
  line-height: 1.2;
  font-family: "Kokoro";
  font-feature-settings: "palt";
  cursor: pointer;
}
.retry .share_link {
  margin: 1em 0;
}
.retry .share_link .social {
  text-align: center;
  justify-content: center;
}

.share {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.social {
  margin: 0;
  padding: 0;
  list-style: none inside;
  display: flex;
}
.social li {
  margin: 0 .3em;
  padding: 0;
  display: inline-block;
  text-align: center;
  line-height: 1;
  vertical-align: bottom;
  position: relative;
}
.social li a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 800ms, color 800ms;
  padding: .5em;
  min-width: 1em;
  height: 1em;
  line-height: 1.2;
  border-radius: .1em;
}
.social li a:hover {
  background: #fff;
  color: #000;
}
.social li a img {
  vertical-align: bottom;
}

.fw {
  position: absolute;
  top: -5%;
  left: 50%;
  width: .3em;
  height: 60%;
  border-radius: .2em;
  background: linear-gradient(to bottom, #ff47d0 0%, #ff47d0 12%, #00217f 18%, #00217f 48%, #afd23b 57%, #cebf19 58%, #cebf19 70%, #ba0021 80%, #ba0021 100%);
  transform: translate(0, -100%);
  transition: transform 2400ms cubic-bezier(0.73, 1.02, 0.85, 1.03);
}
.fw:after {
  display: none;
  content: "";
  position: absolute;
  bottom: -5%;
  left: -25%;
  width: 150%;
  height: 10%;
  border-radius: 100%;
  background: #fff;
  box-shadow: 0 .5em 2em #ba7321, inset 0 0 .1em #ba7321;
  transform: scale(0);
  transition: transform 3200ms;
}
.fw .spark {
  display: none;
  position: absolute;
  bottom: -10%;
  left: -25%;
  z-index: 0;
  width: 150%;
  height: 10%;
  border-radius: 100%;
  background: #fff;
  box-shadow: 0 .5em 2em #ba7321, inset 0 0 .1em #ba7321;
  transform: rotate(0);
  transform-origin: center top;
}
.fw .spark2 {
  display: none;
  position: absolute;
  bottom: -5%;
  left: -25%;
  z-index: 0;
  width: 10%;
  height: 10%;
  border-radius: 100%;
  background: #ba7321;
  transform-origin: right center;
}
.fw .word {
  display: none;
  position: absolute;
  bottom: -8em;
  left: 50%;
  width: 8em;
  height: 8em;
  z-index: 1;
  transform-origin: left top;
}
.fw .word span {
  display: inline-block;
  font-size: 1.8em;
  color: #ffc684;
  font-weight: 300;
  line-height: 1;
}
.fw .word:nth-child(1n) {
  margin-left: 0;
  text-align: left;
  transform-origin: left bottom;
}
.fw .word:nth-child(2n) {
  margin-left: -8em;
  text-align: right;
  transform-origin: right bottom;
}

.blackout {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 100%;
  height: 100%;
  background: black;
  transition: background 420ms;
}

body.phase01 .blackout {
  background: radial-gradient(rgba(0, 0, 0, 0), #000000 80%);
}

body.phase01 .fw:after {
  display: block;
  animation: fire 1s ease 0s infinite alternate;
}
body.phase02 .fw .spark {
  display: block;
}
body.phase02 .fw .spark:nth-child(1n) {
  animation: spark 2s linear 0ms infinite;
}
body.phase02 .fw .spark:nth-child(2n) {
  animation: spark 2s linear -500ms infinite;
}
body.phase02 .fw .spark:nth-child(3n) {
  animation: spark 2s linear -1ms infinite;
}
body.phase02 .fw .spark:nth-child(4n) {
  animation: spark 2s linear -1500ms infinite;
}
body.phase02 .fw .spark2 {
  display: block;
}
body.phase02 .fw .spark2:nth-child(1n) {
  animation: spark2 10s linear 0ms infinite;
}
body.phase02 .fw .spark2:nth-child(2n) {
  animation: spark2 10s linear -2s infinite;
}
body.phase02 .fw .spark2:nth-child(3n) {
  animation: spark2 10s linear -4s infinite;
}
body.phase02 .fw .spark2:nth-child(4n) {
  animation: spark2 10s linear -6s infinite;
}
body.phase03 .fw .word {
  display: block;
}
body.phase03 .fw .word span {
  animation: word 300ms linear 0ms infinite;
}
body.phase04 .fw:after {
  opacity: 1;
  transform: translate(0, 10%) scale(1, 0.5);
  animation: ptn 5s ease 0s !important;
}
body.phase04 .fw .spark:nth-child(1n), body.phase04 .fw .spark:nth-child(2n), body.phase04 .fw .spark:nth-child(3n), body.phase04 .fw .spark:nth-child(4n),
body.phase04 .fw .spark2:nth-child(1n),
body.phase04 .fw .spark2:nth-child(2n),
body.phase04 .fw .spark2:nth-child(3n),
body.phase04 .fw .spark2:nth-child(4n) {
  transform: scale(0);
  animation: fo 1s ease 0s !important;
}
body.phase04 .fw .word span {
  transform: scale(0.1);
}
body.phase05 .fw:after {
  opacity: 0;
  transform: translate(0, 300%) scale(0, 0);
  animation: ptn2 500ms linear 0s !important;
}
body.phase05 .fw .word, body.phase05 .fw .word span {
  transform: scale(0);
  animation: fo 0s ease 0s !important;
}

@keyframes ptn {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1, 1);
  }
  100% {
    opacity: 1;
    transform: translate(0, 10%) scale(1, 0.5);
  }
}
@keyframes ptn2 {
  0% {
    opacity: 1;
    transform: translate(0, 10%) scale(1, 0.5);
  }
  90% {
    opacity: .3;
    transform: translate(0, 300%) scale(0.5, 0.25);
  }
  100% {
    opacity: 0;
    transform: translate(0, 300%) scale(0, 0);
  }
}
@keyframes fo {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes fire {
  0% {
    box-shadow: 0 .5em 2em #ba7321, inset 0 0 .1em #ba7321;
  }
  100% {
    box-shadow: 0 .2em .5em #ba7321, inset 0 0 .5em #ba7321;
  }
}
@keyframes spark {
  0% {
    transform: scale(1, 1) rotate(0deg);
    box-shadow: 0 .5em 2em #ba7321, inset 0 0 .1em #ba7321;
  }
  25% {
    transform: scale(-1, 2) rotate(120deg);
    box-shadow: 0 .2em .5em #ba7321, inset 0 0 .5em #ba7321;
  }
  50% {
    transform: scale(1, -1) rotate(0deg);
    box-shadow: 0 .5em 2em #ffffff, inset 0 0 .1em #ffffff;
  }
  75% {
    transform: scale(-1, -2) rotate(-120deg);
    box-shadow: 0 .2em .5em #ba7321, inset 0 0 .5em #ba7321;
  }
  100% {
    transform: scale(1, 1) rotate(0deg);
    box-shadow: 0 .5em 2em #ba7321, inset 0 0 .1em #ba7321;
  }
}
@keyframes spark2 {
  0% {
    transform-origin: right center;
    transform: rotate(45deg) scale(1, 1) translate(0%, 0%);
  }
  5% {
    transform-origin: right center;
    transform: rotate(45deg) scale(0, 0) translate(-200%, -200%);
  }
  19% {
    transform-origin: left center;
    transform: rotate(-45deg) scale(0, 0) translate(0%, 0%);
  }
  20% {
    transform-origin: left center;
    transform: rotate(-45deg) scale(1, 1) translate(0%, -200%);
  }
  25% {
    transform-origin: left center;
    transform: rotate(-45deg) scale(0, 0) translate(-200%, -200%);
  }
  29% {
    transform-origin: left center;
    transform: rotate(45deg) scale(0, 0) translate(0%, 0%);
  }
  30% {
    transform-origin: left center;
    transform: rotate(45deg) scale(2, 1) translate(0%, -200%);
  }
  35% {
    transform-origin: left center;
    transform: rotate(45deg) scale(0, 0) translate(200%, -200%);
  }
  39% {
    transform-origin: left center;
    transform: rotate(-45deg) scale(0, 0) translate(0%, 0%);
  }
  40% {
    transform-origin: left center;
    transform: rotate(-45deg) scale(2, 1) translate(0%, 200%);
  }
  45% {
    transform-origin: left center;
    transform: rotate(-45deg) scale(0, 0) translate(200%, 200%);
  }
  49% {
    transform-origin: left center;
    transform: rotate(45deg) scale(0, 0) translate(0%, 0%);
  }
  50% {
    transform-origin: left center;
    transform: rotate(45deg) scale(2, 1) translate(0%, 200%);
  }
  55% {
    transform-origin: left center;
    transform: rotate(45deg) scale(0, 0) translate(200%, 200%);
  }
  100% {
    transform-origin: left center;
    transform: rotate(45deg) scale(0, 0) translate(-200%, -200%);
  }
}
@keyframes word {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes word1n {
  0% {
    opacity: 1;
    transform: rotate(0) scale(1, 1) translate(0%, 0%);
  }
  5% {
    opacity: 1;
    transform: rotate(45deg) scale(1, 1) translate(0%, 0%);
  }
  6% {
    opacity: 0;
    transform: rotate(0) scale(0, 0) translate(0%, 0%);
  }
  100% {
    opacity: 1;
    transform: rotate(0) scale(0, 0) translate(0%, 0%);
  }
}
@keyframes word2n {
  0% {
    opacity: 1;
    transform: rotate(0) scale(1, 1) translate(0%, 0%);
  }
  5% {
    opacity: 1;
    transform: rotate(-45deg) scale(1, 1) translate(0%, 0%);
  }
  6% {
    opacity: 0;
    transform: rotate(0) scale(0, 0) translate(0%, 0%);
  }
  100% {
    opacity: 1;
    transform: rotate(0) scale(0, 0) translate(0%, 0%);
  }
}
