*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:#050505;
    overflow:hidden;
    color:white;
}

.background{
    position:fixed;
    width:100%;
    height:100%;
    background:radial-gradient(circle at top,#1f2950,#050505 60%);
}

.container{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    height:100vh;
    z-index:2;
}

h1{
    margin-bottom:10px;
    font-size:48px;
}

p{
    color:#bfbfbf;
    margin-bottom:50px;
    font-size:22px;
}

.ball{
    width:380px;
    height:380px;
    border-radius:50%;
    background:radial-gradient(circle at 30% 25%,#4a4a4a,#111 45%,#000 80%);
    position:relative;
    cursor:pointer;
    display:flex;
    justify-content:center;
    align-items:center;

    box-shadow:
    0 0 80px rgba(0,120,255,.25),
    inset -25px -35px 60px rgba(255,255,255,.04);

    transition:.25s;

    animation:float 4s ease-in-out infinite;
}

.ball:hover{
    transform:scale(1.04);

    box-shadow:
    0 0 120px rgba(0,150,255,.45),
    inset -25px -35px 60px rgba(255,255,255,.08);
}

.window{
    width:180px;
    height:180px;
    border-radius:50%;
    background:radial-gradient(circle,#286dff,#0b1f77);

    display:flex;
    justify-content:center;
    align-items:center;

    box-shadow:0 0 35px rgba(0,100,255,.6);

    transition:box-shadow .15s;
}

#answer{
    width:120px;
    height:120px;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    font-size:20px;
    font-weight:bold;
    line-height:1.1;

    color:white;

    word-break:break-word;
    overflow-wrap:break-word;

    padding:8px;

    transition:opacity .4s ease;

    opacity:1;
}

.shine{
    position:absolute;
    top:55px;
    left:75px;

    width:90px;
    height:90px;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    filter:blur(8px);
}

/* Плавание */

@keyframes float{

0%{
    transform:translateY(0px);
}

50%{
    transform:translateY(-8px);
}

100%{
    transform:translateY(0px);
}

}

/* МОЩНАЯ ТРЯСКА */

@keyframes shakeBall {

    0%   { transform: translate(0,0) rotate(0deg) scale(1); }

    10%  { transform: translate(-18px,-10px) rotate(-9deg) scale(1.02); }

    20%  { transform: translate(18px,10px) rotate(9deg) scale(1.02); }

    30%  { transform: translate(-16px,8px) rotate(-8deg); }

    40%  { transform: translate(16px,-8px) rotate(8deg); }

    50%  { transform: translate(-14px,7px) rotate(-7deg); }

    60%  { transform: translate(14px,-7px) rotate(7deg); }

    70%  { transform: translate(-12px,6px) rotate(-6deg); }

    80%  { transform: translate(12px,-6px) rotate(6deg); }

    90%  { transform: translate(-6px,3px) rotate(-3deg); }

    100% { transform: translate(0,0) rotate(0deg) scale(1); }

}

.shake{
    animation: shakeBall 1.5s cubic-bezier(.36,.07,.19,.97);
}

/* Свечение во время тряски */

.shake .window{
    animation:glow .15s infinite alternate;
}

@keyframes glow{

from{
    box-shadow:0 0 35px rgba(0,100,255,.6);
}

to{
    box-shadow:
    0 0 70px rgba(0,170,255,1),
    0 0 120px rgba(0,170,255,.7);
}

}

/* Звезды */

.stars{

position:fixed;

inset:0;

background-image:
radial-gradient(white 1px, transparent 1px),
radial-gradient(white 1px, transparent 1px),
radial-gradient(white 2px, transparent 2px);

background-size:
220px 220px,
350px 350px,
500px 500px;

opacity:.25;

animation:starsMove 80s linear infinite;

pointer-events:none;

}

@keyframes starsMove{

from{
background-position:0 0,0 0,0 0;
}

to{
background-position:-1000px 600px,700px -900px,-900px 700px;
}

}