/* The illustrated renderer is the only game appearance. */
.storybook-character { display: none; width: 68px; height: 91px; pointer-events: none; image-rendering: auto; }
.storybook-preview .character-sprite[data-storybook-ready] { background-image: none !important; animation: none !important; }
.storybook-preview .character-sprite[data-storybook-ready] > .storybook-character { display: block; }
.storybook-preview .character-sprite[data-storybook-loading] { background-image:none!important; }
.storybook-preview .character-sprite:is([data-storybook-loading],[data-storybook-failed]):not([data-storybook-ready])::after { content:'';position:absolute;left:23px;bottom:2px;width:22px;height:6px;border:1px solid #dfcf9b88;border-radius:50%;background:#182e2866; }

.storybook-preview #map .pawn:has([data-storybook-ready]) { background: transparent !important; }
.storybook-preview #map.zone-village .character-renderer { scale: .82; }
.storybook-preview .player-hud { width: 306px; background: #19372df2; border-color: #cbb787; box-shadow: 0 8px 30px #0c221d33; }
.storybook-preview .player-hud .hud-portrait { background: radial-gradient(ellipse at 50% 35%, #668156, #1b3c32); }
.storybook-preview .side-tools button { border-radius: 13px; background: #19372df2; border: 1px solid #cbb78799; box-shadow: 0 4px 15px #0c221d25; }
.storybook-preview .drawer { background: linear-gradient(150deg, #203d33fa, #142e29fa); border: 1px solid #cbb78799; border-radius: 17px; }

.storybook-preview .npc-sprite[data-storybook-npc] { bottom: 0; background: none !important; animation: none !important; image-rendering: auto; }
.storybook-npc { position: absolute; bottom: 0; left: -4px; width: 72px; height: 74px; pointer-events: none; transform-origin: 50% 100%; }
.storybook-preview .npc-character .storybook-npc { animation: storybook-npc-breathe 4.8s ease-in-out var(--npc-delay, 0s) infinite; }
.storybook-preview .npc-character > strong { background: #203b30ed; border-color: #d1bf87aa; border-radius: 7px; font-weight: 500; }
.storybook-preview #npcPanel { background: linear-gradient(140deg, #243f33fa, #152d27fc); border: 1px solid #cbb787aa; border-radius: 18px; box-shadow: 0 16px 45px #0b201955; }
.storybook-preview .npc-portrait:has([data-storybook-npc]) { width: 112px; height: 118px; margin-bottom: 14px; }
.storybook-preview .npc-portrait [data-storybook-npc] { left: 24px; bottom: 0; transform: scale(1.5); transform-origin: 50% 100%; }
@keyframes storybook-npc-breathe { 50% { transform: scaleY(1.012); } }
@media (prefers-reduced-motion: reduce) { .storybook-preview .npc-character .storybook-npc { animation: none; } }
.storybook-preview .comfort-reduced-motion .npc-character .storybook-npc { animation: none; }
@media (max-width:600px) {
  .storybook-preview .player-hud { width: 265px; max-width: calc(100vw - 82px); }
  .storybook-preview .side-tools button { border-radius: 10px; }
}
