/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-uxon5ac4uk] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-uxon5ac4uk] {
    flex: 1;
}

.sidebar[b-uxon5ac4uk] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-uxon5ac4uk] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-uxon5ac4uk]  a, .top-row[b-uxon5ac4uk]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-uxon5ac4uk]  a:hover, .top-row[b-uxon5ac4uk]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-uxon5ac4uk]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-uxon5ac4uk] {
        justify-content: space-between;
    }

    .top-row[b-uxon5ac4uk]  a, .top-row[b-uxon5ac4uk]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-uxon5ac4uk] {
        flex-direction: row;
    }

    .sidebar[b-uxon5ac4uk] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-uxon5ac4uk] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-uxon5ac4uk]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-uxon5ac4uk], article[b-uxon5ac4uk] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Pages/Field.razor.rz.scp.css */
body[b-c2sfvwlywe] {
}

#gameCanvas[b-c2sfvwlywe]{
    height:100vh;
    width:100vw;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 0; /* keep canvas behind UI (dpad) */
    display: block;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.08) 0px,
            rgba(0, 0, 0, 0.08) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0px,
            rgba(0, 0, 0, 0.05) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #1a120b 0%, #2d1f0e 30%, #3b2816 60%, #1a120b 100%);
}

#tile-info[b-c2sfvwlywe] {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 10;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    border-radius: 4px;
    pointer-events: none;
    user-select: none;
}

#dpad[b-c2sfvwlywe] {
    display: none;
}

@media (max-width: 768px), (max-height: 500px) {
    #dpad[b-c2sfvwlywe] {
        display: grid;
        grid-template-columns: repeat(3, 48px);
        grid-template-rows: repeat(3, 48px);
        grid-template-areas:
            "ul up ur"
            "l  c  r"
            "dl dn dr";
        gap: 6px;
        position: fixed;
        left: 12px;
        bottom: 12px;
        width: auto;
        z-index: 2147483647; /* ensure D-pad is above canvas */
        user-select: none;
        -webkit-user-select: none;
        touch-action: none;
        align-items: center;
        justify-items: center;
        padding: 6px;
        background: transparent;
    }

    .dpad-btn[b-c2sfvwlywe] {
        width: 48px;
        height: 48px;
        border-radius: 8px;
        /* semi-transparent so background shows through */
        background: rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(2px);
        color: #fff;
        font-size: 18px;
        border: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: none;
        transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, opacity 120ms ease;
        -webkit-tap-highlight-color: transparent;
        border: 1px solid rgba(255,255,255,0.04);
    }

    /* place buttons into the grid areas so center remains empty */
    .dpad-upleft[b-c2sfvwlywe] { grid-area: ul; }
    .dpad-up[b-c2sfvwlywe] { grid-area: up; }
    .dpad-upright[b-c2sfvwlywe] { grid-area: ur; }
    .dpad-left[b-c2sfvwlywe] { grid-area: l; }
    .dpad-center[b-c2sfvwlywe] { grid-area: c; }
    .dpad-right[b-c2sfvwlywe] { grid-area: r; }
    .dpad-downleft[b-c2sfvwlywe] { grid-area: dl; }
    .dpad-down[b-c2sfvwlywe] { grid-area: dn; }
    .dpad-downright[b-c2sfvwlywe] { grid-area: dr; }

    /* subtle pressed state while held */
    .dpad-btn:active[b-c2sfvwlywe],
    .dpad-btn.pressed[b-c2sfvwlywe] {
        background: rgba(255,255,255,0.06);
        transform: translateY(1px) scale(0.995);
        box-shadow: inset 0 0 8px rgba(0,0,0,0.45);
        opacity: 0.95;
    }

    /* slightly reduce default opacity so background shows clearly */
    .dpad-btn[b-c2sfvwlywe] { opacity: 0.92; }

    .dpad-center[b-c2sfvwlywe] {
        width: 48px;
        height: 48px;
    }

    #dpad.dpad-hidden[b-c2sfvwlywe] {
        display: none;
    }
}

