/* /Components/Desktop.razor.rz.scp.css */
.desktop-grid[b-zqzl10nav1] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 16px 24px;
    padding: 24px;
    align-content: start;
    max-width: 920px;
}

.desktop-icon[b-zqzl10nav1] {
    width: 96px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

    .desktop-icon img[b-zqzl10nav1] {
        width: 56px;
        height: 56px;
        display: block;
        margin: 0 auto 8px;
        user-select: none;
        -webkit-user-drag: none;
    }

    .desktop-icon span[b-zqzl10nav1] {
        font-size: 12px;
        line-height: 1.2;
        display: inline-block;
        word-break: break-word;
        font-family: 'Ubuntu Mono', monospace;
        text-align: center;
    }

    .desktop-icon strong[b-zqzl10nav1] {
        font-size: 12px;
        line-height: 1.2;
        display: inline-block;
        word-break: break-word;
        font-family: 'Ubuntu Mono', monospace;
        text-align: center;
    }

    .desktop-icon.disabled[b-zqzl10nav1] {
        opacity: 0.5; /* Faded look */
        pointer-events: none; /* No mouse interaction */
        cursor: default; /* No hand cursor */
        filter: grayscale(100%); /* Make icon look inactive */
    }

        .desktop-icon.disabled img[b-zqzl10nav1] {
            filter: grayscale(100%) brightness(0.8); /* Gray out image */
        }

        .desktop-icon.disabled span[b-zqzl10nav1],
        .desktop-icon.disabled strong[b-zqzl10nav1] {
            color: #999; /* Dim text color */
        }
/* /Components/TetrisWindow.razor.rz.scp.css */
.window-titlebar[b-8htj99uv6r] {
    height: 32px;
    background: linear-gradient(#17203b, #0f1730);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px; /* space between close button and title */
    cursor: move;
    position: relative;
    font-weight: 600;
    letter-spacing: .2px;
}

.window-close-btn[b-8htj99uv6r] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: #ff5f56; /* red macOS-style */
    cursor: pointer;
    padding: 0;
}

    .window-close-btn:hover[b-8htj99uv6r] {
        background: #ff1e14;
    }

.window-title[b-8htj99uv6r] {
    font-size: 14px;
}

.tetris-window[b-8htj99uv6r] {
    position: absolute;
    left: 60px;
    top: 100px;
    width: 222px;
    height: auto;
    background: #0b1020;
    border: 1px solid #1f2a44;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    user-select: none;
    overflow: hidden;
    z-index: 1000;
    box-sizing: border-box;
}

.window-body[b-8htj99uv6r] {
    padding: 8px 10px 10px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
}

.tetris-canvas[b-8htj99uv6r] {
    display: block;
    width: 200px;
    height: 400px;
    image-rendering: pixelated;
    background: #0a0e1a;
    border-radius: 6px;
    border: 1px solid #1b2440;
}

.hud[b-8htj99uv6r] {
    color: #9fb3ff;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 4px 2px 0;
}

/* Touch controls */
.touch-controls[b-8htj99uv6r] {
    display: none; /* hidden on desktop */
    margin-top: 8px;
    gap: 6px;
}

.touch-row[b-8htj99uv6r] {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.touch-btn[b-8htj99uv6r] {
    background: #1f2a44;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 18px;
    min-width: 40px;
    cursor: pointer;
}

    .touch-btn:active[b-8htj99uv6r] {
        background: #334155;
    }

.touch-controls[b-8htj99uv6r] {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* /Shared/MainLayout.razor.rz.scp.css */
/* header */
.app-header[b-mkr3yg1rv1] {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background-color: #c7c7c7;
    color: #111111;
}

.app-header-left[b-mkr3yg1rv1] {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.app-clock[b-mkr3yg1rv1] {
    margin-left: auto; /* push to far right */
    font-family: "Ubuntu Mono", ui-monospace, Menlo, "DejaVu Sans Mono", monospace;
    font-variant-ligatures: none;
    letter-spacing: .02em;
    opacity: .9;
}

/* make each icon stay inline next to the clock */
.header-icon[b-mkr3yg1rv1] {
    display: inline-flex; /* ← key: don’t be a block */
    flex: 0 0 auto; /* don’t shrink/stretch in flex parents */
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px; /* single-line hit area */
    padding: 0 1px;
    vertical-align: middle; /* align with clock text */
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

    /* icon graphic */
    .header-icon img[b-mkr3yg1rv1] {
        width: 18px;
        height: 18px;
        display: block;
        margin: 0; /* no extra line-height push */
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none;
    }

    /* spacing between icons */
    .header-icon + .header-icon[b-mkr3yg1rv1] {
        margin-left: 0px;
    }

.modal-overlay[b-mkr3yg1rv1] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card[b-mkr3yg1rv1] {
    width: min(420px, 92vw);
    background: #c7c7c7;
    color: #111;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.6);
    padding: 16px 18px;
    text-align: center;
}

.modal-title[b-mkr3yg1rv1] {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-family: "Ubuntu Mono", ui-monospace, Menlo, "DejaVu Sans Mono", monospace;
}

.modal-body[b-mkr3yg1rv1] {
    margin: 0 0 14px;
    font-family: "Ubuntu Mono", ui-monospace, Menlo, "DejaVu Sans Mono", monospace;
}

.modal-actions .btn[b-mkr3yg1rv1] {
    padding: .4rem .8rem;
    border-radius: .5rem;
    border: 1px solid rgba(0,0,0,.90);
    background: #f5f5f5;
    cursor: pointer;
    font-family: "Ubuntu Mono", ui-monospace, Menlo, "DejaVu Sans Mono", monospace;
    color: #111111;
}

.rounded-img[b-mkr3yg1rv1] {
    border-radius: 50%;
    overflow: hidden; /* Ensures the image clips to the rounded shape */
}
