/* Product portraits are story illustrations; exact specs stay alongside them. */
.box-pal-card{--box-paper:#edf3df;--box-accent:#365c3f;padding:9px 9px 17px;border:1px solid #d8e1ce;border-radius:24px;background:#fffefb;box-shadow:0 5px 0 #e3e6d980;overflow:hidden}
.box-pal-card.theme-sky{--box-paper:#e7f3fa;--box-accent:#2c617c;border-color:#d3e3e9}
.box-pal-card.theme-peach{--box-paper:#ffeedf;--box-accent:#8b502f;border-color:#ecd7c5}
.box-pal-card:hover{transform:translateY(-3px);box-shadow:0 9px 0 #e3e6d960,0 16px 32px #243d3410}
.box-pal-card .box-pal-scene{aspect-ratio:auto;height:auto;border-radius:17px;background:var(--box-paper);overflow:hidden;margin:0}
.box-pal-open{position:relative;display:block;width:100%;height:235px;border:0;background:transparent;padding:33px 20px 8px;text-align:center;color:var(--box-accent)}
.box-pal-open:focus-visible{outline-offset:-4px;outline:3px solid #337b9f;border-radius:17px}
.box-pal-card .product-scene .box-pal-art{display:block;margin:0 auto;width:91%;height:195px;object-fit:contain;background:none;transition:transform .22s}
.box-pal-card:hover .product-scene .box-pal-art{transform:translateY(-3px) rotate(-2deg)}
.box-pal-nickname{position:absolute;left:14px;top:12px;font-size:14px;font-weight:900;letter-spacing:.025em;background:#ffffffd9;padding:6px 10px;border-radius:999px;z-index:1}
.box-pal-guide{position:absolute;right:7px;bottom:7px;display:flex;flex-direction:column;align-items:center;max-width:92px}
.box-pal-card .product-scene .box-pal-guide img{width:68px;height:66px;object-fit:contain;background:none;transform:none;filter:drop-shadow(0 3px 1px #ffffffb8)}
.box-pal-guide>span{color:var(--box-accent);font-size:12px;font-weight:800;line-height:1.4;background:#ffffffdf;border-radius:9px;padding:3px 7px}
.box-pal-card .product-scene .box-art-disclaimer{position:static;display:block;max-width:none;margin:0;padding:7px 9px;text-align:center;line-height:1.5;border-radius:0;background:#ffffff70;backdrop-filter:none;color:#57695c;font-size:12px;font-weight:400}
.box-pal-dialogue{font-size:14px;line-height:1.55;color:var(--box-accent);text-align:center;margin:12px 4px 0;min-height:22px;font-weight:700}
.box-pal-card .product-card-top{padding:13px 8px 0;gap:8px;flex-wrap:wrap}
.box-pal-card .size-tier{font-size:12px;border-radius:9px;background:var(--box-paper);color:var(--box-accent);padding:5px 9px;font-weight:800}
.box-pal-card .product-code{font-size:12px;color:#687168;overflow-wrap:anywhere}
.box-pal-card h3{font-size:19px;line-height:1.5;margin:10px 8px 12px;overflow-wrap:anywhere}
.box-pal-card h3 a{color:var(--forest);text-decoration:none}.box-pal-card h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.box-pal-card .product-size{display:flex;flex-direction:column;gap:4px;background:#f7f8f1;border:1px solid #eceee3;border-radius:13px;padding:11px 12px;margin:0 8px 12px;min-height:0;font-size:14px;line-height:1.7!important;color:#596b62}
.box-pal-card .product-size b{font-size:16px;line-height:1.65;overflow-wrap:anywhere;color:#284536}
.box-pal-card .box-size-label{font-size:12px;color:#647461;letter-spacing:.05em}
.box-supply-note{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 9px;font-size:13px;color:#667366}
.box-supply-note .stock-tag{position:static;font-size:12px;padding:4px 8px;line-height:1.5;flex:none;border-radius:7px}
.box-pal-card .catalog-load{font-size:13px;line-height:1.6;margin:9px 10px 13px;color:#667366}
.box-pal-card .product-buy-row{padding:13px 8px 0;border-top:1px dashed #d9dfd2;gap:8px}
.box-pal-card .product-price small{font-size:12px}.box-pal-card .product-price strong{font-size:21px;color:var(--forest);white-space:nowrap}.box-pal-card .product-price i{font-size:12px}
.box-pal-card .product-buy{background:var(--box-accent);color:#fff;border-radius:12px;font-size:14px;padding:11px 12px;display:flex;gap:7px;align-items:center;min-height:43px}
.detail-artwork{background:#edf3df;border:1px solid #d9e2cf;border-radius:19px;overflow:hidden;position:relative;padding:14px 14px 0}
.detail-artwork[data-theme=sky]{background:#e7f3fa;border-color:#d3e3e9}.detail-artwork[data-theme=peach]{background:#ffeedf;border-color:#ecd7c5}
.detail-artwork>#detailImage{display:block;width:100%;height:285px;max-height:38vh;object-fit:contain;margin:auto}
.detail-artwork.is-dimensions{background:#f5f2ec}.detail-artwork.is-dimensions>#detailImage{height:300px;max-height:42vh}
.detail-pal-speech{display:flex;align-items:center;gap:10px;background:#ffffffcf;border-radius:13px 13px 0 0;padding:5px 13px;margin-top:6px;font-size:14px;font-weight:700;color:var(--forest);line-height:1.6}
.detail-pal-speech img{width:56px;height:58px;object-fit:contain;flex:none}
.detail-art-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:11px 0 18px}.detail-art-controls p{font-size:12px;line-height:1.65;color:#637168;margin:0;max-width:60%}
.detail-art-controls button{border:1px solid #97ae9c;border-radius:10px;background:#fff;color:var(--forest);font-size:14px;font-weight:700;line-height:1.5;padding:8px 11px;flex:none;min-height:40px}
.detail-art-controls button:hover{background:#edf3df}
.match-pal-hello{grid-column:1/-1;display:flex;align-items:center;gap:10px;background:#f1f5e7;border-radius:13px;padding:7px 12px;color:#53684f;font-size:12px}
.match-pal-hello img{width:52px;height:52px;object-fit:contain;flex:none}.match-pal-hello span{flex:1}.match-pal-hello b{display:block;font-size:15px;color:var(--forest);margin-top:3px}.match-pal-hello small{font-size:12px;color:#6b7766;white-space:nowrap}
@media(max-width:850px){.box-pal-open{height:215px}.box-pal-card .product-scene .box-pal-art{height:177px}.box-pal-card .product-buy{font-size:13px;padding:10px}.box-pal-card .product-price strong{font-size:20px}}
@media(max-width:480px){.box-pal-card{padding:9px 9px 16px}.box-pal-open{height:238px}.box-pal-card .product-scene .box-pal-art{height:205px;width:82%}.box-pal-nickname{font-size:15px}.box-pal-guide{right:14px;bottom:10px}.box-pal-card .product-scene .box-pal-guide img{width:79px;height:77px}.box-pal-dialogue{font-size:15px;margin-top:12px}.box-pal-card h3{font-size:20px}.box-pal-card .product-size b{font-size:18px}.box-pal-card .product-buy{font-size:15px;padding:11px 15px}.box-pal-card .product-price strong{font-size:23px}.detail-art-controls{flex-direction:column;align-items:stretch;gap:9px}.detail-art-controls p{max-width:100%;text-align:center}.detail-art-controls button{width:100%}.detail-artwork>#detailImage{height:235px;max-height:32vh}.detail-pal-speech{font-size:13px;padding:4px 9px}.detail-pal-speech img{width:46px;height:49px}}
@media(prefers-reduced-motion:reduce){.box-pal-card,.box-pal-card .product-scene .box-pal-art{transition:none}.box-pal-card:hover,.box-pal-card:hover .product-scene .box-pal-art{transform:none}}
