* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    overflow: hidden;
    background: #07141b;
    color: #f3fbff;
    font-family: Arial, Helvetica, sans-serif;
}

button {
    font: inherit;
}

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

.sidePanel {
    position: absolute;
    left: 18px;
    top: 18px;
    bottom: 226px;
    width: 258px;
    overflow: hidden;
    padding: 12px;
    border: 1px solid #244856;
    border-radius: 8px;
    background: #102b36;
}

.playArea {
    position: absolute;
    left: 294px;
    right: 18px;
    top: 18px;
    bottom: 18px;
    overflow: hidden;
    text-align: center;
}

.brand {
    cursor: pointer;
    outline: none;
}

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

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

.status {
    color: #b6ccd4;
    font-size: 14px;
}

.qrLink {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 133px;
    height: 200px;
    z-index: 3;
}

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

.rcRoomQrCodeLink {
    display: block;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    margin: 8px;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 1px #fff;
    text-align: center;
    -webkit-transition: opacity 1s ease;
    transition: opacity 1s ease;
    text-decoration: none;
    -webkit-transform-origin: top left;
    transform-origin: top left;
    -webkit-transform: scale(1);
    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;
}

.rcRoomQrCode {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    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;
}

.status {
    min-height: 22px;
    margin: 0 0 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.scoreboard {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 300px;
    bottom: 68px;
    overflow: auto;
}

.playerRow {
    position: relative;
    min-height: 36px;
    margin-bottom: 7px;
    padding: 8px 62px 8px 30px;
    overflow: hidden;
    border: 1px solid #244856;
    border-radius: 8px;
    background: #143440;
}

.playerSwatch {
    position: absolute;
    left: 9px;
    top: 11px;
    width: 14px;
    height: 14px;
    border-radius: 14px;
    background: #00b4d8;
}

.playerName {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.playerScore {
    position: absolute;
    right: 9px;
    top: 9px;
    color: #b6ccd4;
    font-size: 13px;
}

.buttonRow {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    height: 42px;
}

.soundButton,
.resetButton {
    float: left;
    width: 48%;
    height: 40px;
    border: 1px solid #386071;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.soundButton {
    margin-right: 4%;
    background: #183b49;
    color: #ffffff;
}

.soundButton.soundOn {
    background: #0b6470;
}

.resetButton {
    background: #f0c85c;
    color: #111817;
}

.bubbleGrid {
    box-sizing: content-box;
    position: relative;
    display: block;
    margin: 0 auto;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #244856;
    border-radius: 8px;
    background: #0d2a35;
    line-height: 0;
    font-size: 0;
    -ms-touch-action: none;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.bubble {
    position: relative;
    display: inline-block;
    padding: 0;
    border: 0;
    border-radius: 80px;
    background: transparent;
    cursor: pointer;
    outline: none;
    vertical-align: top;
    -webkit-appearance: none;
    appearance: none;
}

.bubbleInner {
    position: absolute;
    left: 7%;
    top: 7%;
    width: 86%;
    height: 86%;
    border: 4px solid #94becd;
    border-radius: 80px;
    background: #dff9ff;
    -webkit-box-shadow: inset -10px -12px 18px rgba(4, 24, 34, 0.26), inset 7px 8px 16px rgba(255, 255, 255, 0.62), 0 8px 15px rgba(0, 0, 0, 0.18);
    box-shadow: inset -10px -12px 18px rgba(4, 24, 34, 0.26), inset 7px 8px 16px rgba(255, 255, 255, 0.62), 0 8px 15px rgba(0, 0, 0, 0.18);
    -webkit-transform-origin: 50% 58%;
    transform-origin: 50% 58%;
    -webkit-transition: -webkit-transform 150ms ease, -webkit-box-shadow 150ms ease;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.bubbleShade {
    position: absolute;
    left: 16%;
    top: 20%;
    width: 68%;
    height: 66%;
    border-radius: 80px;
    background: #ffffff;
    opacity: 0.16;
    pointer-events: none;
}

.bubbleHighlight {
    position: absolute;
    left: 24%;
    top: 18%;
    width: 23%;
    height: 18%;
    border-radius: 30px;
    background: #ffffff;
    opacity: 0.76;
    pointer-events: none;
}

.bubbleGleam {
    position: absolute;
    left: 34%;
    top: 31%;
    width: 42%;
    height: 32%;
    border-radius: 80px;
    background: #ffffff;
    opacity: 0.12;
    pointer-events: none;
}

.bubble.popping .bubbleInner {
    -webkit-animation: bubblePop 560ms ease;
    animation: bubblePop 560ms ease;
}

.bubble.popping .bubbleHighlight,
.bubble.popping .bubbleGleam {
    -webkit-animation: bubbleShinePop 560ms ease;
    animation: bubbleShinePop 560ms ease;
}

.bubble:active .bubbleInner {
    -webkit-transform: translateY(4%) scale(1.04, 0.78);
    transform: translateY(4%) scale(1.04, 0.78);
}

@-webkit-keyframes bubblePop {
    0% {
        -webkit-transform: translateY(0) scale(1, 1);
    }

    24% {
        -webkit-transform: translateY(6%) scale(1.08, 0.30);
        -webkit-box-shadow: inset 0 -5px 9px rgba(4, 24, 34, 0.32), inset 0 5px 8px rgba(255, 255, 255, 0.35), 0 3px 7px rgba(0, 0, 0, 0.22);
    }

    48% {
        -webkit-transform: translateY(-3%) scale(0.88, 1.13);
    }

    72% {
        -webkit-transform: translateY(1%) scale(1.04, 0.96);
    }

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

@keyframes bubblePop {
    0% {
        transform: translateY(0) scale(1, 1);
    }

    24% {
        transform: translateY(6%) scale(1.08, 0.30);
        box-shadow: inset 0 -5px 9px rgba(4, 24, 34, 0.32), inset 0 5px 8px rgba(255, 255, 255, 0.35), 0 3px 7px rgba(0, 0, 0, 0.22);
    }

    48% {
        transform: translateY(-3%) scale(0.88, 1.13);
    }

    72% {
        transform: translateY(1%) scale(1.04, 0.96);
    }

    100% {
        transform: translateY(0) scale(1, 1);
    }
}

@-webkit-keyframes bubbleShinePop {
    0% {
        opacity: 0.76;
        -webkit-transform: translateY(0) scale(1, 1);
    }

    24% {
        opacity: 0.14;
        -webkit-transform: translateY(60%) scale(1.14, 0.36);
    }

    54% {
        opacity: 0.86;
        -webkit-transform: translateY(-10%) scale(1.05, 1.05);
    }

    100% {
        opacity: 0.76;
        -webkit-transform: translateY(0) scale(1, 1);
    }
}

@keyframes bubbleShinePop {
    0% {
        opacity: 0.76;
        transform: translateY(0) scale(1, 1);
    }

    24% {
        opacity: 0.14;
        transform: translateY(60%) scale(1.14, 0.36);
    }

    54% {
        opacity: 0.86;
        transform: translateY(-10%) scale(1.05, 1.05);
    }

    100% {
        opacity: 0.76;
        transform: translateY(0) scale(1, 1);
    }
}

.winnerBanner {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 22px;
    display: none;
    padding: 16px 20px;
    border: 1px solid #416978;
    border-radius: 8px;
    background: #102b36;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    line-height: 1.15;
    text-align: center;
}

.winnerBanner.visible {
    display: block;
}

.lean-paint body,
body.lean-paint,
.lean-paint .screen {
    background: #07141b;
}

.lean-paint .sidePanel,
.lean-paint .bubbleGrid,
.lean-paint .playerRow,
.lean-paint .winnerBanner {
    box-shadow: none;
}

.lean-paint .bubbleInner {
    background-image: none !important;
    -webkit-box-shadow: none;
    box-shadow: none;
    transition: none;
}

.lean-paint .bubble.popping .bubbleInner,
.lean-paint .bubble.popping .bubbleHighlight,
.lean-paint .bubble.popping .bubbleGleam {
    -webkit-animation: none;
    animation: none;
}

.lean-paint .bubbleShade,
.lean-paint .bubbleGleam {
    display: none;
}

@media (max-width: 820px),
(orientation: portrait) {
    body {
        overflow: auto;
    }

    .screen {
        min-height: 100%;
        height: auto;
        overflow: visible;
    }

    .sidePanel {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: auto;
        min-height: 0;
        margin: 10px;
        padding: 10px;
        overflow: visible;
        zoom: 1;
    }

    .brand {
        float: left;
        width: 50%;
    }

    h1 {
        font-size: 26px;
    }

    .qrLink {
        position: absolute;
        left: 10px;
        bottom: 10px;
        width: 100px;
        height: 200px;
    }

    .qrPanelMount {
        -webkit-transform: scale(0.7);
        transform: scale(0.7);
    }

    .status {
        clear: left;
        margin-top: 8px;
    }

    .scoreboard {
        position: relative;
        clear: both;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        max-height: 112px;
        margin-top: 8px;
    }

    .buttonRow {
        position: relative;
        clear: both;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 8px;
    }

    .playArea {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        min-height: 260px;
        margin: 10px;
        overflow: visible;
    }

    .winnerBanner {
        font-size: 20px;
        bottom: 12px;
    }
}