.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%);
}

/* Game Worlds: same play column height as sky-shooter.css #gamebox */
.game-worlds-play-shell .bg-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex: 0 0 auto;
    /*height: calc(768px * 5 / 7);
    max-height: calc(768px * 5 / 7);*/
}
#gamebox {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
    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);
}

.drag-rank-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10001;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    background: rgba(8, 15, 28, 0.82);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    font-family: Arial, Helvetica, sans-serif;
}

.drag-rank-timer__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.drag-rank-timer__value {
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.drag-rank-timer--win {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(6, 28, 22, 0.9);
}

.drag-rank-timer--win .drag-rank-timer__label {
    color: #6ee7b7;
}

.drag-rank-timer--win .drag-rank-timer__value {
    color: #ecfdf5;
}

.drag-rank-timer--lose {
    opacity: 0.55;
}

.drag-rank-timer--hidden {
    visibility: hidden;
}

.drag-rank-submit {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10002;
    width: min(220px, calc(100% - 20px));
    padding: 0.75rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: rgba(6, 24, 20, 0.94);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    font-family: Arial, Helvetica, sans-serif;
    color: #ecfdf5;
}

.drag-rank-submit[hidden] {
    display: none !important;
}

.drag-rank-submit__title {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6ee7b7;
}

.drag-rank-submit__time {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.drag-rank-submit__label {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.drag-rank-submit__input {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    font-size: 0.85rem;
}

.drag-rank-submit__input:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
}

.drag-rank-submit__actions {
    display: flex;
    gap: 0.4rem;
}

.drag-rank-submit__btn {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.5rem;
    cursor: pointer;
}

.drag-rank-submit__btn--primary {
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(16, 185, 129, 0.9);
    color: #042f2e;
}

.drag-rank-submit__btn:hover {
    filter: brightness(1.06);
}

.drag-rank-submit__status {
    margin: 0.45rem 0 0;
    font-size: 0.7rem;
    color: #6ee7b7;
}

.drag-rank-submit__status.is-error {
    color: #fca5a5;
}

/* Dark corridor between brick strips — sized in JS (tunnelInterior). */
#tunnelInterior {
    position: absolute;
    left: 0;
    z-index: 0;
    pointer-events: none;
    box-sizing: border-box;
    background: linear-gradient(
        90deg,
        rgba(6, 10, 18, 0.97) 0%,
        #0c1428 12%,
        #121e38 50%,
        #0c1428 88%,
        rgba(6, 10, 18, 0.97) 100%
    );
    box-shadow:
        inset 0 12px 28px rgba(0, 0, 0, 0.55),
        inset 0 -12px 28px rgba(0, 0, 0, 0.55);
}

.paddle {
    position: absolute;
    width: 10px;
    background-color: #A1662F;
    z-index: 2;
}

#player {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: red;
    left: 0;
    top: 50%;
    cursor: pointer;
    z-index: 2;
}

#exit {
    position: absolute;
    width: 15px;
    height: 60px;
    background-color: green;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.block{
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    /* Tunnel strips — masonry bricks painted in JS (creatBlock) */
    z-index: 4;
}

/* Individual brick faces: shading entirely inline from JS */
.drag-maze-blocker-brick {
    transform: translateZ(0);
}

#block1{
    position: absolute;
    top: 0;
    left: 0;
    border-bottom: 2px solid rgba(148, 163, 184, 0.38);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.75),
        inset 0 -8px 16px rgba(0, 0, 0, 0.4);
}

#block2{
    position: absolute;
    left: 0;
    border-top: 2px solid rgba(148, 163, 184, 0.38);
    box-shadow:
        0 -14px 28px rgba(0, 0, 0, 0.75),
        inset 0 8px 16px rgba(0, 0, 0, 0.4);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 12px;
    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 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: min(88%, 300px);
    max-width: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 16px 14px;
    border-radius: 16px;
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(155deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.94) 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-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.drag-maze-blocker-overlay-title {
    margin: 0;
    max-width: 100%;
    font-size: clamp(1.2rem, 5.2vmin, 1.7rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #f8fafc;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    overflow-wrap: anywhere;
}

.drag-maze-blocker-overlay-detail {
    margin: 0;
    max-width: 100%;
    font-size: clamp(0.8125rem, 2.8vmin, 0.9375rem);
    font-weight: 500;
    line-height: 1.4;
    color: #94a3b8;
    overflow-wrap: anywhere;
}

.drag-maze-blocker-overlay-detail:empty {
    display: none;
}

.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--win .drag-maze-blocker-overlay-detail {
    color: #6ee7b7;
}

.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);
}

.overlay.overlay--lose .drag-maze-blocker-overlay-detail {
    color: #fca5a5;
}

.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%;
    min-height: 42px;
    margin: 0;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    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;
}
.drag-maze-blocker-overlay-btn--competitions {
    text-decoration: none;
    background: linear-gradient(100deg, #2563eb 0%, #7c3aed 55%, #a855f7 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.2),
        0 8px 22px rgba(59, 130, 246, 0.35);
    min-height: 44px;
    padding: 10px 16px;
}

.drag-maze-blocker-overlay-btn--competitions:hover {
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.2),
        0 10px 26px rgba(124, 58, 237, 0.4);
}

.drag-maze-blocker-overlay-featured {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.drag-maze-blocker-overlay-featured-title {
    margin: 0;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    text-align: center;
}

.drag-maze-blocker-overlay-maze-world {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;
    text-align: left;
    background: linear-gradient(95deg, rgba(34, 211, 238, 0.14), rgba(245, 158, 11, 0.12));
    border: 1px solid rgba(103, 232, 249, 0.35);
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.12);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.drag-maze-blocker-overlay-maze-world:hover {
    background: linear-gradient(95deg, rgba(34, 211, 238, 0.22), rgba(245, 158, 11, 0.18));
    border-color: rgba(165, 243, 252, 0.5);
    transform: translateY(-1px);
}

.drag-maze-blocker-overlay-maze-world img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
}

.drag-maze-blocker-overlay-maze-world-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.drag-maze-blocker-overlay-maze-world-copy strong {
    font-size: 13px;
    font-weight: 700;
    color: #ecfeff;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.drag-maze-blocker-overlay-maze-world-copy small {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
