@font-face{font-family:NpcShopLD;src:url('./native/ld-roboto-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
/* Native u145.ui is 360 x 360 units, rendered at 1.5 in LD's 960 x 540 game. */
#npcShop{position:fixed;inset:50% auto auto 50%;margin:0;width:540px;max-width:none;height:540px;max-height:none;box-sizing:border-box;padding:0;border:2px solid #83a8a2;border-radius:0;background:#083031;color:#fff;overflow:visible;font:28px/30px NpcShopLD,Arial,sans-serif;letter-spacing:0;text-shadow:1px 1px #102829;transform:translate(-50%,-50%) scale(var(--npc-shop-scale,1));transform-origin:center;box-shadow:none}
#npcShop[open]{display:flex;flex-direction:column}
#npcShop::backdrop{background:transparent}
#npcShop *,#npcShop *::before,#npcShop *::after{box-sizing:border-box}
#npcShop button{font:inherit;letter-spacing:0}
#npcShop button:focus{outline:none}
#npcShop header{position:relative;flex:none;height:33px;min-height:33px;margin:0;padding:0;background:#639a94;border-bottom:2px solid #93b5ac;display:flex;justify-content:center;align-items:center;overflow:hidden}
#npcShop header::before,#npcShop header::after{content:"";position:absolute;top:0;bottom:0;width:120px;background:url('./native/apk-title-cloud.png') left center/cover no-repeat;pointer-events:none}
#npcShop header::before{left:0}
#npcShop header::after{right:0;transform:scaleX(-1)}
#npcShop h2{position:relative;z-index:1;margin:0;padding:0;font:28px/31px NpcShopLD,Arial,sans-serif;text-align:center;color:#e4eee0;text-shadow:1px 2px #4a7972;white-space:nowrap}
.npc-shop-tabs{display:flex;align-items:center;flex:none;background:#31715a;border-bottom:2px solid #548e80;height:60px;box-sizing:border-box}
.npc-shop-tabs button{flex:0 0 127.5px;min-width:0;height:51px;margin:0;padding:0 4px;border:0;border-radius:0;background:transparent;color:#e6e1b5;font-size:28px;line-height:36px;text-shadow:1px 2px #334c40;box-shadow:none}
.npc-shop-tabs button[aria-selected=true]{background:#315952;color:#e6e1b5;box-shadow:inset 0 0 0 3px #71958b}
.npc-shop-tabs button:disabled{opacity:.6;cursor:default}
#npcShop[data-stage=quantity] .npc-shop-tabs button:disabled,#npcShop[data-stage=sale] .npc-shop-tabs button:disabled,#npcShop[data-stage=pending] .npc-shop-tabs button:disabled{opacity:1}
.npc-shop-money{display:grid;grid-template-columns:202.5px 180px 1fr;align-items:center;flex:none;height:40px;min-height:40px;box-sizing:border-box;padding:0 3px;border-bottom:3px solid #70a0a3;background:#18494a;color:#00a4ef;font-size:16px;line-height:16px;text-shadow:none}
.npc-shop-money>span{display:flex;align-items:center;gap:3px;min-width:0;height:100%;overflow:hidden;white-space:nowrap}
.npc-shop-money .native-item-icon{display:inline-block;flex:none;width:33px;height:33px;margin:0;border:0;border-radius:0;image-rendering:pixelated}
.npc-shop-digits{display:inline-flex;flex:none;height:12px;vertical-align:middle}
.npc-shop-digits i{display:block;flex:none;width:10.5px;height:12px;background-image:var(--npc-shop-digits);background-size:178.5px 12px;background-position:calc(var(--digit) * -10.5px) 0;background-repeat:no-repeat;image-rendering:pixelated}
.npc-shop-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;background:#083031}
.npc-shop-content::-webkit-scrollbar{display:none}
.npc-shop-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;background:#083031}
.npc-shop-scroll::-webkit-scrollbar{display:none}
.npc-shop-scroll>.npc-shop-content{flex:none;min-height:0;overflow:visible}
.npc-shop-row{display:grid;grid-template-columns:42px minmax(0,1fr) 189px;align-items:center;gap:0;width:100%;height:60px;min-height:60px;box-sizing:border-box;margin:0;padding:0 3px;border:0;border-bottom:2px solid #10393b;border-radius:0;background:#18494a;color:#e2e8e2;text-align:left;font:28px/30px NpcShopLD,Arial,sans-serif;text-shadow:1px 2px #142a2b;box-shadow:inset 0 -1px #24575a}
.npc-shop-row:nth-child(even){background:#18555a}
.npc-shop-row.selected{background:#18494a;color:#e2e8e2;box-shadow:inset 0 0 0 3px #a4c9c2}
.npc-shop-row:nth-child(even).selected{background:#18555a}
.npc-shop-row>span{min-width:0;overflow:hidden;white-space:nowrap;line-height:30px}
.npc-shop-name>span{display:inline-block;min-width:100%;white-space:nowrap;transform:translateX(0)}
.npc-shop-name.overflowing>span{animation:npc-shop-name-scroll var(--npc-shop-name-duration,30s) linear var(--npc-shop-name-delay,0s) infinite}
@keyframes npc-shop-name-scroll{from{transform:translateX(var(--npc-shop-name-window,300px))}to{transform:translateX(calc(-1 * var(--npc-shop-name-width,300px)))}}
.npc-shop-price{text-align:right}
#npcShop[data-tab=redeem] .npc-shop-price{text-align:left}
.npc-shop-row>.native-item-icon{display:inline-block;width:32px;height:32px;border:1px solid #bac8bc;border-radius:0;background-color:#0c292c;image-rendering:pixelated}
/* Buy stock uses the same native quality frames as inventory/sell/redeem. */
#npcShop .npc-shop-row>.equipment-icon,#npcShop .npc-shop-inspection h3>.equipment-icon{width:33px;height:33px;overflow:visible;line-height:0}
#npcShop .npc-shop-row>.equipment-icon::after,#npcShop .npc-shop-inspection h3>.equipment-icon::after{left:0;top:0}
#npcShop .equipment-icon>.native-item-icon{border:0;border-radius:0;image-rendering:pixelated}
#npcShop .npc-shop-row>.equipment-icon>.native-item-icon,#npcShop .npc-shop-inspection h3>.equipment-icon>.native-item-icon{display:block;flex:none;width:33px;height:33px;background-color:#0c292c}
.npc-shop-item{position:relative;display:flex;align-items:center;width:34px;height:54px;overflow:visible!important}
.npc-shop-item>.native-item-icon{display:inline-block;width:32px;height:32px;border:1px solid #bac8bc;border-radius:0;background-color:#0c292c;image-rendering:pixelated}
.npc-shop-item small{position:absolute;right:0;bottom:0;height:11px;padding:0 1px;background:#242828;color:#eee9ce;font:bold 10px/11px monospace;text-shadow:none}
.npc-shop-menu{position:absolute;left:268px;top:var(--npc-shop-menu-y,136px);z-index:3;width:246px;box-sizing:border-box;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.npc-shop-menu button{display:flex;justify-content:center;align-items:center;width:100%;height:60px;min-height:60px;box-sizing:border-box;margin:0;padding:0 4px;border:4px ridge #7b9592;border-radius:0;background:#2b3e42ed;color:#fff;font:28px/30px NpcShopLD,Arial,sans-serif;text-align:center;text-shadow:1px 2px #172b2d;box-shadow:none}
.npc-shop-menu button:first-child{background:#7b9694ed;color:#f00}
.npc-shop-menu button:disabled{color:#cfddce;opacity:.65;cursor:default}
.npc-shop-menu button[data-inspect]{color:#fff}
.npc-shop-key{display:inline-block;flex:none;width:12px;min-width:12px;height:18px;margin:0 4px 0 0;padding:0;border:1px solid #fff294;background:#fff078;color:#ef4300;font:16px/16px NpcShopLD,Arial,sans-serif;text-align:center;text-shadow:none}
#npcShop footer{position:absolute;top:241px;left:663px;width:74px;display:flex;flex-direction:column;gap:46px;margin:0;padding:0;border:0;transform:none;background:transparent}
#npcShop footer .native-button{position:static;flex:none;width:74px;height:74px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background-color:transparent;background-position:center;background-size:100% 100%;background-repeat:no-repeat;box-shadow:none}
#npcShop .native-button[data-art=confirm]{background-image:url('./native/confirm.png')}
#npcShop .native-button[data-art=back]{background-image:url('./native/back.png')}
#npcShop .native-button:disabled{opacity:.5;cursor:default}
.npc-shop-inspection{box-sizing:border-box;padding:8px 5px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:28px;line-height:30px;color:#fff}
.npc-shop-inspection h3{display:flex;align-items:center;gap:8px;margin:0 0 10px;font:inherit}
.npc-shop-empty{padding:12px 5px;font-size:28px;line-height:30px;color:#fff;margin:0;overflow-wrap:anywhere}
.npc-shop-redeem-empty{position:absolute;top:231px;left:-1px;right:-1px;min-height:74px;padding:4px 24px 4px 16px;border:2px solid #9cb5ab;background:#083031;word-break:break-all;line-break:anywhere}
.npc-shop-text-white{color:#fff}.npc-shop-text-red{color:#f00}.npc-shop-text-green{color:#0f0}.npc-shop-text-cyan{color:#0ff}.npc-shop-text-label{color:#ffff99}
.npc-shop-quantity{position:absolute;z-index:4;left:28px;top:111px;width:480px;height:276px;box-sizing:border-box;margin:0;padding:0;border:2px solid #9cb5ab;background:#083031;box-shadow:none;color:#fff;text-shadow:1px 1px #000}
.npc-shop-purchase-title{position:absolute;left:52px;right:42px;top:8px;margin:0;padding:0;overflow:hidden;font:28px/34px NpcShopLD,Arial,sans-serif;white-space:nowrap}
.npc-shop-purchase-title span{color:#f00}
.npc-shop-quantity-prompt{position:absolute;left:52px;right:42px;top:62px;margin:0;padding:0;font:28px/34px NpcShopLD,Arial,sans-serif;white-space:nowrap}
#npcShopQuantity{position:absolute;left:52px;top:113px;width:380px;height:64px;min-height:0;margin:0;padding:0 2px;border:1px solid #789187;border-radius:0;background:#fff;color:#000;font:28px/62px NpcShopLD,Arial,sans-serif;text-align:left;text-shadow:none;outline:none;appearance:textfield}
#npcShopQuantity::-webkit-inner-spin-button,#npcShopQuantity::-webkit-outer-spin-button{margin:0;appearance:none}
.npc-shop-quantity-actions{position:absolute;left:52px;right:42px;top:183px;display:flex;justify-content:space-between;margin:0;padding:0}
.npc-shop-quantity-actions button{display:flex;justify-content:center;align-items:center;flex:none;width:90px;height:60px;min-height:0;margin:0;padding:0;border:4px ridge #5d7375;border-radius:0;background:#293c42;color:#fff;font:28px/48px NpcShopLD,Arial,sans-serif;white-space:nowrap;text-align:center;text-shadow:1px 2px #142a2b;overflow:hidden;box-shadow:none}
.npc-shop-quantity-actions button:disabled{opacity:.6;cursor:default}
.npc-shop-sale{position:absolute;z-index:4;left:28px;top:132px;width:480px;height:234px;box-sizing:border-box;margin:0;padding:0;border:2px solid #9cb5ab;background:#083031;box-shadow:none;color:#fff;text-shadow:1px 1px #000}
.npc-shop-sale h3{position:absolute;left:50px;right:60px;top:8px;margin:0;padding:0;font:28px/30px NpcShopLD,Arial,sans-serif;word-break:break-all;overflow-wrap:anywhere;line-break:anywhere}
.npc-shop-sale h3 span{color:#f00}
.npc-shop-sale-price{position:absolute;left:50px;right:42px;top:86px;margin:0;padding:0;font:28px/34px NpcShopLD,Arial,sans-serif;white-space:nowrap}
.npc-shop-sale-actions{position:absolute;left:50px;right:42px;top:140px;display:flex;justify-content:space-between;margin:0;padding:0}
.npc-shop-sale-actions button{display:flex;justify-content:center;align-items:center;flex:none;width:90px;height:60px;min-height:0;margin:0;padding:0;border:4px ridge #5d7375;border-radius:0;background:#293c42;color:#fff;font:28px/48px NpcShopLD,Arial,sans-serif;white-space:nowrap;text-align:center;text-shadow:1px 2px #142a2b;overflow:hidden;box-shadow:none}
.npc-shop-sale-actions button:disabled{opacity:.6;cursor:default}
.npc-shop-discard{position:absolute;box-sizing:border-box;left:28px;top:132px;z-index:5;width:480px;min-height:164px;max-height:380px;overflow:auto;margin:0;padding:6px 48px 28px;border:2px solid #83a8a2;background:#083031;font:28px/30px NpcShopLD,Arial,sans-serif;color:#e2e8e2}
.npc-shop-discard p{min-height:60px;font:inherit;margin:0;white-space:normal;overflow-wrap:anywhere}
.npc-shop-discard-actions{display:flex;justify-content:space-between;gap:20px;margin-top:6px}
.npc-shop-discard button{display:flex;box-sizing:border-box;align-items:center;justify-content:center;flex:none;width:128px;height:60px;min-height:60px;margin:0;padding:0 4px;border:4px ridge #7b9592;border-radius:0;background:#2b3e42;color:#e2e8e2;font:26px/30px NpcShopLD,Arial,sans-serif;text-align:center;white-space:nowrap;box-shadow:none;text-shadow:1px 2px #142a2b}
.npc-shop-discard button:focus-visible{outline:2px solid #dce8d8;outline-offset:2px}
.npc-shop-discard button:disabled{opacity:.6;cursor:default}
.npc-shop-message{position:absolute;z-index:5;left:-1px;right:-1px;top:50%;transform:translateY(-50%);box-sizing:border-box;min-height:44px;margin:0;padding:4px 14px;border:2px solid #9cb5ab;background:#083031;color:#fff;font:28px/30px NpcShopLD,Arial,sans-serif;text-shadow:1px 1px #000;white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere;pointer-events:none}
#npcShop[data-stage=pending] .npc-shop-quantity{pointer-events:none}
#npcShop [hidden]{display:none!important}

/* Closing the view does not cancel the durable request. */
#npcShop[data-stage=pending] .npc-shop-quantity [data-quantity-back]:not(:disabled){pointer-events:auto}

/* Errors remain readable without covering the shop list centre. */
#npcShop .npc-shop-message{top:auto;bottom:56px;left:8px;right:8px;transform:none;min-height:0;max-height:66px;font-size:18px;line-height:22px;pointer-events:none}
