* {
    box-sizing: border-box;
}

:root {
    background-color: #3D2965;
    height: 100%;
}

body {
    margin: 0 auto;
    width: 100ch;
    max-width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

body div {
    padding: 2em;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5em;
}

h2 {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #dfd6e9;
    font-weight: normal;
    margin: 0;
    font-size: 1em;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: -0.05ch;
}

body div button {
    padding: 2.5em;
    flex-grow: 1;
    aspect-ratio: 1;
    border: 0;
    border-radius: 3em;
    background-color: #3D2965;
    border-radius: 50px;
    box-shadow: 20px 20px 60px #342356,
        -20px -20px 60px #462f74;

    background: linear-gradient(145deg, #37255b, #412c6c);
    transition: background 0.1s;
}

button.lit {
    background: linear-gradient(145deg, #412c6c, #37255b);
}

button:active, button.unknown {
    background: #3D2965;
}

button.unknown::before {
    animation: unknown-fader 3s linear infinite;
}

@keyframes unknown-fader {
    0% {
        clip-path: polygon(-100% -100%, 200% -100%, -100% 200%);
    }
    25% {
        clip-path: polygon(-100% 200%, -100% -100%, 200% 200%);
    }
    50% {
        clip-path: polygon(200% 200%, -100% 200%, 200% -100%);
    }
    75% {
        clip-path: polygon(200% -100%, 200% 200%, -100% -100%);
    }
    100% {
        clip-path: polygon(-100% -100%, 200% -100%, -100% 200%);
    }
}

button.lit::before {
  box-shadow: 0 0 6em 0 #e7efc5ac inset, 0 0 2em 0 #e7efc5ac;
  border-color: #e7efc5;
}

button::before {
  content: "";
  position: relative;
  box-sizing: border-box;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  display: block;
  border: 0.25em solid #FED4E7;
}