.wm-dialog {
    width:min(96vw,1150px);
    max-width:none;
    max-height:95vh;
    padding:0;
    border:4px solid white;
    border-radius:28px;
    background:#fffaf0;
    color:#49336c;
    overflow:auto;
    box-shadow:0 20px 80px #30204455;
}

.wm-dialog::backdrop {
    background:#302044bb;
}

.wm-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:18px;
    background:#478c57;
    color:white;
    font-size:22px;
}

.wm-controls {
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.wm-small {
    padding:10px;
    border:0;
    border-radius:12px;
    background:#ffffff30;
    color:white;
    font-weight:700;
    cursor:pointer;
}

.wm-status {
    text-align:center;
    padding:14px;
    font-weight:800;
    background:#e1f1d5;
}

.wm-stage {
    padding:24px;
    text-align:center;
    background:linear-gradient(#fffaf0,#edf8df);
}

.wm-stage h2 {
    color:#427c4a;
    font-size:clamp(24px,4vw,38px);
}

.wm-store-sign {
    background:repeating-linear-gradient(
        90deg,#ef8b9e 0 40px,#fff0e1 40px 80px
    );
    padding:24px 10px;
    border:4px solid white;
    border-radius:20px 20px 6px 6px;
    color:#553b68;
    font-size:clamp(20px,4vw,32px);
    font-weight:900;
    text-shadow:1px 1px white;
}

.wm-levels {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
    margin:25px 0;
}

.wm-level {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:12px;
    min-height:150px;
    padding:20px;
    border:3px solid white;
    border-radius:24px;
    color:#49336c;
    background:#d7edbd;
    cursor:pointer;
}

.wm-level:nth-child(2) {
    background:#d9eaff;
}

.wm-level:nth-child(3) {
    background:#ffe0eb;
}

.wm-level strong {
    font-size:23px;
}

.wm-level small {
    font-size:15px;
}

.wm-layout {
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(230px,1fr);
    gap:20px;
    align-items:start;
}

.wm-store {
    border-radius:20px;
    overflow:hidden;
    background:#f3dfbd;
    padding:10px;
}

.wm-shelf {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    padding:15px 4px;
}

.wm-product {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    padding:12px 5px;
    border:3px solid white;
    border-bottom:8px solid #b88955;
    border-radius:18px;
    background:#fffaf0;
    color:#49336c;
    cursor:pointer;
}

.wm-product-image {
    width:100%;
    max-width:110px;
    height:auto;
    aspect-ratio:1;
    object-fit:contain;
}

.wm-product strong {
    font-size:17px;
}

.wm-price {
    background:#ffdf75;
    color:#58432d;
    padding:6px 15px;
    border-radius:12px;
    font-weight:900;
}

.wm-mission,.wm-cart {
    padding:16px;
    border:2px solid #d7e9c7;
    border-radius:20px;
    background:white;
    margin-bottom:14px;
    text-align:left;
}

.wm-found {
    color:#43843e;
    font-weight:800;
}

.wm-cart-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:8px 0;
    border-bottom:1px solid #e6e6e6;
}

.wm-remove {
    padding:6px;
    border:0;
    border-radius:8px;
    color:#9b3c45;
    background:#ffe2e5;
    cursor:pointer;
}

.wm-button {
    padding:14px 22px;
    margin:8px 4px;
    border:0;
    border-radius:25px;
    background:#478c57;
    color:white;
    font-size:17px;
    font-weight:800;
    cursor:pointer;
}

.wm-button:disabled {
    opacity:.4;
}

.wm-currency-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin:20px 0;
}

.wm-currency-card {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:15px 8px;
    min-height:120px;
    border:3px solid white;
    border-radius:20px;
    background:#f0e8ff;
    cursor:pointer;
}

.wm-money {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    font-weight:900;
}

.wm-money.coin {
    width:90px;
    height:90px;
    border-radius:50%;
    border:5px double #ffffffaa;
    box-shadow:0 4px 0 #6d675f66;
}

.wm-money.copper {
    background:linear-gradient(
        135deg,#f3c59d,#b97442
    );
    color:#633d26;
}

.wm-money.silver {
    background:linear-gradient(
        135deg,#f9f9fa,#a7adb6
    );
    color:#4d5360;
}

.wm-money.bill {
    width:100%;
    max-width:150px;
    min-height:75px;
    border:5px double #6c9866;
    border-radius:6px;
    background:#d7e9bc;
    color:#42613d;
}

.wm-money strong {
    font-size:27px;
}

.wm-money small {
    font-size:11px;
}

.wm-register {
    max-width:320px;
    margin:20px auto;
    padding:25px;
    background:#384a48;
    color:#bdf6ad;
    border:8px solid #b3c2b9;
    border-radius:18px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.wm-register strong {
    font-size:48px;
    font-family:monospace;
}

.wm-payment {
    padding:15px;
    border-radius:18px;
    background:white;
}

.wm-feedback {
    min-height:40px;
    padding:12px;
    color:#49753d;
    font-weight:800;
}

.wm-change-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    max-width:600px;
    margin:20px auto;
}

.wm-success {
    width:100px;
    height:100px;
    border-radius:50%;
    margin:20px auto;
    display:grid;
    place-items:center;
    background:#9fdb87;
    color:white;
    font-size:65px;
}

.wm-trophy {
    font-size:90px;
}

.wm-note {
    font-size:13px;
    color:#696477;
}

.wm-dialog button:focus-visible {
    outline:3px solid #51377c;
    outline-offset:3px;
}

.wm-dialog button:not(:disabled):hover {
    filter:brightness(.96);
}

@media(max-width:720px) {
    .wm-layout {
        grid-template-columns:1fr;
    }

    .wm-levels {
        grid-template-columns:1fr;
    }

    .wm-level {
        min-height:100px;
    }

    .wm-stage {
        padding:12px;
    }

    .wm-top {
        font-size:16px;
        flex-wrap:wrap;
    }

    .wm-shelf {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .wm-currency-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .wm-currency-card {
        min-height:105px;
    }
}
