:root {
    --ui-scale: 1; /* wordt door JS gezet */
    --dlg-width: min(900px, 92vw);
    --avatar-size: 240px; /* avatarmaat */
    --avatar-left: -128px; /* offset t.o.v. frame */
    --nameplate-left: 100px; /* genoeg naar rechts t.o.v. avatar */
}

/* Overlay onderin het scherm */
.ll-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: auto;
    font-family: system-ui, sans-serif;
}

/* Container voor avatar + naamvenster + bubble */
.ll-dialog-frame {
    position: relative;
    width: var(--dlg-width);
    margin: 24px;
    padding-bottom: 8px;
    transform-origin: bottom center;
    /* anker onderin voor RPG look */
    transform: scale(var(--ui-scale));
    /* 🔥 meeschalen met game */
    will-change: transform;
}

/* Avatar: achter de vensters, zonder blok */
.ll-dialog-avatar {
    position: absolute;
    left: var(--avatar-left);
    bottom: 8px;
    width: var(--avatar-size);
    height: auto;
    image-rendering: pixelated;
    z-index: 1;
    /* achter nameplate + bubble */
    pointer-events: none;
    filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.18));
}

/* Naamvenster (boven de bubble) */
.ll-dialog-nameplate {
    position: absolute;
    left: var(--nameplate-left);
    bottom: calc(100% + 10px);
    /* net boven de bubble */
    background: #232323;
    border: 2px solid #3b3b3b;
    border-radius: 12px;
    padding: 8px 14px;
    color: #fff;
    z-index: 3;
    /* boven bubble */
    min-width: 160px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.ll-dialog-nameplate .np-text {
    font-weight: 800;
    font-size: 18px;
    /* groter zoals gevraagd */
    letter-spacing: 0.2px;
}

/* Spreekballon */
.ll-dialog-bubble {
    position: relative;
    background: #1b1b1b;
    border: 2px solid #333;
    border-radius: 14px;
    color: #eaeaea;
    padding: 16px 16px 12px 16px;
    z-index: 2;
    /* vóór avatar */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    min-height: 80px;
}

/* Tekst + knoppen */
.ll-dialog-bubble .text {
    min-height: 60px;
    line-height: 1.35;
}

.ll-dialog-bubble .controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.ll-dialog-bubble .btn {
    background: #2e2e2e;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.ll-dialog-bubble .btn:hover {
    background: #3a3a3a;
}

/* Als er geen naam is, verberg de nameplate */
.ll-dialog-frame.no-name .ll-dialog-nameplate {
    display: none;
}
#ll-auth {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, monospace;
    background:
        linear-gradient(rgba(8, 12, 12, .75), rgba(8, 12, 12, .75)),
        url(/assets/login_bg9c785aba5a2e08496f0c.png) center / cover no-repeat fixed;
}

#ll-auth .wrap {
    width: min(94vw, 560px);
}

#ll-auth .logo {
    display: block;
    margin: 0 auto 12px auto;
    width: min(60vw, 240px);
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .4));
}

#ll-auth .disclaimer {
    margin: 0 0 12px 0;
    text-align: center;
    color: #cfe7db;
    font-size: 12px;
    opacity: .85;
}

#ll-auth .card {
    border-radius: 14px;
    border: 1px solid #0b2a27;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
    background: #0c161b;
    color: #cfe7db;
    padding: 16px;
}

#ll-auth .title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

#ll-auth .title h3 {
    margin: 0;
    color: #eaf6ef;
    font-size: 18px;
    letter-spacing: .5px;
}

#ll-auth .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#ll-auth .btn {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #000;
    cursor: pointer;
    background: #16262c;
    color: #eaf6ef;
    font-weight: 700;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#ll-auth .btn:hover {
    filter: brightness(1.06);
}

#ll-auth .btn--guest {
    background: #2c6c3a;
}

#ll-auth .btn--wallet {
    background: #1a2830;
}

#ll-auth .sep {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 8px;
}

#ll-auth .sep span {
    color: #9db7a7;
    font-size: 12px;
    opacity: .9;
}

#ll-auth .muted {
    color: #9db7a7;
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
}

#ll-auth .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    color: #9db7a7;
}

#ll-auth .spin {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #cfe7db;
    border-radius: 50%;
    animation: llspin .9s linear infinite;
}

@keyframes llspin {
    to {
        transform: rotate(360deg)
    }
}

@media (max-width: 480px) {
    #ll-auth .grid {
        grid-template-columns: 1fr;
    }
}
/* Fullscreen onboarding overlay (3x2 grid + nickname prompt) */
#ll-onboard {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, monospace;
    background:
        linear-gradient(rgba(8, 12, 12, .75), rgba(8, 12, 12, .75)),
        url(/assets/login_bg9c785aba5a2e08496f0c.png) center / cover no-repeat fixed;
}

#ll-onboard .wrap {
    width: min(96vw, 1100px);
    max-width: 1100px;
}

#ll-onboard .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(140px, 1fr);
    gap: 12px;
}

#ll-onboard .tile {
    position: relative;
    border-radius: 12px;
    background: #0c161b;
    border: 1px solid #0b2a27;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#ll-onboard .tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    display: none;
}

#ll-onboard .tile.revealed img {
    display: block;
}

#ll-onboard .tile .hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9db7a7;
    font-size: 12px;
    letter-spacing: .3px;
}

#ll-onboard .prompt {
    margin-top: 14px;
    border: 1px solid #0b2a27;
    border-radius: 12px;
    background: #0c161b;
    padding: 14px;
    color: #cfe7db;
}

#ll-onboard .prompt h3 {
    margin: 0 0 10px 0;
    color: #eaf6ef;
    font-size: 18px;
    text-align: center;
}

#ll-onboard .row {
    display: flex;
    gap: 10px;
}

#ll-onboard input[type="text"] {
    flex: 1;
    background: #0a1216;
    color: #eaf6ef;
    border: 1px solid #06312a;
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
}