/* ===== Sidebar ===== */
.field-sidebar[b-c2sfvwlywe] {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-sidebar-btn[b-c2sfvwlywe] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 3px solid #8b6914;
    border-radius: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.04) 0px,
            rgba(0, 0, 0, 0.04) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #4a3518 0%, #33250e 100%);
    color: #e8d5a3;
    font-family: monospace, 'Courier New', Courier;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    text-shadow: 1px 1px 0 #0a0704;
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.5);
    transition: background 120ms, border-color 120ms, color 120ms, box-shadow 120ms;
    white-space: nowrap;
}

.field-sidebar-btn:hover[b-c2sfvwlywe] {
    background: linear-gradient(180deg, #5c4520 0%, #4a3518 100%);
    border-color: #d4a017;
    color: #ffd700;
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 0, 0.2),
        0 0 10px rgba(212, 160, 23, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.5);
}

.field-sidebar-btn:active[b-c2sfvwlywe] {
    background: linear-gradient(180deg, #33250e 0%, #4a3518 100%);
    border-color: #a07b15;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.field-sidebar-icon[b-c2sfvwlywe] {
    font-size: 16px;
}

/* Toggle button — hidden on desktop, visible on mobile */
.sidebar-toggle[b-c2sfvwlywe] {
    display: none;
}

/* ===== Mobile: collapsible sidebar ===== */
@media (max-width: 768px), (max-height: 500px) {
    .sidebar-toggle[b-c2sfvwlywe] {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 60;
        width: 44px;
        height: 44px;
        border: 3px solid #8b6914;
        border-radius: 0;
        background: linear-gradient(180deg, #4a3518 0%, #33250e 100%);
        color: #e8d5a3;
        font-size: 20px;
        cursor: pointer;
        box-shadow:
            inset 0 1px 0 rgba(255, 215, 0, 0.1),
            0 2px 6px rgba(0, 0, 0, 0.5);
        transition: background 120ms, border-color 120ms, color 120ms;
    }

    .sidebar-toggle:hover[b-c2sfvwlywe] {
        border-color: #d4a017;
        color: #ffd700;
    }

    .sidebar-toggle.open[b-c2sfvwlywe] {
        background: linear-gradient(180deg, #5c4520 0%, #4a3518 100%);
        border-color: #d4a017;
        color: #ffd700;
    }

    .field-sidebar[b-c2sfvwlywe] {
        top: 64px;
        left: 12px;
        transform: translateX(-120%);
        transition: transform 200ms ease;
    }

    .field-sidebar.open[b-c2sfvwlywe] {
        transform: translateX(0);
    }
}
/* /Pages/Game.razor.rz.scp.css */
/* ===== Full-screen backdrop with dirt/earth gradient ===== */
.menu-backdrop[b-bbvbc8kkkq] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.08) 0px,
            rgba(0, 0, 0, 0.08) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0px,
            rgba(0, 0, 0, 0.05) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #1a120b 0%, #2d1f0e 30%, #3b2816 60%, #1a120b 100%);
    image-rendering: pixelated;
}

/* ===== Central menu panel ===== */
.menu-panel[b-bbvbc8kkkq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 56px;
    border: 4px solid #8b6914;
    border-radius: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.04) 0px,
            rgba(0, 0, 0, 0.04) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #3e2a10 0%, #2b1d0a 100%);
    box-shadow:
        0 0 0 2px #5a3d0a,
        0 0 0 6px #1a120b,
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 215, 0, 0.08);
    width: 90vw;
    max-width: 420px;
    box-sizing: border-box;
}

/* ===== Title row ===== */
.menu-title-row[b-bbvbc8kkkq] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.menu-icon[b-bbvbc8kkkq] {
    font-size: 28px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.menu-title[b-bbvbc8kkkq] {
    font-family: monospace, 'Courier New', Courier;
    font-size: 36px;
    font-weight: bold;
    color: #d4a017;
    text-shadow:
        2px 2px 0 #1a120b,
        -1px -1px 0 #1a120b,
        0 0 12px rgba(212, 160, 23, 0.3);
    letter-spacing: 6px;
    margin: 0;
    image-rendering: pixelated;
}

.menu-subtitle[b-bbvbc8kkkq] {
    font-family: monospace;
    font-size: 13px;
    color: #a08050;
    letter-spacing: 3px;
    margin: 0 0 32px 0;
    text-shadow: 1px 1px 0 #0a0704;
}

/* ===== Button column ===== */
.menu-buttons[b-bbvbc8kkkq] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 28px;
}

