* {
    box-sizing: border-box;
}

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

.viewer-shell {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.top-countdown {
    position: absolute;
    top: 1.8vh;
    left: 50%;
    z-index: 4;
    width: 250px;
    margin-left: -125px;
    text-align: center;
    pointer-events: none;
}

.hud {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 20vh;
    overflow: visible;
    pointer-events: none;
}

.brand {
    position: absolute;
    top: 1.8vh;
    left: 2.1vh;
    z-index: 4;
    width: auto;
    max-width: 32vw;
    margin-left: 0;
    padding: 2px 0 0 10px;
    border-left: 5px solid #00e5ff;
    background: transparent;
    text-align: left;
    pointer-events: none;
}

.eyebrow {
    color: #ccff00;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #ffffff;
    font-size: 46px;
    line-height: 0.96;
    text-shadow: 0 0 4px #ffffff, 0 0 12px #00e5ff, 3px 0 0 #ff1744, -3px 0 0 #00ff66;
    white-space: nowrap;
}

.drop-timer {
    display: block;
    min-width: 0;
    margin: 0 auto;
    color: #ccff00;
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 4px #ccff00, 0 0 12px #00ff66;
}

.title-meter {
    width: 250px;
    height: 10px;
    margin: 8px auto 0;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #11333a;
    background: #050505;
}

.title-meter-fill {
    width: 0;
    height: 100%;
    background: #ccff00;
}

p {
    margin: 0;
}

.status-line {
    position: absolute;
    left: 50%;
    bottom: 1.6vh;
    z-index: 3;
    width: 42vw;
    max-width: 620px;
    overflow: hidden;
    color: #dffcff;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 0 5px #00e5ff;
    transform: translateX(-50%);
    white-space: nowrap;
}

.qr-panel {
    position: absolute;
    right: 2.1vh;
    bottom: 1.6vh;
    width: 86px;
    height: 116px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    overflow: visible;
    text-align: center;
    pointer-events: auto;
}

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

.qr-panel .rcRoomQrCodeLink {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: 150px;
    margin: 0;
    border: solid 8px #fff;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    transform-origin: bottom right;
    transform: scale(0.5);
}

.qr-panel .rcTechLabel {
    margin: 0 0 8px 0;
    padding: 4px;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.2em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-panel .rcRoomId {
    margin: 8px 0 0 0;
    padding: 4px;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.25em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-panel .rcRoomQrCode {
    width: 150px;
    height: 150px;
}

.qr-panel img,
.qr-panel canvas {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.lane-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8.2vh;
    z-index: 3;
    display: block;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
}

.lane-slot {
    float: left;
    width: 33.333%;
    padding: 0 2vh;
    text-align: center;
}

.lane-card {
    display: inline-block;
    width: 78%;
    max-width: 390px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    text-align: center;
    vertical-align: top;
}

.lane-card.is-out {
    background: transparent;
    border-color: transparent;
    color: #ff3b5c;
}

.lane-name {
    overflow: hidden;
    font-size: 2.65vh;
    font-weight: bold;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 0 7px currentColor;
}

.lane-slot:nth-child(1) .lane-name {
    color: #ff1744;
}

.lane-slot:nth-child(2) .lane-name {
    color: #00ff66;
}

.lane-slot:nth-child(3) .lane-name {
    color: #008cff;
}

.lane-card.is-out .lane-name,
.lane-card.is-out .lane-meta {
    color: #ff3b5c;
}

.lane-meta {
    margin-top: 0.28vh;
    overflow: hidden;
    color: #c7fff0;
    font-size: 1.82vh;
    line-height: 1.15;
    white-space: nowrap;
    text-shadow: 0 0 5px #002b24;
}

@media (orientation: portrait) {
    .top-countdown {
        top: 1.2vh;
        width: 190px;
        margin-left: -95px;
    }

    .hud {
        bottom: 0;
        left: 0;
        right: 0;
        height: 20vh;
    }

    .brand {
        top: 1.3vh;
        left: 1.3vh;
        max-width: 30vw;
        width: auto;
        margin-left: 0;
        min-width: 0;
        padding: 0;
    }

    h1 {
        font-size: 26px;
    }

    .drop-timer {
        font-size: 30px;
    }

    .title-meter {
        width: 190px;
        height: 8px;
        margin-top: 6px;
    }

    .status-line {
        left: 50%;
        bottom: 1.3vh;
        width: 58vw;
        max-width: none;
        font-size: 11px;
        transform: translateX(-50%);
    }

    .qr-panel {
        right: 1.3vh;
        bottom: 1.3vh;
        width: 74px;
        height: 102px;
    }

    .qr-panel .rcRoomQrCodeLink {
        transform: scale(0.44);
    }

    .lane-panel {
        bottom: 8.1vh;
    }

    .lane-slot {
        padding: 0 0.55vh;
    }

    .lane-card {
        width: 96%;
        padding: 0;
    }

    .lane-name {
        font-size: 1.95vh;
    }

    .lane-meta {
        font-size: 1.42vh;
        white-space: normal;
    }
}

@media (min-height: 900px) and (orientation: landscape) {
    .qr-panel {
        width: 100px;
        height: 134px;
    }

    .qr-panel .rcRoomQrCodeLink {
        transform: scale(0.58);
    }
}
