.item-info-overlay{position:absolute;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px);background:#0002;touch-action:none}
.item-info-stage{position:relative;width:550px;height:410px;flex:none;transform:scale(var(--info-scale,1));font-family:TSClient,sans-serif}
.item-info-paper{position:absolute;left:150px;top:0;width:400px;height:410px;box-sizing:border-box;padding:36px;background:url('ui/item-info/frame.png') center/100% 100% no-repeat;color:#080808;outline:none}
.item-info-paper:before{content:'';position:absolute;inset:10px;background:url('ui/item-info/content.png') center/100% 100% no-repeat;z-index:-1}
.item-info-heading{display:flex;align-items:center;gap:12px;font-size:23px}.item-info-slot{width:64px;height:64px;flex:none;background:url('ui/item-info/slot.png') center/100% 100% no-repeat}.item-info-slot img{width:54px;height:54px;margin:5px;object-fit:contain}
.item-info-description{font-size:18px;font-weight:bold;line-height:1.3;margin-top:10px;max-height:110px;overflow:auto;touch-action:pan-y}.item-info-flavor{margin:0;color:#51231e;white-space:pre-wrap}
.item-info-actions{position:absolute;right:30px;bottom:28px;display:grid;gap:7px}.item-info-actions button{width:110px;height:50px;border:0;padding:0;background:url('ui/item-info/button.png') center/100% 100% no-repeat;color:#fff397;font:700 23px TSClient,sans-serif;text-shadow:1px 1px 2px #484e8b}.item-info-actions button:hover{filter:none}
.item-info-summary{position:absolute;left:0;top:8px;width:180px;color:white;font-size:18px}.item-info-ribbon{position:absolute;left:0;top:0;width:180px;height:62px;background:url('ui/item-info/ribbon.png') center/100% 100% no-repeat;text-align:center;line-height:62px;text-shadow:1px 1px #222}.item-info-values{position:absolute;left:10px;top:48px;width:180px;height:149px;background:url('ui/item-info/values.png') center/100% 100% no-repeat;box-sizing:border-box;padding:10px 20px 0 5px}.item-info-values>div{display:flex;justify-content:space-between;height:31px;align-items:center;background:url('ui/item-info/line.png') bottom/100% 3px no-repeat}.item-info-values b{font-weight:normal}
.item-info-paper:before{z-index:0}.item-info-heading,.item-info-description{position:relative;z-index:1}.item-info-actions{z-index:1}.item-info-values{width:150px;padding-right:15px}

/* Native UI_ValueBar rotates bod050 +90 degrees; separators use client alpha. */
.item-info-values{height:180px;padding-top:4px}.item-info-values>div{position:relative;background:none}.item-info-values>div:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:url("ui/item-info/line.png") center/100% 100%;opacity:.576}

.item-info-plain{width:400px}.item-info-plain .item-info-paper{left:0}
.item-info-portrait .item-info-actions button{height:44px}
.item-info-slot{position:relative}.item-info-quantity{position:absolute;left:5px;bottom:3px;font:700 16px TSClient,sans-serif;color:white;text-shadow:-1px 0 #111,1px 0 #111,0 -1px #111,0 1px #111}
.item-info-preview{position:absolute;left:-40px;top:55px;width:240px;height:260px;z-index:2;pointer-events:none}.item-info-circle{position:absolute;left:10px;top:170px;width:220px;height:100px;object-fit:contain}.item-info-hero{position:absolute;inset:0;width:240px;height:240px}
.item-info-description{scrollbar-width:none}.item-info-description::-webkit-scrollbar{display:none}
/* 福袋 sheet, official UI_ItemInfo BlissBag part: bod011 frame + bod002 paper sized around the
   bod013 box (930x320 max), horizontal-only scroll of 305x62 rows (bod015 + bod010 underline,
   bod003 64x64 slot, name 20px), 5 rows per column, 丟棄/使用 bar (110x50) centred under it. */
.item-info-bag .item-info-paper{left:0;padding:30px;display:flex;flex-direction:column;background:none;border:0;border-image:url('ui/common0_bod011.png') 8 fill/8px stretch}
.item-info-bag .item-info-paper:before{inset:10px;background:none;border:0;border-image:url('ui/common0_bod002.png') 15 12 12 15 fill/15px 12px 12px 15px stretch}
.item-info-bag .item-info-heading .item-info-slot{width:64px;height:64px}
.item-info-bag-title{display:flex;flex-direction:column;gap:2px}
.item-info-bag-title strong{font-size:24px}
.item-info-bag-title span{font-size:18px;color:#6256ae}
.item-info-bag .item-info-description{flex:none;font-size:18px;max-height:none;margin:6px 0 6px}
.item-info-bag .item-info-heading{flex:none}
.item-info-bag-box{position:relative;z-index:1;flex:none;box-sizing:border-box;padding:4px 5px 8px 4px;border:0;border-image:url('ui/common0_bod013.png') 4 5 9 4 fill/4px 5px 9px 4px stretch}
.item-info-bag-list{height:100%;display:grid;grid-auto-flow:column;align-content:start;cursor:grab;grid-auto-columns:305px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x}
.item-info-bag-list::-webkit-scrollbar{display:none}
.item-info-bag-list .bag-goods-row{position:relative;margin:0;height:62px;box-sizing:border-box;gap:14px;padding:0 10px;border:0;border-radius:0;background:none;border-image:url('ui/item-info/bliss-row.png') 8 fill/8px stretch;font:700 20px TSClient,sans-serif;white-space:nowrap;overflow:hidden}
.item-info-bag-list .bag-goods-row:after{content:'';position:absolute;left:4px;right:4px;bottom:0;height:3px;background:url('ui/item-info/bliss-line.png') 0 0/100% 100%}
.item-info-bag-list .bag-goods-icon{width:56px;height:56px;border:0;border-radius:0;border-image:url('ui/npc/common0_bod003.png') 5 5 30 5 fill/5px 5px 26px 5px stretch;background:none}
.item-info-bag .item-info-actions{position:static;margin-top:14px;display:flex;flex-direction:row-reverse;justify-content:center;gap:0}
.item-info-bag .item-info-actions button{width:110px;height:50px}
.item-info-bag-list.is-dragging{cursor:grabbing}
.item-info-bag-list .bag-goods-row{cursor:pointer}
