html,
body {
    margin: 0;
    min-height: 100%;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    font-family: "Trebuchet MS", "Gill Sans", Arial, sans-serif;
    color: #f9fbff;
    background: #12213a;
    background: linear-gradient(180deg, #12213a 0%, #163d5a 48%, #1d746a 100%);
}

body {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 14px;
}

.controllerShell {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.heroPanel,
.playerPanel,
.scorePanel,
.sliderPanel,
.metaItem {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: rgba(4, 14, 32, 0.74);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
    box-sizing: border-box;
}

.heroPanel {
    min-height: 78px;
    padding: 14px;
}

.heroPanel:after,
.playerPanel:after,
.scoreRow:after,
.metaRow:after {
    content: "";
    display: table;
    clear: both;
}

.eyebrow {
    color: #6be8ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h1 {
    margin: 4px 0 0;
    color: #fff263;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.networkBadge {
    float: right;
    margin-top: -46px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #081728;
    background: #6be8ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.playerPanel {
    position: relative;
    min-height: 92px;
    margin-top: 12px;
    padding: 14px 14px 14px 88px;
}

.colorBadge {
    position: absolute;
    top: 17px;
    left: 16px;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: #ff405d;
    border: 4px solid rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.32);
}

.playerName {
    overflow: hidden;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.08;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playerStatus {
    margin-top: 6px;
    color: #b9f8ff;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
}

.scoreRow {
    margin-top: 12px;
}

.scorePanel {
    float: left;
    width: 49%;
    min-height: 110px;
    padding: 16px 10px;
    text-align: center;
}

.scorePanel + .scorePanel {
    float: right;
}

.scoreLabel {
    color: #6be8ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.scoreValue {
    margin-top: 8px;
    color: #fff263;
    font-size: 48px;
    line-height: 1;
    font-weight: 900;
}

.sliderPanel {
    margin-top: 12px;
    padding: 22px 18px 26px;
}

.sliderTrackPreview {
    position: relative;
    height: 78px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #081728;
    border: 2px solid rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.sliderTrackPreview:before {
    content: "";
    position: absolute;
    top: 38px;
    right: 18px;
    left: 18px;
    height: 3px;
    background: #6be8ff;
    opacity: 0.56;
}

.previewPaddle {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 94px;
    height: 16px;
    margin-left: -47px;
    border-radius: 8px;
    background: #ff405d;
    box-shadow: 0 0 18px rgba(255, 64, 93, 0.55);
}

.paddleSlider {
    display: block;
    width: 100%;
    height: 54px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
}

.paddleSlider:focus {
    outline: none;
}

.paddleSlider::-webkit-slider-runnable-track {
    height: 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, #ff405d 0%, #ffd83d 33%, #25d6e9 66%, #aa5dff 100%);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.paddleSlider::-webkit-slider-thumb {
    width: 58px;
    height: 58px;
    margin-top: -22px;
    border-radius: 50%;
    background: #ffffff;
    border: 6px solid #ff405d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    -webkit-appearance: none;
}

.paddleSlider::-moz-range-track {
    height: 18px;
    border-radius: 10px;
    background: #25d6e9;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.paddleSlider::-moz-range-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 6px solid #ff405d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.launchButton {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 20px 18px;
    border: none;
    border-radius: 8px;
    color: #081728;
    background: #fff263;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.launchButton:active {
    transform: translateY(2px);
}

.metaRow {
    margin-top: 12px;
}

.metaItem {
    float: left;
    width: 49%;
    min-height: 62px;
    padding: 11px 12px;
}

.metaItem + .metaItem {
    float: right;
}

.metaLabel {
    display: block;
    color: #6be8ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.metaItem span + span {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backToAppsButton {
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #d8fbff;
    background: rgba(4, 14, 32, 0.54);
    border: 2px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-height: 680px) {
    body {
        padding: 8px;
    }

    .heroPanel {
        min-height: 64px;
        padding: 10px 12px;
    }

    h1 {
        font-size: 26px;
    }

    .networkBadge {
        margin-top: -38px;
    }

    .playerPanel {
        min-height: 76px;
        margin-top: 8px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .colorBadge {
        top: 11px;
    }

    .scorePanel {
        min-height: 86px;
        padding: 11px 8px;
    }

    .scoreValue {
        font-size: 36px;
    }

    .sliderPanel {
        padding: 14px 14px 18px;
    }

    .sliderTrackPreview {
        height: 56px;
    }

    .previewPaddle {
        bottom: 12px;
    }

    .launchButton {
        padding: 15px 16px;
        font-size: 24px;
    }
}

.lean-paint,
.lean-paint body {
    background: #12213a;
}

.lean-paint .heroPanel,
.lean-paint .playerPanel,
.lean-paint .scorePanel,
.lean-paint .sliderPanel,
.lean-paint .metaItem,
.lean-paint .backToAppsButton,
.lean-paint .launchButton,
.lean-paint .previewPaddle {
    box-shadow: none;
}
