* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #05070c;
    color: #f8fbff;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

body {
    position: relative;
}

.stage {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    background: #05070c;
}

#saverCanvas,
.dom-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#saverCanvas {
    display: block;
}

.dom-layer {
    pointer-events: none;
}

.info-panel {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    width: 45vh;
    max-width: 86vw;
    padding: 1.6vh 1.8vh;
    background: #07111c;
    border: 0.16vh solid rgba(255, 255, 255, 0.18);
    color: #eef6ff;
    opacity: 0.86;
    transition: opacity 700ms linear;
}

.info-panel.is-quiet {
    opacity: 0;
}

.info-kicker {
    margin: 0 0 0.5vh 0;
    color: rgba(238, 246, 255, 0.64);
    font-size: 1.2vh;
    line-height: 1.1;
    letter-spacing: 0.18vh;
    text-transform: uppercase;
}

.saver-name {
    margin: 0;
    font-size: 3.2vh;
    line-height: 1;
}

.saver-details {
    margin-top: 0.8vh;
    color: rgba(238, 246, 255, 0.72);
    font-size: 1.55vh;
    line-height: 1.25;
}

.low-power .info-panel {
    transition: none;
}

.scan-panel {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 11;
    opacity: 0.88;
}

.scan-panel .rcRoomQrCodeLink {
    display: block;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    margin: 0;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    text-align: center;
    text-decoration: none;
    line-height: normal;
}

.scan-panel .rcTechLabel {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 8px 0;
    padding: 4px;
    letter-spacing: 0.2em;
    line-height: 1.2;
}

.scan-panel .rcRoomQrCode {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.scan-panel .rcRoomQrCode img,
.scan-panel .rcRoomQrCode canvas {
    display: block;
    width: 150px;
    height: 150px;
}

.scan-panel .rcRoomId {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    padding: 4px;
    margin: 8px 0 0 0;
    letter-spacing: 0.25em;
    line-height: 1.2;
}

@media (orientation: portrait) {
    .info-panel {
        width: auto;
        max-width: 72vw;
        padding: 1.35vh 1.45vh;
    }

    .saver-name {
        font-size: 2.55vh;
    }

    .saver-details {
        font-size: 1.35vh;
    }
}