#ll-onboard .btn {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #000;
    cursor: pointer;
    background: #2c6c3a;
    color: #eaf6ef;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}

#ll-onboard .btn--ghost {
    background: #16262c;
}

#ll-onboard .err {
    color: #ff9e9e;
    font-size: 12px;
    margin-top: 6px;
    text-align: center;
}

#ll-onboard .ok {
    color: #a6ffbf;
    font-size: 12px;
    margin-top: 6px;
    text-align: center;
}

#ll-onboard .suggest {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

#ll-onboard .chip {
    padding: 6px 10px;
    border-radius: 100px;
    border: 1px solid #06312a;
    cursor: pointer;
    background: #101c21;
    color: #cfe7db;
    font-size: 12px;
}

#ll-onboard .footer {
    margin-top: 8px;
    text-align: center;
    color: #9db7a7;
    font-size: 12px;
}

@media (max-width: 720px) {
    #ll-onboard .grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* Hergebruikt .ll-modal/.ll-modal-backdrop van je inventory CSS */
.ll-modal.settings {
    width: min(980px, 92vw);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ll-modal.settings .col h3 {
    margin: 0 0 8px;
}

.ll-modal.settings .panel {
    background: #171717;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.ll-modal.settings h4 {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: .3px;
    opacity: .9;
}

.ll-modal.settings .row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.ll-modal.settings .row.space-between {
    justify-content: space-between;
}

.ll-modal.settings input[type="range"] {
    flex: 1;
}

.ll-modal.settings .val {
    width: 48px;
    text-align: right;
    opacity: .9;
}

.ll-modal.settings .switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ll-modal.settings .switch input {
    transform: translateY(1px);
}

.ll-modal.settings .btn {
    background: #2e2e2e;
    border: 1px solid #444;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.ll-modal.settings .btn.ghost {
    background: #1f1f1f;
}

.ll-modal.settings .kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.ll-modal.settings .kv>div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ll-modal.settings .kv span {
    opacity: .7;
}

.ll-modal.settings .kv b {
    font-weight: 700;
}

.ll-modal.settings .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ll-modal.settings .stat {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 10px;
}

.ll-modal.settings .stat-v {
    font-size: 18px;
    font-weight: 800;
}

.ll-modal.settings .stat-l {
    opacity: .8;
    font-size: 12px;
}

.ll-modal.settings .stat-s {
    opacity: .6;
    font-size: 11px;
}

@media (max-width: 980px) {
    .ll-modal.settings {
        grid-template-columns: 1fr;
        width: min(720px, 92vw);
    }
}
/* /src/ui/cosmetics.css */
.cos-modal {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
}

.cos-nav h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #e6f2e9;
}

.cos-nav {
    padding-right: 8px;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.cos-nav__btn {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    margin: 6px 0;
    background: #0f1b20;
    color: #dfeee6;
    border: 1px solid #000;
    border-radius: 8px;
    cursor: pointer;
}

.cos-nav__btn.active {
    background: #1b3a2b;
    border-color: #c7b05a;
}

.cos-panel {
    min-height: 360px;
}

.cos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
    gap: 10px;
}

.cos-card {
    background: #0c161b;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.cos-card.is-locked {
    filter: grayscale(100%);
    opacity: .65;
}

.cos-card.is-active {
    outline: 2px solid #c7b05a;
    box-shadow: 0 0 0 2px #000 inset;
}

.cos-card__frame {
    aspect-ratio: 1 / 1;
    background: #0b1519;
    border: 1px solid #0a0a0a;
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 8px;
}

.cos-card__frame img {
    image-rendering: pixelated;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cos-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #eaf6ef;
    margin-bottom: 8px;
}

.cos-card__title {
    color: #e6f2e9;
}

.cos-card__price {
    color: #9ad1ae;
    font-size: 12px;
}

.cos-card__foot {
    display: flex;
    justify-content: flex-end;
}

.cos-activate {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #000;
    background: #2c6c3a;
    color: #eaf6ef;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
}

.cos-badge {
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #000;
    color: #e8efe9;
    background: #16262c;
}

.cos-badge--ok {
    background: #2c6c3a;
}
/* Overlay */
.ll-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 9999;
}

.ll-modal-backdrop.show {
    display: flex;
}

/* Modal card */
.ll-modal {
    width: min(960px, 94vw);
    max-height: 86vh;
    background: #1a1a1a;
    color: #eee;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    padding: 16px;
    position: relative;
    pointer-events: auto;
}

@media (max-width: 760px) {
    .ll-modal {
        grid-template-columns: 1fr;
        padding-bottom: 72px;
    }
}

.ll-modal h3 {
    margin: 0 0 8px;
    font: 700 18px/1.2 ui-monospace, monospace;
}

.ll-subtle {
    color: #aaa;
    font-size: 12px;
}

.ll-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ddd;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.ll-close:hover {
    background: #333;
}

/* Filter tabs */
.ll-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ll-tab {
    background: #242424;
    border: 1px solid #3a3a3a;
    color: #ddd;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font: 600 12px/1 ui-monospace, monospace;
}

.ll-tab.active {
    background: #0e402b;
    border-color: #1b7a50;
    color: #b4ffd9;
}

/* Grid */
.ll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 64px);
    gap: 10px;
    align-content: start;
    overflow: auto;
    max-height: 60vh;
    padding-right: 6px;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 10px;
    background: #121212;
}

.ll-grid.active {
    border: 1px solid #2a2a2a;
    background: #121212;
}

.ll-props {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    font: 12px/1.3 ui-monospace, monospace;
    color: #cfcfcf;
    margin-top: 6px;
}

.ll-props>div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ll-props span {
    color: #9aa0a6;
}

.ll-props b {
    color: #e7fbe7;
    font-weight: 700;
}

.ll-slot {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid #303030;
    background: #1b1b1b;
    display: grid;
    place-items: center;
    position: relative;
    cursor: pointer;
}

.ll-slot:hover {
    border-color: #4a4a4a;
    background: #212121;
}

