/* Product shelves and short, character-anchored delivery reactions. */
#residentBubble{position:absolute;z-index:3;pointer-events:none;transform:translateY(-100%);width:220px;padding:9px 11px;border:2px solid var(--leaf);border-radius:14px;background:var(--paper);color:var(--ink);line-height:1.65;animation:resident-hello 180ms cubic-bezier(.16,1,.3,1)}
#residentBubble::after{content:'';position:absolute;left:var(--tail-x,50%);bottom:-7px;width:10px;height:10px;transform:translateX(-50%) rotate(45deg);background:var(--paper);border-right:2px solid var(--leaf);border-bottom:2px solid var(--leaf)}
#residentBubbleName{display:block;margin-bottom:2px;font-size:11px;color:var(--leaf);font-weight:700}
#residentBubbleText{margin:0;font-size:14px;font-weight:700;word-break:keep-all;overflow-wrap:anywhere}
#cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#gameDialog .product-choice{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0;min-height:296px;padding:42px 12px 14px;border-radius:16px;text-align:center;background:var(--paper)}
#gameDialog .product-choice .product-image{width:124px;max-width:100%;height:104px;margin:0 auto;object-fit:contain;image-rendering:auto}
.product-info{min-width:0}.product-name{display:block;min-height:42px;font-size:13px;line-height:1.6;word-break:keep-all}
.product-price{position:absolute;right:9px;top:10px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:3px 7px;border:1px solid var(--leaf);border-radius:7px;background:var(--peach);color:var(--ink);font-size:15px;font-weight:700;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}
.product-price::before{content:'';display:block;width:15px;height:15px;background:currentColor;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m7 8 2 8 3-6 3 6 2-8M6 12h12'/%3E%3C/svg%3E")}
#gameDialog .product-choice[data-product-type=chair] .product-image{clip-path:inset(12px 0 0)}
#gameDialog .product-choice .product-specs{margin:5px 0 0;min-height:40px;font-size:12px;line-height:1.7;color:var(--muted)}
.product-specs span{display:block;word-break:keep-all}
#gameDialog .product-choice .card-balance{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:11px;line-height:1.7;color:var(--leaf)}
#gameDialog .product-choice.selected,#gameDialog .product-choice.selected:hover{background:var(--mint);border-color:var(--leaf)}
#gameDialog .product-choice.selected::after{content:'선택!';position:absolute;top:11px;left:9px;right:auto;width:auto;height:auto;margin:0;padding:3px 6px;border:0;border-radius:6px;background:var(--leaf);color:var(--paper);font-size:11px;font-weight:700;line-height:1.5;transform:none}
#gameDialog .product-choice.rejected,#gameDialog .product-choice.rejected:hover{border-color:var(--error);background:#fbf0e8}
#play .budget{padding:10px 0;margin-bottom:14px;border-top:0;border-bottom:1px solid var(--line)}
@keyframes resident-hello{from{opacity:0;transform:translateY(calc(-100% + 6px)) scale(.96)}to{opacity:1;transform:translateY(-100%) scale(1)}}
@media(max-width:560px){
 #cards{grid-template-columns:minmax(0,1fr)}
 #gameDialog .product-choice{display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:12px;min-height:152px;padding:13px;text-align:left}
 #gameDialog .product-choice .product-image{width:104px;height:96px;margin:8px 0 0}
 .product-name{min-height:0;font-size:14px;line-height:1.6}
 .product-price{position:static;margin:6px 0 0;font-size:15px;padding:2px 7px}
 #gameDialog .product-choice .product-specs{min-height:0;font-size:12px;margin-top:6px}
 #gameDialog .product-choice .card-balance{margin-top:6px;padding-top:6px;font-size:11px}
 #gameDialog .product-choice.selected::after{top:7px;left:7px}
 #residentBubble{padding:8px 10px}#residentBubbleText{font-size:13px}
}
@media(max-width:360px){#gameDialog .product-choice{grid-template-columns:78px minmax(0,1fr);gap:10px;padding:11px}#gameDialog .product-choice .product-image{width:78px;height:86px}.product-name{font-size:13px}}
