@font-face{font-family:NpcCraftLD;src:url('./native/ld-roboto-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
#npcCrafting{position:fixed;inset:50% auto auto 50%;margin:0;width:540px;height:540px;max-width:none;max-height:none;padding:0;border:2px solid #83a8a2;border-radius:0;background:#083031;color:#fff;overflow:visible;font:28px/30px NpcCraftLD,Arial,sans-serif;letter-spacing:0;text-shadow:1px 1px #102829;transform:translate(-50%,-50%) scale(var(--npc-craft-scale,1));transform-origin:center;box-shadow:none}
#npcCrafting[open]{display:flex;flex-direction:column}#npcCrafting::backdrop{background:transparent}#npcCrafting *,#npcCrafting *::before,#npcCrafting *::after{box-sizing:border-box}#npcCrafting button{font:inherit;letter-spacing:0;box-shadow:none;border-radius:0}#npcCrafting button:focus-visible{outline:2px solid #fcffb4;outline-offset:-3px}
#npcCrafting 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}#npcCrafting header::before,#npcCrafting 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}#npcCrafting header::before{left:0}#npcCrafting header::after{right:0;transform:scaleX(-1)}#npcCrafting h2{position:relative;z-index:1;margin:0;padding:0;font:28px/31px NpcCraftLD,Arial,sans-serif;text-align:center;color:#e4eee0;text-shadow:1px 2px #4a7972;white-space:nowrap}
.npc-craft-content{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;background:#083031}.npc-craft-content::-webkit-scrollbar{display:none}.npc-craft-list-head{display:grid;grid-template-columns:270px 1fr;height:60px;align-items:center;background:#18494a;border-bottom:3px solid #70a0a3}.npc-craft-list-head span{white-space:nowrap}.npc-craft-list-head span:last-child{margin-left:-36px}.npc-craft-row{display:grid;grid-template-columns:270px 1fr;align-items:center;width:100%;height:60px;margin:0;padding:0 3px;border:0;border-bottom:2px solid #10393b;background:#18494a;color:#e2e8e2;text-align:left;text-shadow:1px 2px #142a2b}.npc-craft-row:nth-child(even){background:#18555a}.npc-craft-row.selected{box-shadow:inset 0 0 0 3px #a4c9c2}.npc-craft-row>span:last-child{padding-left:6px}.npc-craft-name{display:block;min-width:0;overflow:hidden;white-space:nowrap}.npc-craft-name>span{display:inline-block;min-width:100%;white-space:nowrap}.npc-craft-name.overflowing>span{animation:native-text-loop var(--native-text-duration,20s) linear var(--native-text-delay,0s) infinite}
.npc-craft-pages{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:flex-end;justify-content:center;height:84px;margin:0;padding:0;background:#083031}.npc-craft-pages button{position:relative;width:97px;height:42px;min-height:0;margin:0;padding:0;border:0;background:transparent;color:#c49aa3;font:55px/40px NpcCraftLD,Arial,sans-serif;text-shadow:2px 2px #573e49}.npc-craft-pages button:disabled{opacity:.4}.npc-craft-pages small{position:absolute;top:0;right:8px;color:#fcffb4;font:20px/24px NpcCraftLD,Arial,sans-serif}.npc-craft-pages button:last-child small{left:8px;right:auto}.npc-craft-pages>span{color:#fcffb4;line-height:32px;font-size:28px}
.npc-craft-context{position:absolute;left:268px;top:96px;z-index:3;width:246px;margin:0;padding:0;background:transparent}.npc-craft-context button{display:flex;justify-content:center;align-items:center;width:100%;height:60px;margin:0;padding:0 4px;border:4px ridge #7b9592;background:#2b3e42ed;color:#fff;text-shadow:1px 2px #172b2d}.npc-craft-context button:first-child{background:#7b9694ed;color:#f00}.npc-craft-context small,.npc-craft-groups small{display:inline-block;flex:none;width:12px;height:18px;margin:0 4px 0 0;border:1px solid #fff294;background:#fff078;color:#ef4300;font:16px/16px NpcCraftLD,Arial,sans-serif;text-align:center;text-shadow:none}
#npcCrafting 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}#npcCrafting 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}#npcCrafting .native-button[data-art=confirm]{background-image:url('./native/confirm.png')}#npcCrafting .native-button[data-art=back]{background-image:url('./native/back.png')}#npcCrafting .native-button:disabled{opacity:.5;cursor:default}
.npc-craft-recipe{margin:0 27px;overflow:visible}.npc-craft-recipe p{height:42px;min-height:42px;margin:0;padding:4px 0;background:#18494a;border-bottom:2px solid #10393b;white-space:nowrap}.npc-craft-label,.npc-craft-material-head{color:#fcffb4}.npc-craft-material-head{display:grid;grid-template-columns:225px 1fr;height:42px;align-items:center;background:#18555a}.npc-craft-material-head span:first-child{padding-left:27px}.npc-craft-material-head span{white-space:nowrap}.npc-craft-material,.npc-craft-output{display:grid;grid-template-columns:33px minmax(0,192px) 1fr;align-items:center;width:100%;height:42px;min-height:42px;margin:0;padding:0;border:0;border-bottom:2px solid #10393b;background:#18494a;color:#fff;text-align:left}.npc-craft-material:nth-of-type(even){background:#18555a}.npc-craft-material:focus,.npc-craft-output:focus{outline:3px solid #a4c9c2;outline-offset:-3px}.npc-craft-recipe .npc-craft-success{height:auto;min-height:42px}.npc-craft-experience{color:#ff0}.npc-craft-recipe .npc-craft-output{grid-template-columns:33px minmax(0,192px) 1fr}.npc-craft-output>span:last-child{margin-left:0}.npc-craft-recipe .npc-craft-experience{overflow:visible}
#npcCrafting .native-item-icon{display:inline-block;flex:none;width:33px;height:33px;margin:0;border:1px solid #bac8bc;border-radius:0;background-color:#0c292c;image-rendering:pixelated}.npc-craft-inspection{padding:14px 14px 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:30px}.npc-craft-inspection h3{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:0;font:inherit;line-height:33px}.npc-craft-inspection h3 .npc-craft-name{flex:1}.npc-craft-skill{padding:14px;line-height:32px}.npc-craft-skill h3,.npc-craft-skill p{margin:0 0 6px;font:inherit}.npc-craft-skill h3{display:flex;align-items:center;gap:8px}.npc-craft-skill button{display:block;min-width:100px;height:60px;margin:20px 0 0 auto;padding:0 12px;border:4px ridge #7b9592;background:#2b3e42;color:#fff}.npc-craft-groups button{display:flex;align-items:center;width:100%;height:60px;margin:0;padding:0 10px;border:0;background:#083031;color:#fcffb4;text-align:left}.npc-craft-groups button:focus,.npc-craft-groups button:hover{background:#fff69a;color:#183c35}.npc-craft-loading{margin:12px}.npc-craft-message{position:absolute;z-index:5;left:-1px;right:-1px;top:50%;transform:translateY(-50%);min-height:44px;margin:0;padding:4px 14px;border:2px solid #9cb5ab;background:#083031;color:#fff;line-height:30px;text-shadow:1px 1px #000;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none}#npcCrafting [hidden]{display:none!important}
.npc-craft-skill-list{padding:0}.npc-craft-skill-row{display:grid;grid-template-columns:40px minmax(0,1fr) 70px;align-items:center;width:100%;height:60px;margin:0;padding:0 6px;border:0;border-bottom:2px solid #10393b;background:#18494a;color:#fff;text-align:left}.npc-craft-skill-row:nth-child(even){background:#18555a}.npc-craft-skill-row .native-item-icon{width:33px;height:33px}.npc-craft-skill-row .npc-craft-name{padding:0 8px}.npc-craft-skill-row>span:last-child{text-align:right}.npc-craft-skill-row:focus{outline:3px solid #a4c9a2;outline-offset:-3px}
.npc-craft-skill{padding:14px 14px 0}.npc-craft-skill h3{height:48px;margin:0 10px 18px}.npc-craft-skill-level{height:42px!important;margin:0!important}.npc-craft-skill-category{margin:18px 0 16px!important;text-align:right;line-height:30px}.npc-craft-skill-description{line-height:28px}.npc-craft-skill h3 .npc-craft-name{max-width:225px}
#npcCrafting[data-stage=recipe] .npc-craft-content{overflow:visible}.npc-craft-row.unmet,.npc-craft-skill-row.unmet{color:#f00}.npc-craft-recipe{clip-path:inset(0 -210px 0 0)}
.npc-craft-skill-row{grid-template-columns:40px minmax(0,1fr) 108px}.npc-craft-skill-row>span:last-child{white-space:nowrap}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-skill-row{grid-template-columns:33px minmax(0,261px) 108px;padding:0 8px}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-skill-row .npc-craft-name{padding:0 3px}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-skill-row>span:last-child{text-align:left}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-pages button{height:38px;font-size:0;line-height:0;background:center/100% 100% no-repeat}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-pages button:first-child{background-image:url('./native/ld-social-page-left.png')}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-pages button:last-child{background-image:url('./native/ld-social-page-right.png')}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-pages button small{display:none}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-pages button:disabled{opacity:1}
.npc-craft-learning{position:absolute;z-index:4;left:27px;top:152px;width:482px;min-height:194px;padding:7px 51px 31px;border:2px solid #83a8a2;background:#083031;line-height:28px;color:#fff}.npc-craft-learning-copy{white-space:nowrap}.npc-craft-learning-copy #npcCraftLearningTitle{color:#fcffb4}.npc-craft-learning-actions{display:flex;justify-content:space-between;margin:7px -8px 0 0}.npc-craft-learning-actions button{width:92px;height:61px;min-height:0;margin:0;padding:0;overflow:hidden;border:4px ridge #7b9592;background:#2b3e42;color:#fff;text-shadow:1px 2px #172b2d;white-space:nowrap}.npc-craft-learning-actions button:disabled{opacity:.5;cursor:default}
.npc-craft-learning-reason{margin:10px 0 0;font-size:18px;line-height:22px;white-space:normal;overflow-wrap:anywhere}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-learning{left:28px;width:480px}
#npcCrafting:is([data-kind=armor],[data-kind=weapon],[data-kind=jewelry]) .npc-craft-learning-reason{position:absolute;top:100%;left:-2px;right:-2px;margin:6px 0 0;padding:6px 12px;border:2px solid #83a8a2;background:#083031}
#npcCrafting[data-stage=prerequisite]{width:450px;height:274px}
#npcCrafting[data-stage=prerequisite]>header,#npcCrafting[data-stage=prerequisite]>footer{display:none}
#npcCrafting[data-stage=prerequisite] .npc-craft-content{padding:4px 8px 8px;overflow:hidden}
.npc-craft-prerequisite-copy{height:68px;margin:0;padding:0 4px 0 27px;line-height:28px;overflow-wrap:anywhere}
.npc-craft-prerequisite-choices button{display:flex;align-items:center;width:100%;height:60px;margin:0;padding:0;border:0;background:transparent;color:#fcffb4;text-align:left;white-space:nowrap;overflow:hidden}
.npc-craft-prerequisite-choices button.selected{background:#fff69a;color:#697d65}
.npc-craft-prerequisite-choices small{flex:none;width:12px;height:18px;margin-right:4px;border:1px solid #fff294;background:#fff078;color:#ef4300;font:16px/16px NpcCraftLD,Arial,sans-serif;text-shadow:none}
.npc-craft-prerequisite-actions{display:flex;justify-content:space-between;gap:6px;margin-top:8px}
.npc-craft-prerequisite-actions button{height:61px;min-width:0;margin:0;padding:0;border:4px ridge #7b9592;background:#2b3e42;color:#fff;white-space:nowrap;overflow:hidden;text-shadow:1px 2px #172b2d}
.npc-craft-prerequisite-actions button:first-child,.npc-craft-prerequisite-actions button:last-child{width:92px}
.npc-craft-prerequisite-actions button:nth-child(2),.npc-craft-prerequisite-actions button:nth-child(3){width:76px}

/* Vietnamese confirmation labels must fit without clipping. */
#npcCrafting .npc-craft-learning-actions button{width:140px;min-width:140px;padding:0 8px}