.ll-slot[data-rarity="rare"] {
    box-shadow: inset 0 0 0 1px #7aa6ff33, 0 0 0 1px #2c3e7a;
}

.ll-slot[data-rarity="epic"] {
    box-shadow: inset 0 0 0 1px #bf7aff33, 0 0 0 1px #5b2c7a;
}

.ll-slot.ll-empty img {
    filter: grayscale(100%) brightness(0.6);
    opacity: 0.6;
}

.ll-qty {
    position: absolute;
    bottom: 3px;
    right: 6px;
    font: 700 11px/1 ui-monospace, monospace;
    color: #d2ffd2;
    text-shadow: 0 1px 0 #000;
}

/* Detail pane */
.ll-detail {
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 12px;
    background: #121212;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
}

.ll-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #1b1b1b;
    border: 1px solid #303030;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.ll-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ll-btn {
    background: #114d35;
    color: #c9ffe6;
    border: 1px solid #1b7a50;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font: 600 12px ui-monospace, monospace;
}

.ll-btn.secondary {
    background: #2a2a2a;
    color: #ddd;
    border-color: #444;
}

.ll-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
/* ===== Backdrop (modal overlay) ===== */
.ll-mix-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    z-index: 9999;
    touch-action: none;
}

.ll-mix-backdrop.show {
    display: flex;
}

/* ===== Scope ALLES binnen #mix-modal ===== */
#mix-modal {
    width: min(1000px, 96vw);
    max-height: 86vh;
    overflow: hidden;
    position: relative;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .65);
    image-rendering: pixelated;
}

/* Brick wall */
#mix-modal .ll-mix-bg {
    position: absolute;
    inset: 0;
    background-image: url(/assets/workbench_bg5633a934c6c15e2d28a9.png);
    background-repeat: repeat;
    background-size: 256px 256px;
    image-rendering: pixelated;
}

/* Tafel-strip onderaan (tileable) */
#mix-modal .ll-table-bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background-image: url(/assets/table_bg759fdb00daffa6e432b3.png);
    background-repeat: repeat-x;
    background-size: auto 96px;
    z-index: 1;
    pointer-events: none;
}

/* Vignet + schaduw boven tafel */
#mix-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, transparent 0 78%, rgba(0, 0, 0, .36) 78% 100%),
        radial-gradient(120% 120% at 50% 18%, transparent 0 60%, rgba(0, 0, 0, .25) 66% 100%);
    pointer-events: none;
}

/* ===== Header (midden) ===== */
#mix-modal .ll-mix-header {
    position: relative;
    z-index: 2;
    display: block;
    width: fit-content;
    margin: 12px auto 8px auto;
    padding: 10px 22px;
    /* bruin frame met donkere buitenrand + zwarte kern */
    border: 2px solid #1a0e0b;
    border-radius: 6px;
    background: #5a3a2d;
    box-shadow:
        0 0 0 3px #6f3d2d,
        /* bruin */
        0 0 0 6px #1a0e0b,
        /* donkere buitenrand */
        0 4px 0 #2b1a14;
    /* onder-schaduw */
    color: #f4c36b;
    font: 700 20px/1 ui-monospace, monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* chunky pixel-stroke */
    text-shadow:
        0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000,
        1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
}

/* ===== Top layout: 3 kolommen, extra binnenmarge ===== */
#mix-modal .ll-mix-top {
    position: relative;
    z-index: 2;
    padding: 8px 22px 0;
    display: grid;
    gap: 18px;
    grid-template-columns: 280px 1fr 320px;
    /* rechterkolom iets smaller */
}

@media (max-width:900px) {
    #mix-modal .ll-mix-top {
        grid-template-columns: 1fr;
    }
}

/* ===== Left: vial op de tafel ===== */
#mix-modal .ll-left {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#mix-modal .ll-beaker {
    width: 240px;
    height: 280px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: -26px;
    /* laat overlap boven de tafel zien */
    z-index: 3;
    /* boven tafelstrip */
}

#mix-modal .ll-beaker img {
    width: 90%;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
}

/* ===== Panels: charcoal + bruin frame + donkere buitenrand ===== */
#mix-modal .ll-panel {
    background: #23262b;
    border-radius: 6px;
    padding: 12px;
    /* kern-zwart + bruin ring + donkere ring + lichte inset contour + onder-drop */
    border: 2px solid #000;
    box-shadow:
        0 0 0 3px #6f3d2d,
        /* bruin ring */
        0 0 0 6px #1a0e0b,
        /* donkere buitenrand */
        0 0 0 1px #2d3941 inset,
        /* subtiele binnenlijn */
        0 4px 0 #0e1216;
    /* diepte onder */
}

#mix-modal .ll-panel h3 {
    margin: 0 0 8px;
    color: #f4c36b;
    font: 700 14px/1 ui-monospace, monospace;
    letter-spacing: 1px;
    text-shadow:
        0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000;
}

/* ===== Middle: ingredient slots ===== */
#mix-modal .ll-slots-panel {
    max-height: 130px;
    margin-top: 70px;
}

#mix-modal .ll-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

#mix-modal .ll-slots .slot {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

#mix-modal .ll-slots .frame {
    height: 96px;
    border-radius: 6px;
    background: #141a1f;
    display: grid;
    place-items: center;
    position: relative;
    border: 2px solid #000;
    box-shadow:
        0 0 0 2px #1a0e0b,
        /* donkere rand */
        0 0 0 5px #6f3d2d,
        /* bruin rand */
        0 0 0 1px #24313a inset;
    /* lichte binnenlijn */
}

#mix-modal .placeholder {
    color: #f1d08a;
    font: 700 12px ui-monospace, monospace;
    opacity: .95;
    text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000;
}

#mix-modal .slot .icon {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

/* ===== Right: compacter DNA + stats eronder, niet tegen rand ===== */
#mix-modal .ll-right {
    display: grid;
    grid-template-rows: auto auto;
    gap: 12px;
    justify-self: end;
    width: 100%;
    max-width: 320px;
}

