* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    background: #161616;
    color: #f9f7ee;
    font-family: Arial, Helvetica, sans-serif;
}

.screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #161616;
}

.stageHeader {
    position: absolute;
    left: 20px;
    right: 230px;
    top: 18px;
    height: 62px;
    overflow: hidden;
}

.titleBlock {
    float: left;
    max-width: 58%;
}

.eyebrow {
    margin: 0 0 4px;
    color: #f2bd45;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
}

.statsBlock {
    float: right;
    min-width: 210px;
    padding-top: 2px;
    color: #d7d1c2;
    font-size: 15px;
    line-height: 1.35;
    text-align: right;
}

.networkStatus,
.clientCount,
.emojiCount {
    display: block;
}

.clientCount {
    color: #6ed0bf;
    text-decoration: none;
}

.wallFrame {
    position: absolute;
    left: 20px;
    right: 230px;
    top: 96px;
    bottom: 20px;
    overflow: hidden;
}

.emojiWall {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
    border: 6px solid #303030;
    border-radius: 8px;
    background: #eef4f2;
}

.emojiGrid {
    position: absolute;
    left: 50%;
    top: 50%;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    text-align: left;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.emojiTile {
    display: inline-block;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #111111;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", Arial, sans-serif;
    text-align: center;
    vertical-align: top;
    -webkit-transition: -webkit-transform 180ms ease;
    transition: transform 180ms ease;
}

.emojiTile.fresh {
    -webkit-animation: moodPop 360ms ease-out;
    animation: moodPop 360ms ease-out;
}

@-webkit-keyframes moodPop {
    0% {
        -webkit-transform: scale(0.6);
    }

    70% {
        -webkit-transform: scale(1.08);
    }

    100% {
        -webkit-transform: scale(1);
    }
}

@keyframes moodPop {
    0% {
        transform: scale(0.6);
    }

    70% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.emptyMessage {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    color: #59625f;
    font-size: 72px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.qrDock {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 190px;
    min-height: 240px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    background: #23211d;
    text-align: center;
}

.qrTitle {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

.qrPanel {
    width: 166px;
    margin: 0 auto;
}

.controlLink {
    display: block;
    padding: 12px;
    border-radius: 8px;
    background: #f2bd45;
    color: #161616;
    font-weight: bold;
    text-decoration: none;
}

.rcRoomQrCodeLink,
.rcRoomQrCodeLink * {
    box-sizing: content-box;
}

.rcRoomQrCodeLink {
    display: block;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 1px #fff;
    text-align: center;
    transition: opacity 1s ease;
    text-decoration: none;
    box-shadow: 0 0 32px #000;
    transform-origin: center;
    transform: scale(1);
}

.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;
    border-radius: 8px 8px 0 0;
}

.rcRoomQrCode {
    width: 150px;
    height: 150px;
    overflow: hidden;
}

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

.rcRoomId {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    padding: 4px;
    margin: 8px 0 0 0;
    letter-spacing: 0.25em;
    border-radius: 0 0 8px 8px;
}

.lean-paint .screen,
.lean-paint .emojiWall {
    background: #161616;
}

.lean-paint .emojiWall {
    background: #eef4f2;
}

.lean-paint .emojiTile,
.lean-paint .rcRoomQrCodeLink {
    box-shadow: none;
    -webkit-transition: none;
    transition: none;
}

.lean-paint .emojiTile.fresh {
    -webkit-animation: none;
    animation: none;
}

@media (max-width: 820px),
(orientation: portrait) {
    .stageHeader {
        left: 14px;
        right: 14px;
        top: 12px;
        height: 58px;
    }

    h1 {
        font-size: 32px;
    }

    .statsBlock {
        min-width: 126px;
        font-size: 12px;
    }

    .qrDock {
        left: 14px;
        right: auto;
        top: 82px;
        width: 154px;
        height: 226px;
        min-height: 0;
        padding: 8px;
    }

    .qrTitle {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .qrPanel {
        width: 166px;
        -webkit-transform: scale(0.78);
        transform: scale(0.78);
        -webkit-transform-origin: top left;
        transform-origin: top left;
    }

    .wallFrame {
        left: 14px;
        right: 14px;
        top: 322px;
        bottom: 14px;
    }

    .emojiWall {
        border-width: 4px;
    }

    .emptyMessage {
        font-size: 40px;
    }
}

@media (max-height: 560px) {
    .stageHeader {
        top: 10px;
        height: 50px;
    }

    h1 {
        font-size: 30px;
    }

    .wallFrame {
        top: 72px;
    }

    .qrDock {
        top: 10px;
    }
}
