.margin-0{
    margin: 0px !important;
}
.gamearea{
    width: 100%;
    overflow: auto;
}
.gameplay{
    float: left;
}
.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%);
}
#gamebox {
    margin: 0;
    padding: 0;
    font-family: 'Arial';
    user-select: none;
    position: relative;
    overflow: hidden;
    /*background-color: #161c1c;*/
    border: 1px solid rgba(148, 163, 184, 0.38);
    box-shadow:
        0 0 0 1px rgba(0, 242, 255, 0.14),
        0 18px 48px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.paddle {
    position: absolute;
    width: 10px;
    background-color: #A1662F;
}

#redPoint {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: red;
    left: 0;
    cursor: pointer;
}

#exit {
    position: absolute;
    width: 15px;
    height: 60px;
    background-color: green;
    right: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: clamp(12px, 4vw, 28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    z-index: 9999;
    color: #e2e8f0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(ellipse 85% 65% at 50% 42%, rgba(15, 23, 42, 0.72) 0%, transparent 62%),
        linear-gradient(165deg, rgba(5, 10, 22, 0.94) 0%, rgba(15, 23, 42, 0.88) 45%, rgba(8, 12, 22, 0.95) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.overlay.overlay--win {
    background:
        radial-gradient(ellipse 75% 55% at 50% 38%, rgba(16, 185, 129, 0.12) 0%, transparent 58%),
        radial-gradient(ellipse 85% 65% at 50% 42%, rgba(15, 23, 42, 0.74) 0%, transparent 62%),
        linear-gradient(165deg, rgba(5, 15, 18, 0.94) 0%, rgba(15, 23, 42, 0.88) 50%, rgba(8, 14, 22, 0.96) 100%);
}

.overlay.overlay--lose {
    background:
        radial-gradient(ellipse 75% 55% at 50% 38%, rgba(239, 68, 68, 0.1) 0%, transparent 58%),
        radial-gradient(ellipse 85% 65% at 50% 42%, rgba(15, 23, 42, 0.76) 0%, transparent 62%),
        linear-gradient(165deg, rgba(18, 10, 12, 0.94) 0%, rgba(15, 23, 42, 0.88) 50%, rgba(14, 10, 12, 0.96) 100%);
}

.drag-maze-blocker-overlay-inner {
    width: min(92%, 380px);
    max-width: 100%;
    padding: clamp(22px, 5vw, 34px) clamp(20px, 4vw, 30px);
    border-radius: 16px;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(155deg, rgba(30, 41, 59, 0.82) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 242, 255, 0.08),
        0 24px 56px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.drag-maze-blocker-overlay-title {
    margin: 0 0 clamp(18px, 4vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: #f1f5f9;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.overlay.overlay--win .drag-maze-blocker-overlay-title {
    color: #ecfdf5;
    text-shadow:
        0 0 28px rgba(52, 211, 153, 0.28),
        0 2px 18px rgba(0, 0, 0, 0.45);
}

.overlay.overlay--lose .drag-maze-blocker-overlay-title {
    color: #fef2f2;
    text-shadow:
        0 0 26px rgba(248, 113, 113, 0.22),
        0 2px 18px rgba(0, 0, 0, 0.45);
}

.drag-maze-blocker-overlay-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(10px, 2vw, 14px);
}

.drag-maze-blocker-overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: #fff;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease,
        background-color 0.12s ease,
        border-color 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
}

.drag-maze-blocker-overlay-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .drag-maze-blocker-overlay-btn {
        transition: none;
    }
    .drag-maze-blocker-overlay-btn:hover,
    .drag-maze-blocker-overlay-btn:active {
        transform: none;
    }
}

.drag-maze-blocker-overlay-btn:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

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

.drag-maze-blocker-overlay-btn--primary {
    background: linear-gradient(180deg, #00d926 0%, #00bb00 48%, #009908 100%);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(0, 187, 0, 0.28);
}

.drag-maze-blocker-overlay-btn--accent {
    background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 45%, #0891b2 100%);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.25),
        0 8px 20px rgba(6, 182, 212, 0.25);
}

.drag-maze-blocker-overlay-btn--ghost {
    background: rgba(30, 41, 59, 0.65);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.drag-maze-blocker-overlay-btn--ghost:hover {
    background: rgba(51, 65, 85, 0.75);
    color: #f1f5f9;
}