#mix-modal .ll-dna-panel {
    max-height: 190px;
}

/* DNA-rijen (label smaller) */
#mix-modal .ll-dna-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: center;
    margin: 7px 0;
}

#mix-modal .ll-dna-name {
    color: #f4c36b;
    font: 700 12px ui-monospace, monospace;
    text-align: right;
    text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000;
}

/* Balken: hoger (18px), smal, met highlight-top en donkere bottom */
#mix-modal .ll-bar {
    height: 18px;
    max-width: 260px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    /* donker chassis met boven-highlight + lichte binnenlijn */
    background: linear-gradient(#0f1f29, #0b171f);
    border: 2px solid #000;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        /* lichte top highlight */
        0 0 0 2px #1a0e0b,
        /* donkere buitenrand */
        0 0 0 5px #6f3d2d;
    /* bruin buitenframe */
}

/* Fill met lichte bovenkant en donkerder onderkant */
#mix-modal .ll-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(#ef9a4a, #c66f2f);
    /* HUB default oranje */
}

#mix-modal .ll-fill[data-k="ZEO"] {
    background: linear-gradient(#f0c95a, #c89f32);
}

#mix-modal .ll-fill[data-k="ELE"] {
    background: linear-gradient(#6fc6e0, #3b98b8);
}

#mix-modal .ll-fill[data-k="YRO"] {
    background: linear-gradient(#e3707a, #b44651);
}

/* Stats panel (zelfde bevel-stijl) */
#mix-modal .ll-stats-panel .stat {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

#mix-modal .ll-stats-panel .icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #21432f;
    border: 2px solid #000;
    box-shadow: 0 0 0 2px #1a0e0b, 0 0 0 5px #6f3d2d, inset 0 0 0 1px #263a2c;
}

#mix-modal .ll-stats-panel .bar {
    height: 12px;
    max-width: 260px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(#0f1f29, #0b171f);
    border: 2px solid #000;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 0 0 2px #1a0e0b,
        0 0 0 5px #6f3d2d;
}

#mix-modal .ll-stats-panel .fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(#f0c95a, #c89f32);
}

/* ===== Bottom: MIX + full-width inventory ===== */
#mix-modal .ll-bottom {
    position: relative;
    z-index: 2;
    padding: 12px 22px 18px;
}

#mix-modal .ll-mix-btn {
    display: block;
    margin: 0 auto 12px;
    background: #b8553f;
    color: #f4c36b;
    text-transform: uppercase;
    border: 2px solid #1a0e0b;
    box-shadow: 0 0 0 3px #6f3d2d, 0 0 0 6px #1a0e0b, 0 4px 0 #7a3a2b;
    font: 900 18px ui-monospace, monospace;
    letter-spacing: 1.5px;
    padding: 10px 28px;
    border-radius: 8px;
    cursor: pointer;
    text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000;
}

#mix-modal .ll-mix-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

#mix-modal .ll-inventory {
    padding: 10px;
}

#mix-modal .ll-inv-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84px;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

#mix-modal .ll-inv-grid::-webkit-scrollbar {
    height: 8px;
}

#mix-modal .ll-inv-grid::-webkit-scrollbar-thumb {
    background: #2b3a44;
}

/* Inventory slots met bruin frame */
#mix-modal .inv-slot {
    width: 84px;
    height: 84px;
    border-radius: 6px;
    background: #141a1f;
    display: grid;
    place-items: center;
    position: relative;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 0 0 2px #1a0e0b, 0 0 0 5px #6f3d2d, inset 0 0 0 1px #24313a;
}

#mix-modal .inv-slot.ll-empty {
    filter: grayscale(100%) brightness(.6);
    opacity: .7;
    cursor: not-allowed;
}

#mix-modal .inv-slot img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

#mix-modal .inv-slot .qty {
    position: absolute;
    bottom: 2px;
    right: 6px;
    font: 700 11px ui-monospace, monospace;
    color: #d2ffd2;
    text-shadow: 0 1px 0 #000, 1px 0 0 #000, -1px 0 0 #000, 0 -1px 0 #000;
}

/* Close */
#mix-modal .ll-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2a2a2a;
    color: #ddd;
    cursor: pointer;
    z-index: 3;
    border-radius: 8px;
    padding: 6px 10px;
    border: 2px solid #1a0e0b;
    box-shadow: 0 0 0 3px #6f3d2d, 0 0 0 6px #1a0e0b;
}
/* Alles ge-scope-d op #ui-root om bleed te voorkomen */
#ui-root .msr-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    z-index: 10000;
    touch-action: none;
}

#ui-root .msr-backdrop.show {
    display: flex;
}

#ui-root #mix-result.msr-modal {
    position: relative;
    width: min(900px, 96vw);
    max-height: 88vh;
    background: #23262b;
    border: 3px solid #000;
    border-radius: 8px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, .65),
        0 0 0 2px #000 inset,
        0 0 0 1px #2d3941 inset;
    image-rendering: pixelated;
    overflow: hidden;
}

#ui-root #mix-result .msr-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2a2a2a;
    color: #ddd;
    border: 2px solid #000;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 3;
}

#ui-root #mix-result .msr-header {
    margin: 12px auto 8px;
    width: fit-content;
    padding: 10px 22px;
    background: #5a3a2d;
    color: #f4c36b;
    font: 700 18px/1 ui-monospace, monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 3px solid #000;
    border-radius: 6px;
    box-shadow: 0 4px 0 #2b1a14;
    text-shadow: 0 2px 0 #000;
}

#ui-root #mix-result .msr-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    padding: 10px 16px 16px;
}

@media (max-width: 820px) {
    #ui-root #mix-result .msr-body {
        grid-template-columns: 1fr;
    }
}

/* Kaarten */
#ui-root #mix-result .msr-card {
    background: #1f2429;
    border: 3px solid #000;
    border-radius: 6px;
    padding: 12px;
    box-shadow:
        0 4px 0 #0e1216,
        0 0 0 2px #000 inset,
        0 0 0 1px #2d3941 inset;
}

