* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

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

body {
    overflow: hidden;
    background: #04121f;
    background-image: linear-gradient(165deg, #04121f 0%, #072a41 55%, #0a3f56 100%);
    color: #eaf4ff;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.sea-band {
    position: fixed;
    left: -10%;
    width: 120%;
    height: 22vh;
    border-top: 0.2vh solid rgba(255, 255, 255, 0.05);
    background-color: rgba(255, 255, 255, 0.018);
    transform: rotate(-3deg);
    pointer-events: none;
}

.sea-band-one {
    top: 30vh;
}

.sea-band-two {
    top: 64vh;
    transform: rotate(2deg);
}

.app-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
    padding: 1.4vh 1.4vw;
    flex-direction: column;
}

/* --------------------------------------------------------------- topbar */

.topbar {
    display: flex;
    align-items: center;
    padding: 1vh 1.4vh;
    border: 0.15vh solid rgba(255, 255, 255, 0.1);
    border-radius: 1.2vh;
    background-color: rgba(4, 22, 38, 0.72);
    box-shadow: 0 0.8vh 2vh rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.brand {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.brand-mark {
    position: relative;
    width: 5.2vh;
    height: 5.2vh;
    margin-right: 1.1vh;
    border: 0.25vh solid #f6c453;
    border-radius: 1vh;
    background-color: rgba(246, 196, 83, 0.12);
    flex: 0 0 auto;
}

.brand-hull {
    position: absolute;
    top: 34%;
    left: 18%;
    width: 64%;
    height: 16%;
    border-radius: 0.4vh;
    background-color: #f6c453;
}

.brand-wave {
    position: absolute;
    top: 62%;
    left: 14%;
    width: 72%;
    height: 10%;
    border-radius: 0.4vh;
    background-color: rgba(79, 195, 247, 0.85);
}

.eyebrow {
    margin: 0;
    color: rgba(234, 244, 255, 0.62);
    font-size: 1.4vh;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 0.2vh 0 0;
    font-size: 3.4vh;
    letter-spacing: 0.02em;
    line-height: 1;
}

.head-card {
    display: flex;
    min-width: 12vh;
    margin-left: 1.2vh;
    padding: 0.9vh 1.3vh;
    border: 0.15vh solid rgba(255, 255, 255, 0.1);
    border-radius: 0.9vh;
    background-color: rgba(255, 255, 255, 0.05);
    flex-direction: column;
}

.head-card .caption {
    color: rgba(234, 244, 255, 0.55);
    font-size: 1.25vh;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.head-card strong {
    font-size: 2.4vh;
    line-height: 1.15;
}

.head-card small {
    color: rgba(234, 244, 255, 0.62);
    font-size: 1.45vh;
}

.turn-head {
    min-width: 34vh;
    max-width: 46vh;
    border-color: rgba(246, 196, 83, 0.5);
    background-color: rgba(246, 196, 83, 0.1);
}

.turn-head strong {
    color: #f6c453;
}

.clock-head {
    min-width: 11vh;
    text-align: center;
}

.clock-head strong {
    font-size: 3vh;
    font-variant-numeric: tabular-nums;
}

.network-dot {
    width: 1.4vh;
    height: 1.4vh;
    margin-left: 1.2vh;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    flex: 0 0 auto;
}

.network-dot.is-online {
    background-color: #63d19e;
}

.network-dot.is-error {
    background-color: #ff6b6b;
}

/* ---------------------------------------------------------- battle layout */

.battle-layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 1.2vh;
}

.ocean {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.6vh;
    border: 0.15vh solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2vh;
    background-color: rgba(3, 18, 32, 0.5);
}

.ocean-stage {
    position: relative;
    flex: 0 0 auto;
}

.ocean-labels-x {
    position: absolute;
    top: 0;
    right: 0;
    height: 26px;
}

.ocean-labels-x span {
    position: absolute;
    top: 0;
    color: rgba(234, 244, 255, 0.55);
    font-size: 1.5vh;
    letter-spacing: 0.06em;
    text-align: center;
}

.ocean-labels-y {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 26px;
}

.ocean-labels-y span {
    position: absolute;
    left: 0;
    width: 100%;
    color: rgba(234, 244, 255, 0.55);
    font-size: 1.4vh;
    text-align: center;
}

.ocean-frame {
    position: absolute;
    box-sizing: content-box;
    border: 0.3vh solid rgba(255, 255, 255, 0.32);
    background-color: rgba(6, 38, 59, 0.88);
}

.sector {
    position: absolute;
    overflow: hidden;
}

.sector::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 0.22vh solid rgba(255, 255, 255, 0.28);
    content: "";
    pointer-events: none;
}

.sector.is-turn::after {
    border-color: #f6c453;
}

.sector.is-target::after {
    border-color: #ff8a5c;
}

.sector.is-winner::after {
    border-color: #63d19e;
}

.sector.is-out {
    opacity: 0.5;
}

.sector.is-void {
    opacity: 0.32;
}

.sector-plate {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    padding: 0 0.6vh;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom: 0.15vh solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    white-space: nowrap;
}

.sector.is-turn .sector-plate {
    background-color: rgba(246, 196, 83, 0.2);
}

.sector.is-offline .plate-name {
    text-decoration: line-through;
}

.plate-seat {
    display: block;
    width: 2.2vh;
    height: 2.2vh;
    margin-right: 0.6vh;
    border-radius: 0.4vh;
    background-color: #4fc3f7;
    color: #06263b;
    font-size: 1.4vh;
    font-weight: bold;
    line-height: 2.2vh;
    text-align: center;
    flex: 0 0 auto;
}

.plate-name {
    overflow: hidden;
    min-width: 0;
    font-size: 1.8vh;
    font-weight: bold;
    text-overflow: ellipsis;
}

.plate-tag {
    margin-left: 0.5vh;
    color: #f6c453;
    font-size: 1.2vh;
    letter-spacing: 0.16em;
    flex: 0 0 auto;
}

.plate-tag:empty {
    display: none;
}

.plate-pips {
    display: flex;
    margin-left: auto;
    padding-left: 0.8vh;
    flex: 0 0 auto;
}

.pip {
    display: block;
    width: 1.6vh;
    height: 0.8vh;
    margin-left: 0.4vh;
    border-radius: 0.25vh;
    background-color: #79c7f2;
}

.pip.is-sunk {
    background-color: rgba(255, 255, 255, 0.18);
}

.plate-stat {
    margin-left: 0.7vh;
    color: rgba(234, 244, 255, 0.78);
    font-size: 1.5vh;
    font-weight: bold;
    flex: 0 0 auto;
}

.ocean-frame.is-tight .plate-pips {
    display: none;
}

.sector-cells {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

.sector-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0.5vh 1.2vh;
    border: 0.2vh solid rgba(255, 255, 255, 0.5);
    border-radius: 0.5vh;
    background-color: rgba(4, 18, 31, 0.86);
    font-size: 1.8vh;
    font-weight: bold;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(-8deg);
    white-space: nowrap;
}

.sector-stamp:empty {
    display: none;
}

.cell {
    position: absolute;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background-color: rgba(255, 255, 255, 0.02);
}

.cell.is-miss::after {
    position: absolute;
    top: 33%;
    left: 33%;
    width: 34%;
    height: 34%;
    border-radius: 50%;
    background-color: rgba(159, 198, 232, 0.75);
    content: "";
}

.cell.is-hit {
    border-color: rgba(255, 255, 255, 0.25);
    background-color: #ef6b3c;
}

.cell.is-sunk {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: #96271a;
}

.cell.is-sunk::after {
    position: absolute;
    top: 40%;
    left: 12%;
    width: 76%;
    height: 20%;
    background-color: rgba(0, 0, 0, 0.4);
    content: "";
}

.cell.is-aim {
    border: 2px solid #ffd479;
    background-color: rgba(255, 212, 121, 0.5);
    animation: aimPulse 1s infinite;
}

.cell.is-blast {
    animation: blastPop 0.7s ease-out;
}

.cell.is-splash {
    animation: splashPop 0.7s ease-out;
}

@keyframes aimPulse {
    0% { opacity: 1; }
    50% { opacity: 0.72; }
    100% { opacity: 1; }
}

@keyframes blastPop {
    0% { background-color: #fff2c4; transform: scale(1.9); }
    100% { transform: scale(1); }
}

@keyframes splashPop {
    0% { background-color: #dcefff; transform: scale(1.7); }
    100% { transform: scale(1); }
}

/* ------------------------------------------------------------ stage overlay */

.stage-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74%;
    max-width: 92vh;
    padding: 3vh 3.4vh;
    border: 0.2vh solid rgba(246, 196, 83, 0.4);
    border-radius: 1.4vh;
    background-color: rgba(4, 20, 34, 0.94);
    box-shadow: 0 1.4vh 4vh rgba(0, 0, 0, 0.5);
    text-align: center;
    transform: translate(-50%, -50%);
}

.overlay-kicker {
    margin: 0;
    color: #f6c453;
    font-size: 1.7vh;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.stage-overlay h2 {
    margin: 1vh 0;
    font-size: 4.6vh;
    line-height: 1.08;
}

.overlay-copy {
    margin: 0 auto;
    max-width: 62vh;
    color: rgba(234, 244, 255, 0.82);
    font-size: 2vh;
    line-height: 1.45;
}

.overlay-steps {
    display: flex;
    margin: 2.2vh 0 0;
    padding: 0;
    justify-content: center;
    list-style: none;
}

.overlay-steps li {
    width: 30%;
    margin: 0 0.8vh;
    padding: 1.4vh 1vh;
    border: 0.15vh solid rgba(255, 255, 255, 0.12);
    border-radius: 0.9vh;
    background-color: rgba(255, 255, 255, 0.04);
    color: rgba(234, 244, 255, 0.82);
    font-size: 1.7vh;
    line-height: 1.35;
}

.overlay-steps li span {
    display: block;
    width: 3vh;
    height: 3vh;
    margin: 0 auto 0.8vh;
    border-radius: 50%;
    background-color: #f6c453;
    color: #06263b;
    font-size: 1.8vh;
    font-weight: bold;
    line-height: 3vh;
}

.overlay-note {
    margin: 2vh 0 0;
    color: rgba(234, 244, 255, 0.6);
    font-size: 1.7vh;
}

/* --------------------------------------------------------------- side rail */

.side-rail {
    display: flex;
    width: 22%;
    min-width: 20vh;
    max-width: 42vh;
    margin-left: 1.2vh;
    flex-direction: column;
    flex: 0 0 auto;
}

.rail-card {
    display: flex;
    margin-bottom: 1.2vh;
    padding: 1.2vh;
    border: 0.15vh solid rgba(255, 255, 255, 0.1);
    border-radius: 1.1vh;
    background-color: rgba(4, 22, 38, 0.7);
    flex-direction: column;
}

.rail-card:last-child {
    margin-bottom: 0;
}

.rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.9vh;
}

.rail-head h2 {
    margin: 0;
    font-size: 2vh;
    letter-spacing: 0.02em;
}

.rail-tag {
    color: rgba(234, 244, 255, 0.6);
    font-size: 1.5vh;
    letter-spacing: 0.12em;
}

.join-card {
    flex: 0 0 auto;
    text-align: center;
}

.qr-panel {
    display: block;
    overflow: hidden;
}

.qr-placeholder {
    margin: 0;
    color: rgba(234, 244, 255, 0.5);
    font-size: 1.5vh;
}

.roster-card {
    flex: 1 1 auto;
    min-height: 0;
}

.roster-list {
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.roster-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.7vh;
    padding: 0.7vh;
    border: 0.15vh solid rgba(255, 255, 255, 0.08);
    border-radius: 0.7vh;
    background-color: rgba(255, 255, 255, 0.04);
}

.roster-row.is-turn {
    border-color: #f6c453;
    background-color: rgba(246, 196, 83, 0.12);
}

.roster-row.is-out {
    opacity: 0.45;
}

.roster-row.is-offline .roster-name {
    color: rgba(234, 244, 255, 0.5);
}

.roster-seat {
    display: block;
    width: 2.4vh;
    height: 2.4vh;
    margin-right: 0.7vh;
    border-radius: 0.5vh;
    background-color: #4fc3f7;
    color: #06263b;
    font-size: 1.5vh;
    font-weight: bold;
    line-height: 2.4vh;
    text-align: center;
    flex: 0 0 auto;
}

.roster-body {
    display: block;
    overflow: hidden;
    flex: 1 1 auto;
}

.roster-name {
    display: block;
    overflow: hidden;
    font-size: 1.75vh;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.roster-ai {
    color: #f6c453;
    font-size: 1.2vh;
    letter-spacing: 0.14em;
}

.roster-bar {
    display: block;
    height: 0.7vh;
    margin-top: 0.5vh;
    border-radius: 0.4vh;
    background-color: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.roster-bar i {
    display: block;
    height: 100%;
    background-color: #63d19e;
}

.roster-meta {
    display: block;
    margin-left: 0.7vh;
    text-align: right;
    flex: 0 0 auto;
}

.roster-meta b {
    display: block;
    font-size: 1.5vh;
}

.roster-meta small {
    display: block;
    color: rgba(234, 244, 255, 0.5);
    font-size: 1.25vh;
}

.roster-empty {
    margin: 0;
    color: rgba(234, 244, 255, 0.5);
    font-size: 1.6vh;
}

.feed-card {
    flex: 0 0 auto;
    max-height: 34%;
    overflow: hidden;
}

.feed-list {
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

.feed-row {
    margin-bottom: 0.5vh;
    padding: 0.5vh 0.7vh;
    border-left: 0.35vh solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.035);
    color: rgba(234, 244, 255, 0.86);
    font-size: 1.55vh;
    line-height: 1.3;
}

.feed-row.is-hit {
    border-left-color: #ef6b3c;
}

.feed-row.is-sunk {
    border-left-color: #96271a;
}

.feed-row.is-miss {
    border-left-color: #6f9bbd;
}

.feed-row.is-win {
    border-left-color: #63d19e;
}

.feed-row.is-out {
    border-left-color: #b02e1c;
}

.feed-row.is-phase,
.feed-row.is-ready,
.feed-row.is-join {
    border-left-color: #f6c453;
}

/* ------------------------------------------------------------ action banner */

.action-banner {
    position: fixed;
    bottom: 2.4vh;
    left: 50%;
    padding: 1.2vh 3vh;
    border: 0.2vh solid rgba(255, 255, 255, 0.2);
    border-radius: 1vh;
    background-color: rgba(4, 20, 34, 0.92);
    box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.45);
    font-size: 2.8vh;
    font-weight: bold;
    letter-spacing: 0.04em;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 5;
}

.action-banner.is-hit {
    border-color: #ef6b3c;
    color: #ffb896;
}

.action-banner.is-sunk,
.action-banner.is-out {
    border-color: #b02e1c;
    color: #ffb0a2;
}

.action-banner.is-win {
    border-color: #63d19e;
    color: #a9f0cf;
}

.action-banner.is-miss {
    color: rgba(234, 244, 255, 0.8);
}

/* ----------------------------------------------------------- seat accents */

.seat-1 .plate-seat,
.seat-1 .roster-seat {
    background-color: #4fc3f7;
}

.seat-2 .plate-seat,
.seat-2 .roster-seat {
    background-color: #ffb74d;
}

.seat-3 .plate-seat,
.seat-3 .roster-seat {
    background-color: #81c784;
}

.seat-4 .plate-seat,
.seat-4 .roster-seat {
    background-color: #ba68c8;
}

.seat-5 .plate-seat,
.seat-5 .roster-seat {
    background-color: #f06292;
}

.seat-6 .plate-seat,
.seat-6 .roster-seat {
    background-color: #4dd0e1;
}

/* ------------------------------------------------------------- responsive */

@media (max-height: 620px) {
    .brand-copy h1 {
        font-size: 3vh;
    }

    .feed-card {
        display: none;
    }
}

@media (orientation: portrait) {
    /* vh sizing is far too large on a tall screen, so the portrait stage is sized from the width */
    .app-shell {
        padding: 1.2vw;
    }

    .topbar {
        padding: 1.2vw 1.6vw;
        border-radius: 1.6vw;
        flex-wrap: wrap;
    }

    .brand {
        flex: 1 1 100%;
    }

    .brand-mark {
        width: 7vw;
        height: 7vw;
        margin-right: 1.6vw;
        border-radius: 1.4vw;
    }

    .eyebrow {
        font-size: 1.8vw;
    }

    .brand-copy h1 {
        font-size: 4.6vw;
    }

    .head-card {
        min-width: 0;
        margin: 1.4vw 1.4vw 0 0;
        padding: 1.2vw 1.6vw;
        border-radius: 1.2vw;
        flex: 1 1 auto;
    }

    .head-card:last-of-type {
        margin-right: 0;
    }

    .head-card .caption {
        font-size: 1.7vw;
    }

    .head-card strong {
        font-size: 3.2vw;
    }

    .head-card small {
        font-size: 2vw;
    }

    .turn-head {
        min-width: 0;
        max-width: none;
        flex: 1 1 100%;
    }

    .clock-head strong {
        font-size: 4vw;
    }

    .network-dot {
        width: 1.8vw;
        height: 1.8vw;
        margin-left: 1.6vw;
    }

    .battle-layout {
        margin-top: 1.2vw;
        flex-direction: column;
    }

    .ocean {
        padding: 1vw;
        border-radius: 1.4vw;
        flex: 1 1 auto;
        min-height: 0;
    }

    .ocean-labels-x span {
        font-size: 1.9vw;
    }

    .ocean-labels-y span {
        font-size: 1.8vw;
    }

    .plate-seat {
        width: 3vw;
        height: 3vw;
        margin-right: 0.8vw;
        border-radius: 0.6vw;
        font-size: 1.9vw;
        line-height: 3vw;
    }

    .plate-name {
        font-size: 2.4vw;
    }

    .plate-tag {
        font-size: 1.6vw;
    }

    .pip {
        width: 2.2vw;
        height: 1.1vw;
        margin-left: 0.5vw;
    }

    .plate-stat {
        margin-left: 0.9vw;
        font-size: 2vw;
    }

    .sector-stamp {
        padding: 0.7vw 1.6vw;
        font-size: 2.4vw;
    }

    .side-rail {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: 30vh;
        margin: 1.2vw 0 0;
        flex-direction: row;
        flex: 0 0 auto;
    }

    .rail-card {
        margin: 0 0.7vw 0 0;
        padding: 1.4vw;
        border-radius: 1.4vw;
        overflow: hidden;
        flex: 1 1 33%;
    }

    .rail-card:last-child {
        margin-right: 0;
    }

    .rail-head {
        margin-bottom: 1.2vw;
    }

    .rail-head h2 {
        font-size: 2.6vw;
    }

    .rail-tag {
        font-size: 1.9vw;
    }

    .roster-row {
        margin-bottom: 0.9vw;
        padding: 0.9vw;
        border-radius: 1vw;
    }

    .roster-seat {
        width: 3.2vw;
        height: 3.2vw;
        margin-right: 0.9vw;
        border-radius: 0.7vw;
        font-size: 2vw;
        line-height: 3.2vw;
    }

    .roster-name {
        font-size: 2.3vw;
    }

    .roster-ai {
        font-size: 1.6vw;
    }

    .roster-bar {
        height: 0.9vw;
        margin-top: 0.6vw;
    }

    .roster-meta b {
        font-size: 2vw;
    }

    .roster-meta small {
        font-size: 1.6vw;
    }

    .roster-empty,
    .qr-placeholder {
        font-size: 2vw;
    }

    .feed-card {
        display: flex;
        max-height: none;
    }

    .feed-row {
        margin-bottom: 0.7vw;
        padding: 0.7vw 0.9vw;
        font-size: 2vw;
    }

    .stage-overlay {
        width: 88%;
        max-width: 88%;
        padding: 4vw;
        border-radius: 2vw;
    }

    .overlay-kicker {
        font-size: 2.2vw;
    }

    .stage-overlay h2 {
        margin: 1.6vw 0;
        font-size: 5.6vw;
    }

    .overlay-copy {
        max-width: none;
        font-size: 2.6vw;
    }

    .overlay-steps {
        margin-top: 3vw;
    }

    .overlay-steps li {
        margin: 0 1vw;
        padding: 2vw 1.4vw;
        border-radius: 1.2vw;
        font-size: 2.2vw;
    }

    .overlay-steps li span {
        width: 4vw;
        height: 4vw;
        margin-bottom: 1.2vw;
        font-size: 2.4vw;
        line-height: 4vw;
    }

    .overlay-note {
        margin-top: 2.6vw;
        font-size: 2.2vw;
    }

    .action-banner {
        bottom: 2vw;
        padding: 1.6vw 3.4vw;
        border-radius: 1.4vw;
        font-size: 3.4vw;
    }
}

/* --------------------------------------------------------------- lean paint */

.lean-paint body,
body.lean-paint {
    background: #06263b;
    background-image: none;
}

.lean-paint .sea-band {
    display: none;
}

.lean-paint .topbar,
.lean-paint .stage-overlay,
.lean-paint .action-banner {
    box-shadow: none;
}

.lean-paint .cell.is-aim,
.lean-paint .cell.is-blast,
.lean-paint .cell.is-splash {
    animation: none;
}

/* ------------------------------------------------------------ join qr panel */

.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;
    transform-origin: top center;
    transform: scale(1);
}

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

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

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

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

@media (max-height: 900px) {
    .rcRoomQrCodeLink {
        transform: scale(0.8);
    }

    .qr-panel {
        height: 186px;
    }
}

@media (max-height: 720px), (max-width: 820px) {
    .rcRoomQrCodeLink {
        transform: scale(0.66);
    }

    .qr-panel {
        height: 154px;
    }
}

@media (max-height: 560px), (max-width: 620px) {
    .rcRoomQrCodeLink {
        transform: scale(0.52);
    }

    .qr-panel {
        height: 121px;
    }
}

.lean-paint .rcRoomQrCodeLink {
    box-shadow: none;
}

@media (orientation: portrait) and (min-width: 900px) {
    .rcRoomQrCodeLink {
        transform: scale(1);
    }

    .qr-panel {
        height: auto;
    }
}
