
#cube-game{position:relative;width:100%;height:65vh;min-height:420px;overflow:hidden;border-radius:10px;background:#d1d5db;font-size:60px;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none;-moz-user-select:none;touch-action:none;}
@media (max-width:768px){#cube-game{height:55vh;min-height:330px;}}
#cube-game:-webkit-full-screen,#cube-game:fullscreen{width:100vw!important;height:100vh!important;border-radius:0;max-width:none;max-height:none;}
.cube-game *,.cube-game *:before,.cube-game *:after{-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;cursor:inherit;margin:0;padding:0;outline:none;font-size:inherit;font-family:inherit;font-weight:inherit;font-style:inherit;text-transform:uppercase;}
.cube-game *:focus{outline:none;}
.cube-game .icon{display:inline-block;font-size:inherit;overflow:visible;vertical-align:-0.125em;}
.cube-game .range{position:relative;width:14em;z-index:1;opacity:0;}
.cube-game .range:not(:last-child){margin-bottom:2em;}
.cube-game .range__label{position:relative;font-size:0.9em;line-height:0.75em;padding-bottom:0.5em;z-index:2;}
.cube-game .range__track{position:relative;height:1em;margin-left:0.5em;margin-right:0.5em;z-index:3;}
.cube-game .range__track-line{position:absolute;background:rgba(0,0,0,0.2);height:2px;top:50%;margin-top:-1px;left:-0.5em;right:-0.5em;transform-origin:left center;}
.cube-game .range__handle{position:absolute;width:0;height:0;top:50%;left:0;cursor:pointer;z-index:1;}
.cube-game .range__handle div{transition:background 500ms ease;position:absolute;left:0;top:0;width:0.9em;height:0.9em;border-radius:0.2em;margin-left:-0.45em;margin-top:-0.45em;background:#41aac8;border-bottom:2px solid rgba(0,0,0,0.2);}
.cube-game .range.is-active .range__handle div{transform:scale(1.25);}
.cube-game .range__handle:after{content:"";position:absolute;left:0;top:0;width:3em;height:3em;margin-left:-1.5em;margin-top:-1.5em;}
.cube-game .range__list{display:flex;flex-flow:row nowrap;justify-content:space-between;position:relative;padding-top:0.5em;font-size:0.55em;color:rgba(0,0,0,0.5);z-index:1;}
.cube-game .stats{position:relative;width:14em;z-index:1;display:flex;justify-content:space-between;opacity:0;}
.cube-game .stats:not(:last-child){margin-bottom:1.5em;}
.cube-game .stats i{display:inline-block;color:rgba(0,0,0,0.5);font-size:0.9em;}
.cube-game .stats b{display:inline-block;font-size:0.9em;}
.cube-game .text{position:absolute;left:0;right:0;text-align:center;line-height:0.75;perspective:100rem;opacity:0;}
.cube-game .text i{display:inline-block;opacity:0;white-space:pre-wrap;}
.cube-game .text--title{bottom:75%;font-size:4.4em;height:1.2em;}
.cube-game .text--title span{display:block;}
.cube-game .text--title span:first-child{font-size:0.5em;margin-bottom:0.2em;}
.cube-game .text--note{top:87%;font-size:1em;}
.cube-game .text--timer{bottom:78%;font-size:3.5em;line-height:1;}
.cube-game .text--complete,.cube-game .text--best-time{font-size:1.5em;top:83%;line-height:1em;}
.cube-game .btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-radius:0;border-width:0;position:absolute;pointer-events:none;font-size:1.2em;color:rgba(0,0,0,0.25);opacity:0;}
.cube-game .btn:after{position:absolute;content:"";width:3em;height:3em;left:50%;top:50%;margin-left:-1.5em;margin-top:-1.5em;border-radius:100%;}
.cube-game .btn--bl{bottom:0.8em;left:0.8em;}
.cube-game .btn--br{bottom:0.8em;right:0.8em;}
.cube-game .btn--bc{bottom:0.8em;left:calc(50% - 0.5em);}
.cube-game .btn--pwa{transition:color 500ms ease;color:inherit;height:1em;}
.cube-game .btn--pwa svg{font-size:0.6em;margin:0.35em 0;}
.cube-game .btn svg{display:block;}
.cube-game .ui{pointer-events:none;color:#070d15;}
.cube-game .ui,.cube-game .ui__background,.cube-game .ui__game,.cube-game .ui__texts,.cube-game .ui__prefs,.cube-game .ui__stats,.cube-game .ui__buttons{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;}
.cube-game .ui__background{z-index:1;transition:background 500ms ease;background:#d1d5db;}
.cube-game .ui__background:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background-image:linear-gradient(to bottom,white 50%,rgba(255,255,255,0) 100%);}
.cube-game .ui__game{pointer-events:all;z-index:2;}
.cube-game .ui__game canvas{display:block;width:100%;height:100%;}
.cube-game .ui__texts{z-index:3;}
.cube-game .ui__prefs,.cube-game .ui__stats{display:flex;flex-flow:column nowrap;justify-content:center;align-items:center;overflow:hidden;z-index:4;}
.cube-game .ui__buttons{z-index:5;}
.cube-game .ui__notification{transition:transform 500ms ease,opacity 500ms ease;font-family:sans-serif;position:absolute;left:50%;bottom:0.6em;padding:0.6em;margin-left:-9.4em;width:18.8em;z-index:6;background:rgba(17,17,17,0.9);border-radius:0.8em;display:flex;align-items:center;flex-flow:row nowrap;color:#fff;user-select:none;opacity:0;pointer-events:none;transform:translateY(100%);}
.cube-game .ui__notification.is-active{opacity:1;pointer-events:all;transform:none;}
.cube-game .ui__notification *{text-transform:none;}
.cube-game .ui__notification-icon{background-size:100% 100%;left:0.6em;top:0.6em;width:2.8em;height:2.8em;border-radius:0.5em;background:#fff;margin-right:0.6em;display:block;}
.cube-game .ui__notification-text{font-size:0.75em;line-height:1.4em;}
.cube-game .ui__notification-text .icon{color:#4f82fd;font-size:1.1em;}
.cube-game .ui__notification-text b{font-weight:700;}
.cube-game .btn--stats{visibility:hidden;}

.cube-game .cube-fs-btn{position:absolute;top:10px;right:10px;z-index:20;width:38px;height:38px;line-height:36px;text-align:center;border-radius:8px;background:rgba(255,255,255,0.55);color:#333;cursor:pointer;font-size:18px;border:1px solid rgba(0,0,0,0.08);transition:background .2s ease,color .2s ease;box-shadow:0 2px 8px rgba(0,0,0,0.12);pointer-events:auto;}
.cube-game .cube-fs-btn:hover{background:rgba(255,255,255,0.85);}
.cube-game .cube-fs-btn .icons{font-size:18px;line-height:36px;color:inherit;}

body.night .cube-game .ui{color:#e8e6e3;}
body.night .cube-game .ui__background{background:#1b1e24 !important;}
body.night .cube-game .ui__background:after{background-image:linear-gradient(to bottom,rgba(255,255,255,0.05),rgba(255,255,255,0) 100%);}
body.night .cube-game .btn{color:rgba(255,255,255,0.35);}
body.night .cube-game .range__track-line{background:rgba(255,255,255,0.25);}
body.night .cube-game .range__list{color:rgba(255,255,255,0.55);}
body.night .cube-game .stats i{color:rgba(255,255,255,0.55);}
body.night .cube-game .stats b{color:#e8e6e3;}
body.night .cube-game .cube-fs-btn{background:rgba(0,0,0,0.45);color:#ddd;border-color:rgba(255,255,255,0.15);}
body.night .cube-game .cube-fs-btn:hover{background:rgba(0,0,0,0.65);}