#ui-root #mix-result h3 {
    margin: 0 0 8px;
    color: #f4c36b;
    font: 700 14px/1 ui-monospace, monospace;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 #000;
}

/* Left */
#ui-root #mix-result .msr-preview {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: center;
}

#ui-root #mix-result .msr-imgwrap {
    width: 90px;
    height: 90px;
    border: 3px solid #000;
    border-radius: 6px;
    background: #141a1f;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 1px #24313a inset;
}

#ui-root #mix-result .msr-imgwrap img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

#ui-root #mix-result .msr-name {
    color: #e8e1d4;
    font: 700 14px ui-monospace, monospace;
    text-shadow: 0 1px 0 #000;
}

#ui-root #mix-result .msr-badges {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
}

#ui-root #mix-result .badge {
    padding: 4px 8px;
    border: 2px solid #000;
    border-radius: 6px;
    background: #2b3238;
    color: #e8e1d4;
    font: 800 11px ui-monospace, monospace;
    text-shadow: 0 1px 0 #000;
}

#ui-root #mix-result .badge.kind-match {
    background: #4a3;
}

#ui-root #mix-result .badge.kind-near {
    background: #b98b2a;
}

#ui-root #mix-result .badge.kind-junk {
    background: #743237;
}

#ui-root #mix-result .badge-sim {
    background: #314050;
}

/* Ingredient chips */
#ui-root #mix-result .msr-ingredients {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

#ui-root #mix-result .chip {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 8px;
    align-items: center;
    background: #20252a;
    padding: 6px 8px;
    border: 2px solid #000;
    border-radius: 6px;
}

#ui-root #mix-result .chip .icon {
    width: 32px;
    height: 32px;
    background: #141a1f;
    border: 2px solid #000;
    border-radius: 4px;
    display: grid;
    place-items: center;
}

#ui-root #mix-result .chip .icon img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

#ui-root #mix-result .chip .k {
    font: 800 10px ui-monospace, monospace;
    color: #d2b480;
    text-shadow: 0 1px 0 #000;
}

#ui-root #mix-result .chip .v {
    font: 700 11px ui-monospace, monospace;
    color: #e8e1d4;
    text-shadow: 0 1px 0 #000;
}

/* Right: quality + DNA */
#ui-root #mix-result .msr-quality {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

#ui-root #mix-result .msr-quality .q-num {
    min-width: 64px;
    text-align: center;
    padding: 6px 8px;
    border: 2px solid #000;
    border-radius: 6px;
    font: 900 16px ui-monospace, monospace;
    color: #111;
    text-shadow: none;
}

#ui-root #mix-result .q-num.good {
    background: #f1d08a;
}

#ui-root #mix-result .q-num.ok {
    background: #a3d490;
}

#ui-root #mix-result .q-num.bad {
    background: #d88a8f;
}

#ui-root #mix-result .q-sub {
    color: #ddd;
    font: 700 11px ui-monospace, monospace;
    text-shadow: 0 1px 0 #000;
}

/* DNA rows */
#ui-root #mix-result .row {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: center;
    margin: 6px 0;
}

#ui-root #mix-result .label {
    color: #f1d08a;
    font: 700 12px ui-monospace, monospace;
    text-align: right;
    text-shadow: 0 1px 0 #000;
}

#ui-root #mix-result .bar {
    position: relative;
    height: 16px;
    background: #0c1a24;
    border: 3px solid #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #24313a inset;
}

#ui-root #mix-result .fill {
    height: 100%;
    width: 0%;
    transition: width 320ms ease;
    background: #e5933a;
    /* default */
}

/* kleur per as (alleen fill-kleur, panel blijft charcoal) */
#ui-root #mix-result .fill[data-k="ZEO"] {
    background: #e2b64a;
}

/* geel */
#ui-root #mix-result .fill[data-k="ELE"] {
    background: #56b3d2;
}

/* blauw */
#ui-root #mix-result .fill[data-k="YRO"] {
    background: #d95b66;
}

/* rood */

#ui-root #mix-result .bar .top {
    position: absolute;
    left: 0;
    right: 0;
    top: 2px;
    height: 2px;
    background: rgba(255, 255, 255, .18);
    pointer-events: none;
}

#ui-root #mix-result .bar .bot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: rgba(0, 0, 0, .35);
    pointer-events: none;
}

/* Actions */
#ui-root #mix-result .msr-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#ui-root #mix-result .btn {
    background: #2b3238;
    color: #e8e1d4;
    border: 3px solid #000;
    border-radius: 8px;
    padding: 8px 14px;
    font: 800 12px ui-monospace, monospace;
    cursor: pointer;
    box-shadow: 0 4px 0 #0e1216;
}

#ui-root #mix-result .btn.primary {
    background: #b8553f;
    box-shadow: 0 4px 0 #7a3a2b;
    color: #f4c36b;
}

#ui-root #mix-result .btn.secondary {
    opacity: .85;
}
/* Alles scope op #plant-modal zodat andere modals niet geraakt worden */
#plant-modal {
    position: relative;
    width: min(1000px, 96vw);
    max-height: 86vh;
    overflow: hidden;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .65);
    image-rendering: pixelated;
}

#plant-modal .ll-mix-btn {
    background: #114d35;
    color: #c9ffe6;
    border: 1px solid #1b7a50;
    padding: 8px 12px;
    border-radius: 8px;
    font: 700 13px ui-monospace, monospace;
    cursor: pointer;
}

#plant-modal .ll-mix-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Achtergrond baksteen zoals de andere modals (optioneel) */
#plant-modal .pm-bg {
    position: absolute;
    inset: 0;
    background-image: url(/assets/workbench_bg5633a934c6c15e2d28a9.png);
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 0;
}

