.wrapper.title {
    user-select: none;
    cursor: pointer;
    font-family: serif;
}

.wrapper.title h1 > span {
    display: inline-block;
    position: relative;
    bottom: 0;
    left: 0;
    transition: bottom 0.2s, left 0.2s, color 0.2s;
}

.wrapper.title:hover h1 > span {
    bottom: 8px;
}

.wrapper.title:hover h1 > span:last-child {
    left: 10px;
}

.wrapper.title:hover h1 > span:last-child::before {
    content: "-";
}

.wrapper.title .ipa {
    position: absolute;
    left: 16px;
    top: 44px;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.2s, top 0.2s;
}

.wrapper.title:hover .ipa {
    top: 52px;
    opacity: 1;
}

.wrapper.title h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: normal;
}

.wrapper.title .subtitle {
    font-size: 1rem;
    text-align: right;
}

.wrapper.mirror > * {
    position: absolute;
}

.wrapper.mirror > .box {
    z-index: 3;
}

.wrapper.mirror > canvas {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    inset: 0;
    margin: auto;
    border-radius: 150px;
}

.wrapper.blackboard canvas {
    pointer-events: auto;
    touch-action: none;
    cursor: default;
    position: absolute;
    z-index: 0;
    inset: 0;
    margin: 17px auto auto;
    opacity: 1;
    transition: opacity 0.175s;
}

.wrapper.blackboard.open canvas {
    opacity: 0;
}

.wrapper.blackboard .blackboard-string {
    position: absolute;
    z-index: 1;
    width: 21px;
    height: 20px;
    left: 160px;
    top: 4px;
    cursor: pointer;
    pointer-events: auto;
}

.blackboard-send {
    display: none;
    position: absolute;
    z-index: 1;
    width: 70px;
    height: 70px;
    left: 58px;
    top: 78px;
    cursor: pointer;
    pointer-events: auto;
}

.blackboard-gallery {
    display: none;
    position: absolute;
    z-index: 1;
    width: 70px;
    height: 70px;
    left: 208px;
    top: 77px;
    cursor: pointer;
    pointer-events: auto;
}

.wrapper.blackboard.open .blackboard-send, .wrapper.blackboard.open .blackboard-gallery {
    display: block;
}

.wrapper.blackboard.open .blackboard-string {
    top: 200px;
}

.wrapper.language, .wrapper.modal {
    cursor: pointer;
}

.wrapper.language img {
    user-select: none;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.3s;
    opacity: 0;
}

.wrapper.language img:first-child {
    opacity: 1;
}

.wrapper.clock .clock-hand {
    position: absolute;
    left: 55px;
    top: 52px;
    z-index: 1;
    transform-origin: 1.5px 21.5px;
}

.wrapper.clock .clock-pendulum {
    position: absolute;
    left: 44px;
    top: 112px;
    z-index: -1;
    transform-origin: 13px 1px;
}

/* die tastatur */

.wrapper.keyboard:hover {
    cursor: auto;
}

.box.keyboard {
    pointer-events: auto;
}

.keyboard-key {
    position: absolute;
    cursor: pointer;
    width: 88px;
    height: 99px;
    transition: transform 0.2s;
}

.keyboard-key.active {
    transform: translateY(13px);
}

.keyboard-mask {
    position: absolute;
    pointer-events: none;
}

.keyboard-key-f {
    z-index: 0;
    bottom: 123px;
    left: 82px;
    background-image: url("/sq/img/misc/keyboard/key-f.png");
}

.keyboard-mask-f {
    z-index: 1;
    bottom: 103px;
    left: 82px;
    background-image: url("/sq/img/misc/keyboard/mask-f.png");
    width: 88px;
    height: 25px;
}

.keyboard-key-q {
    z-index: 2;
    bottom: 22px;
    left: 17px;
    background-image: url("/sq/img/misc/keyboard/key-q.png");
}

.keyboard-mask-q {
    z-index: 3;
    bottom: 2px;
    left: 17px;
    background-image: url("/sq/img/misc/keyboard/mask-q.png");
    width: 88px;
    height: 25px;
}

.keyboard-key-w {
    z-index: 2;
    bottom: 22px;
    left: 119px;
    background-image: url("/sq/img/misc/keyboard/key-w.png");
}

.keyboard-mask-w {
    z-index: 3;
    bottom: 2px;
    left: 119px;
    background-image: url("/sq/img/misc/keyboard/mask-w.png");
    width: 88px;
    height: 25px;
}

.keyboard-key-return {
    z-index: 0;
    bottom: 22px;
    left: 184px;
    width: 136px;
    height: 200px;
    background-image: url("/sq/img/misc/keyboard/key-return.png");
}

.keyboard-mask-return {
    z-index: 1;
    bottom: 6px;
    left: 184px;
    background-image: url("/sq/img/misc/keyboard/mask-return.png");
    width: 136px;
    height: 126px;
}


/* das fenster */

.wrapper.window > .box {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.window-skybox {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    mask-image: url("/sq/img/misc/window/mask.png");
    -webkit-mask-image: url("/sq/img/misc/window/mask.png");
}

.window-skybox > div {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* todo s'occuper de ne pas avoir de pointer events sur toute la fenestre */
.window-lighting {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    mask: url("/sq/img/boxes/window.png") no-repeat;
    -webkit-mask: url("/sq/img/boxes/window.png") no-repeat;
}

.window-lighting > div {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.window-lighting-rays {
    z-index: 0;
    background: url("/sq/img/misc/window/light.png");
    opacity: 0.5;
}

.window-lighting-blur {
    z-index: 0;
    background: url("/sq/img/misc/window/light.png");
    filter: blur(3px);
    opacity: 0.5;
}

.window-twilight {
    z-index: 1;
    background: #db3333;
    background: linear-gradient(0deg, #290523 0%, #db3333 11%, #e85b2c 22%, #704592 74%, #4136bf 100%);
    display: none;
}

.window-night {
    z-index: 0;
    background: #040618;
    display: none;
}

.window-day {
    z-index: 0;
    background: #72b2d4;
    background: linear-gradient(180deg, #72b2d4 40%, #cce9f3 100%);
    display: none;
}

.screen-crt {
    background: url("/sq/img/misc/screen-crt.png");
    width: 100%;
    height: 100%;
    opacity: 1;
    position: absolute;
}

.screen-light {
    background: radial-gradient(#439786C0, transparent 61%);
    width: 100%;
    height: 100%;
    opacity: 1;
    position: absolute;
}

.screen-text {
    font-size: 4rem;
    width: 296px;
    height: 97px;
    overflow: hidden;
    letter-spacing: 4px;
    position: absolute;
    inset: 0;
    margin: auto;
    padding: 0 8px;
    box-sizing: border-box;
}