.map-header { position: sticky; top: 0; z-index: 5; margin: 0 auto 8px; max-width: 280px; }
.map-header.pcard { border: 3px solid #5a2e5e; border-image: none; border-radius: 999px; background: rgba(255, 250, 240, .94); padding: 2px 12px; box-shadow: 0 3px 0 #5a2e5e; }
.map-header.pcard::before, .map-header.pcard::after { display: none; }
.map-head { display: flex; justify-content: space-around; align-items: center; min-height: 36px; }
.map-hd { display: flex; align-items: center; gap: 6px; font-size: 18px; }
.map-hd img { width: 26px; height: 26px; image-rendering: pixelated; }
.map-wrap { position: relative; margin: 0 -12px; background: url(../assets/map-bg.webp) top center / 100% auto repeat-y; overflow: hidden; }
.map-wrap::before { content: ""; position: absolute; inset: 0; background: rgba(255, 240, 250, .45); }
.map-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-path polyline { stroke: #fff; stroke-width: 6; stroke-dasharray: 1 12; stroke-linecap: round; filter: drop-shadow(0 1px 0 #ff7eb6); }
.map-node { all: unset; position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; border: 4px solid #5a2e5e; box-shadow: 0 4px 0 #5a2e5e; background: radial-gradient(circle at 35% 30%, #ffd0e6, #ff7eb6); box-sizing: border-box; transition: transform .12s; }
.map-node:active { transform: scale(.92); }
.map-node.lock { background: radial-gradient(circle at 35% 30%, #e6e1ea, #a8a2b0); }
.map-node.done { background: radial-gradient(circle at 35% 30%, #fff1b8, #ffd27a); }
.map-node.cur { animation: map-glow 1.4s ease-in-out infinite; }
@keyframes map-glow { 0%, 100% { box-shadow: 0 4px 0 #5a2e5e, 0 0 6px 2px #fff; } 50% { box-shadow: 0 4px 0 #5a2e5e, 0 0 18px 8px #ff9ccc; } }
.map-node.boss { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: radial-gradient(circle at 50% 35%, #fff, #c6a8ff); border-color: #5a2e5e; }
.map-node.boss.lock { background: radial-gradient(circle at 50% 35%, #e6e1ea, #9c96a6); }
.map-num { font-size: 24px; font-weight: 900; }
.map-lock { position: absolute; width: 28px; height: 28px; right: -4px; bottom: -4px; image-rendering: pixelated; }
.map-crown { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 24px; color: #ffd27a; text-shadow: -1px -1px 0 #5a2e5e, 1px 1px 0 #5a2e5e, 1px -1px 0 #5a2e5e, -1px 1px 0 #5a2e5e; }
.map-tag { position: absolute; top: -8px; right: -14px; font-size: 12px; background: #ff7eb6; border: 2px solid #5a2e5e; border-radius: 8px; padding: 0 4px; }
.map-caught { position: absolute; left: -16px; bottom: -6px; display: flex; flex-direction: column; align-items: center; }
.map-caught img { width: 22px; height: 22px; image-rendering: pixelated; }
.map-caught small { font-size: 12px; }
.map-stars { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); display: flex; gap: 0; white-space: nowrap; }
.map-star { width: 20px; height: 20px; image-rendering: pixelated; }
.map-star.off { filter: grayscale(1) brightness(1.5) opacity(.55); }
.map-arrow { position: absolute; top: -34px; left: 50%; margin-left: -9px; font-size: 22px; color: #ff7eb6; animation: bob .9s ease-in-out infinite; }
.map-cloud { position: absolute; transform: translate(-50%, -50%); font-size: 18px; padding: 8px 14px; background: rgba(198, 168, 255, .8); border-radius: 999px; border: 3px solid #5a2e5e; white-space: nowrap; }
.map-goal-main { font-size: 16px; font-weight: 900; margin-bottom: 2px; }
.map-bestrow { display: flex; align-items: center; gap: 2px; margin: 6px 0; font-size: 14px; }
.map-bestrow span { margin-right: 8px; }
.map-hint { font-size: 14px; margin-top: 6px; }
.map-rew { font-size: 14px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.map-chip { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.map-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.map-comp { all: unset; box-sizing: border-box; cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 14px; background: #fff; border: 2px solid var(--line); color: var(--ink); }
.map-comp.on { border-color: var(--ink); background: linear-gradient(180deg, #fff, var(--bg1)); box-shadow: 0 0 10px var(--accent); }
.map-comp img { width: 36px; height: 36px; object-fit: contain; }
.map-comp-t { display: flex; flex-direction: column; font-size: 14px; }
.map-comp-t small { font-size: 12px; color: var(--ink-soft); font-weight: 700; }

.pets-seg { display: flex; justify-content: center; margin-bottom: 8px; }
.pets-count { text-align: center; font-size: 18px; margin: 6px 0 10px; }
.pets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.pets-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.pets-card { background: var(--card); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.pets-card.off { background: rgba(240, 232, 245, .9); }
.pets-card.wide { grid-column: 1 / -1; flex-direction: row; padding: 10px; }
.pets-spr { display: flex; justify-content: center; }
.pets-name { font-size: 15px; }
.pets-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.pets-note { font-size: 12px; color: var(--accent); }
.pets-card.sw img { width: 56px; height: 56px; object-fit: contain; }
.pets-icebox { position: relative; width: 64px; height: 64px; flex: none; }
.pets-icebox img { position: absolute; inset: 0; width: 64px !important; height: 64px !important; }
.pets-icebox .ice { opacity: .85; }

.store-bal { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 30px; margin: 4px 0 10px; }
.store-bal img { width: 40px; height: 40px; image-rendering: pixelated; }
.store-left { text-align: center; margin-top: 4px; }
.store-off { text-align: center; padding: 14px 6px; font-size: 17px; }
.store-list { display: flex; flex-direction: column; gap: 8px; }
.store-item { display: flex; align-items: center; gap: 10px; }
.store-item > img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.store-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.store-info small { font-size: 13px; color: var(--ink-soft); }
.store-set { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