/* Titel */
#plant-modal .pm-header {
    position: relative;
    z-index: 2;
    display: block;
    width: fit-content;
    margin: 12px auto 8px;
    padding: 10px 22px;
    border: 3px solid #000;
    border-radius: 6px;
    background: #5a3a2d;
    box-shadow: 0 4px 0 #2b1a14;
    color: #f4c36b;
    font: 700 20px/1 ui-monospace, monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #000;
}

/* BOVENSTE KADER: we houden de panel-rand, maar vullen de binnenkant met growcabinet_bg */
#plant-modal .pm-top {
    position: relative;
    z-index: 2;
    margin: 0 16px;
    padding: 16px;
}

/* De echte 'cabinet' achtergrond binnen het panel */
#plant-modal .pm-cabinet {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #121418;
    /* fallback */
}

#plant-modal .pm-cabinet::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(/assets/soilb60a90bc937e9dd04e58.png);
    background-size: contain;
    background-position: center;
    opacity: 1;
}

/* Grid met max 5 slots */
#plant-modal .pm-plots {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    z-index: 1;
    /* boven bg */
    height: 100%;
    align-items: center;
}

#plant-modal .pm-plots [data-plot].active {
    outline: 2px solid #1b7a50;
    box-shadow: inset 0 0 0 2px #1b7a50;
}

/* Eén plot */
#plant-modal .plot {
    position: relative;
    height: 180px;
    border: 2px dashed rgba(255, 255, 255, .15);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
}

/* Zandhoop */
#plant-modal .plot .soil {
    width: 72px;
    height: 48px;
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background-image: url(/assets/sand_pile869f555db5dc3f1c6f62.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
    filter: drop-shadow(0 2px 0 #000);
}

#plant-modal .plot .sprout-img {
    position: absolute;
    left: 50%;
    bottom: 40px;
    /* iets ónder soil zodat soil eroverheen valt */
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    image-rendering: pixelated;
    filter: drop-shadow(0 1px 0 #000);
    z-index: 1;
    /* onder soil */
}

/* Module icons (zonder paneel) */
#plant-modal .plot .mod {
    position: absolute;
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 0 #000);
    z-index: 3;
}

#plant-modal .plot .mod.light {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

#plant-modal .plot .mod.water {
    bottom: 50px;
    left: 10px;
}

#plant-modal .plot .mod.nutr {
    bottom: 50px;
    right: 10px;
}

/* Tooltips via data-tip */
#plant-modal .plot .mod[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, -8px);
    white-space: nowrap;
    background: #1f2a33;
    border: 2px solid #000;
    box-shadow: 0 3px 0 #0e1a22;
    color: #f4c36b;
    font: 700 11px ui-monospace, monospace;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease-out;
}

#plant-modal .plot .mod:hover::after {
    opacity: 1;
}

/* LOCKED & EMPTY badges */
#plant-modal .badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #3a2c25;
    color: #f4c36b;
    border: 2px solid #000;
    border-radius: 6px;
    font: 700 11px/1 ui-monospace, monospace;
    box-shadow: 0 3px 0 #1f130e;
    text-align: center;
    width: max-content;
}

#plant-modal .badge.locked {
    opacity: .85;
}

#plant-modal .badge.empty {
    opacity: .9;
}

/* Onderste inventory-paneel blijft zoals je die al had; 
   hieronder alleen de rand/kaart consistent met de pixel UI */
#plant-modal .pm-bottom {
    position: relative;
    z-index: 2;
    margin: 12px 16px 16px;
    padding: 10px;
    background: #23262b;
    border: 3px solid #000;
    border-radius: 8px;
    box-shadow:
        0 4px 0 #0e1216,
        0 0 0 2px #000 inset,
        0 0 0 1px #2d3941 inset;
}

/* Sluitknop */
#plant-modal .pm-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2a2a2a;
    border: 2px solid #000;
    color: #ddd;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 3;
}

#plant-modal .plot .mod-edit {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2a2a2a;
    border: 2px solid #000;
    color: #ddd;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    font: 700 12px/1 ui-monospace, monospace;
    box-shadow: 0 2px 0 #0e1216;
}

#plant-modal .plot .mod-edit:hover {
    background: #333;
}

/* ---- TIMER PILL + PROGRESS (in plot) ---- */
#plant-modal .plot .timer {
    position: absolute;
    top: 56px;
    left: 30px;
    right: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #1f2a33;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0 3px 0 #0e1a22, inset 0 0 0 1px #2d3941;
    color: #cfe8ff;
    font: 700 11px/1 ui-monospace, monospace;
    text-shadow: 0 1px 0 #000;
    image-rendering: pixelated;
    z-index: 4;
}

#plant-modal .plot .timer::before {
    content: "⏳";
    opacity: .9;
}

/* klaar-state kleurtje */
#plant-modal .plot .timer.done {
    background: #2a3a22;
    box-shadow: 0 3px 0 #142010, inset 0 0 0 1px #3e5834;
    color: #dfffd1;
}

#plant-modal .plot .timer.done::before {
    content: "✅";
}

/* progressbalk onderaan de plot */
#plant-modal .plot .progress {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0px;
    height: 10px;
    background: #0e1a22;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px #23323b, 0 2px 0 #0b1217;
    overflow: hidden;
    z-index: 4;
}

#plant-modal .plot .progress .fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(#6aa36a, #2f6a3a);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .15), inset 0 -2px 0 rgba(0, 0, 0, .35);
    transition: width .25s linear;
}

#plant-modal .plot .progress.warn .fill {
    background: linear-gradient(#e2b64a, #9a6b2a);
}

#plant-modal .plot .progress.danger .fill {
    background: linear-gradient(#d96a6a, #7d2a30);
}

/* sprout-knop die al in gebruik is */
.ll-slot.inv-slot.is-busy,
.ll-slot.inv-slot:disabled {
    opacity: .5;
    cursor: not-allowed;
    filter: grayscale(80%);
}

/* kleine variant van je mix/primary knop */
.ll-mix-btn.small {
    padding: 6px 10px;
    font-size: 12px;
}

