html {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Oxygen', sans-serif;
    background-color: #1c2020;
}

body {
    position: relative;
    width: 100%;
    height: 100%;
}

html, body,
.mobile, .mobile *,
.loader, .logo,
.footer, .footer * {
    box-sizing: border-box;
}

body > canvas {
    position: relative;
    z-index: 1;
}

.dg .c .selector {
    transform: translate(0, -1px);
}

.dg.ac {
    display: none !important;
}

.mobile {
    display: none;
    position: absolute;
    width: 100%;
    top: 50%;
    padding: 0 30px;

    font-size: 12px;
    color: #fff;

    transform: translate3d(0, -50%, 0);
}

.mobile span {
    color: #ccc;
    text-decoration: underline;
}

.mobile a {
    color: #ccc;
}

.logo {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 443px;
    height: 110px;
    margin-left: -222px;
    margin-top: -55px;
    background-size: 100% 100%;
    background-image: url(../images/logo.png);
    pointer-events: none;
    opacity: 0;
    z-index: 2;
}
@media (min-width: 960px) {
    .logo {
        left: 75%;
    }
}

.instruction, .footer {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 20px;
    padding-right: 20px;
    padding-left: 20px;

    font-size: 14px;
    z-index: 2;
}

html.is-mobile .instruction, html.is-mobile .footer {
    font-size: 11px;
}

.instruction {
    pointer-events: none;
    color: #ccc;
}

.footer {
    text-align: right;
    color: #999;
}

.footer span {
    display: inline-block;
    transform: translate3d(0, 50px, 0);
}

.footer a {
    color: #bbb;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

html.is-white .footer {
    color: #000;
}
html.is-white .footer a {
    color: #121212;
}

/* Gorgone: sem créditos/instruções textuais visíveis na tela. */
.logo,
.instruction,
.footer,
.mobile {
    display: none !important;
}

/* Frame/viewport controlado pelo painel de Rendering.
   O lado externo permanece quadrado; o recorte interno arredondado deixa
   os cantos preenchidos pela própria cor do frame. */
:root {
    --gorgone-frame-thickness: 0px;
    --gorgone-frame-roundness: 0px;
    --gorgone-frame-color: rgba(255,255,255,1);
}

body.gorgone-frame-enabled canvas {
    clip-path: inset(var(--gorgone-frame-thickness) round var(--gorgone-frame-roundness));
}

#gorgone-viewport-frame {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    box-sizing: border-box;
}

#gorgone-viewport-frame::before {
    content: "";
    position: absolute;
    inset: var(--gorgone-frame-thickness);
    border-radius: var(--gorgone-frame-roundness);
    background: transparent;
    box-shadow: 0 0 0 9999px var(--gorgone-frame-color);
    pointer-events: none;
}

#gorgone-viewport-frame::after {
    content: "";
    position: absolute;
    inset: var(--gorgone-frame-thickness);
    border-radius: var(--gorgone-frame-roundness);
    box-shadow: 0 0 0 1px var(--gorgone-frame-color);
    pointer-events: none;
}

body.gorgone-frame-enabled #gorgone-viewport-frame {
    display: block;
}
