.huyingpingmus{
border: 1px solid #eee;
    padding: 0.75rem;
}

.huyingpingmus h2{
    font-size: 0.8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.huyingpingmus p {
    font-size: 0.6rem;
    line-height: 1.2rem;
}

.night .huyingpingmus {
    border:1px solid #444;
}

.night .huyingpingmus hr{
        border-bottom: 1px solid #444;
}

#startBtn {
    color: #fff !important;
    height: 1.8rem;
    line-height: 1.8rem;
    background-color: #ff7503;
    display: block;
    transition: all 0.5s;
    text-align: center;
    font-size: 0.7rem;
    border-radius: 3px;
    margin-top: 0.8rem;
}


#fixLayer {
    position: fixed;
    inset: 0;
    z-index: 999900;
    background: #000;
    display: none;
    overflow: hidden
}

#fixLayer.on {
    display: block
}

.box {
    position: absolute;
    touch-action: none;
    border: 1px dashed #ffab2e;
    cursor: grab;
    user-select: none;
    animation: boxIn .4s cubic-bezier(.2, .9, .25, 1.12);
}

.box:active {
    cursor: grabbing
}

@keyframes boxIn {
    from {
        transform: scale(.4);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.box canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated
}

.box .x {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #e5484d;
    color: #fff;
    border: 0;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    transition: opacity .15s, transform .15s;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;

}

.box:hover .x {
    opacity: 1
}

.box .x i{
    font-size: 0.5rem;
}

.box .x:hover {
    transform: scale(1.15)
}

.box .h {
    position: absolute;
    width: 12px;
    height: 12px;
    z-index: 4;
    background: #ffab2e;
    border: 1px solid rgba(0, 0, 0, .85);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .15s;
}

.box:hover .h {
    opacity: 1
}

.h-n {
    top: -7px;
    left: calc(50% - 6px);
    cursor: ns-resize
}

.h-s {
    bottom: -7px;
    left: calc(50% - 6px);
    cursor: ns-resize
}

.h-e {
    right: -7px;
    top: calc(50% - 6px);
    cursor: ew-resize
}

.h-w {
    left: -7px;
    top: calc(50% - 6px);
    cursor: ew-resize
}

.h-ne {
    top: -7px;
    right: -7px;
    cursor: nesw-resize
}

.h-nw {
    top: -7px;
    left: -7px;
    cursor: nwse-resize
}

.h-se {
    bottom: -7px;
    right: -7px;
    cursor: nwse-resize
}

.h-sw {
    bottom: -7px;
    left: -7px;
    cursor: nesw-resize
}

.box .dim {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: .12em;
    white-space: nowrap;
    color: #ffab2e;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
    z-index: 5;
}

.box.resizing .dim,
.box:hover .dim {
    opacity: 1
}

.box.resizing {
    border-style: solid
}

#ctrl {
    position: absolute;
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(12, 14, 18, .94);
    border: 1px solid #242a33;
    backdrop-filter: blur(10px);
    z-index: 50;
    white-space: nowrap;
    border-radius: 6px;
}

#ctrl .grp {
    display: flex;
    align-items: center;
    gap: 10px
}

#ctrl label {
    font-size: 10.5px;
    letter-spacing: .16em;
    color: #8b909a;
}

#ctrl output {
    font-size: 11.5px;
    color: #ffab2e;
    min-width: 30px
}

#timer {
    color: #e9e4d8;
    min-width: 36px;
    text-align: center;
}

input[type=range] {
    appearance: none;
    width: 80px;
    height: 18px;
    background: transparent;
    cursor: pointer;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 2px;
    background: #242a33;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -5px;
    background: #ffab2e;
    border-radius: 50%;
    border: 3px solid #0a0c0f;
    box-shadow: 0 0 0 1px #ffab2e
}

input[type=range]::-moz-range-track {
    height: 2px;
    background: #242a33
}

input[type=range]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ffab2e;
    border-radius: 50%;
    border: 3px solid #0a0c0f;
    box-shadow: 0 0 0 1px #ffab2e
}

.bgs {
    display: flex;
    align-items: center;
    gap: 7px
}

.bgc {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .25);
    position: relative;
    transition: transform .12s;
    border-radius: 100%;
}

.bgc:hover {
    transform: scale(1.12)
}

.bgc.active {
    outline: 2px solid #ffab2e;
    outline-offset: 2px
}

.bgc-custom {
    width: 0.75rem;
    height: 0.75rem;
    cursor: pointer;
    padding: 0;
    border: 1px dashed rgba(255, 255, 255, .4);
    background: conic-gradient(#f55, #fb5, #5f6, #58f, #c5f, #f55);
    overflow: hidden;
    position: relative;
    display: inline-block;
    border-radius: 100%;
}

.bgc-custom input {
    position: absolute;
    inset: -6px;
    opacity: 0;
    cursor: pointer;
    width: 40px;
    height: 40px
}

.cbtn {
    background: transparent;
    border: 1px solid #242a33;
    color: #8b909a;
    padding: 4px 10px;
    letter-spacing: .06em;
    transition: all .15s;
    border-radius: 6px;
}

.cbtn:hover {
    border-color: #ffab2e;
    color: #ffab2e
}

.cbtn.stop {
    border-color: #e5484d55;
    color: #ff8a8d
}

.cbtn.stop:hover {
    border-color: #e5484d;
    color: #fff;
    background: #e5484d
}

#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 14px 22px;
    font-size: 11px;
    letter-spacing: .14em;
    color: rgba(128, 128, 128, .9);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 40;
}

.sep {
    width: 1px;
    height: 0.75rem;
    background: #242a33
}

@media (max-width:760px) {
    header {
        padding: 18px 24px
    }

    main {
        padding: 48px 24px
    }

    .cols {
        grid-template-columns: 1fr;
        gap: 28px
    }

    footer {
        padding: 20px 24px 28px
    }

    #ctrl {
        gap: 12px;
        padding: 10px 12px;
        max-width: calc(100vw - 20px);
        overflow-x: auto
    }

    input[type=range] {
        width: 84px
    }
}