/* harvest actions op de plot */
#plant-modal .harvest-actions {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

/* confirm modal */
.modal-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: grid;
    place-items: center;
    z-index: 10000;
}

.modal-confirm {
    width: min(360px, 90vw);
    background: #23262b;
    border: 3px solid #000;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
    padding: 14px;
    color: #eee;
}

.modal-confirm h3 {
    margin: 0 0 8px;
    color: #f4c36b;
    font: 700 16px ui-monospace, monospace;
    text-shadow: 0 1px 0 #000;
}

.modal-confirm p {
    margin: 0 0 12px;
    color: #cfd9e1;
    font: 13px/1.4 ui-monospace, monospace;
}

.modal-confirm .actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Alles gescope-d onder #game zodat andere UI onaangeraakt blijft */
#game .ms-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* overlay is informatief, clicks gaan naar canvas */
    font-family: ui-monospace, monospace;
    image-rendering: pixelated;
    z-index: 5;
    /* boven Phaser canvas (dat zelf binnen #game zit) */
}

/* Chips linksboven */
#game .ms-chips {
    position: absolute;
    left: 20px;
    top: 16px;
    display: flex;
    gap: 12px;
    pointer-events: none;
}

#game .ms-chip {
    display: grid;
    grid-template-columns: 28px auto;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    background: #23262b;
    border: 3px solid #000;
    border-radius: 6px;
    box-shadow:
        0 4px 0 #0e1216,
        0 0 0 2px #000 inset,
        0 0 0 1px #2d3941 inset;
}

#game .ms-chip .icon {
    width: 28px;
    height: 28px;
    background: #141a1f;
    border: 2px solid #000;
    border-radius: 4px;
    display: grid;
    place-items: center;
}

#game .ms-chip .icon img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
}

#game .ms-chip .txt .k {
    font-weight: 800;
    font-size: 11px;
    color: #f4c36b;
    text-shadow: 0 1px 0 #000;
    line-height: 1;
}

#game .ms-chip .txt .v {
    font-weight: 600;
    font-size: 11px;
    color: #d9dee3;
    text-shadow: 0 1px 0 #000;
    line-height: 1.1;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Info paneel rechtsboven */
#game .ms-info {
    position: absolute;
    right: 20px;
    top: 16px;
    width: 260px;
    padding: 10px 12px;
    background: #23262b;
    border: 3px solid #000;
    border-radius: 6px;
    box-shadow:
        0 4px 0 #0e1216,
        0 0 0 2px #000 inset,
        0 0 0 1px #2d3941 inset;
    pointer-events: none;
    color: #d9dee3;
}

#game .ms-info h4 {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #f4c36b;
    text-shadow: 0 1px 0 #000;
}

#game .ms-info p {
    margin: 6px 0;
    font-size: 12px;
    line-height: 1.25;
    color: #d9dee3;
    text-shadow: 0 1px 0 #000;
}

/* (optioneel) cursor tijdens minigame */
#game canvas {
    cursor: crosshair;
}
/* /src/styles/map.css */
/* Pixel-achtige UI, groen/donkergroen palette, goudgele strokes */

:root {
    --panel-bg: #11261b;
    --panel-header: #1b3a2b;
    --border-gold: #c7b05a;
    --text: #e6f2e9;
    --text-sub: #9ad1ae;

    --chip-green-a: #2f6f3d;
    --chip-green-b: #1e4e2a;

    --chip-amber-a: #a8772f;
    --chip-amber-b: #7f5720;

    --chip-red-a: #a64236;
    --chip-red-b: #732b25;
}

/* ---------- Modal overlay ---------- */
#game .map-modal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 16, .65);
    z-index: 99999;
}

/* ---------- Modal ---------- */
#game .map-modal {
    width: min(560px, calc(100% - 24px));
    background: var(--panel-bg);
    border: 2px solid var(--border-gold);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .65);
    border-radius: 10px;
    color: var(--text);
    font-family: ui-monospace, monospace;
}

#game .map-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--panel-header);
    border-bottom: 1px solid var(--border-gold);
}

#game .map-modal__title {
    font-size: 16px;
    letter-spacing: .5px;
}

#game .map-modal__close {
    background: #173129;
    color: #d7eddc;
    border: 1px solid var(--border-gold);
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
}

#game .map-modal__body {
    padding: 14px;
    font-size: 14px;
    line-height: 1.5;
}

#game .map-modal__panel {
    background: #0f1f18;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

#game .map-modal__row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
}

#game .map-modal__row span {
    color: var(--text-sub);
}

#game .map-modal__hint {
    margin: 10px 0 0;
    color: #cfe7db;
    font-size: 13px;
}

#game .map-modal__foot {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 14px;
    border-top: 1px solid var(--border-gold);
}

#game .map-modal__btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .4px;
}

#game .map-modal__btn--primary {
    background: #2c6c3a;
    color: #eaf6ef;
}

#game .map-modal__btn--ghost {
    background: #173129;
    color: #cfe7db;
}

/* ---------- Chips (gradient + goudrand) ---------- */
#game .risk,
#game .chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-gold);
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}

#game .risk--low {
    background: linear-gradient(var(--chip-green-a), var(--chip-green-b));
    color: #eef8f1;
}

#game .risk--medium {
    background: linear-gradient(var(--chip-amber-a), var(--chip-amber-b));
    color: #fff5e6;
}

#game .risk--high {
    background: linear-gradient(var(--chip-red-a), var(--chip-red-b));
    color: #ffe9dc;
}

/* Demand chip in modal (rood zoals je voorbeeld) */
#game .chip--demand {
    background: linear-gradient(var(--chip-red-a), var(--chip-red-b));
    color: #ffe9dc;
}
/* /src/styles/reagentShop.css */
/* Pixel-achtige winkel overlay, matched met je map-stijl */

:root {
    --panel-bg: #11261b;
    --panel-header: #1b3a2b;
    --border-gold: #c7b05a;
    --text: #e6f2e9;
    --text-sub: #9ad1ae;

    --chip-red-a: #a64236;
    --chip-red-b: #732b25;
    --green-a: #1b3a2b;
    --green-b: #0f291f;
}