.menu-btn[b-bbvbc8kkkq] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: 3px solid #8b6914;
    border-radius: 0;
    background: linear-gradient(180deg, #4a3518 0%, #33250e 100%);
    color: #e8d5a3;
    font-family: monospace, 'Courier New', Courier;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    text-shadow: 1px 1px 0 #0a0704;
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.4);
    transition: background 120ms, border-color 120ms, color 120ms, box-shadow 120ms;
    image-rendering: pixelated;
}

.menu-btn:hover[b-bbvbc8kkkq] {
    background: linear-gradient(180deg, #5c4520 0%, #4a3518 100%);
    border-color: #d4a017;
    color: #ffd700;
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 0, 0.2),
        0 0 10px rgba(212, 160, 23, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.5);
}

.menu-btn:active[b-bbvbc8kkkq] {
    background: linear-gradient(180deg, #33250e 0%, #4a3518 100%);
    border-color: #a07b15;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-btn-icon[b-bbvbc8kkkq] {
    font-size: 20px;
}

/* ===== Back button ===== */
.menu-back[b-bbvbc8kkkq] {
    margin-top: 8px;
    background: linear-gradient(180deg, #2a1e0c 0%, #1a120b 100%);
    border-color: #5a3d0a;
    color: #7a6540;
}

.menu-back:hover[b-bbvbc8kkkq] {
    background: linear-gradient(180deg, #3e2a10 0%, #2a1e0c 100%);
    border-color: #8b6914;
    color: #a08050;
}

/* ===== Mobile responsive ===== */
@media (max-width: 480px) {
    .menu-panel[b-bbvbc8kkkq] {
        padding: 28px 20px;
        width: 94vw;
        border-width: 3px;
        box-shadow:
            0 0 0 2px #5a3d0a,
            0 0 0 4px #1a120b,
            0 4px 16px rgba(0, 0, 0, 0.7),
            inset 0 1px 0 rgba(255, 215, 0, 0.08);
    }

    .menu-title[b-bbvbc8kkkq] {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .menu-icon[b-bbvbc8kkkq] {
        font-size: 22px;
    }

    .menu-subtitle[b-bbvbc8kkkq] {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 24px;
    }

    .menu-btn[b-bbvbc8kkkq] {
        padding: 12px 14px;
        font-size: 15px;
        letter-spacing: 1px;
        border-width: 2px;
    }

    .menu-btn-icon[b-bbvbc8kkkq] {
        font-size: 17px;
    }

    .menu-buttons[b-bbvbc8kkkq] {
        gap: 10px;
        margin-bottom: 20px;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* ===== Full-screen backdrop with dirt/earth gradient ===== */
.menu-backdrop[b-a9fl3mqncc] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.08) 0px,
            rgba(0, 0, 0, 0.08) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0px,
            rgba(0, 0, 0, 0.05) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #1a120b 0%, #2d1f0e 30%, #3b2816 60%, #1a120b 100%);
    image-rendering: pixelated;
}

/* ===== Central menu panel — parchment/wood style ===== */
.menu-panel[b-a9fl3mqncc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 56px;
    border: 4px solid #8b6914;
    border-radius: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.04) 0px,
            rgba(0, 0, 0, 0.04) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #3e2a10 0%, #2b1d0a 100%);
    box-shadow:
        0 0 0 2px #5a3d0a,
        0 0 0 6px #1a120b,
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 215, 0, 0.08);
    width: 90vw;
    max-width: 420px;
    box-sizing: border-box;
}

/* ===== Title row with icons ===== */
.menu-title-row[b-a9fl3mqncc] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.menu-icon[b-a9fl3mqncc] {
    font-size: 28px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.menu-title[b-a9fl3mqncc] {
    font-family: monospace, 'Courier New', Courier;
    font-size: 36px;
    font-weight: bold;
    color: #d4a017;
    text-shadow:
        2px 2px 0 #1a120b,
        -1px -1px 0 #1a120b,
        0 0 12px rgba(212, 160, 23, 0.3);
    letter-spacing: 6px;
    margin: 0;
    image-rendering: pixelated;
}

.menu-subtitle[b-a9fl3mqncc] {
    font-family: monospace;
    font-size: 13px;
    color: #a08050;
    letter-spacing: 3px;
    margin: 0 0 32px 0;
    text-shadow: 1px 1px 0 #0a0704;
}

/* ===== Button column ===== */
.menu-buttons[b-a9fl3mqncc] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 28px;
}

.menu-btn[b-a9fl3mqncc] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: 3px solid #8b6914;
    border-radius: 0;
    background: linear-gradient(180deg, #4a3518 0%, #33250e 100%);
    color: #e8d5a3;
    font-family: monospace, 'Courier New', Courier;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    text-shadow: 1px 1px 0 #0a0704;
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.4);
    transition: background 120ms, border-color 120ms, color 120ms, box-shadow 120ms;
    image-rendering: pixelated;
}

.menu-btn:hover[b-a9fl3mqncc] {
    background: linear-gradient(180deg, #5c4520 0%, #4a3518 100%);
    border-color: #d4a017;
    color: #ffd700;
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 0, 0.2),
        0 0 10px rgba(212, 160, 23, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.5);
}

.menu-btn:active[b-a9fl3mqncc] {
    background: linear-gradient(180deg, #33250e 0%, #4a3518 100%);
    border-color: #a07b15;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-btn-icon[b-a9fl3mqncc] {
    font-size: 20px;
}

/* ===== Footer text ===== */
.menu-footer[b-a9fl3mqncc] {
    font-family: monospace;
    font-size: 11px;
    color: #7a6540;
    margin: 0;
    letter-spacing: 1px;
}

.menu-footer strong[b-a9fl3mqncc] {
    color: #c9a84c;
}

/* ===== Inline login bar at top of panel ===== */
.menu-login[b-a9fl3mqncc] {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.menu-login[b-a9fl3mqncc]  input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 2px solid #8b6914;
    border-radius: 0;
    background: #1a120b;
    color: #e8d5a3;
    font-family: monospace, 'Courier New', Courier;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.menu-login[b-a9fl3mqncc]  input::placeholder {
    color: #7a6540;
}

.menu-login[b-a9fl3mqncc]  input:focus {
    border-color: #d4a017;
    box-shadow: 0 0 6px rgba(212, 160, 23, 0.3);
}

.menu-login-btn[b-a9fl3mqncc] {
    padding: 8px 16px;
    border: 2px solid #8b6914;
    border-radius: 0;
    background: linear-gradient(180deg, #4a3518 0%, #33250e 100%);
    color: #e8d5a3;
    font-family: monospace, 'Courier New', Courier;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #0a0704;
    transition: background 120ms, border-color 120ms, color 120ms;
    white-space: nowrap;
}

.menu-login-btn:hover[b-a9fl3mqncc] {
    background: linear-gradient(180deg, #5c4520 0%, #4a3518 100%);
    border-color: #d4a017;
    color: #ffd700;
}

/* ===== Sign-up prompt beneath login ===== */
.menu-signup[b-a9fl3mqncc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #5a3d0a;
}

.menu-signup-link[b-a9fl3mqncc] {
    background: none;
    border: none;
    color: #a08050;
    font-family: monospace, 'Courier New', Courier;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    text-shadow: 1px 1px 0 #0a0704;
    transition: color 120ms;
    padding: 0;
}

.menu-signup-link:hover[b-a9fl3mqncc] {
    color: #d4a017;
}

.menu-signup-hint[b-a9fl3mqncc] {
    font-family: monospace, 'Courier New', Courier;
    font-size: 10px;
    color: #5a4a30;
    letter-spacing: 1px;
    margin: 0;
    text-shadow: 1px 1px 0 #0a0704;
}

/* ===== Disabled menu buttons ===== */
.menu-btn:disabled[b-a9fl3mqncc] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== Mobile responsive ===== */
@media (max-width: 480px) {
    .menu-panel[b-a9fl3mqncc] {
        padding: 28px 20px;
        width: 94vw;
        border-width: 3px;
        box-shadow:
            0 0 0 2px #5a3d0a,
            0 0 0 4px #1a120b,
            0 4px 16px rgba(0, 0, 0, 0.7),
            inset 0 1px 0 rgba(255, 215, 0, 0.08);
    }

    .menu-title[b-a9fl3mqncc] {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .menu-icon[b-a9fl3mqncc] {
        font-size: 22px;
    }

    .menu-subtitle[b-a9fl3mqncc] {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 24px;
    }

    .menu-btn[b-a9fl3mqncc] {
        padding: 12px 14px;
        font-size: 15px;
        letter-spacing: 1px;
        border-width: 2px;
    }

    .menu-btn-icon[b-a9fl3mqncc] {
        font-size: 17px;
    }

    .menu-buttons[b-a9fl3mqncc] {
        gap: 10px;
        margin-bottom: 20px;
    }

    .menu-footer[b-a9fl3mqncc] {
        font-size: 10px;
    }

    .menu-login[b-a9fl3mqncc] {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }

    .menu-signup[b-a9fl3mqncc] {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .menu-login-btn[b-a9fl3mqncc] {
        width: 100%;
        padding: 10px 16px;
    }

    .modal-panel[b-a9fl3mqncc] {
        width: 92vw;
        padding: 24px 18px;
    }

    .modal-title[b-a9fl3mqncc] {
        font-size: 20px;
    }

    .modal-actions[b-a9fl3mqncc] {
        flex-direction: column;
    }

    .modal-actions .menu-btn[b-a9fl3mqncc] {
        width: 100%;
    }
}

/* ===== Modal overlay ===== */
.modal-overlay[b-a9fl3mqncc] {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
}

.modal-panel[b-a9fl3mqncc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 44px;
    border: 4px solid #8b6914;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.04) 0px,
            rgba(0, 0, 0, 0.04) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #3e2a10 0%, #2b1d0a 100%);
    box-shadow:
        0 0 0 2px #5a3d0a,
        0 0 0 6px #1a120b,
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 215, 0, 0.08);
    width: 90vw;
    max-width: 380px;
    box-sizing: border-box;
}

.modal-title[b-a9fl3mqncc] {
    font-family: monospace, 'Courier New', Courier;
    font-size: 24px;
    font-weight: bold;
    color: #d4a017;
    text-shadow: 2px 2px 0 #1a120b;
    letter-spacing: 4px;
    margin: 0 0 8px 0;
}

.modal-label[b-a9fl3mqncc] {
    font-family: monospace;
    font-size: 13px;
    color: #a08050;
    margin: 0 0 12px 0;
}

.modal-input[b-a9fl3mqncc] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #8b6914;
    background: #1a120b;
    color: #e8d5a3;
    font-family: monospace, 'Courier New', Courier;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.modal-input:focus[b-a9fl3mqncc] {
    border-color: #d4a017;
    box-shadow: 0 0 6px rgba(212, 160, 23, 0.3);
}

.modal-error[b-a9fl3mqncc] {
    font-family: monospace;
    font-size: 12px;
    color: #e94560;
    margin: 0 0 8px 0;
    text-shadow: 1px 1px 0 #0a0704;
}

.modal-success[b-a9fl3mqncc] {
    font-family: monospace;
    font-size: 12px;
    color: #4ec95e;
    margin: 0 0 8px 0;
    text-shadow: 1px 1px 0 #0a0704;
}

.modal-actions[b-a9fl3mqncc] {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.modal-actions .menu-btn[b-a9fl3mqncc] {
    flex: 1;
}

.modal-cancel[b-a9fl3mqncc] {
    background: linear-gradient(180deg, #2a1e0c 0%, #1a120b 100%) !important;
    border-color: #5a3d0a !important;
    color: #7a6540 !important;
}

.modal-cancel:hover[b-a9fl3mqncc] {
    background: linear-gradient(180deg, #3e2a10 0%, #2a1e0c 100%) !important;
    color: #a08050 !important;
}

/* ===== Character list in continue modal ===== */
.modal-character-list[b-a9fl3mqncc] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
}

.modal-character-btn[b-a9fl3mqncc] {
    justify-content: flex-start;
}
/* /Pages/LevelBuilder.razor.rz.scp.css */
.lb-container[b-bvw6p8otnq] {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #1a1a2e;
    color: #eee;
    font-family: sans-serif;
}

/* ---- Palette sidebar ---- */
.lb-palette[b-bvw6p8otnq] {
    width: 180px;
    min-width: 180px;
    padding: 12px;
    background: #16213e;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 2px solid #0f3460;
}

.lb-palette h4[b-bvw6p8otnq] {
    margin: 8px 0 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

.lb-palette hr[b-bvw6p8otnq] {
    border: none;
    border-top: 1px solid #0f3460;
    margin: 8px 0;
}

.lb-palette-tile[b-bvw6p8otnq] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 100ms;
}

.lb-palette-tile:hover[b-bvw6p8otnq] {
    background: rgba(255, 255, 255, 0.08);
}

.lb-palette-tile.selected[b-bvw6p8otnq] {
    background: #0f3460;
    outline: 2px solid #e94560;
}

.lb-palette-tile img[b-bvw6p8otnq] {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    border-radius: 2px;
}

.lb-palette-tile span[b-bvw6p8otnq] {
    font-size: 12px;
    color: #ccc;
}

.lb-tool-btn[b-bvw6p8otnq] {
    padding: 6px 10px;
    border: 1px solid #0f3460;
    background: #1a1a2e;
    color: #eee;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 100ms;
}

.lb-tool-btn:hover[b-bvw6p8otnq] {
    background: #0f3460;
}

.lb-tool-btn.lb-save[b-bvw6p8otnq] {
    background: #0f3460;
    border-color: #e94560;
}

.lb-tool-btn.lb-save:hover[b-bvw6p8otnq] {
    background: #e94560;
}

.lb-status[b-bvw6p8otnq] {
    margin-top: 8px;
    padding: 6px;
    font-size: 11px;
    color: #7fdbca;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* ---- Grid area ---- */
.lb-grid-wrapper[b-bvw6p8otnq] {
    flex: 1;
    overflow: auto;
    padding: 12px;
}

.lb-grid[b-bvw6p8otnq] {
    display: grid;
    gap: 1px;
    background: #111;
    width: fit-content;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.lb-cell[b-bvw6p8otnq] {
    width: 32px;
    height: 32px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: outline 80ms;
    position: relative;
}

.lb-cell:hover[b-bvw6p8otnq] {
    outline: 2px solid #e94560;
    outline-offset: -2px;
    z-index: 1;
}

.lb-cell.empty[b-bvw6p8otnq] {
    background: #1a1a2e;
}

.lb-cell.empty:hover[b-bvw6p8otnq] {
    background: #222;
}

.lb-cell img[b-bvw6p8otnq] {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    pointer-events: none;
}

/* ---- Tool groups ---- */
.lb-tool-group[b-bvw6p8otnq] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.lb-tool-btn.active[b-bvw6p8otnq] {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
}

.lb-tool-btn:disabled[b-bvw6p8otnq] {
    opacity: 0.4;
    cursor: default;
}

/* ---- Selection highlight ---- */
.lb-cell.selected-cell[b-bvw6p8otnq] {
    outline: 2px solid #00d4ff;
    outline-offset: -2px;
    z-index: 2;
}

.lb-cell.selected-cell[b-bvw6p8otnq]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 212, 255, 0.15);
    pointer-events: none;
}

/* ---- Map name input ---- */
.lb-input[b-bvw6p8otnq] {
    padding: 5px 8px;
    border: 1px solid #0f3460;
    background: #1a1a2e;
    color: #eee;
    border-radius: 4px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}
/* /Pages/Permissions.razor.rz.scp.css */
/* ===== Full-screen backdrop with dirt/earth gradient ===== */
.menu-backdrop[b-1yp2onxmgj] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.08) 0px,
            rgba(0, 0, 0, 0.08) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.05) 0px,
            rgba(0, 0, 0, 0.05) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #1a120b 0%, #2d1f0e 30%, #3b2816 60%, #1a120b 100%);
    image-rendering: pixelated;
}

/* ===== Central menu panel ===== */
.menu-panel[b-1yp2onxmgj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 56px;
    border: 4px solid #8b6914;
    border-radius: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.04) 0px,
            rgba(0, 0, 0, 0.04) 2px,
            transparent 2px,
            transparent 4px
        ),
        linear-gradient(180deg, #3e2a10 0%, #2b1d0a 100%);
    box-shadow:
        0 0 0 2px #5a3d0a,
        0 0 0 6px #1a120b,
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 215, 0, 0.08);
    width: 90vw;
    max-width: 420px;
    box-sizing: border-box;
}

/* ===== Title row ===== */
.menu-title-row[b-1yp2onxmgj] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.menu-icon[b-1yp2onxmgj] {
    font-size: 28px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}

.menu-title[b-1yp2onxmgj] {
    font-family: monospace, 'Courier New', Courier;
    font-size: 36px;
    font-weight: bold;
    color: #d4a017;
    text-shadow:
        2px 2px 0 #1a120b,
        -1px -1px 0 #1a120b,
        0 0 12px rgba(212, 160, 23, 0.3);
    letter-spacing: 6px;
    margin: 0;
    image-rendering: pixelated;
}

.menu-subtitle[b-1yp2onxmgj] {
    font-family: monospace;
    font-size: 13px;
    color: #a08050;
    letter-spacing: 3px;
    margin: 0 0 32px 0;
    text-shadow: 1px 1px 0 #0a0704;
}

/* ===== Button base ===== */
.menu-btn[b-1yp2onxmgj] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: 3px solid #8b6914;
    border-radius: 0;
    background: linear-gradient(180deg, #4a3518 0%, #33250e 100%);
    color: #e8d5a3;
    font-family: monospace, 'Courier New', Courier;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    text-shadow: 1px 1px 0 #0a0704;
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.4);
    transition: background 120ms, border-color 120ms, color 120ms, box-shadow 120ms;
    image-rendering: pixelated;
}

.menu-btn:hover[b-1yp2onxmgj] {
    background: linear-gradient(180deg, #5c4520 0%, #4a3518 100%);
    border-color: #d4a017;
    color: #ffd700;
    box-shadow:
        inset 0 1px 0 rgba(255, 215, 0, 0.2),
        0 0 10px rgba(212, 160, 23, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.5);
}

.menu-btn:active[b-1yp2onxmgj] {
    background: linear-gradient(180deg, #33250e 0%, #4a3518 100%);
    border-color: #a07b15;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-btn-icon[b-1yp2onxmgj] {
    font-size: 20px;
}

/* ===== Scrollable field list ===== */
.menu-field-list[b-1yp2onxmgj] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    margin-bottom: 28px;
}

.menu-field-btn[b-1yp2onxmgj] {
    justify-content: flex-start;
}

/* ===== Field info inside button ===== */
.menu-field-info[b-1yp2onxmgj] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.menu-field-name[b-1yp2onxmgj] {
    font-size: 16px;
}

.menu-field-meta[b-1yp2onxmgj] {
    font-size: 11px;
    color: #a08050;
    letter-spacing: 1px;
}

/* ===== Status & error text ===== */
.menu-status[b-1yp2onxmgj] {
    font-family: monospace;
    font-size: 13px;
    color: #a08050;
    margin: 0 0 28px 0;
    text-shadow: 1px 1px 0 #0a0704;
}

.menu-error[b-1yp2onxmgj] {
    font-family: monospace;
    font-size: 12px;
    color: #e94560;
    margin: 0 0 28px 0;
    text-shadow: 1px 1px 0 #0a0704;
}

/* ===== Back button ===== */
.menu-back[b-1yp2onxmgj] {
    margin-top: 8px;
    background: linear-gradient(180deg, #2a1e0c 0%, #1a120b 100%);
    border-color: #5a3d0a;
    color: #7a6540;
}

.menu-back:hover[b-1yp2onxmgj] {
    background: linear-gradient(180deg, #3e2a10 0%, #2a1e0c 100%);
    border-color: #8b6914;
    color: #a08050;
}

/* ===== Mobile responsive ===== */
@media (max-width: 480px) {
    .menu-panel[b-1yp2onxmgj] {
        padding: 28px 20px;
        width: 94vw;
        border-width: 3px;
        box-shadow:
            0 0 0 2px #5a3d0a,
            0 0 0 4px #1a120b,
            0 4px 16px rgba(0, 0, 0, 0.7),
            inset 0 1px 0 rgba(255, 215, 0, 0.08);
    }

    .menu-title[b-1yp2onxmgj] {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .menu-icon[b-1yp2onxmgj] {
        font-size: 22px;
    }

    .menu-subtitle[b-1yp2onxmgj] {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 24px;
    }

    .menu-btn[b-1yp2onxmgj] {
        padding: 12px 14px;
        font-size: 15px;
        letter-spacing: 1px;
        border-width: 2px;
    }

    .menu-btn-icon[b-1yp2onxmgj] {
        font-size: 17px;
    }

    .menu-field-list[b-1yp2onxmgj] {
        max-height: 260px;
        margin-bottom: 20px;
    }
}
