/* Shop overlay: skins for game coins, coin packs for huEVO moneta, "support the author".
   Visual language matches the site: dark #14120e cards, gold #c89b3c accents, Times New Roman. */

/* ============================ backdrop ============================ */
.shop-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4vh 16px 16px;
    background: #000000bf;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}
.shop-backdrop.shop-hidden { display: none; }

/* ============================ card ============================ */
.shop-card {
    width: 100%;
    max-width: 660px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #14120ef2;
    border: 1px solid #c89b3c66;
    border-radius: 16px;
    box-shadow: 0 0 40px #c89b3c26;
}
.shop-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #c89b3c2e;
}
.shop-title {
    margin: 0;
    color: #fff;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 400;
}
.shop-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c89b3c;
    font-size: 15px;
    border: 1px solid #c89b3c4d;
    border-radius: 10px;
    padding: 4px 10px;
    background: #0e0c08a6;
    white-space: nowrap;
}
.shop-balance .shop-coin { font-size: 12px; }
.shop-close {
    margin-left: auto;
    cursor: pointer;
    color: #ffffff80;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
}
.shop-close:hover { color: #fff; background: #c89b3c1f; }

.shop-body {
    padding: 6px 20px 20px;
    overflow-y: auto;
}

/* ============================ sections ============================ */
.shop-sec {
    margin: 18px 0 10px;
    color: #ffffff80;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 13px;
}
.shop-sec:first-child { margin-top: 12px; }
.shop-sub { color: #ffffff57; font-size: 12.5px; margin: -4px 0 8px; }
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

/* ============================ item card ============================ */
.shop-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid #c89b3c33;
    border-radius: 14px;
    background: #0e0c08a6;
}
.shop-item.shop-itemActive { border-color: #c89b3cd9; box-shadow: 0 0 18px #c89b3c26; }
.shop-itemIcons {
    display: flex;
    gap: 6px;
}
.shop-itemArt {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #c89b3c33;
    background: #00000059 center / cover no-repeat;
    image-rendering: auto;
    flex-shrink: 0;
}
.shop-itemIcons .shop-itemArt { width: 40px; height: 40px; }
.shop-itemName { color: #fff; font-size: 15px; line-height: 1.25; }
.shop-itemSub { color: #ffffff57; font-size: 12.5px; letter-spacing: .02em; }
.shop-itemFoot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.shop-price {
    color: #c89b3c;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.shop-price .shop-coin { font-size: 11px; }
.shop-ownedTag { color: #ffffff80; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }

/* ============================ buttons ============================ */
.shop-btn {
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #fff;
    background: #c89b4c33;
    border: 1px solid #c89b3c66;
    border-radius: 10px;
    padding: 7px 14px;
    transition: background .15s ease;
}
.shop-btn:hover { background: #c89b4c55; }
.shop-btn:disabled { opacity: .45; cursor: not-allowed; }
.shop-btn.shop-btnGold { background: #c89b3c33; border-color: #c89b3c; }
.shop-btn.shop-btnGold:hover { background: #c89b3c4d; }
.shop-btn.shop-btnDim {
    background: transparent;
    border-color: #ffffff2e;
    color: #ffffffcc;
    padding: 5px 10px;
    font-size: 13px;
}
.shop-btn.shop-btnDim:hover { border-color: #c89b3c66; color: #fff; }
.shop-buyMore {
    background: transparent;
    border: 0;
    color: #c89b3c;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 2px;
    text-decoration: underline;
    text-decoration-color: #c89b3c80;
}
.shop-buyMore:hover { color: #e6c56d; }

/* ============================ packs ============================ */
.shop-pack { align-items: flex-start; }
.shop-packGain {
    color: #fff;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.shop-packGain .shop-coin { font-size: 13px; }
.shop-packPrice { color: #ffffff80; font-size: 13px; }
.shop-packPrice b { color: #c89b3c; font-weight: 400; }

/* ============================ support block ============================ */
.shop-tipCard {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #c89b3c33;
    border-radius: 14px;
    background: #0e0c08a6;
}
.shop-tipText { color: #ffffffcc; font-size: 14px; line-height: 1.45; }
.shop-tipText b { color: #c89b3c; font-weight: 400; }
.shop-tipRow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.shop-tipInput {
    width: 120px;
    font-family: inherit;
    font-size: 15px;
    color: #fff;
    background: #00000059;
    border: 1px solid #c89b3c4d;
    border-radius: 10px;
    padding: 8px 10px;
    outline: none;
}
.shop-tipInput:focus { border-color: #c89b3c; }
.shop-tipErr { color: #e06c5a; font-size: 13px; min-height: 1em; }
.shop-presets { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================ guest / notice ============================ */
.shop-note {
    color: #ffffff80;
    font-size: 13.5px;
    line-height: 1.5;
    padding: 4px 2px 8px;
}
.shop-lock:disabled { opacity: .6; }

/* ============================ toasts ============================ */
.shop-toasts {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}
.shop-toast {
    color: #fff;
    font-size: 14px;
    background: #14120ef2;
    border: 1px solid #c89b3c66;
    border-radius: 12px;
    padding: 10px 18px;
    box-shadow: 0 0 24px #c89b3c26;
    animation: shopToastIn .18s ease;
    max-width: 86vw;
    text-align: center;
}
.shop-toast.shop-toastOk { border-color: #7bb661aa; }
.shop-toast.shop-toastErr { border-color: #e06c5aa6; }
@keyframes shopToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================ menu row (above the title) ============================ */
.hue-menuRow {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 2px 0 10px;
    flex-wrap: wrap;
}
.hue-supportBtn {
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: #e6c56d;
    background: transparent;
    border: 1px solid #c89b3c40;
    border-radius: 999px;
    padding: 5px 14px;
    letter-spacing: .04em;
    transition: border-color .15s ease, color .15s ease;
}
.hue-supportBtn:hover { border-color: #c89b3c; color: #ffe9a8; }
.hue-coinsChip {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 13.5px;
    color: #c89b3c;
    background: #0e0c08a6;
    border: 1px solid #c89b3c4d;
    border-radius: 999px;
    padding: 5px 12px;
}
.hue-coinsChip:hover { border-color: #c89b3c; color: #e6c56d; }
.hue-coinsChip .shop-coin { font-size: 11px; }

/* "+N coins earned" line on the finish panel */
.hue-coinsEarned {
    color: #c89b3c;
    font-size: 14.5px;
    letter-spacing: .03em;
    margin: 0;
    min-height: 1.2em;
}