#game .shop-ovl {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 16, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

#game .shop-wrap {
    width: min(980px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 8px;
    padding: 8px;
    background: linear-gradient(var(--green-a), var(--green-b));
    border: 2px solid var(--border-gold);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
    overflow: hidden;
}

/* Aside (Ariane + bubble) */
#game .shop-aside {
    position: relative;
    background: var(--panel-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 12px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

#game .shop-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #173129;
    color: #d7eddc;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
}

#game .shop-npc {
    margin: 10px 0 8px;
    text-align: center;
    color: var(--text);
}

#game .shop-npc img {
    width: 200px;
    height: auto;
    image-rendering: pixelated;
    /* pixelart look */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}

#game .shop-npc figcaption {
    margin-top: 6px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
}

#game .shop-bubble {
    position: relative;
    width: 100%;
    margin-top: 6px;
    background: #0f1f18;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    padding: 10px;
}

#game .shop-bubble::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: -10px;
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: var(--border-gold) transparent transparent transparent;
}

#game .shop-bubble::before {
    content: "";
    position: absolute;
    left: 24px;
    bottom: -9px;
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: #0f1f18 transparent transparent transparent;
    z-index: 1;
}

#game .shop-bubble__text {
    color: var(--text);
    font-family: ui-monospace, monospace;
    font-size: 13px;
}

/* Main (header + items) */
#game .shop-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--panel-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
}

#game .shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--panel-header);
    border-bottom: 1px solid var(--border-gold);
}

#game .shop-header h3 {
    margin: 0;
    font-family: ui-monospace, monospace;
    color: var(--text);
    font-size: 16px;
    letter-spacing: .4px;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .6);
}

#game .shop-balance {
    font-family: ui-monospace, monospace;
    font-weight: 700;
    color: #dff6e6;
}

#game .shop-panel {
    padding: 12px;
    overflow: auto;
}

#game .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

/* Item */
#game .shop-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #0f1f18;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    text-align: left;
    transition: transform .05s ease;
}

#game .shop-item:hover {
    transform: translateY(-1px);
}

#game .shop-item.is-disabled {
    filter: grayscale(100%) opacity(.55);
    cursor: not-allowed;
}

#game .shop-item.is-pending {
    opacity: .6;
    pointer-events: none;
}

#game .shop-item.is-bought {
    outline: 2px solid #9ad1ae;
}

#game .shop-item__frame {
    width: 56px;
    height: 56px;
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    background: #0c1813;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game .shop-item__frame img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: pixelated;
}

#game .shop-item__ph {
    font-size: 20px;
    color: #e6f2e9;
}

#game .shop-item__meta {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#game .shop-item__name {
    font-family: ui-monospace, monospace;
    color: var(--text);
    font-size: 12px;
}

#game .shop-item__price {
    font-family: ui-monospace, monospace;
    font-weight: 800;
    color: #ffe9dc;
    background: linear-gradient(var(--chip-red-a), var(--chip-red-b));
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    padding: 2px 8px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}

/* Toast */
#game .shop-toast {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0f1f18;
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    color: var(--text);
    font-family: ui-monospace, monospace;
    padding: 8px 12px;
    opacity: 0;
    transition: all .2s ease;
}

#game .shop-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#game .shop-toast--err {
    background: #2b0f0f;
}
/* /src/scenes/bankOverlay.css */

/* sectietitels */
#game .bank-section .bank-title {
    margin: 10px 0 6px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    color: #eaf6ef;
    letter-spacing: .3px;
}

#game .bank-section .bank-sub {
    color: #9db7a7;
    font-weight: 400;
    margin-left: 6px;
}

/* grid met opties (cards) */
#game .opt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

#game .opt-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

#game .opt-card {
    background: #0c161b;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

#game .opt-card.is-disabled {
    opacity: .6;
    filter: saturate(.85);
}

#game .opt-card__head {
    font-size: 11px;
    color: #9db7a7;
    margin-bottom: 4px;
}

#game .opt-card__title {
    font-size: 15px;
    color: #eaf6ef;
    font-weight: 700;
    margin-bottom: 2px;
}

#game .opt-card__muted {
    font-size: 12px;
    color: #9db7a7;
    margin-bottom: 6px;
}

#game .opt-card__line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 6px 0;
    border-top: 1px solid #15252a;
    margin: 6px 0;
    color: #c7b05a;
}

#game .opt-card__row {
    display: flex;
    gap: 8px;
}

/* knoppen */
#game .opt-btn {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #000;
    cursor: pointer;
    background: #16262c;
    color: #cfe7db;
    font-weight: 700;
    letter-spacing: .3px;
}

#game .opt-btn--primary {
    background: #2c6c3a;
    color: #eaf6ef;
}

/* actieve lening paneeltje */
#game .bank-active {
    background: #0b1519;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

#game .bank-active__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #c7b05a;
}

#game .bank-active__muted {
    color: #9db7a7;
    font-size: 12px;
}

#game .bank-active__fig {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 16px;
    font-size: 12px;
}

#game .bank-active__fig span {
    color: #9db7a7;
    margin-right: 8px;
}

#game .bank-active__pay {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

#game .bank-input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #000;
    background: #0c161b;
    color: #eaf6ef;
}

#game .bank-paybtns {
    display: flex;
    gap: 8px;
}

#game .bank-btn {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #000;
    cursor: pointer;
    background: #16262c;
    color: #cfe7db;
    font-weight: 700;
    letter-spacing: .3px;
}

#game .bank-btn--primary {
    background: #2c6c3a;
    color: #eaf6ef;
}

#game .bank-btn--warn {
    background: #7d2a30;
    color: #ffeef0;
}

#game .bank-active__warn {
    margin-top: 8px;
    font-size: 12px;
    color: #ffe9dc;
}

/*# sourceMappingURL=main.css.map*/