.margin-0{
    margin: 0px !important;
}
.gamearea{
    width: 100%;
    overflow: auto;
}
.gameplay{
    float: left;
}
/* Game Worlds: same play column height as sky-shooter.css #gamebox */
.game-worlds-play-shell .drag-maze-bg {
    flex: 0 0 auto;
    /*height: calc(768px * 5 / 7);
    max-height: calc(768px * 5 / 7);*/
    display: flex;
    flex-direction: column;
}

.bg-container{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 130% 90% at 50% 45%, rgba(0, 242, 255, 0.045) 0%, transparent 52%),
        radial-gradient(ellipse 85% 100% at 0% 50%, rgba(8, 12, 20, 0.92) 0%, transparent 58%),
        radial-gradient(ellipse 85% 100% at 100% 50%, rgba(8, 12, 20, 0.92) 0%, transparent 58%),
        linear-gradient(165deg, #05070c 0%, #0c1118 42%, #080b10 100%);
}

.drag-maze-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /*justify-content: flex-start;*/
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 1rem 1.25rem 1.125rem;
    box-sizing: border-box;
}

/* Shrink-wrap maze + buttons; gutter between maze right edge and sidebar */
.drag-maze-stage {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    column-gap: 24px;
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
}

.drag-maze-stage #gamebox {
    flex: 0 0 auto;
}

.drag-maze-bonus-panel {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: auto;
    /* padding-top: desktop matches #topbar height (applyDragDomSizes) */
    padding-top: 0;
    padding-left: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.drag-maze-bonus-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mirror classic-maze.css #timePauseBtn, #pathBtn (anchors — reset native <button> chrome) */
.drag-maze-bonus-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    margin: 0 0 12px 0;
    border: none;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color: #fff;
    background-color: #00BB00;
    line-height: normal;
    -webkit-appearance: none;
    appearance: none;
}

.drag-maze-bonus-btn:focus-visible {
    outline: 2px solid rgba(0, 242, 255, 0.65);
    outline-offset: 2px;
}

.drag-maze-bonus-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .drag-maze-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.75rem;
    }

    .drag-maze-stage {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        row-gap: 1rem;
    }

    .drag-maze-bonus-panel {
        width: 100%;
        padding-top: 0 !important;
        justify-content: flex-start;
        align-items: stretch;
    }

    .drag-maze-bonus-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        column-gap: 0.65rem;
        row-gap: 0.65rem;
    }

    .drag-maze-bonus-btn {
        margin: 0;
        flex: 0 0 auto;
    }
}
#gamebox {
	margin: 0;
    padding: 0;
    font-family: 'Arial';
	user-select: none;
	position: relative;
	overflow: hidden;
    border-radius: 0;
    border: none;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#gamebox #topbar {
    width: 100%;
    background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 72%, #0c1424 100%);
    text-align: center;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
#gamebox #utime {
    color: #f8fafc;
}
#gamebox #timer {
    color: #ff3333;
    font-weight: bold;
    padding-left: 6px;
}
#trynew {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    margin: auto;
    background-color: #00BB00;
    font-family: Arial;
    color: red;
    border-radius: 0;
    cursor: pointer;
    display: none;
    padding: 10px 20px;
}
#gamebox #gameMain {
	position: relative;
	overflow: hidden;
    width: 100%;
}
#gamebox #dot {
	position: absolute;
	background: red;
	border-radius: 50%;
	box-sizing: border-box;
	z-index: 2;
	pointer-events: auto;
}

#gamebox #overmsg {
	position: absolute;
    top: 80px;
    width: 100%;
    text-align: center;
    font-style: italic;
    line-height: 50px;
    font-weight: 900;
    color: #fff;
    padding: 20px 0px 0px 0px;
	opacity: 0;
    transition: opacity 0.3s;
}

#gamebox #overmsg .overmsg-detail {
    font-size: 0.7em;
    font-weight: 600;
    font-style: normal;
}
#gamebox #overmsg.full {
	opacity: 1;
}
#gamebox #overmsg.success {
    color: #fff;
    background: #4caf5085;
    height: 145px;
}
#overmsg.success span.next{
    font-style: normal;
    color: blue;
}
#gamebox #overmsg.fail {
    color: #fff;
    background: #f98369b8;
    height: 145px;
}