/* Item artwork should be recognizable, including compact mode and dialogs.
   Currency glyphs and fixed skill/castle scene sockets have separate sizing. */
.paper .item-name{gap:15px;min-width:210px}
.paper .item-name>.icon{width:76px;height:60px;object-fit:contain}
.item-name>div{min-width:0;overflow-wrap:anywhere}
.modal-body .item-name{gap:18px;align-items:center;margin-bottom:16px;min-width:0}
.modal-body .item-name>.icon{width:128px;height:100px;object-fit:contain;border:1px solid #8f7d53;background:#080f0b;box-shadow:0 3px 10px #0006}
.modal-body .item-name strong{font-size:17px;line-height:1.4}
.modal-body .item-name small{font-size:13px;line-height:1.5}
.modal-body .icon.detail-art{width:min(100%,280px)}
.paper .product-row,.paper .market-products .product-row{grid-template-columns:152px minmax(0,1fr) 130px 100px}
.paper .product-row .product-art .icon,.paper .market-products .product-art .icon,.paper .reference-item-table .item-name>.icon{width:144px;height:114px;object-fit:contain}
.paper .reference-item-table .item-name>.icon{flex-shrink:0}
.paper .reference-item-table td{padding-top:19px;padding-bottom:19px;vertical-align:middle}
.paper .tile>.icon.large{width:120px;height:96px;object-fit:contain}
.paper .bonus-map-art.large{width:144px;height:108px}
.paper .gear-card .gear-picture{max-width:180px;height:140px;object-fit:contain}
.paper .quick-links .icon{width:44px;height:36px;object-fit:contain}
.paper .gem-emblem{width:82px;height:82px}.paper .gem-emblem .icon{width:58px;height:58px}
.modal-body .skill-detail-art .system-art,.modal-body .confirmation-art{width:140px;height:140px;object-fit:contain}
.modal-body .castle-catalog-row{grid-template-columns:84px minmax(0,1fr)}
.modal-body .castle-catalog-row>.system-art{width:84px;height:84px}
.paper .price .icon,.modal-body .price .icon{width:28px;height:28px}
.wallet .icon{width:30px;height:30px}
.paper:has(.cauldron-board){padding:0;border:0;background:none;box-shadow:none;min-height:0}
.cauldron-board{margin:0;grid-template-columns:minmax(270px,1fr) minmax(0,1.1fr);align-items:start}
.cauldron-board .ritual-panel{border:0;background:none;padding:0}
.cauldron-board .ritual-panel>h2{margin:0 0 10px;border:1px solid #8d7950;padding:10px;font-size:18px}
.cauldron-board .ritual-scene{margin:0;border:1px solid #827349;min-height:500px}
.cauldron-board .ritual-panel>p{padding:0 10px;margin-top:12px}
.cauldron-board .ritual-scene{gap:12px;min-height:600px}
.ritual-loot{padding:10px;background:#050b0670;border:1px solid #9b82414d;min-width:0}
.ritual-loot.has-loot{background:#050b06e0}
.ritual-loot h3{margin:0;font-size:18px;color:#f4dfac}
.ritual-loot .loot-list{height:220px;max-height:220px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#b09b58 #141a10;scrollbar-width:auto;padding-right:7px}
.ritual-loot .loot-list::-webkit-scrollbar{width:14px}
.ritual-loot .loot-list::-webkit-scrollbar-track{background:#141a10;border:1px solid #69582e}
.ritual-loot .loot-list::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#756039,#c6aa6e,#756039);border:2px solid #171c13;border-radius:5px}
.ritual-loot .loot-list>.ritual-loot-row{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:70px;padding:7px 0;font-size:16px;border-bottom:1px solid #9c804645}
.ritual-loot-row>.icon,.ritual-loot-row>.bonus-map-art{width:68px;height:56px;object-fit:contain}
.ritual-loot-row>span{overflow-wrap:anywhere}.ritual-loot-row strong{font-size:18px;color:#f4d078;white-space:nowrap}
.ritual-outcome{min-height:45px;font-size:14px;line-height:1.6;color:#efdfb6}
.ritual-joker{margin-top:12px;flex-wrap:wrap}.ritual-joker input{width:auto}
.icon.joker-art{display:inline-block;background:url('/assets/forum-expansion/aruba-reference.jpg') 5.38173% 23.585%/5100% 2215% no-repeat;width:28px;height:35px;flex:none}
.ritual-loot-row>.joker-art{width:45px;height:56px}
.modal-body .reward-summary{margin:0 0 18px}
.modal-body .reward-summary .price{display:flex;flex-direction:column;gap:16px}
.modal-body .reward-summary .money{display:flex;align-items:center;gap:16px;flex-wrap:wrap;color:#f0dfb9;font-size:21px;line-height:1.4}
.modal-body .reward-summary .money>.icon{width:112px;height:88px;object-fit:contain}
.modal-body .reward-summary .money>b{font-size:25px}
.reward-map{display:flex;align-items:center;gap:16px;margin-top:14px;font-size:20px;line-height:1.4}
.reward-map>.bonus-map-art{width:112px;height:88px;object-fit:contain;flex:none}
.reward-record{font-size:14px;color:#cfbf9b;line-height:1.6;margin-bottom:14px}
.reward-outcome{margin:0;font-size:13px;line-height:1.6}
@media(max-width:1000px){
 .paper .product-row,.paper .market-products .product-row{grid-template-columns:122px minmax(0,1fr) 105px}
 .paper .product-row .product-art .icon,.paper .market-products .product-art .icon,.paper .reference-item-table .item-name>.icon{width:114px;height:90px}
 .paper .quick-links button{gap:8px;padding:9px 6px}
}
@media(max-width:700px){
 .cauldron-board{grid-template-columns:1fr}.cauldron-board .ritual-scene{min-height:440px}
 .modal-body .reward-summary .money{font-size:18px;gap:12px}.modal-body .reward-summary .money>b{font-size:22px}
 .modal-body .reward-summary .money>.icon,.reward-map>.bonus-map-art{width:96px;height:76px}
 .reward-map{font-size:17px;gap:12px}.reward-record{font-size:13px}
 .paper .product-row,.paper .market-products .product-row{grid-template-columns:104px minmax(0,1fr)}
 .paper .product-row .product-art .icon,.paper .market-products .product-art .icon,.paper .reference-item-table .item-name>.icon{width:96px;height:76px}
 .paper .item-name{min-width:190px;gap:11px}.paper .item-name>.icon{width:64px;height:52px}
 .modal-body .item-name{gap:13px}.modal-body .item-name>.icon{width:104px;height:82px}
 .modal-body .item-name strong{font-size:15px}.modal-body .item-name small{font-size:12px}
 .paper .tile>.icon.large{width:100px;height:80px}
 .paper .gear-card .gear-picture{max-width:150px;height:140px}
 .paper .quick-links .icon{width:38px;height:32px}
 .modal-body .castle-catalog-row{grid-template-columns:68px minmax(0,1fr)}
 .modal-body .castle-catalog-row>.system-art{width:68px;height:68px}
 .wallet .money{grid-template-columns:24px auto}.wallet .icon{width:24px;height:24px}
 .paper .price .icon,.modal-body .price .icon{width:24px;height:24px}
}

/* Original food art from the official forum screenshot, no bitmap recoloring.
   Crop windows exclude the screenshot's quantity text and other UI controls. */
.icon.food-sprite{display:inline-block;position:relative;flex-shrink:0;overflow:hidden;
 background-image:url('/assets/forum-food/reference.png');background-repeat:no-repeat;
 background-size:1589.189189% 1371.875%;background-position:3.99274% 17.93612%;
 width:52px;height:44px;vertical-align:middle;border-radius:3px}
.icon.food-silver{background-position:3.99274% 96.80590%}
.icon.food-gold:after{content:'Altın';position:absolute;bottom:0;left:0;right:0;
 padding:2px 0;background:#181409e8;color:#f5d476;font-size:12px;line-height:1.15;
 text-align:center;text-shadow:0 1px #000}

/* Original pearl-deck illustration preserved in a forum screenshot.
   Crop excludes price, name, level labels, and crystal UI overlays. */
.deck-art{display:inline-block;width:160px;height:100px;object-fit:contain;flex-shrink:0;
 vertical-align:middle;filter:drop-shadow(0 3px 4px #0008)}
.deck-sprite{background-image:url('/assets/forum-expansion/deck-reference.png');
 background-repeat:no-repeat;background-size:293.06358% 271.69811%;
 background-position:7.78443% 31.86813%;border:1px solid #807044;border-radius:3px}
.deck-card{display:flex;flex-direction:column;align-items:center;gap:7px}
.deck-card h3{margin:6px 0}.deck-card p{margin:5px 0;line-height:1.55}
.deck-card .deck-benefits{font-size:15px}.deck-card .deck-next{font-size:13px}
.deck-card .price{margin-top:auto}.deck-card>button{margin-top:5px}
.deck-preview{display:flex;align-items:center;gap:20px;min-width:0}
.deck-purchase{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:20px}
@media(max-width:700px){
 .deck-art{width:132px;height:82px}.deck-card .deck-benefits{font-size:13px}
 .deck-purchase{flex-direction:column;align-items:flex-start}.deck-preview{gap:12px}
}
@media(max-width:420px){.deck-grid{grid-template-columns:1fr}}
.paper .design-card>.icon{width:140px;height:115px;object-fit:contain;filter:drop-shadow(0 5px 5px #0009)}
.paper .design-card{background:linear-gradient(#17241ccc,#07100ee8);border-color:#726341;min-height:195px;box-shadow:inset 0 0 22px #0007}
.paper .design-card:hover{border-color:#d1ad60;background:linear-gradient(#2d3b25cc,#111a10e8)}
